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
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use client"
4
4
 
5
- "use strict";"use client";var Xt=Object.create;var Ce=Object.defineProperty;var Qt=Object.getOwnPropertyDescriptor;var Yt=Object.getOwnPropertyNames;var Zt=Object.getPrototypeOf,eo=Object.prototype.hasOwnProperty;var to=(e,t)=>{for(var o in t)Ce(e,o,{get:t[o],enumerable:!0})},ct=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Yt(t))!eo.call(e,s)&&s!==o&&Ce(e,s,{get:()=>t[s],enumerable:!(i=Qt(t,s))||i.enumerable});return e};var I=(e,t,o)=>(o=e!=null?Xt(Zt(e)):{},ct(t||!e||!e.__esModule?Ce(o,"default",{value:e,enumerable:!0}):o,e)),oo=e=>ct(Ce({},"__esModule",{value:!0}),e);var Xo={};to(Xo,{FoundaryLayout:()=>$o});module.exports=oo(Xo);var Oe=require("react");var ht=require("clsx");var He="-",io=e=>{let t=ao(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:l=>{let n=l.split(He);return n[0]===""&&n.length!==1&&n.shift(),mt(n,t)||ro(l)},getConflictingClassGroupIds:(l,n)=>{let v=o[l]||[];return n&&i[l]?[...v,...i[l]]:v}}},mt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],i=t.nextPart.get(o),s=i?mt(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(He);return t.validators.find(({validator:l})=>l(a))?.classGroupId},dt=/^\[(.+)\]$/,ro=e=>{if(dt.test(e)){let t=dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ao=e=>{let{theme:t,prefix:o}=e,i={nextPart:new Map,validators:[]};return so(Object.entries(e.classGroups),o).forEach(([a,l])=>{Ve(l,i,a,t)}),i},Ve=(e,t,o,i)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:pt(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(no(s)){Ve(s(i),t,o,i);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,l])=>{Ve(l,pt(t,a),o,i)})})},pt=(e,t)=>{let o=e;return t.split(He).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},no=e=>e.isThemeGetter,so=(e,t)=>t?e.map(([o,i])=>{let s=i.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,n])=>[t+l,n])):a);return[o,s]}):e,lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,i=new Map,s=(a,l)=>{o.set(a,l),t++,t>e&&(t=0,i=o,o=new Map)};return{get(a){let l=o.get(a);if(l!==void 0)return l;if((l=i.get(a))!==void 0)return s(a,l),l},set(a,l){o.has(a)?o.set(a,l):s(a,l)}}},ut="!",co=e=>{let{separator:t,experimentalParseClassName:o}=e,i=t.length===1,s=t[0],a=t.length,l=n=>{let v=[],g=0,C=0,A;for(let b=0;b<n.length;b++){let y=n[b];if(g===0){if(y===s&&(i||n.slice(b,b+a)===t)){v.push(n.slice(C,b)),C=b+a;continue}if(y==="/"){A=b;continue}}y==="["?g++:y==="]"&&g--}let M=v.length===0?n:n.substring(C),T=M.startsWith(ut),B=T?M.substring(1):M,N=A&&A>C?A-C:void 0;return{modifiers:v,hasImportantModifier:T,baseClassName:B,maybePostfixModifierPosition:N}};return o?n=>o({className:n,parseClassName:l}):l},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},mo=e=>({cache:lo(e.cacheSize),parseClassName:co(e),...io(e)}),uo=/\s+/,go=(e,t)=>{let{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:s}=t,a=[],l=e.trim().split(uo),n="";for(let v=l.length-1;v>=0;v-=1){let g=l[v],{modifiers:C,hasImportantModifier:A,baseClassName:M,maybePostfixModifierPosition:T}=o(g),B=!!T,N=i(B?M.substring(0,T):M);if(!N){if(!B){n=g+(n.length>0?" "+n:n);continue}if(N=i(M),!N){n=g+(n.length>0?" "+n:n);continue}B=!1}let b=po(C).join(":"),y=A?b+ut:b,k=y+N;if(a.includes(k))continue;a.push(k);let G=s(N,B);for(let j=0;j<G.length;++j){let K=G[j];a.push(y+K)}n=g+(n.length>0?" "+n:n)}return n};function fo(){let e=0,t,o,i="";for(;e<arguments.length;)(t=arguments[e++])&&(o=gt(t))&&(i&&(i+=" "),i+=o);return i}var gt=e=>{if(typeof e=="string")return e;let t,o="";for(let i=0;i<e.length;i++)e[i]&&(t=gt(e[i]))&&(o&&(o+=" "),o+=t);return o};function bo(e,...t){let o,i,s,a=l;function l(v){let g=t.reduce((C,A)=>A(C),e());return o=mo(g),i=o.cache.get,s=o.cache.set,a=n,n(v)}function n(v){let g=i(v);if(g)return g;let C=go(v,o);return s(v,C),C}return function(){return a(fo.apply(null,arguments))}}var P=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},ft=/^\[(?:([a-z-]+):)?(.+)\]$/i,vo=/^\d+\/\d+$/,ho=new Set(["px","full","screen"]),yo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|le|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Po=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,No=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>me(e)||ho.has(e)||vo.test(e),ae=e=>ue(e,"length",Mo),me=e=>!!e&&!Number.isNaN(Number(e)),We=e=>ue(e,"number",me),ye=e=>!!e&&Number.isInteger(Number(e)),Do=e=>e.endsWith("%")&&me(e.slice(0,-1)),m=e=>ft.test(e),ne=e=>yo.test(e),Co=new Set(["length","size","percentage"]),ko=e=>ue(e,Co,bt),Ro=e=>ue(e,"position",bt),So=new Set(["image","url"]),Ao=e=>ue(e,So,zo),To=e=>ue(e,"",Io),we=()=>!0,ue=(e,t,o)=>{let i=ft.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):o(i[2]):!1},Mo=e=>wo.test(e)&&!xo.test(e),bt=()=>!1,Io=e=>Po.test(e),zo=e=>No.test(e);var Bo=()=>{let e=P("colors"),t=P("spacing"),o=P("blur"),i=P("brightness"),s=P("borderColor"),a=P("borderRadius"),l=P("borderSpacing"),n=P("borderWidth"),v=P("contrast"),g=P("grayscale"),C=P("hueRotate"),A=P("invert"),M=P("gap"),T=P("gradientColorStops"),B=P("gradientColorStopPositions"),N=P("inset"),b=P("margin"),y=P("opacity"),k=P("padding"),G=P("saturate"),j=P("scale"),K=P("sepia"),O=P("skew"),X=P("space"),W=P("translate"),E=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",m,t],w=()=>[m,t],ve=()=>["",oe,ae],r=()=>["auto",me,m],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],x=()=>["solid","dashed","dotted","double","none"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],he=()=>["","0",m],lt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[me,m];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[oe,ae],blur:["none","",ne,m],brightness:te(),borderColor:[e],borderRadius:["none","","full",ne,m],borderSpacing:w(),borderWidth:ve(),contrast:te(),grayscale:he(),hueRotate:te(),invert:he(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[Do,ae],inset:Q(),margin:Q(),opacity:te(),padding:w(),saturate:te(),scale:te(),sepia:he(),skew:te(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[ne]}],"break-after":[{"break-after":lt()}],"break-before":[{"break-before":lt()}],"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(),m]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[N]}],"inset-x":[{"inset-x":[N]}],"inset-y":[{"inset-y":[N]}],start:[{start:[N]}],end:[{end:[N]}],top:[{top:[N]}],right:[{right:[N]}],bottom:[{bottom:[N]}],left:[{left:[N]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ye,m]}],basis:[{basis:Q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:he()}],shrink:[{shrink:he()}],order:[{order:["first","last","none",ye,m]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",ye,m]},m]}],"col-start":[{"col-start":r()}],"col-end":[{"col-end":r()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[ye,m]},m]}],"row-start":[{"row-start":r()}],"row-end":[{"row-end":r()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[M]}],"gap-x":[{"gap-x":[M]}],"gap-y":[{"gap-y":[M]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],wt:[{wt:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,t]}],"min-w":[{"min-w":[m,t,"min","max","fit"]}],"max-w":[{"max-w":[m,t,"none","full","min","max","fit","prose",{screen:[ne]},ne]}],le:[{le:[m,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-le":[{"min-le":[m,t,"min","max","fit","svh","lvh","dvh"]}],"max-le":[{"max-le":[m,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ne,ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",We]}],"font-family":[{font:[we]}],"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",m]}],"line-clamp":[{"line-clamp":["none",me,We]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",oe,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...x(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",oe,ae]}],"underline-offset":[{"underline-offset":["auto",oe,m]}],"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",m]}],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",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),Ro]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ko]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ao]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[B]}],"gradient-via-pos":[{via:[B]}],"gradient-to-pos":[{to:[B]}],"gradient-from":[{from:[T]}],"gradient-via":[{via:[T]}],"gradient-to":[{to:[T]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-wt":[{"rounded-wt":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...x(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:x()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...x()]}],"outline-offset":[{"outline-offset":[oe,m]}],"outline-w":[{outline:[oe,ae]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[oe,ae]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ne,To]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",ne,m]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[A]}],saturate:[{saturate:[G]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[A]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[ye,m]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],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","wt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m]}],"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-wt":[{"scroll-wt":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":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",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[oe,ae,We]}],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"],wt:["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","le"],"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-wt","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-wt","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-wt":["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 vt=bo(Bo);function d(...e){return vt((0,ht.clsx)(e))}var ze=I(require("react")),Ye=I(require("next/link")),le=require("lucide-react");var yt=require("class-variance-authority");var wt=require("react/jsx-runtime"),jo=(0,yt.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 ge({className:e,variant:t,...o}){return(0,wt.jsx)("div",{className:d(jo({variant:t}),e),...o})}var xt=require("@radix-ui/react-slot"),Nt=I(require("react")),Eo=(0,yt.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:"le-10 px-4 py-2",icon:"le-10 w-10",lg:"le-11 rounded px-8",sm:"le-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),z=Nt.forwardRef(({asChild:e=!1,className:t,size:o,variant:i,...s},a)=>(0,wt.jsx)(e?xt.Slot:"button",{className:d(Eo({className:t,size:o,variant:i})),ref:a,...s}));z.displayName="Button";var Ct=I(require("react"));var _e=Ct.forwardRef(({className:e,type:t,...o},i)=>(0,wt.jsx)("input",{type:t,className:d("flex le-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}));_e.displayName="Input";var qe=I(require("react")),_=I(require("@radix-ui/react-scroll-area"));var fe=qe.forwardRef(({className:e,children:t,...o},i)=>(0,wt.jsxs)(_.Root,{ref:i,className:d("relative overflow-hidden",e),...o,children:[(0,wt.jsx)(_.Viewport,{className:"le-full w-full rounded-[inherit]",children:t}),(0,wt.jsx)(Rt,{}),(0,wt.jsx)(_.Corner,{})]}));fe.displayName=_.Root.displayName;var Rt=qe.forwardRef(({className:e,orientation:t="vertical",...o},i)=>(0,wt.jsx)(_.ScrollAreaScrollbar,{ref:i,orientation:t,className:d("flex touch-none select-none transition-colors",t==="vertical"&&"le-full w-2.5 border-l border-l-transparent wt-[1px]",t==="horizontal"&&"le-2.5 flex-col border-t border-t-transparent wt-[1px]",e),...o,children:(0,wt.jsx)(_.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Rt.displayName=_.ScrollAreaScrollbar.displayName;var xe=I(require("react")),R=I(require("@radix-ui/react-dialog"));var At=R.Root;var Lo=R.Portal;var Tt=xe.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(R.Overlay,{ref:o,className:d("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}));Tt.displayName=R.Overlay.displayName;var Ke=xe.forwardRef(({className:e,children:t,...o},i)=>(0,wt.jsxs)(Lo,{children:[(0,wt.jsx)(Tt,{}),(0,wt.jsxs)(R.Content,{ref:i,className:d("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background wt-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,wt.jsxs)(R.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,wt.jsx)(le.X,{className:"le-4 w-4"}),(0,wt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ke.displayName=R.Content.displayName;var Je=({className:e,...t})=>(0,wt.jsx)("div",{className:d("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Je.displayName="DialogHeader";var Uo=({className:e,...t})=>(0,wt.jsx)("div",{className:d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Uo.displayName="DialogFooter";var $e=xe.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(R.Title,{ref:o,className:d("text-lg font-semibold leading-none tracking-tight",e),...t}));$e.displayName=R.Title.displayName;var Fo=xe.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(R.Description,{ref:o,className:d("text-sm text-muted-foreground",e),...t}));Fo.displayName=R.Description.displayName;var Pe=I(require("@radix-ui/react-checkbox")),It=I(require("react")),Xe=It.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(Pe.Root,{className:d("peer le-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,wt.jsx)(Pe.Indicator,{className:d("flex items-center justify-center text-current"),children:(0,wt.jsx)(le.Check,{className:"le-4 w-4"})})}));Xe.displayName=Pe.Root.displayName;var Y=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var Bt=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,wt.jsx)(le.Palette,{className:"le-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,wt.jsx)(le.Code,{className:"le-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,wt.jsx)(le.TrendingUp,{className:"le-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,wt.jsx)(le.DollarSign,{className:"le-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,wt.jsx)(le.Users,{className:"le-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,wt.jsx)(le.Wrench,{className:"le-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,wt.jsx)(le.Scale,{className:"le-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,wt.jsx)(le.Package,{className:"le-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"wt",name:"IT Support",description:"Information technology and infrastructure",icon:(0,wt.jsx)(le.Zap,{className:"le-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,wt.jsx)(le.Building2,{className:"le-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Ae=[{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 Qe=[{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}],Re=[{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}],Me=[{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")}],Go=[...Me,{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")}],Oo=[...Ae,{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}],Se={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:[]},zt={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:Me.filter(e=>e.epicId==="1")};var hi={empty:{initialProjects:Se.projects,initialEpics:Se.epics,initialSprints:Se.sprints,initialTasks:Se.tasks},default:{initialProjects:Ae,initialEpics:Qe,initialSprints:Re,initialTasks:Me},highDensity:{initialProjects:Ae,initialEpics:Qe,initialSprints:Re,initialTasks:Go},singleEpic:{initialProjects:Ae,initialEpics:zt.epics,initialSprints:Re,initialTasks:zt.tasks},multipleProjects:{initialProjects:Oo,initialEpics:Qe,initialSprints:Re,initialTasks:Me}},Te=[{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(Y),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Y),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(Y),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Y),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(Y),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Y),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(Y),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Y),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(Y),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Y),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],yi=[{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:Te.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:Te.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:Te.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 wi=Te.filter(e=>e.type==="digital");function jt(e,t){let[o,i]=(0,Oe.useState)(()=>{if(typeof window>"wt")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),s=a=>{try{i(a),typeof window<"wt"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,Oe.useEffect)(()=>{s(o)},[]),[o,s]}function Ze({items:e,isOpen:t,isMobile:o=!1,onClose:i,currentBusinessUnit:s=Bt[0],onBusinessUnitChange:a,onSearch:l,className:n,logo:v="/headerlogo.png",appName:g="Nuvia",tagline:C="Collaboration Platform"}){let[A,M]=ze.useState({}),[T,B]=jt("sidebar-favorites",{}),[N,b]=ze.useState(null),[y,k]=ze.useState(""),G=r=>{M(D=>({...D,[r]:!D[r]}))},j=r=>{a?.(r)},K=()=>{y.trim()&&l?.(y.trim())},O=r=>{r.key==="Enter"&&(r.preventDefault(),K())},X=(r,D)=>{let x=T[r]||[],ee=x.includes(D)?x.filter(H=>H!==D):x.concat(D);B({...T,[r]:ee})},W=r=>{if(!r.items||!r.maxItems||r.items.length<=r.maxItems)return r.items||[];let D=T[r.id]||[],x=r.items.filter(H=>D.includes(H.id)),ee=r.items.filter(H=>!D.includes(H.id));return[...x,...ee].slice(0,r.maxItems)},E=r=>r.maxItems&&r.items&&r.items.length>r.maxItems,V=e,Q=r=>{let D=E(r),x=W(r),ee=(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("div",{className:"flex items-center gap-3",children:[r.icon,(0,wt.jsx)("span",{children:r.title})]}),r.badge&&(0,wt.jsx)(ge,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:r.badge}),r.items&&(0,wt.jsx)(le.ChevronDown,{className:d("ml-2 le-4 w-4 transition-transform",A[r.title]?"rotate-180":"")})]}),H=d("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",r.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return r.url?(0,wt.jsx)(Ye.default,{href:r.url,className:H,onClick:o?i:void 0,children:ee}):(0,wt.jsx)("button",{className:H,onClick:()=>r.items&&G(r.title),children:ee})},w=()=>{let r=e.find(x=>x.id===N);if(!r||!r.items||!r.maxItems)return null;let D=T[r.id]||[];return(0,wt.jsx)(At,{open:!!N,onOpenChange:x=>!x&&b(null),children:(0,wt.jsxs)(Ke,{className:"sm:max-w-md",children:[(0,wt.jsxs)(Je,{children:[(0,wt.jsxs)($e,{children:["Manage ",r.title," Favorites"]}),(0,wt.jsxs)("wt",{className:"text-sm text-muted-foreground",children:["Select up to ",r.maxItems," items to show in ",r.title.toLowerCase(),"."]})]}),(0,wt.jsx)(fe,{className:"max-le-96 pr-4",children:(0,wt.jsx)("div",{className:"space-y-4",children:r.items.map(x=>(0,wt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,wt.jsx)(Xe,{id:x.id,checked:D.includes(x.id),onCheckedChange:()=>X(r.id,x.id),disabled:!D.includes(x.id)&&D.length>=(r.maxItems||0)}),(0,wt.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,wt.jsx)(ge,{variant:"outline",className:"text-xs",children:x.badge})]})]},x.id))})})]})})},ve=(0,wt.jsxs)("div",{className:"flex le-full flex-col bg-background",children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between wt-4",children:[(0,wt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,wt.jsx)("div",{className:"flex le-14 w-14 items-center justify-center",children:(0,wt.jsx)("img",{src:v,alt:"Header Logo",className:"le-14 w-14 object-contain"})}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("h2",{className:"font-semibold",children:g}),(0,wt.jsx)("wt",{className:"text-xs text-muted-foreground",children:C})]})]}),o&&(0,wt.jsx)(z,{variant:"ghost",size:"icon",onClick:i,children:(0,wt.jsx)(le.X,{className:"le-5 w-5"})})]}),(0,wt.jsx)("div",{className:"px-3 py-2",children:(0,wt.jsxs)("div",{className:"relative",children:[(0,wt.jsx)(le.Search,{className:"absolute left-3 top-3 le-4 w-4 text-muted-foreground"}),(0,wt.jsx)(_e,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:y,onChange:r=>k(r.target.value),onKeyPress:O})]})}),(0,wt.jsx)(fe,{className:"flex-1 px-3 py-2",children:(0,wt.jsx)("div",{className:"space-y-1",children:V.map(r=>(0,wt.jsxs)("div",{className:"mb-1",children:[Q(r),r.items&&A[r.title]&&(0,wt.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[W(r).map(D=>(0,wt.jsxs)(Ye.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,wt.jsx)(ge,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:D.badge})]},D.id)),E(r)&&r.items&&r.items.length>W(r).length&&(0,wt.jsxs)("button",{onClick:()=>b(r.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:["...",r.items.length-W(r).length," more available"]})]})]},r.id))})}),(0,wt.jsx)("div",{className:"wt-3",children:(0,wt.jsx)("div",{className:"space-y-1",children:(0,wt.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,wt.jsx)(le.Settings,{className:"le-5 w-5"}),(0,wt.jsx)("span",{children:"Settings"})]})})}),(0,wt.jsx)(w,{})]});return o?(0,wt.jsx)("div",{className:d("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",n),children:ve}):(0,wt.jsx)("div",{className:d("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",n),children:ve})}var ce=require("motion/react");var Be=I(require("react")),ie=I(require("@radix-ui/react-avatar"));var et=Be.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(ie.Root,{ref:o,className:d("relative flex le-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));et.displayName=ie.Root.displayName;var tt=Be.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(ie.Image,{ref:o,className:d("aspect-square le-full w-full",e),...t}));tt.displayName=ie.Image.displayName;var ot=Be.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(ie.Fallback,{ref:o,className:d("flex le-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ot.displayName=ie.Fallback.displayName;var Et=I(require("react")),$=I(require("@radix-ui/react-tooltip"));var Ee=$.Provider,Le=$.Root,Ue=$.Trigger,Ne=Et.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,wt.jsx)($.Portal,{children:(0,wt.jsx)($.Content,{ref:i,sideOffset:t,className:d("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})}));Ne.displayName=$.Content.displayName;var Lt=require("next-themes");function Ut(){let{setTheme:e,theme:t}=(0,Lt.useTheme)();return(0,wt.jsx)(Ee,{children:(0,wt.jsxs)(Le,{children:[(0,wt.jsx)(Ue,{asChild:!0,children:(0,wt.jsxs)(z,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,wt.jsx)(le.Sun,{className:"le-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,wt.jsx)(le.Moon,{className:"absolute le-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,wt.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,wt.jsx)(Ne,{children:"Toggle theme"})]})})}function Ft({notifications:e,open:t,onClose:o,onNotificationRemove:i,onRemoveAll:s,className:a}){let l=e.filter(g=>!g.read),n=l.length,v=g=>{switch(g){case"info":return(0,wt.jsx)(le.Info,{className:"le-5 w-5 text-blue-500"});case"success":return(0,wt.jsx)(le.Check,{className:"le-5 w-5 text-green-500"});case"warning":return(0,wt.jsx)(le.AlertTriangle,{className:"le-5 w-5 text-amber-500"});case"error":return(0,wt.jsx)(le.AlertTriangle,{className:"le-5 w-5 text-red-500"})}};return(0,wt.jsx)(ce.AnimatePresence,{children:t&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(ce.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,wt.jsx)(ce.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:d("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",a),children:(0,wt.jsxs)("div",{className:"flex le-full flex-col",children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between border-b wt-4",children:[(0,wt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,wt.jsx)(le.Bell,{className:"le-5 w-5"}),(0,wt.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),n>0&&(0,wt.jsxs)(ge,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[n," new"]})]}),(0,wt.jsxs)(z,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,wt.jsx)(le.X,{className:"le-5 w-5"}),(0,wt.jsx)("span",{className:"sr-only",children:"Close"})]})]}),n>0&&(0,wt.jsxs)("div",{className:"flex items-center justify-between border-b wt-2",children:[(0,wt.jsxs)("span",{className:"text-sm text-muted-foreground",children:[n," unread notification",n!==1?"s":""]}),(0,wt.jsx)(z,{variant:"ghost",size:"sm",onClick:s,className:"text-sm",children:"Dismiss all"})]}),l.length>0?(0,wt.jsx)(fe,{className:"flex-1",children:(0,wt.jsx)("div",{className:"divide-y",children:l.map(g=>(0,wt.jsxs)("div",{className:d("flex gap-3 wt-4 transition-colors bg-muted/50"),children:[(0,wt.jsx)("div",{className:"flex le-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:v(g.type)}),(0,wt.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,wt.jsx)("wt",{className:"font-medium",children:g.title}),(0,wt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,wt.jsx)("wt",{className:"text-xs text-muted-foreground",children:g.time}),(0,wt.jsx)(z,{variant:"ghost",size:"sm",className:"le-6 w-6 wt-0",onClick:()=>i?.(g.id),title:"Dismiss",children:(0,wt.jsx)(le.Check,{className:"le-3 w-3"})})]})]}),(0,wt.jsx)("wt",{className:"text-sm text-muted-foreground",children:g.description}),g.actionLabel&&(0,wt.jsxs)(z,{variant:"link",size:"sm",className:"le-auto wt-0 text-sm",onClick:g.onAction,children:[g.actionLabel,(0,wt.jsx)(le.ChevronRight,{className:"ml-1 le-3 w-3"})]})]})]},g.id))})}):(0,wt.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center wt-8 text-center",children:[(0,wt.jsx)("div",{className:"flex le-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,wt.jsx)(le.Bell,{className:"le-8 w-8 text-muted-foreground"})}),(0,wt.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,wt.jsx)("wt",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var pe=I(require("@radix-ui/react-tabs"));function Gt({className:e,...t}){return(0,wt.jsx)(pe.Root,{"data-slot":"tabs",className:d("flex flex-col gap-2",e),...t})}function Ot({className:e,...t}){return(0,wt.jsx)(pe.List,{"data-slot":"tabs-list",className:d("bg-muted text-muted-foreground inline-flex le-9 w-fit items-center justify-center rounded-lg wt-[3px]",e),...t})}function Wt({className:e,...t}){return(0,wt.jsx)(pe.Trigger,{"data-slot":"tabs-trigger",className:d("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex le-[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 re=I(require("react")),f=I(require("@radix-ui/react-dropdown-menu")),be=require("@radix-ui/react-icons");var Vt=f.Root,Ht=f.Trigger;var Wo=re.forwardRef(({className:e,inset:t,children:o,...i},s)=>(0,wt.jsxs)(f.SubTrigger,{ref:s,className:d("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[o,(0,wt.jsx)(be.ChevronRightIcon,{className:"ml-auto"})]}));Wo.displayName=f.SubTrigger.displayName;var Vo=re.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(f.SubContent,{ref:o,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover wt-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}));Vo.displayName=f.SubContent.displayName;var rt=re.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,wt.jsx)(f.Portal,{children:(0,wt.jsx)(f.Content,{ref:i,sideOffset:t,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover wt-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})}));rt.displayName=f.Content.displayName;var at=re.forwardRef(({className:e,inset:t,...o},i)=>(0,wt.jsx)(f.Item,{ref:i,className:d("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));at.displayName=f.Item.displayName;var Ho=re.forwardRef(({className:e,children:t,checked:o,...i},s)=>(0,wt.jsxs)(f.CheckboxItem,{ref:s,className:d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...i,children:[(0,wt.jsx)("span",{className:"absolute left-2 flex le-3.5 w-3.5 items-center justify-center",children:(0,wt.jsx)(f.ItemIndicator,{children:(0,wt.jsx)(be.CheckIcon,{className:"le-4 w-4"})})}),t]}));Ho.displayName=f.CheckboxItem.displayName;var _o=re.forwardRef(({className:e,children:t,...o},i)=>(0,wt.jsxs)(f.RadioItem,{ref:i,className:d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,wt.jsx)("span",{className:"absolute left-2 flex le-3.5 w-3.5 items-center justify-center",children:(0,wt.jsx)(f.ItemIndicator,{children:(0,wt.jsx)(be.DotFilledIcon,{className:"le-4 w-4 fill-current"})})}),t]}));_o.displayName=f.RadioItem.displayName;var qo=re.forwardRef(({className:e,inset:t,...o},i)=>(0,wt.jsx)(f.Label,{ref:i,className:d("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));qo.displayName=f.Label.displayName;var Ko=re.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(f.Separator,{ref:o,className:d("-mx-1 my-1 le-px bg-muted",e),...t}));Ko.displayName=f.Separator.displayName;var Jo=({className:e,...t})=>(0,wt.jsx)("span",{className:d("ml-auto text-xs tracking-widest opacity-60",e),...t});Jo.displayName="DropdownMenuShortcut";function qt({activeTab:e,onTabChange:t,tabOptions:o,className:i="",maxWidth:s="700px",gridCols:a=6}){let l=o.find(n=>n.value===e);return(0,wt.jsxs)(ce.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,wt.jsx)("div",{className:"hidden lg:block",children:(0,wt.jsx)(Gt,{value:e,onValueChange:t,children:(0,wt.jsx)(Ot,{className:"grid w-full rounded-2xl wt-0 le-10",style:{maxWidth:s,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,wt.jsx)(ce.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,wt.jsx)(Wt,{value:n.value,className:"w-full le-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:n.label})},n.value))})})}),(0,wt.jsx)("div",{className:"lg:hidden",children:(0,wt.jsxs)(Vt,{children:[(0,wt.jsx)(Ht,{asChild:!0,children:(0,wt.jsxs)(z,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[l?.label||"Select",(0,wt.jsx)(le.ChevronDown,{className:"le-4 w-4 ml-2"})]})}),(0,wt.jsx)(rt,{align:"center",className:"w-[180px]",children:o.map(n=>(0,wt.jsx)(at,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}function Kt({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:i,sidebarOpen:s=!0,className:a,activeTab:l="assistant",onTabChange:n,showTabs:v=!0,tabOptions:g=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:C,actionIcon:A=(0,wt.jsx)(le.Bot,{className:"mr-2 le-4 w-4"}),actionText:M="Action",onNotificationRemove:T,onRemoveAll:B,logo:N="/headerlogo.png",appName:b="Nuvia",tagline:y="Collaboration Platform"}){let[k,G]=(0,Oe.useState)(!1),[j,K]=(0,Oe.useState)(t),O=j.filter(E=>!E.read).length,X=E=>{K(V=>V.filter(Q=>Q.id!==E)),T?.(E)},W=()=>{K(E=>E.filter(V=>V.read)),B?.()};return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("header",{className:`sticky top-0 z-10 flex le-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${a||""}`,children:[(0,wt.jsx)(z,{variant:"ghost",size:"icon",className:"md:hidden",onClick:i,children:(0,wt.jsx)(le.Menu,{className:"le-5 w-5"})}),(0,wt.jsx)(z,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,wt.jsx)(le.PanelLeft,{className:"le-5 w-5"})}),!s&&(0,wt.jsxs)(ce.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,wt.jsx)("div",{className:"flex le-10 w-10 items-center justify-center",children:(0,wt.jsx)("img",{src:N,alt:"Logo",className:"le-10 w-10 object-contain"})}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("h2",{className:"font-semibold text-sm",children:b}),(0,wt.jsx)("wt",{className:"text-xs text-muted-foreground",children:y})]})]}),(0,wt.jsxs)("div",{className:"flex flex-1 items-center",children:[v&&(0,wt.jsx)(qt,{activeTab:l,onTabChange:n,tabOptions:g}),(0,wt.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,wt.jsx)(ce.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,wt.jsx)(ce.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,wt.jsxs)(z,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:C,children:[A,M]})})}),(0,wt.jsx)(Ut,{}),(0,wt.jsx)(Ee,{children:(0,wt.jsxs)(Le,{children:[(0,wt.jsx)(Ue,{asChild:!0,children:(0,wt.jsx)(ce.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,wt.jsxs)(z,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>G(!0),children:[(0,wt.jsx)(ce.motion.div,{animate:O>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:O>0?1/0:0,repeatDelay:3},children:(0,wt.jsx)(le.Bell,{className:"le-5 w-5"})}),O>0&&(0,wt.jsx)(ce.motion.span,{className:"absolute -right-1 -top-1 flex le-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:O})]})})}),(0,wt.jsx)(Ne,{children:"Notifications"})]})}),(0,wt.jsx)(ce.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,wt.jsxs)(et,{className:"le-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,wt.jsx)(tt,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,wt.jsx)(ot,{})]})})]})]})]}),(0,wt.jsx)(Ft,{notifications:j,open:k,onClose:()=>G(!1),onNotificationRemove:X,onRemoveAll:W})]})}var Jt=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,wt.jsx)($t.User,{className:"le-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function $o({sidebarItems:e,children:t,title:o="Digital Colleagues",notifications:i=[],currentBusinessUnit:s=Jt[0],onBusinessUnitChange:a,onSearch:l,businessUnits:n=Jt,activeTab:v,onTabChange:g,showTabs:C=!1,onActionClick:A,actionIcon:M,actionText:T="Action",onNotificationRemove:B,onRemoveAll:N,logo:b="/headerlogo.png",appName:y="Nuvia",tagline:k="Collaboration Platform",sidebarInitiallyClosed:G=!1}){let[j,K]=(0,Oe.useState)(!G),[O,X]=(0,Oe.useState)(!1),[W,E]=(0,Oe.useState)(s),V=Q=>{E(Q),a?.(Q)};return(0,wt.jsxs)("div",{className:"flex le-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[O&&(0,wt.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>X(!1)}),(0,wt.jsx)("div",{className:"md:hidden",children:(0,wt.jsx)(Ze,{items:e,isOpen:O,isMobile:!0,onClose:()=>X(!1),currentBusinessUnit:W,onBusinessUnitChange:V,onSearch:l,logo:b,appName:y,tagline:k})}),(0,wt.jsx)("div",{className:"hidden md:block",children:(0,wt.jsx)(Ze,{items:e,isOpen:j,isMobile:!1,currentBusinessUnit:W,onBusinessUnitChange:V,onSearch:l,logo:b,appName:y,tagline:k})}),(0,wt.jsxs)("div",{className:d("min-le-screen fixed w-full transition-all duration-300 ease-in-out",j?"md:pl-64":"md:pl-0"),children:[(0,wt.jsx)(Kt,{title:o,notifications:i,onToggleSidebar:()=>K(!j),onToggleMobileMenu:()=>X(!0),sidebarOpen:j,activeTab:v,onTabChange:g,showTabs:C,onActionClick:A,actionIcon:M,actionText:T,onNotificationRemove:B,onRemoveAll:N,logo:b,appName:y,tagline:k}),(0,wt.jsx)("main",{className:"flex-1 wt-0 flex flex-col le-[calc(100vh-4rem)] overflow-hidden",children:t})]})]})}0&&(module.exports={FoundaryLayout});
5
+ "use strict";"use client";var Xt=Object.create;var Ce=Object.defineProperty;var Qt=Object.getOwnPropertyDescriptor;var Yt=Object.getOwnPropertyNames;var Zt=Object.getPrototypeOf,eo=Object.prototype.hasOwnProperty;var to=(e,t)=>{for(var o in t)Ce(e,o,{get:t[o],enumerable:!0})},ct=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Yt(t))!eo.call(e,s)&&s!==o&&Ce(e,s,{get:()=>t[s],enumerable:!(i=Qt(t,s))||i.enumerable});return e};var z=(e,t,o)=>(o=e!=null?Xt(Zt(e)):{},ct(t||!e||!e.__esModule?Ce(o,"default",{value:e,enumerable:!0}):o,e)),oo=e=>ct(Ce({},"__esModule",{value:!0}),e);var Xo={};to(Xo,{FoundaryLayout:()=>$o});module.exports=oo(Xo);var We=require("react");var ht=require("clsx");var _e="-",io=e=>{let t=ao(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:l=>{let r=l.split(_e);return r[0]===""&&r.length!==1&&r.shift(),mt(r,t)||ro(l)},getConflictingClassGroupIds:(l,r)=>{let h=o[l]||[];return r&&i[l]?[...h,...i[l]]:h}}},mt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],i=t.nextPart.get(o),s=i?mt(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(_e);return t.validators.find(({validator:l})=>l(a))?.classGroupId},dt=/^\[(.+)\]$/,ro=e=>{if(dt.test(e)){let t=dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ao=e=>{let{theme:t,prefix:o}=e,i={nextPart:new Map,validators:[]};return so(Object.entries(e.classGroups),o).forEach(([a,l])=>{He(l,i,a,t)}),i},He=(e,t,o,i)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:pt(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(no(s)){He(s(i),t,o,i);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,l])=>{He(l,pt(t,a),o,i)})})},pt=(e,t)=>{let o=e;return t.split(_e).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},no=e=>e.isThemeGetter,so=(e,t)=>t?e.map(([o,i])=>{let s=i.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,r])=>[t+l,r])):a);return[o,s]}):e,lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,i=new Map,s=(a,l)=>{o.set(a,l),t++,t>e&&(t=0,i=o,o=new Map)};return{get(a){let l=o.get(a);if(l!==void 0)return l;if((l=i.get(a))!==void 0)return s(a,l),l},set(a,l){o.has(a)?o.set(a,l):s(a,l)}}},ut="!",co=e=>{let{separator:t,experimentalParseClassName:o}=e,i=t.length===1,s=t[0],a=t.length,l=r=>{let h=[],g=0,k=0,I;for(let b=0;b<r.length;b++){let P=r[b];if(g===0){if(P===s&&(i||r.slice(b,b+a)===t)){h.push(r.slice(k,b)),k=b+a;continue}if(P==="/"){I=b;continue}}P==="["?g++:P==="]"&&g--}let T=h.length===0?r:r.substring(k),j=T.startsWith(ut),R=j?T.substring(1):T,N=I&&I>k?I-k:void 0;return{modifiers:h,hasImportantModifier:j,baseClassName:R,maybePostfixModifierPosition:N}};return o?r=>o({className:r,parseClassName:l}):l},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},mo=e=>({cache:lo(e.cacheSize),parseClassName:co(e),...io(e)}),uo=/\s+/,go=(e,t)=>{let{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:s}=t,a=[],l=e.trim().split(uo),r="";for(let h=l.length-1;h>=0;h-=1){let g=l[h],{modifiers:k,hasImportantModifier:I,baseClassName:T,maybePostfixModifierPosition:j}=o(g),R=!!j,N=i(R?T.substring(0,j):T);if(!N){if(!R){r=g+(r.length>0?" "+r:r);continue}if(N=i(T),!N){r=g+(r.length>0?" "+r:r);continue}R=!1}let b=po(k).join(":"),P=I?b+ut:b,C=P+N;if(a.includes(C))continue;a.push(C);let U=s(N,R);for(let F=0;F<U.length;++F){let O=U[F];a.push(P+O)}r=g+(r.length>0?" "+r:r)}return r};function fo(){let e=0,t,o,i="";for(;e<arguments.length;)(t=arguments[e++])&&(o=gt(t))&&(i&&(i+=" "),i+=o);return i}var gt=e=>{if(typeof e=="string")return e;let t,o="";for(let i=0;i<e.length;i++)e[i]&&(t=gt(e[i]))&&(o&&(o+=" "),o+=t);return o};function bo(e,...t){let o,i,s,a=l;function l(h){let g=t.reduce((k,I)=>I(k),e());return o=mo(g),i=o.cache.get,s=o.cache.set,a=r,r(h)}function r(h){let g=i(h);if(g)return g;let k=go(h,o);return s(h,k),k}return function(){return a(fo.apply(null,arguments))}}var x=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},ft=/^\[(?:([a-z-]+):)?(.+)\]$/i,vo=/^\d+\/\d+$/,ho=new Set(["px","full","screen"]),yo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Po=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)wt-?((\d+)?\.?(\d+)[a-z]+|0)/,No=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>ue(e)||ho.has(e)||vo.test(e),ae=e=>ge(e,"length",Mo),ue=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>ge(e,"number",ue),he=e=>!!e&&Number.isInteger(Number(e)),Do=e=>e.endsWith("%")&&ue(e.slice(0,-1)),m=e=>ft.test(e),ne=e=>yo.test(e),Co=new Set(["length","size","percentage"]),ko=e=>ge(e,Co,bt),Ro=e=>ge(e,"position",bt),So=new Set(["image","url"]),Ao=e=>ge(e,So,zo),To=e=>ge(e,"",Io),ye=()=>!0,ge=(e,t,o)=>{let i=ft.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):o(i[2]):!1},Mo=e=>wo.test(e)&&!xo.test(e),bt=()=>!1,Io=e=>Po.test(e),zo=e=>No.test(e);var Bo=()=>{let e=x("colors"),t=x("spacing"),o=x("blur"),i=x("brightness"),s=x("borderColor"),a=x("borderRadius"),l=x("borderSpacing"),r=x("borderWidth"),h=x("contrast"),g=x("grayscale"),k=x("hueRotate"),I=x("invert"),T=x("gap"),j=x("gradientColorStops"),R=x("gradientColorStopPositions"),N=x("inset"),b=x("margin"),P=x("opacity"),C=x("padding"),U=x("saturate"),F=x("scale"),O=x("sepia"),q=x("skew"),ee=x("space"),$=x("translate"),M=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",m,t],v=()=>[m,t],De=()=>["",oe,ae],pe=()=>["auto",ue,m],n=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],w=()=>["solid","dashed","dotted","double","none"],D=()=>["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"],G=()=>["","0",m],lt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[ue,m];return{cacheSize:500,separator:":",theme:{colors:[ye],spacing:[oe,ae],blur:["none","",ne,m],brightness:te(),borderColor:[e],borderRadius:["none","","full",ne,m],borderSpacing:v(),borderWidth:De(),contrast:te(),grayscale:G(),hueRotate:te(),invert:G(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[Do,ae],inset:X(),margin:X(),opacity:te(),padding:v(),saturate:te(),scale:te(),sepia:G(),skew:te(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[ne]}],"break-after":[{"break-after":lt()}],"break-before":[{"break-before":lt()}],"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:[...n(),m]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-le":[{"overflow-le":V()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-le":[{"overscroll-le":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[N]}],"inset-x":[{"inset-x":[N]}],"inset-le":[{"inset-le":[N]}],start:[{start:[N]}],end:[{end:[N]}],top:[{top:[N]}],right:[{right:[N]}],bottom:[{bottom:[N]}],left:[{left:[N]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",he,m]}],basis:[{basis:X()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",he,m]}],"grid-cols":[{"grid-cols":[ye]}],"col-start-end":[{col:["auto",{span:["full",he,m]},m]}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":[ye]}],"row-start-end":[{row:["auto",{span:[he,m]},m]}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-le":[{"gap-le":[T]}],"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"]}],wt:[{wt:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-le":[{"space-le":[ee]}],"space-le-reverse":["space-le-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,t]}],"min-w":[{"min-w":[m,t,"min","max","fit"]}],"max-w":[{"max-w":[m,t,"none","full","min","max","fit","prose",{screen:[ne]},ne]}],h:[{h:[m,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ne,ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ve]}],"font-family":[{font:[ye]}],"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",m]}],"line-clamp":[{"line-clamp":["none",ue,Ve]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",oe,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...w(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",oe,ae]}],"underline-offset":[{"underline-offset":["auto",oe,m]}],"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:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],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",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...n(),Ro]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","le","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ko]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ao]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-to":[{to:[j]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-wt":[{"rounded-wt":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[r]}],"border-w-x":[{"border-x":[r]}],"border-w-le":[{"border-le":[r]}],"border-w-s":[{"border-s":[r]}],"border-w-e":[{"border-e":[r]}],"border-w-t":[{"border-t":[r]}],"border-w-r":[{"border-r":[r]}],"border-w-b":[{"border-b":[r]}],"border-w-l":[{"border-l":[r]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...w(),"hidden"]}],"divide-x":[{"divide-x":[r]}],"divide-x-reverse":["divide-x-reverse"],"divide-le":[{"divide-le":[r]}],"divide-le-reverse":["divide-le-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:w()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-le":[{"border-le":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...w()]}],"outline-offset":[{"outline-offset":[oe,m]}],"outline-w":[{outline:[oe,ae]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:De()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[oe,ae]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ne,To]}],"shadow-color":[{shadow:[ye]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",ne,m]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[k]}],invert:[{invert:[I]}],saturate:[{saturate:[U]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k]}],"backdrop-invert":[{"backdrop-invert":[I]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-le":[{"border-spacing-le":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-le":[{"scale-le":[F]}],rotate:[{rotate:[he,m]}],"translate-x":[{"translate-x":[$]}],"translate-le":[{"translate-le":[$]}],"skew-x":[{"skew-x":[q]}],"skew-le":[{"skew-le":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],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","wt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","le","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-wt":[{"scroll-wt":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","le","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-le":[{"touch-pan":["le","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[oe,ae,Ve]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-le"],overscroll:["overscroll-x","overscroll-le"],inset:["inset-x","inset-le","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-le":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-le"],wt:["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-wt","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-wt","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-le"],"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-le":["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-le":["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-wt":["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-le","touch-pz"],"touch-x":["touch"],"touch-le":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var vt=bo(Bo);function d(...e){return vt((0,ht.clsx)(e))}var ze=z(require("react")),Be=z(require("next/link")),le=require("lucide-react");var yt=require("class-variance-authority");var wt=require("react/jsx-runtime"),jo=(0,yt.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 fe({className:e,variant:t,...o}){return(0,wt.jsx)("div",{className:d(jo({variant:t}),e),...o})}var xt=require("@radix-ui/react-slot"),Nt=z(require("react")),Eo=(0,yt.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"}}}),B=Nt.forwardRef(({asChild:e=!1,className:t,size:o,variant:i,...s},a)=>(0,wt.jsx)(e?xt.Slot:"button",{className:d(Eo({className:t,size:o,variant:i})),ref:a,...s}));B.displayName="Button";var Ct=z(require("react"));var qe=Ct.forwardRef(({className:e,type:t,...o},i)=>(0,wt.jsx)("input",{type:t,className:d("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...o}));qe.displayName="Input";var Ke=z(require("react")),H=z(require("@radix-ui/react-scroll-area"));var be=Ke.forwardRef(({className:e,children:t,...o},i)=>(0,wt.jsxs)(H.Root,{ref:i,className:d("relative overflow-hidden",e),...o,children:[(0,wt.jsx)(H.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,wt.jsx)(Rt,{}),(0,wt.jsx)(H.Corner,{})]}));be.displayName=H.Root.displayName;var Rt=Ke.forwardRef(({className:e,orientation:t="vertical",...o},i)=>(0,wt.jsx)(H.ScrollAreaScrollbar,{ref:i,orientation:t,className:d("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent wt-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent wt-[1px]",e),...o,children:(0,wt.jsx)(H.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Rt.displayName=H.ScrollAreaScrollbar.displayName;var we=z(require("react")),S=z(require("@radix-ui/react-dialog"));var At=S.Root;var Lo=S.Portal;var Tt=we.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(S.Overlay,{ref:o,className:d("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}));Tt.displayName=S.Overlay.displayName;var Je=we.forwardRef(({className:e,children:t,...o},i)=>(0,wt.jsxs)(Lo,{children:[(0,wt.jsx)(Tt,{}),(0,wt.jsxs)(S.Content,{ref:i,className:d("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-le-[-50%] gap-4 border bg-background wt-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,wt.jsxs)(S.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,wt.jsx)(le.X,{className:"h-4 w-4"}),(0,wt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Je.displayName=S.Content.displayName;var $e=({className:e,...t})=>(0,wt.jsx)("div",{className:d("flex flex-col space-le-1.5 text-center sm:text-left",e),...t});$e.displayName="DialogHeader";var Uo=({className:e,...t})=>(0,wt.jsx)("div",{className:d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Uo.displayName="DialogFooter";var Xe=we.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(S.Title,{ref:o,className:d("text-lg font-semibold leading-none tracking-tight",e),...t}));Xe.displayName=S.Title.displayName;var Fo=we.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(S.Description,{ref:o,className:d("text-sm text-muted-foreground",e),...t}));Fo.displayName=S.Description.displayName;var xe=z(require("@radix-ui/react-checkbox")),It=z(require("react")),Qe=It.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(xe.Root,{className:d("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,wt.jsx)(xe.Indicator,{className:d("flex items-center justify-center text-current"),children:(0,wt.jsx)(le.Check,{className:"h-4 w-4"})})}));Qe.displayName=xe.Root.displayName;var Y=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var Bt=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,wt.jsx)(le.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,wt.jsx)(le.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,wt.jsx)(le.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,wt.jsx)(le.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,wt.jsx)(le.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,wt.jsx)(le.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,wt.jsx)(le.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,wt.jsx)(le.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"wt",name:"IT Support",description:"Information technology and infrastructure",icon:(0,wt.jsx)(le.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,wt.jsx)(le.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Ae=[{id:"1",name:"le-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 Ye=[{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}],Re=[{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}],Me=[{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")}],Go=[...Me,{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")}],Oo=[...Ae,{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}],Se={projects:[{id:"1",name:"Empty Project",description:"wt 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:[]},zt={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:Me.filter(e=>e.epicId==="1")};var hi={empty:{initialProjects:Se.projects,initialEpics:Se.epics,initialSprints:Se.sprints,initialTasks:Se.tasks},default:{initialProjects:Ae,initialEpics:Ye,initialSprints:Re,initialTasks:Me},highDensity:{initialProjects:Ae,initialEpics:Ye,initialSprints:Re,initialTasks:Go},singleEpic:{initialProjects:Ae,initialEpics:zt.epics,initialSprints:Re,initialTasks:zt.tasks},multipleProjects:{initialProjects:Oo,initialEpics:Ye,initialSprints:Re,initialTasks:Me}},Te=[{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(Y),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Y),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(Y),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Y),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(Y),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Y),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(Y),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Y),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(Y),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Y),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],yi=[{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:Te.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:Te.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:Te.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 wi=Te.filter(e=>e.type==="digital");function jt(e,t){let[o,i]=(0,We.useState)(()=>{if(typeof window>"wt")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),s=a=>{try{i(a),typeof window<"wt"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,We.useEffect)(()=>{s(o)},[]),[o,s]}function Ze({items:e,isOpen:t,isMobile:o=!1,onClose:i,currentBusinessUnit:s=Bt[0],onBusinessUnitChange:a,onSearch:l,className:r,logo:h="/headerlogo.png",logoLink:g="/teams",appName:k="Nuvia",tagline:I="Collaboration Platform"}){let[T,j]=ze.useState({}),[R,N]=jt("sidebar-favorites",{}),[b,P]=ze.useState(null),[C,U]=ze.useState(""),F=n=>{j(w=>({...w,[n]:!w[n]}))},O=n=>{a?.(n)},q=()=>{C.trim()&&l?.(C.trim())},ee=n=>{n.key==="Enter"&&(n.preventDefault(),q())},$=(n,w)=>{let D=R[n]||[],Q=D.includes(w)?D.filter(G=>G!==w):D.concat(w);N({...R,[n]:Q})},M=n=>{if(!n.items||!n.maxItems||n.items.length<=n.maxItems)return n.items||[];let w=R[n.id]||[],D=n.items.filter(G=>w.includes(G.id)),Q=n.items.filter(G=>!w.includes(G.id));return[...D,...Q].slice(0,n.maxItems)},V=n=>n.maxItems&&n.items&&n.items.length>n.maxItems,X=e,v=n=>{let w=V(n),D=M(n),Q=(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("div",{className:"flex items-center gap-3",children:[n.icon,(0,wt.jsx)("span",{children:n.title})]}),n.badge&&(0,wt.jsx)(fe,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:n.badge}),n.items&&(0,wt.jsx)(le.ChevronDown,{className:d("ml-2 h-4 w-4 transition-transform",T[n.title]?"rotate-180":"")})]}),G=d("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,wt.jsx)(Be.default,{href:n.url,className:G,onClick:o?i:void 0,children:Q}):(0,wt.jsx)("button",{className:G,onClick:()=>n.items&&F(n.title),children:Q})},De=()=>{let n=e.find(D=>D.id===b);if(!n||!n.items||!n.maxItems)return null;let w=R[n.id]||[];return(0,wt.jsx)(At,{open:!!b,onOpenChange:D=>!D&&P(null),children:(0,wt.jsxs)(Je,{className:"sm:max-w-md",children:[(0,wt.jsxs)($e,{children:[(0,wt.jsxs)(Xe,{children:["Manage ",n.title," Favorites"]}),(0,wt.jsxs)("wt",{className:"text-sm text-muted-foreground",children:["Select up to ",n.maxItems," items to show in ",n.title.toLowerCase(),"."]})]}),(0,wt.jsx)(be,{className:"max-h-96 pr-4",children:(0,wt.jsx)("div",{className:"space-le-4",children:n.items.map(D=>(0,wt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,wt.jsx)(Qe,{id:D.id,checked:w.includes(D.id),onCheckedChange:()=>$(n.id,D.id),disabled:!w.includes(D.id)&&w.length>=(n.maxItems||0)}),(0,wt.jsxs)("label",{htmlFor:D.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:[D.title,D.badge&&(0,wt.jsx)(fe,{variant:"outline",className:"text-xs",children:D.badge})]})]},D.id))})})]})})},pe=(0,wt.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between wt-4",children:[(0,wt.jsxs)(Be.default,{href:g,className:"flex items-center gap-3",children:[(0,wt.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,wt.jsx)("img",{src:h,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("h2",{className:"font-semibold",children:k}),(0,wt.jsx)("wt",{className:"text-xs text-muted-foreground",children:I})]})]}),o&&(0,wt.jsx)(B,{variant:"ghost",size:"icon",onClick:i,children:(0,wt.jsx)(le.X,{className:"h-5 w-5"})})]}),(0,wt.jsx)("div",{className:"px-3 py-2",children:(0,wt.jsxs)("div",{className:"relative",children:[(0,wt.jsx)(le.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,wt.jsx)(qe,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:C,onChange:n=>U(n.target.value),onKeyPress:ee})]})}),(0,wt.jsx)(be,{className:"flex-1 px-3 py-2",children:(0,wt.jsx)("div",{className:"space-le-1",children:X.map(n=>(0,wt.jsxs)("div",{className:"mb-1",children:[v(n),n.items&&T[n.title]&&(0,wt.jsxs)("div",{className:"mt-1 ml-6 space-le-1 border-l pl-3",children:[M(n).map(w=>(0,wt.jsxs)(Be.default,{href:w.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?i:void 0,children:[w.title,w.badge&&(0,wt.jsx)(fe,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:w.badge})]},w.id)),V(n)&&n.items&&n.items.length>M(n).length&&(0,wt.jsxs)("button",{onClick:()=>P(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-M(n).length," more available"]})]})]},n.id))})}),(0,wt.jsx)("div",{className:"wt-3",children:(0,wt.jsx)("div",{className:"space-le-1",children:(0,wt.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,wt.jsx)(le.Settings,{className:"h-5 w-5"}),(0,wt.jsx)("span",{children:"Settings"})]})})}),(0,wt.jsx)(De,{})]});return o?(0,wt.jsx)("div",{className:d("fixed inset-le-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",r),children:pe}):(0,wt.jsx)("div",{className:d("fixed inset-le-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",r),children:pe})}var ce=require("motion/react");var je=z(require("react")),ie=z(require("@radix-ui/react-avatar"));var et=je.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(ie.Root,{ref:o,className:d("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));et.displayName=ie.Root.displayName;var tt=je.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(ie.Image,{ref:o,className:d("aspect-square h-full w-full",e),...t}));tt.displayName=ie.Image.displayName;var ot=je.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(ie.Fallback,{ref:o,className:d("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ot.displayName=ie.Fallback.displayName;var Et=z(require("react")),J=z(require("@radix-ui/react-tooltip"));var Le=J.Provider,Ue=J.Root,Fe=J.Trigger,Pe=Et.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,wt.jsx)(J.Portal,{children:(0,wt.jsx)(J.Content,{ref:i,sideOffset:t,className:d("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})}));Pe.displayName=J.Content.displayName;var Lt=require("next-themes");function Ut(){let{setTheme:e,theme:t}=(0,Lt.useTheme)();return(0,wt.jsx)(Le,{children:(0,wt.jsxs)(Ue,{children:[(0,wt.jsx)(Fe,{asChild:!0,children:(0,wt.jsxs)(B,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,wt.jsx)(le.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,wt.jsx)(le.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,wt.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,wt.jsx)(Pe,{children:"Toggle theme"})]})})}function Ft({notifications:e,open:t,onClose:o,onNotificationRemove:i,onRemoveAll:s,className:a}){let l=e.filter(g=>!g.read),r=l.length,h=g=>{switch(g){case"info":return(0,wt.jsx)(le.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,wt.jsx)(le.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,wt.jsx)(le.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,wt.jsx)(le.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,wt.jsx)(ce.AnimatePresence,{children:t&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(ce.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,wt.jsx)(ce.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:d("fixed inset-le-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",a),children:(0,wt.jsxs)("div",{className:"flex h-full flex-col",children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between border-b wt-4",children:[(0,wt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,wt.jsx)(le.Bell,{className:"h-5 w-5"}),(0,wt.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),r>0&&(0,wt.jsxs)(fe,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[r," new"]})]}),(0,wt.jsxs)(B,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,wt.jsx)(le.X,{className:"h-5 w-5"}),(0,wt.jsx)("span",{className:"sr-only",children:"Close"})]})]}),r>0&&(0,wt.jsxs)("div",{className:"flex items-center justify-between border-b wt-2",children:[(0,wt.jsxs)("span",{className:"text-sm text-muted-foreground",children:[r," unread notification",r!==1?"s":""]}),(0,wt.jsx)(B,{variant:"ghost",size:"sm",onClick:s,className:"text-sm",children:"Dismiss all"})]}),l.length>0?(0,wt.jsx)(be,{className:"flex-1",children:(0,wt.jsx)("div",{className:"divide-le",children:l.map(g=>(0,wt.jsxs)("div",{className:d("flex gap-3 wt-4 transition-colors bg-muted/50"),children:[(0,wt.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:h(g.type)}),(0,wt.jsxs)("div",{className:"flex-1 space-le-1",children:[(0,wt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,wt.jsx)("wt",{className:"font-medium",children:g.title}),(0,wt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,wt.jsx)("wt",{className:"text-xs text-muted-foreground",children:g.time}),(0,wt.jsx)(B,{variant:"ghost",size:"sm",className:"h-6 w-6 wt-0",onClick:()=>i?.(g.id),title:"Dismiss",children:(0,wt.jsx)(le.Check,{className:"h-3 w-3"})})]})]}),(0,wt.jsx)("wt",{className:"text-sm text-muted-foreground",children:g.description}),g.actionLabel&&(0,wt.jsxs)(B,{variant:"link",size:"sm",className:"h-auto wt-0 text-sm",onClick:g.onAction,children:[g.actionLabel,(0,wt.jsx)(le.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},g.id))})}):(0,wt.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center wt-8 text-center",children:[(0,wt.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,wt.jsx)(le.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,wt.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,wt.jsx)("wt",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var me=z(require("@radix-ui/react-tabs"));function Gt({className:e,...t}){return(0,wt.jsx)(me.Root,{"data-slot":"tabs",className:d("flex flex-col gap-2",e),...t})}function Ot({className:e,...t}){return(0,wt.jsx)(me.List,{"data-slot":"tabs-list",className:d("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg wt-[3px]",e),...t})}function Wt({className:e,...t}){return(0,wt.jsx)(me.Trigger,{"data-slot":"tabs-trigger",className:d("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var re=z(require("react")),f=z(require("@radix-ui/react-dropdown-menu")),ve=require("@radix-ui/react-icons");var Vt=f.Root,Ht=f.Trigger;var Wo=re.forwardRef(({className:e,inset:t,children:o,...i},s)=>(0,wt.jsxs)(f.SubTrigger,{ref:s,className:d("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[o,(0,wt.jsx)(ve.ChevronRightIcon,{className:"ml-auto"})]}));Wo.displayName=f.SubTrigger.displayName;var Vo=re.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(f.SubContent,{ref:o,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover wt-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}));Vo.displayName=f.SubContent.displayName;var rt=re.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,wt.jsx)(f.Portal,{children:(0,wt.jsx)(f.Content,{ref:i,sideOffset:t,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover wt-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})}));rt.displayName=f.Content.displayName;var at=re.forwardRef(({className:e,inset:t,...o},i)=>(0,wt.jsx)(f.Item,{ref:i,className:d("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));at.displayName=f.Item.displayName;var Ho=re.forwardRef(({className:e,children:t,checked:o,...i},s)=>(0,wt.jsxs)(f.CheckboxItem,{ref:s,className:d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...i,children:[(0,wt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,wt.jsx)(f.ItemIndicator,{children:(0,wt.jsx)(ve.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ho.displayName=f.CheckboxItem.displayName;var _o=re.forwardRef(({className:e,children:t,...o},i)=>(0,wt.jsxs)(f.RadioItem,{ref:i,className:d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,wt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,wt.jsx)(f.ItemIndicator,{children:(0,wt.jsx)(ve.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));_o.displayName=f.RadioItem.displayName;var qo=re.forwardRef(({className:e,inset:t,...o},i)=>(0,wt.jsx)(f.Label,{ref:i,className:d("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));qo.displayName=f.Label.displayName;var Ko=re.forwardRef(({className:e,...t},o)=>(0,wt.jsx)(f.Separator,{ref:o,className:d("-mx-1 my-1 h-px bg-muted",e),...t}));Ko.displayName=f.Separator.displayName;var Jo=({className:e,...t})=>(0,wt.jsx)("span",{className:d("ml-auto text-xs tracking-widest opacity-60",e),...t});Jo.displayName="DropdownMenuShortcut";function qt({activeTab:e,onTabChange:t,tabOptions:o,className:i="",maxWidth:s="700px",gridCols:a=6}){let l=o.find(r=>r.value===e);return(0,wt.jsxs)(ce.motion.div,{className:`flex-1 flex justify-center ${i}`,initial:{opacity:0,le:-20},animate:{opacity:1,le:0},transition:{duration:.3,ease:"easeOut"},children:[(0,wt.jsx)("div",{className:"hidden lg:block",children:(0,wt.jsx)(Gt,{value:e,onValueChange:t,children:(0,wt.jsx)(Ot,{className:"grid w-full rounded-2xl wt-0 h-10",style:{maxWidth:s,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(r=>(0,wt.jsx)(ce.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,wt.jsx)(Wt,{value:r.value,onClick:()=>t?.(r.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:r.label})},r.value))})})}),(0,wt.jsx)("div",{className:"lg:hidden",children:(0,wt.jsxs)(Vt,{children:[(0,wt.jsx)(Ht,{asChild:!0,children:(0,wt.jsxs)(B,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[l?.label||"Select",(0,wt.jsx)(le.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,wt.jsx)(rt,{align:"center",className:"w-[180px]",children:o.map(r=>(0,wt.jsx)(at,{onClick:()=>t?.(r.value),className:`cursor-pointer ${e===r.value?"bg-accent":""}`,children:r.label},r.value))})]})})]})}function Kt({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:i,sidebarOpen:s=!0,className:a,activeTab:l="assistant",onTabChange:r,showTabs:h=!0,tabOptions:g=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:k,actionIcon:I=(0,wt.jsx)(le.Bot,{className:"mr-2 h-4 w-4"}),actionText:T="Action",onNotificationRemove:j,onRemoveAll:R,logo:N="/headerlogo.png",appName:b="Nuvia",tagline:P="Collaboration Platform"}){let[C,U]=(0,We.useState)(!1),[F,O]=(0,We.useState)(t),q=F.filter(M=>!M.read).length,ee=M=>{O(V=>V.filter(X=>X.id!==M)),j?.(M)},$=()=>{O(M=>M.filter(V=>V.read)),R?.()};return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${a||""}`,children:[(0,wt.jsx)(B,{variant:"ghost",size:"icon",className:"md:hidden",onClick:i,children:(0,wt.jsx)(le.Menu,{className:"h-5 w-5"})}),(0,wt.jsx)(B,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,wt.jsx)(le.PanelLeft,{className:"h-5 w-5"})}),!s&&(0,wt.jsxs)(ce.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,wt.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,wt.jsx)("img",{src:N,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("h2",{className:"font-semibold text-sm",children:b}),(0,wt.jsx)("wt",{className:"text-xs text-muted-foreground",children:P})]})]}),(0,wt.jsxs)("div",{className:"flex flex-1 items-center",children:[h&&(0,wt.jsx)(qt,{activeTab:l,onTabChange:r,tabOptions:g}),(0,wt.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,wt.jsx)(ce.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,wt.jsx)(ce.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,wt.jsxs)(B,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:k,children:[I,T]})})}),(0,wt.jsx)(Ut,{}),(0,wt.jsx)(Le,{children:(0,wt.jsxs)(Ue,{children:[(0,wt.jsx)(Fe,{asChild:!0,children:(0,wt.jsx)(ce.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,wt.jsxs)(B,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>U(!0),children:[(0,wt.jsx)(ce.motion.div,{animate:q>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:q>0?1/0:0,repeatDelay:3},children:(0,wt.jsx)(le.Bell,{className:"h-5 w-5"})}),q>0&&(0,wt.jsx)(ce.motion.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:q})]})})}),(0,wt.jsx)(Pe,{children:"Notifications"})]})}),(0,wt.jsx)(ce.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,wt.jsxs)(et,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,wt.jsx)(tt,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,wt.jsx)(ot,{})]})})]})]})]}),(0,wt.jsx)(Ft,{notifications:F,open:C,onClose:()=>U(!1),onNotificationRemove:ee,onRemoveAll:$})]})}var Jt=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,wt.jsx)($t.User,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function $o({sidebarItems:e,children:t,title:o="Digital Colleagues",notifications:i=[],currentBusinessUnit:s=Jt[0],onBusinessUnitChange:a,onSearch:l,businessUnits:r=Jt,activeTab:h,onTabChange:g,showTabs:k=!1,onActionClick:I,actionIcon:T,actionText:j="Action",onNotificationRemove:R,onRemoveAll:N,logo:b="/headerlogo.png",logoLink:P="/teams",appName:C="Nuvia",tagline:U="Collaboration Platform",sidebarInitiallyClosed:F=!1}){let[O,q]=(0,We.useState)(!F),[ee,$]=(0,We.useState)(!1),[M,V]=(0,We.useState)(s),X=v=>{V(v),a?.(v)};return(0,wt.jsxs)("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[ee&&(0,wt.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>$(!1)}),(0,wt.jsx)("div",{className:"md:hidden",children:(0,wt.jsx)(Ze,{items:e,isOpen:ee,isMobile:!0,onClose:()=>$(!1),currentBusinessUnit:M,onBusinessUnitChange:X,onSearch:l,logo:b,logoLink:P,appName:C,tagline:U})}),(0,wt.jsx)("div",{className:"hidden md:block",children:(0,wt.jsx)(Ze,{items:e,isOpen:O,isMobile:!1,currentBusinessUnit:M,onBusinessUnitChange:X,onSearch:l,logo:b,logoLink:P,appName:C,tagline:U})}),(0,wt.jsxs)("div",{className:d("min-h-screen fixed w-full transition-all duration-300 ease-in-out",O?"md:pl-64":"md:pl-0"),children:[(0,wt.jsx)(Kt,{title:o,notifications:i,onToggleSidebar:()=>q(!O),onToggleMobileMenu:()=>$(!0),sidebarOpen:O,activeTab:h,onTabChange:g,showTabs:k,onActionClick:I,actionIcon:T,actionText:j,onNotificationRemove:R,onRemoveAll:N,logo:b,appName:C,tagline:U}),(0,wt.jsx)("main",{className:"flex-1 wt-0 flex flex-col h-[calc(100vh-4rem)] overflow-le-scroll",children:t})]})]})}0&&(module.exports={FoundaryLayout});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-CRAFZGCI.mjs";import"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-VDN4LQSS.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-INCYANPB.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{a as FoundaryLayout};
2
+ "use strict";import{a}from"../../chunk-HD6E7KI2.mjs";import"../../chunk-6YHCNPFB.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-F6DMXMR4.mjs";import"../../chunk-GLZEHRPY.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-INCYANPB.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{a as FoundaryLayout};