cortex-react-components 2.26.5 → 2.27.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 (176) hide show
  1. package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
  2. package/dist/{chunk-FYQBRCQM.mjs → chunk-2BRDNDUB.mjs} +1 -1
  3. package/dist/{chunk-HTS3KCJL.mjs → chunk-2O54GV6Q.mjs} +1 -1
  4. package/dist/chunk-32G45Z2G.mjs +1 -0
  5. package/dist/{chunk-2OOJ4ZFB.mjs → chunk-3HNU2NYP.mjs} +1 -1
  6. package/dist/{chunk-HDKHF3EA.mjs → chunk-3NRXQBBS.mjs} +1 -1
  7. package/dist/{chunk-FEWOSBUJ.mjs → chunk-3Y7QG6VP.mjs} +1 -1
  8. package/dist/{chunk-GULRIPMU.mjs → chunk-4FEVXBNU.mjs} +1 -1
  9. package/dist/{chunk-MO4HRQEL.mjs → chunk-5MWZTJYP.mjs} +1 -1
  10. package/dist/{chunk-BQQ4V4PX.mjs → chunk-75F3LJMX.mjs} +1 -1
  11. package/dist/{chunk-EFNFK7TR.mjs → chunk-7NWIK57W.mjs} +1 -1
  12. package/dist/{chunk-4SRUEQTP.mjs → chunk-7R47MHQE.mjs} +1 -1
  13. package/dist/{chunk-PTZT4QJW.mjs → chunk-AJQHGVZ5.mjs} +1 -1
  14. package/dist/chunk-B7RZ4K6Y.mjs +1 -0
  15. package/dist/{chunk-HKMNAXLM.mjs → chunk-C4RWEPVF.mjs} +1 -1
  16. package/dist/{chunk-7OMPPFGG.mjs → chunk-CXOVEABI.mjs} +1 -1
  17. package/dist/{chunk-R6AYIVIR.mjs → chunk-EM3T2XYC.mjs} +1 -1
  18. package/dist/{chunk-UTJZH3X5.mjs → chunk-EPJJKGCG.mjs} +1 -1
  19. package/dist/{chunk-PNUBVBSR.mjs → chunk-FE7ZGUPU.mjs} +1 -1
  20. package/dist/{chunk-KBLVWXLK.mjs → chunk-FZX3ZPEU.mjs} +1 -1
  21. package/dist/chunk-G6OGEIN4.mjs +4 -0
  22. package/dist/{chunk-F64CA5CH.mjs → chunk-GHOL5L32.mjs} +1 -1
  23. package/dist/{chunk-P6OSMPUQ.mjs → chunk-GTZJWMZR.mjs} +1 -1
  24. package/dist/{chunk-JVTCOOUV.mjs → chunk-I75OOO4H.mjs} +1 -1
  25. package/dist/{chunk-NXAQ6ESJ.mjs → chunk-JDIPWJBD.mjs} +1 -1
  26. package/dist/{chunk-BGQC6IQK.mjs → chunk-KEK763EH.mjs} +1 -1
  27. package/dist/chunk-KQRQXBJ3.mjs +9 -0
  28. package/dist/{chunk-CKU2T3AN.mjs → chunk-LAP57E2L.mjs} +1 -1
  29. package/dist/{chunk-O24GFE6Q.mjs → chunk-LJXTXROJ.mjs} +1 -1
  30. package/dist/{chunk-QUMUO63J.mjs → chunk-NBJLXJQ3.mjs} +1 -1
  31. package/dist/{chunk-U3FYDDE2.mjs → chunk-NINFDOV5.mjs} +1 -1
  32. package/dist/{chunk-5EM6P7SU.mjs → chunk-OQBCIB4L.mjs} +1 -1
  33. package/dist/{chunk-AN744MXS.mjs → chunk-OWL3KUE3.mjs} +1 -1
  34. package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
  35. package/dist/{chunk-GETYSIZV.mjs → chunk-RGOKBIQ5.mjs} +1 -1
  36. package/dist/{chunk-GAZHKHGB.mjs → chunk-RJGYVDOU.mjs} +1 -1
  37. package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
  38. package/dist/chunk-SOTCQX2G.mjs +1 -0
  39. package/dist/{chunk-CMU5JFUC.mjs → chunk-SWE754OC.mjs} +1 -1
  40. package/dist/{chunk-WH6JZSIA.mjs → chunk-TJZVV3XH.mjs} +1 -1
  41. package/dist/{chunk-ZG5N4C4S.mjs → chunk-TTWEHUP5.mjs} +1 -1
  42. package/dist/{chunk-KVLUT4U2.mjs → chunk-TVTTUSWM.mjs} +1 -1
  43. package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
  44. package/dist/{chunk-FMXCT6LU.mjs → chunk-TYARLEAC.mjs} +1 -1
  45. package/dist/{chunk-VATGKKXW.mjs → chunk-UJITFLIZ.mjs} +1 -1
  46. package/dist/{chunk-IO5ZSALG.mjs → chunk-VKCDLKYH.mjs} +1 -1
  47. package/dist/{chunk-2GM2LPLB.mjs → chunk-WIRQ5IRT.mjs} +1 -1
  48. package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
  49. package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
  50. package/dist/{chunk-VTFO5GXK.mjs → chunk-XMYXQR5W.mjs} +1 -1
  51. package/dist/{chunk-3ANJOET7.mjs → chunk-ZEALRBXW.mjs} +1 -1
  52. package/dist/components/AdvancedComponents/index.d.ts +1 -0
  53. package/dist/components/AdvancedComponents/index.js +12 -1
  54. package/dist/components/AdvancedComponents/index.mjs +1 -1
  55. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.d.ts +15 -0
  56. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.js +12 -0
  57. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +1 -0
  58. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.d.ts +3 -0
  59. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.js +9 -0
  60. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.mjs +1 -0
  61. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.d.ts +10 -0
  62. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.js +12 -0
  63. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +1 -0
  64. package/dist/components/AdvancedComponents/org-chart-component/examples/PayloadIntegration.js +233 -0
  65. package/dist/components/AdvancedComponents/org-chart-component/examples/PayloadIntegration.mjs +233 -0
  66. package/dist/components/AdvancedComponents/org-chart-component/index.d.ts +4 -0
  67. package/dist/components/AdvancedComponents/org-chart-component/index.js +12 -0
  68. package/dist/components/AdvancedComponents/org-chart-component/index.mjs +1 -0
  69. package/dist/components/AdvancedComponents/org-chart-component/mockData.d.ts +7 -0
  70. package/dist/components/AdvancedComponents/org-chart-component/mockData.js +1 -0
  71. package/dist/components/AdvancedComponents/org-chart-component/mockData.mjs +1 -0
  72. package/dist/components/AdvancedComponents/org-chart-component/types/index.d.ts +33 -0
  73. package/dist/components/AdvancedComponents/org-chart-component/types/index.js +1 -0
  74. package/dist/components/AdvancedComponents/org-chart-component/types/index.mjs +1 -0
  75. package/dist/components/AdvancedComponents/org-chart-component/utils.d.ts +13 -0
  76. package/dist/components/AdvancedComponents/org-chart-component/utils.js +1 -0
  77. package/dist/components/AdvancedComponents/org-chart-component/utils.mjs +1 -0
  78. package/dist/components/Blocks/Banner.mjs +1 -1
  79. package/dist/components/Blocks/CallToAction.mjs +1 -1
  80. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  81. package/dist/components/Blocks/Content.mjs +1 -1
  82. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  83. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  84. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  85. package/dist/components/Blocks/OrgChart.mjs +3 -1
  86. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  87. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  88. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  89. package/dist/components/Blocks/index.d.ts +0 -1
  90. package/dist/components/Blocks/index.js +1 -1
  91. package/dist/components/Blocks/index.mjs +1 -1
  92. package/dist/components/Cards/ContentCard.mjs +1 -1
  93. package/dist/components/Cards/FeatureCard.mjs +1 -1
  94. package/dist/components/Cards/index.mjs +1 -1
  95. package/dist/components/Chat/ChatInterface.mjs +1 -1
  96. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  97. package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
  98. package/dist/components/Chat/PartTypes/index.mjs +1 -1
  99. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  100. package/dist/components/Chat/demo-tests.mjs +1 -1
  101. package/dist/components/Chat/demo.mjs +1 -1
  102. package/dist/components/Chat/example-usage.mjs +1 -1
  103. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  104. package/dist/components/Chat/index.mjs +1 -1
  105. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  106. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  107. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  108. package/dist/components/DigitalColleagues/index.mjs +1 -1
  109. package/dist/components/Foundary/MainPage.mjs +1 -1
  110. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  111. package/dist/components/Foundary/RichText/index.mjs +1 -1
  112. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  113. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  114. package/dist/components/Foundary/Views/index.mjs +1 -1
  115. package/dist/components/Foundary/document-edit.mjs +1 -1
  116. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  117. package/dist/components/Foundary/document-preview.mjs +1 -1
  118. package/dist/components/Foundary/file-edit.mjs +1 -1
  119. package/dist/components/Foundary/index.mjs +1 -1
  120. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  121. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  122. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  123. package/dist/components/HeaderFooter/index.mjs +1 -1
  124. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  125. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  126. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  127. package/dist/components/Heros/RenderHero.mjs +1 -1
  128. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  129. package/dist/components/Heros/index.mjs +1 -1
  130. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  131. package/dist/components/Layouts/Print.mjs +1 -1
  132. package/dist/components/Layouts/SlideShow.mjs +1 -1
  133. package/dist/components/Layouts/index.mjs +1 -1
  134. package/dist/components/Other/index.mjs +1 -1
  135. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  136. package/dist/components/Payload/Media/index.mjs +1 -1
  137. package/dist/components/Payload/PayloadCard/index.mjs +1 -1
  138. package/dist/components/Payload/RichText/index.mjs +1 -1
  139. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  140. package/dist/components/Payload/index.mjs +1 -1
  141. package/dist/components/Projects/FileView.mjs +1 -1
  142. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  143. package/dist/components/Projects/ProjectPage.mjs +1 -1
  144. package/dist/components/Projects/ProjectView.mjs +1 -1
  145. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  146. package/dist/components/Projects/file-list.mjs +1 -1
  147. package/dist/components/Projects/index.mjs +1 -1
  148. package/dist/components/dc-temp/index.mjs +1 -1
  149. package/dist/components/index.js +30 -19
  150. package/dist/components/index.mjs +1 -1
  151. package/dist/globals.css +1 -1
  152. package/dist/index.js +42 -31
  153. package/dist/index.mjs +1 -1
  154. package/dist/metafile-cjs.json +1 -1
  155. package/dist/metafile-esm.json +1 -1
  156. package/dist/pages/Blog.mjs +1 -1
  157. package/dist/pages/Documentation.mjs +1 -1
  158. package/dist/pages/IndexPage.mjs +1 -1
  159. package/dist/pages/Intranet.mjs +1 -1
  160. package/dist/pages/LandingPage.mjs +1 -1
  161. package/dist/pages/Page.mjs +1 -1
  162. package/dist/pages/Publish.mjs +1 -1
  163. package/dist/pages/Website.mjs +1 -1
  164. package/dist/sections/AboutSection.mjs +1 -1
  165. package/dist/sections/BlogDetail.mjs +1 -1
  166. package/dist/sections/BlogList.mjs +1 -1
  167. package/dist/sections/ContactSection.mjs +1 -1
  168. package/dist/sections/PageSections.mjs +1 -1
  169. package/dist/sections/PricingSection.mjs +1 -1
  170. package/dist/sections/ServiceDetail.mjs +1 -1
  171. package/dist/sections/ServiceDetailSection.mjs +1 -1
  172. package/dist/sections/ServiceSection.mjs +1 -1
  173. package/dist/sections/form/index.mjs +1 -1
  174. package/dist/sections/index.mjs +1 -1
  175. package/package.json +1 -1
  176. package/dist/chunk-53QLSQCO.mjs +0 -4
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as u}from"./chunk-GULRIPMU.mjs";import{d as m}from"./chunk-RKS7CWAP.mjs";import{a as c}from"./chunk-BZEGLKRZ.mjs";import{AutoFocusPlugin as f}from"@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin";import{LexicalComposer as g}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposer";import{ContentEditable as x}from"@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable";import{LexicalErrorBoundary as y}from"@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary";import{HistoryPlugin as C}from"@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin";import{RichTextPlugin as N}from"@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin";import{ListPlugin as E}from"@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin";import{ListItemNode as S,ListNode as R}from"@payloadcms/richtext-lexical/lexical/list";import{HeadingNode as b}from"@payloadcms/richtext-lexical/lexical/rich-text";import{OnChangePlugin as P}from"@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin";import{useEffect as h,useRef as L}from"react";import{useLexicalComposerContext as v}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext";import{Fragment as k,jsx as t,jsxs as d}from"react/jsx-runtime";var T=({setValue:l,value:e,name:a,editable:i=!0})=>{let[r]=v(),o=L(null),p=n=>{n.read(()=>{let s=n.toJSON();JSON.stringify(s)!==JSON.stringify(o.current)&&(o.current=s,l?.(()=>s))})};return h(()=>{r.setEditable(i)},[i,r]),h(()=>{e&&JSON.stringify(e)!==JSON.stringify(o.current)&&r.update(()=>{try{let n=r.parseEditorState(e);r.setEditorState(n),o.current=e}catch(n){console.error("Error parsing editor state:",n)}},{discrete:!0})},[e,r]),t("div",{className:"w-full",children:d("div",{className:" ",children:[i&&t(u,{}),d("div",{className:"px-4 my-4 border-l border-[#222222]",children:[t(N,{contentEditable:t(x,{name:a,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:y}),i&&d(k,{children:[t(C,{}),t(f,{}),t(E,{}),t(P,{onChange:p}),t(m,{})]})]})]})})},O=({setValue:l,value:e,name:a,editable:i=!0})=>t(g,{initialConfig:{namespace:"Lexical editor",nodes:[R,S,b,c],onError(o){throw console.error("Lexical error:",o),o},theme:{code:"editor-code",heading:{h1:"text-4xl text-primary",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:t(T,{value:e,setValue:l,name:a,editable:i})}),X=O;export{X as a};
4
+ import{a as u}from"./chunk-4FEVXBNU.mjs";import{d as m}from"./chunk-RKS7CWAP.mjs";import{a as c}from"./chunk-BZEGLKRZ.mjs";import{AutoFocusPlugin as f}from"@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin";import{LexicalComposer as g}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposer";import{ContentEditable as x}from"@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable";import{LexicalErrorBoundary as y}from"@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary";import{HistoryPlugin as C}from"@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin";import{RichTextPlugin as N}from"@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin";import{ListPlugin as E}from"@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin";import{ListItemNode as S,ListNode as R}from"@payloadcms/richtext-lexical/lexical/list";import{HeadingNode as b}from"@payloadcms/richtext-lexical/lexical/rich-text";import{OnChangePlugin as P}from"@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin";import{useEffect as h,useRef as L}from"react";import{useLexicalComposerContext as v}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext";import{Fragment as k,jsx as t,jsxs as d}from"react/jsx-runtime";var T=({setValue:l,value:e,name:a,editable:i=!0})=>{let[r]=v(),o=L(null),p=n=>{n.read(()=>{let s=n.toJSON();JSON.stringify(s)!==JSON.stringify(o.current)&&(o.current=s,l?.(()=>s))})};return h(()=>{r.setEditable(i)},[i,r]),h(()=>{e&&JSON.stringify(e)!==JSON.stringify(o.current)&&r.update(()=>{try{let n=r.parseEditorState(e);r.setEditorState(n),o.current=e}catch(n){console.error("Error parsing editor state:",n)}},{discrete:!0})},[e,r]),t("div",{className:"w-full",children:d("div",{className:" ",children:[i&&t(u,{}),d("div",{className:"px-4 my-4 border-l border-[#222222]",children:[t(N,{contentEditable:t(x,{name:a,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:y}),i&&d(k,{children:[t(C,{}),t(f,{}),t(E,{}),t(P,{onChange:p}),t(m,{})]})]})]})})},O=({setValue:l,value:e,name:a,editable:i=!0})=>t(g,{initialConfig:{namespace:"Lexical editor",nodes:[R,S,b,c],onError(o){throw console.error("Lexical error:",o),o},theme:{code:"editor-code",heading:{h1:"text-4xl text-primary",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:t(T,{value:e,setValue:l,name:a,editable:i})}),X=O;export{X as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as F}from"./chunk-PNUBVBSR.mjs";import{a as T}from"./chunk-R6AYIVIR.mjs";import{a as v}from"./chunk-MDJREBVI.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
4
+ import{a as F}from"./chunk-FE7ZGUPU.mjs";import{a as T}from"./chunk-EM3T2XYC.mjs";import{a as v}from"./chunk-MDJREBVI.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
@@ -5,3 +5,4 @@ export * from './EditableField';
5
5
  export * from './AppSidebar';
6
6
  export * from './app-header';
7
7
  export * from './notifications-panel';
8
+ export * from './org-chart-component';
@@ -3,4 +3,15 @@
3
3
  "use client"
4
4
  'use client';
5
5
 
6
- "use strict";var so=Object.create;var Ie=Object.defineProperty;var lo=Object.getOwnPropertyDescriptor;var co=Object.getOwnPropertyNames;var po=Object.getPrototypeOf,mo=Object.prototype.hasOwnProperty;var uo=(e,t)=>{for(var o in t)Ie(e,o,{get:t[o],enumerable:!0})},vt=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of co(t))!mo.call(e,l)&&l!==o&&Ie(e,l,{get:()=>t[l],enumerable:!(i=lo(t,l))||i.enumerable});return e};var R=(e,t,o)=>(o=e!=null?so(po(e)):{},vt(t||!e||!e.__esModule?Ie(o,"default",{value:e,enumerable:!0}):o,e)),go=e=>vt(Ie({},"__esModule",{value:!0}),e);var ui={};uo(ui,{AppHeader:()=>mi,AppSidebar:()=>pi,CommentSection:()=>ri,EditableField:()=>ai,NavigationTabs:()=>rt,NotificationsPanel:()=>ft,Switch:()=>ei});module.exports=go(ui);var it=require("motion/react"),jt=require("lucide-react");var Rt=require("clsx");var et="-",fo=e=>{let t=ho(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:n=>{let a=n.split(et);return a[0]===""&&a.length!==1&&a.shift(),xt(a,t)||bo(n)},getConflictingClassGroupIds:(n,a)=>{let b=o[n]||[];return a&&i[n]?[...b,...i[n]]:b}}},xt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],i=t.nextPart.get(o),l=i?xt(e.slice(1),i):void 0;if(l)return l;if(t.validators.length===0)return;let r=e.join(et);return t.validators.find(({validator:n})=>n(r))?.classGroupId},yt=/^\[(.+)\]$/,bo=e=>{if(yt.test(e)){let t=yt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ho=e=>{let{theme:t,prefix:o}=e,i={nextPart:new Map,validators:[]};return yo(Object.entries(e.classGroups),o).forEach(([r,n])=>{Ze(n,i,r,t)}),i},Ze=(e,t,o,i)=>{e.forEach(l=>{if(typeof l=="string"){let r=l===""?t:wt(t,l);r.classGroupId=o;return}if(typeof l=="function"){if(vo(l)){Ze(l(i),t,o,i);return}t.validators.push({validator:l,classGroupId:o});return}Object.entries(l).forEach(([r,n])=>{Ze(n,wt(t,r),o,i)})})},wt=(e,t)=>{let o=e;return t.split(et).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},vo=e=>e.isThemeGetter,yo=(e,t)=>t?e.map(([o,i])=>{let l=i.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([n,a])=>[t+n,a])):r);return[o,l]}):e,wo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,i=new Map,l=(r,n)=>{o.set(r,n),t++,t>e&&(t=0,i=o,o=new Map)};return{get(r){let n=o.get(r);if(n!==void 0)return n;if((n=i.get(r))!==void 0)return l(r,n),n},set(r,n){o.has(r)?o.set(r,n):l(r,n)}}},Pt="!",xo=e=>{let{separator:t,experimentalParseClassName:o}=e,i=t.length===1,l=t[0],r=t.length,n=a=>{let b=[],m=0,w=0,T;for(let h=0;h<a.length;h++){let S=a[h];if(m===0){if(S===l&&(i||a.slice(h,h+r)===t)){b.push(a.slice(w,h)),w=h+r;continue}if(S==="/"){T=h;continue}}S==="["?m++:S==="]"&&m--}let k=b.length===0?a:a.substring(w),L=k.startsWith(Pt),y=L?k.substring(1):k,D=T&&T>w?T-w:void 0;return{modifiers:b,hasImportantModifier:L,baseClassName:y,maybePostfixModifierPosition:D}};return o?a=>o({className:a,parseClassName:n}):n},Po=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(i=>{i[0]==="["?(t.push(...o.sort(),i),o=[]):o.push(i)}),t.push(...o.sort()),t},No=e=>({cache:wo(e.cacheSize),parseClassName:xo(e),...fo(e)}),Co=/\s+/,ko=(e,t)=>{let{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:l}=t,r=[],n=e.trim().split(Co),a="";for(let b=n.length-1;b>=0;b-=1){let m=n[b],{modifiers:w,hasImportantModifier:T,baseClassName:k,maybePostfixModifierPosition:L}=o(m),y=!!L,D=i(y?k.substring(0,L):k);if(!D){if(!y){a=m+(a.length>0?" "+a:a);continue}if(D=i(k),!D){a=m+(a.length>0?" "+a:a);continue}y=!1}let h=Po(w).join(":"),S=T?h+Pt:h,E=S+D;if(r.includes(E))continue;r.push(E);let _=l(D,y);for(let V=0;V<_.length;++V){let oe=_[V];r.push(S+oe)}a=m+(a.length>0?" "+a:a)}return a};function Do(){let e=0,t,o,i="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Nt(t))&&(i&&(i+=" "),i+=o);return i}var Nt=e=>{if(typeof e=="string")return e;let t,o="";for(let i=0;i<e.length;i++)e[i]&&(t=Nt(e[i]))&&(o&&(o+=" "),o+=t);return o};function Ro(e,...t){let o,i,l,r=n;function n(b){let m=t.reduce((w,T)=>T(w),e());return o=No(m),i=o.cache.get,l=o.cache.set,r=a,a(b)}function a(b){let m=i(b);if(m)return m;let w=ko(b,o);return l(b,w),w}return function(){return r(Do.apply(null,arguments))}}var N=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ct=/^\[(?:([a-z-]+):)?(.+)\]$/i,So=/^\Mt+\/\Mt+$/,Ao=new Set(["px","full","screen"]),To=/^(\Mt+(\.\Mt+)?)?(xs|sm|md|lg|xl)$/,Mo=/\Mt+(%|px|r?em|[sdl]?jt([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$/,Io=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zo=/^(inset_)?-?((\Mt+)?\.?(\Mt+)[a-z]+|0)_-?((\Mt+)?\.?(\Mt+)[a-z]+|0)/,Eo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>be(e)||Ao.has(e)||So.test(e),ie=e=>he(e,"length",Wo),be=e=>!!e&&!Number.isNaN(Number(e)),Ye=e=>he(e,"number",be),we=e=>!!e&&Number.isInteger(Number(e)),Lo=e=>e.endsWith("%")&&be(e.slice(0,-1)),u=e=>Ct.test(e),re=e=>To.test(e),Bo=new Set(["length","size","percentage"]),jo=e=>he(e,Bo,kt),Fo=e=>he(e,"position",kt),Uo=new Set(["image","url"]),Go=e=>he(e,Uo,Oo),Vo=e=>he(e,"",Ho),xe=()=>!0,he=(e,t,o)=>{let i=Ct.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):o(i[2]):!1},Wo=e=>Mo.test(e)&&!Io.test(e),kt=()=>!1,Ho=e=>zo.test(e),Oo=e=>Eo.test(e);var _o=()=>{let e=N("colors"),t=N("spacing"),o=N("blur"),i=N("brightness"),l=N("borderColor"),r=N("borderRadius"),n=N("borderSpacing"),a=N("borderWidth"),b=N("contrast"),m=N("grayscale"),w=N("hueRotate"),T=N("invert"),k=N("gap"),L=N("gradientColorStops"),y=N("gradientColorStopPositions"),D=N("inset"),h=N("margin"),S=N("opacity"),E=N("padding"),_=N("saturate"),V=N("scale"),oe=N("sepia"),X=N("skew"),ge=N("space"),fe=N("translate"),B=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",u,t],x=()=>[u,t],Me=()=>["",Y,ie],me=()=>["auto",be,u],s=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P=()=>["solid","dashed","dotted","double","none"],C=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",u],ht=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[be,u];return{cacheSize:500,separator:":",theme:{colors:[xe],spacing:[Y,ie],blur:["none","",re,u],brightness:Q(),borderColor:[e],borderRadius:["none","","full",re,u],borderSpacing:x(),borderWidth:Me(),contrast:Q(),grayscale:U(),hueRotate:Q(),invert:U(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[Lo,ie],inset:pe(),margin:pe(),opacity:Q(),padding:x(),saturate:Q(),scale:Q(),sepia:U(),skew:Q(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[re]}],"break-after":[{"break-after":ht()}],"break-before":[{"break-before":ht()}],"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:[...s(),u]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",we,u]}],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",u]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",we,u]}],"grid-cols":[{"grid-cols":[xe]}],"col-start-end":[{col:["auto",{span:["full",we,u]},u]}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":[xe]}],"row-start-end":[{row:["auto",{span:[we,u]},u]}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Mt:[{Mt:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[ge]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ge]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[re]},re]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",re,ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ye]}],"font-family":[{font:[xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",be,Ye]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Y,ie]}],"underline-offset":[{"underline-offset":["auto",Y,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...s(),Fo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Go]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[L]}],"gradient-via":[{via:[L]}],"gradient-to":[{to:[L]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-Mt":[{"rounded-Mt":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...P(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:P()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...P()]}],"outline-offset":[{"outline-offset":[Y,u]}],"outline-w":[{outline:[Y,ie]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[Y,ie]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",re,Vo]}],"shadow-color":[{shadow:[xe]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...C(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":C()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",re,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[T]}],saturate:[{saturate:[_]}],sepia:[{sepia:[oe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[we,u]}],"translate-x":[{"translate-x":[fe]}],"translate-y":[{"translate-y":[fe]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Mt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-Mt":[{"scroll-Mt":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Y,ie,Ye]}],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"],Mt:["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-Mt","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Mt","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-Mt":["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 Dt=Ro(_o);function c(...e){return Dt((0,Rt.clsx)(e))}var St=require("@radix-ui/react-slot"),At=require("class-variance-authority"),Tt=R(require("react")),Mt=require("react/jsx-runtime"),Ko=(0,At.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),M=Tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:i,...l},r)=>(0,Mt.jsx)(e?St.Slot:"button",{className:c(Ko({className:t,size:o,variant:i})),ref:r,...l}));M.displayName="Button";var ue=R(require("@radix-ui/react-tabs"));function It({className:e,...t}){return(0,Mt.jsx)(ue.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function zt({className:e,...t}){return(0,Mt.jsx)(ue.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg Mt-[3px]",e),...t})}function Et({className:e,...t}){return(0,Mt.jsx)(ue.Trigger,{"data-slot":"tabs-trigger",className:c("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Z=R(require("react")),f=R(require("@radix-ui/react-dropdown-menu")),ve=require("@radix-ui/react-icons");var Lt=f.Root,Bt=f.Trigger;var qo=Z.forwardRef(({className:e,inset:t,children:o,...i},l)=>(0,Mt.jsxs)(f.SubTrigger,{ref:l,className:c("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[o,(0,Mt.jsx)(ve.ChevronRightIcon,{className:"ml-auto"})]}));qo.displayName=f.SubTrigger.displayName;var Jo=Z.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(f.SubContent,{ref:o,className:c("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Mt-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Jo.displayName=f.SubContent.displayName;var tt=Z.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,Mt.jsx)(f.Portal,{children:(0,Mt.jsx)(f.Content,{ref:i,sideOffset:t,className:c("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Mt-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));tt.displayName=f.Content.displayName;var ot=Z.forwardRef(({className:e,inset:t,...o},i)=>(0,Mt.jsx)(f.Item,{ref:i,className:c("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ot.displayName=f.Item.displayName;var $o=Z.forwardRef(({className:e,children:t,checked:o,...i},l)=>(0,Mt.jsxs)(f.CheckboxItem,{ref:l,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...i,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(f.ItemIndicator,{children:(0,Mt.jsx)(ve.CheckIcon,{className:"h-4 w-4"})})}),t]}));$o.displayName=f.CheckboxItem.displayName;var Xo=Z.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(f.RadioItem,{ref:i,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(f.ItemIndicator,{children:(0,Mt.jsx)(ve.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Xo.displayName=f.RadioItem.displayName;var Qo=Z.forwardRef(({className:e,inset:t,...o},i)=>(0,Mt.jsx)(f.Label,{ref:i,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Qo.displayName=f.Label.displayName;var Yo=Z.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(f.Separator,{ref:o,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Yo.displayName=f.Separator.displayName;var Zo=({className:e,...t})=>(0,Mt.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Zo.displayName="DropdownMenuShortcut";function rt({activeTab:e,onTabChange:t,tabOptions:o,className:i="",maxWidth:l="700px",gridCols:r=6}){let n=o.find(a=>a.value===e);return(0,Mt.jsxs)(it.motion.div,{className:`flex-1 flex justify-center ${i}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Mt.jsx)("div",{className:"hidden lg:block",children:(0,Mt.jsx)(It,{value:e,onValueChange:t,children:(0,Mt.jsx)(zt,{className:"grid w-full rounded-2xl Mt-0 h-10",style:{maxWidth:l,gridTemplateColumns:`repeat(${Math.min(r,o.length)}, minmax(0, 1fr))`},children:o.map(a=>(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Mt.jsx)(Et,{value:a.value,onClick:()=>t?.(a.value),className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:a.label})},a.value))})})}),(0,Mt.jsx)("div",{className:"lg:hidden",children:(0,Mt.jsxs)(Lt,{children:[(0,Mt.jsx)(Bt,{asChild:!0,children:(0,Mt.jsxs)(M,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",(0,Mt.jsx)(jt.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Mt.jsx)(tt,{align:"center",className:"w-[180px]",children:o.map(a=>(0,Mt.jsx)(ot,{onClick:()=>t?.(a.value),className:`cursor-pointer ${e===a.value?"bg-accent":""}`,children:a.label},a.value))})]})})]})}var Ee=R(require("react")),Le=R(require("@radix-ui/react-switch"));function ei({className:e,onCheckedChange:t,checked:o,defaultChecked:i,...l}){let[r,n]=Ee.useState(!1),[a,b]=Ee.useState(!1),[m,w]=Ee.useState(i||!1),T=o!==void 0?o:m;return(0,Mt.jsx)(Le.Root,{"data-slot":"switch","data-pressed":r,checked:o,defaultChecked:i,onMouseDown:()=>{n(!0),b(!1)},onMouseUp:()=>{n(!1),b(!1)},onMouseLeave:()=>{r&&(n(!1),b(!0))},onCheckedChange:h=>{a||(o===void 0&&w(h),t?.(h))},className:c("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...l,children:(0,Mt.jsx)(Le.Thumb,{"data-slot":"switch-thumb","data-pressed":r,className:c("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-x-[0.2rem]","data-[state=checked]:translate-x-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-x-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,Mt.jsx)(ti,{isChecked:T,isPressed:r})})})}var ti=({isChecked:e,isPressed:t})=>(0,Mt.jsxs)("svg",{viewBox:"0 0 20 20",className:c("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,Mt.jsx)("rect",{x:"4",y:"8.5",height:"3",className:c("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-x-[1px] translate-y-1":"rotate-45 w-[12px] translate-x-0 translate-y-0")}),(0,Mt.jsx)("rect",{x:"4",y:"8.5",height:"3",className:c("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-x-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-x-0 translate-y-0")})]});var _t=require("react");var oi=(0,At.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 ne({className:e,variant:t,...o}){return(0,Mt.jsx)("div",{className:c(oi({variant:t}),e),...o})}var Be=R(require("react")),ee=R(require("@radix-ui/react-avatar"));var Pe=Be.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ee.Root,{ref:o,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Pe.displayName=ee.Root.displayName;var at=Be.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ee.Image,{ref:o,className:c("aspect-square h-full w-full",e),...t}));at.displayName=ee.Image.displayName;var Ne=Be.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ee.Fallback,{ref:o,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ne.displayName=ee.Fallback.displayName;var Gt=R(require("react")),Ce=Gt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("textarea",{className:c("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Ce.displayName="Textarea";var Wt=R(require("react")),nt=R(require("@radix-ui/react-label"));var ii=(0,At.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ke=Wt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(nt.Root,{ref:o,className:c(ii(),e),...t}));ke.displayName=nt.Root.displayName;var ri=({comments:e,onAddComment:t})=>{let[o,i]=(0,_t.useState)(""),l=n=>n.split(" ").map(a=>a[0]).join("").toUpperCase(),r=()=>{o.trim()&&(t(o),i(""))};return(0,Mt.jsxs)("div",{className:"space-y-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)(jt.MessageSquare,{className:"h-5 w-5"}),(0,Mt.jsx)(ke,{className:"text-lg font-medium",children:"Comments"}),(0,Mt.jsx)(ne,{variant:"secondary",children:e.length})]}),(0,Mt.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(n=>(0,Mt.jsxs)("div",{className:"flex gap-3 Mt-3 bg-muted/50 rounded-lg",children:[(0,Mt.jsx)(Pe,{className:"h-8 w-8 mt-1",children:(0,Mt.jsx)(Ne,{className:"text-xs bg-muted text-muted-foreground",children:l(n.author)})}),(0,Mt.jsxs)("div",{className:"flex-1",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Mt.jsx)("span",{className:"font-medium text-sm",children:n.author}),(0,Mt.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.createdAt.toLocaleDateString()," at ",n.createdAt.toLocaleTimeString()]})]}),(0,Mt.jsx)("Mt",{className:"text-sm text-muted-foreground",children:n.text})]})]},n.id))}),(0,Mt.jsxs)("div",{className:"flex gap-2",children:[(0,Mt.jsx)(Ce,{value:o,onChange:n=>i(n.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Mt.jsx)(M,{onClick:r,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Mt.jsx)(jt.Send,{className:"h-4 w-4"})})]})]})};var Kt=R(require("react"));var De=Kt.forwardRef(({className:e,type:t,...o},i)=>(0,Mt.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...o}));De.displayName="Input";var ai=({fieldName:e,value:t,label:o,multiline:i=!1,onSave:l,className:r="",disabled:n=!1})=>{let[a,b]=(0,_t.useState)(!1),[m,w]=(0,_t.useState)(""),T=()=>{n||(b(!0),w(t))},k=async()=>{m!==t&&await l(e,m),b(!1)},L=y=>{y.key==="Enter"&&!i||y.key==="Enter"&&y.ctrlKey&&i?k():y.key==="Escape"&&(b(!1),w(""))};return(0,Mt.jsxs)("div",{className:`space-y-2 ${r}`,children:[(0,Mt.jsx)(ke,{children:o}),a?i?(0,Mt.jsx)(Ce,{value:m,onChange:y=>w(y.target.value),onBlur:k,onKeyDown:L,autoFocus:!0,rows:4,className:"resize-none"}):(0,Mt.jsx)(De,{value:m,onChange:y=>w(y.target.value),onBlur:k,onKeyPress:L,autoFocus:!0,className:"text-lg font-medium"}):(0,Mt.jsxs)("div",{onClick:T,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 Mt-2 rounded border border-transparent hover:border-border transition-colors group ${i?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Mt.jsx)("span",{className:i?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!n&&(0,Mt.jsx)(jt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Ke=R(require("react")),qe=R(require("next/link"));var lt=R(require("react")),W=R(require("@radix-ui/react-scroll-area"));var ye=lt.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(W.Root,{ref:i,className:c("relative overflow-hidden",e),...o,children:[(0,Mt.jsx)(W.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Mt.jsx)($t,{}),(0,Mt.jsx)(W.Corner,{})]}));ye.displayName=W.Root.displayName;var $t=lt.forwardRef(({className:e,orientation:t="vertical",...o},i)=>(0,Mt.jsx)(W.ScrollAreaScrollbar,{ref:i,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Mt-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Mt-[1px]",e),...o,children:(0,Mt.jsx)(W.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));$t.displayName=W.ScrollAreaScrollbar.displayName;var Re=R(require("react")),z=R(require("@radix-ui/react-dialog"));var Qt=z.Root;var ni=z.Portal;var Yt=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(z.Overlay,{ref:o,className:c("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Yt.displayName=z.Overlay.displayName;var ct=Re.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(ni,{children:[(0,Mt.jsx)(Yt,{}),(0,Mt.jsxs)(z.Content,{ref:i,className:c("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background Mt-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,Mt.jsxs)(z.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,Mt.jsx)(jt.X,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ct.displayName=z.Content.displayName;var dt=({className:e,...t})=>(0,Mt.jsx)("div",{className:c("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});dt.displayName="DialogHeader";var si=({className:e,...t})=>(0,Mt.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});si.displayName="DialogFooter";var pt=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(z.Title,{ref:o,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));pt.displayName=z.Title.displayName;var li=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(z.Description,{ref:o,className:c("text-sm text-muted-foreground",e),...t}));li.displayName=z.Description.displayName;var Se=R(require("@radix-ui/react-checkbox")),eo=R(require("react")),mt=eo.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(Se.Root,{className:c("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Mt.jsx)(Se.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,Mt.jsx)(jt.Check,{className:"h-4 w-4"})})}));mt.displayName=Se.Root.displayName;var J=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var oo=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Mt.jsx)(jt.Palette,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Mt.jsx)(jt.Code,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Mt.jsx)(jt.TrendingUp,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Mt.jsx)(jt.DollarSign,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Mt.jsx)(jt.Users,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Mt.jsx)(jt.Wrench,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Mt.jsx)(jt.Scale,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Mt.jsx)(jt.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Mt.jsx)(jt.Zap,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Mt.jsx)(jt.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],We=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var ut=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Ge=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Oe=[{id:"1",name:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",name:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",name:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",name:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",name:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",name:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",name:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],ci=[...Oe,{id:"8",name:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",name:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",name:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",name:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",name:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],di=[...We,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],Ve={projects:[{id:"1",name:"Empty Project",description:"Mt project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},to={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:Oe.filter(e=>e.epicId==="1")};var cr={empty:{initialProjects:Ve.projects,initialEpics:Ve.epics,initialSprints:Ve.sprints,initialTasks:Ve.tasks},default:{initialProjects:We,initialEpics:ut,initialSprints:Ge,initialTasks:Oe},highDensity:{initialProjects:We,initialEpics:ut,initialSprints:Ge,initialTasks:ci},singleEpic:{initialProjects:We,initialEpics:to.epics,initialSprints:Ge,initialTasks:to.tasks},multipleProjects:{initialProjects:di,initialEpics:ut,initialSprints:Ge,initialTasks:Oe}},He=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(J),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(J),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(J),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(J),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(J),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(J),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(J),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(J),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(J),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(J),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],dr=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:He.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:He.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:He.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var pr=He.filter(e=>e.type==="digital");function io(e,t){let[o,i]=(0,_t.useState)(()=>{if(typeof window>"u")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),l=r=>{try{i(r),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,_t.useEffect)(()=>{l(o)},[]),[o,l]}function pi({items:e,isOpen:t,isMobile:o=!1,onClose:i,currentBusinessUnit:l=oo[0],onBusinessUnitChange:r,onSearch:n,className:a,logo:b="/headerlogo.png",logoLink:m="/teams",appName:w="Nuvia",tagline:T="Collaboration Platform"}){let[k,L]=Ke.useState({}),[y,D]=io("sidebar-favorites",{}),[h,S]=Ke.useState(null),[E,_]=Ke.useState(""),V=s=>{L(P=>({...P,[s]:!P[s]}))},oe=s=>{r?.(s)},X=()=>{E.trim()&&n?.(E.trim())},ge=s=>{s.key==="Enter"&&(s.preventDefault(),X())},fe=(s,P)=>{let C=y[s]||[],q=C.includes(P)?C.filter(U=>U!==P):C.concat(P);D({...y,[s]:q})},B=s=>{if(!s.items||!s.maxItems||s.items.length<=s.maxItems)return s.items||[];let P=y[s.id]||[],C=s.items.filter(U=>P.includes(U.id)),q=s.items.filter(U=>!P.includes(U.id));return[...C,...q].slice(0,s.maxItems)},K=s=>s.maxItems&&s.items&&s.items.length>s.maxItems,pe=e,x=s=>{let P=K(s),C=B(s),q=(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-3",children:[s.icon,(0,Mt.jsx)("span",{children:s.title})]}),s.badge&&(0,Mt.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:s.badge}),s.items&&(0,Mt.jsx)(jt.ChevronDown,{className:c("ml-2 h-4 w-4 transition-transform",k[s.title]?"rotate-180":"")})]}),U=c("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",s.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return s.url?(0,Mt.jsx)(qe.default,{href:s.url,className:U,onClick:o?i:void 0,children:q}):(0,Mt.jsx)("button",{className:U,onClick:()=>s.items&&V(s.title),children:q})},Me=()=>{let s=e.find(C=>C.id===h);if(!s||!s.items||!s.maxItems)return null;let P=y[s.id]||[];return(0,Mt.jsx)(Qt,{open:!!h,onOpenChange:C=>!C&&S(null),children:(0,Mt.jsxs)(ct,{className:"sm:max-w-md",children:[(0,Mt.jsxs)(dt,{children:[(0,Mt.jsxs)(pt,{children:["Manage ",s.title," Favorites"]}),(0,Mt.jsxs)("Mt",{className:"text-sm text-muted-foreground",children:["Select up to ",s.maxItems," items to show in ",s.title.toLowerCase(),"."]})]}),(0,Mt.jsx)(ye,{className:"max-h-96 pr-4",children:(0,Mt.jsx)("div",{className:"space-y-4",children:s.items.map(C=>(0,Mt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Mt.jsx)(mt,{id:C.id,checked:P.includes(C.id),onCheckedChange:()=>fe(s.id,C.id),disabled:!P.includes(C.id)&&P.length>=(s.maxItems||0)}),(0,Mt.jsxs)("label",{htmlFor:C.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[C.title,C.badge&&(0,Mt.jsx)(ne,{variant:"outline",className:"text-xs",children:C.badge})]})]},C.id))})})]})})},me=(0,Mt.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between Mt-4",children:[(0,Mt.jsxs)(qe.default,{href:m,className:"flex items-center gap-3",children:[(0,Mt.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Mt.jsx)("img",{src:b,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Mt.jsxs)("div",{children:[(0,Mt.jsx)("h2",{className:"font-semibold",children:w}),(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:T})]})]}),o&&(0,Mt.jsx)(M,{variant:"ghost",size:"icon",onClick:i,children:(0,Mt.jsx)(jt.X,{className:"h-5 w-5"})})]}),(0,Mt.jsx)("div",{className:"px-3 py-2",children:(0,Mt.jsxs)("div",{className:"relative",children:[(0,Mt.jsx)(jt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Mt.jsx)(De,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:E,onChange:s=>_(s.target.value),onKeyPress:ge})]})}),(0,Mt.jsx)(ye,{className:"flex-1 px-3 py-2",children:(0,Mt.jsx)("div",{className:"space-y-1",children:pe.map(s=>(0,Mt.jsxs)("div",{className:"mb-1",children:[x(s),s.items&&k[s.title]&&(0,Mt.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[B(s).map(P=>(0,Mt.jsxs)(qe.default,{href:P.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?i:void 0,children:[P.title,P.badge&&(0,Mt.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:P.badge})]},P.id)),K(s)&&s.items&&s.items.length>B(s).length&&(0,Mt.jsxs)("button",{onClick:()=>S(s.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",s.items.length-B(s).length," more available"]})]})]},s.id))})}),(0,Mt.jsx)("div",{className:"Mt-3",children:(0,Mt.jsx)("div",{className:"space-y-1",children:(0,Mt.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Mt.jsx)(jt.Settings,{className:"h-5 w-5"}),(0,Mt.jsx)("span",{children:"Settings"})]})})}),(0,Mt.jsx)(Me,{})]});return o?(0,Mt.jsx)("div",{className:c("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:me}):(0,Mt.jsx)("div",{className:c("fixed inset-y-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:me})}var ro=R(require("react")),O=R(require("@radix-ui/react-tooltip"));var Je=O.Provider,$e=O.Root,Xe=O.Trigger,Ae=ro.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,Mt.jsx)(O.Portal,{children:(0,Mt.jsx)(O.Content,{ref:i,sideOffset:t,className:c("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ae.displayName=O.Content.displayName;var ao=require("next-themes");function no(){let{setTheme:e,theme:t}=(0,ao.useTheme)();return(0,$.jsx)(Je,{children:(0,$.jsxs)($e,{children:[(0,$.jsx)(Xe,{asChild:!0,children:(0,$.jsxs)(M,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,$.jsx)(jt.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,$.jsx)(jt.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,$.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,$.jsx)(Ae,{children:"Toggle theme"})]})})}function ft({notifications:e,open:t,onClose:o,onNotificationRemove:i,onRemoveAll:l,className:r}){let n=e.filter(m=>!m.read),a=n.length,b=m=>{switch(m){case"info":return(0,Mt.jsx)(jt.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Mt.jsx)(jt.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Mt.jsx)(jt.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Mt.jsx)(jt.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Mt.jsx)(it.AnimatePresence,{children:t&&(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsx)(it.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,Mt.jsx)(it.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",r),children:(0,Mt.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between border-b Mt-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)(jt.Bell,{className:"h-5 w-5"}),(0,Mt.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),a>0&&(0,Mt.jsxs)(ne,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[a," new"]})]}),(0,Mt.jsxs)(M,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Mt.jsx)(jt.X,{className:"h-5 w-5"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]}),a>0&&(0,Mt.jsxs)("div",{className:"flex items-center justify-between border-b Mt-2",children:[(0,Mt.jsxs)("span",{className:"text-sm text-muted-foreground",children:[a," unread notification",a!==1?"s":""]}),(0,Mt.jsx)(M,{variant:"ghost",size:"sm",onClick:l,className:"text-sm",children:"Dismiss all"})]}),n.length>0?(0,Mt.jsx)(ye,{className:"flex-1",children:(0,Mt.jsx)("div",{className:"divide-y",children:n.map(m=>(0,Mt.jsxs)("div",{className:c("flex gap-3 Mt-4 transition-colors bg-muted/50"),children:[(0,Mt.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:b(m.type)}),(0,Mt.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Mt.jsx)("Mt",{className:"font-medium",children:m.title}),(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:m.time}),(0,Mt.jsx)(M,{variant:"ghost",size:"sm",className:"h-6 w-6 Mt-0",onClick:()=>i?.(m.id),title:"Dismiss",children:(0,Mt.jsx)(jt.Check,{className:"h-3 w-3"})})]})]}),(0,Mt.jsx)("Mt",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,Mt.jsxs)(M,{variant:"link",size:"sm",className:"h-auto Mt-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,Mt.jsx)(jt.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,Mt.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center Mt-8 text-center",children:[(0,Mt.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Mt.jsx)(jt.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Mt.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,Mt.jsx)("Mt",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}function mi({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:i,sidebarOpen:l=!0,className:r,activeTab:n="assistant",onTabChange:a,showTabs:b=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:w,actionIcon:T=(0,Mt.jsx)(jt.Bot,{className:"mr-2 h-4 w-4"}),actionText:k="Action",onNotificationRemove:L,onRemoveAll:y,logo:D="/headerlogo.png",appName:h="Nuvia",tagline:S="Collaboration Platform"}){let[E,_]=(0,_t.useState)(!1),[V,oe]=(0,_t.useState)(t),X=V.filter(B=>!B.read).length,ge=B=>{oe(K=>K.filter(pe=>pe.id!==B)),L?.(B)},fe=()=>{oe(B=>B.filter(K=>K.read)),y?.()};return(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${r||""}`,children:[(0,Mt.jsx)(M,{variant:"ghost",size:"icon",className:"md:hidden",onClick:i,children:(0,Mt.jsx)(jt.Menu,{className:"h-5 w-5"})}),(0,Mt.jsx)(M,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Mt.jsx)(jt.PanelLeft,{className:"h-5 w-5"})}),!l&&(0,Mt.jsxs)(it.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Mt.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Mt.jsx)("img",{src:D,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Mt.jsxs)("div",{children:[(0,Mt.jsx)("h2",{className:"font-semibold text-sm",children:h}),(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:S})]})]}),(0,Mt.jsxs)("div",{className:"flex flex-1 items-center",children:[b&&(0,Mt.jsx)(rt,{activeTab:n,onTabChange:a,tabOptions:m}),(0,Mt.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Mt.jsx)(it.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(M,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:w,children:[T,k]})})}),(0,Mt.jsx)(no,{}),(0,Mt.jsx)(Je,{children:(0,Mt.jsxs)($e,{children:[(0,Mt.jsx)(Xe,{asChild:!0,children:(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(M,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>_(!0),children:[(0,Mt.jsx)(it.motion.div,{animate:X>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:X>0?1/0:0,repeatDelay:3},children:(0,Mt.jsx)(jt.Bell,{className:"h-5 w-5"})}),X>0&&(0,Mt.jsx)(it.motion.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:X})]})})}),(0,Mt.jsx)(Ae,{children:"Notifications"})]})}),(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(Pe,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Mt.jsx)(at,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Mt.jsx)(Ne,{})]})})]})]})]}),(0,Mt.jsx)(ft,{notifications:V,open:E,onClose:()=>_(!1),onNotificationRemove:ge,onRemoveAll:fe})]})}0&&(module.exports={AppHeader,AppSidebar,CommentSection,EditableField,NavigationTabs,NotificationsPanel,Switch});
6
+ "use strict";var yo=Object.create;var Le=Object.defineProperty;var wo=Object.getOwnPropertyDescriptor;var No=Object.getOwnPropertyNames;var Co=Object.getPrototypeOf,Po=Object.prototype.hasOwnProperty;var ko=(e,t)=>{for(var o in t)Le(e,o,{get:t[o],enumerable:!0})},Rt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of No(t))!Po.call(e,a)&&a!==o&&Le(e,a,{get:()=>t[a],enumerable:!(r=wo(t,a))||r.enumerable});return e};var D=(e,t,o)=>(o=e!=null?yo(Co(e)):{},Rt(t||!e||!e.__esModule?Le(o,"default",{value:e,enumerable:!0}):o,e)),Ro=e=>Rt(Le({},"__esModule",{value:!0}),e);var kr={};ko(kr,{AppHeader:()=>Pr,AppSidebar:()=>Cr,CommentSection:()=>br,EditableField:()=>hr,NavigationTabs:()=>dt,NotificationsPanel:()=>yt,OrgChart:()=>xo,OrgNode:()=>tt,OrgTree:()=>ot,Switch:()=>mr,buildOrgTree:()=>Nt,getInitials:()=>Ct,getRoleBadgeColor:()=>Pt});module.exports=Ro(kr);var lt=require("motion/react"),_t=require("lucide-react");var Lt=require("clsx");var at="-",Do=e=>{let t=To(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let n=s.split(at);return n[0]===""&&n.length!==1&&n.shift(),Tt(n,t)||So(s)},getConflictingClassGroupIds:(s,n)=>{let g=o[s]||[];return n&&r[s]?[...g,...r[s]]:g}}},Tt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?Tt(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(at);return t.validators.find(({validator:s})=>s(i))?.classGroupId},Dt=/^\[(.+)\]$/,So=e=>{if(Dt.test(e)){let t=Dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},To=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Mo(Object.entries(e.classGroups),o).forEach(([i,s])=>{it(s,r,i,t)}),r},it=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:St(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(Ao(a)){it(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,s])=>{it(s,St(t,i),o,r)})})},St=(e,t)=>{let o=e;return t.split(at).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ao=e=>e.isThemeGetter,Mo=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,n])=>[t+s,n])):i);return[o,a]}):e,Io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,s)=>{o.set(i,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return a(i,s),s},set(i,s){o.has(i)?o.set(i,s):a(i,s)}}},At="!",zo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,s=n=>{let g=[],p=0,y=0,M;for(let h=0;h<n.length;h++){let S=n[h];if(p===0){if(S===a&&(r||n.slice(h,h+i)===t)){g.push(n.slice(y,h)),y=h+i;continue}if(S==="/"){M=h;continue}}S==="["?p++:S==="]"&&p--}let k=g.length===0?n:n.substring(y),j=k.startsWith(At),x=j?k.substring(1):k,R=M&&M>y?M-y:void 0;return{modifiers:g,hasImportantModifier:j,baseClassName:x,maybePostfixModifierPosition:R}};return o?n=>o({className:n,parseClassName:s}):s},Eo=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},Lo=e=>({cache:Io(e.cacheSize),parseClassName:zo(e),...Do(e)}),jo=/\s+/,Bo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(jo),n="";for(let g=s.length-1;g>=0;g-=1){let p=s[g],{modifiers:y,hasImportantModifier:M,baseClassName:k,maybePostfixModifierPosition:j}=o(p),x=!!j,R=r(x?k.substring(0,j):k);if(!R){if(!x){n=p+(n.length>0?" "+n:n);continue}if(R=r(k),!R){n=p+(n.length>0?" "+n:n);continue}x=!1}let h=Eo(y).join(":"),S=M?h+At:h,L=S+R;if(i.includes(L))continue;i.push(L);let q=a(R,x);for(let W=0;W<q.length;++W){let ae=q[W];i.push(S+ae)}n=p+(n.length>0?" "+n:n)}return n};function Oo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Mt(t))&&(r&&(r+=" "),r+=o);return r}var Mt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Mt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Uo(e,...t){let o,r,a,i=s;function s(g){let p=t.reduce((y,M)=>M(y),e());return o=Lo(p),r=o.cache.get,a=o.cache.set,i=n,n(g)}function n(g){let p=r(g);if(p)return p;let y=Bo(g,o);return a(g,y),y}return function(){return i(Oo.apply(null,arguments))}}var C=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},It=/^\[(?:([a-Ut-]+):)?(.+)\]$/i,Fo=/^\d+\/\d+$/,Go=new Set(["px","full","screen"]),Vo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wo=/\d+(%|px|r?em|[sdl]?_t([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$/,Ho=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_o=/^(inset_)?-?((\d+)?\.?(\d+)[a-Ut]+|0)Ut-?((\d+)?\.?(\d+)[a-Ut]+|0)/,$o=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,te=e=>xe(e)||Go.has(e)||Fo.test(e),ne=e=>ye(e,"length",er),xe=e=>!!e&&!Number.isNaN(Number(e)),rt=e=>ye(e,"number",xe),Ce=e=>!!e&&Number.isInteger(Number(e)),Ko=e=>e.endsWith("%")&&xe(e.slice(0,-1)),u=e=>It.test(e),se=e=>Vo.test(e),qo=new Set(["length","size","percentage"]),Jo=e=>ye(e,qo,zt),Xo=e=>ye(e,"position",zt),Qo=new Set(["image","url"]),Yo=e=>ye(e,Qo,or),Zo=e=>ye(e,"",tr),Pe=()=>!0,ye=(e,t,o)=>{let r=It.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},er=e=>Wo.test(e)&&!Ho.test(e),zt=()=>!1,tr=e=>_o.test(e),or=e=>$o.test(e);var rr=()=>{let e=C("colors"),t=C("spacing"),o=C("blur"),r=C("brightness"),a=C("borderColor"),i=C("borderRadius"),s=C("borderSpacing"),n=C("borderWidth"),g=C("contrast"),p=C("grayscale"),y=C("hueRotate"),M=C("invert"),k=C("gap"),j=C("gradientColorStops"),x=C("gradientColorStopPositions"),R=C("inset"),h=C("margin"),S=C("opacity"),L=C("padding"),q=C("saturate"),W=C("scale"),ae=C("sepia"),Z=C("skew"),he=C("space"),ve=C("translate"),B=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",u,t],w=()=>[u,t],Ee=()=>["",te,ne],fe=()=>["auto",xe,u],l=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],P=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",u],kt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[xe,u];return{cacheSize:500,separator:":",theme:{colors:[Pe],spacing:[te,ne],blur:["none","",se,u],brightness:ee(),borderColor:[e],borderRadius:["none","","full",se,u],borderSpacing:w(),borderWidth:Ee(),contrast:ee(),grayscale:F(),hueRotate:ee(),invert:F(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[Ko,ne],inset:ge(),margin:ge(),opacity:ee(),padding:w(),saturate:ee(),scale:ee(),sepia:F(),skew:ee(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[se]}],"break-after":[{"break-after":kt()}],"break-before":[{"break-before":kt()}],"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:[...l(),u]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],Ut:[{Ut:["auto",Ce,u]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",Ce,u]}],"grid-cols":[{"grid-cols":[Pe]}],"col-start-end":[{col:["auto",{span:["full",Ce,u]},u]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[Pe]}],"row-start-end":[{row:["auto",{span:[Ce,u]},u]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],_t:[{_t:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],Ut:[{Ut:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],lt:[{lt:[h]}],Zt:[{Zt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[he]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[he]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[se]},se]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",se,ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rt]}],"font-family":[{font:[Pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",xe,rt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",te,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",te,ne]}],"underline-offset":[{"underline-offset":["auto",te,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...l(),Xo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Jo]}],"bg-image":[{bg:["none",{"gradient-Ut":["t","tr","r","br","b","bl","l","tl"]},Yo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-Ut-pos":[{Ut:[x]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-Ut":[{Ut:[j]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:N()}],"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-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[te,u]}],"outline-w":[{outline:[te,ne]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[te,ne]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",se,Zo]}],"shadow-color":[{shadow:[Pe]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...P(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",se,u]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[M]}],saturate:[{saturate:[q]}],sepia:[{sepia:[ae]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[M]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[W]}],"scale-x":[{"scale-x":[W]}],"scale-y":[{"scale-y":[W]}],rotate:[{rotate:[Ce,u]}],"translate-x":[{"translate-x":[ve]}],"translate-y":[{"translate-y":[ve]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ut":[{"scroll-Ut":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-lt":[{"scroll-lt":w()}],"scroll-Zt":[{"scroll-Zt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-_t":[{"scroll-_t":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[te,ne,rt]}],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","_t","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ut:["mx","my","ms","lt","Zt","mr","mb","ml"],mx:["mr","ml"],my:["Zt","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-Ut":["scroll-mx","scroll-my","scroll-ms","scroll-lt","scroll-Zt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Zt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-_t","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 Et=Uo(rr);function d(...e){return Et((0,Lt.clsx)(e))}var jt=require("@radix-ui/react-slot"),Bt=require("class-variance-authority"),Ot=D(require("react")),Ut=require("react/jsx-runtime"),ir=(0,Bt.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"}}}),I=Ot.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,Ut.jsx)(e?jt.Slot:"button",{className:d(ir({className:t,size:o,variant:r})),ref:i,...a}));I.displayName="Button";var be=D(require("@radix-ui/react-tabs"));function Ft({className:e,...t}){return(0,Ut.jsx)(be.Root,{"data-slot":"tabs",className:d("flex flex-col gap-2",e),...t})}function Gt({className:e,...t}){return(0,Ut.jsx)(be.List,{"data-slot":"tabs-list",className:d("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Vt({className:e,...t}){return(0,Ut.jsx)(be.Trigger,{"data-slot":"tabs-trigger",className:d("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var oe=D(require("react")),b=D(require("@radix-ui/react-dropdown-menu")),we=require("@radix-ui/react-icons");var Wt=b.Root,Ht=b.Trigger;var ar=oe.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,Ut.jsxs)(b.SubTrigger,{ref:a,className:d("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,Ut.jsx)(we.ChevronRightIcon,{className:"ml-auto"})]}));ar.displayName=b.SubTrigger.displayName;var nr=oe.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(b.SubContent,{ref:o,className:d("Ut-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));nr.displayName=b.SubContent.displayName;var nt=oe.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ut.jsx)(b.Portal,{children:(0,Ut.jsx)(b.Content,{ref:r,sideOffset:t,className:d("Ut-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));nt.displayName=b.Content.displayName;var st=oe.forwardRef(({className:e,inset:t,...o},r)=>(0,Ut.jsx)(b.Item,{ref:r,className:d("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));st.displayName=b.Item.displayName;var sr=oe.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,Ut.jsxs)(b.CheckboxItem,{ref:a,className:d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ut.jsx)(b.ItemIndicator,{children:(0,Ut.jsx)(we.CheckIcon,{className:"h-4 w-4"})})}),t]}));sr.displayName=b.CheckboxItem.displayName;var lr=oe.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(b.RadioItem,{ref:r,className:d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ut.jsx)(b.ItemIndicator,{children:(0,Ut.jsx)(we.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));lr.displayName=b.RadioItem.displayName;var dr=oe.forwardRef(({className:e,inset:t,...o},r)=>(0,Ut.jsx)(b.Label,{ref:r,className:d("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));dr.displayName=b.Label.displayName;var cr=oe.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(b.Separator,{ref:o,className:d("-mx-1 my-1 h-px bg-muted",e),...t}));cr.displayName=b.Separator.displayName;var pr=({className:e,...t})=>(0,Ut.jsx)("span",{className:d("ml-auto text-xs tracking-widest opacity-60",e),...t});pr.displayName="DropdownMenuShortcut";function dt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let s=o.find(n=>n.value===e);return(0,Ut.jsxs)(lt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ut.jsx)("div",{className:"hidden lg:block",children:(0,Ut.jsx)(Ft,{value:e,onValueChange:t,children:(0,Ut.jsx)(Gt,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:a,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,Ut.jsx)(lt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ut.jsx)(Vt,{value:n.value,onClick:()=>t?.(n.value),className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:n.label})},n.value))})})}),(0,Ut.jsx)("div",{className:"lg:hidden",children:(0,Ut.jsxs)(Wt,{children:[(0,Ut.jsx)(Ht,{asChild:!0,children:(0,Ut.jsxs)(I,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,Ut.jsx)(_t.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Ut.jsx)(nt,{align:"center",className:"w-[180px]",children:o.map(n=>(0,Ut.jsx)(st,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}var Be=D(require("react")),Oe=D(require("@radix-ui/react-switch"));function mr({className:e,onCheckedChange:t,checked:o,defaultChecked:r,...a}){let[i,s]=Be.useState(!1),[n,g]=Be.useState(!1),[p,y]=Be.useState(r||!1),M=o!==void 0?o:p;return(0,Ut.jsx)(Oe.Root,{"data-slot":"switch","data-pressed":i,checked:o,defaultChecked:r,onMouseDown:()=>{s(!0),g(!1)},onMouseUp:()=>{s(!1),g(!1)},onMouseLeave:()=>{i&&(s(!1),g(!0))},onCheckedChange:h=>{n||(o===void 0&&y(h),t?.(h))},className:d("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...a,children:(0,Ut.jsx)(Oe.Thumb,{"data-slot":"switch-thumb","data-pressed":i,className:d("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-x-[0.2rem]","data-[state=checked]:translate-x-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-x-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,Ut.jsx)(ur,{isChecked:M,isPressed:i})})})}var ur=({isChecked:e,isPressed:t})=>(0,Ut.jsxs)("svg",{viewBox:"0 0 20 20",className:d("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,Ut.jsx)("rect",{x:"4",y:"8.5",height:"3",className:d("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-x-[1px] translate-y-1":"rotate-45 w-[12px] translate-x-0 translate-y-0")}),(0,Ut.jsx)("rect",{x:"4",y:"8.5",height:"3",className:d("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-x-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-x-0 translate-y-0")})]});var Zt=require("react");var gr=(0,$t.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 de({className:e,variant:t,...o}){return(0,Ut.jsx)("div",{className:d(gr({variant:t}),e),...o})}var Ue=D(require("react")),re=D(require("@radix-ui/react-avatar"));var ke=Ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(re.Root,{ref:o,className:d("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ke.displayName=re.Root.displayName;var ct=Ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(re.Image,{ref:o,className:d("aspect-square h-full w-full",e),...t}));ct.displayName=re.Image.displayName;var Re=Ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(re.Fallback,{ref:o,className:d("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Re.displayName=re.Fallback.displayName;var qt=D(require("react")),De=qt.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("textarea",{className:d("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));De.displayName="Textarea";var Xt=D(require("react")),pt=D(require("@radix-ui/react-label"));var fr=(0,Bt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Se=Xt.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(pt.Root,{ref:o,className:d(fr(),e),...t}));Se.displayName=pt.Root.displayName;var br=({comments:e,onAddComment:t})=>{let[o,r]=(0,Zt.useState)(""),a=s=>s.split(" ").map(n=>n[0]).join("").toUpperCase(),i=()=>{o.trim()&&(t(o),r(""))};return(0,Ut.jsxs)("div",{className:"space-y-4",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)(_t.MessageSquare,{className:"h-5 w-5"}),(0,Ut.jsx)(Se,{className:"text-lg font-medium",children:"Comments"}),(0,Ut.jsx)(de,{variant:"secondary",children:e.length})]}),(0,Ut.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(s=>(0,Ut.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,Ut.jsx)(ke,{className:"h-8 w-8 Zt-1",children:(0,Ut.jsx)(Re,{className:"text-xs bg-muted text-muted-foreground",children:a(s.author)})}),(0,Ut.jsxs)("div",{className:"flex-1",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ut.jsx)("span",{className:"font-medium text-sm",children:s.author}),(0,Ut.jsxs)("span",{className:"text-xs text-muted-foreground",children:[s.createdAt.toLocaleDateString()," at ",s.createdAt.toLocaleTimeString()]})]}),(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:s.text})]})]},s.id))}),(0,Ut.jsxs)("div",{className:"flex gap-2",children:[(0,Ut.jsx)(De,{value:o,onChange:s=>r(s.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Ut.jsx)(I,{onClick:i,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Ut.jsx)(_t.Send,{className:"h-4 w-4"})})]})]})};var eo=D(require("react"));var Te=eo.forwardRef(({className:e,type:t,...o},r)=>(0,Ut.jsx)("input",{type:t,className:d("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));Te.displayName="Input";var hr=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:a,className:i="",disabled:s=!1})=>{let[n,g]=(0,Zt.useState)(!1),[p,y]=(0,Zt.useState)(""),M=()=>{s||(g(!0),y(t))},k=async()=>{p!==t&&await a(e,p),g(!1)},j=x=>{x.key==="Enter"&&!r||x.key==="Enter"&&x.ctrlKey&&r?k():x.key==="Escape"&&(g(!1),y(""))};return(0,Ut.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,Ut.jsx)(Se,{children:o}),n?r?(0,Ut.jsx)(De,{value:p,onChange:x=>y(x.target.value),onBlur:k,onKeyDown:j,autoFocus:!0,rows:4,className:"resize-none"}):(0,Ut.jsx)(Te,{value:p,onChange:x=>y(x.target.value),onBlur:k,onKeyPress:j,autoFocus:!0,className:"text-lg font-medium"}):(0,Ut.jsxs)("div",{onClick:M,className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Ut.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click Ut edit..."}),!s&&(0,Ut.jsx)(_t.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Je=D(require("react")),Xe=D(require("next/link"));var ut=D(require("react")),H=D(require("@radix-ui/react-scroll-area"));var Ne=ut.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(H.Root,{ref:r,className:d("relative overflow-hidden",e),...o,children:[(0,Ut.jsx)(H.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ut.jsx)(ro,{}),(0,Ut.jsx)(H.Corner,{})]}));Ne.displayName=H.Root.displayName;var ro=ut.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ut.jsx)(H.ScrollAreaScrollbar,{ref:r,orientation:t,className:d("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ut.jsx)(H.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ro.displayName=H.ScrollAreaScrollbar.displayName;var Ae=D(require("react")),E=D(require("@radix-ui/react-dialog"));var ao=E.Root;var vr=E.Portal;var no=Ae.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(E.Overlay,{ref:o,className:d("fixed inset-0 Ut-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}));no.displayName=E.Overlay.displayName;var gt=Ae.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(vr,{children:[(0,Ut.jsx)(no,{}),(0,Ut.jsxs)(E.Content,{ref:r,className:d("fixed left-[50%] top-[50%] Ut-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-Ut-left-1/2 data-[state=closed]:slide-out-Ut-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,Ut.jsxs)(E.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,Ut.jsx)(_t.X,{className:"h-4 w-4"}),(0,Ut.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));gt.displayName=E.Content.displayName;var ft=({className:e,...t})=>(0,Ut.jsx)("div",{className:d("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ft.displayName="DialogHeader";var xr=({className:e,...t})=>(0,Ut.jsx)("div",{className:d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xr.displayName="DialogFooter";var bt=Ae.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(E.Title,{ref:o,className:d("text-lg font-semibold leading-none tracking-tight",e),...t}));bt.displayName=E.Title.displayName;var yr=Ae.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(E.Description,{ref:o,className:d("text-sm text-muted-foreground",e),...t}));yr.displayName=E.Description.displayName;var Me=D(require("@radix-ui/react-checkbox")),lo=D(require("react")),ht=lo.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(Me.Root,{className:d("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Ut.jsx)(Me.Indicator,{className:d("flex items-center justify-center text-current"),children:(0,Ut.jsx)(_t.Check,{className:"h-4 w-4"})})}));ht.displayName=Me.Root.displayName;var Q=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var po=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,$.jsx)(_t.Palette,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,$.jsx)(_t.Code,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,$.jsx)(_t.TrendingUp,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,$.jsx)(_t.DollarSign,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,$.jsx)(_t.Users,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,$.jsx)(_t.Wrench,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,$.jsx)(_t.Scale,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,$.jsx)(_t.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,$.jsx)(_t.Zap,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,$.jsx)(_t.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],_e=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var vt=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],We=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned Ut a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Ke=[{id:"1",name:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",name:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",name:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",name:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",name:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",name:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",name:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],wr=[...Ke,{id:"8",name:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",name:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",name:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",name:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",name:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],Nr=[..._e,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],He={projects:[{id:"1",name:"Empty Project",description:"Ut project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},co={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:Ke.filter(e=>e.epicId==="1")};var wi={empty:{initialProjects:He.projects,initialEpics:He.epics,initialSprints:He.sprints,initialTasks:He.tasks},default:{initialProjects:_e,initialEpics:vt,initialSprints:We,initialTasks:Ke},highDensity:{initialProjects:_e,initialEpics:vt,initialSprints:We,initialTasks:wr},singleEpic:{initialProjects:_e,initialEpics:co.epics,initialSprints:We,initialTasks:co.tasks},multipleProjects:{initialProjects:Nr,initialEpics:vt,initialSprints:We,initialTasks:Ke}},$e=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(Q),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Q),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(Q),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Q),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated Ut understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(Q),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Q),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(Q),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Q),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond Ut customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases Ut human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(Q),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Q),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],Ni=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:$e.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:$e.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy Ut production",description:"Deploy the latest version Ut production environment",dueDate:new Date,dueTime:"16:00",colleague:$e.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var Ci=$e.filter(e=>e.type==="digital");function mo(e,t){let[o,r]=(0,Zt.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),a=i=>{try{r(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,Zt.useEffect)(()=>{a(o)},[]),[o,a]}function Cr({items:e,isOpen:t,isMobile:o=!1,onClose:r,currentBusinessUnit:a=po[0],onBusinessUnitChange:i,onSearch:s,className:n,logo:g="/headerlogo.png",logoLink:p="/teams",appName:y="Nuvia",tagline:M="Collaboration Platform"}){let[k,j]=Je.useState({}),[x,R]=mo("sidebar-favorites",{}),[h,S]=Je.useState(null),[L,q]=Je.useState(""),W=l=>{j(N=>({...N,[l]:!N[l]}))},ae=l=>{i?.(l)},Z=()=>{L.trim()&&s?.(L.trim())},he=l=>{l.key==="Enter"&&(l.preventDefault(),Z())},ve=(l,N)=>{let P=x[l]||[],X=P.includes(N)?P.filter(F=>F!==N):P.concat(N);R({...x,[l]:X})},B=l=>{if(!l.items||!l.maxItems||l.items.length<=l.maxItems)return l.items||[];let N=x[l.id]||[],P=l.items.filter(F=>N.includes(F.id)),X=l.items.filter(F=>!N.includes(F.id));return[...P,...X].slice(0,l.maxItems)},J=l=>l.maxItems&&l.items&&l.items.length>l.maxItems,ge=e,w=l=>{let N=J(l),P=B(l),X=(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[l.icon,(0,Ut.jsx)("span",{children:l.title})]}),l.badge&&(0,Ut.jsx)(de,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:l.badge}),l.items&&(0,Ut.jsx)(_t.ChevronDown,{className:d("ml-2 h-4 w-4 transition-transform",k[l.title]?"rotate-180":"")})]}),F=d("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",l.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return l.url?(0,Ut.jsx)(Xe.default,{href:l.url,className:F,onClick:o?r:void 0,children:X}):(0,Ut.jsx)("button",{className:F,onClick:()=>l.items&&W(l.title),children:X})},Ee=()=>{let l=e.find(P=>P.id===h);if(!l||!l.items||!l.maxItems)return null;let N=x[l.id]||[];return(0,Ut.jsx)(ao,{open:!!h,onOpenChange:P=>!P&&S(null),children:(0,Ut.jsxs)(gt,{className:"sm:max-w-md",children:[(0,Ut.jsxs)(ft,{children:[(0,Ut.jsxs)(bt,{children:["Manage ",l.title," Favorites"]}),(0,Ut.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up Ut ",l.maxItems," items Ut show in ",l.title.toLowerCase(),"."]})]}),(0,Ut.jsx)(Ne,{className:"max-h-96 pr-4",children:(0,Ut.jsx)("div",{className:"space-y-4",children:l.items.map(P=>(0,Ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ut.jsx)(ht,{id:P.id,checked:N.includes(P.id),onCheckedChange:()=>ve(l.id,P.id),disabled:!N.includes(P.id)&&N.length>=(l.maxItems||0)}),(0,Ut.jsxs)("label",{htmlFor:P.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[P.title,P.badge&&(0,Ut.jsx)(de,{variant:"outline",className:"text-xs",children:P.badge})]})]},P.id))})})]})})},fe=(0,Ut.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,Ut.jsxs)(Xe.default,{href:p,className:"flex items-center gap-3",children:[(0,Ut.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Ut.jsx)("img",{src:g,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h2",{className:"font-semibold",children:y}),(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground",children:M})]})]}),o&&(0,Ut.jsx)(I,{variant:"ghost",size:"icon",onClick:r,children:(0,Ut.jsx)(_t.X,{className:"h-5 w-5"})})]}),(0,Ut.jsx)("div",{className:"px-3 py-2",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(_t.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Ut.jsx)(Te,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:L,onChange:l=>q(l.target.value),onKeyPress:he})]})}),(0,Ut.jsx)(Ne,{className:"flex-1 px-3 py-2",children:(0,Ut.jsx)("div",{className:"space-y-1",children:ge.map(l=>(0,Ut.jsxs)("div",{className:"mb-1",children:[w(l),l.items&&k[l.title]&&(0,Ut.jsxs)("div",{className:"Zt-1 ml-6 space-y-1 border-l pl-3",children:[B(l).map(N=>(0,Ut.jsxs)(Xe.default,{href:N.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?r:void 0,children:[N.title,N.badge&&(0,Ut.jsx)(de,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:N.badge})]},N.id)),J(l)&&l.items&&l.items.length>B(l).length&&(0,Ut.jsxs)("button",{onClick:()=>S(l.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",l.items.length-B(l).length," more available"]})]})]},l.id))})}),(0,Ut.jsx)("div",{className:"p-3",children:(0,Ut.jsx)("div",{className:"space-y-1",children:(0,Ut.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Ut.jsx)(_t.Settings,{className:"h-5 w-5"}),(0,Ut.jsx)("span",{children:"Settings"})]})})}),(0,Ut.jsx)(Ee,{})]});return o?(0,Ut.jsx)("div",{className:d("fixed inset-y-0 left-0 Ut-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",n),children:fe}):(0,Ut.jsx)("div",{className:d("fixed inset-y-0 left-0 Ut-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",n),children:fe})}var uo=D(require("react")),K=D(require("@radix-ui/react-tooltip"));var Qe=K.Provider,Ye=K.Root,Ze=K.Trigger,Ie=uo.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ut.jsx)(K.Portal,{children:(0,Ut.jsx)(K.Content,{ref:r,sideOffset:t,className:d("Ut-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ie.displayName=K.Content.displayName;var go=require("next-themes");function fo(){let{setTheme:e,theme:t}=(0,go.useTheme)();return(0,Ut.jsx)(Qe,{children:(0,Ut.jsxs)(Ye,{children:[(0,Ut.jsx)(Ze,{asChild:!0,children:(0,Ut.jsxs)(I,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Ut.jsx)(_t.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Ut.jsx)(_t.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Ut.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Ut.jsx)(Ie,{children:"Toggle theme"})]})})}function yt({notifications:e,open:t,onClose:o,onNotificationRemove:r,onRemoveAll:a,className:i}){let s=e.filter(p=>!p.read),n=s.length,g=p=>{switch(p){case"info":return(0,Ut.jsx)(_t.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Ut.jsx)(_t.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Ut.jsx)(_t.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Ut.jsx)(_t.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Ut.jsx)(lt.AnimatePresence,{children:t&&(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)(lt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 Ut-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,Ut.jsx)(lt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:d("fixed inset-y-0 right-0 Ut-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",i),children:(0,Ut.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)(_t.Bell,{className:"h-5 w-5"}),(0,Ut.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),n>0&&(0,Ut.jsxs)(de,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[n," new"]})]}),(0,Ut.jsxs)(I,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Ut.jsx)(_t.X,{className:"h-5 w-5"}),(0,Ut.jsx)("span",{className:"sr-only",children:"Close"})]})]}),n>0&&(0,Ut.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,Ut.jsxs)("span",{className:"text-sm text-muted-foreground",children:[n," unread notification",n!==1?"s":""]}),(0,Ut.jsx)(I,{variant:"ghost",size:"sm",onClick:a,className:"text-sm",children:"Dismiss all"})]}),s.length>0?(0,Ut.jsx)(Ne,{className:"flex-1",children:(0,Ut.jsx)("div",{className:"divide-y",children:s.map(p=>(0,Ut.jsxs)("div",{className:d("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,Ut.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:g(p.type)}),(0,Ut.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ut.jsx)("p",{className:"font-medium",children:p.title}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground",children:p.time}),(0,Ut.jsx)(I,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>r?.(p.id),title:"Dismiss",children:(0,Ut.jsx)(_t.Check,{className:"h-3 w-3"})})]})]}),(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:p.description}),p.actionLabel&&(0,Ut.jsxs)(I,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:p.onAction,children:[p.actionLabel,(0,Ut.jsx)(_t.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},p.id))})}):(0,Ut.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,Ut.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Ut.jsx)(_t.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ut.jsx)("h3",{className:"Zt-4 text-lg font-medium",children:"No notifications"}),(0,Ut.jsx)("p",{className:"Zt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}function Pr({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:r,sidebarOpen:a=!0,className:i,activeTab:s="assistant",onTabChange:n,showTabs:g=!0,tabOptions:p=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:y,actionIcon:M=(0,Ut.jsx)(_t.Bot,{className:"mr-2 h-4 w-4"}),actionText:k="Action",onNotificationRemove:j,onRemoveAll:x,logo:R="/headerlogo.png",appName:h="Nuvia",tagline:S="Collaboration Platform"}){let[L,q]=(0,Zt.useState)(!1),[W,ae]=(0,Zt.useState)(t),Z=W.filter(B=>!B.read).length,he=B=>{ae(J=>J.filter(ge=>ge.id!==B)),j?.(B)},ve=()=>{ae(B=>B.filter(J=>J.read)),x?.()};return(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsxs)("header",{className:`sticky top-0 Ut-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,Ut.jsx)(I,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:(0,Ut.jsx)(_t.Menu,{className:"h-5 w-5"})}),(0,Ut.jsx)(I,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Ut.jsx)(_t.PanelLeft,{className:"h-5 w-5"})}),!a&&(0,Ut.jsxs)(lt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Ut.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Ut.jsx)("img",{src:R,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h2",{className:"font-semibold text-sm",children:h}),(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground",children:S})]})]}),(0,Ut.jsxs)("div",{className:"flex flex-1 items-center",children:[g&&(0,Ut.jsx)(dt,{activeTab:s,onTabChange:n,tabOptions:p}),(0,Ut.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Ut.jsx)(lt.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Ut.jsx)(lt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ut.jsxs)(I,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:y,children:[M,k]})})}),(0,Ut.jsx)(fo,{}),(0,Ut.jsx)(Qe,{children:(0,Ut.jsxs)(Ye,{children:[(0,Ut.jsx)(Ze,{asChild:!0,children:(0,Ut.jsx)(lt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ut.jsxs)(I,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>q(!0),children:[(0,Ut.jsx)(lt.motion.div,{animate:Z>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:Z>0?1/0:0,repeatDelay:3},children:(0,Ut.jsx)(_t.Bell,{className:"h-5 w-5"})}),Z>0&&(0,Ut.jsx)(lt.motion.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:Z})]})})}),(0,Ut.jsx)(Ie,{children:"Notifications"})]})}),(0,Ut.jsx)(lt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ut.jsxs)(ke,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Ut.jsx)(ct,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Ut.jsx)(Re,{})]})})]})]})]}),(0,Ut.jsx)(yt,{notifications:W,open:L,onClose:()=>q(!1),onNotificationRemove:he,onRemoveAll:ve})]})}function Nt(e){let t=new Map,o=[];e.forEach(a=>{t.set(a.id,{...a,children:[],level:0})}),e.forEach(a=>{let i=t.get(a.id);if(!i)return;let s=typeof a.manager=="string"?a.manager:a.manager?.id;if(s){let n=t.get(s);n?(n.children.push(i),i.level=n.level+1):o.push(i)}else o.push(i)});let r=(a,i)=>{a.level=i,a.children.forEach(s=>r(s,i+1))};return o.forEach(a=>r(a,0)),o}function Ct(e){if(!e)return"?";let t=e.trim().split(/\s+/);return t.length===1?t[0].substring(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}function Pt(e){return e&&{P:"bg-primary/20 text-primary border-primary/30",SM:"bg-accent/20 text-accent border-accent/30",M:"bg-accent/15 text-accent border-accent/25",SC2:"bg-card text-card-foreground border-border",SC1:"bg-card text-card-foreground border-border",C3:"bg-muted text-muted-foreground border-border",C2:"bg-muted text-muted-foreground border-border",C1:"bg-muted text-muted-foreground border-border"}[e]||"bg-muted text-muted-foreground"}var bo={C1:"Consultant 1",C2:"Consultant 2",C3:"Consultant 3",SC1:"Senior Consultant 1",SC2:"Senior Consultant 2",M:"Manager",SM:"Senior Manager",P:"Partner"};var tt=({node:e,onNodeClick:t,expandable:o=!1,isExpanded:r=!0,onToggleExpand:a})=>{let i=e.children.length>0,s=o&&i;return(0,Ut.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Ut.jsxs)("div",{className:`
7
+ relative bg-card border border-border rounded-lg shadow-sm
8
+ transition-all duration-200 hover:shadow-md hover:border-primary/50
9
+ ${t?"cursor-pointer":""}
10
+ w-64 p-4
11
+ `,onClick:()=>t?.(e),children:[(0,Ut.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ut.jsx)("div",{className:"flex-shrink-0",children:e.profilePicture?.url?(0,Ut.jsx)("img",{src:e.profilePicture.url,alt:e.profilePicture.alt||e.name,className:"w-12 h-12 rounded-full object-cover border-2 border-primary/20"}):(0,Ut.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary/10 border-2 border-primary/20 flex items-center justify-center",children:(0,Ut.jsx)("span",{className:"text-sm font-semibold text-primary",children:Ct(e.name)})})}),(0,Ut.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ut.jsx)("h3",{className:"font-semibold text-card-foreground text-sm truncate",children:e.name}),(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:e.email}),e.jobRole&&(0,Ut.jsx)("div",{className:"Zt-2",children:(0,Ut.jsx)("span",{className:`
12
+ inline-block px-2 py-0.5 rounded text-xs font-medium border
13
+ ${Pt(e.jobRole)}
14
+ `,children:bo[e.jobRole]})})]})]}),e.about&&(0,Ut.jsx)("div",{className:"Zt-3 pt-3 border-t border-border",children:(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:e.about})}),s&&(0,Ut.jsx)("button",{onClick:n=>{n.stopPropagation(),a?.()},className:"absolute -bottom-3 left-1/2 -translate-x-1/2 w-6 h-6 rounded-full bg-card border-2 border-border hover:border-primary/50 flex items-center justify-center transition-colors","aria-label":r?"Collapse":"Expand",children:(0,Ut.jsx)("svg",{className:`w-3 h-3 text-muted-foreground transition-transform ${r?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Ut.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),i&&r&&(0,Ut.jsx)("div",{className:"w-0.5 h-8 bg-border"})]})};var ot=({nodes:e,onNodeClick:t,expandable:o=!1,initiallyExpanded:r=!0})=>(0,Ut.jsx)("div",{className:"flex flex-col items-center gap-0",children:e.map((a,i)=>(0,Ut.jsx)(vo,{node:a,onNodeClick:t,expandable:o,initiallyExpanded:r,isLast:i===e.length-1},a.id))}),vo=({node:e,onNodeClick:t,expandable:o,initiallyExpanded:r=!0,isLast:a=!1})=>{let[i,s]=(0,Zt.useState)(r),n=e.children.length>0;return(0,Ut.jsxs)("div",{className:`flex flex-col items-center ${a?"":"mb-8"}`,children:[(0,Ut.jsx)(tt,{node:e,onNodeClick:t,expandable:o,isExpanded:i,onToggleExpand:()=>s(!i)}),n&&i&&(0,Ut.jsxs)("div",{className:"flex flex-col items-center Zt-0",children:[e.children.length>1&&(0,Ut.jsx)("div",{className:"relative w-full flex justify-center",children:(0,Ut.jsxs)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-[800px]",children:[(0,Ut.jsx)("div",{className:"absolute top-0 left-0 right-0 h-0.5 bg-border"}),(0,Ut.jsx)("div",{className:"flex justify-around",children:e.children.map((g,p)=>(0,Ut.jsx)("div",{className:"w-0.5 h-8 bg-border"},p))})]})}),(0,Ut.jsx)("div",{className:`
15
+ flex gap-8 Zt-8
16
+ ${e.children.length===1?"flex-col items-center":"flex-row items-start justify-center flex-wrap"}
17
+ `,children:e.children.map((g,p)=>(0,Ut.jsx)(vo,{node:g,onNodeClick:t,expandable:o,initiallyExpanded:r,isLast:p===e.children.length-1},g.id))})]})]})};var xo=({users:e,onNodeClick:t,className:o="",expandable:r=!1,initiallyExpanded:a=!0})=>{let i=Nt(e);return e.length===0?(0,Ut.jsx)("div",{className:`flex items-center justify-center p-8 ${o}`,children:(0,Ut.jsx)("div",{className:"text-center",children:(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"No users Ut display"})})}):i.length===0?(0,Ut.jsx)("div",{className:`flex items-center justify-center p-8 ${o}`,children:(0,Ut.jsxs)("div",{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Unable Ut build organization tree"}),(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground Zt-1",children:"Check that manager relationships are properly configured"})]})}):(0,Ut.jsx)("div",{className:`org-chart w-full overflow-x-auto ${o}`,children:(0,Ut.jsx)("div",{className:"inline-block min-w-full p-8",children:(0,Ut.jsx)(ot,{nodes:i,onNodeClick:t,expandable:r,initiallyExpanded:a})})})};0&&(module.exports={AppHeader,AppSidebar,CommentSection,EditableField,NavigationTabs,NotificationsPanel,OrgChart,OrgNode,OrgTree,Switch,buildOrgTree,getInitials,getRoleBadgeColor});
@@ -1 +1 @@
1
- import{a as e}from"../../chunk-TJVEQJW3.mjs";import{a}from"../../chunk-6YHCNPFB.mjs";import"../../chunk-NPVUICIF.mjs";import{a as f}from"../../chunk-6SWKEZN6.mjs";import{a as g}from"../../chunk-DFIXTV2M.mjs";import{a as d}from"../../chunk-F6DMXMR4.mjs";import{a as c}from"../../chunk-GLZEHRPY.mjs";import{a as b}from"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-QTW33JYG.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{d as AppHeader,a as AppSidebar,f as CommentSection,g as EditableField,c as NavigationTabs,b as NotificationsPanel,e as Switch};
1
+ import{a as m}from"../../chunk-B7RZ4K6Y.mjs";import{a as l}from"../../chunk-G6OGEIN4.mjs";import{a as k}from"../../chunk-KQRQXBJ3.mjs";import"../../chunk-SOTCQX2G.mjs";import{a as h,b as i,c as j}from"../../chunk-32G45Z2G.mjs";import{a as e}from"../../chunk-TJVEQJW3.mjs";import{a}from"../../chunk-6YHCNPFB.mjs";import"../../chunk-NPVUICIF.mjs";import{a as f}from"../../chunk-6SWKEZN6.mjs";import{a as g}from"../../chunk-DFIXTV2M.mjs";import{a as d}from"../../chunk-F6DMXMR4.mjs";import{a as c}from"../../chunk-GLZEHRPY.mjs";import{a as b}from"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-QTW33JYG.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{d as AppHeader,a as AppSidebar,f as CommentSection,g as EditableField,c as NavigationTabs,b as NotificationsPanel,m as OrgChart,k as OrgNode,l as OrgTree,e as Switch,h as buildOrgTree,i as getInitials,j as getRoleBadgeColor};
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { OrgChartProps } from './types';
3
+ /**
4
+ * OrgChart Component
5
+ *
6
+ * Displays an organizational hierarchy chart based on user data.
7
+ *
8
+ * @param users - Array of user objects with manager relationships
9
+ * @param onNodeClick - Optional callback when a node is clicked
10
+ * @param className - Optional additional CSS classes
11
+ * @param expandable - Whether nodes can be collapsed/expanded (default: false)
12
+ * @param initiallyExpanded - Whether nodes start expanded (default: true)
13
+ */
14
+ export declare const OrgChart: React.FC<OrgChartProps>;
15
+ export default OrgChart;
@@ -0,0 +1,12 @@
1
+ "use strict";var g=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var k=(e,r)=>{for(var o in r)g(e,o,{get:r[o],enumerable:!0})},R=(e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of P(r))!w.call(e,t)&&t!==o&&g(e,t,{get:()=>r[t],enumerable:!(i=O(r,t))||i.enumerable});return e};var E=e=>R(g({},"__esModule",{value:!0}),e);var S={};k(S,{OrgChart:()=>y,default:()=>U});module.exports=E(S);function u(e){let r=new Map,o=[];e.forEach(t=>{r.set(t.id,{...t,children:[],level:0})}),e.forEach(t=>{let a=r.get(t.id);if(!a)return;let d=typeof t.manager=="string"?t.manager:t.manager?.id;if(d){let c=r.get(d);c?(c.children.push(a),a.level=c.level+1):o.push(a)}else o.push(a)});let i=(t,a)=>{t.level=a,t.children.forEach(d=>i(d,a+1))};return o.forEach(t=>i(t,0)),o}function f(e){if(!e)return"?";let r=e.trim().split(/\n+/);return r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+r[r.length-1][0]).toUpperCase()}function b(e){return e&&{P:"bg-primary/20 text-primary border-primary/30",SM:"bg-accent/20 text-accent border-accent/30",M:"bg-accent/15 text-accent border-accent/25",SC2:"bg-card text-card-foreground border-border",SC1:"bg-card text-card-foreground border-border",C3:"bg-muted text-muted-foreground border-border",C2:"bg-muted text-muted-foreground border-border",C1:"bg-muted text-muted-foreground border-border"}[e]||"bg-muted text-muted-foreground"}var v=require("react");var x={C1:"Consultant 1",C2:"Consultant 2",C3:"Consultant 3",SC1:"Senior Consultant 1",SC2:"Senior Consultant 2",M:"Manager",SM:"Senior Manager",P:"Partner"};var n=require("react/jsx-runtime"),h=({node:e,onNodeClick:r,expandable:o=!1,isExpanded:i=!0,onToggleExpand:t})=>{let a=e.children.length>0,d=o&&a;return(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsxs)("div",{className:`
2
+ relative bg-card border border-border rounded-lg shadow-sm
3
+ transition-all duration-200 hover:shadow-md hover:border-primary/50
4
+ ${r?"cursor-pointer":""}
5
+ w-64 p-4
6
+ `,onClick:()=>r?.(e),children:[(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("div",{className:"flex-shrink-0",children:e.profilePicture?.url?(0,n.jsx)("img",{src:e.profilePicture.url,alt:e.profilePicture.alt||e.name,className:"w-12 h-12 rounded-full object-cover border-2 border-primary/20"}):(0,n.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary/10 border-2 border-primary/20 flex items-center justify-center",children:(0,n.jsx)("span",{className:"text-sm font-semibold text-primary",children:f(e.name)})})}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("h3",{className:"font-semibold text-card-foreground text-sm truncate",children:e.name}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:e.email}),e.jobRole&&(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)("span",{className:`
7
+ inline-block px-2 py-0.5 rounded text-xs font-medium border
8
+ ${b(e.jobRole)}
9
+ `,children:x[e.jobRole]})})]})]}),e.about&&(0,n.jsx)("div",{className:"mt-3 pt-3 border-t border-border",children:(0,n.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:e.about})}),d&&(0,n.jsx)("button",{onClick:c=>{c.stopPropagation(),t?.()},className:"absolute -bottom-3 left-1/2 -translate-x-1/2 w-6 h-6 rounded-full bg-card border-2 border-border hover:border-primary/50 flex items-center justify-center transition-colors","aria-label":i?"Collapse":"Expand",children:(0,n.jsx)("svg",{className:`w-3 h-3 text-muted-foreground transition-transform ${i?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),a&&i&&(0,n.jsx)("div",{className:"w-0.5 h-8 bg-border"})]})};var N=({nodes:e,onNodeClick:r,expandable:o=!1,initiallyExpanded:i=!0})=>(0,n.jsx)("div",{className:"flex flex-col items-center gap-0",children:e.map((t,a)=>(0,n.jsx)(C,{node:t,onNodeClick:r,expandable:o,initiallyExpanded:i,isLast:a===e.length-1},t.id))}),C=({node:e,onNodeClick:r,expandable:o,initiallyExpanded:i=!0,isLast:t=!1})=>{let[a,d]=(0,v.useState)(i),c=e.children.length>0;return(0,n.jsxs)("div",{className:`flex flex-col items-center ${t?"":"mb-8"}`,children:[(0,n.jsx)(h,{node:e,onNodeClick:r,expandable:o,isExpanded:a,onToggleExpand:()=>d(!a)}),c&&a&&(0,n.jsxs)("div",{className:"flex flex-col items-center mt-0",children:[e.children.length>1&&(0,n.jsx)("div",{className:"relative w-full flex justify-center",children:(0,n.jsxs)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-[800px]",children:[(0,n.jsx)("div",{className:"absolute top-0 left-0 right-0 h-0.5 bg-border"}),(0,n.jsx)("div",{className:"flex justify-around",children:e.children.map((m,p)=>(0,n.jsx)("div",{className:"w-0.5 h-8 bg-border"},p))})]})}),(0,n.jsx)("div",{className:`
10
+ flex gap-8 mt-8
11
+ ${e.children.length===1?"flex-col items-center":"flex-row items-start justify-center flex-wrap"}
12
+ `,children:e.children.map((m,p)=>(0,n.jsx)(C,{node:m,onNodeClick:r,expandable:o,initiallyExpanded:i,isLast:p===e.children.length-1},m.id))})]})]})};var y=({users:e,onNodeClick:r,className:o="",expandable:i=!1,initiallyExpanded:t=!0})=>{let a=u(e);return e.length===0?(0,n.jsx)("div",{className:`flex items-center justify-center p-8 ${o}`,children:(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)("p",{className:"text-muted-foreground",children:"No users to display"})})}):a.length===0?(0,n.jsx)("div",{className:`flex items-center justify-center p-8 ${o}`,children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{className:"text-muted-foreground",children:"Unable to build organization tree"}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Check that manager relationships are properly configured"})]})}):(0,n.jsx)("div",{className:`org-chart w-full overflow-x-auto ${o}`,children:(0,n.jsx)("div",{className:"inline-block min-w-full p-8",children:(0,n.jsx)(N,{nodes:a,onNodeClick:r,expandable:i,initiallyExpanded:t})})})},U=y;0&&(module.exports={OrgChart});
@@ -0,0 +1 @@
1
+ import{a,b}from"../../../chunk-B7RZ4K6Y.mjs";import"../../../chunk-G6OGEIN4.mjs";import"../../../chunk-KQRQXBJ3.mjs";import"../../../chunk-SOTCQX2G.mjs";import"../../../chunk-32G45Z2G.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as OrgChart,b as default};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { OrgNodeProps } from './types';
3
+ export declare const OrgNode: React.FC<OrgNodeProps>;