cortex-react-components 2.8.0 → 2.9.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 (194) hide show
  1. package/dist/chunk-2B5LH5XN.mjs +4 -0
  2. package/dist/chunk-2LINLX4S.mjs +4 -0
  3. package/dist/chunk-2RGAV55J.mjs +4 -0
  4. package/dist/chunk-3IVM6KAB.mjs +4 -0
  5. package/dist/chunk-3R75NUYA.mjs +4 -0
  6. package/dist/{chunk-QTILVWJA.mjs → chunk-4RYG24IZ.mjs} +1 -1
  7. package/dist/{chunk-URYIYEGY.mjs → chunk-5BV4MHV6.mjs} +1 -1
  8. package/dist/{chunk-ABGNIQRP.mjs → chunk-5RDLHKTK.mjs} +1 -1
  9. package/dist/chunk-6WQXZ6IE.mjs +4 -0
  10. package/dist/chunk-6XUIHSKG.mjs +4 -0
  11. package/dist/chunk-AREQGH47.mjs +4 -0
  12. package/dist/chunk-BHWGOTCJ.mjs +4 -0
  13. package/dist/chunk-CO6AQNZ5.mjs +4 -0
  14. package/dist/{chunk-TK4JC5PG.mjs → chunk-E64KWNOT.mjs} +1 -1
  15. package/dist/{chunk-X57JQVKC.mjs → chunk-ED7T3BDO.mjs} +1 -1
  16. package/dist/chunk-GHZ6CUY3.mjs +4 -0
  17. package/dist/{chunk-6OZUHBYJ.mjs → chunk-GN25OSET.mjs} +1 -1
  18. package/dist/{chunk-KOXC4RIH.mjs → chunk-I5NNEOCF.mjs} +1 -1
  19. package/dist/{chunk-A3YDFYEB.mjs → chunk-LUM6KEWN.mjs} +1 -1
  20. package/dist/{chunk-GLBQHEMQ.mjs → chunk-MO2B5CDW.mjs} +1 -1
  21. package/dist/chunk-MU5WPW4N.mjs +4 -0
  22. package/dist/chunk-NVHQBM66.mjs +4 -0
  23. package/dist/chunk-O46BOA4T.mjs +1 -0
  24. package/dist/{chunk-NZCHFTHJ.mjs → chunk-OYZX5BM4.mjs} +1 -1
  25. package/dist/chunk-PH67DP3M.mjs +4 -0
  26. package/dist/chunk-PWXCBW2H.mjs +4 -0
  27. package/dist/{chunk-ZFUP5NVF.mjs → chunk-PXLSH6S2.mjs} +1 -1
  28. package/dist/{chunk-PIOFHZSJ.mjs → chunk-QQFIVSBW.mjs} +1 -1
  29. package/dist/chunk-R6AYIVIR.mjs +6 -0
  30. package/dist/chunk-RHR3YOLG.mjs +4 -0
  31. package/dist/{chunk-DPZHVBGG.mjs → chunk-RRME4EHD.mjs} +1 -1
  32. package/dist/chunk-U67OTPTT.mjs +4 -0
  33. package/dist/chunk-UML2QHEN.mjs +5 -0
  34. package/dist/chunk-VGWDYD6Z.mjs +4 -0
  35. package/dist/{chunk-RAGDUV7M.mjs → chunk-XIGBDWYI.mjs} +1 -1
  36. package/dist/{chunk-2GNX22CR.mjs → chunk-XOH2L4XW.mjs} +1 -1
  37. package/dist/{chunk-S4A4VHOI.mjs → chunk-XW52WZ2B.mjs} +1 -1
  38. package/dist/chunk-Z22NSJMF.mjs +4 -0
  39. package/dist/chunk-ZXPDSSCF.mjs +4 -0
  40. package/dist/components/AdvancedComponents/app-header.js +1 -1
  41. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  42. package/dist/components/AdvancedComponents/index.js +1 -1
  43. package/dist/components/AdvancedComponents/index.mjs +1 -1
  44. package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
  45. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  46. package/dist/components/AdvancedComponents/notifications-panel.js +1 -1
  47. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  48. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  49. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  50. package/dist/components/Chat/ChatInterface.js +1 -1
  51. package/dist/components/Chat/ChatInterface.mjs +1 -1
  52. package/dist/components/Chat/CopilotInterface.js +1 -1
  53. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  54. package/dist/components/Chat/capability-menu.js +1 -1
  55. package/dist/components/Chat/capability-menu.mjs +1 -1
  56. package/dist/components/Chat/demo-long-messages.js +1 -1
  57. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  58. package/dist/components/Chat/demo-tests.js +1 -1
  59. package/dist/components/Chat/demo-tests.mjs +1 -1
  60. package/dist/components/Chat/demo.js +1 -1
  61. package/dist/components/Chat/demo.mjs +1 -1
  62. package/dist/components/Chat/example-usage.js +1 -1
  63. package/dist/components/Chat/example-usage.mjs +1 -1
  64. package/dist/components/Chat/example-with-vercel-ai.js +1 -1
  65. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  66. package/dist/components/Chat/index.js +1 -1
  67. package/dist/components/Chat/index.mjs +1 -1
  68. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  69. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  70. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  71. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  72. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  73. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  74. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  75. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  76. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  77. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  78. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  79. package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +1 -1
  80. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  81. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  82. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  83. package/dist/components/DigitalColleagues/colleague-type-selection.js +1 -1
  84. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  85. package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -1
  86. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  87. package/dist/components/DigitalColleagues/digital-colleague-options.js +1 -1
  88. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  89. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  90. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  91. package/dist/components/DigitalColleagues/document-preview-examples.js +1 -1
  92. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  93. package/dist/components/DigitalColleagues/document-preview.js +1 -1
  94. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  95. package/dist/components/DigitalColleagues/index.js +1 -1
  96. package/dist/components/DigitalColleagues/index.mjs +1 -1
  97. package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
  98. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  99. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  100. package/dist/components/HeaderFooter/index.mjs +1 -1
  101. package/dist/components/Heros/DashboardHero/DashboardHero.js +1 -1
  102. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  103. package/dist/components/Heros/DashboardHero/index.js +1 -1
  104. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  105. package/dist/components/Heros/PostHero/index.mjs +1 -1
  106. package/dist/components/Heros/RenderHero.mjs +1 -1
  107. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  108. package/dist/components/Heros/index.js +1 -1
  109. package/dist/components/Heros/index.mjs +1 -1
  110. package/dist/components/Icons/ScrollDownIcon.js +1 -1
  111. package/dist/components/Icons/ScrollDownIcon.mjs +1 -1
  112. package/dist/components/Layouts/SlideShow.js +1 -1
  113. package/dist/components/Layouts/SlideShow.mjs +1 -1
  114. package/dist/components/Layouts/index.js +1 -1
  115. package/dist/components/Layouts/index.mjs +1 -1
  116. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  117. package/dist/components/Menus/SidebarRight.mjs +1 -1
  118. package/dist/components/Menus/index.mjs +1 -1
  119. package/dist/components/Other/AnimatedBorder.js +1 -1
  120. package/dist/components/Other/AnimatedBorder.mjs +1 -1
  121. package/dist/components/Other/index.mjs +1 -1
  122. package/dist/components/Projects/EpicsView.js +1 -1
  123. package/dist/components/Projects/EpicsView.mjs +1 -1
  124. package/dist/components/Projects/FileView.js +1 -1
  125. package/dist/components/Projects/FileView.mjs +1 -1
  126. package/dist/components/Projects/KanbanBoardView.js +1 -1
  127. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  128. package/dist/components/Projects/PlanningView.js +1 -1
  129. package/dist/components/Projects/PlanningView.mjs +1 -1
  130. package/dist/components/Projects/ProjectPage.js +1 -1
  131. package/dist/components/Projects/ProjectPage.mjs +1 -1
  132. package/dist/components/Projects/ProjectView.js +1 -1
  133. package/dist/components/Projects/ProjectView.mjs +1 -1
  134. package/dist/components/Projects/ProjectsIndexView.js +1 -1
  135. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  136. package/dist/components/Projects/TasksView.js +1 -1
  137. package/dist/components/Projects/TasksView.mjs +1 -1
  138. package/dist/components/Projects/file-list.js +1 -1
  139. package/dist/components/Projects/file-list.mjs +1 -1
  140. package/dist/components/Projects/project-card.js +1 -1
  141. package/dist/components/Projects/project-card.mjs +1 -1
  142. package/dist/components/Projects/team-card.js +1 -1
  143. package/dist/components/Projects/team-card.mjs +1 -1
  144. package/dist/components/dc-temp/creative.js +1 -1
  145. package/dist/components/dc-temp/creative.mjs +1 -1
  146. package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
  147. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  148. package/dist/components/dc-temp/index.js +1 -1
  149. package/dist/components/dc-temp/index.mjs +1 -1
  150. package/dist/components/index.js +2 -2
  151. package/dist/components/index.mjs +1 -1
  152. package/dist/components/ui/index.mjs +1 -1
  153. package/dist/components/ui/sidebar.mjs +1 -1
  154. package/dist/index.js +2 -2
  155. package/dist/index.mjs +1 -1
  156. package/dist/metafile-cjs.json +1 -1
  157. package/dist/metafile-esm.json +1 -1
  158. package/dist/pages/Blog.mjs +1 -1
  159. package/dist/pages/Documentation.mjs +1 -1
  160. package/dist/pages/IndexPage.mjs +1 -1
  161. package/dist/pages/Intranet.mjs +1 -1
  162. package/dist/pages/LandingPage.mjs +1 -1
  163. package/dist/pages/Page.mjs +1 -1
  164. package/dist/pages/Publish.js +1 -1
  165. package/dist/pages/Publish.mjs +1 -1
  166. package/dist/pages/Website.mjs +1 -1
  167. package/dist/sections/BlogListSection.mjs +1 -1
  168. package/dist/sections/PageSections.mjs +1 -1
  169. package/dist/sections/ServiceSection.mjs +1 -1
  170. package/dist/sections/index.mjs +1 -1
  171. package/package.json +2 -3
  172. package/dist/chunk-2NMVE5M4.mjs +0 -4
  173. package/dist/chunk-2SAKLSZ4.mjs +0 -4
  174. package/dist/chunk-2THNVSE5.mjs +0 -4
  175. package/dist/chunk-3KITWLRN.mjs +0 -4
  176. package/dist/chunk-3PHJWI4Q.mjs +0 -4
  177. package/dist/chunk-A2AEX4YB.mjs +0 -4
  178. package/dist/chunk-AVHFRD6D.mjs +0 -4
  179. package/dist/chunk-BADFWNRL.mjs +0 -4
  180. package/dist/chunk-CBLP4MXP.mjs +0 -4
  181. package/dist/chunk-FRKGQKEM.mjs +0 -4
  182. package/dist/chunk-G3WMXDFV.mjs +0 -5
  183. package/dist/chunk-HME6CJ6L.mjs +0 -1
  184. package/dist/chunk-JHYWAL24.mjs +0 -6
  185. package/dist/chunk-JVUSZPSP.mjs +0 -4
  186. package/dist/chunk-M245YHYF.mjs +0 -4
  187. package/dist/chunk-MNI6AM7Q.mjs +0 -4
  188. package/dist/chunk-O4GULNQE.mjs +0 -4
  189. package/dist/chunk-PEQOQ7BK.mjs +0 -4
  190. package/dist/chunk-RUOYGMOR.mjs +0 -4
  191. package/dist/chunk-UPQQQYZZ.mjs +0 -4
  192. package/dist/chunk-VGARU7ZT.mjs +0 -4
  193. package/dist/chunk-WN2LPOQP.mjs +0 -4
  194. package/dist/chunk-XKM35QQD.mjs +0 -4
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  'use client'
4
4
 
