cortex-react-components 2.26.4 → 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 (228) hide show
  1. package/dist/{chunk-SME3D72Q.mjs → chunk-2BRDNDUB.mjs} +1 -1
  2. package/dist/{chunk-HTS3KCJL.mjs → chunk-2O54GV6Q.mjs} +1 -1
  3. package/dist/chunk-32G45Z2G.mjs +1 -0
  4. package/dist/{chunk-QDP657UR.mjs → chunk-3HNU2NYP.mjs} +1 -1
  5. package/dist/{chunk-HB57GPGK.mjs → chunk-3M5KHST3.mjs} +1 -1
  6. package/dist/{chunk-TIIYFAV6.mjs → chunk-3NRXQBBS.mjs} +1 -1
  7. package/dist/{chunk-IISYRLNU.mjs → chunk-3Y7QG6VP.mjs} +1 -1
  8. package/dist/{chunk-GULRIPMU.mjs → chunk-4FEVXBNU.mjs} +1 -1
  9. package/dist/{chunk-YH72WKGC.mjs → chunk-5MWZTJYP.mjs} +1 -1
  10. package/dist/chunk-6YHCNPFB.mjs +4 -0
  11. package/dist/{chunk-AABB4TFO.mjs → chunk-75F3LJMX.mjs} +1 -1
  12. package/dist/{chunk-NZJ7VVG6.mjs → chunk-7NWIK57W.mjs} +1 -1
  13. package/dist/{chunk-TQKXHMD7.mjs → chunk-7R47MHQE.mjs} +1 -1
  14. package/dist/{chunk-FB5PBKLV.mjs → chunk-AJQHGVZ5.mjs} +1 -1
  15. package/dist/chunk-B7RZ4K6Y.mjs +1 -0
  16. package/dist/{chunk-7MPZOMXK.mjs → chunk-C4RWEPVF.mjs} +1 -1
  17. package/dist/{chunk-VNKGAW4K.mjs → chunk-CXOVEABI.mjs} +1 -1
  18. package/dist/{chunk-J3VJUPR7.mjs → chunk-EM3T2XYC.mjs} +1 -1
  19. package/dist/{chunk-UTJZH3X5.mjs → chunk-EPJJKGCG.mjs} +1 -1
  20. package/dist/{chunk-VDN4LQSS.mjs → chunk-F6DMXMR4.mjs} +1 -1
  21. package/dist/{chunk-JU4TJYSZ.mjs → chunk-FE7ZGUPU.mjs} +1 -1
  22. package/dist/{chunk-HLRMUJPL.mjs → chunk-FZX3ZPEU.mjs} +1 -1
  23. package/dist/chunk-G6OGEIN4.mjs +4 -0
  24. package/dist/{chunk-7BYNW77I.mjs → chunk-GHOL5L32.mjs} +1 -1
  25. package/dist/chunk-GLZEHRPY.mjs +4 -0
  26. package/dist/{chunk-5MMNC65L.mjs → chunk-GTZJWMZR.mjs} +1 -1
  27. package/dist/chunk-HD6E7KI2.mjs +4 -0
  28. package/dist/{chunk-OP6ZWZIM.mjs → chunk-I75OOO4H.mjs} +1 -1
  29. package/dist/{chunk-NXAQ6ESJ.mjs → chunk-JDIPWJBD.mjs} +1 -1
  30. package/dist/{chunk-BGQC6IQK.mjs → chunk-KEK763EH.mjs} +1 -1
  31. package/dist/chunk-KQRQXBJ3.mjs +9 -0
  32. package/dist/{chunk-RWHPQAWZ.mjs → chunk-LAP57E2L.mjs} +1 -1
  33. package/dist/chunk-LCEEFZH7.mjs +4 -0
  34. package/dist/chunk-LEF6M5ZD.mjs +4 -0
  35. package/dist/{chunk-EM4CGGGV.mjs → chunk-LJXTXROJ.mjs} +1 -1
  36. package/dist/{chunk-DKRRVTCV.mjs → chunk-MS7YIAWP.mjs} +1 -1
  37. package/dist/chunk-MXMW65GM.mjs +4 -0
  38. package/dist/{chunk-YJ7XPZWV.mjs → chunk-NBJLXJQ3.mjs} +1 -1
  39. package/dist/{chunk-ITNR7N47.mjs → chunk-NINFDOV5.mjs} +1 -1
  40. package/dist/{chunk-5EM6P7SU.mjs → chunk-OQBCIB4L.mjs} +1 -1
  41. package/dist/{chunk-AN744MXS.mjs → chunk-OWL3KUE3.mjs} +1 -1
  42. package/dist/chunk-P2B3OITE.mjs +4 -0
  43. package/dist/{chunk-CC57QZMB.mjs → chunk-RGOKBIQ5.mjs} +1 -1
  44. package/dist/{chunk-MU47F4UR.mjs → chunk-RJGYVDOU.mjs} +1 -1
  45. package/dist/{chunk-CTTBF7F4.mjs → chunk-RS4WAAGI.mjs} +1 -1
  46. package/dist/chunk-SOTCQX2G.mjs +1 -0
  47. package/dist/{chunk-CMU5JFUC.mjs → chunk-SWE754OC.mjs} +1 -1
  48. package/dist/{chunk-ZA423OPA.mjs → chunk-TJZVV3XH.mjs} +1 -1
  49. package/dist/{chunk-WRCRZUGO.mjs → chunk-TTWEHUP5.mjs} +1 -1
  50. package/dist/{chunk-FBEHQRZ4.mjs → chunk-TVTTUSWM.mjs} +1 -1
  51. package/dist/{chunk-FR4X2HHQ.mjs → chunk-TYARLEAC.mjs} +1 -1
  52. package/dist/chunk-U3PUWUVM.mjs +4 -0
  53. package/dist/{chunk-VATGKKXW.mjs → chunk-UJITFLIZ.mjs} +1 -1
  54. package/dist/{chunk-IO5ZSALG.mjs → chunk-VKCDLKYH.mjs} +1 -1
  55. package/dist/{chunk-NDBSSX6Q.mjs → chunk-WIRQ5IRT.mjs} +1 -1
  56. package/dist/{chunk-VTFO5GXK.mjs → chunk-XMYXQR5W.mjs} +1 -1
  57. package/dist/{chunk-OVZKO3Z5.mjs → chunk-ZEALRBXW.mjs} +1 -1
  58. package/dist/components/AdvancedComponents/AppSidebar.d.ts +3 -2
  59. package/dist/components/AdvancedComponents/AppSidebar.js +1 -2
  60. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  61. package/dist/components/AdvancedComponents/app-header.js +1 -1
  62. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  63. package/dist/components/AdvancedComponents/index.d.ts +1 -0
  64. package/dist/components/AdvancedComponents/index.js +12 -1
  65. package/dist/components/AdvancedComponents/index.mjs +1 -1
  66. package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
  67. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  68. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.d.ts +15 -0
  69. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.js +12 -0
  70. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +1 -0
  71. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.d.ts +3 -0
  72. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.js +9 -0
  73. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.mjs +1 -0
  74. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.d.ts +10 -0
  75. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.js +12 -0
  76. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +1 -0
  77. package/dist/components/AdvancedComponents/org-chart-component/examples/PayloadIntegration.js +233 -0
  78. package/dist/components/AdvancedComponents/org-chart-component/examples/PayloadIntegration.mjs +233 -0
  79. package/dist/components/AdvancedComponents/org-chart-component/index.d.ts +4 -0
  80. package/dist/components/AdvancedComponents/org-chart-component/index.js +12 -0
  81. package/dist/components/AdvancedComponents/org-chart-component/index.mjs +1 -0
  82. package/dist/components/AdvancedComponents/org-chart-component/mockData.d.ts +7 -0
  83. package/dist/components/AdvancedComponents/org-chart-component/mockData.js +1 -0
  84. package/dist/components/AdvancedComponents/org-chart-component/mockData.mjs +1 -0
  85. package/dist/components/AdvancedComponents/org-chart-component/types/index.d.ts +33 -0
  86. package/dist/components/AdvancedComponents/org-chart-component/types/index.js +1 -0
  87. package/dist/components/AdvancedComponents/org-chart-component/types/index.mjs +1 -0
  88. package/dist/components/AdvancedComponents/org-chart-component/utils.d.ts +13 -0
  89. package/dist/components/AdvancedComponents/org-chart-component/utils.js +1 -0
  90. package/dist/components/AdvancedComponents/org-chart-component/utils.mjs +1 -0
  91. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  92. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  93. package/dist/components/Blocks/Banner.mjs +1 -1
  94. package/dist/components/Blocks/CallToAction.mjs +1 -1
  95. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  96. package/dist/components/Blocks/Content.mjs +1 -1
  97. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  98. package/dist/components/Blocks/OrgChart.mjs +3 -1
  99. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  100. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  101. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  102. package/dist/components/Blocks/index.d.ts +0 -1
  103. package/dist/components/Blocks/index.js +1 -1
  104. package/dist/components/Blocks/index.mjs +1 -1
  105. package/dist/components/Cards/ContentCard.mjs +1 -1
  106. package/dist/components/Cards/FeatureCard.mjs +1 -1
  107. package/dist/components/Cards/index.mjs +1 -1
  108. package/dist/components/Chat/ChatInterface.mjs +1 -1
  109. package/dist/components/Chat/CopilotInterface.js +3 -3
  110. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  111. package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
  112. package/dist/components/Chat/PartTypes/index.mjs +1 -1
  113. package/dist/components/Chat/demo-long-messages.js +5 -5
  114. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  115. package/dist/components/Chat/demo-tests.js +5 -5
  116. package/dist/components/Chat/demo-tests.mjs +1 -1
  117. package/dist/components/Chat/demo.js +3 -3
  118. package/dist/components/Chat/demo.mjs +1 -1
  119. package/dist/components/Chat/example-usage.js +3 -3
  120. package/dist/components/Chat/example-usage.mjs +1 -1
  121. package/dist/components/Chat/example-with-vercel-ai.js +3 -3
  122. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  123. package/dist/components/Chat/index.js +3 -3
  124. package/dist/components/Chat/index.mjs +1 -1
  125. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  126. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  127. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  128. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +5 -5
  129. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  130. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  131. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  132. package/dist/components/DigitalColleagues/Views/index.js +5 -5
  133. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  134. package/dist/components/DigitalColleagues/index.js +5 -5
  135. package/dist/components/DigitalColleagues/index.mjs +1 -1
  136. package/dist/components/Foundary/MainPage.mjs +1 -1
  137. package/dist/components/Foundary/Pages/dashboardpage.js +6 -6
  138. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  139. package/dist/components/Foundary/RichText/index.mjs +1 -1
  140. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  141. package/dist/components/Foundary/Views/ColleaguesView.d.ts +12 -1
  142. package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
  143. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  144. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  145. package/dist/components/Foundary/Views/index.js +5 -5
  146. package/dist/components/Foundary/Views/index.mjs +1 -1
  147. package/dist/components/Foundary/colleague-card.js +1 -1
  148. package/dist/components/Foundary/colleague-card.mjs +1 -1
  149. package/dist/components/Foundary/colleague-form.d.ts +12 -1
  150. package/dist/components/Foundary/colleague-form.js +1 -1
  151. package/dist/components/Foundary/colleague-form.mjs +1 -1
  152. package/dist/components/Foundary/document-edit.mjs +1 -1
  153. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  154. package/dist/components/Foundary/document-preview.mjs +1 -1
  155. package/dist/components/Foundary/file-edit.mjs +1 -1
  156. package/dist/components/Foundary/foundary-clone.js +1 -1
  157. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  158. package/dist/components/Foundary/foundary-layout.d.ts +2 -1
  159. package/dist/components/Foundary/foundary-layout.js +1 -1
  160. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  161. package/dist/components/Foundary/index.js +5 -5
  162. package/dist/components/Foundary/index.mjs +1 -1
  163. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  164. package/dist/components/Foundary/knowledge-search.js +1 -1
  165. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  166. package/dist/components/Foundary/types.d.ts +14 -2
  167. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  168. package/dist/components/HeaderFooter/index.mjs +1 -1
  169. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  170. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  171. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  172. package/dist/components/Heros/RenderHero.mjs +1 -1
  173. package/dist/components/Heros/index.mjs +1 -1
  174. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  175. package/dist/components/Layouts/Print.mjs +1 -1
  176. package/dist/components/Layouts/SlideShow.mjs +1 -1
  177. package/dist/components/Layouts/index.mjs +1 -1
  178. package/dist/components/Payload/RichText/index.mjs +1 -1
  179. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  180. package/dist/components/Payload/index.mjs +1 -1
  181. package/dist/components/Projects/FileView.js +1 -1
  182. package/dist/components/Projects/FileView.mjs +1 -1
  183. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  184. package/dist/components/Projects/ProjectPage.js +5 -5
  185. package/dist/components/Projects/ProjectPage.mjs +1 -1
  186. package/dist/components/Projects/ProjectView.js +1 -1
  187. package/dist/components/Projects/ProjectView.mjs +1 -1
  188. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  189. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  190. package/dist/components/Projects/file-list.mjs +1 -1
  191. package/dist/components/Projects/index.mjs +1 -1
  192. package/dist/components/dc-temp/index.js +1 -1
  193. package/dist/components/dc-temp/index.mjs +1 -1
  194. package/dist/components/index.js +33 -22
  195. package/dist/components/index.mjs +1 -1
  196. package/dist/globals.css +1 -1
  197. package/dist/index.js +38 -27
  198. package/dist/index.mjs +1 -1
  199. package/dist/metafile-cjs.json +1 -1
  200. package/dist/metafile-esm.json +1 -1
  201. package/dist/pages/Blog.mjs +1 -1
  202. package/dist/pages/Documentation.mjs +1 -1
  203. package/dist/pages/IndexPage.mjs +1 -1
  204. package/dist/pages/Intranet.mjs +1 -1
  205. package/dist/pages/LandingPage.mjs +1 -1
  206. package/dist/pages/Page.mjs +1 -1
  207. package/dist/pages/Publish.mjs +1 -1
  208. package/dist/pages/Website.mjs +1 -1
  209. package/dist/sections/AboutSection.mjs +1 -1
  210. package/dist/sections/BlogDetail.mjs +1 -1
  211. package/dist/sections/BlogList.mjs +1 -1
  212. package/dist/sections/ContactSection.mjs +1 -1
  213. package/dist/sections/PageSections.mjs +1 -1
  214. package/dist/sections/PricingSection.mjs +1 -1
  215. package/dist/sections/ServiceDetail.mjs +1 -1
  216. package/dist/sections/ServiceDetailSection.mjs +1 -1
  217. package/dist/sections/ServiceSection.mjs +1 -1
  218. package/dist/sections/index.mjs +1 -1
  219. package/package.json +1 -1
  220. package/dist/chunk-4WA47ZQA.mjs +0 -4
  221. package/dist/chunk-53QLSQCO.mjs +0 -4
  222. package/dist/chunk-5HT2KC5I.mjs +0 -4
  223. package/dist/chunk-CRAFZGCI.mjs +0 -4
  224. package/dist/chunk-FGEFYI5E.mjs +0 -4
  225. package/dist/chunk-GPFPTU7U.mjs +0 -4
  226. package/dist/chunk-KKW3FINI.mjs +0 -4
  227. package/dist/chunk-NDZ26EG6.mjs +0 -4
  228. package/dist/chunk-Y7H3EUBR.mjs +0 -4
