cortex-react-components 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/{chunk-GETYSIZV.mjs → chunk-255P6K5W.mjs} +1 -1
  2. package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
  3. package/dist/{chunk-P6OSMPUQ.mjs → chunk-2RQDJ5XT.mjs} +1 -1
  4. package/dist/{chunk-PZXOH6CZ.mjs → chunk-2SAKLSZ4.mjs} +1 -1
  5. package/dist/{chunk-BQQ4V4PX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
  6. package/dist/{chunk-GAZHKHGB.mjs → chunk-67QPOSVV.mjs} +1 -1
  7. package/dist/{chunk-S6KDP563.mjs → chunk-67VXPDWA.mjs} +1 -1
  8. package/dist/{chunk-PIOFHZSJ.mjs → chunk-7BCUACIY.mjs} +1 -1
  9. package/dist/{chunk-7OMPPFGG.mjs → chunk-7GMAMIHM.mjs} +1 -1
  10. package/dist/{chunk-DPZHVBGG.mjs → chunk-B7AXSCTN.mjs} +1 -1
  11. package/dist/chunk-BDFHWLTS.mjs +4 -0
  12. package/dist/{chunk-V5W32NJ4.mjs → chunk-CAKJOTEE.mjs} +1 -1
  13. package/dist/{chunk-O3ORC6HS.mjs → chunk-EAFH3DTH.mjs} +1 -1
  14. package/dist/{chunk-2GM2LPLB.mjs → chunk-ERJXTG6X.mjs} +1 -1
  15. package/dist/{chunk-HDKHF3EA.mjs → chunk-FKU4VQR6.mjs} +1 -1
  16. package/dist/{chunk-77PCUNUC.mjs → chunk-FTZRG54P.mjs} +1 -1
  17. package/dist/chunk-GILMVRED.mjs +4 -0
  18. package/dist/{chunk-F64CA5CH.mjs → chunk-H3CJOE6S.mjs} +1 -1
  19. package/dist/{chunk-U3FYDDE2.mjs → chunk-HKGW6JI2.mjs} +1 -1
  20. package/dist/{chunk-PNUBVBSR.mjs → chunk-IF3425JX.mjs} +1 -1
  21. package/dist/{chunk-IDG2O4B7.mjs → chunk-ISBVFNWD.mjs} +1 -1
  22. package/dist/{chunk-5MU4KV3B.mjs → chunk-LHEZJYVN.mjs} +1 -1
  23. package/dist/{chunk-KZAYLEFB.mjs → chunk-LJOWXPWW.mjs} +1 -1
  24. package/dist/{chunk-PTZT4QJW.mjs → chunk-LJQPLE4S.mjs} +1 -1
  25. package/dist/{chunk-2OOJ4ZFB.mjs → chunk-M7NV6EFH.mjs} +1 -1
  26. package/dist/{chunk-4SRUEQTP.mjs → chunk-MXCW6SOT.mjs} +1 -1
  27. package/dist/{chunk-FYQBRCQM.mjs → chunk-N3B3XNV3.mjs} +1 -1
  28. package/dist/{chunk-GLBQHEMQ.mjs → chunk-N7BHIWS5.mjs} +1 -1
  29. package/dist/{chunk-QJ3L3OWW.mjs → chunk-P2MTGU2L.mjs} +1 -1
  30. package/dist/{chunk-MO4HRQEL.mjs → chunk-PK3OBSCB.mjs} +1 -1
  31. package/dist/{chunk-NHFCO6RG.mjs → chunk-QQVPLMPJ.mjs} +1 -1
  32. package/dist/chunk-QUXHULLX.mjs +4 -0
  33. package/dist/{chunk-W7MEHF4G.mjs → chunk-RNMPX2AU.mjs} +1 -1
  34. package/dist/{chunk-JHYWAL24.mjs → chunk-SW7RYGO6.mjs} +1 -1
  35. package/dist/{chunk-VVCAOIYO.mjs → chunk-U3F45KVI.mjs} +1 -1
  36. package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
  37. package/dist/{chunk-GTK2SGS5.mjs → chunk-XBCYPOFD.mjs} +1 -1
  38. package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
  39. package/dist/{chunk-HKMNAXLM.mjs → chunk-YKG4FNS4.mjs} +1 -1
  40. package/dist/{chunk-NADEVCXZ.mjs → chunk-YNTAZCKJ.mjs} +1 -1
  41. package/dist/components/Blocks/Banner.mjs +1 -1
  42. package/dist/components/Blocks/CallToAction.mjs +1 -1
  43. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  44. package/dist/components/Blocks/Content.mjs +1 -1
  45. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  46. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  47. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  48. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  49. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  50. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  51. package/dist/components/Blocks/index.mjs +1 -1
  52. package/dist/components/Cards/ContentCard.mjs +1 -1
  53. package/dist/components/Cards/FeatureCard.mjs +1 -1
  54. package/dist/components/Cards/index.mjs +1 -1
  55. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  56. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  57. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  58. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  59. package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.js +308 -0
  60. package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.mjs +308 -0
  61. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  62. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  63. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  64. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  65. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  66. package/dist/components/DigitalColleagues/document-edit.d.ts +8 -0
  67. package/dist/components/DigitalColleagues/document-edit.js +4 -0
  68. package/dist/components/DigitalColleagues/document-edit.mjs +2 -0
  69. package/dist/components/DigitalColleagues/document-preview.d.ts +8 -0
  70. package/dist/components/DigitalColleagues/document-preview.js +4 -0
  71. package/dist/components/DigitalColleagues/document-preview.mjs +2 -0
  72. package/dist/components/DigitalColleagues/index.d.ts +4 -0
  73. package/dist/components/DigitalColleagues/index.js +1 -1
  74. package/dist/components/DigitalColleagues/index.mjs +1 -1
  75. package/dist/components/DigitalColleagues/knowledge-browser.css +1 -0
  76. package/dist/components/{dc-temp → DigitalColleagues}/knowledge-browser.d.ts +4 -2
  77. package/dist/components/DigitalColleagues/knowledge-browser.js +5 -0
  78. package/dist/components/DigitalColleagues/knowledge-browser.mjs +2 -0
  79. package/dist/components/DigitalColleagues/knowledge-search.css +1 -0
  80. package/dist/components/{dc-temp → DigitalColleagues}/knowledge-search.d.ts +1 -1
  81. package/dist/components/{dc-temp → DigitalColleagues}/knowledge-search.js +1 -1
  82. package/dist/components/{dc-temp → DigitalColleagues}/knowledge-search.mjs +1 -1
  83. package/dist/components/HeaderFooter/Header.mjs +1 -1
  84. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  85. package/dist/components/HeaderFooter/index.mjs +1 -1
  86. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  87. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  88. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  89. package/dist/components/Heros/PostHero/index.mjs +1 -1
  90. package/dist/components/Heros/RenderHero.mjs +1 -1
  91. package/dist/components/Heros/index.mjs +1 -1
  92. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  93. package/dist/components/Holidays/index.mjs +1 -1
  94. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  95. package/dist/components/Layouts/Print.mjs +1 -1
  96. package/dist/components/Layouts/SlideShow.mjs +1 -1
  97. package/dist/components/Layouts/index.mjs +1 -1
  98. package/dist/components/Menus/index.mjs +1 -1
  99. package/dist/components/Payload/Card/index.mjs +1 -1
  100. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  101. package/dist/components/Payload/Media/index.mjs +1 -1
  102. package/dist/components/Payload/RichText/index.mjs +1 -1
  103. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  104. package/dist/components/Payload/index.mjs +1 -1
  105. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  106. package/dist/components/Projects/ProjectPage.mjs +1 -1
  107. package/dist/components/Projects/ProjectView.mjs +1 -1
  108. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  109. package/dist/components/dc-temp/index.d.ts +1 -1
  110. package/dist/components/dc-temp/index.js +1 -1
  111. package/dist/components/dc-temp/index.mjs +1 -1
  112. package/dist/components/index.js +10 -10
  113. package/dist/components/index.mjs +1 -1
  114. package/dist/components/ui/index.mjs +1 -1
  115. package/dist/globals.css +1 -1
  116. package/dist/index.js +14 -14
  117. package/dist/index.mjs +1 -1
  118. package/dist/metafile-cjs.json +1 -1
  119. package/dist/metafile-esm.json +1 -1
  120. package/dist/pages/Blog.mjs +1 -1
  121. package/dist/pages/Documentation.mjs +1 -1
  122. package/dist/pages/IndexPage.mjs +1 -1
  123. package/dist/pages/Intranet.mjs +1 -1
  124. package/dist/pages/LandingPage.mjs +1 -1
  125. package/dist/pages/Page.mjs +1 -1
  126. package/dist/pages/Publish.mjs +1 -1
  127. package/dist/pages/Website.mjs +1 -1
  128. package/dist/sections/AboutSection.mjs +1 -1
  129. package/dist/sections/BlogDetail.mjs +1 -1
  130. package/dist/sections/BlogList.mjs +1 -1
  131. package/dist/sections/BlogListSection.mjs +1 -1
  132. package/dist/sections/ContactSection.mjs +1 -1
  133. package/dist/sections/PageSections.mjs +1 -1
  134. package/dist/sections/PricingSection.mjs +1 -1
  135. package/dist/sections/ServiceDetail.mjs +1 -1
  136. package/dist/sections/ServiceDetailSection.mjs +1 -1
  137. package/dist/sections/ServiceSection.mjs +1 -1
  138. package/dist/sections/index.mjs +1 -1
  139. package/package.json +2 -1
  140. package/dist/chunk-637VXITY.mjs +0 -4
  141. package/dist/components/dc-temp/knowledge-browser.js +0 -5
  142. package/dist/components/dc-temp/knowledge-browser.mjs +0 -2
  143. /package/dist/components/{dc-temp/knowledge-browser.css → DigitalColleagues/document-edit.css} +0 -0
  144. /package/dist/components/{dc-temp/knowledge-search.css → DigitalColleagues/document-preview.css} +0 -0
  145. /package/dist/components/Images/{IconIndex.js → IconIndex.docs.js} +0 -0
  146. /package/dist/components/Images/{IconIndex.mjs → IconIndex.docs.mjs} +0 -0
  147. /package/dist/styles/{Typography.js → Typography.docs.js} +0 -0
  148. /package/dist/styles/{Typography.mjs → Typography.docs.mjs} +0 -0
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  'use client'
4
4
 
5
- "use strict";var Jt=Object.create;var Te=Object.defineProperty;var Qt=Object.getOwnPropertyDescriptor;var Xt=Object.getOwnPropertyNames;var Zt=Object.getPrototypeOf,Yt=Object.prototype.hasOwnProperty;var eo=(e,t)=>{for(var o in t)Te(e,o,{get:t[o],enumerable:!0})},lt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Xt(t))!Yt.call(e,s)&&s!==o&&Te(e,s,{get:()=>t[s],enumerable:!(r=Qt(t,s))||r.enumerable});return e};var W=(e,t,o)=>(o=e!=null?Jt(Zt(e)):{},lt(t||!e||!e.__esModule?Te(o,"default",{value:e,enumerable:!0}):o,e)),to=e=>lt(Te({},"__esModule",{value:!0}),e);var qo={};eo(qo,{FileList:()=>xe,FileView:()=>rt,KnowledgeBrowser:()=>Ie,KnowledgeView:()=>Oe,TeamCard:()=>Ae,TeamsIndexView:()=>Xe});module.exports=to(qo);var It=require("react");var St=require("framer-motion");var ht=require("class-variance-authority");var vt=require("clsx");var Ke="-",oo=e=>{let t=ao(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let a=l.split(Ke);return a[0]===""&&a.length!==1&&a.shift(),mt(a,t)||ro(l)},getConflictingClassGroupIds:(l,a)=>{let u=o[l]||[];return a&&r[l]?[...u,...r[l]]:u}}},mt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?mt(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(Ke);return t.validators.find(({validator:l})=>l(n))?.classGroupId},dt=/^\[(.+)\]$/,ro=e=>{if(dt.test(e)){let t=dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ao=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return no(Object.entries(e.classGroups),o).forEach(([n,l])=>{je(l,r,n,t)}),r},je=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:ct(t,s);n.classGroupId=o;return}if(typeof s=="function"){if(io(s)){je(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([n,l])=>{je(l,ct(t,n),o,r)})})},ct=(e,t)=>{let o=e;return t.split(Ke).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},io=e=>e.isThemeGetter,no=(e,t)=>t?e.map(([o,r])=>{let s=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,a])=>[t+l,a])):n);return[o,s]}):e,so=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(n,l)=>{o.set(n,l),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let l=o.get(n);if(l!==void 0)return l;if((l=r.get(n))!==void 0)return s(n,l),l},set(n,l){o.has(n)?o.set(n,l):s(n,l)}}},pt="!",lo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],n=t.length,l=a=>{let u=[],x=0,w=0,R;for(let h=0;h<a.length;h++){let D=a[h];if(x===0){if(D===s&&(r||a.slice(h,h+n)===t)){u.push(a.slice(w,h)),w=h+n;continue}if(D==="/"){R=h;continue}}D==="["?x++:D==="]"&&x--}let L=u.length===0?a:a.substring(w),c=L.startsWith(pt),v=c?L.substring(1):L,S=R&&R>w?R-w:void 0;return{modifiers:u,hasImportantModifier:c,baseClassName:v,maybePostfixModifierPosition:S}};return o?a=>o({className:a,parseClassName:l}):l},co=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},mo=e=>({cache:so(e.cacheSize),parseClassName:lo(e),...oo(e)}),po=/\s+/,uo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,n=[],l=e.trim().split(po),a="";for(let u=l.length-1;u>=0;u-=1){let x=l[u],{modifiers:w,hasImportantModifier:R,baseClassName:L,maybePostfixModifierPosition:c}=o(x),v=!!c,S=r(v?L.substring(0,c):L);if(!S){if(!v){a=x+(a.length>0?" "+a:a);continue}if(S=r(L),!S){a=x+(a.length>0?" "+a:a);continue}v=!1}let h=co(w).join(":"),D=R?h+pt:h,H=D+S;if(n.includes(H))continue;n.push(H);let F=s(S,v);for(let B=0;B<F.length;++B){let U=F[B];n.push(D+U)}a=x+(a.length>0?" "+a:a)}return a};function fo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ut(t))&&(r&&(r+=" "),r+=o);return r}var ut=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ut(e[r]))&&(o&&(o+=" "),o+=t);return o};function go(e,...t){let o,r,s,n=l;function l(u){let x=t.reduce((w,R)=>R(w),e());return o=mo(x),r=o.cache.get,s=o.cache.set,n=a,a(u)}function a(u){let x=r(u);if(x)return x;let w=uo(u,o);return s(u,w),w}return function(){return n(fo.apply(null,arguments))}}var N=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},ft=/^\[(?:([a-wt-]+):)?(.+)\]$/wt,bo=/^\wt+\/\wt+$/,vo=new Set(["px","full","screen"]),ho=/^(\wt+(\.\wt+)?)?(xs|sm|md|lg|xl)$/,xo=/\wt+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|wt|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yo=/^(inset_)?-?((\wt+)?\.?(\wt+)[a-wt]+|0)_-?((\wt+)?\.?(\wt+)[a-wt]+|0)/,No=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,q=e=>fe(e)||vo.has(e)||bo.test(e),Y=e=>ge(e,"length",Mo),fe=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>ge(e,"number",fe),ye=e=>!!e&&Number.isInteger(Number(e)),Co=e=>e.endsWith("%")&&fe(e.slice(0,-1)),p=e=>ft.test(e),ee=e=>ho.test(e),Po=new Set(["length","size","percentage"]),Ro=e=>ge(e,Po,gt),So=e=>ge(e,"position",gt),Do=new Set(["image","url"]),To=e=>ge(e,Do,Ao),ko=e=>ge(e,"",Io),Ne=()=>!0,ge=(e,t,o)=>{let r=ft.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Mo=e=>xo.test(e)&&!wo.test(e),gt=()=>!1,Io=e=>yo.test(e),Ao=e=>No.test(e);var zo=()=>{let e=N("colors"),t=N("spacing"),o=N("blur"),r=N("brightness"),s=N("borderColor"),n=N("borderRadius"),l=N("borderSpacing"),a=N("borderWidth"),u=N("contrast"),x=N("grayscale"),w=N("hueRotate"),R=N("invert"),L=N("gap"),c=N("gradientColorStops"),v=N("gradientColorStopPositions"),S=N("inset"),h=N("margin"),D=N("opacity"),H=N("padding"),F=N("saturate"),B=N("scale"),U=N("sepia"),V=N("skew"),Z=N("space"),b=N("translate"),ae=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],Ee=()=>["auto",p,t],C=()=>[p,t],at=()=>["",q,Y],Se=()=>["auto",fe,p],it=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],De=()=>["solid","dashed","dotted","double","none"],nt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Be=()=>["start","end","center","between","around","evenly","stretch"],we=()=>["","0",p],st=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>[fe,p];return{cacheSize:500,separator:":",theme:{colors:[Ne],spacing:[q,Y],blur:["none","",ee,p],brightness:_(),borderColor:[e],borderRadius:["none","","full",ee,p],borderSpacing:C(),borderWidth:at(),contrast:_(),grayscale:we(),hueRotate:_(),invert:we(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[Co,Y],inset:Ee(),margin:Ee(),opacity:_(),padding:C(),saturate:_(),scale:_(),sepia:we(),skew:_(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[ee]}],"break-after":[{"break-after":st()}],"break-before":[{"break-before":st()}],"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:[...it(),p]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-wt":[{"overflow-wt":ie()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-wt":[{"overscroll-wt":ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-wt":[{"inset-wt":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],wt:[{wt:["auto",ye,p]}],basis:[{basis:Ee()}],"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:we()}],shrink:[{shrink:we()}],order:[{order:["first","last","none",ye,p]}],"grid-cols":[{"grid-cols":[Ne]}],"col-start-end":[{col:["auto",{span:["full",ye,p]},p]}],"col-start":[{"col-start":Se()}],"col-end":[{"col-end":Se()}],"grid-rows":[{"grid-rows":[Ne]}],"row-start-end":[{row:["auto",{span:[ye,p]},p]}],"row-start":[{"row-start":Se()}],"row-end":[{"row-end":Se()}],"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:[L]}],"gap-x":[{"gap-x":[L]}],"gap-wt":[{"gap-wt":[L]}],"justify-content":[{justify:["normal",...Be()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Be(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Be(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],j:[{j:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],wt:[{wt:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[Z]}],"space-x-reverse":["space-x-reverse"],"space-wt":[{"space-wt":[Z]}],"space-wt-reverse":["space-wt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[ee]},ee]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ee,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ve]}],"font-family":[{font:[Ne]}],"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,Ve]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",q,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":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",q,Y]}],"underline-offset":[{"underline-offset":["auto",q,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:C()}],"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":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...it(),So]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","wt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ro]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},To]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-It":[{"rounded-It":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-wt":[{"border-wt":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[D]}],"border-style":[{border:[...De(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-wt":[{"divide-wt":[a]}],"divide-wt-reverse":["divide-wt-reverse"],"divide-opacity":[{"divide-opacity":[D]}],"divide-style":[{divide:De()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-wt":[{"border-wt":[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:["",...De()]}],"outline-offset":[{"outline-offset":[q,p]}],"outline-w":[{outline:[q,Y]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:at()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[q,Y]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ee,ko]}],"shadow-color":[{shadow:[Ne]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...nt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":nt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",ee,p]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[R]}],saturate:[{saturate:[F]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[R]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-wt":[{"border-spacing-wt":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:_()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:_()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-wt":[{"scale-wt":[B]}],rotate:[{rotate:[ye,p]}],"translate-x":[{"translate-x":[b]}],"translate-wt":[{"translate-wt":[b]}],"skew-x":[{"skew-x":[V]}],"skew-wt":[{"skew-wt":[V]}],"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","w-resize","ne-resize","nw-resize","It-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","wt","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-wt":[{"scroll-wt":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-j":[{"scroll-j":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","wt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-wt":[{"touch-pan":["wt","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-w":[{stroke:[q,Y,Ve]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-wt"],overscroll:["overscroll-x","overscroll-wt"],inset:["inset-x","inset-wt","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-wt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-wt"],p:["px","py","ps","j","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","wt","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-It","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-It","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-wt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-wt":["border-w-t","border-w-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-wt":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-wt","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-j","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-wt","touch-pz"],"touch-x":["touch"],"touch-wt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var bt=go(zo);function m(...e){return bt((0,vt.clsx)(e))}var wt=require("react/jsx-runtime"),Lo=(0,ht.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 xt({className:e,variant:t,...o}){return(0,wt.jsx)("div",{className:m(Lo({variant:t}),e),...o})}var yt=require("@radix-ui/react-slot"),Ct=W(require("react")),Fo=(0,ht.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),E=Ct.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},n)=>(0,wt.jsx)(e?yt.Slot:"button",{className:m(Fo({className:t,size:o,variant:r})),ref:n,...s}));E.displayName="Button";function Rt(e,t){let[o,r]=(0,It.useState)(()=>{if(typeof window>"u")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),s=n=>{try{r(n),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,It.useEffect)(()=>{s(o)},[]),[o,s]}var Me=require("react-icons/fa");function ne({title:e,description:t,badge:o,primaryAction:r,secondaryAction:s,gradient:n,children:l,className:a}){let[u,x]=Rt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!t),w=!s&&!t||u;return(0,wt.jsxs)(St.motion.div,{initial:{opacity:0,wt:20},animate:{opacity:1,wt:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} p-8 text-white ${a||""}`,children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,wt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,wt.jsx)(xt,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,wt.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,wt.jsxs)("div",{className:"flex items-center gap-3",children:[w&&r&&(0,wt.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(s||t)&&(0,wt.jsx)("button",{"aria-label":u?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>x(!u),style:{lineHeight:0},children:u?(0,wt.jsx)(Me.FaChevronDown,{size:22}):(0,wt.jsx)(Me.FaChevronUp,{size:22})})]})]}),!w&&(0,wt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,wt.jsxs)("div",{className:"space-wt-4",children:[(0,wt.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,wt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,wt.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),s&&(0,wt.jsx)(E,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),l&&(0,wt.jsx)("div",{className:"hidden lg:block",children:l})]})]})}var j=require("lucide-react");var Dt=W(require("react"));var Ce=Dt.forwardRef(({className:e,type:t,...o},r)=>(0,wt.jsx)("input",{type:t,className:m("flex h-9 w-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:r,...o}));Ce.displayName="Input";var Ge=W(require("react")),O=W(require("@radix-ui/react-scroll-area"));var We=Ge.forwardRef(({className:e,children:t,...o},r)=>(0,wt.jsxs)(O.Root,{ref:r,className:m("relative overflow-hidden",e),...o,children:[(0,wt.jsx)(O.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,wt.jsx)(kt,{}),(0,wt.jsx)(O.Corner,{})]}));We.displayName=O.Root.displayName;var kt=Ge.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,wt.jsx)(O.ScrollAreaScrollbar,{ref:r,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,wt.jsx)(O.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));kt.displayName=O.ScrollAreaScrollbar.displayName;function Mt({label:e,documents:t,children:o,level:r,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:l=!0}){let[a,u]=(0,It.useState)(r===0),x=o&&Object.keys(o).length>0,w=t.length+(o?Object.values(o).reduce((c,v)=>c+v.documents.length,0):0),R=c=>{switch(c){case"markdown":case"mdx":return(0,wt.jsx)(j.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,wt.jsx)(j.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,wt.jsx)(j.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},L=c=>{let v=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return v[c%v.length]};return(0,wt.jsxs)("div",{className:"space-wt-1",children:[(x||t.length>0)&&(0,wt.jsxs)(St.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${a?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${r*20}px`},onClick:()=>u(!a),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,wt.jsx)("div",{className:`w-1 h-6 rounded-full ${L(r)}`}),(0,wt.jsx)(St.motion.div,{animate:{rotate:a?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,wt.jsx)(j.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,wt.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,wt.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,wt.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),l&&w>0&&(0,wt.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,wt.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:w})})]})]}),(0,wt.jsx)(St.motion.div,{initial:!1,animate:{height:a?"auto":0,opacity:a?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,wt.jsxs)("div",{className:"pt-2 space-wt-1",children:[t.map((c,v)=>(0,wt.jsxs)(St.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:v*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===c.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${r*20+20}px`},onClick:()=>s?.(c),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,wt.jsx)("div",{className:"flex-shrink-0",children:R(c.format)}),(0,wt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,wt.jsx)("p",{className:`text-sm truncate transition-colors ${n===c.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:c.title}),c.description&&(0,wt.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:c.description})]}),c.tags&&c.tags.length>0&&(0,wt.jsx)("div",{className:"flex-shrink-0",children:(0,wt.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:c.tags[0]})})]},c.id)),o&&Object.entries(o).map(([c,v])=>(0,wt.jsx)(Mt,{label:c,documents:v.documents,children:v.children,level:r+1,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:l},c))]})})]})}function Ho({document:e}){let t=r=>{switch(r){case"markdown":case"mdx":return(0,wt.jsx)(j.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,wt.jsx)(j.File,{className:"h-6 w-6 text-success"});default:return(0,wt.jsx)(j.File,{className:"h-6 w-6 text-muted-foreground"})}},o=r=>{switch(r){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}};return(0,wt.jsxs)(St.motion.div,{initial:{opacity:0,wt:20},animate:{opacity:1,wt:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,wt.jsx)("div",{className:"border-b border-border bg-card p-8",children:(0,wt.jsxs)("div",{className:"flex items-start gap-4",children:[(0,wt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:t(e.format)}),(0,wt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,wt.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,wt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description}),(0,wt.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,wt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${o(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(r=>(0,wt.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",r]},r))]})]})]})}),(0,wt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,wt.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,wt.jsxs)("div",{className:"mb-6",children:[(0,wt.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,wt.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,wt.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-wt-1 text-xs",children:Object.entries(e.metadata).map(([r,s])=>(0,wt.jsxs)("div",{className:"flex gap-1",children:[(0,wt.jsxs)("span",{className:"text-muted-foreground font-medium",children:[r.replace(/([A-Z])/g," $1").trim(),":"]}),(0,wt.jsx)("span",{className:"text-foreground truncate",children:String(s)})]},r))})})]}),(0,wt.jsx)("div",{className:"space-wt-4",children:e.content?(0,wt.jsxs)("div",{className:"relative",children:[(0,wt.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,wt.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,wt.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,wt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,wt.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,wt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,wt.jsx)(j.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,wt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,wt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function Ie({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:r,selectedDocumentId:s,className:n}){let[l,a]=(0,It.useState)(""),[u,x]=(0,It.useState)(null),w=(0,It.useMemo)(()=>l?e.filter(c=>c.title.toLowerCase().includes(l.toLowerCase())||c.description?.toLowerCase().includes(l.toLowerCase())||c.tags?.some(v=>v.toLowerCase().includes(l.toLowerCase()))||Object.values(c.metadata||{}).some(v=>String(v).toLowerCase().includes(l.toLowerCase()))):e,[e,l]),R=(0,It.useMemo)(()=>{let c=(v,S)=>{if(S.length===0)return{};let[h,...D]=S;return v.reduce((F,B)=>{let U=B.metadata?.[h]||"Uncategorized",V=String(U);if(F[V]||(F[V]={documents:[],children:{}}),D.length===0)F[V].documents.push(B);else{let Z=c([B],D),b=Object.keys(Z)[0];b&&(F[V].children||(F[V].children={}),F[V].children[b]?F[V].children[b].documents.push(...Z[b].documents):F[V].children[b]=Z[b])}return F},{})};return c(w,t.groupBy)},[w,t.groupBy]),L=c=>{x(c),o?.(c)};return(0,wt.jsxs)("div",{className:`flex h-full ${n||""}`,children:[(0,wt.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,wt.jsx)("div",{className:"p-6 border-b border-border",children:(0,wt.jsxs)("div",{className:"relative",children:[(0,wt.jsx)("div",{className:"absolute inset-wt-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,wt.jsx)(j.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,wt.jsx)(Ce,{placeholder:"Search knowledge base...",value:l,onChange:c=>a(c.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,wt.jsx)(We,{className:"h-[calc(100%-100px)]",children:(0,wt.jsxs)("div",{className:"p-4 space-wt-3",children:[Object.entries(R).map(([c,v])=>(0,wt.jsx)(Mt,{label:c,documents:v.documents,children:v.children,level:0,onDocumentClick:L,selectedDocumentId:s,showDocumentCount:t.showDocumentCount},c)),Object.keys(R).length===0&&(0,wt.jsxs)(St.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,wt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,wt.jsx)(j.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,wt.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,wt.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,wt.jsx)("div",{className:"flex-1 bg-background",children:u?(0,wt.jsx)(Ho,{document:u}):(0,wt.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,wt.jsxs)(St.motion.div,{initial:{opacity:0,wt:20},animate:{opacity:1,wt:0},transition:{duration:.4},className:"max-w-sm",children:[(0,wt.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,wt.jsx)(j.FileText,{className:"h-10 w-10 text-primary"})}),(0,wt.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,wt.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function Oe({documents:e=[],contexts:t=[],onDocumentClick:o=l=>console.log("Document clicked:",l),onDocumentShare:r=l=>console.log("Share document:",l),onLoadDocumentContent:s,selectedDocumentId:n}){let[l,a]=(0,It.useState)(t[0]);return!t||t.length===0?(0,wt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,wt.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,wt.jsx)(ne,{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,wt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,wt.jsx)("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,wt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,wt.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,wt.jsx)(ne,{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,wt.jsxs)("div",{className:"mt-6",children:[(0,wt.jsx)("div",{className:"border-b border-border",children:(0,wt.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(u=>(0,wt.jsxs)("button",{onClick:()=>a(u),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${l.id===u.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[u.icon,u.label]},u.id))})}),l.description&&(0,wt.jsx)("div",{className:"mt-3 px-1",children:(0,wt.jsx)("p",{className:"text-sm text-muted-foreground",children:l.description})})]})]}),(0,wt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,wt.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,wt.jsx)(Ie,{documents:e,menuConfig:l.menuConfig,onDocumentClick:o,onDocumentShare:r,selectedDocumentId:n})})})]})}var le=W(require("react"));var J=le.forwardRef(({className:e,...t},o)=>(0,wt.jsx)("div",{ref:o,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));J.displayName="Card";var de=le.forwardRef(({className:e,...t},o)=>(0,wt.jsx)("div",{ref:o,className:m("flex flex-col space-wt-1.5 p-6",e),...t}));de.displayName="CardHeader";var ce=le.forwardRef(({className:e,...t},o)=>(0,wt.jsx)("div",{ref:o,className:m("font-semibold leading-none tracking-tight",e),...t}));ce.displayName="CardTitle";var $e=le.forwardRef(({className:e,...t},o)=>(0,wt.jsx)("div",{ref:o,className:m("text-sm text-muted-foreground",e),...t}));$e.displayName="CardDescription";var Q=le.forwardRef(({className:e,...t},o)=>(0,wt.jsx)("div",{ref:o,className:m("p-6 pt-0",e),...t}));Q.displayName="CardContent";var Ue=le.forwardRef(({className:e,...t},o)=>(0,wt.jsx)("div",{ref:o,className:m("flex items-center p-6 pt-0",e),...t}));Ue.displayName="CardFooter";function Ae({team:e,onOpen:t,className:o}){return(0,wt.jsx)(St.motion.div,{whileHover:{scale:1.02,wt:-5},whileTap:{scale:.98},className:o,children:(0,wt.jsxs)(J,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,wt.jsxs)(de,{children:[(0,wt.jsx)(ce,{className:"text-lg",children:e.name}),(0,wt.jsx)($e,{className:"mt-1 text-sm",children:e.description})]}),(0,wt.jsxs)(Q,{className:"space-wt-4",children:[(0,wt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,wt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,wt.jsx)(j.Users,{className:"h-4 w-4 text-blue-500"}),(0,wt.jsx)("span",{children:"Human"})]}),(0,wt.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,wt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,wt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,wt.jsx)(j.Bot,{className:"h-4 w-4 text-purple-500"}),(0,wt.jsx)("span",{children:"Digital"})]}),(0,wt.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,wt.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,wt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,wt.jsx)(j.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,wt.jsx)("span",{children:"Projects"})]}),(0,wt.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,wt.jsx)(Ue,{className:"flex gap-2",children:(0,wt.jsx)(E,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}var Pe=W(require("react")),A=W(require("@radix-ui/react-dialog"));var Lt=A.Root;var Eo=A.Portal;var Ft=Pe.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(A.Overlay,{ref:o,className:m("fixed inset-0 wt-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}));Ft.displayName=A.Overlay.displayName;var _e=Pe.forwardRef(({className:e,children:t,...o},r)=>(0,wt.jsxs)(Eo,{children:[(0,wt.jsx)(Ft,{}),(0,wt.jsxs)(A.Content,{ref:r,className:m("fixed left-[50%] top-[50%] wt-50 grid w-full max-w-lg translate-x-[-50%] translate-wt-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,wt.jsxs)(A.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,wt.jsx)(j.X,{className:"h-4 w-4"}),(0,wt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));_e.displayName=A.Content.displayName;var qe=({className:e,...t})=>(0,wt.jsx)("div",{className:m("flex flex-col space-wt-1.5 text-center sm:text-left",e),...t});qe.displayName="DialogHeader";var Bo=({className:e,...t})=>(0,wt.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Bo.displayName="DialogFooter";var Je=Pe.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(A.Title,{ref:o,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));Je.displayName=A.Title.displayName;var Qe=Pe.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(A.Description,{ref:o,className:m("text-sm text-muted-foreground",e),...t}));Qe.displayName=A.Description.displayName;function Xe({teams:e=[],onCreateTeam:t,onTeamOpen:o}){let[r,s]=(0,It.useState)(!1),n=()=>{s(!0),t?.()},l=a=>{o?.(a)};return(0,wt.jsxs)("div",{className:"px-2 md:px-4 py-4 space-wt-8",children:[(0,wt.jsx)(St.AnimatePresence,{mode:"wait",children:(0,wt.jsxs)(St.motion.div,{initial:{opacity:0,wt:10},animate:{opacity:1,wt:0},exit:{opacity:0,wt:-10},transition:{duration:.2},children:[(0,wt.jsx)(ne,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-to-r from-blue-600 via-cyan-600 to-teal-600",primaryAction:{label:"Create Team",onClick:n}}),(0,wt.jsxs)("section",{className:"space-wt-4 mt-8",children:[(0,wt.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,wt.jsxs)("div",{className:"text-center py-12",children:[(0,wt.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,wt.jsx)("p",{className:"text-muted-foreground text-sm mt-2",children:"Create a new team or ask to j added to an existing one."})]}):(0,wt.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(a=>(0,wt.jsx)(Ae,{team:a,onOpen:l},a.id))})]})]},"teams-index-view")}),(0,wt.jsx)(Lt,{open:r,onOpenChange:s,children:(0,wt.jsxs)(_e,{className:"max-w-3xl max-h-[90vh] overflow-wt-auto",children:[(0,wt.jsxs)(qe,{children:[(0,wt.jsx)(Je,{children:"Create New Team"}),(0,wt.jsx)(Qe,{children:"Set up a new team to collaborate with colleagues on projects."})]}),(0,wt.jsx)("div",{className:"p-6 text-center text-muted-foreground",children:(0,wt.jsx)("p",{children:"Team creation form coming soon..."})})]})})]})}var f=W(require("@radix-ui/react-select")),re=W(require("react")),Et=f.Root;var Bt=f.Value,Ze=re.forwardRef(({children:e,className:t,...o},r)=>(0,wt.jsxs)(f.Trigger,{className:m("flex h-10 w-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:r,...o,children:[e,(0,wt.jsx)(f.Icon,{asChild:!0,children:(0,wt.jsx)(j.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ze.displayName=f.Trigger.displayName;var Vt=re.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(f.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,wt.jsx)(j.ChevronUp,{className:"h-4 w-4"})}));Vt.displayName=f.ScrollUpButton.displayName;var jt=re.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(f.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,wt.jsx)(j.ChevronDown,{className:"h-4 w-4"})}));jt.displayName=f.ScrollDownButton.displayName;var Ye=re.forwardRef(({children:e,className:t,position:o="popper",...r},s)=>(0,wt.jsx)(f.Portal,{children:(0,wt.jsxs)(f.Content,{className:m("relative wt-50 max-h-96 min-w-[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-wt-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-wt-1",t),position:o,ref:s,...r,children:[(0,wt.jsx)(Vt,{}),(0,wt.jsx)(f.Viewport,{className:m("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,wt.jsx)(jt,{})]})}));Ye.displayName=f.Content.displayName;var Vo=re.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(f.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Vo.displayName=f.Label.displayName;var Le=re.forwardRef(({children:e,className:t,...o},r)=>(0,wt.jsxs)(f.Item,{className:m("relative flex w-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:r,...o,children:[(0,wt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,wt.jsx)(f.ItemIndicator,{children:(0,wt.jsx)(j.Check,{className:"h-4 w-4"})})}),(0,wt.jsx)(f.ItemText,{children:e})]}));Le.displayName=f.Item.displayName;var jo=re.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(f.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));jo.displayName=f.Separator.displayName;var ue=W(require("@radix-ui/react-tabs"));function Kt({className:e,...t}){return(0,wt.jsx)(ue.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2",e),...t})}function Gt({className:e,...t}){return(0,wt.jsx)(ue.List,{"data-slot":"tabs-list",className:m("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Wt({className:e,...t}){return(0,wt.jsx)(ue.Trigger,{"data-slot":"tabs-trigger",className:m("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var X=W(require("react")),g=W(require("@radix-ui/react-dropdown-menu")),ve=require("@radix-ui/react-icons");var Ot=g.Root,$t=g.Trigger;var Ko=X.forwardRef(({className:e,inset:t,children:o,...r},s)=>(0,wt.jsxs)(g.SubTrigger,{ref:s,className:m("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),...r,children:[o,(0,wt.jsx)(ve.ChevronRightIcon,{className:"ml-auto"})]}));Ko.displayName=g.SubTrigger.displayName;var Go=X.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(g.SubContent,{ref:o,className:m("wt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Go.displayName=g.SubContent.displayName;var et=X.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,wt.jsx)(g.Portal,{children:(0,wt.jsx)(g.Content,{ref:r,sideOffset:t,className:m("wt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));et.displayName=g.Content.displayName;var tt=X.forwardRef(({className:e,inset:t,...o},r)=>(0,wt.jsx)(g.Item,{ref:r,className:m("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}));tt.displayName=g.Item.displayName;var Wo=X.forwardRef(({className:e,children:t,checked:o,...r},s)=>(0,wt.jsxs)(g.CheckboxItem,{ref:s,className:m("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,...r,children:[(0,wt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,wt.jsx)(g.ItemIndicator,{children:(0,wt.jsx)(ve.CheckIcon,{className:"h-4 w-4"})})}),t]}));Wo.displayName=g.CheckboxItem.displayName;var Oo=X.forwardRef(({className:e,children:t,...o},r)=>(0,wt.jsxs)(g.RadioItem,{ref:r,className:m("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,wt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,wt.jsx)(g.ItemIndicator,{children:(0,wt.jsx)(ve.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Oo.displayName=g.RadioItem.displayName;var $o=X.forwardRef(({className:e,inset:t,...o},r)=>(0,wt.jsx)(g.Label,{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));$o.displayName=g.Label.displayName;var Uo=X.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(g.Separator,{ref:o,className:m("-mx-1 my-1 h-px bg-muted",e),...t}));Uo.displayName=g.Separator.displayName;var _o=({className:e,...t})=>(0,wt.jsx)("span",{className:m("ml-auto text-xs tracking-widest opacity-60",e),...t});_o.displayName="DropdownMenuShortcut";function _t({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:s="700px",gridCols:n=6}){let l=o.find(a=>a.value===e);return(0,wt.jsxs)(St.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,wt:-20},animate:{opacity:1,wt:0},transition:{duration:.3,ease:"easeOut"},children:[(0,wt.jsx)("div",{className:"hidden md:block",children:(0,wt.jsx)(Kt,{value:e,onValueChange:t,children:(0,wt.jsx)(Gt,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:s,gridTemplateColumns:`repeat(${Math.min(n,o.length)}, minmax(0, 1fr))`},children:o.map(a=>(0,wt.jsx)(St.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,wt.jsx)(Wt,{value:a.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:a.label})},a.value))})})}),(0,wt.jsx)("div",{className:"md:hidden",children:(0,wt.jsxs)(Ot,{children:[(0,wt.jsx)($t,{asChild:!0,children:(0,wt.jsxs)(E,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[l?.label||"Select",(0,wt.jsx)(j.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,wt.jsx)(et,{align:"center",className:"w-[180px]",children:o.map(a=>(0,wt.jsx)(tt,{onClick:()=>t?.(a.value),className:`cursor-pointer ${e===a.value?"bg-accent":""}`,children:a.label},a.value))})]})})]})}function xe({files:e,onFileClick:t,onFileEdit:o,onFileDelete:r,showHeader:s=!0,className:n}){return(0,wt.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${n||""}`,children:[s&&(0,wt.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,wt.jsx)("div",{className:"col-span-6",children:"Name"}),(0,wt.jsx)("div",{className:"col-span-2",children:"Size"}),(0,wt.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,wt.jsx)("div",{className:"divide-wt",children:e.map(l=>(0,wt.jsxs)(St.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(l),children:[(0,wt.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,wt.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:l.icon}),(0,wt.jsx)("div",{children:(0,wt.jsx)("p",{className:"font-medium",children:l.name})})]}),(0,wt.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:l.size}),(0,wt.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,wt.jsx)("span",{className:"text-sm md:text-base",children:l.modified}),(0,wt.jsxs)("div",{className:"flex gap-1",children:[(0,wt.jsx)(E,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:a=>{a.stopPropagation(),o?.(l)},children:(0,wt.jsx)(j.Edit,{className:"h-4 w-4"})}),(0,wt.jsx)(E,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:a=>{a.stopPropagation(),r?.(l)},children:(0,wt.jsx)(j.Trash2,{className:"h-4 w-4"})}),(0,wt.jsx)(E,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:(0,wt.jsx)(j.MoreHorizontal,{className:"h-4 w-4"})})]})]})]},l.name))})]})}function rt({initialFiles:e=[],onFileAdd:t,onFileEdit:o,onFileDelete:r,onFileClick:s,compactView:n=!1,className:l}){let[a,u]=(0,It.useState)(e),[x,w]=(0,It.useState)(""),[R,L]=(0,It.useState)("all"),[c,v]=(0,It.useState)("all"),S=Array.from(new Set(a.map(b=>b.app))),h=a.filter(b=>{let ae=b.name.toLowerCase().includes(x.toLowerCase()),ie=R==="all"||b.app===R;return ae&&ie}),D=h.slice(0,10),H=h.filter(b=>b.shared),F=()=>{console.log("Add file clicked")},B=b=>{console.log("Edit file:",b.name),o?.(b)},U=b=>{u(ae=>ae.filter(ie=>ie.name!==b.name)),r?.(b.name)},V=b=>{console.log("File clicked:",b.name),s?.(b)},Z=()=>{w(""),L("all")};return(0,wt.jsx)("div",{className:"px-2 md:px-4 py-4 space-wt-8",children:(0,wt.jsx)(St.AnimatePresence,{mode:"wait",children:(0,wt.jsx)(St.motion.div,{initial:{opacity:0,wt:10},animate:{opacity:1,wt:0},exit:{opacity:0,wt:-10},transition:{duration:.2},children:(0,wt.jsxs)("div",{className:`space-wt-6 ${l||""}`,children:[(0,wt.jsx)(ne,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:F},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,wt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,wt.jsxs)(J,{children:[(0,wt.jsxs)(de,{className:"flex flex-row items-center justify-between space-wt-0 pb-2",children:[(0,wt.jsx)(ce,{className:"text-sm font-medium",children:"Total Files"}),(0,wt.jsx)($.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,wt.jsxs)(Q,{children:[(0,wt.jsx)("div",{className:"text-2xl font-bold",children:a.length}),(0,wt.jsxs)("p",{className:"text-xs text-muted-foreground",children:[a.filter(b=>b.shared).length," shared"]})]})]}),(0,wt.jsxs)(J,{children:[(0,wt.jsxs)(de,{className:"flex flex-row items-center justify-between space-wt-0 pb-2",children:[(0,wt.jsx)(ce,{className:"text-sm font-medium",children:"Storage Used"}),(0,wt.jsx)($.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,wt.jsxs)(Q,{children:[(0,wt.jsx)("div",{className:"text-2xl font-bold",children:"2.4 GB"}),(0,wt.jsx)("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),(0,wt.jsxs)(J,{children:[(0,wt.jsxs)(de,{className:"flex flex-row items-center justify-between space-wt-0 pb-2",children:[(0,wt.jsx)(ce,{className:"text-sm font-medium",children:"Recent Activity"}),(0,wt.jsx)($.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,wt.jsxs)(Q,{children:[(0,wt.jsx)("div",{className:"text-2xl font-bold",children:"12"}),(0,wt.jsx)("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),(0,wt.jsx)(J,{children:(0,wt.jsx)(Q,{className:"pt-6",children:(0,wt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,wt.jsx)("div",{className:"flex-1",children:(0,wt.jsxs)("div",{className:"relative",children:[(0,wt.jsx)($.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,wt.jsx)(Ce,{placeholder:"Search files...",value:x,onChange:b=>w(b.target.value),className:"pl-9"})]})}),(0,wt.jsxs)(Et,{value:R,onValueChange:L,children:[(0,wt.jsx)(Ze,{className:"w-full md:w-[180px]",children:(0,wt.jsx)(Bt,{placeholder:"Filter by app"})}),(0,wt.jsxs)(Ye,{children:[(0,wt.jsx)(Le,{value:"all",children:"All Apps"}),S.map(b=>(0,wt.jsx)(Le,{value:b,children:b},b))]})]}),(x||R!=="all")&&(0,wt.jsxs)(E,{variant:"outline",onClick:Z,className:"gap-2",children:[(0,wt.jsx)($.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,wt.jsxs)("div",{className:"space-wt-4",children:[(0,wt.jsx)(_t,{activeTab:c,onTabChange:v,tabOptions:[{value:"all",label:`All Files (${h.length})`},{value:"recent",label:`Recent (${D.length})`},{value:"shared",label:`Shared (${H.length})`}],maxWidth:"500px",gridCols:3}),c==="all"&&(0,wt.jsx)(xe,{files:h,onFileClick:V,onFileEdit:B,onFileDelete:U,showHeader:!n}),c==="recent"&&(0,wt.jsx)(xe,{files:D,onFileClick:V,onFileEdit:B,onFileDelete:U,showHeader:!n}),c==="shared"&&(0,wt.jsx)(xe,{files:H,onFileClick:V,onFileEdit:B,onFileDelete:U,showHeader:!n})]}),h.length===0&&(0,wt.jsx)(J,{children:(0,wt.jsx)(Q,{className:"pt-6",children:(0,wt.jsxs)("div",{className:"text-center py-8",children:[(0,wt.jsx)($.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,wt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,wt.jsx)("p",{className:"text-muted-foreground mb-4",children:x||R!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),(0,wt.jsxs)(E,{onClick:F,className:"gap-2",children:[(0,wt.jsx)($.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}0&&(module.exports={FileList,FileView,KnowledgeBrowser,KnowledgeView,TeamCard,TeamsIndexView});
5
+ "use strict";var lo=Object.create;var Ae=Object.defineProperty;var co=Object.getOwnPropertyDescriptor;var mo=Object.getOwnPropertyNames;var po=Object.getPrototypeOf,uo=Object.prototype.hasOwnProperty;var fo=(e,t)=>{for(var o in t)Ae(e,o,{get:t[o],enumerable:!0})},ft=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mo(t))!uo.call(e,i)&&i!==o&&Ae(e,i,{get:()=>t[i],enumerable:!(r=co(t,i))||r.enumerable});return e};var G=(e,t,o)=>(o=e!=null?lo(po(e)):{},ft(t||!e||!e.__esModule?Ae(o,"default",{value:e,enumerable:!0}):o,e)),go=e=>ft(Ae({},"__esModule",{value:!0}),e);var nr={};fo(nr,{FileList:()=>Pe,FileView:()=>dt,KnowledgeBrowser:()=>He,KnowledgeView:()=>Xe,TeamCard:()=>Be,TeamsIndexView:()=>rt});module.exports=go(nr);var Ot=require("react");var It=require("framer-motion");var Pt=require("class-variance-authority");var Ct=require("clsx");var _e="-",bo=e=>{let t=xo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let a=s.split(_e);return a[0]===""&&a.length!==1&&a.shift(),vt(a,t)||vo(s)},getConflictingClassGroupIds:(s,a)=>{let d=o[s]||[];return a&&r[s]?[...d,...r[s]]:d}}},vt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?vt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let n=e.join(_e);return t.validators.find(({validator:s})=>s(n))?.classGroupId},gt=/^\[(.+)\]$/,vo=e=>{if(gt.test(e)){let t=gt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},xo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return wo(Object.entries(e.classGroups),o).forEach(([n,s])=>{Ue(s,r,n,t)}),r},Ue=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?t:bt(t,i);n.classGroupId=o;return}if(typeof i=="function"){if(ho(i)){Ue(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([n,s])=>{Ue(s,bt(t,n),o,r)})})},bt=(e,t)=>{let o=e;return t.split(_e).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},ho=e=>e.isThemeGetter,wo=(e,t)=>t?e.map(([o,r])=>{let i=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,a])=>[t+s,a])):n);return[o,i]}):e,yo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(n,s)=>{o.set(n,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let s=o.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return i(n,s),s},set(n,s){o.has(n)?o.set(n,s):i(n,s)}}},xt="!",No=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],n=t.length,s=a=>{let d=[],p=0,N=0,k;for(let b=0;b<a.length;b++){let T=a[b];if(p===0){if(T===i&&(r||a.slice(b,b+n)===t)){d.push(a.slice(N,b)),N=b+n;continue}if(T==="/"){k=b;continue}}T==="["?p++:T==="]"&&p--}let z=d.length===0?a:a.substring(N),g=z.startsWith(xt),R=g?z.substring(1):z,h=k&&k>N?k-N:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:R,maybePostfixModifierPosition:h}};return o?a=>o({className:a,parseClassName:s}):s},Co=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Po=e=>({cache:yo(e.cacheSize),parseClassName:No(e),...bo(e)}),Ro=/\s+/,Do=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,n=[],s=e.trim().split(Ro),a="";for(let d=s.length-1;d>=0;d-=1){let p=s[d],{modifiers:N,hasImportantModifier:k,baseClassName:z,maybePostfixModifierPosition:g}=o(p),R=!!g,h=r(R?z.substring(0,g):z);if(!h){if(!R){a=p+(a.length>0?" "+a:a);continue}if(h=r(z),!h){a=p+(a.length>0?" "+a:a);continue}R=!1}let b=Co(N).join(":"),T=k?b+xt:b,K=T+h;if(n.includes(K))continue;n.push(K);let U=i(h,R);for(let O=0;O<U.length;++O){let B=U[O];n.push(T+B)}a=p+(a.length>0?" "+a:a)}return a};function So(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ht(t))&&(r&&(r+=" "),r+=o);return r}var ht=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ht(e[r]))&&(o&&(o+=" "),o+=t);return o};function To(e,...t){let o,r,i,n=s;function s(d){let p=t.reduce((N,k)=>k(N),e());return o=Po(p),r=o.cache.get,i=o.cache.set,n=a,a(d)}function a(d){let p=r(d);if(p)return p;let N=Do(d,o);return i(d,N),N}return function(){return n(So.apply(null,arguments))}}var P=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},wt=/^\[(?:([a-z-]+):)?(.+)\]$/i,ko=/^\d+\/\d+$/,Mo=new Set(["px","full","screen"]),Io=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ao=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>xe(e)||Mo.has(e)||ko.test(e),oe=e=>he(e,"length",Wo),xe=e=>!!e&&!Number.isNaN(Number(e)),$e=e=>he(e,"number",xe),De=e=>!!e&&Number.isInteger(Number(e)),Fo=e=>e.endsWith("%")&&xe(e.slice(0,-1)),u=e=>wt.test(e),re=e=>Io.test(e),Ho=new Set(["length","size","percentage"]),Bo=e=>he(e,Ho,yt),Ko=e=>he(e,"position",yt),Vo=new Set(["image","url"]),jo=e=>he(e,Vo,$o),Go=e=>he(e,"",Oo),Se=()=>!0,he=(e,t,o)=>{let r=wt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Wo=e=>Ao.test(e)&&!zo.test(e),yt=()=>!1,Oo=e=>Lo.test(e),$o=e=>Eo.test(e);var Uo=()=>{let e=P("colors"),t=P("spacing"),o=P("blur"),r=P("brightness"),i=P("borderColor"),n=P("borderRadius"),s=P("borderSpacing"),a=P("borderWidth"),d=P("contrast"),p=P("grayscale"),N=P("hueRotate"),k=P("invert"),z=P("gap"),g=P("gradientColorStops"),R=P("gradientColorStopPositions"),h=P("inset"),b=P("margin"),T=P("opacity"),K=P("padding"),U=P("saturate"),O=P("scale"),B=P("sepia"),X=P("skew"),ve=P("space"),w=P("translate"),_=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],We=()=>["auto",u,t],D=()=>[u,t],ct=()=>["",Z,oe],Me=()=>["auto",xe,u],mt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ie=()=>["solid","dashed","dotted","double","none"],pt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Oe=()=>["start","end","center","between","around","evenly","stretch"],Re=()=>["","0",u],ut=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[xe,u];return{cacheSize:500,separator:":",theme:{colors:[Se],spacing:[Z,oe],blur:["none","",re,u],brightness:Q(),borderColor:[e],borderRadius:["none","","full",re,u],borderSpacing:D(),borderWidth:ct(),contrast:Q(),grayscale:Re(),hueRotate:Q(),invert:Re(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Fo,oe],inset:We(),margin:We(),opacity:Q(),padding:D(),saturate:Q(),scale:Q(),sepia:Re(),skew:Q(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[re]}],"break-after":[{"break-after":ut()}],"break-before":[{"break-before":ut()}],"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:[...mt(),u]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-Rt":[{"overflow-Rt":j()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-Rt":[{"overscroll-Rt":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-Rt":[{"inset-Rt":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",De,u]}],basis:[{basis:We()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:Re()}],shrink:[{shrink:Re()}],order:[{order:["first","last","none",De,u]}],"grid-cols":[{"grid-cols":[Se]}],"col-start-end":[{col:["auto",{span:["full",De,u]},u]}],"col-start":[{"col-start":Me()}],"col-end":[{"col-end":Me()}],"grid-rows":[{"grid-rows":[Se]}],"row-start-end":[{row:["auto",{span:[De,u]},u]}],"row-start":[{"row-start":Me()}],"row-end":[{"row-end":Me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[z]}],"gap-x":[{"gap-x":[z]}],"gap-Rt":[{"gap-Rt":[z]}],"justify-content":[{justify:["normal",...Oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[K]}],px:[{px:[K]}],py:[{py:[K]}],ps:[{ps:[K]}],pe:[{pe:[K]}],pt:[{pt:[K]}],pr:[{pr:[K]}],pb:[{pb:[K]}],pl:[{pl:[K]}],Rt:[{Rt:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[ve]}],"space-x-reverse":["space-x-reverse"],"space-Rt":[{"space-Rt":[ve]}],"space-Rt-reverse":["space-Rt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[re]},re]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",re,oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$e]}],"font-family":[{font:[Se]}],"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",u]}],"line-clamp":[{"line-clamp":["none",xe,$e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Z,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ie(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Z,oe]}],"underline-offset":[{"underline-offset":["auto",Z,u]}],"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:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...mt(),Ko]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Rt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","Rt","tl"]},jo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-Rt":[{"rounded-Rt":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-Rt":[{"border-Rt":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-Rt":[{"border-Rt":[a]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...Ie(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-Rt":[{"divide-Rt":[a]}],"divide-Rt-reverse":["divide-Rt-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:Ie()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-Rt":[{"border-Rt":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-Rt":[{"border-Rt":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Ie()]}],"outline-offset":[{"outline-offset":[Z,u]}],"outline-w":[{outline:[Z,oe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ct()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[Z,oe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",re,Go]}],"shadow-color":[{shadow:[Se]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...pt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",re,u]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[k]}],saturate:[{saturate:[U]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-Rt":[{"border-spacing-Rt":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-Rt":[{"scale-Rt":[O]}],rotate:[{rotate:[De,u]}],"translate-x":[{"translate-x":[w]}],"translate-Rt":[{"translate-Rt":[w]}],"skew-x":[{"skew-x":[X]}],"skew-Rt":[{"skew-Rt":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],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","w-resize","q-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Rt","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Rt":[{"scroll-Rt":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Rt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Rt":[{"touch-pan":["Rt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Z,oe,$e]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Rt"],overscroll:["overscroll-x","overscroll-Rt"],inset:["inset-x","inset-Rt","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Rt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Rt"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Rt:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-Rt","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-Rt":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-Rt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-Rt"],"border-w-x":["border-w-r","border-w-Rt"],"border-w-Rt":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-Rt"],"border-color-x":["border-color-r","border-color-Rt"],"border-color-Rt":["border-color-t","border-color-b"],"scroll-Rt":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-Rt","touch-pz"],"touch-x":["touch"],"touch-Rt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Nt=To(Uo);function c(...e){return Nt((0,Ct.clsx)(e))}var Rt=require("react/jsx-runtime"),_o=(0,Pt.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 ze({className:e,variant:t,...o}){return(0,Rt.jsx)("div",{className:c(_o({variant:t}),e),...o})}var Dt=require("@radix-ui/react-slot"),Tt=G(require("react")),qo=(0,Pt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),M=Tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},n)=>(0,Rt.jsx)(e?Dt.Slot:"button",{className:c(qo({className:t,size:o,variant:r})),ref:n,...i}));M.displayName="Button";function Mt(e,t){let[o,r]=(0,Ot.useState)(()=>{if(typeof window>"u")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),i=n=>{try{r(n),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,Ot.useEffect)(()=>{i(o)},[]),[o,i]}var Ee=require("react-icons/fa");function le({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:n,children:s,className:a}){let[d,p]=Mt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!i&&!t),N=!i&&!t||d;return(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:20},animate:{opacity:1,Rt:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} p-8 text-white ${a||""}`,children:[(0,Rt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Rt.jsx)(ze,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Rt.jsx)("h2",{className:"text-3xl font-bold Rt-0",children:e})]}),(0,Rt.jsxs)("div",{className:"flex items-center gap-3",children:[N&&r&&(0,Rt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,Rt.jsx)("button",{"aria-label":d?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!d),style:{lineHeight:0},children:d?(0,Rt.jsx)(Ee.FaChevronDown,{size:22}):(0,Rt.jsx)(Ee.FaChevronUp,{size:22})})]})]}),!N&&(0,Rt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Rt.jsxs)("div",{className:"space-Rt-4",children:[(0,Rt.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Rt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Rt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,Rt.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),s&&(0,Rt.jsx)("div",{className:"hidden lg:block",children:s})]})]})}var q=require("lucide-react");var At=G(require("react"));var ae=At.forwardRef(({className:e,type:t,...o},r)=>(0,Rt.jsx)("input",{type:t,className:c("flex h-9 w-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:r,...o}));ae.displayName="Input";var qe=G(require("react")),$=G(require("@radix-ui/react-scroll-area"));var Je=qe.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)($.Root,{ref:r,className:c("relative overflow-hidden",e),...o,children:[(0,Rt.jsx)($.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Rt.jsx)(Lt,{}),(0,Rt.jsx)($.Corner,{})]}));Je.displayName=$.Root.displayName;var Lt=qe.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Rt.jsx)($.ScrollAreaScrollbar,{ref:r,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-Rt border-Rt-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Rt.jsx)($.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Lt.displayName=$.ScrollAreaScrollbar.displayName;var Et=G(require("react")),Fe=Et.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("textarea",{className:c("flex min-h-[80px] w-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}));Fe.displayName="Textarea";function Kt({document:e,onSave:t,onCancel:o}){let[r,i]=(0,Ot.useState)({...e,updatedAt:new Date}),n=()=>{t(r)},s=a=>{let d=a.split(",").map(p=>p.trim()).filter(p=>p.length>0);i(p=>({...p,tags:d}))};return(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:20},animate:{opacity:1,Rt:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Rt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,Rt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Rt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Rt.jsx)(q.Edit3,{className:"h-6 w-6 text-primary"})}),(0,Rt.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,Rt.jsxs)("div",{className:"flex gap-2",children:[(0,Rt.jsxs)(M,{variant:"outline",size:"sm",onClick:o,className:"gap-2",children:[(0,Rt.jsx)(q.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Rt.jsxs)(M,{size:"sm",onClick:n,className:"gap-2",children:[(0,Rt.jsx)(q.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Rt.jsxs)("div",{className:"space-Rt-4",children:[(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,Rt.jsx)(ae,{value:r.title,onChange:a=>i(d=>({...d,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,Rt.jsx)(Fe,{value:r.description||"",onChange:a=>i(d=>({...d,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Tags (comma-separated)"}),(0,Rt.jsx)(ae,{value:r.tags?.join(", ")||"",onChange:a=>s(a.target.value),placeholder:"tag1, tag2, tag3..."})]}),(0,Rt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Rt.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Rt.jsx)(ze,{variant:"secondary",className:"font-mono",children:r.format.toUpperCase()})]})]})]}),(0,Rt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Rt.jsxs)("div",{className:"p-8",children:[(0,Rt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Rt.jsx)(Fe,{value:r.content||"",onChange:a=>i(d=>({...d,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}function Gt({document:e,onDocumentUpdate:t,editable:o=!0}){let[r,i]=(0,Ot.useState)(!1),n=p=>{switch(p){case"markdown":case"mdx":return(0,Rt.jsx)(q.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Rt.jsx)(q.File,{className:"h-6 w-6 text-success"});default:return(0,Rt.jsx)(q.File,{className:"h-6 w-6 text-muted-foreground"})}},s=p=>{switch(p){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}},a=p=>{i(!1),t?.(p)},d=()=>{i(!1)};return r?(0,Rt.jsx)(Kt,{document:e,onSave:a,onCancel:d}):(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:20},animate:{opacity:1,Rt:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Rt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,Rt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Rt.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Rt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:n(e.format)}),(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Rt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),o&&(0,Rt.jsx)("div",{className:"flex-shrink-0",children:(0,Rt.jsxs)(M,{variant:"outline",size:"sm",onClick:()=>i(!0),className:"gap-2",children:[(0,Rt.jsx)(q.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,Rt.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Rt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${s(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(p=>(0,Rt.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",p]},p))]})]}),(0,Rt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Rt.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Rt.jsxs)("div",{className:"mb-6",children:[(0,Rt.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Rt.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,Rt.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-Rt-1 text-xs",children:Object.entries(e.metadata).map(([p,N])=>(0,Rt.jsxs)("div",{className:"flex gap-1",children:[(0,Rt.jsxs)("span",{className:"text-muted-foreground font-medium",children:[p.replace(/([Rt-Z])/g," $1").trim(),":"]}),(0,Rt.jsx)("span",{className:"text-foreground truncate",children:String(N)})]},p))})})]}),(0,Rt.jsx)("div",{className:"space-Rt-4",children:e.content?(0,Rt.jsxs)("div",{className:"relative",children:[(0,Rt.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,Rt.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,Rt.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,Rt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,Rt.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Rt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Rt.jsx)(q.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Rt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Rt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function Wt({label:e,documents:t,children:o,level:r,onDocumentClick:i,selectedDocumentId:n,showDocumentCount:s=!0}){let[a,d]=(0,Ot.useState)(r===0),p=o&&Object.keys(o).length>0,N=t.length+(o?Object.values(o).reduce((g,R)=>g+R.documents.length,0):0),k=g=>{switch(g){case"markdown":case"mdx":return(0,Rt.jsx)(q.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Rt.jsx)(q.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Rt.jsx)(q.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},z=g=>{let R=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return R[g%R.length]};return(0,Rt.jsxs)("div",{className:"space-Rt-1",children:[(p||t.length>0)&&(0,Rt.jsxs)(It.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${a?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${r*20}px`},onClick:()=>d(!a),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Rt.jsx)("div",{className:`w-1 h-6 rounded-full ${z(r)}`}),(0,Rt.jsx)(It.motion.div,{animate:{rotate:a?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Rt.jsx)(q.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Rt.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Rt.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Rt.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),s&&N>0&&(0,Rt.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Rt.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:N})})]})]}),(0,Rt.jsx)(It.motion.div,{initial:!1,animate:{height:a?"auto":0,opacity:a?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Rt.jsxs)("div",{className:"pt-2 space-Rt-1",children:[t.map((g,R)=>(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:R*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===g.id?"bg-primary/10 border-Rt-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${r*20+20}px`},onClick:()=>i?.(g),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Rt.jsx)("div",{className:"flex-shrink-0",children:k(g.format)}),(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsx)("p",{className:`text-sm truncate transition-colors ${n===g.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:g.title}),g.description&&(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:g.description})]}),g.tags&&g.tags.length>0&&(0,Rt.jsx)("div",{className:"flex-shrink-0",children:(0,Rt.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:g.tags[0]})})]},g.id)),o&&Object.entries(o).map(([g,R])=>(0,Rt.jsx)(Wt,{label:g,documents:R.documents,children:R.children,level:r+1,onDocumentClick:i,selectedDocumentId:n,showDocumentCount:s},g))]})})]})}function He({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:r,onDocumentUpdate:i,selectedDocumentId:n,className:s,editable:a=!0}){let[d,p]=(0,Ot.useState)(""),[N,k]=(0,Ot.useState)(null),z=(0,Ot.useMemo)(()=>d?e.filter(h=>h.title.toLowerCase().includes(d.toLowerCase())||h.description?.toLowerCase().includes(d.toLowerCase())||h.tags?.some(b=>b.toLowerCase().includes(d.toLowerCase()))||Object.values(h.metadata||{}).some(b=>String(b).toLowerCase().includes(d.toLowerCase()))):e,[e,d]),g=(0,Ot.useMemo)(()=>{let h=(b,T)=>{if(T.length===0)return{};let[K,...U]=T;return b.reduce((B,X)=>{let ve=X.metadata?.[K]||"Uncategorized",w=String(ve);if(B[w]||(B[w]={documents:[],children:{}}),U.length===0)B[w].documents.push(X);else{let _=h([X],U),j=Object.keys(_)[0];j&&(B[w].children||(B[w].children={}),B[w].children[j]?B[w].children[j].documents.push(..._[j].documents):B[w].children[j]=_[j])}return B},{})};return h(z,t.groupBy)},[z,t.groupBy]),R=h=>{k(h),o?.(h)};return(0,Rt.jsxs)("div",{className:`flex h-full ${s||""}`,children:[(0,Rt.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Rt.jsx)("div",{className:"p-6 border-b border-border",children:(0,Rt.jsxs)("div",{className:"relative",children:[(0,Rt.jsx)("div",{className:"absolute inset-Rt-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Rt.jsx)(q.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Rt.jsx)(ae,{placeholder:"Search knowledge base...",value:d,onChange:h=>p(h.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Rt.jsx)(Je,{className:"h-[calc(100%-100px)]",children:(0,Rt.jsxs)("div",{className:"p-4 space-Rt-3",children:[Object.entries(g).map(([h,b])=>(0,Rt.jsx)(Wt,{label:h,documents:b.documents,children:b.children,level:0,onDocumentClick:R,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},h)),Object.keys(g).length===0&&(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Rt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Rt.jsx)(q.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Rt.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Rt.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Rt.jsx)("div",{className:"flex-1 bg-background",children:N?(0,Rt.jsx)(Gt,{document:N,onDocumentUpdate:i,editable:a}):(0,Rt.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:20},animate:{opacity:1,Rt:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Rt.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Rt.jsx)(q.FileText,{className:"h-10 w-10 text-primary"})}),(0,Rt.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Rt.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function Xe({documents:e=[],contexts:t=[],onDocumentClick:o=s=>console.log("Document clicked:",s),onDocumentShare:r=s=>console.log("Share document:",s),onLoadDocumentContent:i,selectedDocumentId:n}){let[s,a]=(0,Ot.useState)(t[0]);return!t||t.length===0?(0,Rt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Rt.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Rt.jsx)(le,{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,Rt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Rt.jsx)("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Rt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Rt.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Rt.jsx)(le,{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,Rt.jsxs)("div",{className:"mt-6",children:[(0,Rt.jsx)("div",{className:"border-b border-border",children:(0,Rt.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(d=>(0,Rt.jsxs)("button",{onClick:()=>a(d),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${s.id===d.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[d.icon,d.label]},d.id))})}),s.description&&(0,Rt.jsx)("div",{className:"mt-3 px-1",children:(0,Rt.jsx)("p",{className:"text-sm text-muted-foreground",children:s.description})})]})]}),(0,Rt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Rt.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Rt.jsx)(He,{documents:e,menuConfig:s.menuConfig,onDocumentClick:o,onDocumentShare:r,selectedDocumentId:n})})})]})}var me=G(require("react"));var Y=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Y.displayName="Card";var pe=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("flex flex-col space-Rt-1.5 p-6",e),...t}));pe.displayName="CardHeader";var ue=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("font-semibold leading-none tracking-tight",e),...t}));ue.displayName="CardTitle";var Qe=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("text-sm text-muted-foreground",e),...t}));Qe.displayName="CardDescription";var ee=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("p-6 pt-0",e),...t}));ee.displayName="CardContent";var Ze=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("flex items-center p-6 pt-0",e),...t}));Ze.displayName="CardFooter";function Be({team:e,onOpen:t,className:o}){return(0,Rt.jsx)($t.motion.div,{whileHover:{scale:1.02,Rt:-5},whileTap:{scale:.98},className:o,children:(0,Rt.jsxs)(Y,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Rt.jsxs)(pe,{children:[(0,Rt.jsx)(ue,{className:"text-lg",children:e.name}),(0,Rt.jsx)(Qe,{className:"mt-1 text-sm",children:e.description})]}),(0,Rt.jsxs)(ee,{className:"space-Rt-4",children:[(0,Rt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Rt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Rt.jsx)(q.Users,{className:"h-4 w-4 text-blue-500"}),(0,Rt.jsx)("span",{children:"Human"})]}),(0,Rt.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,Rt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Rt.jsx)(q.Bot,{className:"h-4 w-4 text-purple-500"}),(0,Rt.jsx)("span",{children:"Digital"})]}),(0,Rt.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,Rt.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Rt.jsx)(q.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,Rt.jsx)("span",{children:"Projects"})]}),(0,Rt.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,Rt.jsx)(Ze,{className:"flex gap-2",children:(0,Rt.jsx)(M,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}var Te=G(require("react")),F=G(require("@radix-ui/react-dialog"));var _t=F.Root;var Jo=F.Portal;var qt=Te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.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}));qt.displayName=F.Overlay.displayName;var Ye=Te.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(Jo,{children:[(0,Rt.jsx)(qt,{}),(0,Rt.jsxs)(F.Content,{ref:r,className:c("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-Rt-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,Rt.jsxs)(F.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,Rt.jsx)(q.X,{className:"h-4 w-4"}),(0,Rt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ye.displayName=F.Content.displayName;var et=({className:e,...t})=>(0,Rt.jsx)("div",{className:c("flex flex-col space-Rt-1.5 text-center sm:text-left",e),...t});et.displayName="DialogHeader";var Xo=({className:e,...t})=>(0,Rt.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Xo.displayName="DialogFooter";var tt=Te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Title,{ref:o,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));tt.displayName=F.Title.displayName;var ot=Te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Description,{ref:o,className:c("text-sm text-muted-foreground",e),...t}));ot.displayName=F.Description.displayName;function rt({teams:e=[],onCreateTeam:t,onTeamOpen:o}){let[r,i]=(0,Ot.useState)(!1),n=()=>{i(!0),t?.()},s=a=>{o?.(a)};return(0,Rt.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Rt-8",children:[(0,Rt.jsx)(It.AnimatePresence,{mode:"wait",children:(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:10},animate:{opacity:1,Rt:0},exit:{opacity:0,Rt:-10},transition:{duration:.2},children:[(0,Rt.jsx)(le,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-to-r from-blue-600 via-cyan-600 to-teal-600",primaryAction:{label:"Create Team",onClick:n}}),(0,Rt.jsxs)("section",{className:"space-Rt-4 mt-8",children:[(0,Rt.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,Rt.jsxs)("div",{className:"text-center py-12",children:[(0,Rt.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,Rt.jsx)("p",{className:"text-muted-foreground text-sm mt-2",children:"Create a new team or ask to be added to an existing one."})]}):(0,Rt.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(a=>(0,Rt.jsx)(Be,{team:a,onOpen:s},a.id))})]})]},"teams-index-view")}),(0,Rt.jsx)(_t,{open:r,onOpenChange:i,children:(0,Rt.jsxs)(Ye,{className:"max-w-3xl max-h-[90vh] overflow-Rt-auto",children:[(0,Rt.jsxs)(et,{children:[(0,Rt.jsx)(tt,{children:"Create New Team"}),(0,Rt.jsx)(ot,{children:"Set up a new team to collaborate with colleagues on projects."})]}),(0,Rt.jsx)("div",{className:"p-6 text-center text-muted-foreground",children:(0,Rt.jsx)("p",{children:"Team creation form coming soon..."})})]})})]})}var v=G(require("@radix-ui/react-select")),se=G(require("react")),Xt=v.Root;var Qt=v.Value,at=se.forwardRef(({children:e,className:t,...o},r)=>(0,Rt.jsxs)(v.Trigger,{className:c("flex h-10 w-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:r,...o,children:[e,(0,Rt.jsx)(v.Icon,{asChild:!0,children:(0,Rt.jsx)(q.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));at.displayName=v.Trigger.displayName;var Zt=se.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(v.ScrollUpButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Rt.jsx)(q.ChevronUp,{className:"h-4 w-4"})}));Zt.displayName=v.ScrollUpButton.displayName;var Yt=se.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(v.ScrollDownButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Rt.jsx)(q.ChevronDown,{className:"h-4 w-4"})}));Yt.displayName=v.ScrollDownButton.displayName;var it=se.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,Rt.jsx)(v.Portal,{children:(0,Rt.jsxs)(v.Content,{className:c("relative z-50 max-h-96 min-w-[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-Rt-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Rt-1",t),position:o,ref:i,...r,children:[(0,Rt.jsx)(Zt,{}),(0,Rt.jsx)(v.Viewport,{className:c("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Rt.jsx)(Yt,{})]})}));it.displayName=v.Content.displayName;var Qo=se.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(v.Label,{className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Qo.displayName=v.Label.displayName;var Ve=se.forwardRef(({children:e,className:t,...o},r)=>(0,Rt.jsxs)(v.Item,{className:c("relative flex w-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:r,...o,children:[(0,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(v.ItemIndicator,{children:(0,Rt.jsx)(q.Check,{className:"h-4 w-4"})})}),(0,Rt.jsx)(v.ItemText,{children:e})]}));Ve.displayName=v.Item.displayName;var Zo=se.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(v.Separator,{className:c("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Zo.displayName=v.Separator.displayName;var be=G(require("@radix-ui/react-tabs"));function eo({className:e,...t}){return(0,Rt.jsx)(be.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function to({className:e,...t}){return(0,Rt.jsx)(be.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function oo({className:e,...t}){return(0,Rt.jsx)(be.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 h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var te=G(require("react")),x=G(require("@radix-ui/react-dropdown-menu")),Ne=require("@radix-ui/react-icons");var ro=x.Root,ao=x.Trigger;var Yo=te.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,Rt.jsxs)(x.SubTrigger,{ref:i,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),...r,children:[o,(0,Rt.jsx)(Ne.ChevronRightIcon,{className:"ml-auto"})]}));Yo.displayName=x.SubTrigger.displayName;var er=te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(x.SubContent,{ref:o,className:c("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));er.displayName=x.SubContent.displayName;var nt=te.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Rt.jsx)(x.Portal,{children:(0,Rt.jsx)(x.Content,{ref:r,sideOffset:t,className:c("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));nt.displayName=x.Content.displayName;var st=te.forwardRef(({className:e,inset:t,...o},r)=>(0,Rt.jsx)(x.Item,{ref:r,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}));st.displayName=x.Item.displayName;var tr=te.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,Rt.jsxs)(x.CheckboxItem,{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),checked:o,...r,children:[(0,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(x.ItemIndicator,{children:(0,Rt.jsx)(Ne.CheckIcon,{className:"h-4 w-4"})})}),t]}));tr.displayName=x.CheckboxItem.displayName;var or=te.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(x.RadioItem,{ref:r,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,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(x.ItemIndicator,{children:(0,Rt.jsx)(Ne.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));or.displayName=x.RadioItem.displayName;var rr=te.forwardRef(({className:e,inset:t,...o},r)=>(0,Rt.jsx)(x.Label,{ref:r,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));rr.displayName=x.Label.displayName;var ar=te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(x.Separator,{ref:o,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));ar.displayName=x.Separator.displayName;var ir=({className:e,...t})=>(0,Rt.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});ir.displayName="DropdownMenuShortcut";function no({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:i="700px",gridCols:n=6}){let s=o.find(a=>a.value===e);return(0,Rt.jsxs)(It.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,Rt:-20},animate:{opacity:1,Rt:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Rt.jsx)("div",{className:"hidden md:block",children:(0,Rt.jsx)(eo,{value:e,onValueChange:t,children:(0,Rt.jsx)(to,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(n,o.length)}, minmax(0, 1fr))`},children:o.map(a=>(0,Rt.jsx)(It.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Rt.jsx)(oo,{value:a.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:a.label})},a.value))})})}),(0,Rt.jsx)("div",{className:"md:hidden",children:(0,Rt.jsxs)(ro,{children:[(0,Rt.jsx)(ao,{asChild:!0,children:(0,Rt.jsxs)(M,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,Rt.jsx)(q.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Rt.jsx)(nt,{align:"center",className:"w-[180px]",children:o.map(a=>(0,Rt.jsx)(st,{onClick:()=>t?.(a.value),className:`cursor-pointer ${e===a.value?"bg-accent":""}`,children:a.label},a.value))})]})})]})}function Pe({files:e,onFileClick:t,onFileEdit:o,onFileDelete:r,showHeader:i=!0,className:n}){return(0,Rt.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${n||""}`,children:[i&&(0,Rt.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,Rt.jsx)("div",{className:"col-span-6",children:"Name"}),(0,Rt.jsx)("div",{className:"col-span-2",children:"Size"}),(0,Rt.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,Rt.jsx)("div",{className:"divide-Rt",children:e.map(s=>(0,Rt.jsxs)(It.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(s),children:[(0,Rt.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,Rt.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:s.icon}),(0,Rt.jsx)("div",{children:(0,Rt.jsx)("p",{className:"font-medium",children:s.name})})]}),(0,Rt.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:s.size}),(0,Rt.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,Rt.jsx)("span",{className:"text-sm md:text-base",children:s.modified}),(0,Rt.jsxs)("div",{className:"flex gap-1",children:[(0,Rt.jsx)(M,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:a=>{a.stopPropagation(),o?.(s)},children:(0,Rt.jsx)(q.Edit,{className:"h-4 w-4"})}),(0,Rt.jsx)(M,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:a=>{a.stopPropagation(),r?.(s)},children:(0,Rt.jsx)(q.Trash2,{className:"h-4 w-4"})}),(0,Rt.jsx)(M,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:(0,Rt.jsx)(q.MoreHorizontal,{className:"h-4 w-4"})})]})]})]},s.name))})]})}function dt({initialFiles:e=[],onFileAdd:t,onFileEdit:o,onFileDelete:r,onFileClick:i,compactView:n=!1,className:s}){let[a,d]=(0,Ot.useState)(e),[p,N]=(0,Ot.useState)(""),[k,z]=(0,Ot.useState)("all"),[g,R]=(0,Ot.useState)("all"),h=Array.from(new Set(a.map(w=>w.app))),b=a.filter(w=>{let _=w.name.toLowerCase().includes(p.toLowerCase()),j=k==="all"||w.app===k;return _&&j}),T=b.slice(0,10),K=b.filter(w=>w.shared),U=()=>{console.log("Add file clicked")},O=w=>{console.log("Edit file:",w.name),o?.(w)},B=w=>{d(_=>_.filter(j=>j.name!==w.name)),r?.(w.name)},X=w=>{console.log("File clicked:",w.name),i?.(w)},ve=()=>{N(""),z("all")};return(0,Rt.jsx)("div",{className:"px-2 md:px-4 py-4 space-Rt-8",children:(0,Rt.jsx)(It.AnimatePresence,{mode:"wait",children:(0,Rt.jsx)(It.motion.div,{initial:{opacity:0,Rt:10},animate:{opacity:1,Rt:0},exit:{opacity:0,Rt:-10},transition:{duration:.2},children:(0,Rt.jsxs)("div",{className:`space-Rt-6 ${s||""}`,children:[(0,Rt.jsx)(le,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:U},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,Rt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Rt.jsxs)(Y,{children:[(0,Rt.jsxs)(pe,{className:"flex flex-row items-center justify-between space-Rt-0 pb-2",children:[(0,Rt.jsx)(ue,{className:"text-sm font-medium",children:"Total Files"}),(0,Rt.jsx)(q.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Rt.jsxs)(ee,{children:[(0,Rt.jsx)("div",{className:"text-2xl font-bold",children:a.length}),(0,Rt.jsxs)("p",{className:"text-xs text-muted-foreground",children:[a.filter(w=>w.shared).length," shared"]})]})]}),(0,Rt.jsxs)(Y,{children:[(0,Rt.jsxs)(pe,{className:"flex flex-row items-center justify-between space-Rt-0 pb-2",children:[(0,Rt.jsx)(ue,{className:"text-sm font-medium",children:"Storage Used"}),(0,Rt.jsx)(q.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Rt.jsxs)(ee,{children:[(0,Rt.jsx)("div",{className:"text-2xl font-bold",children:"2.4 GB"}),(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),(0,Rt.jsxs)(Y,{children:[(0,Rt.jsxs)(pe,{className:"flex flex-row items-center justify-between space-Rt-0 pb-2",children:[(0,Rt.jsx)(ue,{className:"text-sm font-medium",children:"Recent Activity"}),(0,Rt.jsx)(q.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Rt.jsxs)(ee,{children:[(0,Rt.jsx)("div",{className:"text-2xl font-bold",children:"12"}),(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),(0,Rt.jsx)(Y,{children:(0,Rt.jsx)(ee,{className:"pt-6",children:(0,Rt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Rt.jsx)("div",{className:"flex-1",children:(0,Rt.jsxs)("div",{className:"relative",children:[(0,Rt.jsx)(q.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Rt.jsx)(ae,{placeholder:"Search files...",value:p,onChange:w=>N(w.target.value),className:"pl-9"})]})}),(0,Rt.jsxs)(Xt,{value:k,onValueChange:z,children:[(0,Rt.jsx)(at,{className:"w-full md:w-[180px]",children:(0,Rt.jsx)(Qt,{placeholder:"Filter by app"})}),(0,Rt.jsxs)(it,{children:[(0,Rt.jsx)(Ve,{value:"all",children:"All Apps"}),h.map(w=>(0,Rt.jsx)(Ve,{value:w,children:w},w))]})]}),(p||k!=="all")&&(0,Rt.jsxs)(M,{variant:"outline",onClick:ve,className:"gap-2",children:[(0,Rt.jsx)(q.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,Rt.jsxs)("div",{className:"space-Rt-4",children:[(0,Rt.jsx)(no,{activeTab:g,onTabChange:R,tabOptions:[{value:"all",label:`All Files (${b.length})`},{value:"recent",label:`Recent (${T.length})`},{value:"shared",label:`Shared (${K.length})`}],maxWidth:"500px",gridCols:3}),g==="all"&&(0,Rt.jsx)(Pe,{files:b,onFileClick:X,onFileEdit:O,onFileDelete:B,showHeader:!n}),g==="recent"&&(0,Rt.jsx)(Pe,{files:T,onFileClick:X,onFileEdit:O,onFileDelete:B,showHeader:!n}),g==="shared"&&(0,Rt.jsx)(Pe,{files:K,onFileClick:X,onFileEdit:O,onFileDelete:B,showHeader:!n})]}),b.length===0&&(0,Rt.jsx)(Y,{children:(0,Rt.jsx)(ee,{className:"pt-6",children:(0,Rt.jsxs)("div",{className:"text-center py-8",children:[(0,Rt.jsx)(q.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,Rt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,Rt.jsx)("p",{className:"text-muted-foreground mb-4",children:p||k!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),(0,Rt.jsxs)(M,{onClick:U,className:"gap-2",children:[(0,Rt.jsx)(q.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}0&&(module.exports={FileList,FileView,KnowledgeBrowser,KnowledgeView,TeamCard,TeamsIndexView});
@@ -1 +1 @@
1
- import{a as r}from"../../chunk-S6KDP563.mjs";import{a as f}from"../../chunk-FRKGQKEM.mjs";import{a as o}from"../../chunk-637VXITY.mjs";import{a}from"../../chunk-MNI6AM7Q.mjs";import{a as t}from"../../chunk-FV3W3WL7.mjs";import{a as e}from"../../chunk-3U3PZBHQ.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-M245YHYF.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{e as FileList,t as FileView,o as KnowledgeBrowser,r as KnowledgeView,a as TeamCard,f as TeamsIndexView};
1
+ import{a as r}from"../../chunk-67VXPDWA.mjs";import{a as t}from"../../chunk-FV3W3WL7.mjs";import{a as e}from"../../chunk-3U3PZBHQ.mjs";import{a as f}from"../../chunk-FRKGQKEM.mjs";import{a}from"../../chunk-MNI6AM7Q.mjs";import"../../chunk-2NMVE5M4.mjs";import{a as o}from"../../chunk-QUXHULLX.mjs";import"../../chunk-GILMVRED.mjs";import"../../chunk-BDFHWLTS.mjs";import"../../chunk-M245YHYF.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{e as FileList,t as FileView,o as KnowledgeBrowser,r as KnowledgeView,a as TeamCard,f as TeamsIndexView};