5
- "use strict";var ut=Object.create;var ie=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var ft=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty;var ht=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},Re=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ft(t))!bt.call(e,s)&&s!==r&&ie(e,s,{get:()=>t[s],enumerable:!(o=pt(t,s))||o.enumerable});return e};var X=(e,t,r)=>(r=e!=null?ut(gt(e)):{},Re(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),xt=e=>Re(ie({},"__esModule",{value:!0}),e);var rr={};ht(rr,{default:()=>mt});module.exports=xt(rr);var ct=require("react");var Ue=require("framer-motion");var Le=require("class-variance-authority");var Ee=require("clsx");var he="-",vt=e=>{let t=wt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let l=i.split(he);return l[0]===""&&l.length!==1&&l.shift(),Ae(l,t)||yt(i)},getConflictingClassGroupIds:(i,l)=>{let f=r[i]||[];return l&&o[i]?[...f,...o[i]]:f}}},Ae=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?Ae(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(he);return t.validators.find(({validator:i})=>i(n))?.classGroupId},De=/^\[(.+)\]$/,yt=e=>{if(De.test(e)){let t=De.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},wt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return St(Object.entries(e.classGroups),r).forEach(([n,i])=>{be(i,o,n,t)}),o},be=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:Te(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Nt(s)){be(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,i])=>{be(i,Te(t,n),r,o)})})},Te=(e,t)=>{let r=e;return t.split(he).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Nt=e=>e.isThemeGetter,St=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,l])=>[t+i,l])):n);return[r,s]}):e,Ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return s(n,i),i},set(n,i){r.has(n)?r.set(n,i):s(n,i)}}},ze="!",kt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,i=l=>{let f=[],v=0,w=0,C;for(let d=0;d<l.length;d++){let b=l[d];if(v===0){if(b===s&&(o||l.slice(d,d+n)===t)){f.push(l.slice(w,d)),w=d+n;continue}if(b==="/"){C=d;continue}}b==="["?v++:b==="]"&&v--}let R=f.length===0?l:l.substring(w),m=R.startsWith(ze),y=m?R.substring(1):R,a=C&&C>w?C-w:void 0;return{modifiers:f,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:a}};return r?l=>r({className:l,parseClassName:i}):i},Pt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Rt=e=>({cache:Ct(e.cacheSize),parseClassName:kt(e),...vt(e)}),Dt=/\s+/,Tt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],i=e.trim().split(Dt),l="";for(let f=i.length-1;f>=0;f-=1){let v=i[f],{modifiers:w,hasImportantModifier:C,baseClassName:R,maybePostfixModifierPosition:m}=r(v),y=!!m,a=o(y?R.substring(0,m):R);if(!a){if(!y){l=v+(l.length>0?" "+l:l);continue}if(a=o(R),!a){l=v+(l.length>0?" "+l:l);continue}y=!1}let d=Pt(w).join(":"),b=C?d+ze:d,x=b+a;if(n.includes(x))continue;n.push(x);let I=s(a,y);for(let E=0;E<I.length;++E){let A=I[E];n.push(b+A)}l=v+(l.length>0?" "+l:l)}return l};function At(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Me(t))&&(o&&(o+=" "),o+=r);return o}var Me=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Me(e[o]))&&(r&&(r+=" "),r+=t);return r};function zt(e,...t){let r,o,s,n=i;function i(f){let v=t.reduce((w,C)=>C(w),e());return r=Rt(v),o=r.cache.get,s=r.cache.set,n=l,l(f)}function l(f){let v=o(f);if(v)return v;let w=Tt(f,r);return s(f,w),w}return function(){return n(At.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,Mt=/^\d+\/\d+$/,It=new Set(["px","full","screen"]),Kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bt=/\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$/,Et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>Y(e)||It.has(e)||Mt.test(e),_=e=>ee(e,"length",Ot),Y=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>ee(e,"number",Y),re=e=>!!e&&Number.isInteger(Number(e)),jt=e=>e.endsWith("%")&&Y(e.slice(0,-1)),g=e=>Ie.test(e),U=e=>Kt.test(e),$t=new Set(["length","size","percentage"]),Gt=e=>ee(e,$t,Ke),Ht=e=>ee(e,"position",Ke),_t=new Set(["image","url"]),Ut=e=>ee(e,_t,Xt),Wt=e=>ee(e,"",Ft),oe=()=>!0,ee=(e,t,r)=>{let o=Ie.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Ot=e=>Bt.test(e)&&!Et.test(e),Ke=()=>!1,Ft=e=>Lt.test(e),Xt=e=>Vt.test(e);var Jt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),o=N("brightness"),s=N("borderColor"),n=N("borderRadius"),i=N("borderSpacing"),l=N("borderWidth"),f=N("contrast"),v=N("grayscale"),w=N("hueRotate"),C=N("invert"),R=N("gap"),m=N("gradientColorStops"),y=N("gradientColorStopPositions"),a=N("inset"),d=N("margin"),b=N("opacity"),x=N("padding"),I=N("saturate"),E=N("scale"),A=N("sepia"),L=N("skew"),ne=N("space"),K=N("translate"),F=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",g,t],S=()=>[g,t],Se=()=>["",G,_],ae=()=>["auto",Y,g],Ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",g],Pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Y,g];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[G,_],blur:["none","",U,g],brightness:$(),borderColor:[e],borderRadius:["none","","full",U,g],borderSpacing:S(),borderWidth:Se(),contrast:$(),grayscale:te(),hueRotate:$(),invert:te(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[jt,_],inset:pe(),margin:pe(),opacity:$(),padding:S(),saturate:$(),scale:$(),sepia:te(),skew:$(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Pe()}],"break-before":[{"break-before":Pe()}],"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:[...Ce(),g]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[a]}],"inset-x":[{"inset-x":[a]}],"inset-y":[{"inset-y":[a]}],start:[{start:[a]}],end:[{end:[a]}],top:[{top:[a]}],right:[{right:[a]}],bottom:[{bottom:[a]}],left:[{left:[a]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",re,g]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",g]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",re,g]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",re,g]},g]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[re,g]},g]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ve:[{Ve:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[d]}],mx:[{mx:[d]}],my:[{my:[d]}],ms:[{ms:[d]}],me:[{me:[d]}],mt:[{mt:[d]}],mr:[{mr:[d]}],mb:[{mb:[d]}],ml:[{ml:[d]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",g,t]}],"min-w":[{"min-w":[g,t,"min","max","fit"]}],"max-w":[{"max-w":[g,t,"none","full","min","max","fit","prose",{screen:[U]},U]}],h:[{h:[g,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[g,t,"auto","min","max","fit"]}],"font-size":[{text:["base",U,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ge]}],"font-family":[{font:[oe]}],"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",g]}],"line-clamp":[{"line-clamp":["none",Y,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,g]}],"list-image":[{"list-image":["none",g]}],"list-style-type":[{list:["none","disc","decimal",g]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,_]}],"underline-offset":[{"underline-offset":["auto",G,g]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g]}],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",g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ce(),Ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ut]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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-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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:se()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[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:["",...se()]}],"outline-offset":[{"outline-offset":[G,g]}],"outline-w":[{outline:[G,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[G,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,Wt]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",U,g]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[C]}],saturate:[{saturate:[I]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",g]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[re,g]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",g]}],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","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",g]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-Ve":[{"scroll-Ve":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",g]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,_,ge]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],Ve:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["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-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"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-y":["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-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ve":["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-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Be=zt(Jt);function k(...e){return Be((0,Ee.clsx)(e))}var Ve=require("react/jsx-runtime"),qt=(0,Le.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 le({className:e,variant:t,...r}){return(0,Ve.jsx)("div",{className:k(qt({variant:t}),e),...r})}var je=require("@radix-ui/react-slot"),Ge=X(require("react")),Qt=(0,$e.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"}}}),z=Ge.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,Ve.jsx)(e?je.Slot:"button",{className:k(Qt({className:t,size:r,variant:o})),ref:n,...s}));z.displayName="Button";function _e(e,t){let[r,o]=(0,ct.useState)(()=>{if(typeof window>"Ve")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),s=n=>{try{o(n),typeof window<"Ve"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,ct.useEffect)(()=>{s(r)},[]),[r,s]}var ce=require("react-icons/fa");function xe({title:e,description:t,badge:r,primaryAction:o,secondaryAction:s,gradient:n,children:i,className:l}){let[f,v]=_e(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!t),w=!s&&!t||f;return(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} Ve-8 text-white ${l||""}`,children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Ve.jsx)(le,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Ve.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[w&&o&&(0,Ve.jsx)(z,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(s||t)&&(0,Ve.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 Ve-1 text-white transition-colors",onClick:()=>v(!f),style:{lineHeight:0},children:f?(0,Ve.jsx)(ce.FaChevronDown,{size:22}):(0,Ve.jsx)(ce.FaChevronUp,{size:22})})]})]}),!w&&(0,Ve.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ve.jsxs)("div",{className:"space-y-4",children:[(0,Ve.jsx)("Ve",{className:"max-w-[600px] text-white/80",children:t}),(0,Ve.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Ve.jsx)(z,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),s&&(0,Ve.jsx)(z,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),i&&(0,Ve.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var B=require("lucide-react");var We=X(require("react"));var J=We.forwardRef(({className:e,type:t,...r},o)=>(0,Ve.jsx)("input",{type:t,className:k("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:o,...r}));J.displayName="Input";var ve=X(require("react")),M=X(require("@radix-ui/react-scroll-area"));var ye=ve.forwardRef(({className:e,children:t,...r},o)=>(0,Ve.jsxs)(M.Root,{ref:o,className:k("relative overflow-hidden",e),...r,children:[(0,Ve.jsx)(M.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ve.jsx)(Fe,{}),(0,Ve.jsx)(M.Corner,{})]}));ye.displayName=M.Root.displayName;var Fe=ve.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ve.jsx)(M.ScrollAreaScrollbar,{ref:o,orientation:t,className:k("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Ve-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ve-[1px]",e),...r,children:(0,Ve.jsx)(M.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Fe.displayName=M.ScrollAreaScrollbar.displayName;var Xe=X(require("react")),me=Xe.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("textarea",{className:k("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:r,...t}));me.displayName="Textarea";var h=X(require("@radix-ui/react-select")),O=X(require("react")),qe=h.Root;var Qe=h.Value,we=O.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(h.Trigger,{className:k("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:o,...r,children:[e,(0,Ve.jsx)(h.Icon,{asChild:!0,children:(0,Ve.jsx)(B.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));we.displayName=h.Trigger.displayName;var Ze=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.ScrollUpButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(B.ChevronUp,{className:"h-4 w-4"})}));Ze.displayName=h.ScrollUpButton.displayName;var Ye=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.ScrollDownButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(B.ChevronDown,{className:"h-4 w-4"})}));Ye.displayName=h.ScrollDownButton.displayName;var Ne=O.forwardRef(({children:e,className:t,position:r="popper",...o},s)=>(0,Ve.jsx)(h.Portal,{children:(0,Ve.jsxs)(h.Content,{className:k("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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:s,...o,children:[(0,Ve.jsx)(Ze,{}),(0,Ve.jsx)(h.Viewport,{className:k("Ve-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ve.jsx)(Ye,{})]})}));Ne.displayName=h.Content.displayName;var Zt=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.Label,{className:k("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Zt.displayName=h.Label.displayName;var ue=O.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(h.Item,{className:k("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:o,...r,children:[(0,Ve.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ve.jsx)(h.ItemIndicator,{children:(0,Ve.jsx)(B.Check,{className:"h-4 w-4"})})}),(0,Ve.jsx)(h.ItemText,{children:e})]}));ue.displayName=h.Item.displayName;var Yt=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.Separator,{className:k("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Yt.displayName=h.Separator.displayName;function rt({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:s=[]}){let[n,i]=(0,ct.useState)({...e,updatedAt:new Date}),l=()=>{let a=new Set,d=new Set;return s.forEach(b=>{b.menuConfig.groupBy.forEach(x=>a.add(x))}),o.forEach(b=>{b.metadata&&Object.keys(b.metadata).forEach(x=>d.add(x))}),{contextKeys:Array.from(a).sort(),documentKeys:Array.from(d).sort(),allKeys:Array.from(new Set([...a,...d])).sort()}},f=a=>{let d=new Set;return o.forEach(b=>{b.metadata?.[a]&&d.add(String(b.metadata[a]))}),Array.from(d).sort()},v=l(),w=()=>{t(n)},C=(a,d)=>{i(b=>({...b,metadata:{...b.metadata,[a]:d}}))},R=(a,d)=>{d==="__custom__"?C(a,""):C(a,d)},m=()=>{let a=`field_${Date.now()}`;C(a,"")},y=a=>{i(d=>{let b={...d.metadata};return delete b[a],{...d,metadata:b}})};return(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ve.jsxs)("div",{className:"border-b border-border bg-card Ve-8",children:[(0,Ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ve.jsx)("div",{className:"flex-shrink-0 Ve-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Ve.jsx)(B.Edit3,{className:"h-6 w-6 text-primary"})}),(0,Ve.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,Ve.jsxs)("div",{className:"flex gap-2",children:[(0,Ve.jsxs)(z,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Ve.jsx)(B.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Ve.jsxs)(z,{size:"sm",onClick:w,className:"gap-2",children:[(0,Ve.jsx)(B.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Ve.jsxs)("div",{className:"space-y-4",children:[(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,Ve.jsx)(J,{value:n.title,onChange:a=>i(d=>({...d,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,Ve.jsx)(me,{value:n.description||"",onChange:a=>i(d=>({...d,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,Ve.jsxs)("div",{children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),v.contextKeys.length>0&&(0,Ve.jsxs)("Ve",{className:"text-xs text-muted-foreground",children:["Suggested: ",v.contextKeys.slice(0,4).join(", "),v.contextKeys.length>4&&` +${v.contextKeys.length-4}`]})]}),(0,Ve.jsxs)(z,{type:"button",variant:"outline",size:"sm",onClick:m,className:"gap-1 h-8",children:[(0,Ve.jsx)(B.Plus,{className:"h-3 w-3"}),"Add"]})]}),n.metadata&&Object.keys(n.metadata).length>0?(0,Ve.jsx)("div",{className:"space-y-2",children:Object.entries(n.metadata).map(([a,d])=>{let b=f(a);return(0,Ve.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ve.jsx)(J,{value:a,onChange:x=>{let I=x.target.value,E=n.metadata?.[a];i(A=>{let L={...A.metadata};return delete L[a],I&&(L[I]=E||""),{...A,metadata:L}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${a}`}),(0,Ve.jsx)("datalist",{id:`metadata-keys-${a}`,children:v.allKeys.map(x=>(0,Ve.jsx)("option",{value:x},x))}),(0,Ve.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),b.length>0?(0,Ve.jsxs)(qe,{value:String(d||""),onValueChange:x=>R(a,x),children:[(0,Ve.jsx)(we,{className:"flex-1 h-8 text-sm",children:(0,Ve.jsx)(Qe,{placeholder:"Value"})}),(0,Ve.jsxs)(Ne,{children:[b.map(x=>(0,Ve.jsx)(ue,{value:x,children:x},x)),(0,Ve.jsx)(ue,{value:"__custom__",children:(0,Ve.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Ve.jsx)(J,{value:String(d||""),onChange:x=>C(a,x.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Ve.jsx)(z,{type:"button",variant:"ghost",size:"sm",onClick:()=>y(a),className:"h-8 w-8 Ve-0 text-muted-foreground hover:text-destructive",children:(0,Ve.jsx)(B.X,{className:"h-3 w-3"})})]},a)})}):(0,Ve.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,Ve.jsx)("Ve",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ve.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Ve.jsx)(le,{variant:"secondary",className:"font-mono",children:n.format.toUpperCase()})]})]})]}),(0,Ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ve.jsxs)("div",{className:"Ve-8",children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Ve.jsx)(me,{value:n.content||"",onChange:a=>i(d=>({...d,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var st=e=>(0,Ve.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),ot=e=>(0,Ve.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),er=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg Ve-4 mb-4",children:(0,Ve.jsxs)("Ve",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Ve.jsx)("pre",{className:"text-sm",children:e})]}),tr=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg Ve-4 mb-4",children:(0,Ve.jsxs)("Ve",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),st(e)]});function it({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:s=[],knowledgeContexts:n=[]}){let[i,l]=(0,ct.useState)(!1),f=m=>{switch(m){case"markdown":case"mdx":return(0,Ve.jsx)(B.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ve.jsx)(B.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ve.jsx)(B.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ve.jsx)(B.File,{className:"h-6 w-6 text-muted-foreground"})}},v=m=>{switch(m){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},w=(m,y)=>{let a={markdown:st,mdx:tr,richtext:er,text:ot},d=o?.[y]||a[y];return d?d(m):ot(m)},C=m=>{l(!1),t?.(m)},R=()=>{l(!1)};return i?(0,Ve.jsx)(rt,{document:e,onSave:C,onCancel:R,availableDocuments:s,knowledgeContexts:n}):(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ve.jsxs)("div",{className:"border-b border-border bg-card Ve-8",children:[(0,Ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ve.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ve.jsx)("div",{className:"flex-shrink-0 Ve-3 rounded-xl bg-muted border border-border",children:f(e.format)}),(0,Ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ve.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Ve.jsx)("Ve",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),r&&(0,Ve.jsx)("div",{className:"flex-shrink-0",children:(0,Ve.jsxs)(z,{variant:"outline",size:"sm",onClick:()=>l(!0),className:"gap-2",children:[(0,Ve.jsx)(B.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,Ve.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Ve.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${v(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(m=>(0,Ve.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",m]},m))]})]}),(0,Ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ve.jsxs)("div",{className:"Ve-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Ve.jsxs)("div",{className:"mb-6",children:[(0,Ve.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Ve.jsx)("div",{className:"bg-muted rounded-lg Ve-3 border border-border",children:(0,Ve.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([m,y])=>(0,Ve.jsxs)("div",{className:"flex gap-1",children:[(0,Ve.jsxs)("span",{className:"text-muted-foreground font-medium",children:[m.replace(/([A-ct])/g," $1").trim(),":"]}),(0,Ve.jsx)("span",{className:"text-foreground truncate",children:String(y)})]},m))})})]}),(0,Ve.jsx)("div",{className:"space-y-4",children:e.content?(0,Ve.jsx)("div",{className:"relative",children:(0,Ve.jsx)("div",{className:"bg-card border border-border rounded-xl Ve-6 overflow-hidden",children:w(e.content,e.format)})}):(0,Ve.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ve.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Ve.jsx)("Ve",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function lt({label:e,documents:t,children:r,level:o,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i=!0}){let[l,f]=(0,ct.useState)(o===0),v=r&&Object.keys(r).length>0,w=t.length+(r?Object.values(r).reduce((m,y)=>m+y.documents.length,0):0),C=m=>{switch(m){case"markdown":case"mdx":return(0,Ve.jsx)(B.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Ve.jsx)(B.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Ve.jsx)(B.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},R=m=>{let y=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return y[m%y.length]};return(0,Ve.jsxs)("div",{className:"space-y-1",children:[(v||t.length>0)&&(0,Ve.jsxs)(Ue.motion.div,{className:`group flex items-center gap-3 Ve-3 rounded-xl cursor-pointer transition-all duration-200 ${l?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>f(!l),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:`w-1 h-6 rounded-full ${R(o)}`}),(0,Ve.jsx)(Ue.motion.div,{animate:{rotate:l?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ve.jsx)(B.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Ve.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Ve.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&w>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ve.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,Ve.jsx)(Ue.motion.div,{initial:!1,animate:{height:l?"auto":0,opacity:l?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ve.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((m,y)=>(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:y*.05,duration:.2},className:`group flex items-center gap-3 Ve-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===m.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>s?.(m),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:"flex-shrink-0",children:C(m.format)}),(0,Ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ve.jsx)("Ve",{className:`text-sm truncate transition-colors ${n===m.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:m.title}),m.description&&(0,Ve.jsx)("Ve",{className:"text-xs text-muted-foreground truncate mt-0.5",children:m.description})]}),m.tags&&m.tags.length>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0",children:(0,Ve.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:m.tags[0]})})]},m.id)),r&&Object.entries(r).map(([m,y])=>(0,Ve.jsx)(lt,{label:m,documents:y.documents,children:y.children,level:o+1,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i},m))]})})]})}function dt({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:s,selectedDocumentId:n,className:i,editable:l=!0}){let[f,v]=(0,ct.useState)(""),[w,C]=(0,ct.useState)(null),R=(0,ct.useMemo)(()=>f?e.filter(a=>a.title.toLowerCase().includes(f.toLowerCase())||a.description?.toLowerCase().includes(f.toLowerCase())||a.tags?.some(d=>d.toLowerCase().includes(f.toLowerCase()))||Object.values(a.metadata||{}).some(d=>String(d).toLowerCase().includes(f.toLowerCase()))):e,[e,f]),m=(0,ct.useMemo)(()=>{let a=(d,b)=>{if(b.length===0)return{};let[x,...I]=b;return d.reduce((A,L)=>{let ne=L.metadata?.[x]||"Uncategorized",K=String(ne);if(A[K]||(A[K]={documents:[],children:{}}),I.length===0)A[K].documents.push(L);else{let F=a([L],I),V=Object.keys(F)[0];V&&(A[K].children||(A[K].children={}),A[K].children[V]?A[K].children[V].documents.push(...F[V].documents):A[K].children[V]=F[V])}return A},{})};return a(R,t.groupBy)},[R,t.groupBy]),y=a=>{C(a),r?.(a)};return(0,Ve.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Ve.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Ve.jsx)("div",{className:"Ve-6 border-b border-border",children:(0,Ve.jsxs)("div",{className:"relative",children:[(0,Ve.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ve.jsx)(B.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsx)(J,{placeholder:"Search knowledge base...",value:f,onChange:a=>v(a.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,Ve.jsx)(ye,{className:"h-[calc(100%-100px)]",children:(0,Ve.jsxs)("div",{className:"Ve-4 space-y-3",children:[Object.entries(m).map(([a,d])=>(0,Ve.jsx)(lt,{label:a,documents:d.documents,children:d.children,level:0,onDocumentClick:y,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},a)),Object.keys(m).length===0&&(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ve.jsx)("Ve",{className:"text-sm font-medium",children:"No documents found"}),(0,Ve.jsx)("Ve",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ve.jsx)("div",{className:"flex-1 bg-background",children:w?(0,Ve.jsx)(it,{document:w,onDocumentUpdate:s,editable:l}):(0,Ve.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Ve.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-10 w-10 text-primary"})}),(0,Ve.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ve.jsx)("Ve",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function mt({documents:e=[],contexts:t=[],onDocumentClick:r=i=>console.log("Document clicked:",i),onDocumentShare:o=i=>console.log("Share document:",i),onLoadDocumentContent:s,selectedDocumentId:n}){let[i,l]=(0,ct.useState)(t[0]);return!t||t.length===0?(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Ve.jsx)(xe,{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,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Ve.jsx)("Ve",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Ve.jsx)(xe,{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,Ve.jsxs)("div",{className:"mt-6",children:[(0,Ve.jsx)("div",{className:"border-b border-border",children:(0,Ve.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(f=>(0,Ve.jsxs)("button",{onClick:()=>l(f),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${i.id===f.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[f.icon,f.label]},f.id))})}),i.description&&(0,Ve.jsx)("div",{className:"mt-3 px-1",children:(0,Ve.jsx)("Ve",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Ve.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Ve.jsx)(dt,{documents:e,menuConfig:i.menuConfig,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:n})})})]})}
5
+ "use strict";var ut=Object.create;var ie=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var ft=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty;var ht=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},Re=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ft(t))!bt.call(e,s)&&s!==r&&ie(e,s,{get:()=>t[s],enumerable:!(o=pt(t,s))||o.enumerable});return e};var X=(e,t,r)=>(r=e!=null?ut(gt(e)):{},Re(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),xt=e=>Re(ie({},"__esModule",{value:!0}),e);var rr={};ht(rr,{default:()=>mt});module.exports=xt(rr);var ct=require("react");var Ue=require("motion/react");var Le=require("class-variance-authority");var Ee=require("clsx");var he="-",vt=e=>{let t=wt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let l=i.split(he);return l[0]===""&&l.length!==1&&l.shift(),Ae(l,t)||yt(i)},getConflictingClassGroupIds:(i,l)=>{let f=r[i]||[];return l&&o[i]?[...f,...o[i]]:f}}},Ae=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?Ae(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(he);return t.validators.find(({validator:i})=>i(n))?.classGroupId},De=/^\[(.+)\]$/,yt=e=>{if(De.test(e)){let t=De.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},wt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return St(Object.entries(e.classGroups),r).forEach(([n,i])=>{be(i,o,n,t)}),o},be=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:Te(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Nt(s)){be(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,i])=>{be(i,Te(t,n),r,o)})})},Te=(e,t)=>{let r=e;return t.split(he).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Nt=e=>e.isThemeGetter,St=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,l])=>[t+i,l])):n);return[r,s]}):e,Ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return s(n,i),i},set(n,i){r.has(n)?r.set(n,i):s(n,i)}}},ze="!",kt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,i=l=>{let f=[],v=0,w=0,C;for(let d=0;d<l.length;d++){let b=l[d];if(v===0){if(b===s&&(o||l.slice(d,d+n)===t)){f.push(l.slice(w,d)),w=d+n;continue}if(b==="/"){C=d;continue}}b==="["?v++:b==="]"&&v--}let R=f.length===0?l:l.substring(w),m=R.startsWith(ze),y=m?R.substring(1):R,a=C&&C>w?C-w:void 0;return{modifiers:f,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:a}};return r?l=>r({className:l,parseClassName:i}):i},Pt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Rt=e=>({cache:Ct(e.cacheSize),parseClassName:kt(e),...vt(e)}),Dt=/\s+/,Tt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],i=e.trim().split(Dt),l="";for(let f=i.length-1;f>=0;f-=1){let v=i[f],{modifiers:w,hasImportantModifier:C,baseClassName:R,maybePostfixModifierPosition:m}=r(v),y=!!m,a=o(y?R.substring(0,m):R);if(!a){if(!y){l=v+(l.length>0?" "+l:l);continue}if(a=o(R),!a){l=v+(l.length>0?" "+l:l);continue}y=!1}let d=Pt(w).join(":"),b=C?d+ze:d,x=b+a;if(n.includes(x))continue;n.push(x);let I=s(a,y);for(let E=0;E<I.length;++E){let A=I[E];n.push(b+A)}l=v+(l.length>0?" "+l:l)}return l};function At(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Me(t))&&(o&&(o+=" "),o+=r);return o}var Me=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Me(e[o]))&&(r&&(r+=" "),r+=t);return r};function zt(e,...t){let r,o,s,n=i;function i(f){let v=t.reduce((w,C)=>C(w),e());return r=Rt(v),o=r.cache.get,s=r.cache.set,n=l,l(f)}function l(f){let v=o(f);if(v)return v;let w=Tt(f,r);return s(f,w),w}return function(){return n(At.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,Mt=/^\d+\/\d+$/,It=new Set(["px","full","screen"]),Kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bt=/\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$/,Et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>Y(e)||It.has(e)||Mt.test(e),_=e=>ee(e,"length",Ot),Y=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>ee(e,"number",Y),re=e=>!!e&&Number.isInteger(Number(e)),jt=e=>e.endsWith("%")&&Y(e.slice(0,-1)),g=e=>Ie.test(e),U=e=>Kt.test(e),$t=new Set(["length","size","percentage"]),Gt=e=>ee(e,$t,Ke),Ht=e=>ee(e,"position",Ke),_t=new Set(["image","url"]),Ut=e=>ee(e,_t,Xt),Wt=e=>ee(e,"",Ft),oe=()=>!0,ee=(e,t,r)=>{let o=Ie.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Ot=e=>Bt.test(e)&&!Et.test(e),Ke=()=>!1,Ft=e=>Lt.test(e),Xt=e=>Vt.test(e);var Jt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),o=N("brightness"),s=N("borderColor"),n=N("borderRadius"),i=N("borderSpacing"),l=N("borderWidth"),f=N("contrast"),v=N("grayscale"),w=N("hueRotate"),C=N("invert"),R=N("gap"),m=N("gradientColorStops"),y=N("gradientColorStopPositions"),a=N("inset"),d=N("margin"),b=N("opacity"),x=N("padding"),I=N("saturate"),E=N("scale"),A=N("sepia"),L=N("skew"),ne=N("space"),K=N("translate"),F=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",g,t],S=()=>[g,t],Se=()=>["",G,_],ae=()=>["auto",Y,g],Ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",g],Pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Y,g];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[G,_],blur:["none","",U,g],brightness:$(),borderColor:[e],borderRadius:["none","","full",U,g],borderSpacing:S(),borderWidth:Se(),contrast:$(),grayscale:te(),hueRotate:$(),invert:te(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[jt,_],inset:pe(),margin:pe(),opacity:$(),padding:S(),saturate:$(),scale:$(),sepia:te(),skew:$(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Pe()}],"break-before":[{"break-before":Pe()}],"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:[...Ce(),g]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[a]}],"inset-x":[{"inset-x":[a]}],"inset-y":[{"inset-y":[a]}],start:[{start:[a]}],end:[{end:[a]}],top:[{top:[a]}],right:[{right:[a]}],bottom:[{bottom:[a]}],left:[{left:[a]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",re,g]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",g]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",re,g]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",re,g]},g]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[re,g]},g]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ve:[{Ve:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[d]}],mx:[{mx:[d]}],my:[{my:[d]}],ms:[{ms:[d]}],me:[{me:[d]}],mt:[{mt:[d]}],mr:[{mr:[d]}],mb:[{mb:[d]}],ml:[{ml:[d]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",g,t]}],"min-w":[{"min-w":[g,t,"min","max","fit"]}],"max-w":[{"max-w":[g,t,"none","full","min","max","fit","prose",{screen:[U]},U]}],h:[{h:[g,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[g,t,"auto","min","max","fit"]}],"font-size":[{text:["base",U,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ge]}],"font-family":[{font:[oe]}],"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",g]}],"line-clamp":[{"line-clamp":["none",Y,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,g]}],"list-image":[{"list-image":["none",g]}],"list-style-type":[{list:["none","disc","decimal",g]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,_]}],"underline-offset":[{"underline-offset":["auto",G,g]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g]}],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",g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ce(),Ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ut]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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-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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:se()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[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:["",...se()]}],"outline-offset":[{"outline-offset":[G,g]}],"outline-w":[{outline:[G,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[G,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,Wt]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",U,g]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[C]}],saturate:[{saturate:[I]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",g]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[re,g]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",g]}],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","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",g]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-Ve":[{"scroll-Ve":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",g]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,_,ge]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],Ve:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["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-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"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-y":["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-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ve":["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-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Be=zt(Jt);function k(...e){return Be((0,Ee.clsx)(e))}var Ve=require("react/jsx-runtime"),qt=(0,Le.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 le({className:e,variant:t,...r}){return(0,Ve.jsx)("div",{className:k(qt({variant:t}),e),...r})}var je=require("@radix-ui/react-slot"),Ge=X(require("react")),Qt=(0,$e.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"}}}),z=Ge.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,Ve.jsx)(e?je.Slot:"button",{className:k(Qt({className:t,size:r,variant:o})),ref:n,...s}));z.displayName="Button";function _e(e,t){let[r,o]=(0,ct.useState)(()=>{if(typeof window>"Ve")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),s=n=>{try{o(n),typeof window<"Ve"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,ct.useEffect)(()=>{s(r)},[]),[r,s]}var ce=require("react-icons/fa");function xe({title:e,description:t,badge:r,primaryAction:o,secondaryAction:s,gradient:n,children:i,className:l}){let[f,v]=_e(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!t),w=!s&&!t||f;return(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} Ve-8 text-white ${l||""}`,children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Ve.jsx)(le,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Ve.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[w&&o&&(0,Ve.jsx)(z,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(s||t)&&(0,Ve.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 Ve-1 text-white transition-colors",onClick:()=>v(!f),style:{lineHeight:0},children:f?(0,Ve.jsx)(ce.FaChevronDown,{size:22}):(0,Ve.jsx)(ce.FaChevronUp,{size:22})})]})]}),!w&&(0,Ve.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ve.jsxs)("div",{className:"space-y-4",children:[(0,Ve.jsx)("Ve",{className:"max-w-[600px] text-white/80",children:t}),(0,Ve.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Ve.jsx)(z,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),s&&(0,Ve.jsx)(z,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),i&&(0,Ve.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var B=require("lucide-react");var We=X(require("react"));var J=We.forwardRef(({className:e,type:t,...r},o)=>(0,Ve.jsx)("input",{type:t,className:k("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:o,...r}));J.displayName="Input";var ve=X(require("react")),M=X(require("@radix-ui/react-scroll-area"));var ye=ve.forwardRef(({className:e,children:t,...r},o)=>(0,Ve.jsxs)(M.Root,{ref:o,className:k("relative overflow-hidden",e),...r,children:[(0,Ve.jsx)(M.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ve.jsx)(Fe,{}),(0,Ve.jsx)(M.Corner,{})]}));ye.displayName=M.Root.displayName;var Fe=ve.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ve.jsx)(M.ScrollAreaScrollbar,{ref:o,orientation:t,className:k("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Ve-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ve-[1px]",e),...r,children:(0,Ve.jsx)(M.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Fe.displayName=M.ScrollAreaScrollbar.displayName;var Xe=X(require("react")),me=Xe.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("textarea",{className:k("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:r,...t}));me.displayName="Textarea";var h=X(require("@radix-ui/react-select")),O=X(require("react")),qe=h.Root;var Qe=h.Value,we=O.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(h.Trigger,{className:k("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:o,...r,children:[e,(0,Ve.jsx)(h.Icon,{asChild:!0,children:(0,Ve.jsx)(B.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));we.displayName=h.Trigger.displayName;var Ze=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.ScrollUpButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(B.ChevronUp,{className:"h-4 w-4"})}));Ze.displayName=h.ScrollUpButton.displayName;var Ye=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.ScrollDownButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(B.ChevronDown,{className:"h-4 w-4"})}));Ye.displayName=h.ScrollDownButton.displayName;var Ne=O.forwardRef(({children:e,className:t,position:r="popper",...o},s)=>(0,Ve.jsx)(h.Portal,{children:(0,Ve.jsxs)(h.Content,{className:k("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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:s,...o,children:[(0,Ve.jsx)(Ze,{}),(0,Ve.jsx)(h.Viewport,{className:k("Ve-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ve.jsx)(Ye,{})]})}));Ne.displayName=h.Content.displayName;var Zt=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.Label,{className:k("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Zt.displayName=h.Label.displayName;var ue=O.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(h.Item,{className:k("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:o,...r,children:[(0,Ve.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ve.jsx)(h.ItemIndicator,{children:(0,Ve.jsx)(B.Check,{className:"h-4 w-4"})})}),(0,Ve.jsx)(h.ItemText,{children:e})]}));ue.displayName=h.Item.displayName;var Yt=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.Separator,{className:k("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Yt.displayName=h.Separator.displayName;function rt({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:s=[]}){let[n,i]=(0,ct.useState)({...e,updatedAt:new Date}),l=()=>{let a=new Set,d=new Set;return s.forEach(b=>{b.menuConfig.groupBy.forEach(x=>a.add(x))}),o.forEach(b=>{b.metadata&&Object.keys(b.metadata).forEach(x=>d.add(x))}),{contextKeys:Array.from(a).sort(),documentKeys:Array.from(d).sort(),allKeys:Array.from(new Set([...a,...d])).sort()}},f=a=>{let d=new Set;return o.forEach(b=>{b.metadata?.[a]&&d.add(String(b.metadata[a]))}),Array.from(d).sort()},v=l(),w=()=>{t(n)},C=(a,d)=>{i(b=>({...b,metadata:{...b.metadata,[a]:d}}))},R=(a,d)=>{d==="__custom__"?C(a,""):C(a,d)},m=()=>{let a=`field_${Date.now()}`;C(a,"")},y=a=>{i(d=>{let b={...d.metadata};return delete b[a],{...d,metadata:b}})};return(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ve.jsxs)("div",{className:"border-b border-border bg-card Ve-8",children:[(0,Ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ve.jsx)("div",{className:"flex-shrink-0 Ve-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Ve.jsx)(B.Edit3,{className:"h-6 w-6 text-primary"})}),(0,Ve.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,Ve.jsxs)("div",{className:"flex gap-2",children:[(0,Ve.jsxs)(z,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Ve.jsx)(B.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Ve.jsxs)(z,{size:"sm",onClick:w,className:"gap-2",children:[(0,Ve.jsx)(B.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Ve.jsxs)("div",{className:"space-y-4",children:[(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,Ve.jsx)(J,{value:n.title,onChange:a=>i(d=>({...d,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,Ve.jsx)(me,{value:n.description||"",onChange:a=>i(d=>({...d,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,Ve.jsxs)("div",{children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),v.contextKeys.length>0&&(0,Ve.jsxs)("Ve",{className:"text-xs text-muted-foreground",children:["Suggested: ",v.contextKeys.slice(0,4).join(", "),v.contextKeys.length>4&&` +${v.contextKeys.length-4}`]})]}),(0,Ve.jsxs)(z,{type:"button",variant:"outline",size:"sm",onClick:m,className:"gap-1 h-8",children:[(0,Ve.jsx)(B.Plus,{className:"h-3 w-3"}),"Add"]})]}),n.metadata&&Object.keys(n.metadata).length>0?(0,Ve.jsx)("div",{className:"space-y-2",children:Object.entries(n.metadata).map(([a,d])=>{let b=f(a);return(0,Ve.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ve.jsx)(J,{value:a,onChange:x=>{let I=x.target.value,E=n.metadata?.[a];i(A=>{let L={...A.metadata};return delete L[a],I&&(L[I]=E||""),{...A,metadata:L}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${a}`}),(0,Ve.jsx)("datalist",{id:`metadata-keys-${a}`,children:v.allKeys.map(x=>(0,Ve.jsx)("option",{value:x},x))}),(0,Ve.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),b.length>0?(0,Ve.jsxs)(qe,{value:String(d||""),onValueChange:x=>R(a,x),children:[(0,Ve.jsx)(we,{className:"flex-1 h-8 text-sm",children:(0,Ve.jsx)(Qe,{placeholder:"Value"})}),(0,Ve.jsxs)(Ne,{children:[b.map(x=>(0,Ve.jsx)(ue,{value:x,children:x},x)),(0,Ve.jsx)(ue,{value:"__custom__",children:(0,Ve.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Ve.jsx)(J,{value:String(d||""),onChange:x=>C(a,x.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Ve.jsx)(z,{type:"button",variant:"ghost",size:"sm",onClick:()=>y(a),className:"h-8 w-8 Ve-0 text-muted-foreground hover:text-destructive",children:(0,Ve.jsx)(B.X,{className:"h-3 w-3"})})]},a)})}):(0,Ve.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,Ve.jsx)("Ve",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ve.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Ve.jsx)(le,{variant:"secondary",className:"font-mono",children:n.format.toUpperCase()})]})]})]}),(0,Ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ve.jsxs)("div",{className:"Ve-8",children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Ve.jsx)(me,{value:n.content||"",onChange:a=>i(d=>({...d,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var st=e=>(0,Ve.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),ot=e=>(0,Ve.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),er=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg Ve-4 mb-4",children:(0,Ve.jsxs)("Ve",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Ve.jsx)("pre",{className:"text-sm",children:e})]}),tr=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg Ve-4 mb-4",children:(0,Ve.jsxs)("Ve",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),st(e)]});function it({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:s=[],knowledgeContexts:n=[]}){let[i,l]=(0,ct.useState)(!1),f=m=>{switch(m){case"markdown":case"mdx":return(0,Ve.jsx)(B.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ve.jsx)(B.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ve.jsx)(B.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ve.jsx)(B.File,{className:"h-6 w-6 text-muted-foreground"})}},v=m=>{switch(m){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},w=(m,y)=>{let a={markdown:st,mdx:tr,richtext:er,text:ot},d=o?.[y]||a[y];return d?d(m):ot(m)},C=m=>{l(!1),t?.(m)},R=()=>{l(!1)};return i?(0,Ve.jsx)(rt,{document:e,onSave:C,onCancel:R,availableDocuments:s,knowledgeContexts:n}):(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ve.jsxs)("div",{className:"border-b border-border bg-card Ve-8",children:[(0,Ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ve.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ve.jsx)("div",{className:"flex-shrink-0 Ve-3 rounded-xl bg-muted border border-border",children:f(e.format)}),(0,Ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ve.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Ve.jsx)("Ve",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),r&&(0,Ve.jsx)("div",{className:"flex-shrink-0",children:(0,Ve.jsxs)(z,{variant:"outline",size:"sm",onClick:()=>l(!0),className:"gap-2",children:[(0,Ve.jsx)(B.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,Ve.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Ve.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${v(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(m=>(0,Ve.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",m]},m))]})]}),(0,Ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ve.jsxs)("div",{className:"Ve-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Ve.jsxs)("div",{className:"mb-6",children:[(0,Ve.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Ve.jsx)("div",{className:"bg-muted rounded-lg Ve-3 border border-border",children:(0,Ve.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([m,y])=>(0,Ve.jsxs)("div",{className:"flex gap-1",children:[(0,Ve.jsxs)("span",{className:"text-muted-foreground font-medium",children:[m.replace(/([A-ct])/g," $1").trim(),":"]}),(0,Ve.jsx)("span",{className:"text-foreground truncate",children:String(y)})]},m))})})]}),(0,Ve.jsx)("div",{className:"space-y-4",children:e.content?(0,Ve.jsx)("div",{className:"relative",children:(0,Ve.jsx)("div",{className:"bg-card border border-border rounded-xl Ve-6 overflow-hidden",children:w(e.content,e.format)})}):(0,Ve.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ve.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Ve.jsx)("Ve",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function lt({label:e,documents:t,children:r,level:o,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i=!0}){let[l,f]=(0,ct.useState)(o===0),v=r&&Object.keys(r).length>0,w=t.length+(r?Object.values(r).reduce((m,y)=>m+y.documents.length,0):0),C=m=>{switch(m){case"markdown":case"mdx":return(0,Ve.jsx)(B.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Ve.jsx)(B.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Ve.jsx)(B.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},R=m=>{let y=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return y[m%y.length]};return(0,Ve.jsxs)("div",{className:"space-y-1",children:[(v||t.length>0)&&(0,Ve.jsxs)(Ue.motion.div,{className:`group flex items-center gap-3 Ve-3 rounded-xl cursor-pointer transition-all duration-200 ${l?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>f(!l),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:`w-1 h-6 rounded-full ${R(o)}`}),(0,Ve.jsx)(Ue.motion.div,{animate:{rotate:l?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ve.jsx)(B.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Ve.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Ve.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&w>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ve.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,Ve.jsx)(Ue.motion.div,{initial:!1,animate:{height:l?"auto":0,opacity:l?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ve.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((m,y)=>(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:y*.05,duration:.2},className:`group flex items-center gap-3 Ve-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===m.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>s?.(m),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:"flex-shrink-0",children:C(m.format)}),(0,Ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ve.jsx)("Ve",{className:`text-sm truncate transition-colors ${n===m.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:m.title}),m.description&&(0,Ve.jsx)("Ve",{className:"text-xs text-muted-foreground truncate mt-0.5",children:m.description})]}),m.tags&&m.tags.length>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0",children:(0,Ve.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:m.tags[0]})})]},m.id)),r&&Object.entries(r).map(([m,y])=>(0,Ve.jsx)(lt,{label:m,documents:y.documents,children:y.children,level:o+1,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i},m))]})})]})}function dt({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:s,selectedDocumentId:n,className:i,editable:l=!0}){let[f,v]=(0,ct.useState)(""),[w,C]=(0,ct.useState)(null),R=(0,ct.useMemo)(()=>f?e.filter(a=>a.title.toLowerCase().includes(f.toLowerCase())||a.description?.toLowerCase().includes(f.toLowerCase())||a.tags?.some(d=>d.toLowerCase().includes(f.toLowerCase()))||Object.values(a.metadata||{}).some(d=>String(d).toLowerCase().includes(f.toLowerCase()))):e,[e,f]),m=(0,ct.useMemo)(()=>{let a=(d,b)=>{if(b.length===0)return{};let[x,...I]=b;return d.reduce((A,L)=>{let ne=L.metadata?.[x]||"Uncategorized",K=String(ne);if(A[K]||(A[K]={documents:[],children:{}}),I.length===0)A[K].documents.push(L);else{let F=a([L],I),V=Object.keys(F)[0];V&&(A[K].children||(A[K].children={}),A[K].children[V]?A[K].children[V].documents.push(...F[V].documents):A[K].children[V]=F[V])}return A},{})};return a(R,t.groupBy)},[R,t.groupBy]),y=a=>{C(a),r?.(a)};return(0,Ve.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Ve.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Ve.jsx)("div",{className:"Ve-6 border-b border-border",children:(0,Ve.jsxs)("div",{className:"relative",children:[(0,Ve.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ve.jsx)(B.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsx)(J,{placeholder:"Search knowledge base...",value:f,onChange:a=>v(a.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,Ve.jsx)(ye,{className:"h-[calc(100%-100px)]",children:(0,Ve.jsxs)("div",{className:"Ve-4 space-y-3",children:[Object.entries(m).map(([a,d])=>(0,Ve.jsx)(lt,{label:a,documents:d.documents,children:d.children,level:0,onDocumentClick:y,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},a)),Object.keys(m).length===0&&(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ve.jsx)("Ve",{className:"text-sm font-medium",children:"No documents found"}),(0,Ve.jsx)("Ve",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ve.jsx)("div",{className:"flex-1 bg-background",children:w?(0,Ve.jsx)(it,{document:w,onDocumentUpdate:s,editable:l}):(0,Ve.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Ve.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-10 w-10 text-primary"})}),(0,Ve.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ve.jsx)("Ve",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function mt({documents:e=[],contexts:t=[],onDocumentClick:r=i=>console.log("Document clicked:",i),onDocumentShare:o=i=>console.log("Share document:",i),onLoadDocumentContent:s,selectedDocumentId:n}){let[i,l]=(0,ct.useState)(t[0]);return!t||t.length===0?(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Ve.jsx)(xe,{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,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Ve.jsx)("Ve",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Ve.jsx)(xe,{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,Ve.jsxs)("div",{className:"mt-6",children:[(0,Ve.jsx)("div",{className:"border-b border-border",children:(0,Ve.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(f=>(0,Ve.jsxs)("button",{onClick:()=>l(f),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${i.id===f.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[f.icon,f.label]},f.id))})}),i.description&&(0,Ve.jsx)("div",{className:"mt-3 px-1",children:(0,Ve.jsx)("Ve",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Ve.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Ve.jsx)(dt,{documents:e,menuConfig:i.menuConfig,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:n})})})]})}
@@ -1 +1 @@
1
- import{a}from"../../../chunk-URYIYEGY.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-O4GULNQE.mjs";import"../../../chunk-3PHJWI4Q.mjs";import"../../../chunk-XKM35QQD.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-CSBGSBEU.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{a as default};
1
+ import{a}from"../../../chunk-5BV4MHV6.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-ZXPDSSCF.mjs";import"../../../chunk-RHR3YOLG.mjs";import"../../../chunk-AREQGH47.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-CSBGSBEU.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{a as default};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  'use client'
4
4
 
5
- "use strict";"use client";var Xe=Object.create;var J=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var Ye=Object.getOwnPropertyNames;var Ze=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var et=(e,t)=>{for(var o in t)J(e,o,{get:t[o],enumerable:!0})},Ce=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ye(t))!Qe.call(e,a)&&a!==o&&J(e,a,{get:()=>t[a],enumerable:!(r=Ke(t,a))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?Xe(Ze(e)):{},Ce(t||!e||!e.__esModule?J(o,"default",{value:e,enumerable:!0}):o,e)),tt=e=>Ce(J({},"__esModule",{value:!0}),e);var Gt={};et(Gt,{default:()=>qe});module.exports=tt(Gt);var Je=require("react"),Y=require("framer-motion");var He=require("class-variance-authority");var Se=require("clsx");var ne="-",ot=e=>{let t=nt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(ne);return s[0]===""&&s.length!==1&&s.shift(),ke(s,t)||rt(i)},getConflictingClassGroupIds:(i,s)=>{let d=o[i]||[];return s&&r[i]?[...d,...r[i]]:d}}},ke=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?ke(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(ne);return t.validators.find(({validator:i})=>i(n))?.classGroupId},Ne=/^\[(.+)\]$/,rt=e=>{if(Ne.test(e)){let t=Ne.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},nt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return st(Object.entries(e.classGroups),o).forEach(([n,i])=>{re(i,r,n,t)}),r},re=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:Te(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(at(a)){re(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,i])=>{re(i,Te(t,n),o,r)})})},Te=(e,t)=>{let o=e;return t.split(ne).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},at=e=>e.isThemeGetter,st=(e,t)=>t?e.map(([o,r])=>{let a=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[o,a]}):e,it=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(n,i)=>{o.set(n,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let i=o.get(n);if(i!==void 0)return i;if((i=r.get(n))!==void 0)return a(n,i),i},set(n,i){o.has(n)?o.set(n,i):a(n,i)}}},Re="!",lt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],n=t.length,i=s=>{let d=[],v=0,x=0,T;for(let u=0;u<s.length;u++){let w=s[u];if(v===0){if(w===a&&(r||s.slice(u,u+n)===t)){d.push(s.slice(x,u)),x=u+n;continue}if(w==="/"){T=u;continue}}w==="["?v++:w==="]"&&v--}let k=d.length===0?s:s.substring(x),P=k.startsWith(Re),R=P?k.substring(1):k,y=T&&T>x?T-x:void 0;return{modifiers:d,hasImportantModifier:P,baseClassName:R,maybePostfixModifierPosition:y}};return o?s=>o({className:s,parseClassName:i}):i},ct=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},dt=e=>({cache:it(e.cacheSize),parseClassName:lt(e),...ot(e)}),pt=/\s+/,mt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(pt),s="";for(let d=i.length-1;d>=0;d-=1){let v=i[d],{modifiers:x,hasImportantModifier:T,baseClassName:k,maybePostfixModifierPosition:P}=o(v),R=!!P,y=r(R?k.substring(0,P):k);if(!y){if(!R){s=v+(s.length>0?" "+s:s);continue}if(y=r(k),!y){s=v+(s.length>0?" "+s:s);continue}R=!1}let u=ct(x).join(":"),w=T?u+Re:u,N=w+y;if(n.includes(N))continue;n.push(N);let V=a(y,R);for(let H=0;H<V.length;++H){let _=V[H];n.push(w+_)}s=v+(s.length>0?" "+s:s)}return s};function ut(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Pe(t))&&(r&&(r+=" "),r+=o);return r}var Pe=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Pe(e[r]))&&(o&&(o+=" "),o+=t);return o};function ft(e,...t){let o,r,a,n=i;function i(d){let v=t.reduce((x,T)=>T(x),e());return o=dt(v),r=o.cache.get,a=o.cache.set,n=s,s(d)}function s(d){let v=r(d);if(v)return v;let x=mt(d,o);return a(d,x),x}return function(){return n(ut.apply(null,arguments))}}var p=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},De=/^\[(?:([a-z-]+):)?(.+)\]$/i,gt=/^\d+\/\d+$/,bt=new Set(["px","full","screen"]),ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|Ae|min|max))|\Ae(calc|min|max|clamp)\(.+\)|^0$/,xt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>I(e)||bt.has(e)||gt.test(e),z=e=>G(e,"length",Mt),I=e=>!!e&&!Number.isNaN(Number(e)),oe=e=>G(e,"number",I),j=e=>!!e&&Number.isInteger(Number(e)),Ct=e=>e.endsWith("%")&&I(e.slice(0,-1)),l=e=>De.test(e),S=e=>ht.test(e),Nt=new Set(["length","size","percentage"]),Tt=e=>G(e,Nt,Me),kt=e=>G(e,"position",Me),Rt=new Set(["image","url"]),Pt=e=>G(e,Rt,St),Dt=e=>G(e,"",zt),W=()=>!0,G=(e,t,o)=>{let r=De.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Mt=e=>vt.test(e)&&!xt.test(e),Me=()=>!1,zt=e=>yt.test(e),St=e=>wt.test(e);var Ht=()=>{let e=p("colors"),t=p("spacing"),o=p("blur"),r=p("brightness"),a=p("borderColor"),n=p("borderRadius"),i=p("borderSpacing"),s=p("borderWidth"),d=p("contrast"),v=p("grayscale"),x=p("hueRotate"),T=p("invert"),k=p("gap"),P=p("gradientColorStops"),R=p("gradientColorStopPositions"),y=p("inset"),u=p("margin"),w=p("opacity"),N=p("padding"),V=p("saturate"),H=p("scale"),_=p("sepia"),ge=p("skew"),be=p("space"),he=p("translate"),Z=()=>["auto","contain","none"],Q=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto",l,t],m=()=>[l,t],ve=()=>["",M,z],$=()=>["auto",I,l],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",l],we=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[I,l];return{cacheSize:500,separator:":",theme:{colors:[W],spacing:[M,z],blur:["none","",S,l],brightness:D(),borderColor:[e],borderRadius:["none","","full",S,l],borderSpacing:m(),borderWidth:ve(),contrast:D(),grayscale:O(),hueRotate:D(),invert:O(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[Ct,z],inset:ee(),margin:ee(),opacity:D(),padding:m(),saturate:D(),scale:D(),sepia:O(),skew:D(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":we()}],"break-before":[{"break-before":we()}],"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:[...xe(),l]}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",j,l]}],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",l]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",j,l]}],"grid-cols":[{"grid-cols":[W]}],"col-start-end":[{col:["auto",{span:["full",j,l]},l]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[W]}],"row-start-end":[{row:["auto",{span:[j,l]},l]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],pe:[{pe:[N]}],pt:[{pt:[N]}],pr:[{pr:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",S,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",oe]}],"font-family":[{font:[W]}],"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",l]}],"line-clamp":[{"line-clamp":["none",I,oe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",M,z]}],"underline-offset":[{"underline-offset":["auto",M,l]}],"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:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),kt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Ae","bl","l","tl"]},Pt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-Ae":[{"rounded-Ae":[n]}],"rounded-l":[{"rounded-l":[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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-Ae":[{"border-Ae":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:U()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-Ae":[{"border-Ae":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[M,l]}],"outline-w":[{outline:[M,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[M,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,Dt]}],"shadow-color":[{shadow:[W]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",S,l]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[T]}],saturate:[{saturate:[V]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[j,l]}],"translate-x":[{"translate-x":[he]}],"translate-y":[{"translate-y":[he]}],"skew-x":[{"skew-x":[ge]}],"skew-y":[{"skew-y":[ge]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[M,z,oe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["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-Ae","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Ae":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Ae","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-Ae"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Ae","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Ae"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ze=ft(Ht);function g(...e){return ze((0,Se.clsx)(e))}var Ae=require("react/jsx-runtime"),Lt=(0,He.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 Le({className:e,variant:t,...o}){return(0,Ae.jsx)("div",{className:g(Lt({variant:t}),e),...o})}var Ee=require("@radix-ui/react-slot"),Ge=q(require("react")),At=(0,He.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"}}}),L=Ge.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},n)=>(0,Ae.jsx)(e?Ee.Slot:"button",{className:g(At({className:t,size:o,variant:r})),ref:n,...a}));L.displayName="Button";function Ve(e,t){let[o,r]=(0,Je.useState)(()=>{if(typeof window>"u")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),a=n=>{try{r(n),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,Je.useEffect)(()=>{a(o)},[]),[o,a]}var K=require("react-icons/fa");function je({title:e,description:t,badge:o,primaryAction:r,secondaryAction:a,gradient:n,children:i,className:s}){let[d,v]=Ve(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!t),x=!a&&!t||d;return(0,Ae.jsxs)(Y.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} p-8 text-white ${s||""}`,children:[(0,Ae.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Ae.jsx)(Le,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Ae.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ae.jsxs)("div",{className:"flex items-center gap-3",children:[x&&r&&(0,Ae.jsx)(L,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(a||t)&&(0,Ae.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:()=>v(!d),style:{lineHeight:0},children:d?(0,Ae.jsx)(K.FaChevronDown,{size:22}):(0,Ae.jsx)(K.FaChevronUp,{size:22})})]})]}),!x&&(0,Ae.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ae.jsxs)("div",{className:"space-y-4",children:[(0,Ae.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Ae.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Ae.jsx)(L,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),a&&(0,Ae.jsx)(L,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),i&&(0,Ae.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var B=require("lucide-react");var A=q(require("react"));var ae=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ae.displayName="Card";var se=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 p-6",e),...t}));se.displayName="CardHeader";var ie=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));ie.displayName="CardTitle";var le=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));le.displayName="CardDescription";var ce=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...t}));ce.displayName="CardContent";var de=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...t}));de.displayName="CardFooter";function Fe({team:e,onOpen:t,className:o}){return(0,Ae.jsx)(Y.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:o,children:(0,Ae.jsxs)(ae,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Ae.jsxs)(se,{children:[(0,Ae.jsx)(ie,{className:"text-lg",children:e.name}),(0,Ae.jsx)(le,{className:"mt-1 text-sm",children:e.description})]}),(0,Ae.jsxs)(ce,{className:"space-y-4",children:[(0,Ae.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ae.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ae.jsx)(B.Users,{className:"h-4 w-4 text-blue-500"}),(0,Ae.jsx)("span",{children:"Human"})]}),(0,Ae.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,Ae.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ae.jsx)(B.Bot,{className:"h-4 w-4 text-purple-500"}),(0,Ae.jsx)("span",{children:"Digital"})]}),(0,Ae.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,Ae.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ae.jsx)(B.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,Ae.jsx)("span",{children:"Projects"})]}),(0,Ae.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,Ae.jsx)(de,{className:"flex gap-2",children:(0,Ae.jsx)(L,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}var F=q(require("react")),h=q(require("@radix-ui/react-dialog"));var $e=h.Root;var Et=h.Portal;var Ue=F.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)(h.Overlay,{ref:o,className:g("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}));Ue.displayName=h.Overlay.displayName;var pe=F.forwardRef(({className:e,children:t,...o},r)=>(0,Ae.jsxs)(Et,{children:[(0,Ae.jsx)(Ue,{}),(0,Ae.jsxs)(h.Content,{ref:r,className:g("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-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,Ae.jsxs)(h.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,Ae.jsx)(B.Je,{className:"h-4 w-4"}),(0,Ae.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));pe.displayName=h.Content.displayName;var me=({className:e,...t})=>(0,Ae.jsx)("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});me.displayName="DialogHeader";var It=({className:e,...t})=>(0,Ae.jsx)("div",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});It.displayName="DialogFooter";var ue=F.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)(h.Title,{ref:o,className:g("text-lg font-semibold leading-none tracking-tight",e),...t}));ue.displayName=h.Title.displayName;var fe=F.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)(h.Description,{ref:o,className:g("text-sm text-muted-foreground",e),...t}));fe.displayName=h.Description.displayName;function qe({teams:e=[],onCreateTeam:t,onTeamOpen:o}){let[r,a]=(0,Je.useState)(!1),n=()=>{a(!0),t?.()},i=s=>{o?.(s)};return(0,Ae.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Ae.jsx)(Y.AnimatePresence,{mode:"wait",children:(0,Ae.jsxs)(Y.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Ae.jsx)(je,{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,Ae.jsxs)("section",{className:"space-y-4 mt-8",children:[(0,Ae.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,Ae.jsxs)("div",{className:"text-center py-12",children:[(0,Ae.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,Ae.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,Ae.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(s=>(0,Ae.jsx)(Fe,{team:s,onOpen:i},s.id))})]})]},"teams-index-view")}),(0,Ae.jsx)($e,{open:r,onOpenChange:a,children:(0,Ae.jsxs)(pe,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[(0,Ae.jsxs)(me,{children:[(0,Ae.jsx)(ue,{children:"Create New Team"}),(0,Ae.jsx)(fe,{children:"Set up a new team to collaborate with colleagues on projects."})]}),(0,Ae.jsx)("div",{className:"p-6 text-center text-muted-foreground",children:(0,Ae.jsx)("p",{children:"Team creation form coming soon..."})})]})})]})}
5
+ "use strict";"use client";var Xe=Object.create;var J=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var Ye=Object.getOwnPropertyNames;var Ze=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var et=(e,t)=>{for(var o in t)J(e,o,{get:t[o],enumerable:!0})},Ce=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ye(t))!Qe.call(e,a)&&a!==o&&J(e,a,{get:()=>t[a],enumerable:!(r=Ke(t,a))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?Xe(Ze(e)):{},Ce(t||!e||!e.__esModule?J(o,"default",{value:e,enumerable:!0}):o,e)),tt=e=>Ce(J({},"__esModule",{value:!0}),e);var Gt={};et(Gt,{default:()=>qe});module.exports=tt(Gt);var Je=require("react"),Y=require("motion/react");var He=require("class-variance-authority");var Se=require("clsx");var ne="-",ot=e=>{let t=nt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(ne);return s[0]===""&&s.length!==1&&s.shift(),ke(s,t)||rt(i)},getConflictingClassGroupIds:(i,s)=>{let d=o[i]||[];return s&&r[i]?[...d,...r[i]]:d}}},ke=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?ke(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(ne);return t.validators.find(({validator:i})=>i(n))?.classGroupId},Ne=/^\[(.+)\]$/,rt=e=>{if(Ne.test(e)){let t=Ne.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},nt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return st(Object.entries(e.classGroups),o).forEach(([n,i])=>{re(i,r,n,t)}),r},re=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:Te(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(at(a)){re(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,i])=>{re(i,Te(t,n),o,r)})})},Te=(e,t)=>{let o=e;return t.split(ne).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},at=e=>e.isThemeGetter,st=(e,t)=>t?e.map(([o,r])=>{let a=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[o,a]}):e,it=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(n,i)=>{o.set(n,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let i=o.get(n);if(i!==void 0)return i;if((i=r.get(n))!==void 0)return a(n,i),i},set(n,i){o.has(n)?o.set(n,i):a(n,i)}}},Re="!",lt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],n=t.length,i=s=>{let d=[],v=0,x=0,T;for(let u=0;u<s.length;u++){let w=s[u];if(v===0){if(w===a&&(r||s.slice(u,u+n)===t)){d.push(s.slice(x,u)),x=u+n;continue}if(w==="/"){T=u;continue}}w==="["?v++:w==="]"&&v--}let k=d.length===0?s:s.substring(x),P=k.startsWith(Re),R=P?k.substring(1):k,y=T&&T>x?T-x:void 0;return{modifiers:d,hasImportantModifier:P,baseClassName:R,maybePostfixModifierPosition:y}};return o?s=>o({className:s,parseClassName:i}):i},ct=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},dt=e=>({cache:it(e.cacheSize),parseClassName:lt(e),...ot(e)}),pt=/\s+/,mt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(pt),s="";for(let d=i.length-1;d>=0;d-=1){let v=i[d],{modifiers:x,hasImportantModifier:T,baseClassName:k,maybePostfixModifierPosition:P}=o(v),R=!!P,y=r(R?k.substring(0,P):k);if(!y){if(!R){s=v+(s.length>0?" "+s:s);continue}if(y=r(k),!y){s=v+(s.length>0?" "+s:s);continue}R=!1}let u=ct(x).join(":"),w=T?u+Re:u,N=w+y;if(n.includes(N))continue;n.push(N);let V=a(y,R);for(let H=0;H<V.length;++H){let _=V[H];n.push(w+_)}s=v+(s.length>0?" "+s:s)}return s};function ut(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Pe(t))&&(r&&(r+=" "),r+=o);return r}var Pe=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Pe(e[r]))&&(o&&(o+=" "),o+=t);return o};function ft(e,...t){let o,r,a,n=i;function i(d){let v=t.reduce((x,T)=>T(x),e());return o=dt(v),r=o.cache.get,a=o.cache.set,n=s,s(d)}function s(d){let v=r(d);if(v)return v;let x=mt(d,o);return a(d,x),x}return function(){return n(ut.apply(null,arguments))}}var p=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},De=/^\[(?:([a-z-]+):)?(.+)\]$/i,gt=/^\d+\/\d+$/,bt=new Set(["px","full","screen"]),ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|Ae|min|max))|\Ae(calc|min|max|clamp)\(.+\)|^0$/,xt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>I(e)||bt.has(e)||gt.test(e),z=e=>G(e,"length",Mt),I=e=>!!e&&!Number.isNaN(Number(e)),oe=e=>G(e,"number",I),j=e=>!!e&&Number.isInteger(Number(e)),Ct=e=>e.endsWith("%")&&I(e.slice(0,-1)),l=e=>De.test(e),S=e=>ht.test(e),Nt=new Set(["length","size","percentage"]),Tt=e=>G(e,Nt,Me),kt=e=>G(e,"position",Me),Rt=new Set(["image","url"]),Pt=e=>G(e,Rt,St),Dt=e=>G(e,"",zt),W=()=>!0,G=(e,t,o)=>{let r=De.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Mt=e=>vt.test(e)&&!xt.test(e),Me=()=>!1,zt=e=>yt.test(e),St=e=>wt.test(e);var Ht=()=>{let e=p("colors"),t=p("spacing"),o=p("blur"),r=p("brightness"),a=p("borderColor"),n=p("borderRadius"),i=p("borderSpacing"),s=p("borderWidth"),d=p("contrast"),v=p("grayscale"),x=p("hueRotate"),T=p("invert"),k=p("gap"),P=p("gradientColorStops"),R=p("gradientColorStopPositions"),y=p("inset"),u=p("margin"),w=p("opacity"),N=p("padding"),V=p("saturate"),H=p("scale"),_=p("sepia"),ge=p("skew"),be=p("space"),he=p("translate"),Z=()=>["auto","contain","none"],Q=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto",l,t],m=()=>[l,t],ve=()=>["",M,z],$=()=>["auto",I,l],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",l],we=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[I,l];return{cacheSize:500,separator:":",theme:{colors:[W],spacing:[M,z],blur:["none","",S,l],brightness:D(),borderColor:[e],borderRadius:["none","","full",S,l],borderSpacing:m(),borderWidth:ve(),contrast:D(),grayscale:O(),hueRotate:D(),invert:O(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[Ct,z],inset:ee(),margin:ee(),opacity:D(),padding:m(),saturate:D(),scale:D(),sepia:O(),skew:D(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":we()}],"break-before":[{"break-before":we()}],"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:[...xe(),l]}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",j,l]}],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",l]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",j,l]}],"grid-cols":[{"grid-cols":[W]}],"col-start-end":[{col:["auto",{span:["full",j,l]},l]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[W]}],"row-start-end":[{row:["auto",{span:[j,l]},l]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],pe:[{pe:[N]}],pt:[{pt:[N]}],pr:[{pr:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",S,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",oe]}],"font-family":[{font:[W]}],"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",l]}],"line-clamp":[{"line-clamp":["none",I,oe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",M,z]}],"underline-offset":[{"underline-offset":["auto",M,l]}],"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:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),kt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Ae","bl","l","tl"]},Pt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-Ae":[{"rounded-Ae":[n]}],"rounded-l":[{"rounded-l":[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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-Ae":[{"border-Ae":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:U()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-Ae":[{"border-Ae":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[M,l]}],"outline-w":[{outline:[M,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[M,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,Dt]}],"shadow-color":[{shadow:[W]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",S,l]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[T]}],saturate:[{saturate:[V]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[j,l]}],"translate-x":[{"translate-x":[he]}],"translate-y":[{"translate-y":[he]}],"skew-x":[{"skew-x":[ge]}],"skew-y":[{"skew-y":[ge]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[M,z,oe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["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-Ae","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Ae":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Ae","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-Ae"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Ae","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Ae"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ze=ft(Ht);function g(...e){return ze((0,Se.clsx)(e))}var Ae=require("react/jsx-runtime"),Lt=(0,He.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 Le({className:e,variant:t,...o}){return(0,Ae.jsx)("div",{className:g(Lt({variant:t}),e),...o})}var Ee=require("@radix-ui/react-slot"),Ge=q(require("react")),At=(0,He.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"}}}),L=Ge.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},n)=>(0,Ae.jsx)(e?Ee.Slot:"button",{className:g(At({className:t,size:o,variant:r})),ref:n,...a}));L.displayName="Button";function Ve(e,t){let[o,r]=(0,Je.useState)(()=>{if(typeof window>"u")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),a=n=>{try{r(n),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,Je.useEffect)(()=>{a(o)},[]),[o,a]}var K=require("react-icons/fa");function je({title:e,description:t,badge:o,primaryAction:r,secondaryAction:a,gradient:n,children:i,className:s}){let[d,v]=Ve(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!t),x=!a&&!t||d;return(0,Ae.jsxs)(Y.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} p-8 text-white ${s||""}`,children:[(0,Ae.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Ae.jsx)(Le,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Ae.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ae.jsxs)("div",{className:"flex items-center gap-3",children:[x&&r&&(0,Ae.jsx)(L,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(a||t)&&(0,Ae.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:()=>v(!d),style:{lineHeight:0},children:d?(0,Ae.jsx)(K.FaChevronDown,{size:22}):(0,Ae.jsx)(K.FaChevronUp,{size:22})})]})]}),!x&&(0,Ae.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ae.jsxs)("div",{className:"space-y-4",children:[(0,Ae.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Ae.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Ae.jsx)(L,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),a&&(0,Ae.jsx)(L,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),i&&(0,Ae.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var B=require("lucide-react");var A=q(require("react"));var ae=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ae.displayName="Card";var se=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 p-6",e),...t}));se.displayName="CardHeader";var ie=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));ie.displayName="CardTitle";var le=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));le.displayName="CardDescription";var ce=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...t}));ce.displayName="CardContent";var de=A.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...t}));de.displayName="CardFooter";function Fe({team:e,onOpen:t,className:o}){return(0,Ae.jsx)(Y.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:o,children:(0,Ae.jsxs)(ae,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Ae.jsxs)(se,{children:[(0,Ae.jsx)(ie,{className:"text-lg",children:e.name}),(0,Ae.jsx)(le,{className:"mt-1 text-sm",children:e.description})]}),(0,Ae.jsxs)(ce,{className:"space-y-4",children:[(0,Ae.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ae.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ae.jsx)(B.Users,{className:"h-4 w-4 text-blue-500"}),(0,Ae.jsx)("span",{children:"Human"})]}),(0,Ae.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,Ae.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ae.jsx)(B.Bot,{className:"h-4 w-4 text-purple-500"}),(0,Ae.jsx)("span",{children:"Digital"})]}),(0,Ae.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,Ae.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ae.jsx)(B.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,Ae.jsx)("span",{children:"Projects"})]}),(0,Ae.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,Ae.jsx)(de,{className:"flex gap-2",children:(0,Ae.jsx)(L,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}var F=q(require("react")),h=q(require("@radix-ui/react-dialog"));var $e=h.Root;var Et=h.Portal;var Ue=F.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)(h.Overlay,{ref:o,className:g("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}));Ue.displayName=h.Overlay.displayName;var pe=F.forwardRef(({className:e,children:t,...o},r)=>(0,Ae.jsxs)(Et,{children:[(0,Ae.jsx)(Ue,{}),(0,Ae.jsxs)(h.Content,{ref:r,className:g("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-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,Ae.jsxs)(h.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,Ae.jsx)(B.Je,{className:"h-4 w-4"}),(0,Ae.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));pe.displayName=h.Content.displayName;var me=({className:e,...t})=>(0,Ae.jsx)("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});me.displayName="DialogHeader";var It=({className:e,...t})=>(0,Ae.jsx)("div",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});It.displayName="DialogFooter";var ue=F.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)(h.Title,{ref:o,className:g("text-lg font-semibold leading-none tracking-tight",e),...t}));ue.displayName=h.Title.displayName;var fe=F.forwardRef(({className:e,...t},o)=>(0,Ae.jsx)(h.Description,{ref:o,className:g("text-sm text-muted-foreground",e),...t}));fe.displayName=h.Description.displayName;function qe({teams:e=[],onCreateTeam:t,onTeamOpen:o}){let[r,a]=(0,Je.useState)(!1),n=()=>{a(!0),t?.()},i=s=>{o?.(s)};return(0,Ae.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Ae.jsx)(Y.AnimatePresence,{mode:"wait",children:(0,Ae.jsxs)(Y.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Ae.jsx)(je,{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,Ae.jsxs)("section",{className:"space-y-4 mt-8",children:[(0,Ae.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,Ae.jsxs)("div",{className:"text-center py-12",children:[(0,Ae.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,Ae.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,Ae.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(s=>(0,Ae.jsx)(Fe,{team:s,onOpen:i},s.id))})]})]},"teams-index-view")}),(0,Ae.jsx)($e,{open:r,onOpenChange:a,children:(0,Ae.jsxs)(pe,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[(0,Ae.jsxs)(me,{children:[(0,Ae.jsx)(ue,{children:"Create New Team"}),(0,Ae.jsx)(fe,{children:"Set up a new team to collaborate with colleagues on projects."})]}),(0,Ae.jsx)("div",{className:"p-6 text-center text-muted-foreground",children:(0,Ae.jsx)("p",{children:"Team creation form coming soon..."})})]})})]})}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-FRKGQKEM.mjs";import"../../../chunk-MNI6AM7Q.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-3UMMMQEH.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{a as default};
2
+ "use strict";import{a}from"../../../chunk-3R75NUYA.mjs";import"../../../chunk-VGWDYD6Z.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-3UMMMQEH.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{a as default};