@@ -1,5 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
- 'use client'
4
3
 
5
- "use strict";"use client";var ot=Object.create;var ae=Object.defineProperty;var rt=Object.getOwnPropertyDescriptor;var it=Object.getOwnPropertyNames;var at=Object.getPrototypeOf,nt=Object.prototype.hasOwnProperty;var st=(e,t)=>{for(var o in t)ae(e,o,{get:t[o],enumerable:!0})},Ne=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of it(t))!nt.call(e,s)&&s!==o&&ae(e,s,{get:()=>t[s],enumerable:!(r=rt(t,s))||r.enumerable});return e};var z=(e,t,o)=>(o=e!=null?ot(at(e)):{},Ne(t||!e||!e.__esModule?ae(o,"default",{value:e,enumerable:!0}):o,e)),lt=e=>Ne(ae({},"__esModule",{value:!0}),e);var Jt={};st(Jt,{AppSidebar:()=>Kt});module.exports=lt(Jt);var fe=z(require("react")),Pe=z(require("next/link")),W=require("lucide-react");var Ge=require("class-variance-authority");var Ue=require("clsx");var ye="-",ct=e=>{let t=pt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let l=c.split(ye);return l[0]===""&&l.length!==1&&l.shift(),Me(l,t)||dt(c)},getConflictingClassGroupIds:(c,l)=>{let y=o[c]||[];return l&&r[c]?[...y,...r[c]]:y}}},Me=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?Me(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(ye);return t.validators.find(({validator:c})=>c(a))?.classGroupId},Ie=/^\[(.+)\]$/,dt=e=>{if(Ie.test(e)){let t=Ie.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},pt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return ut(Object.entries(e.classGroups),o).forEach(([a,c])=>{he(c,r,a,t)}),r},he=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:Te(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(mt(s)){he(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,c])=>{he(c,Te(t,a),o,r)})})},Te=(e,t)=>{let o=e;return t.split(ye).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},mt=e=>e.isThemeGetter,ut=(e,t)=>t?e.map(([o,r])=>{let s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,l])=>[t+c,l])):a);return[o,s]}):e,gt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(a,c)=>{o.set(a,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let c=o.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return s(a,c),c},set(a,c){o.has(a)?o.set(a,c):s(a,c)}}},ze="!",ft=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],a=t.length,c=l=>{let y=[],k=0,S=0,D;for(let b=0;b<l.length;b++){let w=l[b];if(k===0){if(w===s&&(r||l.slice(b,b+a)===t)){y.push(l.slice(S,b)),S=b+a;continue}if(w==="/"){D=b;continue}}w==="["?k++:w==="]"&&k--}let P=y.length===0?l:l.substring(S),C=P.startsWith(ze),N=C?P.substring(1):P,v=D&&D>S?D-S:void 0;return{modifiers:y,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:v}};return o?l=>o({className:l,parseClassName:c}):c},bt=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},ht=e=>({cache:gt(e.cacheSize),parseClassName:ft(e),...ct(e)}),yt=/\s+/,vt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],c=e.trim().split(yt),l="";for(let y=c.length-1;y>=0;y-=1){let k=c[y],{modifiers:S,hasImportantModifier:D,baseClassName:P,maybePostfixModifierPosition:C}=o(k),N=!!C,v=r(N?P.substring(0,C):P);if(!v){if(!N){l=k+(l.length>0?" "+l:l);continue}if(v=r(P),!v){l=k+(l.length>0?" "+l:l);continue}N=!1}let b=bt(S).join(":"),w=D?b+ze:b,A=w+v;if(a.includes(A))continue;a.push(A);let O=s(v,N);for(let U=0;U<O.length;++U){let _=O[U];a.push(w+_)}l=k+(l.length>0?" "+l:l)}return l};function wt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=je(t))&&(r&&(r+=" "),r+=o);return r}var je=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=je(e[r]))&&(o&&(o+=" "),o+=t);return o};function xt(e,...t){let o,r,s,a=c;function c(y){let k=t.reduce((S,D)=>D(S),e());return o=ht(k),r=o.cache.get,s=o.cache.set,a=l,l(y)}function l(y){let k=r(y);if(k)return k;let S=vt(y,o);return s(y,S),S}return function(){return a(wt.apply(null,arguments))}}var g=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ee=/^\[(?:([a-z-]+):)?(.+)\]$/i,kt=/^\d+\/\d+$/,St=new Set(["px","full","screen"]),Dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ct=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,At=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>K(e)||St.has(e)||kt.test(e),G=e=>J(e,"length",Bt),K=e=>!!e&&!Number.isNaN(Number(e)),be=e=>J(e,"number",K),Z=e=>!!e&&Number.isInteger(Number(e)),Nt=e=>e.endsWith("%")&&K(e.slice(0,-1)),d=e=>Ee.test(e),F=e=>Dt.test(e),It=new Set(["length","size","percentage"]),Tt=e=>J(e,It,Be),Mt=e=>J(e,"position",Be),zt=new Set(["image","url"]),jt=e=>J(e,zt,Ut),Et=e=>J(e,"",Lt),ee=()=>!0,J=(e,t,o)=>{let r=Ee.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Bt=e=>Ct.test(e)&&!At.test(e),Be=()=>!1,Lt=e=>Pt.test(e),Ut=e=>Rt.test(e);var Gt=()=>{let e=g("colors"),t=g("spacing"),o=g("blur"),r=g("brightness"),s=g("borderColor"),a=g("borderRadius"),c=g("borderSpacing"),l=g("borderWidth"),y=g("contrast"),k=g("grayscale"),S=g("hueRotate"),D=g("invert"),P=g("gap"),C=g("gradientColorStops"),N=g("gradientColorStopPositions"),v=g("inset"),b=g("margin"),w=g("opacity"),A=g("padding"),O=g("saturate"),U=g("scale"),_=g("sepia"),re=g("skew"),ie=g("space"),H=g("translate"),q=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",d,t],m=()=>[d,t],Q=()=>["",L,G],i=()=>["auto",K,d],h=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],u=()=>["solid","dashed","dotted","double","none"],E=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",d],Re=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[K,d];return{cacheSize:500,separator:":",theme:{colors:[ee],spacing:[L,G],blur:["none","",F,d],brightness:B(),borderColor:[e],borderRadius:["none","","full",F,d],borderSpacing:m(),borderWidth:Q(),contrast:B(),grayscale:Y(),hueRotate:B(),invert:Y(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[Nt,G],inset:$(),margin:$(),opacity:B(),padding:m(),saturate:B(),scale:B(),sepia:Y(),skew:B(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Re()}],"break-before":[{"break-before":Re()}],"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:[...h(),d]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Z,d]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",Z,d]}],"grid-cols":[{"grid-cols":[ee]}],"col-start-end":[{col:["auto",{span:["full",Z,d]},d]}],"col-start":[{"col-start":i()}],"col-end":[{"col-end":i()}],"grid-rows":[{"grid-rows":[ee]}],"row-start-end":[{row:["auto",{span:[Z,d]},d]}],"row-start":[{"row-start":i()}],"row-end":[{"row-end":i()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],W:[{W:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",be]}],"font-family":[{font:[ee]}],"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",d]}],"line-clamp":[{"line-clamp":["none",K,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...u(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,G]}],"underline-offset":[{"underline-offset":["auto",L,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...h(),Mt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...u(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:u()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...u()]}],"outline-offset":[{"outline-offset":[L,d]}],"outline-w":[{outline:[L,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[L,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Et]}],"shadow-color":[{shadow:[ee]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...E(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":E()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",F,d]}],grayscale:[{grayscale:[k]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[D]}],saturate:[{saturate:[O]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[D]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[U]}],"scale-x":[{"scale-x":[U]}],"scale-y":[{"scale-y":[U]}],rotate:[{rotate:[Z,d]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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","Fe-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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-W":[{"scroll-W":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[L,G,be]}],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"],W:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-W":["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 Le=xt(Gt);function f(...e){return Le((0,Ue.clsx)(e))}var Fe=require("react/jsx-runtime"),Ft=(0,Ge.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,Fe.jsx)("div",{className:f(Ft({variant:t}),e),...o})}var Ve=require("@radix-ui/react-slot"),Oe=z(require("react")),Vt=(0,Ge.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"}}}),ve=Oe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},a)=>(0,Fe.jsx)(e?Ve.Slot:"button",{className:f(Vt({className:t,size:o,variant:r})),ref:a,...s}));ve.displayName="Button";var _e=z(require("react"));var we=_e.forwardRef(({className:e,type:t,...o},r)=>(0,Fe.jsx)("input",{type:t,className:f("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}));we.displayName="Input";var xe=z(require("react")),T=z(require("@radix-ui/react-scroll-area"));var se=xe.forwardRef(({className:e,children:t,...o},r)=>(0,Fe.jsxs)(T.Root,{ref:r,className:f("relative overflow-hidden",e),...o,children:[(0,Fe.jsx)(T.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Fe.jsx)(Ke,{}),(0,Fe.jsx)(T.Corner,{})]}));se.displayName=T.Root.displayName;var Ke=xe.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Fe.jsx)(T.ScrollAreaScrollbar,{ref:r,orientation:t,className:f("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent W-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent W-[1px]",e),...o,children:(0,Fe.jsx)(T.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Ke.displayName=T.ScrollAreaScrollbar.displayName;var te=z(require("react")),x=z(require("@radix-ui/react-dialog"));var Xe=x.Root;var Wt=x.Portal;var $e=te.forwardRef(({className:e,...t},o)=>(0,Fe.jsx)(x.Overlay,{ref:o,className:f("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}));$e.displayName=x.Overlay.displayName;var ke=te.forwardRef(({className:e,children:t,...o},r)=>(0,Fe.jsxs)(Wt,{children:[(0,Fe.jsx)($e,{}),(0,Fe.jsxs)(x.Content,{ref:r,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background W-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,Fe.jsxs)(x.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,Fe.jsx)(W.X,{className:"h-4 w-4"}),(0,Fe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ke.displayName=x.Content.displayName;var Se=({className:e,...t})=>(0,Fe.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Se.displayName="DialogHeader";var Ot=({className:e,...t})=>(0,Fe.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ot.displayName="DialogFooter";var De=te.forwardRef(({className:e,...t},o)=>(0,Fe.jsx)(x.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));De.displayName=x.Title.displayName;var Ht=te.forwardRef(({className:e,...t},o)=>(0,Fe.jsx)(x.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...t}));Ht.displayName=x.Description.displayName;var oe=z(require("@radix-ui/react-checkbox")),Ye=z(require("react")),Ce=Ye.forwardRef(({className:e,...t},o)=>(0,Fe.jsx)(oe.Root,{className:f("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,Fe.jsx)(oe.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,Fe.jsx)(W.Check,{className:"h-4 w-4"})})}));Ce.displayName=oe.Root.displayName;var j=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var et=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Fe.jsx)(W.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,Fe.jsx)(W.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,Fe.jsx)(W.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,Fe.jsx)(W.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,Fe.jsx)(W.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,Fe.jsx)(W.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,Fe.jsx)(W.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,Fe.jsx)(W.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,Fe.jsx)(W.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,Fe.jsx)(W.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],pe=[{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 Ae=[{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}],ce=[{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}],ue=[{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")}],_t=[...ue,{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")}],qt=[...pe,{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}],de={projects:[{id:"1",name:"Empty Project",description:"A 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:[]},Ze={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:ue.filter(e=>e.epicId==="1")};var ho={empty:{initialProjects:de.projects,initialEpics:de.epics,initialSprints:de.sprints,initialTasks:de.tasks},default:{initialProjects:pe,initialEpics:Ae,initialSprints:ce,initialTasks:ue},highDensity:{initialProjects:pe,initialEpics:Ae,initialSprints:ce,initialTasks:_t},singleEpic:{initialProjects:pe,initialEpics:Ze.epics,initialSprints:ce,initialTasks:Ze.tasks},multipleProjects:{initialProjects:qt,initialEpics:Ae,initialSprints:ce,initialTasks:ue}},me=[{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","Fe","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}],yo=[{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:me.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:me.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:me.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 vo=me.filter(e=>e.type==="digital");var ge=require("react");function tt(e,t){let[o,r]=(0,ge.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),s=a=>{try{r(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,ge.useEffect)(()=>{s(o)},[]),[o,s]}function Kt({items:e,isOpen:t,isMobile:o=!1,onClose:r,currentBusinessUnit:s=et[0],onBusinessUnitChange:a,onSearch:c,className:l,logo:y="/headerlogo.png",appName:k="Nuvia",tagline:S="Collaboration Platform"}){let[D,P]=fe.useState({}),[C,N]=tt("sidebar-favorites",{}),[v,b]=fe.useState(null),[w,A]=fe.useState(""),O=i=>{P(h=>({...h,[i]:!h[i]}))},U=i=>{a?.(i)},_=()=>{w.trim()&&c?.(w.trim())},re=i=>{i.key==="Enter"&&(i.preventDefault(),_())},ie=(i,h)=>{let u=C[i]||[],E=u.includes(h)?u.filter(I=>I!==h):u.concat(h);N({...C,[i]:E})},H=i=>{if(!i.items||!i.maxItems||i.items.length<=i.maxItems)return i.items||[];let h=C[i.id]||[],u=i.items.filter(I=>h.includes(I.id)),E=i.items.filter(I=>!h.includes(I.id));return[...u,...E].slice(0,i.maxItems)},q=i=>i.maxItems&&i.items&&i.items.length>i.maxItems,X=e,$=i=>{let h=q(i),u=H(i),E=(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsxs)("div",{className:"flex items-center gap-3",children:[i.icon,(0,Fe.jsx)("span",{children:i.title})]}),i.badge&&(0,Fe.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:i.badge}),i.items&&(0,Fe.jsx)(W.ChevronDown,{className:f("ml-2 h-4 w-4 transition-transform",D[i.title]?"rotate-180":"")})]}),I=f("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",i.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return i.url?(0,Fe.jsx)(Pe.default,{href:i.url,className:I,onClick:o?r:void 0,children:E}):(0,Fe.jsx)("button",{className:I,onClick:()=>i.items&&O(i.title),children:E})},m=()=>{let i=e.find(u=>u.id===v);if(!i||!i.items||!i.maxItems)return null;let h=C[i.id]||[];return(0,Fe.jsx)(Xe,{open:!!v,onOpenChange:u=>!u&&b(null),children:(0,Fe.jsxs)(ke,{className:"sm:max-w-md",children:[(0,Fe.jsxs)(Se,{children:[(0,Fe.jsxs)(De,{children:["Manage ",i.title," Favorites"]}),(0,Fe.jsxs)("W",{className:"text-sm text-muted-foreground",children:["Select up to ",i.maxItems," items to show in ",i.title.toLowerCase(),"."]})]}),(0,Fe.jsx)(se,{className:"max-h-96 pr-4",children:(0,Fe.jsx)("div",{className:"space-y-4",children:i.items.map(u=>(0,Fe.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Fe.jsx)(Ce,{id:u.id,checked:h.includes(u.id),onCheckedChange:()=>ie(i.id,u.id),disabled:!h.includes(u.id)&&h.length>=(i.maxItems||0)}),(0,Fe.jsxs)("label",{htmlFor:u.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:[u.title,u.badge&&(0,Fe.jsx)(ne,{variant:"outline",className:"text-xs",children:u.badge})]})]},u.id))})})]})})},Q=(0,Fe.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Fe.jsxs)("div",{className:"flex items-center justify-between W-4",children:[(0,Fe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Fe.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Fe.jsx)("img",{src:y,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Fe.jsxs)("div",{children:[(0,Fe.jsx)("h2",{className:"font-semibold",children:k}),(0,Fe.jsx)("W",{className:"text-xs text-muted-foreground",children:S})]})]}),o&&(0,Fe.jsx)(ve,{variant:"ghost",size:"icon",onClick:r,children:(0,Fe.jsx)(W.X,{className:"h-5 w-5"})})]}),(0,Fe.jsx)("div",{className:"px-3 py-2",children:(0,Fe.jsxs)("div",{className:"relative",children:[(0,Fe.jsx)(W.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Fe.jsx)(we,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:w,onChange:i=>A(i.target.value),onKeyPress:re})]})}),(0,Fe.jsx)(se,{className:"flex-1 px-3 py-2",children:(0,Fe.jsx)("div",{className:"space-y-1",children:X.map(i=>(0,Fe.jsxs)("div",{className:"mb-1",children:[$(i),i.items&&D[i.title]&&(0,Fe.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[H(i).map(h=>(0,Fe.jsxs)(Pe.default,{href:h.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?r:void 0,children:[h.title,h.badge&&(0,Fe.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:h.badge})]},h.id)),q(i)&&i.items&&i.items.length>H(i).length&&(0,Fe.jsxs)("button",{onClick:()=>b(i.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:["...",i.items.length-H(i).length," more available"]})]})]},i.id))})}),(0,Fe.jsx)("div",{className:"W-3",children:(0,Fe.jsx)("div",{className:"space-y-1",children:(0,Fe.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,Fe.jsx)(W.Settings,{className:"h-5 w-5"}),(0,Fe.jsx)("span",{children:"Settings"})]})})}),(0,Fe.jsx)(m,{})]});return o?(0,Fe.jsx)("div",{className:f("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",l),children:Q}):(0,Fe.jsx)("div",{className:f("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",l),children:Q})}0&&(module.exports={AppSidebar});
4
+ "use strict";"use client";var ot=Object.create;var ae=Object.defineProperty;var rt=Object.getOwnPropertyDescriptor;var it=Object.getOwnPropertyNames;var at=Object.getPrototypeOf,nt=Object.prototype.hasOwnProperty;var st=(e,t)=>{for(var o in t)ae(e,o,{get:t[o],enumerable:!0})},Ne=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of it(t))!nt.call(e,s)&&s!==o&&ae(e,s,{get:()=>t[s],enumerable:!(r=rt(t,s))||r.enumerable});return e};var j=(e,t,o)=>(o=e!=null?ot(at(e)):{},Ne(t||!e||!e.__esModule?ae(o,"default",{value:e,enumerable:!0}):o,e)),lt=e=>Ne(ae({},"__esModule",{value:!0}),e);var Jt={};st(Jt,{AppSidebar:()=>Kt});module.exports=lt(Jt);var fe=j(require("react")),be=j(require("next/link")),O=require("lucide-react");var Ge=require("class-variance-authority");var Ue=require("clsx");var ve="-",ct=e=>{let t=pt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let l=c.split(ve);return l[0]===""&&l.length!==1&&l.shift(),Me(l,t)||dt(c)},getConflictingClassGroupIds:(c,l)=>{let y=o[c]||[];return l&&r[c]?[...y,...r[c]]:y}}},Me=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?Me(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(ve);return t.validators.find(({validator:c})=>c(a))?.classGroupId},Ie=/^\[(.+)\]$/,dt=e=>{if(Ie.test(e)){let t=Ie.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},pt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return ut(Object.entries(e.classGroups),o).forEach(([a,c])=>{ye(c,r,a,t)}),r},ye=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:Te(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(mt(s)){ye(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,c])=>{ye(c,Te(t,a),o,r)})})},Te=(e,t)=>{let o=e;return t.split(ve).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},mt=e=>e.isThemeGetter,ut=(e,t)=>t?e.map(([o,r])=>{let s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,l])=>[t+c,l])):a);return[o,s]}):e,gt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(a,c)=>{o.set(a,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let c=o.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return s(a,c),c},set(a,c){o.has(a)?o.set(a,c):s(a,c)}}},ze="!",ft=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],a=t.length,c=l=>{let y=[],k=0,S=0,R;for(let b=0;b<l.length;b++){let w=l[b];if(k===0){if(w===s&&(r||l.slice(b,b+a)===t)){y.push(l.slice(S,b)),S=b+a;continue}if(w==="/"){R=b;continue}}w==="["?k++:w==="]"&&k--}let A=y.length===0?l:l.substring(S),T=A.startsWith(ze),C=T?A.substring(1):A,v=R&&R>S?R-S:void 0;return{modifiers:y,hasImportantModifier:T,baseClassName:C,maybePostfixModifierPosition:v}};return o?l=>o({className:l,parseClassName:c}):c},bt=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},ht=e=>({cache:gt(e.cacheSize),parseClassName:ft(e),...ct(e)}),yt=/\s+/,vt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],c=e.trim().split(yt),l="";for(let y=c.length-1;y>=0;y-=1){let k=c[y],{modifiers:S,hasImportantModifier:R,baseClassName:A,maybePostfixModifierPosition:T}=o(k),C=!!T,v=r(C?A.substring(0,T):A);if(!v){if(!C){l=k+(l.length>0?" "+l:l);continue}if(v=r(A),!v){l=k+(l.length>0?" "+l:l);continue}C=!1}let b=bt(S).join(":"),w=R?b+ze:b,D=w+v;if(a.includes(D))continue;a.push(D);let H=s(v,C);for(let B=0;B<H.length;++B){let X=H[B];a.push(w+X)}l=k+(l.length>0?" "+l:l)}return l};function wt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=je(t))&&(r&&(r+=" "),r+=o);return r}var je=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=je(e[r]))&&(o&&(o+=" "),o+=t);return o};function xt(e,...t){let o,r,s,a=c;function c(y){let k=t.reduce((S,R)=>R(S),e());return o=ht(k),r=o.cache.get,s=o.cache.set,a=l,l(y)}function l(y){let k=r(y);if(k)return k;let S=vt(y,o);return s(y,S),S}return function(){return a(wt.apply(null,arguments))}}var g=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ee=/^\[(?:([a-z-]+):)?(.+)\]$/i,kt=/^\d+\/\d+$/,St=new Set(["px","full","screen"]),Dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ct=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,At=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>K(e)||St.has(e)||kt.test(e),F=e=>J(e,"length",Bt),K=e=>!!e&&!Number.isNaN(Number(e)),he=e=>J(e,"number",K),Q=e=>!!e&&Number.isInteger(Number(e)),Nt=e=>e.endsWith("%")&&K(e.slice(0,-1)),d=e=>Ee.test(e),V=e=>Dt.test(e),It=new Set(["length","size","percentage"]),Tt=e=>J(e,It,Be),Mt=e=>J(e,"position",Be),zt=new Set(["image","url"]),jt=e=>J(e,zt,Ut),Et=e=>J(e,"",Lt),Y=()=>!0,J=(e,t,o)=>{let r=Ee.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Bt=e=>Ct.test(e)&&!At.test(e),Be=()=>!1,Lt=e=>Pt.test(e),Ut=e=>Rt.test(e);var Gt=()=>{let e=g("colors"),t=g("spacing"),o=g("blur"),r=g("brightness"),s=g("borderColor"),a=g("borderRadius"),c=g("borderSpacing"),l=g("borderWidth"),y=g("contrast"),k=g("grayscale"),S=g("hueRotate"),R=g("invert"),A=g("gap"),T=g("gradientColorStops"),C=g("gradientColorStopPositions"),v=g("inset"),b=g("margin"),w=g("opacity"),D=g("padding"),H=g("saturate"),B=g("scale"),X=g("sepia"),te=g("skew"),oe=g("space"),re=g("translate"),G=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",d,t],m=()=>[d,t],ie=()=>["",U,F],_=()=>["auto",K,d],i=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],u=()=>["solid","dashed","dotted","double","none"],h=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",d],Re=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[K,d];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[U,F],blur:["none","",V,d],brightness:L(),borderColor:[e],borderRadius:["none","","full",V,d],borderSpacing:m(),borderWidth:ie(),contrast:L(),grayscale:P(),hueRotate:L(),invert:P(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[Nt,F],inset:$(),margin:$(),opacity:L(),padding:m(),saturate:L(),scale:L(),sepia:P(),skew:L(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[V]}],"break-after":[{"break-after":Re()}],"break-before":[{"break-before":Re()}],"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:[...i(),d]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Q,d]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Q,d]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",Q,d]},d]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[Q,d]},d]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[A]}],"gap-x":[{"gap-x":[A]}],"gap-y":[{"gap-y":[A]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],O:[{O:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[V]},V]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",V,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[Y]}],"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",d]}],"line-clamp":[{"line-clamp":["none",K,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",U,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...u(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",U,F]}],"underline-offset":[{"underline-offset":["auto",U,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...i(),Mt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[T]}],"gradient-via":[{via:[T]}],"gradient-to":[{to:[T]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...u(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:u()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...u()]}],"outline-offset":[{"outline-offset":[U,d]}],"outline-w":[{outline:[U,F]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[U,F]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",V,Et]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...h(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":h()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",V,d]}],grayscale:[{grayscale:[k]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[R]}],saturate:[{saturate:[H]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[R]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[Q,d]}],"translate-x":[{"translate-x":[re]}],"translate-y":[{"translate-y":[re]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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","Fe-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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-O":[{"scroll-O":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,F,he]}],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"],O:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-O":["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 Le=xt(Gt);function f(...e){return Le((0,Ue.clsx)(e))}var Fe=require("react/jsx-runtime"),Ft=(0,Ge.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,Fe.jsx)("div",{className:f(Ft({variant:t}),e),...o})}var Ve=require("@radix-ui/react-slot"),Oe=j(require("react")),Vt=(0,Ge.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"}}}),we=Oe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},a)=>(0,Fe.jsx)(e?Ve.Slot:"button",{className:f(Vt({className:t,size:o,variant:r})),ref:a,...s}));we.displayName="Button";var _e=j(require("react"));var xe=_e.forwardRef(({className:e,type:t,...o},r)=>(0,Fe.jsx)("input",{type:t,className:f("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}));xe.displayName="Input";var ke=j(require("react")),I=j(require("@radix-ui/react-scroll-area"));var se=ke.forwardRef(({className:e,children:t,...o},r)=>(0,Fe.jsxs)(I.Root,{ref:r,className:f("relative overflow-hidden",e),...o,children:[(0,Fe.jsx)(I.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Fe.jsx)(Ke,{}),(0,Fe.jsx)(I.Corner,{})]}));se.displayName=I.Root.displayName;var Ke=ke.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Fe.jsx)(I.ScrollAreaScrollbar,{ref:r,orientation:t,className:f("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent O-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent O-[1px]",e),...o,children:(0,Fe.jsx)(I.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Ke.displayName=I.ScrollAreaScrollbar.displayName;var Z=j(require("react")),x=j(require("@radix-ui/react-dialog"));var Xe=x.Root;var Wt=x.Portal;var $e=Z.forwardRef(({className:e,...t},o)=>(0,Fe.jsx)(x.Overlay,{ref:o,className:f("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}));$e.displayName=x.Overlay.displayName;var Se=Z.forwardRef(({className:e,children:t,...o},r)=>(0,Fe.jsxs)(Wt,{children:[(0,Fe.jsx)($e,{}),(0,Fe.jsxs)(x.Content,{ref:r,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background O-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,Fe.jsxs)(x.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,Fe.jsx)(O.X,{className:"h-4 w-4"}),(0,Fe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Se.displayName=x.Content.displayName;var De=({className:e,...t})=>(0,Fe.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});De.displayName="DialogHeader";var Ot=({className:e,...t})=>(0,Fe.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ot.displayName="DialogFooter";var Ce=Z.forwardRef(({className:e,...t},o)=>(0,Fe.jsx)(x.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));Ce.displayName=x.Title.displayName;var Ht=Z.forwardRef(({className:e,...t},o)=>(0,Fe.jsx)(x.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...t}));Ht.displayName=x.Description.displayName;var ee=j(require("@radix-ui/react-checkbox")),Ye=j(require("react")),Ae=Ye.forwardRef(({className:e,...t},o)=>(0,Fe.jsx)(ee.Root,{className:f("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,Fe.jsx)(ee.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,Fe.jsx)(O.Check,{className:"h-4 w-4"})})}));Ae.displayName=ee.Root.displayName;var E=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var et=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Fe.jsx)(O.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,Fe.jsx)(O.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,Fe.jsx)(O.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,Fe.jsx)(O.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,Fe.jsx)(O.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,Fe.jsx)(O.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,Fe.jsx)(O.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,Fe.jsx)(O.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,Fe.jsx)(O.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,Fe.jsx)(O.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],pe=[{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 Pe=[{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}],ce=[{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}],ue=[{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")}],_t=[...ue,{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")}],qt=[...pe,{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}],de={projects:[{id:"1",name:"Empty Project",description:"A 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:[]},Ze={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:ue.filter(e=>e.epicId==="1")};var ho={empty:{initialProjects:de.projects,initialEpics:de.epics,initialSprints:de.sprints,initialTasks:de.tasks},default:{initialProjects:pe,initialEpics:Pe,initialSprints:ce,initialTasks:ue},highDensity:{initialProjects:pe,initialEpics:Pe,initialSprints:ce,initialTasks:_t},singleEpic:{initialProjects:pe,initialEpics:Ze.epics,initialSprints:ce,initialTasks:Ze.tasks},multipleProjects:{initialProjects:qt,initialEpics:Pe,initialSprints:ce,initialTasks:ue}},me=[{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(E),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(E),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(E),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(E),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(E),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(E),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(E),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(E),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(E),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(E),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],yo=[{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:me.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:me.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:me.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 vo=me.filter(e=>e.type==="digital");var ge=require("react");function tt(e,t){let[o,r]=(0,ge.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),s=a=>{try{r(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,ge.useEffect)(()=>{s(o)},[]),[o,s]}function Kt({items:e,isOpen:t,isMobile:o=!1,onClose:r,currentBusinessUnit:s=et[0],onBusinessUnitChange:a,onSearch:c,className:l,logo:y="/headerlogo.png",logoLink:k="/teams",appName:S="Nuvia",tagline:R="Collaboration Platform"}){let[A,T]=fe.useState({}),[C,v]=tt("sidebar-favorites",{}),[b,w]=fe.useState(null),[D,H]=fe.useState(""),B=i=>{T(u=>({...u,[i]:!u[i]}))},X=i=>{a?.(i)},te=()=>{D.trim()&&c?.(D.trim())},oe=i=>{i.key==="Enter"&&(i.preventDefault(),te())},re=(i,u)=>{let h=C[i]||[],z=h.includes(u)?h.filter(P=>P!==u):h.concat(u);v({...C,[i]:z})},G=i=>{if(!i.items||!i.maxItems||i.items.length<=i.maxItems)return i.items||[];let u=C[i.id]||[],h=i.items.filter(P=>u.includes(P.id)),z=i.items.filter(P=>!u.includes(P.id));return[...h,...z].slice(0,i.maxItems)},q=i=>i.maxItems&&i.items&&i.items.length>i.maxItems,$=e,m=i=>{let u=q(i),h=G(i),z=(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsxs)("div",{className:"flex items-center gap-3",children:[i.icon,(0,Fe.jsx)("span",{children:i.title})]}),i.badge&&(0,Fe.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:i.badge}),i.items&&(0,Fe.jsx)(O.ChevronDown,{className:f("ml-2 h-4 w-4 transition-transform",A[i.title]?"rotate-180":"")})]}),P=f("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",i.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return i.url?(0,Fe.jsx)(be.default,{href:i.url,className:P,onClick:o?r:void 0,children:z}):(0,Fe.jsx)("button",{className:P,onClick:()=>i.items&&B(i.title),children:z})},ie=()=>{let i=e.find(h=>h.id===b);if(!i||!i.items||!i.maxItems)return null;let u=C[i.id]||[];return(0,Fe.jsx)(Xe,{open:!!b,onOpenChange:h=>!h&&w(null),children:(0,Fe.jsxs)(Se,{className:"sm:max-w-md",children:[(0,Fe.jsxs)(De,{children:[(0,Fe.jsxs)(Ce,{children:["Manage ",i.title," Favorites"]}),(0,Fe.jsxs)("O",{className:"text-sm text-muted-foreground",children:["Select up to ",i.maxItems," items to show in ",i.title.toLowerCase(),"."]})]}),(0,Fe.jsx)(se,{className:"max-h-96 pr-4",children:(0,Fe.jsx)("div",{className:"space-y-4",children:i.items.map(h=>(0,Fe.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Fe.jsx)(Ae,{id:h.id,checked:u.includes(h.id),onCheckedChange:()=>re(i.id,h.id),disabled:!u.includes(h.id)&&u.length>=(i.maxItems||0)}),(0,Fe.jsxs)("label",{htmlFor:h.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:[h.title,h.badge&&(0,Fe.jsx)(ne,{variant:"outline",className:"text-xs",children:h.badge})]})]},h.id))})})]})})},_=(0,Fe.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Fe.jsxs)("div",{className:"flex items-center justify-between O-4",children:[(0,Fe.jsxs)(be.default,{href:k,className:"flex items-center gap-3",children:[(0,Fe.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Fe.jsx)("img",{src:y,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Fe.jsxs)("div",{children:[(0,Fe.jsx)("h2",{className:"font-semibold",children:S}),(0,Fe.jsx)("O",{className:"text-xs text-muted-foreground",children:R})]})]}),o&&(0,Fe.jsx)(we,{variant:"ghost",size:"icon",onClick:r,children:(0,Fe.jsx)(O.X,{className:"h-5 w-5"})})]}),(0,Fe.jsx)("div",{className:"px-3 py-2",children:(0,Fe.jsxs)("div",{className:"relative",children:[(0,Fe.jsx)(O.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Fe.jsx)(xe,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:D,onChange:i=>H(i.target.value),onKeyPress:oe})]})}),(0,Fe.jsx)(se,{className:"flex-1 px-3 py-2",children:(0,Fe.jsx)("div",{className:"space-y-1",children:$.map(i=>(0,Fe.jsxs)("div",{className:"mb-1",children:[m(i),i.items&&A[i.title]&&(0,Fe.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[G(i).map(u=>(0,Fe.jsxs)(be.default,{href:u.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?r:void 0,children:[u.title,u.badge&&(0,Fe.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:u.badge})]},u.id)),q(i)&&i.items&&i.items.length>G(i).length&&(0,Fe.jsxs)("button",{onClick:()=>w(i.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:["...",i.items.length-G(i).length," more available"]})]})]},i.id))})}),(0,Fe.jsx)("div",{className:"O-3",children:(0,Fe.jsx)("div",{className:"space-y-1",children:(0,Fe.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,Fe.jsx)(O.Settings,{className:"h-5 w-5"}),(0,Fe.jsx)("span",{children:"Settings"})]})})}),(0,Fe.jsx)(ie,{})]});return o?(0,Fe.jsx)("div",{className:f("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",l),children:_}):(0,Fe.jsx)("div",{className:f("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",l),children:_})}0&&(module.exports={AppSidebar});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.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{a as AppSidebar};
2
+ "use strict";import{a}from"../../chunk-6YHCNPFB.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.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{a as AppSidebar};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use client"
4
4
 
5
- "use strict";"use client";var dt=Object.create;var ce=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var ut=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty;var gt=(e,t)=>{for(var o in t)ce(e,o,{get:t[o],enumerable:!0})},Le=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mt(t))!ft.call(e,a)&&a!==o&&ce(e,a,{get:()=>t[a],enumerable:!(r=pt(t,a))||r.enumerable});return e};var B=(e,t,o)=>(o=e!=null?dt(ut(e)):{},Le(t||!e||!e.__esModule?ce(o,"default",{value:e,enumerable:!0}):o,e)),bt=e=>Le(ce({},"__esModule",{value:!0}),e);var no={};gt(no,{AppHeader:()=>ro});module.exports=bt(no);var Se=require("react"),F=require("motion/react"),$=require("lucide-react");var de=B(require("react")),W=B(require("@radix-ui/react-avatar"));var Fe=require("clsx");var ye="-",vt=e=>{let t=xt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let n=s.split(ye);return n[0]===""&&n.length!==1&&n.shift(),We(n,t)||ht(s)},getConflictingClassGroupIds:(s,n)=>{let g=o[s]||[];return n&&r[s]?[...g,...r[s]]:g}}},We=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?We(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(ye);return t.validators.find(({validator:s})=>s(i))?.classGroupId},Ee=/^\[(.+)\]$/,ht=e=>{if(Ee.test(e)){let t=Ee.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},xt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return wt(Object.entries(e.classGroups),o).forEach(([i,s])=>{xe(s,r,i,t)}),r},xe=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:Ge(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(yt(a)){xe(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,s])=>{xe(s,Ge(t,i),o,r)})})},Ge=(e,t)=>{let o=e;return t.split(ye).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},yt=e=>e.isThemeGetter,wt=(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,Pt=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)}}},Ve="!",Nt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,s=n=>{let g=[],m=0,w=0,T;for(let v=0;v<n.length;v++){let y=n[v];if(m===0){if(y===a&&(r||n.slice(v,v+i)===t)){g.push(n.slice(w,v)),w=v+i;continue}if(y==="/"){T=v;continue}}y==="["?m++:y==="]"&&m--}let M=g.length===0?n:n.substring(w),S=M.startsWith(Ve),k=S?M.substring(1):M,h=T&&T>w?T-w:void 0;return{modifiers:g,hasImportantModifier:S,baseClassName:k,maybePostfixModifierPosition:h}};return o?n=>o({className:n,parseClassName:s}):s},Rt=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},Ct=e=>({cache:Pt(e.cacheSize),parseClassName:Nt(e),...vt(e)}),Tt=/\s+/,Mt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(Tt),n="";for(let g=s.length-1;g>=0;g-=1){let m=s[g],{modifiers:w,hasImportantModifier:T,baseClassName:M,maybePostfixModifierPosition:S}=o(m),k=!!S,h=r(k?M.substring(0,S):M);if(!h){if(!k){n=m+(n.length>0?" "+n:n);continue}if(h=r(M),!h){n=m+(n.length>0?" "+n:n);continue}k=!1}let v=Rt(w).join(":"),y=T?v+Ve:v,C=y+h;if(i.includes(C))continue;i.push(C);let j=a(h,k);for(let D=0;D<j.length;++D){let U=j[D];i.push(y+U)}n=m+(n.length>0?" "+n:n)}return n};function kt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=je(t))&&(r&&(r+=" "),r+=o);return r}var je=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=je(e[r]))&&(o&&(o+=" "),o+=t);return o};function At(e,...t){let o,r,a,i=s;function s(g){let m=t.reduce((w,T)=>T(w),e());return o=Ct(m),r=o.cache.get,a=o.cache.set,i=n,n(g)}function n(g){let m=r(g);if(m)return m;let w=Mt(g,o);return a(g,w),w}return function(){return i(kt.apply(null,arguments))}}var f=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},_e=/^\[(?:([a-z-]+):)?(.+)\]$/i,St=/^\pe+\/\pe+$/,zt=new Set(["px","full","screen"]),Dt=/^(\pe+(\.\pe+)?)?(xs|sm|md|lg|xl)$/,It=/\pe+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lt=/^(inset_)?-?((\pe+)?\.?(\pe+)[a-z]+|0)_-?((\pe+)?\.?(\pe+)[a-z]+|0)/,Et=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>J(e)||zt.has(e)||St.test(e),_=e=>Z(e,"length",Ft),J=e=>!!e&&!Number.isNaN(Number(e)),he=e=>Z(e,"number",J),te=e=>!!e&&Number.isInteger(Number(e)),Gt=e=>e.endsWith("%")&&J(e.slice(0,-1)),c=e=>_e.test(e),H=e=>Dt.test(e),Wt=new Set(["length","size","percentage"]),Vt=e=>Z(e,Wt,He),jt=e=>Z(e,"position",He),_t=new Set(["image","url"]),Ht=e=>Z(e,_t,Ut),Ot=e=>Z(e,"",$t),oe=()=>!0,Z=(e,t,o)=>{let r=_e.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Ft=e=>It.test(e)&&!Bt.test(e),He=()=>!1,$t=e=>Lt.test(e),Ut=e=>Et.test(e);var qt=()=>{let e=f("colors"),t=f("spacing"),o=f("blur"),r=f("brightness"),a=f("borderColor"),i=f("borderRadius"),s=f("borderSpacing"),n=f("borderWidth"),g=f("contrast"),m=f("grayscale"),w=f("hueRotate"),T=f("invert"),M=f("gap"),S=f("gradientColorStops"),k=f("gradientColorStopPositions"),h=f("inset"),v=f("margin"),y=f("opacity"),C=f("padding"),j=f("saturate"),D=f("scale"),U=f("sepia"),q=f("skew"),ie=f("space"),ae=f("translate"),I=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",c,t],b=()=>[c,t],ze=()=>["",G,_],se=()=>["auto",J,c],De=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",c],Be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[J,c];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[G,_],blur:["none","",H,c],brightness:E(),borderColor:[e],borderRadius:["none","","full",H,c],borderSpacing:b(),borderWidth:ze(),contrast:E(),grayscale:ee(),hueRotate:E(),invert:ee(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Gt,_],inset:Y(),margin:Y(),opacity:E(),padding:b(),saturate:E(),scale:E(),sepia:ee(),skew:E(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":Be()}],"break-before":[{"break-before":Be()}],"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:[...De(),c]}],overflow:[{overflow:K()}],"overflow-pe":[{"overflow-pe":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:I()}],"overscroll-pe":[{"overscroll-pe":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-pe":[{"inset-pe":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",te,c]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",te,c]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",te,c]},c]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[te,c]},c]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[M]}],"gap-pe":[{"gap-pe":[M]}],"gap-y":[{"gap-y":[M]}],"justify-content":[{justify:["normal",...ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-pe":[{"space-pe":[ie]}],"space-pe-reverse":["space-pe-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[H]},H]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",H,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",J,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,_]}],"underline-offset":[{"underline-offset":["auto",G,c]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...De(),jt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","pe","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","pe","tl"]},Ht]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],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-pe":[{"rounded-pe":[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-pe":[{"border-pe":[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-pe":[{"border-pe":[n]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...le(),"hidden"]}],"divide-pe":[{"divide-pe":[n]}],"divide-pe-reverse":["divide-pe-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-pe":[{"border-pe":[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-pe":[{"border-pe":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[G,c]}],"outline-w":[{outline:[G,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ze()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[G,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Ot]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ie()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",H,c]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[T]}],saturate:[{saturate:[j]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-pe":[{"border-spacing-pe":[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",c]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-pe":[{"scale-pe":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[te,c]}],"translate-pe":[{"translate-pe":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-pe":[{"skew-pe":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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","F-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","pe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","pe","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-pe":[{"touch-pan":["pe","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",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,_,he]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-pe","overflow-y"],overscroll:["overscroll-pe","overscroll-y"],inset:["inset-pe","inset-y","start","end","top","right","bottom","left"],"inset-pe":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-pe","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-pe","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-pe":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-pe","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-pe"],"border-w-pe":["border-w-r","border-w-pe"],"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-pe"],"border-color-pe":["border-color-r","border-color-pe"],"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-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-pe","touch-y","touch-pz"],"touch-pe":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Oe=At(qt);function u(...e){return Oe((0,Fe.clsx)(e))}var pe=require("react/jsx-runtime"),we=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Root,{ref:o,className:u("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));we.displayName=W.Root.displayName;var Pe=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Image,{ref:o,className:u("aspect-square h-full w-full",e),...t}));Pe.displayName=W.Image.displayName;var Ne=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Fallback,{ref:o,className:u("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ne.displayName=W.Fallback.displayName;var $e=require("@radix-ui/react-slot"),Ue=require("class-variance-authority"),qe=B(require("react")),Kt=(0,Ue.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"}}}),P=qe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,pe.jsx)(e?$e.Slot:"button",{className:u(Kt({className:t,size:o,variant:r})),ref:i,...a}));P.displayName="Button";var Xe=B(require("react")),z=B(require("@radix-ui/react-tooltip"));var me=z.Provider,ue=z.Root,fe=z.Trigger,re=Xe.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,pe.jsx)(z.Portal,{children:(0,pe.jsx)(z.Content,{ref:r,sideOffset:t,className:u("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})}));re.displayName=z.Content.displayName;var Je=require("next-themes");function Ze(){let{setTheme:e,theme:t}=(0,Je.useTheme)();return(0,pe.jsx)(me,{children:(0,pe.jsxs)(ue,{children:[(0,pe.jsx)(fe,{asChild:!0,children:(0,pe.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,pe.jsx)($.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,pe.jsx)($.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,pe.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,pe.jsx)(re,{children:"Toggle theme"})]})})}var Ce=B(require("react")),A=B(require("@radix-ui/react-scroll-area"));var Te=Ce.forwardRef(({className:e,children:t,...o},r)=>(0,pe.jsxs)(A.Root,{ref:r,className:u("relative overflow-hidden",e),...o,children:[(0,pe.jsx)(A.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,pe.jsx)(Qe,{}),(0,pe.jsx)(A.Corner,{})]}));Te.displayName=A.Root.displayName;var Qe=Ce.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,pe.jsx)(A.ScrollAreaScrollbar,{ref:r,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-pe border-pe-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,pe.jsx)(A.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Qe.displayName=A.ScrollAreaScrollbar.displayName;var Xt=(0,Ue.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 et({className:e,variant:t,...o}){return(0,pe.jsx)("div",{className:u(Xt({variant:t}),e),...o})}function ot({notifications:e,open:t,onClose:o,onNotificationRemove:r,onRemoveAll:a,className:i}){let s=e.filter(m=>!m.read),n=s.length,g=m=>{switch(m){case"info":return(0,pe.jsx)($.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,pe.jsx)($.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,pe.jsx)($.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,pe.jsx)($.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,pe.jsx)(F.AnimatePresence,{children:t&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(F.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,pe.jsx)(F.motion.div,{initial:{pe:"100%"},animate:{pe:0},exit:{pe:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:u("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-pe bg-background shadow-lg md:w-96",i),children:(0,pe.jsxs)("div",{className:"flex h-full flex-col",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pe.jsx)($.Bell,{className:"h-5 w-5"}),(0,pe.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),n>0&&(0,pe.jsxs)(et,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[n," new"]})]}),(0,pe.jsxs)(P,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,pe.jsx)($.X,{className:"h-5 w-5"}),(0,pe.jsx)("span",{className:"sr-only",children:"Close"})]})]}),n>0&&(0,pe.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,pe.jsxs)("span",{className:"text-sm text-muted-foreground",children:[n," unread notification",n!==1?"s":""]}),(0,pe.jsx)(P,{variant:"ghost",size:"sm",onClick:a,className:"text-sm",children:"Dismiss all"})]}),s.length>0?(0,pe.jsx)(Te,{className:"flex-1",children:(0,pe.jsx)("div",{className:"divide-y",children:s.map(m=>(0,pe.jsxs)("div",{className:u("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,pe.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:g(m.type)}),(0,pe.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pe.jsx)("p",{className:"font-medium",children:m.title}),(0,pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pe.jsx)("p",{className:"text-xs text-muted-foreground",children:m.time}),(0,pe.jsx)(P,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>r?.(m.id),title:"Dismiss",children:(0,pe.jsx)($.Check,{className:"h-3 w-3"})})]})]}),(0,pe.jsx)("p",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,pe.jsxs)(P,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,pe.jsx)($.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,pe.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,pe.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,pe.jsx)($.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,pe.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,pe.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var X=B(require("@radix-ui/react-tabs"));function rt({className:e,...t}){return(0,pe.jsx)(X.Root,{"data-slot":"tabs",className:u("flex flex-col gap-2",e),...t})}function nt({className:e,...t}){return(0,pe.jsx)(X.List,{"data-slot":"tabs-list",className:u("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function it({className:e,...t}){return(0,pe.jsx)(X.Trigger,{"data-slot":"tabs-trigger",className:u("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 V=B(require("react")),p=B(require("@radix-ui/react-dropdown-menu")),Q=require("@radix-ui/react-icons");var at=p.Root,st=p.Trigger;var Jt=V.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,pe.jsxs)(p.SubTrigger,{ref:a,className:u("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,pe.jsx)(Q.ChevronRightIcon,{className:"ml-auto"})]}));Jt.displayName=p.SubTrigger.displayName;var Zt=V.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(p.SubContent,{ref:o,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Zt.displayName=p.SubContent.displayName;var Me=V.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,pe.jsx)(p.Portal,{children:(0,pe.jsx)(p.Content,{ref:r,sideOffset:t,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Me.displayName=p.Content.displayName;var ke=V.forwardRef(({className:e,inset:t,...o},r)=>(0,pe.jsx)(p.Item,{ref:r,className:u("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}));ke.displayName=p.Item.displayName;var Qt=V.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,pe.jsxs)(p.CheckboxItem,{ref:a,className:u("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,pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pe.jsx)(p.ItemIndicator,{children:(0,pe.jsx)(Q.CheckIcon,{className:"h-4 w-4"})})}),t]}));Qt.displayName=p.CheckboxItem.displayName;var Yt=V.forwardRef(({className:e,children:t,...o},r)=>(0,pe.jsxs)(p.RadioItem,{ref:r,className:u("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,pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pe.jsx)(p.ItemIndicator,{children:(0,pe.jsx)(Q.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Yt.displayName=p.RadioItem.displayName;var eo=V.forwardRef(({className:e,inset:t,...o},r)=>(0,pe.jsx)(p.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));eo.displayName=p.Label.displayName;var to=V.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(p.Separator,{ref:o,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));to.displayName=p.Separator.displayName;var oo=({className:e,...t})=>(0,pe.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});oo.displayName="DropdownMenuShortcut";function ct({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let s=o.find(n=>n.value===e);return(0,pe.jsxs)(F.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,pe.jsx)("div",{className:"hidden lg:block",children:(0,pe.jsx)(rt,{value:e,onValueChange:t,children:(0,pe.jsx)(nt,{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,pe.jsx)(F.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,pe.jsx)(it,{value: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,pe.jsx)("div",{className:"lg:hidden",children:(0,pe.jsxs)(at,{children:[(0,pe.jsx)(st,{asChild:!0,children:(0,pe.jsxs)(P,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,pe.jsx)($.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,pe.jsx)(Me,{align:"center",className:"w-[180px]",children:o.map(n=>(0,pe.jsx)(ke,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}function ro({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:r,sidebarOpen:a=!0,className:i,activeTab:s="assistant",onTabChange:n,showTabs:g=!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,pe.jsx)($.Bot,{className:"mr-2 h-4 w-4"}),actionText:M="Action",onNotificationRemove:S,onRemoveAll:k,logo:h="/headerlogo.png",appName:v="Nuvia",tagline:y="Collaboration Platform"}){let[C,j]=(0,Se.useState)(!1),[D,U]=(0,Se.useState)(t),q=D.filter(I=>!I.read).length,ie=I=>{U(K=>K.filter(Y=>Y.id!==I)),S?.(I)},ae=()=>{U(I=>I.filter(K=>K.read)),k?.()};return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,pe.jsx)(P,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:(0,pe.jsx)($.Menu,{className:"h-5 w-5"})}),(0,pe.jsx)(P,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,pe.jsx)($.PanelLeft,{className:"h-5 w-5"})}),!a&&(0,pe.jsxs)(F.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,pe:-20},animate:{opacity:1,pe:0},transition:{duration:.3},children:[(0,pe.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,pe.jsx)("img",{src:h,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("h2",{className:"font-semibold text-sm",children:v}),(0,pe.jsx)("p",{className:"text-xs text-muted-foreground",children:y})]})]}),(0,pe.jsxs)("div",{className:"flex flex-1 items-center",children:[g&&(0,pe.jsx)(ct,{activeTab:s,onTabChange:n,tabOptions:m}),(0,pe.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,pe.jsx)(F.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,pe:20},animate:{opacity:1,pe:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(P,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:w,children:[T,M]})})}),(0,pe.jsx)(Ze,{}),(0,pe.jsx)(me,{children:(0,pe.jsxs)(ue,{children:[(0,pe.jsx)(fe,{asChild:!0,children:(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>j(!0),children:[(0,pe.jsx)(F.motion.div,{animate:q>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:q>0?1/0:0,repeatDelay:3},children:(0,pe.jsx)($.Bell,{className:"h-5 w-5"})}),q>0&&(0,pe.jsx)(F.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:q})]})})}),(0,pe.jsx)(re,{children:"Notifications"})]})}),(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(we,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,pe.jsx)(Pe,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,pe.jsx)(Ne,{})]})})]})]})]}),(0,pe.jsx)(ot,{notifications:D,open:C,onClose:()=>j(!1),onNotificationRemove:ie,onRemoveAll:ae})]})}0&&(module.exports={AppHeader});
5
+ "use strict";"use client";var dt=Object.create;var ce=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var ut=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty;var gt=(e,t)=>{for(var o in t)ce(e,o,{get:t[o],enumerable:!0})},Le=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mt(t))!ft.call(e,a)&&a!==o&&ce(e,a,{get:()=>t[a],enumerable:!(r=pt(t,a))||r.enumerable});return e};var B=(e,t,o)=>(o=e!=null?dt(ut(e)):{},Le(t||!e||!e.__esModule?ce(o,"default",{value:e,enumerable:!0}):o,e)),bt=e=>Le(ce({},"__esModule",{value:!0}),e);var no={};gt(no,{AppHeader:()=>ro});module.exports=bt(no);var Se=require("react"),F=require("motion/react"),$=require("lucide-react");var de=B(require("react")),W=B(require("@radix-ui/react-avatar"));var Fe=require("clsx");var ye="-",vt=e=>{let t=xt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let n=s.split(ye);return n[0]===""&&n.length!==1&&n.shift(),We(n,t)||ht(s)},getConflictingClassGroupIds:(s,n)=>{let g=o[s]||[];return n&&r[s]?[...g,...r[s]]:g}}},We=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?We(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(ye);return t.validators.find(({validator:s})=>s(i))?.classGroupId},Ee=/^\[(.+)\]$/,ht=e=>{if(Ee.test(e)){let t=Ee.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},xt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return wt(Object.entries(e.classGroups),o).forEach(([i,s])=>{xe(s,r,i,t)}),r},xe=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:Ge(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(yt(a)){xe(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,s])=>{xe(s,Ge(t,i),o,r)})})},Ge=(e,t)=>{let o=e;return t.split(ye).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},yt=e=>e.isThemeGetter,wt=(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,Pt=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)}}},Ve="!",Nt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,s=n=>{let g=[],m=0,w=0,T;for(let v=0;v<n.length;v++){let y=n[v];if(m===0){if(y===a&&(r||n.slice(v,v+i)===t)){g.push(n.slice(w,v)),w=v+i;continue}if(y==="/"){T=v;continue}}y==="["?m++:y==="]"&&m--}let M=g.length===0?n:n.substring(w),S=M.startsWith(Ve),k=S?M.substring(1):M,h=T&&T>w?T-w:void 0;return{modifiers:g,hasImportantModifier:S,baseClassName:k,maybePostfixModifierPosition:h}};return o?n=>o({className:n,parseClassName:s}):s},Rt=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},Ct=e=>({cache:Pt(e.cacheSize),parseClassName:Nt(e),...vt(e)}),Tt=/\s+/,Mt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(Tt),n="";for(let g=s.length-1;g>=0;g-=1){let m=s[g],{modifiers:w,hasImportantModifier:T,baseClassName:M,maybePostfixModifierPosition:S}=o(m),k=!!S,h=r(k?M.substring(0,S):M);if(!h){if(!k){n=m+(n.length>0?" "+n:n);continue}if(h=r(M),!h){n=m+(n.length>0?" "+n:n);continue}k=!1}let v=Rt(w).join(":"),y=T?v+Ve:v,C=y+h;if(i.includes(C))continue;i.push(C);let j=a(h,k);for(let D=0;D<j.length;++D){let U=j[D];i.push(y+U)}n=m+(n.length>0?" "+n:n)}return n};function kt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=je(t))&&(r&&(r+=" "),r+=o);return r}var je=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=je(e[r]))&&(o&&(o+=" "),o+=t);return o};function At(e,...t){let o,r,a,i=s;function s(g){let m=t.reduce((w,T)=>T(w),e());return o=Ct(m),r=o.cache.get,a=o.cache.set,i=n,n(g)}function n(g){let m=r(g);if(m)return m;let w=Mt(g,o);return a(g,w),w}return function(){return i(kt.apply(null,arguments))}}var f=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},_e=/^\[(?:([a-z-]+):)?(.+)\]$/i,St=/^\pe+\/\pe+$/,zt=new Set(["px","full","screen"]),Dt=/^(\pe+(\.\pe+)?)?(xs|sm|md|lg|xl)$/,It=/\pe+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lt=/^(inset_)?-?((\pe+)?\.?(\pe+)[a-z]+|0)_-?((\pe+)?\.?(\pe+)[a-z]+|0)/,Et=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>J(e)||zt.has(e)||St.test(e),_=e=>Z(e,"length",Ft),J=e=>!!e&&!Number.isNaN(Number(e)),he=e=>Z(e,"number",J),te=e=>!!e&&Number.isInteger(Number(e)),Gt=e=>e.endsWith("%")&&J(e.slice(0,-1)),c=e=>_e.test(e),H=e=>Dt.test(e),Wt=new Set(["length","size","percentage"]),Vt=e=>Z(e,Wt,He),jt=e=>Z(e,"position",He),_t=new Set(["image","url"]),Ht=e=>Z(e,_t,Ut),Ot=e=>Z(e,"",$t),oe=()=>!0,Z=(e,t,o)=>{let r=_e.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Ft=e=>It.test(e)&&!Bt.test(e),He=()=>!1,$t=e=>Lt.test(e),Ut=e=>Et.test(e);var qt=()=>{let e=f("colors"),t=f("spacing"),o=f("blur"),r=f("brightness"),a=f("borderColor"),i=f("borderRadius"),s=f("borderSpacing"),n=f("borderWidth"),g=f("contrast"),m=f("grayscale"),w=f("hueRotate"),T=f("invert"),M=f("gap"),S=f("gradientColorStops"),k=f("gradientColorStopPositions"),h=f("inset"),v=f("margin"),y=f("opacity"),C=f("padding"),j=f("saturate"),D=f("scale"),U=f("sepia"),q=f("skew"),ie=f("space"),ae=f("translate"),I=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",c,t],b=()=>[c,t],ze=()=>["",G,_],se=()=>["auto",J,c],De=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",c],Be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[J,c];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[G,_],blur:["none","",H,c],brightness:E(),borderColor:[e],borderRadius:["none","","full",H,c],borderSpacing:b(),borderWidth:ze(),contrast:E(),grayscale:ee(),hueRotate:E(),invert:ee(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Gt,_],inset:Y(),margin:Y(),opacity:E(),padding:b(),saturate:E(),scale:E(),sepia:ee(),skew:E(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":Be()}],"break-before":[{"break-before":Be()}],"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:[...De(),c]}],overflow:[{overflow:K()}],"overflow-pe":[{"overflow-pe":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:I()}],"overscroll-pe":[{"overscroll-pe":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-pe":[{"inset-pe":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",te,c]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",te,c]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",te,c]},c]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[te,c]},c]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[M]}],"gap-pe":[{"gap-pe":[M]}],"gap-y":[{"gap-y":[M]}],"justify-content":[{justify:["normal",...ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-pe":[{"space-pe":[ie]}],"space-pe-reverse":["space-pe-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[H]},H]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",H,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",J,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,_]}],"underline-offset":[{"underline-offset":["auto",G,c]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...De(),jt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","pe","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","pe","tl"]},Ht]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],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-pe":[{"rounded-pe":[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-pe":[{"border-pe":[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-pe":[{"border-pe":[n]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...le(),"hidden"]}],"divide-pe":[{"divide-pe":[n]}],"divide-pe-reverse":["divide-pe-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-pe":[{"border-pe":[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-pe":[{"border-pe":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[G,c]}],"outline-w":[{outline:[G,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ze()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[G,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Ot]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ie()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",H,c]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[T]}],saturate:[{saturate:[j]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-pe":[{"border-spacing-pe":[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",c]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-pe":[{"scale-pe":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[te,c]}],"translate-pe":[{"translate-pe":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-pe":[{"skew-pe":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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","F-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","pe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","pe","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-pe":[{"touch-pan":["pe","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",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,_,he]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-pe","overflow-y"],overscroll:["overscroll-pe","overscroll-y"],inset:["inset-pe","inset-y","start","end","top","right","bottom","left"],"inset-pe":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-pe","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-pe","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-pe":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-pe","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-pe"],"border-w-pe":["border-w-r","border-w-pe"],"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-pe"],"border-color-pe":["border-color-r","border-color-pe"],"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-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-pe","touch-y","touch-pz"],"touch-pe":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Oe=At(qt);function u(...e){return Oe((0,Fe.clsx)(e))}var pe=require("react/jsx-runtime"),we=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Root,{ref:o,className:u("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));we.displayName=W.Root.displayName;var Pe=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Image,{ref:o,className:u("aspect-square h-full w-full",e),...t}));Pe.displayName=W.Image.displayName;var Ne=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Fallback,{ref:o,className:u("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ne.displayName=W.Fallback.displayName;var $e=require("@radix-ui/react-slot"),Ue=require("class-variance-authority"),qe=B(require("react")),Kt=(0,Ue.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"}}}),P=qe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,pe.jsx)(e?$e.Slot:"button",{className:u(Kt({className:t,size:o,variant:r})),ref:i,...a}));P.displayName="Button";var Xe=B(require("react")),z=B(require("@radix-ui/react-tooltip"));var me=z.Provider,ue=z.Root,fe=z.Trigger,re=Xe.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,pe.jsx)(z.Portal,{children:(0,pe.jsx)(z.Content,{ref:r,sideOffset:t,className:u("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})}));re.displayName=z.Content.displayName;var Je=require("next-themes");function Ze(){let{setTheme:e,theme:t}=(0,Je.useTheme)();return(0,pe.jsx)(me,{children:(0,pe.jsxs)(ue,{children:[(0,pe.jsx)(fe,{asChild:!0,children:(0,pe.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,pe.jsx)($.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,pe.jsx)($.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,pe.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,pe.jsx)(re,{children:"Toggle theme"})]})})}var Ce=B(require("react")),A=B(require("@radix-ui/react-scroll-area"));var Te=Ce.forwardRef(({className:e,children:t,...o},r)=>(0,pe.jsxs)(A.Root,{ref:r,className:u("relative overflow-hidden",e),...o,children:[(0,pe.jsx)(A.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,pe.jsx)(Qe,{}),(0,pe.jsx)(A.Corner,{})]}));Te.displayName=A.Root.displayName;var Qe=Ce.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,pe.jsx)(A.ScrollAreaScrollbar,{ref:r,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-pe border-pe-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,pe.jsx)(A.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Qe.displayName=A.ScrollAreaScrollbar.displayName;var Xt=(0,Ue.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 et({className:e,variant:t,...o}){return(0,pe.jsx)("div",{className:u(Xt({variant:t}),e),...o})}function ot({notifications:e,open:t,onClose:o,onNotificationRemove:r,onRemoveAll:a,className:i}){let s=e.filter(m=>!m.read),n=s.length,g=m=>{switch(m){case"info":return(0,pe.jsx)($.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,pe.jsx)($.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,pe.jsx)($.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,pe.jsx)($.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,pe.jsx)(F.AnimatePresence,{children:t&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(F.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,pe.jsx)(F.motion.div,{initial:{pe:"100%"},animate:{pe:0},exit:{pe:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:u("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-pe bg-background shadow-lg md:w-96",i),children:(0,pe.jsxs)("div",{className:"flex h-full flex-col",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pe.jsx)($.Bell,{className:"h-5 w-5"}),(0,pe.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),n>0&&(0,pe.jsxs)(et,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[n," new"]})]}),(0,pe.jsxs)(P,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,pe.jsx)($.X,{className:"h-5 w-5"}),(0,pe.jsx)("span",{className:"sr-only",children:"Close"})]})]}),n>0&&(0,pe.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,pe.jsxs)("span",{className:"text-sm text-muted-foreground",children:[n," unread notification",n!==1?"s":""]}),(0,pe.jsx)(P,{variant:"ghost",size:"sm",onClick:a,className:"text-sm",children:"Dismiss all"})]}),s.length>0?(0,pe.jsx)(Te,{className:"flex-1",children:(0,pe.jsx)("div",{className:"divide-y",children:s.map(m=>(0,pe.jsxs)("div",{className:u("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,pe.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:g(m.type)}),(0,pe.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pe.jsx)("p",{className:"font-medium",children:m.title}),(0,pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pe.jsx)("p",{className:"text-xs text-muted-foreground",children:m.time}),(0,pe.jsx)(P,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>r?.(m.id),title:"Dismiss",children:(0,pe.jsx)($.Check,{className:"h-3 w-3"})})]})]}),(0,pe.jsx)("p",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,pe.jsxs)(P,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,pe.jsx)($.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,pe.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,pe.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,pe.jsx)($.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,pe.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,pe.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var X=B(require("@radix-ui/react-tabs"));function rt({className:e,...t}){return(0,pe.jsx)(X.Root,{"data-slot":"tabs",className:u("flex flex-col gap-2",e),...t})}function nt({className:e,...t}){return(0,pe.jsx)(X.List,{"data-slot":"tabs-list",className:u("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function it({className:e,...t}){return(0,pe.jsx)(X.Trigger,{"data-slot":"tabs-trigger",className:u("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 V=B(require("react")),p=B(require("@radix-ui/react-dropdown-menu")),Q=require("@radix-ui/react-icons");var at=p.Root,st=p.Trigger;var Jt=V.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,pe.jsxs)(p.SubTrigger,{ref:a,className:u("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,pe.jsx)(Q.ChevronRightIcon,{className:"ml-auto"})]}));Jt.displayName=p.SubTrigger.displayName;var Zt=V.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(p.SubContent,{ref:o,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Zt.displayName=p.SubContent.displayName;var Me=V.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,pe.jsx)(p.Portal,{children:(0,pe.jsx)(p.Content,{ref:r,sideOffset:t,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Me.displayName=p.Content.displayName;var ke=V.forwardRef(({className:e,inset:t,...o},r)=>(0,pe.jsx)(p.Item,{ref:r,className:u("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}));ke.displayName=p.Item.displayName;var Qt=V.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,pe.jsxs)(p.CheckboxItem,{ref:a,className:u("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,pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pe.jsx)(p.ItemIndicator,{children:(0,pe.jsx)(Q.CheckIcon,{className:"h-4 w-4"})})}),t]}));Qt.displayName=p.CheckboxItem.displayName;var Yt=V.forwardRef(({className:e,children:t,...o},r)=>(0,pe.jsxs)(p.RadioItem,{ref:r,className:u("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,pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pe.jsx)(p.ItemIndicator,{children:(0,pe.jsx)(Q.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Yt.displayName=p.RadioItem.displayName;var eo=V.forwardRef(({className:e,inset:t,...o},r)=>(0,pe.jsx)(p.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));eo.displayName=p.Label.displayName;var to=V.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(p.Separator,{ref:o,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));to.displayName=p.Separator.displayName;var oo=({className:e,...t})=>(0,pe.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});oo.displayName="DropdownMenuShortcut";function ct({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let s=o.find(n=>n.value===e);return(0,pe.jsxs)(F.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,pe.jsx)("div",{className:"hidden lg:block",children:(0,pe.jsx)(rt,{value:e,onValueChange:t,children:(0,pe.jsx)(nt,{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,pe.jsx)(F.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,pe.jsx)(it,{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,pe.jsx)("div",{className:"lg:hidden",children:(0,pe.jsxs)(at,{children:[(0,pe.jsx)(st,{asChild:!0,children:(0,pe.jsxs)(P,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,pe.jsx)($.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,pe.jsx)(Me,{align:"center",className:"w-[180px]",children:o.map(n=>(0,pe.jsx)(ke,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}function ro({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:r,sidebarOpen:a=!0,className:i,activeTab:s="assistant",onTabChange:n,showTabs:g=!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,pe.jsx)($.Bot,{className:"mr-2 h-4 w-4"}),actionText:M="Action",onNotificationRemove:S,onRemoveAll:k,logo:h="/headerlogo.png",appName:v="Nuvia",tagline:y="Collaboration Platform"}){let[C,j]=(0,Se.useState)(!1),[D,U]=(0,Se.useState)(t),q=D.filter(I=>!I.read).length,ie=I=>{U(K=>K.filter(Y=>Y.id!==I)),S?.(I)},ae=()=>{U(I=>I.filter(K=>K.read)),k?.()};return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,pe.jsx)(P,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:(0,pe.jsx)($.Menu,{className:"h-5 w-5"})}),(0,pe.jsx)(P,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,pe.jsx)($.PanelLeft,{className:"h-5 w-5"})}),!a&&(0,pe.jsxs)(F.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,pe:-20},animate:{opacity:1,pe:0},transition:{duration:.3},children:[(0,pe.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,pe.jsx)("img",{src:h,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("h2",{className:"font-semibold text-sm",children:v}),(0,pe.jsx)("p",{className:"text-xs text-muted-foreground",children:y})]})]}),(0,pe.jsxs)("div",{className:"flex flex-1 items-center",children:[g&&(0,pe.jsx)(ct,{activeTab:s,onTabChange:n,tabOptions:m}),(0,pe.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,pe.jsx)(F.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,pe:20},animate:{opacity:1,pe:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(P,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:w,children:[T,M]})})}),(0,pe.jsx)(Ze,{}),(0,pe.jsx)(me,{children:(0,pe.jsxs)(ue,{children:[(0,pe.jsx)(fe,{asChild:!0,children:(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>j(!0),children:[(0,pe.jsx)(F.motion.div,{animate:q>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:q>0?1/0:0,repeatDelay:3},children:(0,pe.jsx)($.Bell,{className:"h-5 w-5"})}),q>0&&(0,pe.jsx)(F.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:q})]})})}),(0,pe.jsx)(re,{children:"Notifications"})]})}),(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(we,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,pe.jsx)(Pe,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,pe.jsx)(Ne,{})]})})]})]})]}),(0,pe.jsx)(ot,{notifications:D,open:C,onClose:()=>j(!1),onNotificationRemove:ie,onRemoveAll:ae})]})}0&&(module.exports={AppHeader});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-VDN4LQSS.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.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-YEKQJ4YC.mjs";export{a as AppHeader};
2
+ "use strict";import{a}from"../../chunk-F6DMXMR4.mjs";import"../../chunk-GLZEHRPY.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.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-YEKQJ4YC.mjs";export{a as AppHeader};
@@ -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';