cortex-react-components 2.26.3 → 2.26.5

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 (200) hide show
  1. package/dist/{chunk-BDNY6OKE.mjs → chunk-2GM2LPLB.mjs} +1 -1
  2. package/dist/{chunk-2GZQYAN3.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
  3. package/dist/{chunk-UX5OJ3WS.mjs → chunk-3ANJOET7.mjs} +1 -1
  4. package/dist/{chunk-HB57GPGK.mjs → chunk-3M5KHST3.mjs} +1 -1
  5. package/dist/{chunk-NXG2Y4N4.mjs → chunk-4SRUEQTP.mjs} +1 -1
  6. package/dist/{chunk-AGWQ5S2Z.mjs → chunk-5NIEZE7A.mjs} +1 -1
  7. package/dist/chunk-6YHCNPFB.mjs +4 -0
  8. package/dist/{chunk-PRK2XFAZ.mjs → chunk-7OMPPFGG.mjs} +1 -1
  9. package/dist/{chunk-CNCT3JZV.mjs → chunk-AQQCH7Z2.mjs} +1 -1
  10. package/dist/{chunk-WDZOGIT2.mjs → chunk-BQQ4V4PX.mjs} +1 -1
  11. package/dist/{chunk-R3SDBXF2.mjs → chunk-CKU2T3AN.mjs} +1 -1
  12. package/dist/{chunk-RIFUOB7A.mjs → chunk-EFNFK7TR.mjs} +1 -1
  13. package/dist/{chunk-T36QUKC6.mjs → chunk-F64CA5CH.mjs} +1 -1
  14. package/dist/{chunk-VDN4LQSS.mjs → chunk-F6DMXMR4.mjs} +1 -1
  15. package/dist/{chunk-KRLNPNMZ.mjs → chunk-FEWOSBUJ.mjs} +1 -1
  16. package/dist/{chunk-CJ2ZX7QN.mjs → chunk-FMXCT6LU.mjs} +1 -1
  17. package/dist/{chunk-BGADMIWV.mjs → chunk-FYQBRCQM.mjs} +1 -1
  18. package/dist/{chunk-JLUX7EHB.mjs → chunk-GAZHKHGB.mjs} +1 -1
  19. package/dist/{chunk-5KS3DITB.mjs → chunk-GETYSIZV.mjs} +1 -1
  20. package/dist/chunk-GLZEHRPY.mjs +4 -0
  21. package/dist/chunk-HD6E7KI2.mjs +4 -0
  22. package/dist/{chunk-M74BIPBM.mjs → chunk-HDKHF3EA.mjs} +1 -1
  23. package/dist/{chunk-BN747TQM.mjs → chunk-HKMNAXLM.mjs} +1 -1
  24. package/dist/{chunk-TKCFCYEQ.mjs → chunk-HSQAHQNP.mjs} +1 -1
  25. package/dist/{chunk-6LY5CH7J.mjs → chunk-JCWFPKF3.mjs} +1 -1
  26. package/dist/{chunk-OP6ZWZIM.mjs → chunk-JVTCOOUV.mjs} +1 -1
  27. package/dist/{chunk-DJ2KA3MS.mjs → chunk-KBLVWXLK.mjs} +1 -1
  28. package/dist/{chunk-S3P6OGB7.mjs → chunk-KVLUT4U2.mjs} +1 -1
  29. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  30. package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  31. package/dist/chunk-LCEEFZH7.mjs +4 -0
  32. package/dist/chunk-LEF6M5ZD.mjs +4 -0
  33. package/dist/{chunk-ERHNVIOZ.mjs → chunk-LHO4WFYP.mjs} +1 -1
  34. package/dist/{chunk-JT65KF7C.mjs → chunk-MO4HRQEL.mjs} +1 -1
  35. package/dist/{chunk-DKRRVTCV.mjs → chunk-MS7YIAWP.mjs} +1 -1
  36. package/dist/chunk-MXMW65GM.mjs +4 -0
  37. package/dist/{chunk-GIL2SMPM.mjs → chunk-O24GFE6Q.mjs} +1 -1
  38. package/dist/chunk-P2B3OITE.mjs +4 -0
  39. package/dist/{chunk-PZZTGPEO.mjs → chunk-P6OSMPUQ.mjs} +1 -1
  40. package/dist/{chunk-23XORW7A.mjs → chunk-P7S6XFU4.mjs} +1 -1
  41. package/dist/{chunk-4NHQXOKZ.mjs → chunk-PNUBVBSR.mjs} +1 -1
  42. package/dist/{chunk-66ODXUVL.mjs → chunk-PTZT4QJW.mjs} +1 -1
  43. package/dist/{chunk-YJ7XPZWV.mjs → chunk-QUMUO63J.mjs} +1 -1
  44. package/dist/{chunk-JUFFNFV6.mjs → chunk-R6AYIVIR.mjs} +1 -1
  45. package/dist/{chunk-67PJ7D4O.mjs → chunk-RS4VD3ML.mjs} +1 -1
  46. package/dist/{chunk-CTTBF7F4.mjs → chunk-RS4WAAGI.mjs} +1 -1
  47. package/dist/{chunk-Y62OBV2E.mjs → chunk-U3FYDDE2.mjs} +1 -1
  48. package/dist/chunk-U3PUWUVM.mjs +4 -0
  49. package/dist/{chunk-DVE2KPLR.mjs → chunk-WH6JZSIA.mjs} +1 -1
  50. package/dist/{chunk-PXLSH6S2.mjs → chunk-ZFUP5NVF.mjs} +1 -1
  51. package/dist/{chunk-I6OBIS4J.mjs → chunk-ZG5N4C4S.mjs} +1 -1
  52. package/dist/components/AdvancedComponents/AppSidebar.d.ts +3 -2
  53. package/dist/components/AdvancedComponents/AppSidebar.js +1 -2
  54. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  55. package/dist/components/AdvancedComponents/app-header.js +1 -1
  56. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  57. package/dist/components/AdvancedComponents/index.js +1 -1
  58. package/dist/components/AdvancedComponents/index.mjs +1 -1
  59. package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
  60. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  61. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  62. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  63. package/dist/components/Blocks/Banner.mjs +1 -1
  64. package/dist/components/Blocks/CallToAction.mjs +1 -1
  65. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  66. package/dist/components/Blocks/Content.mjs +1 -1
  67. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  68. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  69. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  70. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  71. package/dist/components/Blocks/index.mjs +1 -1
  72. package/dist/components/Cards/ContentCard.mjs +1 -1
  73. package/dist/components/Cards/FeatureCard.mjs +1 -1
  74. package/dist/components/Cards/index.mjs +1 -1
  75. package/dist/components/Chat/CopilotInterface.js +3 -3
  76. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  77. package/dist/components/Chat/demo-long-messages.js +5 -5
  78. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  79. package/dist/components/Chat/demo-tests.js +5 -5
  80. package/dist/components/Chat/demo-tests.mjs +1 -1
  81. package/dist/components/Chat/demo.js +3 -3
  82. package/dist/components/Chat/demo.mjs +1 -1
  83. package/dist/components/Chat/example-usage.js +3 -3
  84. package/dist/components/Chat/example-usage.mjs +1 -1
  85. package/dist/components/Chat/example-with-vercel-ai.js +3 -3
  86. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  87. package/dist/components/Chat/index.js +3 -3
  88. package/dist/components/Chat/index.mjs +1 -1
  89. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  90. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  91. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  92. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  93. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +5 -5
  94. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  95. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  96. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  97. package/dist/components/DigitalColleagues/Views/index.js +5 -5
  98. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  99. package/dist/components/DigitalColleagues/index.js +5 -5
  100. package/dist/components/DigitalColleagues/index.mjs +1 -1
  101. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  102. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  103. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  104. package/dist/components/Foundary/MainPage.mjs +1 -1
  105. package/dist/components/Foundary/Pages/dashboardpage.js +6 -6
  106. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  107. package/dist/components/Foundary/Views/ColleaguesView.d.ts +12 -1
  108. package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
  109. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  110. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  111. package/dist/components/Foundary/Views/index.js +5 -5
  112. package/dist/components/Foundary/Views/index.mjs +1 -1
  113. package/dist/components/Foundary/colleague-card.js +1 -1
  114. package/dist/components/Foundary/colleague-card.mjs +1 -1
  115. package/dist/components/Foundary/colleague-form.d.ts +12 -1
  116. package/dist/components/Foundary/colleague-form.js +1 -1
  117. package/dist/components/Foundary/colleague-form.mjs +1 -1
  118. package/dist/components/Foundary/file-edit.mjs +1 -1
  119. package/dist/components/Foundary/foundary-clone.js +1 -1
  120. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  121. package/dist/components/Foundary/foundary-layout.d.ts +2 -1
  122. package/dist/components/Foundary/foundary-layout.js +1 -1
  123. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  124. package/dist/components/Foundary/index.js +5 -5
  125. package/dist/components/Foundary/index.mjs +1 -1
  126. package/dist/components/Foundary/knowledge-search.js +1 -1
  127. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  128. package/dist/components/Foundary/types.d.ts +32 -9
  129. package/dist/components/HeaderFooter/Header.mjs +1 -1
  130. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  131. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  132. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  133. package/dist/components/HeaderFooter/index.mjs +1 -1
  134. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  135. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  136. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  137. package/dist/components/Heros/PostHero/index.mjs +1 -1
  138. package/dist/components/Heros/RenderHero.mjs +1 -1
  139. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  140. package/dist/components/Heros/index.mjs +1 -1
  141. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  142. package/dist/components/Layouts/Print.mjs +1 -1
  143. package/dist/components/Layouts/SlideShow.mjs +1 -1
  144. package/dist/components/Layouts/index.mjs +1 -1
  145. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  146. package/dist/components/Menus/SidebarRight.mjs +1 -1
  147. package/dist/components/Menus/index.mjs +1 -1
  148. package/dist/components/Other/index.mjs +1 -1
  149. package/dist/components/Payload/RichText/index.mjs +1 -1
  150. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  151. package/dist/components/Payload/index.mjs +1 -1
  152. package/dist/components/Projects/FileView.js +1 -1
  153. package/dist/components/Projects/FileView.mjs +1 -1
  154. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  155. package/dist/components/Projects/ProjectPage.js +5 -5
  156. package/dist/components/Projects/ProjectPage.mjs +1 -1
  157. package/dist/components/Projects/ProjectView.js +1 -1
  158. package/dist/components/Projects/ProjectView.mjs +1 -1
  159. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  160. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  161. package/dist/components/Projects/file-list.mjs +1 -1
  162. package/dist/components/Projects/index.mjs +1 -1
  163. package/dist/components/dc-temp/index.js +1 -1
  164. package/dist/components/dc-temp/index.mjs +1 -1
  165. package/dist/components/index.js +20 -20
  166. package/dist/components/index.mjs +1 -1
  167. package/dist/components/ui/index.mjs +1 -1
  168. package/dist/components/ui/sidebar.mjs +1 -1
  169. package/dist/index.js +27 -27
  170. package/dist/index.mjs +1 -1
  171. package/dist/metafile-cjs.json +1 -1
  172. package/dist/metafile-esm.json +1 -1
  173. package/dist/pages/Blog.mjs +1 -1
  174. package/dist/pages/Documentation.mjs +1 -1
  175. package/dist/pages/IndexPage.mjs +1 -1
  176. package/dist/pages/Intranet.mjs +1 -1
  177. package/dist/pages/LandingPage.mjs +1 -1
  178. package/dist/pages/Page.mjs +1 -1
  179. package/dist/pages/Publish.mjs +1 -1
  180. package/dist/pages/Website.mjs +1 -1
  181. package/dist/sections/AboutSection.mjs +1 -1
  182. package/dist/sections/BlogDetail.mjs +1 -1
  183. package/dist/sections/BlogList.mjs +1 -1
  184. package/dist/sections/BlogListSection.mjs +1 -1
  185. package/dist/sections/ContactSection.mjs +1 -1
  186. package/dist/sections/PageSections.mjs +1 -1
  187. package/dist/sections/PricingSection.mjs +1 -1
  188. package/dist/sections/ServiceDetail.mjs +1 -1
  189. package/dist/sections/ServiceDetailSection.mjs +1 -1
  190. package/dist/sections/ServiceSection.mjs +1 -1
  191. package/dist/sections/index.mjs +1 -1
  192. package/package.json +1 -1
  193. package/dist/chunk-4WA47ZQA.mjs +0 -4
  194. package/dist/chunk-5HT2KC5I.mjs +0 -4
  195. package/dist/chunk-CRAFZGCI.mjs +0 -4
  196. package/dist/chunk-FGEFYI5E.mjs +0 -4
  197. package/dist/chunk-GPFPTU7U.mjs +0 -4
  198. package/dist/chunk-KKW3FINI.mjs +0 -4
  199. package/dist/chunk-NDZ26EG6.mjs +0 -4
  200. package/dist/chunk-Y7H3EUBR.mjs +0 -4
@@ -3,4 +3,4 @@
3
3
  "use client"
4
4
  'use client';
5
5
 
6
- "use strict";var so=Object.create;var Ie=Object.defineProperty;var lo=Object.getOwnPropertyDescriptor;var co=Object.getOwnPropertyNames;var po=Object.getPrototypeOf,mo=Object.prototype.hasOwnProperty;var uo=(e,t)=>{for(var o in t)Ie(e,o,{get:t[o],enumerable:!0})},vt=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of co(t))!mo.call(e,l)&&l!==o&&Ie(e,l,{get:()=>t[l],enumerable:!(i=lo(t,l))||i.enumerable});return e};var R=(e,t,o)=>(o=e!=null?so(po(e)):{},vt(t||!e||!e.__esModule?Ie(o,"default",{value:e,enumerable:!0}):o,e)),go=e=>vt(Ie({},"__esModule",{value:!0}),e);var ui={};uo(ui,{AppHeader:()=>mi,AppSidebar:()=>pi,CommentSection:()=>ri,EditableField:()=>ai,NavigationTabs:()=>it,NotificationsPanel:()=>ft,Switch:()=>ei});module.exports=go(ui);var ot=require("motion/react"),jt=require("lucide-react");var Rt=require("clsx");var Ze="-",fo=e=>{let t=ho(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{let a=s.split(Ze);return a[0]===""&&a.length!==1&&a.shift(),xt(a,t)||bo(s)},getConflictingClassGroupIds:(s,a)=>{let b=o[s]||[];return a&&i[s]?[...b,...i[s]]:b}}},xt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],i=t.nextPart.get(o),l=i?xt(e.slice(1),i):void 0;if(l)return l;if(t.validators.length===0)return;let r=e.join(Ze);return t.validators.find(({validator:s})=>s(r))?.classGroupId},yt=/^\[(.+)\]$/,bo=e=>{if(yt.test(e)){let t=yt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ho=e=>{let{theme:t,prefix:o}=e,i={nextPart:new Map,validators:[]};return yo(Object.entries(e.classGroups),o).forEach(([r,s])=>{Ye(s,i,r,t)}),i},Ye=(e,t,o,i)=>{e.forEach(l=>{if(typeof l=="string"){let r=l===""?t:wt(t,l);r.classGroupId=o;return}if(typeof l=="function"){if(vo(l)){Ye(l(i),t,o,i);return}t.validators.push({validator:l,classGroupId:o});return}Object.entries(l).forEach(([r,s])=>{Ye(s,wt(t,r),o,i)})})},wt=(e,t)=>{let o=e;return t.split(Ze).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},vo=e=>e.isThemeGetter,yo=(e,t)=>t?e.map(([o,i])=>{let l=i.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([s,a])=>[t+s,a])):r);return[o,l]}):e,wo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,i=new Map,l=(r,s)=>{o.set(r,s),t++,t>e&&(t=0,i=o,o=new Map)};return{get(r){let s=o.get(r);if(s!==void 0)return s;if((s=i.get(r))!==void 0)return l(r,s),s},set(r,s){o.has(r)?o.set(r,s):l(r,s)}}},Pt="!",xo=e=>{let{separator:t,experimentalParseClassName:o}=e,i=t.length===1,l=t[0],r=t.length,s=a=>{let b=[],m=0,y=0,T;for(let h=0;h<a.length;h++){let k=a[h];if(m===0){if(k===l&&(i||a.slice(h,h+r)===t)){b.push(a.slice(y,h)),y=h+r;continue}if(k==="/"){T=h;continue}}k==="["?m++:k==="]"&&m--}let S=b.length===0?a:a.substring(y),A=S.startsWith(Pt),N=A?S.substring(1):S,C=T&&T>y?T-y:void 0;return{modifiers:b,hasImportantModifier:A,baseClassName:N,maybePostfixModifierPosition:C}};return o?a=>o({className:a,parseClassName:s}):s},Po=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(i=>{i[0]==="["?(t.push(...o.sort(),i),o=[]):o.push(i)}),t.push(...o.sort()),t},No=e=>({cache:wo(e.cacheSize),parseClassName:xo(e),...fo(e)}),Co=/\s+/,Do=(e,t)=>{let{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:l}=t,r=[],s=e.trim().split(Co),a="";for(let b=s.length-1;b>=0;b-=1){let m=s[b],{modifiers:y,hasImportantModifier:T,baseClassName:S,maybePostfixModifierPosition:A}=o(m),N=!!A,C=i(N?S.substring(0,A):S);if(!C){if(!N){a=m+(a.length>0?" "+a:a);continue}if(C=i(S),!C){a=m+(a.length>0?" "+a:a);continue}N=!1}let h=Po(y).join(":"),k=T?h+Pt:h,B=k+C;if(r.includes(B))continue;r.push(B);let _=l(C,N);for(let W=0;W<_.length;++W){let J=_[W];r.push(k+J)}a=m+(a.length>0?" "+a:a)}return a};function ko(){let e=0,t,o,i="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Nt(t))&&(i&&(i+=" "),i+=o);return i}var Nt=e=>{if(typeof e=="string")return e;let t,o="";for(let i=0;i<e.length;i++)e[i]&&(t=Nt(e[i]))&&(o&&(o+=" "),o+=t);return o};function Ro(e,...t){let o,i,l,r=s;function s(b){let m=t.reduce((y,T)=>T(y),e());return o=No(m),i=o.cache.get,l=o.cache.set,r=a,a(b)}function a(b){let m=i(b);if(m)return m;let y=Do(b,o);return l(b,y),y}return function(){return r(ko.apply(null,arguments))}}var P=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ct=/^\[(?:([a-Mt-]+):)?(.+)\]$/i,So=/^\Mt+\/\Mt+$/,To=new Set(["px","full","screen"]),Ao=/^(\Mt+(\.\Mt+)?)?(xs|sm|md|lg|xl)$/,Mo=/\Mt+(%|px|r?em|[sdl]?jt([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Io=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zo=/^(inset_)?-?((\Mt+)?\.?(\Mt+)[a-Mt]+|0)_-?((\Mt+)?\.?(\Mt+)[a-Mt]+|0)/,Eo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ee=e=>fe(e)||To.has(e)||So.test(e),re=e=>be(e,"length",Wo),fe=e=>!!e&&!Number.isNaN(Number(e)),Qe=e=>be(e,"number",fe),xe=e=>!!e&&Number.isInteger(Number(e)),Bo=e=>e.endsWith("%")&&fe(e.slice(0,-1)),u=e=>Ct.test(e),ae=e=>Ao.test(e),Lo=new Set(["length","size","percentage"]),jo=e=>be(e,Lo,Dt),Fo=e=>be(e,"position",Dt),Uo=new Set(["image","url"]),Go=e=>be(e,Uo,Oo),Vo=e=>be(e,"",Ho),Pe=()=>!0,be=(e,t,o)=>{let i=Ct.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):o(i[2]):!1},Wo=e=>Mo.test(e)&&!Io.test(e),Dt=()=>!1,Ho=e=>zo.test(e),Oo=e=>Eo.test(e);var _o=()=>{let e=P("colors"),t=P("spacing"),o=P("blur"),i=P("brightness"),l=P("borderColor"),r=P("borderRadius"),s=P("borderSpacing"),a=P("borderWidth"),b=P("contrast"),m=P("grayscale"),y=P("hueRotate"),T=P("invert"),S=P("gap"),A=P("gradientColorStops"),N=P("gradientColorStopPositions"),C=P("inset"),h=P("margin"),k=P("opacity"),B=P("padding"),_=P("saturate"),W=P("scale"),J=P("sepia"),$=P("skew"),ge=P("space"),X=P("translate"),F=()=>["auto","contain","none"],Q=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",u,t],w=()=>[u,t],ye=()=>["",ee,re],n=()=>["auto",fe,u],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],x=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],we=()=>["","0",u],ht=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[fe,u];return{cacheSize:500,separator:":",theme:{colors:[Pe],spacing:[ee,re],blur:["none","",ae,u],brightness:Z(),borderColor:[e],borderRadius:["none","","full",ae,u],borderSpacing:w(),borderWidth:ye(),contrast:Z(),grayscale:we(),hueRotate:Z(),invert:we(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[Bo,re],inset:me(),margin:me(),opacity:Z(),padding:w(),saturate:Z(),scale:Z(),sepia:we(),skew:Z(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[ae]}],"break-after":[{"break-after":ht()}],"break-before":[{"break-before":ht()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...D(),u]}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],Mt:[{Mt:["auto",xe,u]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:we()}],shrink:[{shrink:we()}],order:[{order:["first","last","none",xe,u]}],"grid-cols":[{"grid-cols":[Pe]}],"col-start-end":[{col:["auto",{span:["full",xe,u]},u]}],"col-start":[{"col-start":n()}],"col-end":[{"col-end":n()}],"grid-rows":[{"grid-rows":[Pe]}],"row-start-end":[{row:["auto",{span:[xe,u]},u]}],"row-start":[{"row-start":n()}],"row-end":[{"row-end":n()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Mt:[{Mt:[B]}],px:[{px:[B]}],py:[{py:[B]}],ps:[{ps:[B]}],jt:[{jt:[B]}],pt:[{pt:[B]}],pr:[{pr:[B]}],pb:[{pb:[B]}],pl:[{pl:[B]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[ge]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ge]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[ae]},ae]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ae,re]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qe]}],"font-family":[{font:[Pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",fe,Qe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ee,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...x(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ee,re]}],"underline-offset":[{"underline-offset":["auto",ee,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),Fo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Go]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...x(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:x()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...x()]}],"outline-offset":[{"outline-offset":[ee,u]}],"outline-w":[{outline:[ee,re]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ee,re]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ae,Vo]}],"shadow-color":[{shadow:[Pe]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",ae,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[T]}],saturate:[{saturate:[_]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[W]}],"scale-x":[{"scale-x":[W]}],"scale-y":[{"scale-y":[W]}],rotate:[{rotate:[xe,u]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Mt-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-Mt":[{"scroll-Mt":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-jt":[{"scroll-jt":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ee,re,Qe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],Mt:["px","py","ps","jt","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-Mt":["scroll-px","scroll-py","scroll-ps","scroll-jt","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 kt=Ro(_o);function c(...e){return kt((0,Rt.clsx)(e))}var St=require("@radix-ui/react-slot"),Tt=require("class-variance-authority"),At=R(require("react")),Mt=require("react/jsx-runtime"),Ko=(0,Tt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),I=At.forwardRef(({asChild:e=!1,className:t,size:o,variant:i,...l},r)=>(0,Mt.jsx)(e?St.Slot:"button",{className:c(Ko({className:t,size:o,variant:i})),ref:r,...l}));I.displayName="Button";var ue=R(require("@radix-ui/react-tabs"));function It({className:e,...t}){return(0,Mt.jsx)(ue.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function zt({className:e,...t}){return(0,Mt.jsx)(ue.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg Mt-[3px]",e),...t})}function Et({className:e,...t}){return(0,Mt.jsx)(ue.Trigger,{"data-slot":"tabs-trigger",className:c("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var te=R(require("react")),f=R(require("@radix-ui/react-dropdown-menu")),he=require("@radix-ui/react-icons");var Bt=f.Root,Lt=f.Trigger;var qo=te.forwardRef(({className:e,inset:t,children:o,...i},l)=>(0,Mt.jsxs)(f.SubTrigger,{ref:l,className:c("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[o,(0,Mt.jsx)(he.ChevronRightIcon,{className:"ml-auto"})]}));qo.displayName=f.SubTrigger.displayName;var Jo=te.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(f.SubContent,{ref:o,className:c("Mt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Mt-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Jo.displayName=f.SubContent.displayName;var et=te.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,Mt.jsx)(f.Portal,{children:(0,Mt.jsx)(f.Content,{ref:i,sideOffset:t,className:c("Mt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Mt-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));et.displayName=f.Content.displayName;var tt=te.forwardRef(({className:e,inset:t,...o},i)=>(0,Mt.jsx)(f.Item,{ref:i,className:c("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));tt.displayName=f.Item.displayName;var $o=te.forwardRef(({className:e,children:t,checked:o,...i},l)=>(0,Mt.jsxs)(f.CheckboxItem,{ref:l,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...i,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(f.ItemIndicator,{children:(0,Mt.jsx)(he.CheckIcon,{className:"h-4 w-4"})})}),t]}));$o.displayName=f.CheckboxItem.displayName;var Xo=te.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(f.RadioItem,{ref:i,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(f.ItemIndicator,{children:(0,Mt.jsx)(he.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Xo.displayName=f.RadioItem.displayName;var Qo=te.forwardRef(({className:e,inset:t,...o},i)=>(0,Mt.jsx)(f.Label,{ref:i,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Qo.displayName=f.Label.displayName;var Yo=te.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(f.Separator,{ref:o,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Yo.displayName=f.Separator.displayName;var Zo=({className:e,...t})=>(0,Mt.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Zo.displayName="DropdownMenuShortcut";function it({activeTab:e,onTabChange:t,tabOptions:o,className:i="",maxWidth:l="700px",gridCols:r=6}){let s=o.find(a=>a.value===e);return(0,Mt.jsxs)(ot.motion.div,{className:`flex-1 flex justify-center ${i}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Mt.jsx)("div",{className:"hidden lg:block",children:(0,Mt.jsx)(It,{value:e,onValueChange:t,children:(0,Mt.jsx)(zt,{className:"grid w-full rounded-2xl Mt-0 h-10",style:{maxWidth:l,gridTemplateColumns:`repeat(${Math.min(r,o.length)}, minmax(0, 1fr))`},children:o.map(a=>(0,Mt.jsx)(ot.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Mt.jsx)(Et,{value:a.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:a.label})},a.value))})})}),(0,Mt.jsx)("div",{className:"lg:hidden",children:(0,Mt.jsxs)(Bt,{children:[(0,Mt.jsx)(Lt,{asChild:!0,children:(0,Mt.jsxs)(I,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,Mt.jsx)(jt.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Mt.jsx)(et,{align:"center",className:"w-[180px]",children:o.map(a=>(0,Mt.jsx)(tt,{onClick:()=>t?.(a.value),className:`cursor-pointer ${e===a.value?"bg-accent":""}`,children:a.label},a.value))})]})})]})}var Ee=R(require("react")),Be=R(require("@radix-ui/react-switch"));function ei({className:e,onCheckedChange:t,checked:o,defaultChecked:i,...l}){let[r,s]=Ee.useState(!1),[a,b]=Ee.useState(!1),[m,y]=Ee.useState(i||!1),T=o!==void 0?o:m;return(0,Mt.jsx)(Be.Root,{"data-slot":"switch","data-pressed":r,checked:o,defaultChecked:i,onMouseDown:()=>{s(!0),b(!1)},onMouseUp:()=>{s(!1),b(!1)},onMouseLeave:()=>{r&&(s(!1),b(!0))},onCheckedChange:h=>{a||(o===void 0&&y(h),t?.(h))},className:c("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...l,children:(0,Mt.jsx)(Be.Thumb,{"data-slot":"switch-thumb","data-pressed":r,className:c("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-x-[0.2rem]","data-[state=checked]:translate-x-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-x-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,Mt.jsx)(ti,{isChecked:T,isPressed:r})})})}var ti=({isChecked:e,isPressed:t})=>(0,Mt.jsxs)("svg",{viewBox:"0 0 20 20",className:c("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,Mt.jsx)("rect",{x:"4",y:"8.5",height:"3",className:c("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-x-[1px] translate-y-1":"rotate-45 w-[12px] translate-x-0 translate-y-0")}),(0,Mt.jsx)("rect",{x:"4",y:"8.5",height:"3",className:c("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-x-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-x-0 translate-y-0")})]});var _t=require("react");var oi=(0,Tt.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 se({className:e,variant:t,...o}){return(0,Mt.jsx)("div",{className:c(oi({variant:t}),e),...o})}var Le=R(require("react")),oe=R(require("@radix-ui/react-avatar"));var Ne=Le.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(oe.Root,{ref:o,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ne.displayName=oe.Root.displayName;var rt=Le.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(oe.Image,{ref:o,className:c("aspect-square h-full w-full",e),...t}));rt.displayName=oe.Image.displayName;var Ce=Le.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(oe.Fallback,{ref:o,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ce.displayName=oe.Fallback.displayName;var Gt=R(require("react")),De=Gt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("textarea",{className:c("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));De.displayName="Textarea";var Wt=R(require("react")),at=R(require("@radix-ui/react-label"));var ii=(0,Tt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ke=Wt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(at.Root,{ref:o,className:c(ii(),e),...t}));ke.displayName=at.Root.displayName;var ri=({comments:e,onAddComment:t})=>{let[o,i]=(0,_t.useState)(""),l=s=>s.split(" ").map(a=>a[0]).join("").toUpperCase(),r=()=>{o.trim()&&(t(o),i(""))};return(0,Mt.jsxs)("div",{className:"space-y-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)(jt.MessageSquare,{className:"h-5 w-5"}),(0,Mt.jsx)(ke,{className:"text-lg font-medium",children:"Comments"}),(0,Mt.jsx)(se,{variant:"secondary",children:e.length})]}),(0,Mt.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(s=>(0,Mt.jsxs)("div",{className:"flex gap-3 Mt-3 bg-muted/50 rounded-lg",children:[(0,Mt.jsx)(Ne,{className:"h-8 w-8 mt-1",children:(0,Mt.jsx)(Ce,{className:"text-xs bg-muted text-muted-foreground",children:l(s.author)})}),(0,Mt.jsxs)("div",{className:"flex-1",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Mt.jsx)("span",{className:"font-medium text-sm",children:s.author}),(0,Mt.jsxs)("span",{className:"text-xs text-muted-foreground",children:[s.createdAt.toLocaleDateString()," at ",s.createdAt.toLocaleTimeString()]})]}),(0,Mt.jsx)("Mt",{className:"text-sm text-muted-foreground",children:s.text})]})]},s.id))}),(0,Mt.jsxs)("div",{className:"flex gap-2",children:[(0,Mt.jsx)(De,{value:o,onChange:s=>i(s.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Mt.jsx)(I,{onClick:r,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Mt.jsx)(jt.Send,{className:"h-4 w-4"})})]})]})};var Kt=R(require("react"));var Re=Kt.forwardRef(({className:e,type:t,...o},i)=>(0,Mt.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...o}));Re.displayName="Input";var ai=({fieldName:e,value:t,label:o,multiline:i=!1,onSave:l,className:r="",disabled:s=!1})=>{let[a,b]=(0,_t.useState)(!1),[m,y]=(0,_t.useState)(""),T=()=>{s||(b(!0),y(t))},S=async()=>{m!==t&&await l(e,m),b(!1)},A=N=>{N.key==="Enter"&&!i||N.key==="Enter"&&N.ctrlKey&&i?S():N.key==="Escape"&&(b(!1),y(""))};return(0,Mt.jsxs)("div",{className:`space-y-2 ${r}`,children:[(0,Mt.jsx)(ke,{children:o}),a?i?(0,Mt.jsx)(De,{value:m,onChange:N=>y(N.target.value),onBlur:S,onKeyDown:A,autoFocus:!0,rows:4,className:"resize-none"}):(0,Mt.jsx)(Re,{value:m,onChange:N=>y(N.target.value),onBlur:S,onKeyPress:A,autoFocus:!0,className:"text-lg font-medium"}):(0,Mt.jsxs)("div",{onClick:T,className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 Mt-2 rounded border border-transparent hover:border-border transition-colors group ${i?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Mt.jsx)("span",{className:i?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!s&&(0,Mt.jsx)(jt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Ke=R(require("react")),ut=R(require("next/link"));var st=R(require("react")),V=R(require("@radix-ui/react-scroll-area"));var ve=st.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(V.Root,{ref:i,className:c("relative overflow-hidden",e),...o,children:[(0,Mt.jsx)(V.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Mt.jsx)($t,{}),(0,Mt.jsx)(V.Corner,{})]}));ve.displayName=V.Root.displayName;var $t=st.forwardRef(({className:e,orientation:t="vertical",...o},i)=>(0,Mt.jsx)(V.ScrollAreaScrollbar,{ref:i,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Mt-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Mt-[1px]",e),...o,children:(0,Mt.jsx)(V.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));$t.displayName=V.ScrollAreaScrollbar.displayName;var Se=R(require("react")),E=R(require("@radix-ui/react-dialog"));var Qt=E.Root;var ni=E.Portal;var Yt=Se.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(E.Overlay,{ref:o,className:c("fixed inset-0 Mt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Yt.displayName=E.Overlay.displayName;var lt=Se.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(ni,{children:[(0,Mt.jsx)(Yt,{}),(0,Mt.jsxs)(E.Content,{ref:i,className:c("fixed left-[50%] top-[50%] Mt-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background Mt-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,Mt.jsxs)(E.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Mt.jsx)(jt.X,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));lt.displayName=E.Content.displayName;var ct=({className:e,...t})=>(0,Mt.jsx)("div",{className:c("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ct.displayName="DialogHeader";var si=({className:e,...t})=>(0,Mt.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});si.displayName="DialogFooter";var dt=Se.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(E.Title,{ref:o,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));dt.displayName=E.Title.displayName;var li=Se.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(E.Description,{ref:o,className:c("text-sm text-muted-foreground",e),...t}));li.displayName=E.Description.displayName;var Te=R(require("@radix-ui/react-checkbox")),eo=R(require("react")),pt=eo.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(Te.Root,{className:c("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Mt.jsx)(Te.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,Mt.jsx)(jt.Check,{className:"h-4 w-4"})})}));pt.displayName=Te.Root.displayName;var K=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var oo=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Mt.jsx)(jt.Palette,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Mt.jsx)(jt.Code,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Mt.jsx)(jt.TrendingUp,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Mt.jsx)(jt.DollarSign,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Mt.jsx)(jt.Users,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Mt.jsx)(jt.Wrench,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Mt.jsx)(jt.Scale,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Mt.jsx)(jt.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Mt.jsx)(jt.Zap,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Mt.jsx)(jt.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],We=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var mt=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Ge=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Oe=[{id:"1",name:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",name:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",name:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",name:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",name:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",name:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",name:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],ci=[...Oe,{id:"8",name:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",name:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",name:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",name:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",name:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],di=[...We,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],Ve={projects:[{id:"1",name:"Empty Project",description:"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:[]},to={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:Oe.filter(e=>e.epicId==="1")};var cr={empty:{initialProjects:Ve.projects,initialEpics:Ve.epics,initialSprints:Ve.sprints,initialTasks:Ve.tasks},default:{initialProjects:We,initialEpics:mt,initialSprints:Ge,initialTasks:Oe},highDensity:{initialProjects:We,initialEpics:mt,initialSprints:Ge,initialTasks:ci},singleEpic:{initialProjects:We,initialEpics:to.epics,initialSprints:Ge,initialTasks:to.tasks},multipleProjects:{initialProjects:di,initialEpics:mt,initialSprints:Ge,initialTasks:Oe}},He=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(K),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(K),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(K),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(K),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(K),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(K),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(K),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(K),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(K),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(K),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],dr=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:He.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:He.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:He.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var pr=He.filter(e=>e.type==="digital");function io(e,t){let[o,i]=(0,_t.useState)(()=>{if(typeof window>"u")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),l=r=>{try{i(r),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,_t.useEffect)(()=>{l(o)},[]),[o,l]}function pi({items:e,isOpen:t,isMobile:o=!1,onClose:i,currentBusinessUnit:l=oo[0],onBusinessUnitChange:r,onSearch:s,className:a,logo:b="/headerlogo.png",appName:m="Nuvia",tagline:y="Collaboration Platform"}){let[T,S]=Ke.useState({}),[A,N]=io("sidebar-favorites",{}),[C,h]=Ke.useState(null),[k,B]=Ke.useState(""),_=n=>{S(D=>({...D,[n]:!D[n]}))},W=n=>{r?.(n)},J=()=>{k.trim()&&s?.(k.trim())},$=n=>{n.key==="Enter"&&(n.preventDefault(),J())},ge=(n,D)=>{let x=A[n]||[],Y=x.includes(D)?x.filter(G=>G!==D):x.concat(D);N({...A,[n]:Y})},X=n=>{if(!n.items||!n.maxItems||n.items.length<=n.maxItems)return n.items||[];let D=A[n.id]||[],x=n.items.filter(G=>D.includes(G.id)),Y=n.items.filter(G=>!D.includes(G.id));return[...x,...Y].slice(0,n.maxItems)},F=n=>n.maxItems&&n.items&&n.items.length>n.maxItems,Q=e,me=n=>{let D=F(n),x=X(n),Y=(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-3",children:[n.icon,(0,Mt.jsx)("span",{children:n.title})]}),n.badge&&(0,Mt.jsx)(se,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:n.badge}),n.items&&(0,Mt.jsx)(jt.ChevronDown,{className:c("ml-2 h-4 w-4 transition-transform",T[n.title]?"rotate-180":"")})]}),G=c("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",n.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return n.url?(0,Mt.jsx)(ut.default,{href:n.url,className:G,onClick:o?i:void 0,children:Y}):(0,Mt.jsx)("button",{className:G,onClick:()=>n.items&&_(n.title),children:Y})},w=()=>{let n=e.find(x=>x.id===C);if(!n||!n.items||!n.maxItems)return null;let D=A[n.id]||[];return(0,Mt.jsx)(Qt,{open:!!C,onOpenChange:x=>!x&&h(null),children:(0,Mt.jsxs)(lt,{className:"sm:max-w-md",children:[(0,Mt.jsxs)(ct,{children:[(0,Mt.jsxs)(dt,{children:["Manage ",n.title," Favorites"]}),(0,Mt.jsxs)("Mt",{className:"text-sm text-muted-foreground",children:["Select up to ",n.maxItems," items to show in ",n.title.toLowerCase(),"."]})]}),(0,Mt.jsx)(ve,{className:"max-h-96 pr-4",children:(0,Mt.jsx)("div",{className:"space-y-4",children:n.items.map(x=>(0,Mt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Mt.jsx)(pt,{id:x.id,checked:D.includes(x.id),onCheckedChange:()=>ge(n.id,x.id),disabled:!D.includes(x.id)&&D.length>=(n.maxItems||0)}),(0,Mt.jsxs)("label",{htmlFor:x.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:[x.title,x.badge&&(0,Mt.jsx)(se,{variant:"outline",className:"text-xs",children:x.badge})]})]},x.id))})})]})})},ye=(0,Mt.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between Mt-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Mt.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Mt.jsx)("img",{src:b,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Mt.jsxs)("div",{children:[(0,Mt.jsx)("h2",{className:"font-semibold",children:m}),(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:y})]})]}),o&&(0,Mt.jsx)(I,{variant:"ghost",size:"icon",onClick:i,children:(0,Mt.jsx)(jt.X,{className:"h-5 w-5"})})]}),(0,Mt.jsx)("div",{className:"px-3 py-2",children:(0,Mt.jsxs)("div",{className:"relative",children:[(0,Mt.jsx)(jt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Mt.jsx)(Re,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:k,onChange:n=>B(n.target.value),onKeyPress:$})]})}),(0,Mt.jsx)(ve,{className:"flex-1 px-3 py-2",children:(0,Mt.jsx)("div",{className:"space-y-1",children:Q.map(n=>(0,Mt.jsxs)("div",{className:"mb-1",children:[me(n),n.items&&T[n.title]&&(0,Mt.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[X(n).map(D=>(0,Mt.jsxs)(ut.default,{href:D.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?i:void 0,children:[D.title,D.badge&&(0,Mt.jsx)(se,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:D.badge})]},D.id)),F(n)&&n.items&&n.items.length>X(n).length&&(0,Mt.jsxs)("button",{onClick:()=>h(n.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:["...",n.items.length-X(n).length," more available"]})]})]},n.id))})}),(0,Mt.jsx)("div",{className:"Mt-3",children:(0,Mt.jsx)("div",{className:"space-y-1",children:(0,Mt.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Mt.jsx)(jt.Settings,{className:"h-5 w-5"}),(0,Mt.jsx)("span",{children:"Settings"})]})})}),(0,Mt.jsx)(w,{})]});return o?(0,Mt.jsx)("div",{className:c("fixed inset-y-0 left-0 Mt-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:ye}):(0,Mt.jsx)("div",{className:c("fixed inset-y-0 left-0 Mt-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:ye})}var ro=R(require("react")),O=R(require("@radix-ui/react-tooltip"));var qe=O.Provider,Je=O.Root,$e=O.Trigger,Ae=ro.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,Mt.jsx)(O.Portal,{children:(0,Mt.jsx)(O.Content,{ref:i,sideOffset:t,className:c("Mt-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ae.displayName=O.Content.displayName;var ao=require("next-themes");function no(){let{setTheme:e,theme:t}=(0,ao.useTheme)();return(0,Mt.jsx)(qe,{children:(0,Mt.jsxs)(Je,{children:[(0,Mt.jsx)($e,{asChild:!0,children:(0,Mt.jsxs)(I,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Mt.jsx)(jt.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Mt.jsx)(jt.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Mt.jsx)(Ae,{children:"Toggle theme"})]})})}function ft({notifications:e,open:t,onClose:o,onNotificationRemove:i,onRemoveAll:l,className:r}){let s=e.filter(m=>!m.read),a=s.length,b=m=>{switch(m){case"info":return(0,Mt.jsx)(jt.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Mt.jsx)(jt.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Mt.jsx)(jt.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Mt.jsx)(jt.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Mt.jsx)(ot.AnimatePresence,{children:t&&(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsx)(ot.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 Mt-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,Mt.jsx)(ot.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("fixed inset-y-0 right-0 Mt-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",r),children:(0,Mt.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between border-b Mt-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)(jt.Bell,{className:"h-5 w-5"}),(0,Mt.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),a>0&&(0,Mt.jsxs)(se,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[a," new"]})]}),(0,Mt.jsxs)(I,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Mt.jsx)(jt.X,{className:"h-5 w-5"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]}),a>0&&(0,Mt.jsxs)("div",{className:"flex items-center justify-between border-b Mt-2",children:[(0,Mt.jsxs)("span",{className:"text-sm text-muted-foreground",children:[a," unread notification",a!==1?"s":""]}),(0,Mt.jsx)(I,{variant:"ghost",size:"sm",onClick:l,className:"text-sm",children:"Dismiss all"})]}),s.length>0?(0,Mt.jsx)(ve,{className:"flex-1",children:(0,Mt.jsx)("div",{className:"divide-y",children:s.map(m=>(0,Mt.jsxs)("div",{className:c("flex gap-3 Mt-4 transition-colors bg-muted/50"),children:[(0,Mt.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:b(m.type)}),(0,Mt.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Mt.jsx)("Mt",{className:"font-medium",children:m.title}),(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:m.time}),(0,Mt.jsx)(I,{variant:"ghost",size:"sm",className:"h-6 w-6 Mt-0",onClick:()=>i?.(m.id),title:"Dismiss",children:(0,Mt.jsx)(jt.Check,{className:"h-3 w-3"})})]})]}),(0,Mt.jsx)("Mt",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,Mt.jsxs)(I,{variant:"link",size:"sm",className:"h-auto Mt-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,Mt.jsx)(jt.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,Mt.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center Mt-8 text-center",children:[(0,Mt.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Mt.jsx)(jt.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Mt.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,Mt.jsx)("Mt",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}function mi({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:i,sidebarOpen:l=!0,className:r,activeTab:s="assistant",onTabChange:a,showTabs:b=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:y,actionIcon:T=(0,Mt.jsx)(jt.Bot,{className:"mr-2 h-4 w-4"}),actionText:S="Action",onNotificationRemove:A,onRemoveAll:N,logo:C="/headerlogo.png",appName:h="Nuvia",tagline:k="Collaboration Platform"}){let[B,_]=(0,_t.useState)(!1),[W,J]=(0,_t.useState)(t),$=W.filter(F=>!F.read).length,ge=F=>{J(Q=>Q.filter(me=>me.id!==F)),A?.(F)},X=()=>{J(F=>F.filter(Q=>Q.read)),N?.()};return(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("header",{className:`sticky top-0 Mt-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${r||""}`,children:[(0,Mt.jsx)(I,{variant:"ghost",size:"icon",className:"md:hidden",onClick:i,children:(0,Mt.jsx)(jt.Menu,{className:"h-5 w-5"})}),(0,Mt.jsx)(I,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Mt.jsx)(jt.PanelLeft,{className:"h-5 w-5"})}),!l&&(0,Mt.jsxs)(ot.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Mt.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Mt.jsx)("img",{src:C,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Mt.jsxs)("div",{children:[(0,Mt.jsx)("h2",{className:"font-semibold text-sm",children:h}),(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:k})]})]}),(0,Mt.jsxs)("div",{className:"flex flex-1 items-center",children:[b&&(0,Mt.jsx)(it,{activeTab:s,onTabChange:a,tabOptions:m}),(0,Mt.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Mt.jsx)(ot.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Mt.jsx)(ot.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(I,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:y,children:[T,S]})})}),(0,Mt.jsx)(no,{}),(0,Mt.jsx)(qe,{children:(0,Mt.jsxs)(Je,{children:[(0,Mt.jsx)($e,{asChild:!0,children:(0,Mt.jsx)(ot.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(I,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>_(!0),children:[(0,Mt.jsx)(ot.motion.div,{animate:$>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:$>0?1/0:0,repeatDelay:3},children:(0,Mt.jsx)(jt.Bell,{className:"h-5 w-5"})}),$>0&&(0,Mt.jsx)(ot.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:$})]})})}),(0,Mt.jsx)(Ae,{children:"Notifications"})]})}),(0,Mt.jsx)(ot.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(Ne,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Mt.jsx)(rt,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Mt.jsx)(Ce,{})]})})]})]})]}),(0,Mt.jsx)(ft,{notifications:W,open:B,onClose:()=>_(!1),onNotificationRemove:ge,onRemoveAll:X})]})}0&&(module.exports={AppHeader,AppSidebar,CommentSection,EditableField,NavigationTabs,NotificationsPanel,Switch});
6
+ "use strict";var so=Object.create;var Ie=Object.defineProperty;var lo=Object.getOwnPropertyDescriptor;var co=Object.getOwnPropertyNames;var po=Object.getPrototypeOf,mo=Object.prototype.hasOwnProperty;var uo=(e,t)=>{for(var o in t)Ie(e,o,{get:t[o],enumerable:!0})},vt=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of co(t))!mo.call(e,l)&&l!==o&&Ie(e,l,{get:()=>t[l],enumerable:!(i=lo(t,l))||i.enumerable});return e};var R=(e,t,o)=>(o=e!=null?so(po(e)):{},vt(t||!e||!e.__esModule?Ie(o,"default",{value:e,enumerable:!0}):o,e)),go=e=>vt(Ie({},"__esModule",{value:!0}),e);var ui={};uo(ui,{AppHeader:()=>mi,AppSidebar:()=>pi,CommentSection:()=>ri,EditableField:()=>ai,NavigationTabs:()=>rt,NotificationsPanel:()=>ft,Switch:()=>ei});module.exports=go(ui);var it=require("motion/react"),jt=require("lucide-react");var Rt=require("clsx");var et="-",fo=e=>{let t=ho(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:n=>{let a=n.split(et);return a[0]===""&&a.length!==1&&a.shift(),xt(a,t)||bo(n)},getConflictingClassGroupIds:(n,a)=>{let b=o[n]||[];return a&&i[n]?[...b,...i[n]]:b}}},xt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],i=t.nextPart.get(o),l=i?xt(e.slice(1),i):void 0;if(l)return l;if(t.validators.length===0)return;let r=e.join(et);return t.validators.find(({validator:n})=>n(r))?.classGroupId},yt=/^\[(.+)\]$/,bo=e=>{if(yt.test(e)){let t=yt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ho=e=>{let{theme:t,prefix:o}=e,i={nextPart:new Map,validators:[]};return yo(Object.entries(e.classGroups),o).forEach(([r,n])=>{Ze(n,i,r,t)}),i},Ze=(e,t,o,i)=>{e.forEach(l=>{if(typeof l=="string"){let r=l===""?t:wt(t,l);r.classGroupId=o;return}if(typeof l=="function"){if(vo(l)){Ze(l(i),t,o,i);return}t.validators.push({validator:l,classGroupId:o});return}Object.entries(l).forEach(([r,n])=>{Ze(n,wt(t,r),o,i)})})},wt=(e,t)=>{let o=e;return t.split(et).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},vo=e=>e.isThemeGetter,yo=(e,t)=>t?e.map(([o,i])=>{let l=i.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([n,a])=>[t+n,a])):r);return[o,l]}):e,wo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,i=new Map,l=(r,n)=>{o.set(r,n),t++,t>e&&(t=0,i=o,o=new Map)};return{get(r){let n=o.get(r);if(n!==void 0)return n;if((n=i.get(r))!==void 0)return l(r,n),n},set(r,n){o.has(r)?o.set(r,n):l(r,n)}}},Pt="!",xo=e=>{let{separator:t,experimentalParseClassName:o}=e,i=t.length===1,l=t[0],r=t.length,n=a=>{let b=[],m=0,w=0,T;for(let h=0;h<a.length;h++){let S=a[h];if(m===0){if(S===l&&(i||a.slice(h,h+r)===t)){b.push(a.slice(w,h)),w=h+r;continue}if(S==="/"){T=h;continue}}S==="["?m++:S==="]"&&m--}let k=b.length===0?a:a.substring(w),L=k.startsWith(Pt),y=L?k.substring(1):k,D=T&&T>w?T-w:void 0;return{modifiers:b,hasImportantModifier:L,baseClassName:y,maybePostfixModifierPosition:D}};return o?a=>o({className:a,parseClassName:n}):n},Po=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(i=>{i[0]==="["?(t.push(...o.sort(),i),o=[]):o.push(i)}),t.push(...o.sort()),t},No=e=>({cache:wo(e.cacheSize),parseClassName:xo(e),...fo(e)}),Co=/\s+/,ko=(e,t)=>{let{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:l}=t,r=[],n=e.trim().split(Co),a="";for(let b=n.length-1;b>=0;b-=1){let m=n[b],{modifiers:w,hasImportantModifier:T,baseClassName:k,maybePostfixModifierPosition:L}=o(m),y=!!L,D=i(y?k.substring(0,L):k);if(!D){if(!y){a=m+(a.length>0?" "+a:a);continue}if(D=i(k),!D){a=m+(a.length>0?" "+a:a);continue}y=!1}let h=Po(w).join(":"),S=T?h+Pt:h,E=S+D;if(r.includes(E))continue;r.push(E);let _=l(D,y);for(let V=0;V<_.length;++V){let oe=_[V];r.push(S+oe)}a=m+(a.length>0?" "+a:a)}return a};function Do(){let e=0,t,o,i="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Nt(t))&&(i&&(i+=" "),i+=o);return i}var Nt=e=>{if(typeof e=="string")return e;let t,o="";for(let i=0;i<e.length;i++)e[i]&&(t=Nt(e[i]))&&(o&&(o+=" "),o+=t);return o};function Ro(e,...t){let o,i,l,r=n;function n(b){let m=t.reduce((w,T)=>T(w),e());return o=No(m),i=o.cache.get,l=o.cache.set,r=a,a(b)}function a(b){let m=i(b);if(m)return m;let w=ko(b,o);return l(b,w),w}return function(){return r(Do.apply(null,arguments))}}var N=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ct=/^\[(?:([a-z-]+):)?(.+)\]$/i,So=/^\Mt+\/\Mt+$/,Ao=new Set(["px","full","screen"]),To=/^(\Mt+(\.\Mt+)?)?(xs|sm|md|lg|xl)$/,Mo=/\Mt+(%|px|r?em|[sdl]?jt([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Io=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zo=/^(inset_)?-?((\Mt+)?\.?(\Mt+)[a-z]+|0)_-?((\Mt+)?\.?(\Mt+)[a-z]+|0)/,Eo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>be(e)||Ao.has(e)||So.test(e),ie=e=>he(e,"length",Wo),be=e=>!!e&&!Number.isNaN(Number(e)),Ye=e=>he(e,"number",be),we=e=>!!e&&Number.isInteger(Number(e)),Lo=e=>e.endsWith("%")&&be(e.slice(0,-1)),u=e=>Ct.test(e),re=e=>To.test(e),Bo=new Set(["length","size","percentage"]),jo=e=>he(e,Bo,kt),Fo=e=>he(e,"position",kt),Uo=new Set(["image","url"]),Go=e=>he(e,Uo,Oo),Vo=e=>he(e,"",Ho),xe=()=>!0,he=(e,t,o)=>{let i=Ct.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):o(i[2]):!1},Wo=e=>Mo.test(e)&&!Io.test(e),kt=()=>!1,Ho=e=>zo.test(e),Oo=e=>Eo.test(e);var _o=()=>{let e=N("colors"),t=N("spacing"),o=N("blur"),i=N("brightness"),l=N("borderColor"),r=N("borderRadius"),n=N("borderSpacing"),a=N("borderWidth"),b=N("contrast"),m=N("grayscale"),w=N("hueRotate"),T=N("invert"),k=N("gap"),L=N("gradientColorStops"),y=N("gradientColorStopPositions"),D=N("inset"),h=N("margin"),S=N("opacity"),E=N("padding"),_=N("saturate"),V=N("scale"),oe=N("sepia"),X=N("skew"),ge=N("space"),fe=N("translate"),B=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",u,t],x=()=>[u,t],Me=()=>["",Y,ie],me=()=>["auto",be,u],s=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P=()=>["solid","dashed","dotted","double","none"],C=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",u],ht=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[be,u];return{cacheSize:500,separator:":",theme:{colors:[xe],spacing:[Y,ie],blur:["none","",re,u],brightness:Q(),borderColor:[e],borderRadius:["none","","full",re,u],borderSpacing:x(),borderWidth:Me(),contrast:Q(),grayscale:U(),hueRotate:Q(),invert:U(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[Lo,ie],inset:pe(),margin:pe(),opacity:Q(),padding:x(),saturate:Q(),scale:Q(),sepia:U(),skew:Q(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[re]}],"break-after":[{"break-after":ht()}],"break-before":[{"break-before":ht()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...s(),u]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",we,u]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",we,u]}],"grid-cols":[{"grid-cols":[xe]}],"col-start-end":[{col:["auto",{span:["full",we,u]},u]}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":[xe]}],"row-start-end":[{row:["auto",{span:[we,u]},u]}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Mt:[{Mt:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[ge]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ge]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[re]},re]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",re,ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ye]}],"font-family":[{font:[xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",be,Ye]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Y,ie]}],"underline-offset":[{"underline-offset":["auto",Y,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...s(),Fo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Go]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[L]}],"gradient-via":[{via:[L]}],"gradient-to":[{to:[L]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-Mt":[{"rounded-Mt":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...P(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:P()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...P()]}],"outline-offset":[{"outline-offset":[Y,u]}],"outline-w":[{outline:[Y,ie]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[Y,ie]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",re,Vo]}],"shadow-color":[{shadow:[xe]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...C(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":C()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",re,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[T]}],saturate:[{saturate:[_]}],sepia:[{sepia:[oe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[we,u]}],"translate-x":[{"translate-x":[fe]}],"translate-y":[{"translate-y":[fe]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Mt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-Mt":[{"scroll-Mt":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Y,ie,Ye]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],Mt:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Mt","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Mt","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Mt":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Dt=Ro(_o);function c(...e){return Dt((0,Rt.clsx)(e))}var St=require("@radix-ui/react-slot"),At=require("class-variance-authority"),Tt=R(require("react")),Mt=require("react/jsx-runtime"),Ko=(0,At.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),M=Tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:i,...l},r)=>(0,Mt.jsx)(e?St.Slot:"button",{className:c(Ko({className:t,size:o,variant:i})),ref:r,...l}));M.displayName="Button";var ue=R(require("@radix-ui/react-tabs"));function It({className:e,...t}){return(0,Mt.jsx)(ue.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function zt({className:e,...t}){return(0,Mt.jsx)(ue.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg Mt-[3px]",e),...t})}function Et({className:e,...t}){return(0,Mt.jsx)(ue.Trigger,{"data-slot":"tabs-trigger",className:c("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Z=R(require("react")),f=R(require("@radix-ui/react-dropdown-menu")),ve=require("@radix-ui/react-icons");var Lt=f.Root,Bt=f.Trigger;var qo=Z.forwardRef(({className:e,inset:t,children:o,...i},l)=>(0,Mt.jsxs)(f.SubTrigger,{ref:l,className:c("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[o,(0,Mt.jsx)(ve.ChevronRightIcon,{className:"ml-auto"})]}));qo.displayName=f.SubTrigger.displayName;var Jo=Z.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(f.SubContent,{ref:o,className:c("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Mt-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Jo.displayName=f.SubContent.displayName;var tt=Z.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,Mt.jsx)(f.Portal,{children:(0,Mt.jsx)(f.Content,{ref:i,sideOffset:t,className:c("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Mt-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));tt.displayName=f.Content.displayName;var ot=Z.forwardRef(({className:e,inset:t,...o},i)=>(0,Mt.jsx)(f.Item,{ref:i,className:c("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ot.displayName=f.Item.displayName;var $o=Z.forwardRef(({className:e,children:t,checked:o,...i},l)=>(0,Mt.jsxs)(f.CheckboxItem,{ref:l,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...i,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(f.ItemIndicator,{children:(0,Mt.jsx)(ve.CheckIcon,{className:"h-4 w-4"})})}),t]}));$o.displayName=f.CheckboxItem.displayName;var Xo=Z.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(f.RadioItem,{ref:i,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(f.ItemIndicator,{children:(0,Mt.jsx)(ve.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Xo.displayName=f.RadioItem.displayName;var Qo=Z.forwardRef(({className:e,inset:t,...o},i)=>(0,Mt.jsx)(f.Label,{ref:i,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Qo.displayName=f.Label.displayName;var Yo=Z.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(f.Separator,{ref:o,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Yo.displayName=f.Separator.displayName;var Zo=({className:e,...t})=>(0,Mt.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Zo.displayName="DropdownMenuShortcut";function rt({activeTab:e,onTabChange:t,tabOptions:o,className:i="",maxWidth:l="700px",gridCols:r=6}){let n=o.find(a=>a.value===e);return(0,Mt.jsxs)(it.motion.div,{className:`flex-1 flex justify-center ${i}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Mt.jsx)("div",{className:"hidden lg:block",children:(0,Mt.jsx)(It,{value:e,onValueChange:t,children:(0,Mt.jsx)(zt,{className:"grid w-full rounded-2xl Mt-0 h-10",style:{maxWidth:l,gridTemplateColumns:`repeat(${Math.min(r,o.length)}, minmax(0, 1fr))`},children:o.map(a=>(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Mt.jsx)(Et,{value:a.value,onClick:()=>t?.(a.value),className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:a.label})},a.value))})})}),(0,Mt.jsx)("div",{className:"lg:hidden",children:(0,Mt.jsxs)(Lt,{children:[(0,Mt.jsx)(Bt,{asChild:!0,children:(0,Mt.jsxs)(M,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",(0,Mt.jsx)(jt.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Mt.jsx)(tt,{align:"center",className:"w-[180px]",children:o.map(a=>(0,Mt.jsx)(ot,{onClick:()=>t?.(a.value),className:`cursor-pointer ${e===a.value?"bg-accent":""}`,children:a.label},a.value))})]})})]})}var Ee=R(require("react")),Le=R(require("@radix-ui/react-switch"));function ei({className:e,onCheckedChange:t,checked:o,defaultChecked:i,...l}){let[r,n]=Ee.useState(!1),[a,b]=Ee.useState(!1),[m,w]=Ee.useState(i||!1),T=o!==void 0?o:m;return(0,Mt.jsx)(Le.Root,{"data-slot":"switch","data-pressed":r,checked:o,defaultChecked:i,onMouseDown:()=>{n(!0),b(!1)},onMouseUp:()=>{n(!1),b(!1)},onMouseLeave:()=>{r&&(n(!1),b(!0))},onCheckedChange:h=>{a||(o===void 0&&w(h),t?.(h))},className:c("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...l,children:(0,Mt.jsx)(Le.Thumb,{"data-slot":"switch-thumb","data-pressed":r,className:c("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-x-[0.2rem]","data-[state=checked]:translate-x-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-x-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,Mt.jsx)(ti,{isChecked:T,isPressed:r})})})}var ti=({isChecked:e,isPressed:t})=>(0,Mt.jsxs)("svg",{viewBox:"0 0 20 20",className:c("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,Mt.jsx)("rect",{x:"4",y:"8.5",height:"3",className:c("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-x-[1px] translate-y-1":"rotate-45 w-[12px] translate-x-0 translate-y-0")}),(0,Mt.jsx)("rect",{x:"4",y:"8.5",height:"3",className:c("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-x-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-x-0 translate-y-0")})]});var _t=require("react");var oi=(0,At.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ne({className:e,variant:t,...o}){return(0,Mt.jsx)("div",{className:c(oi({variant:t}),e),...o})}var Be=R(require("react")),ee=R(require("@radix-ui/react-avatar"));var Pe=Be.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ee.Root,{ref:o,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Pe.displayName=ee.Root.displayName;var at=Be.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ee.Image,{ref:o,className:c("aspect-square h-full w-full",e),...t}));at.displayName=ee.Image.displayName;var Ne=Be.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ee.Fallback,{ref:o,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ne.displayName=ee.Fallback.displayName;var Gt=R(require("react")),Ce=Gt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("textarea",{className:c("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Ce.displayName="Textarea";var Wt=R(require("react")),nt=R(require("@radix-ui/react-label"));var ii=(0,At.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ke=Wt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(nt.Root,{ref:o,className:c(ii(),e),...t}));ke.displayName=nt.Root.displayName;var ri=({comments:e,onAddComment:t})=>{let[o,i]=(0,_t.useState)(""),l=n=>n.split(" ").map(a=>a[0]).join("").toUpperCase(),r=()=>{o.trim()&&(t(o),i(""))};return(0,Mt.jsxs)("div",{className:"space-y-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)(jt.MessageSquare,{className:"h-5 w-5"}),(0,Mt.jsx)(ke,{className:"text-lg font-medium",children:"Comments"}),(0,Mt.jsx)(ne,{variant:"secondary",children:e.length})]}),(0,Mt.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(n=>(0,Mt.jsxs)("div",{className:"flex gap-3 Mt-3 bg-muted/50 rounded-lg",children:[(0,Mt.jsx)(Pe,{className:"h-8 w-8 mt-1",children:(0,Mt.jsx)(Ne,{className:"text-xs bg-muted text-muted-foreground",children:l(n.author)})}),(0,Mt.jsxs)("div",{className:"flex-1",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Mt.jsx)("span",{className:"font-medium text-sm",children:n.author}),(0,Mt.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.createdAt.toLocaleDateString()," at ",n.createdAt.toLocaleTimeString()]})]}),(0,Mt.jsx)("Mt",{className:"text-sm text-muted-foreground",children:n.text})]})]},n.id))}),(0,Mt.jsxs)("div",{className:"flex gap-2",children:[(0,Mt.jsx)(Ce,{value:o,onChange:n=>i(n.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Mt.jsx)(M,{onClick:r,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Mt.jsx)(jt.Send,{className:"h-4 w-4"})})]})]})};var Kt=R(require("react"));var De=Kt.forwardRef(({className:e,type:t,...o},i)=>(0,Mt.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...o}));De.displayName="Input";var ai=({fieldName:e,value:t,label:o,multiline:i=!1,onSave:l,className:r="",disabled:n=!1})=>{let[a,b]=(0,_t.useState)(!1),[m,w]=(0,_t.useState)(""),T=()=>{n||(b(!0),w(t))},k=async()=>{m!==t&&await l(e,m),b(!1)},L=y=>{y.key==="Enter"&&!i||y.key==="Enter"&&y.ctrlKey&&i?k():y.key==="Escape"&&(b(!1),w(""))};return(0,Mt.jsxs)("div",{className:`space-y-2 ${r}`,children:[(0,Mt.jsx)(ke,{children:o}),a?i?(0,Mt.jsx)(Ce,{value:m,onChange:y=>w(y.target.value),onBlur:k,onKeyDown:L,autoFocus:!0,rows:4,className:"resize-none"}):(0,Mt.jsx)(De,{value:m,onChange:y=>w(y.target.value),onBlur:k,onKeyPress:L,autoFocus:!0,className:"text-lg font-medium"}):(0,Mt.jsxs)("div",{onClick:T,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 Mt-2 rounded border border-transparent hover:border-border transition-colors group ${i?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Mt.jsx)("span",{className:i?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!n&&(0,Mt.jsx)(jt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Ke=R(require("react")),qe=R(require("next/link"));var lt=R(require("react")),W=R(require("@radix-ui/react-scroll-area"));var ye=lt.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(W.Root,{ref:i,className:c("relative overflow-hidden",e),...o,children:[(0,Mt.jsx)(W.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Mt.jsx)($t,{}),(0,Mt.jsx)(W.Corner,{})]}));ye.displayName=W.Root.displayName;var $t=lt.forwardRef(({className:e,orientation:t="vertical",...o},i)=>(0,Mt.jsx)(W.ScrollAreaScrollbar,{ref:i,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Mt-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Mt-[1px]",e),...o,children:(0,Mt.jsx)(W.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));$t.displayName=W.ScrollAreaScrollbar.displayName;var Re=R(require("react")),z=R(require("@radix-ui/react-dialog"));var Qt=z.Root;var ni=z.Portal;var Yt=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(z.Overlay,{ref:o,className:c("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Yt.displayName=z.Overlay.displayName;var ct=Re.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(ni,{children:[(0,Mt.jsx)(Yt,{}),(0,Mt.jsxs)(z.Content,{ref:i,className:c("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background Mt-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,Mt.jsxs)(z.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Mt.jsx)(jt.X,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ct.displayName=z.Content.displayName;var dt=({className:e,...t})=>(0,Mt.jsx)("div",{className:c("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});dt.displayName="DialogHeader";var si=({className:e,...t})=>(0,Mt.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});si.displayName="DialogFooter";var pt=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(z.Title,{ref:o,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));pt.displayName=z.Title.displayName;var li=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(z.Description,{ref:o,className:c("text-sm text-muted-foreground",e),...t}));li.displayName=z.Description.displayName;var Se=R(require("@radix-ui/react-checkbox")),eo=R(require("react")),mt=eo.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(Se.Root,{className:c("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Mt.jsx)(Se.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,Mt.jsx)(jt.Check,{className:"h-4 w-4"})})}));mt.displayName=Se.Root.displayName;var J=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var oo=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Mt.jsx)(jt.Palette,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Mt.jsx)(jt.Code,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Mt.jsx)(jt.TrendingUp,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Mt.jsx)(jt.DollarSign,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Mt.jsx)(jt.Users,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Mt.jsx)(jt.Wrench,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Mt.jsx)(jt.Scale,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Mt.jsx)(jt.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Mt.jsx)(jt.Zap,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Mt.jsx)(jt.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],We=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var ut=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Ge=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Oe=[{id:"1",name:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",name:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",name:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",name:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",name:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",name:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",name:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],ci=[...Oe,{id:"8",name:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",name:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",name:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",name:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",name:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],di=[...We,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],Ve={projects:[{id:"1",name:"Empty Project",description:"Mt project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},to={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:Oe.filter(e=>e.epicId==="1")};var cr={empty:{initialProjects:Ve.projects,initialEpics:Ve.epics,initialSprints:Ve.sprints,initialTasks:Ve.tasks},default:{initialProjects:We,initialEpics:ut,initialSprints:Ge,initialTasks:Oe},highDensity:{initialProjects:We,initialEpics:ut,initialSprints:Ge,initialTasks:ci},singleEpic:{initialProjects:We,initialEpics:to.epics,initialSprints:Ge,initialTasks:to.tasks},multipleProjects:{initialProjects:di,initialEpics:ut,initialSprints:Ge,initialTasks:Oe}},He=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(J),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(J),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(J),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(J),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(J),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(J),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(J),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(J),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(J),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(J),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],dr=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:He.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:He.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:He.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var pr=He.filter(e=>e.type==="digital");function io(e,t){let[o,i]=(0,_t.useState)(()=>{if(typeof window>"u")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),l=r=>{try{i(r),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,_t.useEffect)(()=>{l(o)},[]),[o,l]}function pi({items:e,isOpen:t,isMobile:o=!1,onClose:i,currentBusinessUnit:l=oo[0],onBusinessUnitChange:r,onSearch:n,className:a,logo:b="/headerlogo.png",logoLink:m="/teams",appName:w="Nuvia",tagline:T="Collaboration Platform"}){let[k,L]=Ke.useState({}),[y,D]=io("sidebar-favorites",{}),[h,S]=Ke.useState(null),[E,_]=Ke.useState(""),V=s=>{L(P=>({...P,[s]:!P[s]}))},oe=s=>{r?.(s)},X=()=>{E.trim()&&n?.(E.trim())},ge=s=>{s.key==="Enter"&&(s.preventDefault(),X())},fe=(s,P)=>{let C=y[s]||[],q=C.includes(P)?C.filter(U=>U!==P):C.concat(P);D({...y,[s]:q})},B=s=>{if(!s.items||!s.maxItems||s.items.length<=s.maxItems)return s.items||[];let P=y[s.id]||[],C=s.items.filter(U=>P.includes(U.id)),q=s.items.filter(U=>!P.includes(U.id));return[...C,...q].slice(0,s.maxItems)},K=s=>s.maxItems&&s.items&&s.items.length>s.maxItems,pe=e,x=s=>{let P=K(s),C=B(s),q=(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-3",children:[s.icon,(0,Mt.jsx)("span",{children:s.title})]}),s.badge&&(0,Mt.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:s.badge}),s.items&&(0,Mt.jsx)(jt.ChevronDown,{className:c("ml-2 h-4 w-4 transition-transform",k[s.title]?"rotate-180":"")})]}),U=c("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",s.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return s.url?(0,Mt.jsx)(qe.default,{href:s.url,className:U,onClick:o?i:void 0,children:q}):(0,Mt.jsx)("button",{className:U,onClick:()=>s.items&&V(s.title),children:q})},Me=()=>{let s=e.find(C=>C.id===h);if(!s||!s.items||!s.maxItems)return null;let P=y[s.id]||[];return(0,Mt.jsx)(Qt,{open:!!h,onOpenChange:C=>!C&&S(null),children:(0,Mt.jsxs)(ct,{className:"sm:max-w-md",children:[(0,Mt.jsxs)(dt,{children:[(0,Mt.jsxs)(pt,{children:["Manage ",s.title," Favorites"]}),(0,Mt.jsxs)("Mt",{className:"text-sm text-muted-foreground",children:["Select up to ",s.maxItems," items to show in ",s.title.toLowerCase(),"."]})]}),(0,Mt.jsx)(ye,{className:"max-h-96 pr-4",children:(0,Mt.jsx)("div",{className:"space-y-4",children:s.items.map(C=>(0,Mt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Mt.jsx)(mt,{id:C.id,checked:P.includes(C.id),onCheckedChange:()=>fe(s.id,C.id),disabled:!P.includes(C.id)&&P.length>=(s.maxItems||0)}),(0,Mt.jsxs)("label",{htmlFor:C.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[C.title,C.badge&&(0,Mt.jsx)(ne,{variant:"outline",className:"text-xs",children:C.badge})]})]},C.id))})})]})})},me=(0,Mt.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between Mt-4",children:[(0,Mt.jsxs)(qe.default,{href:m,className:"flex items-center gap-3",children:[(0,Mt.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Mt.jsx)("img",{src:b,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Mt.jsxs)("div",{children:[(0,Mt.jsx)("h2",{className:"font-semibold",children:w}),(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:T})]})]}),o&&(0,Mt.jsx)(M,{variant:"ghost",size:"icon",onClick:i,children:(0,Mt.jsx)(jt.X,{className:"h-5 w-5"})})]}),(0,Mt.jsx)("div",{className:"px-3 py-2",children:(0,Mt.jsxs)("div",{className:"relative",children:[(0,Mt.jsx)(jt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Mt.jsx)(De,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:E,onChange:s=>_(s.target.value),onKeyPress:ge})]})}),(0,Mt.jsx)(ye,{className:"flex-1 px-3 py-2",children:(0,Mt.jsx)("div",{className:"space-y-1",children:pe.map(s=>(0,Mt.jsxs)("div",{className:"mb-1",children:[x(s),s.items&&k[s.title]&&(0,Mt.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[B(s).map(P=>(0,Mt.jsxs)(qe.default,{href:P.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?i:void 0,children:[P.title,P.badge&&(0,Mt.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:P.badge})]},P.id)),K(s)&&s.items&&s.items.length>B(s).length&&(0,Mt.jsxs)("button",{onClick:()=>S(s.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",s.items.length-B(s).length," more available"]})]})]},s.id))})}),(0,Mt.jsx)("div",{className:"Mt-3",children:(0,Mt.jsx)("div",{className:"space-y-1",children:(0,Mt.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Mt.jsx)(jt.Settings,{className:"h-5 w-5"}),(0,Mt.jsx)("span",{children:"Settings"})]})})}),(0,Mt.jsx)(Me,{})]});return o?(0,Mt.jsx)("div",{className:c("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:me}):(0,Mt.jsx)("div",{className:c("fixed inset-y-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:me})}var ro=R(require("react")),O=R(require("@radix-ui/react-tooltip"));var Je=O.Provider,$e=O.Root,Xe=O.Trigger,Ae=ro.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,Mt.jsx)(O.Portal,{children:(0,Mt.jsx)(O.Content,{ref:i,sideOffset:t,className:c("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ae.displayName=O.Content.displayName;var ao=require("next-themes");function no(){let{setTheme:e,theme:t}=(0,ao.useTheme)();return(0,$.jsx)(Je,{children:(0,$.jsxs)($e,{children:[(0,$.jsx)(Xe,{asChild:!0,children:(0,$.jsxs)(M,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,$.jsx)(jt.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,$.jsx)(jt.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,$.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,$.jsx)(Ae,{children:"Toggle theme"})]})})}function ft({notifications:e,open:t,onClose:o,onNotificationRemove:i,onRemoveAll:l,className:r}){let n=e.filter(m=>!m.read),a=n.length,b=m=>{switch(m){case"info":return(0,Mt.jsx)(jt.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Mt.jsx)(jt.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Mt.jsx)(jt.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Mt.jsx)(jt.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Mt.jsx)(it.AnimatePresence,{children:t&&(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsx)(it.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,Mt.jsx)(it.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",r),children:(0,Mt.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between border-b Mt-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)(jt.Bell,{className:"h-5 w-5"}),(0,Mt.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),a>0&&(0,Mt.jsxs)(ne,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[a," new"]})]}),(0,Mt.jsxs)(M,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Mt.jsx)(jt.X,{className:"h-5 w-5"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]}),a>0&&(0,Mt.jsxs)("div",{className:"flex items-center justify-between border-b Mt-2",children:[(0,Mt.jsxs)("span",{className:"text-sm text-muted-foreground",children:[a," unread notification",a!==1?"s":""]}),(0,Mt.jsx)(M,{variant:"ghost",size:"sm",onClick:l,className:"text-sm",children:"Dismiss all"})]}),n.length>0?(0,Mt.jsx)(ye,{className:"flex-1",children:(0,Mt.jsx)("div",{className:"divide-y",children:n.map(m=>(0,Mt.jsxs)("div",{className:c("flex gap-3 Mt-4 transition-colors bg-muted/50"),children:[(0,Mt.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:b(m.type)}),(0,Mt.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Mt.jsx)("Mt",{className:"font-medium",children:m.title}),(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:m.time}),(0,Mt.jsx)(M,{variant:"ghost",size:"sm",className:"h-6 w-6 Mt-0",onClick:()=>i?.(m.id),title:"Dismiss",children:(0,Mt.jsx)(jt.Check,{className:"h-3 w-3"})})]})]}),(0,Mt.jsx)("Mt",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,Mt.jsxs)(M,{variant:"link",size:"sm",className:"h-auto Mt-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,Mt.jsx)(jt.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,Mt.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center Mt-8 text-center",children:[(0,Mt.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Mt.jsx)(jt.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Mt.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,Mt.jsx)("Mt",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}function mi({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:i,sidebarOpen:l=!0,className:r,activeTab:n="assistant",onTabChange:a,showTabs:b=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:w,actionIcon:T=(0,Mt.jsx)(jt.Bot,{className:"mr-2 h-4 w-4"}),actionText:k="Action",onNotificationRemove:L,onRemoveAll:y,logo:D="/headerlogo.png",appName:h="Nuvia",tagline:S="Collaboration Platform"}){let[E,_]=(0,_t.useState)(!1),[V,oe]=(0,_t.useState)(t),X=V.filter(B=>!B.read).length,ge=B=>{oe(K=>K.filter(pe=>pe.id!==B)),L?.(B)},fe=()=>{oe(B=>B.filter(K=>K.read)),y?.()};return(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${r||""}`,children:[(0,Mt.jsx)(M,{variant:"ghost",size:"icon",className:"md:hidden",onClick:i,children:(0,Mt.jsx)(jt.Menu,{className:"h-5 w-5"})}),(0,Mt.jsx)(M,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Mt.jsx)(jt.PanelLeft,{className:"h-5 w-5"})}),!l&&(0,Mt.jsxs)(it.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Mt.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Mt.jsx)("img",{src:D,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Mt.jsxs)("div",{children:[(0,Mt.jsx)("h2",{className:"font-semibold text-sm",children:h}),(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:S})]})]}),(0,Mt.jsxs)("div",{className:"flex flex-1 items-center",children:[b&&(0,Mt.jsx)(rt,{activeTab:n,onTabChange:a,tabOptions:m}),(0,Mt.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Mt.jsx)(it.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(M,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:w,children:[T,k]})})}),(0,Mt.jsx)(no,{}),(0,Mt.jsx)(Je,{children:(0,Mt.jsxs)($e,{children:[(0,Mt.jsx)(Xe,{asChild:!0,children:(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(M,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>_(!0),children:[(0,Mt.jsx)(it.motion.div,{animate:X>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:X>0?1/0:0,repeatDelay:3},children:(0,Mt.jsx)(jt.Bell,{className:"h-5 w-5"})}),X>0&&(0,Mt.jsx)(it.motion.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:X})]})})}),(0,Mt.jsx)(Ae,{children:"Notifications"})]})}),(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(Pe,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Mt.jsx)(at,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Mt.jsx)(Ne,{})]})})]})]})]}),(0,Mt.jsx)(ft,{notifications:V,open:E,onClose:()=>_(!1),onNotificationRemove:ge,onRemoveAll:fe})]})}0&&(module.exports={AppHeader,AppSidebar,CommentSection,EditableField,NavigationTabs,NotificationsPanel,Switch});
@@ -1 +1 @@
1
- import{a as e}from"../../chunk-TJVEQJW3.mjs";import{a}from"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import{a as f}from"../../chunk-6SWKEZN6.mjs";import{a as g}from"../../chunk-DFIXTV2M.mjs";import{a as d}from"../../chunk-VDN4LQSS.mjs";import{a as c}from"../../chunk-FGEFYI5E.mjs";import{a as b}from"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{d as AppHeader,a as AppSidebar,f as CommentSection,g as EditableField,c as NavigationTabs,b as NotificationsPanel,e as Switch};
1
+ import{a as e}from"../../chunk-TJVEQJW3.mjs";import{a}from"../../chunk-6YHCNPFB.mjs";import"../../chunk-NPVUICIF.mjs";import{a as f}from"../../chunk-6SWKEZN6.mjs";import{a as g}from"../../chunk-DFIXTV2M.mjs";import{a as d}from"../../chunk-F6DMXMR4.mjs";import{a as c}from"../../chunk-GLZEHRPY.mjs";import{a as b}from"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{d as AppHeader,a as AppSidebar,f as CommentSection,g as EditableField,c as NavigationTabs,b as NotificationsPanel,e as Switch};