cortex-react-components 1.63.0 → 1.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/dist/{chunk-2IJK3AE7.mjs → chunk-22SIVBWN.mjs} +1 -1
  2. package/dist/{chunk-NXV22G4T.mjs → chunk-2ELCHEGN.mjs} +1 -1
  3. package/dist/chunk-33ZXPMQU.mjs +1 -0
  4. package/dist/{chunk-PADGOK5C.mjs → chunk-37NBXA5G.mjs} +1 -1
  5. package/dist/{chunk-6XMDC6MI.mjs → chunk-4HUH5XA2.mjs} +1 -1
  6. package/dist/{chunk-SN4DCMUU.mjs → chunk-4ZRLE77J.mjs} +1 -1
  7. package/dist/chunk-6NZJ2VXQ.mjs +1 -0
  8. package/dist/chunk-6U663VXT.mjs +1 -0
  9. package/dist/{chunk-Z2U42GC3.mjs → chunk-6XGUOJCN.mjs} +1 -1
  10. package/dist/{chunk-N363IQBL.mjs → chunk-ANTK5LAD.mjs} +1 -1
  11. package/dist/{chunk-R52W36TJ.mjs → chunk-AVBIHINB.mjs} +1 -1
  12. package/dist/{chunk-SSV5U7GW.mjs → chunk-C7TTHOHB.mjs} +1 -1
  13. package/dist/{chunk-3AUZS6TK.mjs → chunk-CGBMXBIY.mjs} +1 -1
  14. package/dist/{chunk-4FVKNM6C.mjs → chunk-CLYDQSRN.mjs} +1 -1
  15. package/dist/{chunk-PJ7KGG2L.mjs → chunk-CVJOGMQM.mjs} +1 -1
  16. package/dist/{chunk-PBRC3UOA.mjs → chunk-DAJNZDN6.mjs} +1 -1
  17. package/dist/{chunk-NX6L3JEA.mjs → chunk-DINASYAM.mjs} +1 -1
  18. package/dist/{chunk-6HVZ5G3G.mjs → chunk-EDY4LLVN.mjs} +1 -1
  19. package/dist/{chunk-GZP2BSIJ.mjs → chunk-ERUB6LU6.mjs} +1 -1
  20. package/dist/{chunk-WTQ7QZRC.mjs → chunk-F2D7YJEV.mjs} +1 -1
  21. package/dist/chunk-FFESN4FM.mjs +1 -0
  22. package/dist/{chunk-CYEI7ZEM.mjs → chunk-FLGGV2UV.mjs} +1 -1
  23. package/dist/chunk-G72SIYN7.mjs +4 -0
  24. package/dist/{chunk-PMXMC5CA.mjs → chunk-I4GEIHT2.mjs} +1 -1
  25. package/dist/{chunk-BEOBHG7Z.mjs → chunk-IE5CASFG.mjs} +1 -1
  26. package/dist/chunk-K44ECXTN.mjs +1 -0
  27. package/dist/{chunk-SX5U74MW.mjs → chunk-KETV2XVN.mjs} +1 -1
  28. package/dist/chunk-L45A6K4C.mjs +1 -0
  29. package/dist/chunk-MEWCJ4MA.mjs +1 -0
  30. package/dist/chunk-MFDZCI2F.mjs +1 -0
  31. package/dist/{chunk-VNGK6ACI.mjs → chunk-MRJQKF4Z.mjs} +1 -1
  32. package/dist/{chunk-YLBXDW77.mjs → chunk-NAGM6QT5.mjs} +1 -1
  33. package/dist/{chunk-YZIXPIYP.mjs → chunk-NWEA3O2Q.mjs} +1 -1
  34. package/dist/chunk-OIQ6GXBY.mjs +4 -0
  35. package/dist/chunk-P3PIMDIR.mjs +1 -0
  36. package/dist/chunk-PFWODHNV.mjs +1 -0
  37. package/dist/chunk-PPUE5IPA.mjs +1 -0
  38. package/dist/{chunk-WI6JBSNW.mjs → chunk-PY7TFY5K.mjs} +1 -1
  39. package/dist/{chunk-I3HJJ3O6.mjs → chunk-Q2MJWHFZ.mjs} +1 -1
  40. package/dist/{chunk-2CVUW74E.mjs → chunk-Q5LSCSF7.mjs} +1 -1
  41. package/dist/{chunk-FQPOVP4A.mjs → chunk-QNIE2MLB.mjs} +1 -1
  42. package/dist/{chunk-BGQKHEB3.mjs → chunk-QUOLG5NC.mjs} +1 -1
  43. package/dist/{chunk-BRNBNHPP.mjs → chunk-RHB4QMWH.mjs} +1 -1
  44. package/dist/chunk-ROEJPYRW.mjs +1 -0
  45. package/dist/{chunk-3PVDUJNF.mjs → chunk-STHWCR5K.mjs} +1 -1
  46. package/dist/{chunk-7U6VVPQK.mjs → chunk-STQACD6R.mjs} +1 -1
  47. package/dist/{chunk-ZYYWN6XG.mjs → chunk-SUO6GOJS.mjs} +1 -1
  48. package/dist/{chunk-4GL57G4E.mjs → chunk-T2ZS5P67.mjs} +1 -1
  49. package/dist/{chunk-E3HCMSS7.mjs → chunk-TASJS6US.mjs} +1 -1
  50. package/dist/{chunk-AZHIBMT6.mjs → chunk-TFIAEOF6.mjs} +1 -1
  51. package/dist/chunk-TWPRI2XQ.mjs +1 -0
  52. package/dist/{chunk-QEQ5FQDS.mjs → chunk-UQASICDL.mjs} +1 -1
  53. package/dist/{chunk-FYEE5UWZ.mjs → chunk-UVPODMUO.mjs} +1 -1
  54. package/dist/{chunk-2BYCSW34.mjs → chunk-VCZPEEMH.mjs} +1 -1
  55. package/dist/chunk-VFTAB4PN.mjs +1 -0
  56. package/dist/{chunk-IC57R2EU.mjs → chunk-VXGRJCCM.mjs} +1 -1
  57. package/dist/{chunk-JKRLWXXO.mjs → chunk-VZVXDVOI.mjs} +1 -1
  58. package/dist/{chunk-T6FBWMZR.mjs → chunk-WKFNZUIR.mjs} +1 -1
  59. package/dist/{chunk-DXOIGG75.mjs → chunk-WLU4QF2Z.mjs} +1 -1
  60. package/dist/{chunk-AU5HS6FK.mjs → chunk-XFEBBW2G.mjs} +1 -1
  61. package/dist/{chunk-SKQYQ4SD.mjs → chunk-YVADLIYB.mjs} +1 -1
  62. package/dist/{chunk-YUZINX2Q.mjs → chunk-Z3YAIJQT.mjs} +1 -1
  63. package/dist/{chunk-ZY2PDUUB.mjs → chunk-Z6NED523.mjs} +1 -1
  64. package/dist/chunk-ZEOV7BEN.mjs +1 -0
  65. package/dist/components/Blocks/Banner.mjs +1 -1
  66. package/dist/components/Blocks/CallToAction.mjs +1 -1
  67. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  68. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  69. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  70. package/dist/components/Blocks/Content.mjs +1 -1
  71. package/dist/components/Blocks/Content.stories.mjs +1 -1
  72. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  73. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  74. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  75. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  76. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  77. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  78. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  79. package/dist/components/Blocks/index.mjs +1 -1
  80. package/dist/components/CRM/CogeBoard.css +1 -0
  81. package/dist/components/CRM/CogeBoard.d.ts +14 -0
  82. package/dist/components/CRM/CogeBoard.js +4 -0
  83. package/dist/components/CRM/CogeBoard.mjs +2 -0
  84. package/dist/components/CRM/CogeBoard.stories.css +1 -0
  85. package/dist/components/CRM/CogeBoard.stories.js +4 -0
  86. package/dist/components/CRM/CogeBoard.stories.mjs +1 -0
  87. package/dist/components/CRM/DealCard.d.ts +2 -1
  88. package/dist/components/CRM/DealCard.js +1 -1
  89. package/dist/components/CRM/DealCard.mjs +1 -1
  90. package/dist/components/CRM/DealCard.stories.js +1 -1
  91. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  92. package/dist/components/CRM/DealDetails.js +1 -1
  93. package/dist/components/CRM/DealDetails.mjs +1 -1
  94. package/dist/components/CRM/DealDetails.stories.js +1 -1
  95. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  96. package/dist/components/CRM/KanbanBoard.js +1 -1
  97. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  98. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  99. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  100. package/dist/components/CRM/KanbanColumn.d.ts +6 -5
  101. package/dist/components/CRM/KanbanColumn.js +1 -1
  102. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  103. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  104. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  105. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  106. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  107. package/dist/components/CRM/NewDealForm.mjs +1 -1
  108. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  109. package/dist/components/CRM/index.js +1 -1
  110. package/dist/components/CRM/index.mjs +1 -1
  111. package/dist/components/CRM/types.d.ts +1 -0
  112. package/dist/components/CRM/types.js +1 -1
  113. package/dist/components/Cards/ContentCard.mjs +1 -1
  114. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  115. package/dist/components/Cards/FeatureCard.mjs +1 -1
  116. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  117. package/dist/components/Cards/index.mjs +1 -1
  118. package/dist/components/DigitalColleagues/AddEpicModal.js +1 -1
  119. package/dist/components/DigitalColleagues/AddEpicModal.mjs +1 -1
  120. package/dist/components/DigitalColleagues/AddEpicModal.stories.js +67 -67
  121. package/dist/components/DigitalColleagues/AddEpicModal.stories.mjs +1 -1
  122. package/dist/components/DigitalColleagues/AddSprintModal.css +1 -0
  123. package/dist/components/DigitalColleagues/AddSprintModal.d.ts +9 -0
  124. package/dist/components/DigitalColleagues/AddSprintModal.js +4 -0
  125. package/dist/components/DigitalColleagues/AddSprintModal.mjs +1 -0
  126. package/dist/components/DigitalColleagues/AddTaskModal.js +1 -1
  127. package/dist/components/DigitalColleagues/AddTaskModal.mjs +1 -1
  128. package/dist/components/DigitalColleagues/AddTaskModal.stories.js +64 -64
  129. package/dist/components/DigitalColleagues/AddTaskModal.stories.mjs +1 -1
  130. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  131. package/dist/components/DigitalColleagues/ChatInterface.stories.mjs +1 -1
  132. package/dist/components/DigitalColleagues/CommentSection.mjs +1 -1
  133. package/dist/components/DigitalColleagues/CommentSection.stories.mjs +1 -1
  134. package/dist/components/DigitalColleagues/DashboardHeader.d.ts +2 -1
  135. package/dist/components/DigitalColleagues/DashboardHeader.js +1 -1
  136. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  137. package/dist/components/DigitalColleagues/DashboardHeader.stories.js +15 -15
  138. package/dist/components/DigitalColleagues/DashboardHeader.stories.mjs +1 -1
  139. package/dist/components/DigitalColleagues/EditableField.mjs +1 -1
  140. package/dist/components/DigitalColleagues/EditableField.stories.mjs +1 -1
  141. package/dist/components/DigitalColleagues/EpicFilter.stories.js +66 -66
  142. package/dist/components/DigitalColleagues/EpicFilter.stories.mjs +1 -1
  143. package/dist/components/DigitalColleagues/EpicsView.css +1 -0
  144. package/dist/components/DigitalColleagues/EpicsView.d.ts +13 -0
  145. package/dist/components/DigitalColleagues/EpicsView.js +1 -0
  146. package/dist/components/DigitalColleagues/EpicsView.mjs +1 -0
  147. package/dist/components/DigitalColleagues/EpicsView.stories.css +1 -0
  148. package/dist/components/DigitalColleagues/EpicsView.stories.js +218 -0
  149. package/dist/components/DigitalColleagues/EpicsView.stories.mjs +1 -0
  150. package/dist/components/DigitalColleagues/KanbanBoard.d.ts +12 -0
  151. package/dist/components/DigitalColleagues/KanbanBoard.js +2 -2
  152. package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
  153. package/dist/components/DigitalColleagues/KanbanBoard.stories.js +3 -3
  154. package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
  155. package/dist/components/DigitalColleagues/KanbanColumn.stories.js +1 -1
  156. package/dist/components/DigitalColleagues/KanbanColumn.stories.mjs +1 -1
  157. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  158. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  159. package/dist/components/DigitalColleagues/ManagementSidebar.d.ts +7 -3
  160. package/dist/components/DigitalColleagues/ManagementSidebar.js +1 -1
  161. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  162. package/dist/components/DigitalColleagues/ManagementSidebar.stories.js +63 -63
  163. package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
  164. package/dist/components/DigitalColleagues/PlanningView.d.ts +1 -0
  165. package/dist/components/DigitalColleagues/PlanningView.js +4 -1
  166. package/dist/components/DigitalColleagues/PlanningView.mjs +1 -1
  167. package/dist/components/DigitalColleagues/PlanningView.stories.js +3 -217
  168. package/dist/components/DigitalColleagues/PlanningView.stories.mjs +1 -1
  169. package/dist/components/DigitalColleagues/TaskCard.js +1 -1
  170. package/dist/components/DigitalColleagues/TaskCard.mjs +1 -1
  171. package/dist/components/DigitalColleagues/TaskCard.stories.js +55 -55
  172. package/dist/components/DigitalColleagues/TaskCard.stories.mjs +1 -1
  173. package/dist/components/DigitalColleagues/TaskDetailsModal.js +1 -1
  174. package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
  175. package/dist/components/DigitalColleagues/TaskDetailsModal.stories.js +1 -218
  176. package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -1
  177. package/dist/components/DigitalColleagues/TaskSidebar.js +1 -1
  178. package/dist/components/DigitalColleagues/TaskSidebar.mjs +1 -1
  179. package/dist/components/DigitalColleagues/TaskSidebar.stories.js +1 -1
  180. package/dist/components/DigitalColleagues/TaskSidebar.stories.mjs +1 -1
  181. package/dist/components/DigitalColleagues/TeamSwitcher.stories.js +1 -218
  182. package/dist/components/DigitalColleagues/TeamSwitcher.stories.mjs +1 -1
  183. package/dist/components/HeaderFooter/Header.mjs +1 -1
  184. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  185. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  186. package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
  187. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  188. package/dist/components/HeaderFooter/index.mjs +1 -1
  189. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  190. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  191. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  192. package/dist/components/Heros/PostHero/index.mjs +1 -1
  193. package/dist/components/Heros/RenderHero.mjs +1 -1
  194. package/dist/components/Heros/index.mjs +1 -1
  195. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  196. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  197. package/dist/components/Holidays/index.mjs +1 -1
  198. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  199. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  200. package/dist/components/Layouts/Print.mjs +1 -1
  201. package/dist/components/Layouts/Print.stories.mjs +1 -1
  202. package/dist/components/Layouts/SlideShow.mjs +1 -1
  203. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  204. package/dist/components/Layouts/index.mjs +1 -1
  205. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  206. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  207. package/dist/components/Menus/SidebarRight.mjs +1 -1
  208. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  209. package/dist/components/Menus/index.mjs +1 -1
  210. package/dist/components/Payload/Card/index.mjs +1 -1
  211. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  212. package/dist/components/Payload/Media/index.mjs +1 -1
  213. package/dist/components/Payload/RichText/index.mjs +1 -1
  214. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  215. package/dist/components/Payload/RichText.stories.mjs +1 -1
  216. package/dist/components/Payload/index.mjs +1 -1
  217. package/dist/components/index.js +7 -7
  218. package/dist/components/index.mjs +1 -1
  219. package/dist/components/ui/index.mjs +1 -1
  220. package/dist/components/ui/sidebar.mjs +1 -1
  221. package/dist/globals.css +1 -1
  222. package/dist/hooks/index.mjs +1 -1
  223. package/dist/index.js +10 -10
  224. package/dist/index.mjs +1 -1
  225. package/dist/metafile-cjs.json +1 -1
  226. package/dist/metafile-esm.json +1 -1
  227. package/dist/pages/Blog.mjs +1 -1
  228. package/dist/pages/Blog.stories.mjs +1 -1
  229. package/dist/pages/Documentation.mjs +1 -1
  230. package/dist/pages/Documentation.stories.mjs +1 -1
  231. package/dist/pages/IndexPage.mjs +1 -1
  232. package/dist/pages/IndexPage.stories.mjs +1 -1
  233. package/dist/pages/Intranet.mjs +1 -1
  234. package/dist/pages/Intranet.stories.mjs +1 -1
  235. package/dist/pages/LandingPage.mjs +1 -1
  236. package/dist/pages/LandingPage.stories.mjs +1 -1
  237. package/dist/pages/Page.mjs +1 -1
  238. package/dist/pages/Page.stories.mjs +1 -1
  239. package/dist/pages/Printable.stories.mjs +1 -1
  240. package/dist/pages/Publish.mjs +1 -1
  241. package/dist/pages/Publish.stories.mjs +1 -1
  242. package/dist/pages/Website.mjs +1 -1
  243. package/dist/pages/Website.stories.mjs +1 -1
  244. package/dist/payload-types.d.ts +118 -110
  245. package/dist/payload-types.js +1 -1
  246. package/dist/sections/AboutSection.mjs +1 -1
  247. package/dist/sections/AboutSection.stories.mjs +1 -1
  248. package/dist/sections/BlogDetail.mjs +1 -1
  249. package/dist/sections/BlogDetail.stories.mjs +1 -1
  250. package/dist/sections/BlogList.mjs +1 -1
  251. package/dist/sections/BlogList.stories.mjs +1 -1
  252. package/dist/sections/BlogListSection.mjs +1 -1
  253. package/dist/sections/BlogListSection.stories.mjs +1 -1
  254. package/dist/sections/ContactSection.mjs +1 -1
  255. package/dist/sections/ContactSection.stories.mjs +1 -1
  256. package/dist/sections/ImageSection.stories.mjs +1 -1
  257. package/dist/sections/PageSections.mjs +1 -1
  258. package/dist/sections/PageSections.stories.mjs +1 -1
  259. package/dist/sections/PricingSection.mjs +1 -1
  260. package/dist/sections/PricingSection.stories.mjs +1 -1
  261. package/dist/sections/ServiceDetail.mjs +1 -1
  262. package/dist/sections/ServiceDetailSection.mjs +1 -1
  263. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  264. package/dist/sections/ServiceSection.mjs +1 -1
  265. package/dist/sections/ServiceSection.stories.mjs +1 -1
  266. package/dist/sections/form/index.mjs +1 -1
  267. package/dist/sections/index.mjs +1 -1
  268. package/package.json +1 -1
  269. package/dist/chunk-3OLVHVK2.mjs +0 -1
  270. package/dist/chunk-7LF2QW5F.mjs +0 -1
  271. package/dist/chunk-A7ZACVB3.mjs +0 -4
  272. package/dist/chunk-HOQ3CJDL.mjs +0 -1
  273. package/dist/chunk-IAACGKX2.mjs +0 -1
  274. package/dist/chunk-N3ZBFP4A.mjs +0 -1
  275. package/dist/chunk-OTT43GVL.mjs +0 -1
  276. package/dist/chunk-QUONAVFG.mjs +0 -1
  277. package/dist/chunk-QVIJOCZ5.mjs +0 -1
  278. package/dist/chunk-RWM3YI4H.mjs +0 -1
  279. package/dist/chunk-VATD3NQA.mjs +0 -1
  280. package/dist/chunk-XJZCX25R.mjs +0 -1
  281. package/dist/chunk-XPS3NXF3.mjs +0 -1
  282. package/dist/chunk-YUSO4OFY.mjs +0 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";var io=Object.create;var pt=Object.defineProperty;var no=Object.getOwnPropertyDescriptor;var so=Object.getOwnPropertyNames;var lo=Object.getPrototypeOf,co=Object.prototype.hasOwnProperty;var mo=(e,t)=>{for(var a in t)pt(e,a,{get:t[a],enumerable:!0})},Wt=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of so(t))!co.call(e,i)&&i!==a&&pt(e,i,{get:()=>t[i],enumerable:!(o=no(t,i))||o.enumerable});return e};var J=(e,t,a)=>(a=e!=null?io(lo(e)):{},Wt(t||!e||!e.__esModule?pt(a,"default",{value:e,enumerable:!0}):a,e)),po=e=>Wt(pt({},"__esModule",{value:!0}),e);var Jr={};mo(Jr,{KanbanBoard:()=>Kr});module.exports=po(Jr);var we=require("react");var Qt=require("class-variance-authority");var Yt=require("clsx");var Rt="-",uo=e=>{let t=go(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:d=>{let l=d.split(Rt);return l[0]===""&&l.length!==1&&l.shift(),jt(l,t)||fo(d)},getConflictingClassGroupIds:(d,l)=>{let n=a[d]||[];return l&&o[d]?[...n,...o[d]]:n}}},jt=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),i=o?jt(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;let r=e.join(Rt);return t.validators.find(({validator:d})=>d(r))?.classGroupId},_t=/^\[(.+)\]$/,fo=e=>{if(_t.test(e)){let t=_t.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},go=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return vo(Object.entries(e.classGroups),a).forEach(([r,d])=>{Ct(d,o,r,t)}),o},Ct=(e,t,a,o)=>{e.forEach(i=>{if(typeof i=="string"){let r=i===""?t:$t(t,i);r.classGroupId=a;return}if(typeof i=="function"){if(bo(i)){Ct(i(o),t,a,o);return}t.validators.push({validator:i,classGroupId:a});return}Object.entries(i).forEach(([r,d])=>{Ct(d,$t(t,r),a,o)})})},$t=(e,t)=>{let a=e;return t.split(Rt).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},bo=e=>e.isThemeGetter,vo=(e,t)=>t?e.map(([a,o])=>{let i=o.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([d,l])=>[t+d,l])):r);return[a,i]}):e,ho=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,i=(r,d)=>{a.set(r,d),t++,t>e&&(t=0,o=a,a=new Map)};return{get(r){let d=a.get(r);if(d!==void 0)return d;if((d=o.get(r))!==void 0)return i(r,d),d},set(r,d){a.has(r)?a.set(r,d):i(r,d)}}},Kt="!",xo=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,i=t[0],r=t.length,d=l=>{let n=[],f=0,m=0,R;for(let x=0;x<l.length;x++){let A=l[x];if(f===0){if(A===i&&(o||l.slice(x,x+r)===t)){n.push(l.slice(m,x)),m=x+r;continue}if(A==="/"){R=x;continue}}A==="["?f++:A==="]"&&f--}let M=n.length===0?l:l.substring(m),S=M.startsWith(Kt),v=S?M.substring(1):M,I=R&&R>m?R-m:void 0;return{modifiers:n,hasImportantModifier:S,baseClassName:v,maybePostfixModifierPosition:I}};return a?l=>a({className:l,parseClassName:d}):d},yo=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},wo=e=>({cache:ho(e.cacheSize),parseClassName:xo(e),...uo(e)}),No=/\ea+/,So=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:i}=t,r=[],d=e.trim().split(No),l="";for(let n=d.length-1;n>=0;n-=1){let f=d[n],{modifiers:m,hasImportantModifier:R,baseClassName:M,maybePostfixModifierPosition:S}=a(f),v=!!S,I=o(v?M.substring(0,S):M);if(!I){if(!v){l=f+(l.length>0?" "+l:l);continue}if(I=o(M),!I){l=f+(l.length>0?" "+l:l);continue}v=!1}let x=yo(m).join(":"),A=R?x+Kt:x,h=A+I;if(r.includes(h))continue;r.push(h);let V=i(I,v);for(let _=0;_<V.length;++_){let p=V[_];r.push(A+p)}l=f+(l.length>0?" "+l:l)}return l};function Co(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Jt(t))&&(o&&(o+=" "),o+=a);return o}var Jt=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Jt(e[o]))&&(a&&(a+=" "),a+=t);return a};function Ro(e,...t){let a,o,i,r=d;function d(n){let f=t.reduce((m,R)=>R(m),e());return a=wo(f),o=a.cache.get,i=a.cache.set,r=l,l(n)}function l(n){let f=o(n);if(f)return f;let m=So(n,a);return i(n,m),m}return function(){return r(Co.apply(null,arguments))}}var j=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},qt=/^\[(?:([a-ea-]+):)?(.+)\]$/i,Do=/^\d+\/\d+$/,ko=new Set(["px","full","screen"]),Po=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,To=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|ea|min|max))|\ea(calc|min|max|clamp)\(.+\)|^0$/,Mo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Eo=/^(inset_)?-?((\d+)?\.?(\d+)[a-ea]+|0)_-?((\d+)?\.?(\d+)[a-ea]+|0)/,Io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ne=e=>Je(e)||ko.has(e)||Do.test(e),Ee=e=>qe(e,"length",Vo),Je=e=>!!e&&!Number.isNaN(Number(e)),St=e=>qe(e,"number",Je),at=e=>!!e&&Number.isInteger(Number(e)),Ao=e=>e.endsWith("%")&&Je(e.slice(0,-1)),k=e=>qt.test(e),Ie=e=>Po.test(e),Lo=new Set(["length","size","percentage"]),Bo=e=>qe(e,Lo,Xt),zo=e=>qe(e,"position",Xt),Fo=new Set(["image","url"]),Oo=e=>qe(e,Fo,Uo),Ho=e=>qe(e,"",Go),ot=()=>!0,qe=(e,t,a)=>{let o=qt.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Vo=e=>To.test(e)&&!Mo.test(e),Xt=()=>!1,Go=e=>Eo.test(e),Uo=e=>Io.test(e);var Wo=()=>{let e=j("colors"),t=j("spacing"),a=j("blur"),o=j("brightness"),i=j("borderColor"),r=j("borderRadius"),d=j("borderSpacing"),l=j("borderWidth"),n=j("contrast"),f=j("grayscale"),m=j("hueRotate"),R=j("invert"),M=j("gap"),S=j("gradientColorStops"),v=j("gradientColorStopPositions"),I=j("inset"),x=j("margin"),A=j("opacity"),h=j("padding"),V=j("saturate"),_=j("scale"),p=j("sepia"),H=j("skew"),K=j("space"),re=j("translate"),pe=()=>["auto","contain","none"],Pe=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto",k,t],G=()=>[k,t],$e=()=>["",Ne,Ee],Te=()=>["auto",Je,k],je=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Me=()=>["solid","dashed","dotted","double","none"],Ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Fe=()=>["start","end","center","between","around","evenly","stretch"],g=()=>["","0",k],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Je,k];return{cacheSize:500,separator:":",theme:{colors:[ot],spacing:[Ne,Ee],blur:["none","",Ie,k],brightness:$(),borderColor:[e],borderRadius:["none","","full",Ie,k],borderSpacing:G(),borderWidth:$e(),contrast:$(),grayscale:g(),hueRotate:$(),invert:g(),gap:G(),gradientColorStops:[e],gradientColorStopPositions:[Ao,Ee],inset:be(),margin:be(),opacity:$(),padding:G(),saturate:$(),scale:$(),sepia:g(),skew:$(),space:G(),translate:G()},classGroups:{aspect:[{aspect:["auto","square","video",k]}],container:["container"],columns:[{columns:[Ie]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"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:[...je(),k]}],overflow:[{overflow:Pe()}],"overflow-x":[{"overflow-x":Pe()}],"overflow-ea":[{"overflow-ea":Pe()}],overscroll:[{overscroll:pe()}],"overscroll-x":[{"overscroll-x":pe()}],"overscroll-ea":[{"overscroll-ea":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[I]}],"inset-x":[{"inset-x":[I]}],"inset-ea":[{"inset-ea":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],ea:[{ea:["auto",at,k]}],basis:[{basis:be()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",k]}],grow:[{grow:g()}],shrink:[{shrink:g()}],order:[{order:["first","last","none",at,k]}],"grid-cols":[{"grid-cols":[ot]}],"col-start-end":[{col:["auto",{span:["full",at,k]},k]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[ot]}],"row-start-end":[{row:["auto",{span:[at,k]},k]}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",k]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",k]}],gap:[{gap:[M]}],"gap-x":[{"gap-x":[M]}],"gap-ea":[{"gap-ea":[M]}],"justify-content":[{justify:["normal",...Fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],ea:[{ea:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-ea":[{"space-ea":[K]}],"space-ea-reverse":["space-ea-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",k,t]}],"min-w":[{"min-w":[k,t,"min","max","fit"]}],"max-w":[{"max-w":[k,t,"none","full","min","max","fit","prose",{screen:[Ie]},Ie]}],h:[{h:[k,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[k,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ie,Ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",St]}],"font-family":[{font:[ot]}],"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",k]}],"line-clamp":[{"line-clamp":["none",Je,St]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ne,k]}],"list-image":[{"list-image":["none",k]}],"list-style-type":[{list:["none","disc","decimal",k]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ne,Ee]}],"underline-offset":[{"underline-offset":["auto",Ne,k]}],"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:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k]}],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",k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...je(),zo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","ea","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","ea","bl","l","tl"]},Oo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[r]}],"rounded-ea":[{"rounded-ea":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-ea":[{"rounded-ea":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ea":[{"rounded-ea":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-ea":[{"border-ea":[l]}],"border-w-ea":[{"border-ea":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-ea":[{"border-ea":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Me(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-ea":[{"divide-ea":[l]}],"divide-ea-reverse":["divide-ea-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Me()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-ea":[{"border-ea":[i]}],"border-color-ea":[{"border-ea":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-ea":[{"border-ea":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Me()]}],"outline-offset":[{"outline-offset":[Ne,k]}],"outline-w":[{outline:[Ne,Ee]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[Ne,Ee]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ie,Ho]}],"shadow-color":[{shadow:[ot]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ke()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[n]}],"drop-shadow":[{"drop-shadow":["","none",Ie,k]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[R]}],saturate:[{saturate:[V]}],sepia:[{sepia:[p]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[n]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[R]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[p]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-ea":[{"border-spacing-ea":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",k]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",k]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",k]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-ea":[{"scale-ea":[_]}],rotate:[{rotate:[at,k]}],"translate-x":[{"translate-x":[re]}],"translate-ea":[{"translate-ea":[re]}],"skew-x":[{"skew-x":[H]}],"skew-ea":[{"skew-ea":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",k]}],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","ea-resize","w-resize","de-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","ea","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-ea":[{"scroll-ea":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","ea","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-ea":[{"touch-pan":["ea","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ne,Ee,St]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-ea"],overscroll:["overscroll-x","overscroll-ea"],inset:["inset-x","inset-ea","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-ea":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-ea"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","ea","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-ea","rounded-e","rounded-t","rounded-r","rounded-ea","rounded-l","rounded-ss","rounded-se","rounded-ea","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-ea":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ea"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-ea":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-ea"],"border-w":["border-w-ea","border-w-e","border-w-t","border-w-r","border-w-ea","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-ea":["border-w-t","border-w-ea"],"border-color":["border-color-ea","border-color-e","border-color-t","border-color-r","border-color-ea","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-ea":["border-color-t","border-color-ea"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-ea","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-ea","touch-pz"],"touch-x":["touch"],"touch-ea":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Zt=Ro(Wo);function c(...e){return Zt((0,Yt.clsx)(e))}var ea=require("react/jsx-runtime"),_o=(0,Qt.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 Z({className:e,variant:t,...a}){return(0,ea.jsx)("div",{className:c(_o({variant:t}),e),...a})}var ta=require("@radix-ui/react-slot"),oa=J(require("react")),$o=(0,Qt.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-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),w=oa.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...i},r)=>(0,ea.jsx)(e?ta.Slot:"button",{className:c($o({className:t,size:a,variant:o})),ref:r,...i}));w.displayName="Button";var Oe=J(require("react"));var se=Oe.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));se.displayName="Card";var jo=Oe.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,className:c("flex flex-col space-ea-1.5 p-6",e),...t}));jo.displayName="CardHeader";var Ko=Oe.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,className:c("font-semibold leading-none tracking-tight",e),...t}));Ko.displayName="CardTitle";var Jo=Oe.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,className:c("text-sm text-muted-foreground",e),...t}));Jo.displayName="CardDescription";var qo=Oe.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,className:c("p-6 pt-0",e),...t}));qo.displayName="CardContent";var Xo=Oe.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,className:c("flex items-center p-6 pt-0",e),...t}));Xo.displayName="CardFooter";var ia=({title:e,status:t,taskCount:a,children:o,onDrop:i,isCompact:r=!1})=>{let d=f=>{f.preventDefault()},l=f=>{f.preventDefault(),i(t)};return(0,ea.jsxs)(se,{className:`p-4 bg-white border-l-4 ${(()=>{switch(t){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 ${r?"lg:max-w-xs":""}`,onDragOver:d,onDrop:l,children:[(0,ea.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ea.jsx)("h3",{className:`font-semibold text-gray-900 select-none-important ${r?"text-base":"text-lg"}`,children:e}),(0,ea.jsx)(Z,{variant:"secondary",className:"bg-gray-100 text-gray-600",children:a})]}),(0,ea.jsx)("div",{className:"space-ea-4 min-h-[200px]",children:o})]})};var de=require("lucide-react"),na=({task:e,epic:t,onDragStart:a,onTaskClick:o,isCompact:i=!1})=>{let r=m=>{a(e)},d=()=>{o(e)},l=()=>{switch(e.priority){case"high":return"bg-red-100 text-red-800 border-red-200";case"medium":return"bg-yellow-100 text-yellow-800 border-yellow-200";case"low":return"bg-green-100 text-green-800 border-green-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},n=()=>{switch(e.type){case"story":return(0,ea.jsx)(de.BookOpen,{className:"h-3 w-3"});case"bug":return(0,ea.jsx)(de.Bug,{className:"h-3 w-3"});case"spike":return(0,ea.jsx)(de.Zap,{className:"h-3 w-3"});case"task":default:return(0,ea.jsx)(de.AlertCircle,{className:"h-3 w-3"})}},f=()=>{switch(e.type){case"story":return"bg-blue-100 text-blue-800";case"bug":return"bg-red-100 text-red-800";case"spike":return"bg-purple-100 text-purple-800";case"task":default:return"bg-gray-100 text-gray-800"}};return i?(0,ea.jsxs)(se,{className:"p-3 bg-white border border-gray-200 hover:border-gray-300 cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:r,onClick:d,children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ea.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${f()}`,children:n()}),(0,ea.jsx)(Z,{className:`text-xs px-2 py-0.5 ${l()}`,children:e.priority})]}),(0,ea.jsx)("h4",{className:"font-medium text-gray-900 text-sm mb-1 line-clamp-2 select-none-important",children:e.title}),(0,ea.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-500",children:[(0,ea.jsx)(de.User,{className:"h-3 w-3"}),(0,ea.jsx)("span",{className:"truncate",children:e.assignee})]})]}):(0,ea.jsxs)(se,{className:"p-4 bg-white border border-gray-200 hover:border-gray-300 cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:r,onClick:d,children:[(0,ea.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ea.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${f()}`,children:[n(),(0,ea.jsx)("span",{className:"capitalize",children:e.type})]}),(0,ea.jsx)(Z,{className:`text-xs px-2 py-1 ${l()}`,children:e.priority})]}),(0,ea.jsx)("h4",{className:"font-semibold text-gray-900 mb-2 select-none-important",children:e.title}),(0,ea.jsx)("p",{className:"text-sm text-gray-600 mb-3 line-clamp-2 select-none-important",children:e.description}),(0,ea.jsxs)("div",{className:"flex items-center justify-between text-sm text-gray-500",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ea.jsx)(de.User,{className:"h-4 w-4"}),(0,ea.jsx)("span",{children:e.assignee})]}),(0,ea.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ea.jsx)(de.Calendar,{className:"h-4 w-4"}),(0,ea.jsx)("span",{children:e.createdAt.toLocaleDateString()})]})]})]})};var rt=J(require("react")),te=J(require("@radix-ui/react-dialog"));var Xe=te.Root;var Zo=te.Portal;var la=rt.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(te.Overlay,{ref:a,className:c("fixed inset-0 ea-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}));la.displayName=te.Overlay.displayName;var Ge=rt.forwardRef(({className:e,children:t,...a},o)=>(0,ea.jsxs)(Zo,{children:[(0,ea.jsx)(la,{}),(0,ea.jsxs)(te.Content,{ref:o,className:c("fixed left-[50%] top-[50%] ea-50 grid w-full max-w-lg translate-x-[-50%] translate-ea-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,ea.jsxs)(te.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,ea.jsx)(de.X,{className:"h-4 w-4"}),(0,ea.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ge.displayName=te.Content.displayName;var Ue=({className:e,...t})=>(0,ea.jsx)("div",{className:c("flex flex-col space-ea-1.5 text-center sm:text-left",e),...t});Ue.displayName="DialogHeader";var it=({className:e,...t})=>(0,ea.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});it.displayName="DialogFooter";var We=rt.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(te.Title,{ref:a,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));We.displayName=te.Title.displayName;var Yo=rt.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(te.Description,{ref:a,className:c("text-sm text-muted-foreground",e),...t}));Yo.displayName=te.Description.displayName;var da=J(require("react"));var Y=da.forwardRef(({className:e,type:t,...a},o)=>(0,ea.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));Y.displayName="Input";var ma=J(require("react")),ve=ma.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("textarea",{className:c("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));ve.displayName="Textarea";var L=J(require("@radix-ui/react-select")),Ae=J(require("react")),Se=L.Root;var nt=L.Value,xe=Ae.forwardRef(({children:e,className:t,...a},o)=>(0,ea.jsxs)(L.Trigger,{className:c("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,ea.jsx)(L.Icon,{asChild:!0,children:(0,ea.jsx)(de.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));xe.displayName=L.Trigger.displayName;var ua=Ae.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(L.ScrollUpButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ea.jsx)(de.ChevronUp,{className:"h-4 w-4"})}));ua.displayName=L.ScrollUpButton.displayName;var fa=Ae.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(L.ScrollDownButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ea.jsx)(de.ChevronDown,{className:"h-4 w-4"})}));fa.displayName=L.ScrollDownButton.displayName;var ye=Ae.forwardRef(({children:e,className:t,position:a="popper",...o},i)=>(0,ea.jsx)(L.Portal,{children:(0,ea.jsxs)(L.Content,{className:c("relative ea-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-ea-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-ea-1",t),position:a,ref:i,...o,children:[(0,ea.jsx)(ua,{}),(0,ea.jsx)(L.Viewport,{className:c("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ea.jsx)(fa,{})]})}));ye.displayName=L.Content.displayName;var Qo=Ae.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(L.Label,{className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Qo.displayName=L.Label.displayName;var le=Ae.forwardRef(({children:e,className:t,...a},o)=>(0,ea.jsxs)(L.Item,{className:c("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,ea.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ea.jsx)(L.ItemIndicator,{children:(0,ea.jsx)(de.Check,{className:"h-4 w-4"})})}),(0,ea.jsx)(L.ItemText,{children:e})]}));le.displayName=L.Item.displayName;var er=Ae.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(L.Separator,{className:c("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));er.displayName=L.Separator.displayName;var ga=J(require("react")),Dt=J(require("@radix-ui/react-label"));var tr=(0,Qt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),W=ga.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(Dt.Root,{ref:a,className:c(tr(),e),...t}));W.displayName=Dt.Root.displayName;var ha=[{value:"story",label:"Story",color:"bg-blue-100 text-blue-800"},{value:"task",label:"Task",color:"bg-green-100 text-green-800"},{value:"bug",label:"Bug",color:"bg-red-100 text-red-800"},{value:"spike",label:"Spike",color:"bg-purple-100 text-purple-800"}],ya=({isOpen:e,onClose:t,onAddTask:a,epics:o,sprints:i})=>{let[r,d]=(0,we.useState)({title:"",description:"",status:"todo",priority:"medium",type:"story",epicId:"",sprintId:"none",assignee:""}),l=m=>{m.preventDefault(),r.title.trim()&&r.epicId&&(a({title:r.title.trim(),description:r.description.trim(),status:"todo",priority:r.priority,type:r.type,epicId:r.epicId,sprintId:r.sprintId==="none"?void 0:r.sprintId,assignee:r.assignee.trim()||"Unassigned"}),d({title:"",description:"",status:"todo",priority:"medium",type:"story",epicId:"",sprintId:"none",assignee:""}),t())},n=(m,R)=>{d(M=>({...M,[m]:R}))},f=ha.find(m=>m.value===r.type);return(0,ea.jsx)(Xe,{open:e,onOpenChange:t,children:(0,ea.jsxs)(Ge,{className:"sm:max-w-md",children:[(0,ea.jsx)(Ue,{children:(0,ea.jsx)(We,{children:"Add New Task"})}),(0,ea.jsxs)("form",{onSubmit:l,className:"space-ea-4",children:[(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{htmlFor:"title",children:"Task Title"}),(0,ea.jsx)(Y,{id:"title",value:r.title,onChange:m=>n("title",m.target.value),placeholder:"Enter task title",required:!0})]}),(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{htmlFor:"description",children:"Description"}),(0,ea.jsx)(ve,{id:"description",value:r.description,onChange:m=>n("description",m.target.value),placeholder:"Enter task description",rows:3})]}),(0,ea.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{children:"Type"}),(0,ea.jsxs)(Se,{value:r.type,onValueChange:m=>n("type",m),children:[(0,ea.jsx)(xe,{children:(0,ea.jsx)(nt,{})}),(0,ea.jsx)(ye,{children:ha.map(m=>(0,ea.jsx)(le,{value:m.value,children:(0,ea.jsx)("div",{className:"flex items-center gap-2",children:(0,ea.jsx)(Z,{className:`text-xs ${m.color}`,children:m.label})})},m.value))})]}),f&&(0,ea.jsx)(Z,{className:`text-xs ${f.color} w-fit`,children:f.label})]}),(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{children:"Priority"}),(0,ea.jsxs)(Se,{value:r.priority,onValueChange:m=>n("priority",m),children:[(0,ea.jsx)(xe,{children:(0,ea.jsx)(nt,{})}),(0,ea.jsxs)(ye,{children:[(0,ea.jsx)(le,{value:"low",children:"Low"}),(0,ea.jsx)(le,{value:"medium",children:"Medium"}),(0,ea.jsx)(le,{value:"high",children:"High"})]})]})]})]}),(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{htmlFor:"epic",children:"Epic"}),(0,ea.jsxs)(Se,{value:r.epicId,onValueChange:m=>n("epicId",m),children:[(0,ea.jsx)(xe,{children:(0,ea.jsx)(nt,{placeholder:"Select an epic"})}),(0,ea.jsx)(ye,{children:o.map(m=>(0,ea.jsx)(le,{value:m.id,children:(0,ea.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ea.jsx)("div",{className:`w-3 h-3 rounded-full ${m.color}`}),m.name]})},m.id))})]})]}),(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,ea.jsxs)(Se,{value:r.sprintId,onValueChange:m=>n("sprintId",m),children:[(0,ea.jsx)(xe,{children:(0,ea.jsx)(nt,{placeholder:"Select a sprint"})}),(0,ea.jsxs)(ye,{children:[(0,ea.jsx)(le,{value:"none",children:"No Sprint"}),i.map(m=>(0,ea.jsx)(le,{value:m.id,children:(0,ea.jsxs)("div",{className:"flex items-center gap-2",children:[m.name,m.isActive&&(0,ea.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-1 rounded",children:"Active"})]})},m.id))]})]})]}),(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{htmlFor:"assignee",children:"Assignee"}),(0,ea.jsx)(Y,{id:"assignee",value:r.assignee,onChange:m=>n("assignee",m.target.value),placeholder:"Enter assignee name",required:!0})]}),(0,ea.jsxs)(it,{children:[(0,ea.jsx)(w,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,ea.jsx)(w,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var Pt=({fieldName:e,value:t,label:a,multiline:o=!1,onSave:i,className:r=""})=>{let[d,l]=(0,we.useState)(!1),[n,f]=(0,we.useState)(""),m=()=>{l(!0),f(t)},R=()=>{n!==t&&i(e,n),l(!1)},M=S=>{S.key==="Enter"&&!o||S.key==="Enter"&&S.ctrlKey&&o?R():S.key==="Escape"&&(l(!1),f(""))};return(0,ea.jsxs)("div",{className:`space-ea-2 ${r}`,children:[(0,ea.jsx)(W,{children:a}),d?o?(0,ea.jsx)(ve,{value:n,onChange:S=>f(S.target.value),onBlur:R,onKeyDown:M,autoFocus:!0,rows:4,className:"resize-none"}):(0,ea.jsx)(Y,{value:n,onChange:S=>f(S.target.value),onBlur:R,onKeyPress:M,autoFocus:!0,className:"text-lg font-medium"}):(0,ea.jsxs)("div",{onClick:m,className:`cursor-pointer hover:bg-gray-50 p-2 rounded border border-transparent hover:border-gray-200 transition-colors group ${o?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,ea.jsx)("span",{className:o?"text-sm text-gray-700":"text-lg font-medium text-gray-900",children:t||"Click to edit..."}),(0,ea.jsx)(de.Edit,{className:"h-4 w-4 text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var ut=J(require("react")),Re=J(require("@radix-ui/react-avatar"));var st=ut.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(Re.Root,{ref:a,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));st.displayName=Re.Root.displayName;var Tt=ut.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(Re.Image,{ref:a,className:c("aspect-square h-full w-full",e),...t}));Tt.displayName=Re.Image.displayName;var lt=ut.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(Re.Fallback,{ref:a,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));lt.displayName=Re.Fallback.displayName;var Sa=({comments:e,onAddComment:t})=>{let[a,o]=(0,we.useState)(""),i=d=>d.split(" ").map(l=>l[0]).join("").toUpperCase(),r=()=>{a.trim()&&(t(a),o(""))};return(0,ea.jsxs)("div",{className:"space-ea-4",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ea.jsx)(de.MessageSquare,{className:"h-5 w-5"}),(0,ea.jsx)(W,{className:"text-lg font-medium",children:"Comments"}),(0,ea.jsx)(Z,{variant:"secondary",children:e.length})]}),(0,ea.jsx)("div",{className:"space-ea-4 max-h-60 overflow-ea-auto",children:e.map(d=>(0,ea.jsxs)("div",{className:"flex gap-3 p-3 bg-gray-50 rounded-lg",children:[(0,ea.jsx)(st,{className:"h-8 w-8 mt-1",children:(0,ea.jsx)(lt,{className:"text-xs bg-gray-200 text-gray-700",children:i(d.author)})}),(0,ea.jsxs)("div",{className:"flex-1",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ea.jsx)("span",{className:"font-medium text-sm",children:d.author}),(0,ea.jsxs)("span",{className:"text-xs text-gray-500",children:[d.createdAt.toLocaleDateString()," at ",d.createdAt.toLocaleTimeString()]})]}),(0,ea.jsx)("p",{className:"text-sm text-gray-700",children:d.text})]})]},d.id))}),(0,ea.jsxs)("div",{className:"flex gap-2",children:[(0,ea.jsx)(ve,{value:a,onChange:d=>o(d.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,ea.jsx)(w,{onClick:r,disabled:!a.trim(),size:"sm",className:"self-end",children:(0,ea.jsx)(de.Send,{className:"h-4 w-4"})})]})]})};var Ze=({label:e,value:t,onValueChange:a,options:o,showColor:i=!1})=>{let[r,d]=(0,we.useState)(!1),l=o.find(n=>n.value===t);return(0,ea.jsxs)("div",{className:"space-ea-1",children:[(0,ea.jsx)(W,{className:"text-xs text-gray-600",children:e}),(0,ea.jsxs)(Se,{value:t,onValueChange:a,open:r,onOpenChange:d,children:[(0,ea.jsx)(xe,{className:"h-auto p-0 border-none bg-transparent hover:bg-gray-50 rounded-md",children:(0,ea.jsxs)(Z,{variant:"secondary",className:"cursor-pointer hover:bg-gray-200 transition-colors",onClick:()=>d(!r),children:[i&&l?.color&&(0,ea.jsx)("div",{className:`w-2 h-2 rounded-full ${l.color} mr-1`}),l?.label||"Select..."]})}),(0,ea.jsx)(ye,{children:o.map(n=>(0,ea.jsx)(le,{value:n.value,children:i&&n.color?(0,ea.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ea.jsx)("div",{className:`w-3 h-3 rounded-full ${n.color}`}),n.label]}):n.label},n.value))})]})]})};var Ra=({label:e,value:t,onValueChange:a,options:o,placeholder:i="Search...",allowCustomValue:r=!1})=>{let[d,l]=(0,we.useState)(!1),[n,f]=(0,we.useState)(""),m=o.find(v=>v.value===t),R=o.filter(v=>v.label.toLowerCase().includes(n.toLowerCase())),M=v=>{a(v),l(!1),f("")},S=()=>{r&&n.trim()&&!o.find(v=>v.value===n.trim())&&(a(n.trim()),l(!1),f(""))};return(0,ea.jsxs)("div",{className:"space-ea-1",children:[(0,ea.jsx)(W,{className:"text-xs text-gray-600",children:e}),(0,ea.jsxs)(Se,{value:t,onValueChange:M,open:d,onOpenChange:l,children:[(0,ea.jsx)(xe,{className:"h-auto p-0 border-none bg-transparent hover:bg-gray-50 rounded-md",children:(0,ea.jsx)(Z,{variant:"secondary",className:"cursor-pointer hover:bg-gray-200 transition-colors",onClick:()=>l(!d),children:m?.label||t||"Select..."})}),(0,ea.jsxs)(ye,{children:[(0,ea.jsx)("div",{className:"p-2",children:(0,ea.jsx)(Y,{placeholder:i,value:n,onChange:v=>f(v.target.value),onKeyDown:v=>{v.key==="Enter"&&r&&S()},className:"mb-2"})}),R.map(v=>(0,ea.jsx)(le,{value:v.value,children:v.label},v.value)),r&&n.trim()&&!R.find(v=>v.value===n.trim())&&(0,ea.jsxs)(le,{value:n.trim(),children:['Add "',n.trim(),'"']})]})]})]})};var ar=[{value:"story",label:"Story",color:"bg-blue-100 text-blue-800"},{value:"task",label:"Task",color:"bg-gray-100 text-gray-800"},{value:"bug",label:"Bug",color:"bg-red-100 text-red-800"},{value:"spike",label:"Spike",color:"bg-purple-100 text-purple-800"}],or=[{value:"John Doe",label:"John Doe"},{value:"Jane Smith",label:"Jane Smith"},{value:"Bob Wilson",label:"Bob Wilson"},{value:"Alice Johnson",label:"Alice Johnson"},{value:"Carol Brown",label:"Carol Brown"},{value:"David Lee",label:"David Lee"},{value:"Emma Davis",label:"Emma Davis"},{value:"Frank Miller",label:"Frank Miller"},{value:"Grace Taylor",label:"Grace Taylor"},{value:"Unassigned",label:"Unassigned"}],Da=({task:e,epics:t,sprints:a,lastUpdated:o,onUpdateTask:i,onClose:r,onDelete:d})=>{let l=n=>n.split(" ").map(f=>f[0]).join("").toUpperCase();return(0,ea.jsxs)("div",{className:"flex flex-col h-full",children:[(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)(W,{className:"text-xs text-gray-600 w-16",children:"Status"}),(0,ea.jsx)(Ze,{label:"",value:e.status,onValueChange:n=>i("status",n),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}]})]}),(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)(W,{className:"text-xs text-gray-600 w-16",children:"Type"}),(0,ea.jsx)(Ze,{label:"",value:e.type,onValueChange:n=>i("type",n),options:ar.map(n=>({value:n.value,label:n.label}))})]}),(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)(W,{className:"text-xs text-gray-600 w-16",children:"Priority"}),(0,ea.jsx)(Ze,{label:"",value:e.priority,onValueChange:n=>i("priority",n),options:[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}]})]}),(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)(W,{className:"text-xs text-gray-600 w-16",children:"Epic"}),(0,ea.jsx)(Ze,{label:"",value:e.epicId,onValueChange:n=>i("epicId",n),options:t.map(n=>({value:n.id,label:n.name,color:n.color})),showColor:!0})]}),(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)(W,{className:"text-xs text-gray-600 w-16",children:"Sprint"}),(0,ea.jsx)(Ze,{label:"",value:e.sprintId||"none",onValueChange:n=>i("sprintId",n==="none"?"":n),options:[{value:"none",label:"No Sprint"},...a.map(n=>({value:n.id,label:`${n.name}${n.isActive?" (Active)":""}`}))]})]}),(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)(W,{className:"text-xs text-gray-600 w-16",children:"Assignee"}),(0,ea.jsx)(Ra,{label:"",value:e.assignee,onValueChange:n=>i("assignee",n),options:or,placeholder:"Search team members...",allowCustomValue:!0})]})]}),(0,ea.jsxs)("div",{className:"mt-auto pt-4 space-ea-4",children:[(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(w,{onClick:r,variant:"outline",className:"w-full h-8 text-xs",children:"Close"}),(0,ea.jsxs)(w,{onClick:d,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,ea.jsx)(de.Trash2,{className:"h-3 w-3"}),"Delete Task"]})]}),(0,ea.jsxs)("div",{className:"pt-4 border-t border-gray-200 space-ea-2",children:[(0,ea.jsx)("div",{className:"text-xs text-gray-400 font-medium mb-2",children:"Information"}),(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)("span",{className:"text-xs text-gray-500",children:"Logged By"}),(0,ea.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[(0,ea.jsx)(de.User,{className:"h-3 w-3"}),(0,ea.jsx)("span",{children:"System"})]})]}),(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)("span",{className:"text-xs text-gray-500",children:"Created"}),(0,ea.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[(0,ea.jsx)(de.Calendar,{className:"h-3 w-3"}),(0,ea.jsx)("span",{children:e.createdAt.toLocaleDateString()})]})]}),(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)("span",{className:"text-xs text-gray-500",children:"Last Updated"}),(0,ea.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[(0,ea.jsx)(de.Clock,{className:"h-3 w-3"}),(0,ea.jsxs)("span",{children:[o.toLocaleDateString()," at ",o.toLocaleTimeString()]})]})]})]})]})]})};var ka=({isOpen:e,onClose:t,task:a,epics:o,sprints:i,onUpdateTask:r,onDeleteTask:d})=>{let[l,n]=(0,we.useState)(new Date),[f,m]=(0,we.useState)([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:a.createdAt},{id:"2",text:"Started working on the implementation.",author:a.assignee,createdAt:new Date(a.createdAt.getTime()+864e5)}]),R=(v,I)=>{I!==a[v]&&(r(a.id,{[v]:I}),n(new Date))},M=v=>{let I={id:Date.now().toString(),text:v,author:"Current User",createdAt:new Date};m([...f,I])},S=()=>{d(a.id),t()};return(0,ea.jsx)(Xe,{open:e,onOpenChange:t,children:(0,ea.jsxs)(Ge,{className:"max-w-3xl max-h-[80vh] overflow-ea-auto p-4",children:[(0,ea.jsx)(Ue,{children:(0,ea.jsx)(We,{className:"sr-only",children:a.title})}),(0,ea.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,ea.jsxs)("div",{className:"lg:col-span-2 space-ea-4",children:[(0,ea.jsx)(Pt,{fieldName:"title",value:a.title,label:"",onSave:R,className:"border-ea pb-3"}),(0,ea.jsx)(Pt,{fieldName:"description",value:a.description,label:"Description",multiline:!0,onSave:R}),(0,ea.jsx)(Sa,{comments:f,onAddComment:M})]}),(0,ea.jsx)(Da,{task:a,epics:o,sprints:i,lastUpdated:l,onUpdateTask:R,onClose:t,onDelete:S})]})]})})};var E=J(require("react"));var Pa=(e=768)=>{let[t,a]=(0,we.useState)(!1);return(0,we.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Ta=J(require("react")),It=J(require("@radix-ui/react-separator"));var At=Ta.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},i)=>(0,ea.jsx)(It.Root,{ref:i,decorative:a,orientation:t,className:c("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));At.displayName=It.Root.displayName;var dt=J(require("react")),ae=J(require("@radix-ui/react-dialog")),Ea=require("@radix-ui/react-icons");var Aa=ae.Root;var rr=ae.Portal,La=dt.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(ae.Overlay,{className:c("fixed inset-0 ea-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,ref:a}));La.displayName=ae.Overlay.displayName;var ir=(0,Qt.cva)("fixed ea-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-ea data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-ea-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-ea-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Lt=dt.forwardRef(({side:e="right",className:t,children:a,...o},i)=>(0,ea.jsxs)(rr,{children:[(0,ea.jsx)(La,{}),(0,ea.jsxs)(ae.Content,{ref:i,className:c(ir({side:e}),t),...o,children:[(0,ea.jsxs)(ae.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-secondary",children:[(0,ea.jsx)(Ea.Cross2Icon,{className:"h-4 w-4"}),(0,ea.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Lt.displayName=ae.Content.displayName;var nr=({className:e,...t})=>(0,ea.jsx)("div",{className:c("flex flex-col space-ea-2 text-center sm:text-left",e),...t});nr.displayName="SheetHeader";var sr=({className:e,...t})=>(0,ea.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});sr.displayName="SheetFooter";var lr=dt.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(ae.Title,{ref:a,className:c("text-lg font-semibold text-foreground",e),...t}));lr.displayName=ae.Title.displayName;var dr=dt.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(ae.Description,{ref:a,className:c("text-sm text-muted-foreground",e),...t}));dr.displayName=ae.Description.displayName;function Bt({className:e,...t}){return(0,ea.jsx)("div",{className:c("animate-pulse rounded-md bg-primary/10",e),...t})}var za=J(require("react")),he=J(require("@radix-ui/react-tooltip"));var Fa=he.Provider,Oa=he.Root,Ha=he.Trigger,Ft=za.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ea.jsx)(he.Portal,{children:(0,ea.jsx)(he.Content,{ref:o,sideOffset:t,className:c("ea-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),...a})}));Ft.displayName=he.Content.displayName;var cr="sidebar:state",mr=60*60*24*7,pr="16rem",ur="18rem",fr="3rem",gr="ea",Ua=E.createContext(null);function vt(){let e=E.useContext(Ua);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Ot=E.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:i,children:r,...d},l)=>{let n=Pa(),[f,m]=E.useState(!1),[R,M]=E.useState(e),S=t??R,v=E.useCallback(h=>{if(a)return a?.(typeof h=="function"?h(S):h);M(h),document.cookie=`${cr}=${S}; path=/; max-age=${mr}`},[a,S]),I=E.useCallback(()=>n?m(h=>!h):v(h=>!h),[n,v,m]);E.useEffect(()=>{let h=V=>{V.key===gr&&(V.metaKey||V.ctrlKey)&&(V.preventDefault(),I())};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[I]);let x=S?"expanded":"collapsed",A=E.useMemo(()=>({state:x,open:S,setOpen:v,isMobile:n,openMobile:f,setOpenMobile:m,toggleSidebar:I}),[x,S,v,n,f,m,I]);return(0,ea.jsx)(Ua.Provider,{value:A,children:(0,ea.jsx)(Fa,{delayDuration:0,children:(0,ea.jsx)("div",{style:{"--sidebar-width":pr,"--sidebar-width-icon":fr,...i},className:c("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:l,...d,children:r})})})});Ot.displayName="SidebarProvider";var br=E.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:i,...r},d)=>{let{isMobile:l,state:n,openMobile:f,setOpenMobile:m}=vt();return a==="none"?(0,ea.jsx)("div",{className:c("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:d,...r,children:i}):l?(0,ea.jsx)(Aa,{open:f,onOpenChange:m,...r,children:(0,ea.jsx)(Lt,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":ur},side:e,children:(0,ea.jsx)("div",{className:"flex h-full w-full flex-col",children:i})})}):(0,ea.jsxs)("div",{ref:d,className:"group peer hidden md:block text-sidebar-foreground","data-state":n,"data-collapsible":n==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,ea.jsx)("div",{className:c("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,ea.jsx)("div",{className:c("duration-200 fixed top-14 bottom-0 ea-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...r,children:(0,ea.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:i})})]})});br.displayName="Sidebar";var vr=E.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:i}=vt();return(0,ea.jsxs)(w,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:c("h-7 w-7",e),onClick:r=>{t?.(r),i()},...a,children:[(0,ea.jsx)(de.PanelLeft,{}),(0,ea.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});vr.displayName="SidebarTrigger";var hr=E.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=vt();return(0,ea.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:c("absolute inset-ea-0 ea-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-ea-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});hr.displayName="SidebarRail";var xr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("main",{ref:a,className:c("flex flex-1 flex-col bg-background overflow-ea-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));xr.displayName="SidebarInset";var yr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(Y,{ref:a,"data-sidebar":"input",className:c("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));yr.displayName="SidebarInput";var wr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,"data-sidebar":"header",className:c("flex flex-col gap-2 p-2",e),...t}));wr.displayName="SidebarHeader";var Nr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,"data-sidebar":"footer",className:c("flex flex-col gap-2 p-2",e),...t}));Nr.displayName="SidebarFooter";var Sr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(At,{ref:a,"data-sidebar":"separator",className:c("mx-2 w-auto bg-sidebar-border",e),...t}));Sr.displayName="SidebarSeparator";var Cr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,"data-sidebar":"content",className:c("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Cr.displayName="SidebarContent";var Rr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,"data-sidebar":"group",className:c("relative flex w-full min-w-0 flex-col p-2",e),...t}));Rr.displayName="SidebarGroup";var Dr=E.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ea.jsx)(t?ta.Slot:"div",{ref:o,"data-sidebar":"group-label",className:c("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Dr.displayName="SidebarGroupLabel";var kr=E.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ea.jsx)(t?ta.Slot:"button",{ref:o,"data-sidebar":"group-action",className:c("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));kr.displayName="SidebarGroupAction";var Pr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,"data-sidebar":"group-content",className:c("w-full text-sm",e),...t}));Pr.displayName="SidebarGroupContent";var Tr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("ul",{ref:a,"data-sidebar":"menu",className:c("flex w-full min-w-0 flex-col gap-1",e),...t}));Tr.displayName="SidebarMenu";var Mr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:c("group/menu-item relative",e),...t}));Mr.displayName="SidebarMenuItem";var Er=(0,Qt.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ir=E.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:i,className:r,...d},l)=>{let n=e?ta.Slot:"button",{isMobile:f,state:m}=vt(),R=(0,ea.jsx)(n,{ref:l,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:c(Er({variant:a,size:o}),r),...d});return i?(typeof i=="string"&&(i={children:i}),(0,ea.jsxs)(Oa,{children:[(0,ea.jsx)(Ha,{asChild:!0,children:R}),(0,ea.jsx)(Ft,{side:"right",align:"center",hidden:m!=="collapsed"||f,...i})]})):R});Ir.displayName="SidebarMenuButton";var Ar=E.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},i)=>(0,ea.jsx)(t?ta.Slot:"button",{ref:i,"data-sidebar":"menu-action",className:c("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));Ar.displayName="SidebarMenuAction";var Lr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:c("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Lr.displayName="SidebarMenuBadge";var Br=E.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let i=E.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,ea.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:c("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,ea.jsx)(Bt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,ea.jsx)(Bt,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});Br.displayName="SidebarMenuSkeleton";var zr=E.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:c("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));zr.displayName="SidebarMenuSub";var Fr=E.forwardRef(({...e},t)=>(0,ea.jsx)("li",{ref:t,...e}));Fr.displayName="SidebarMenuSubItem";var Or=E.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...i},r)=>(0,ea.jsx)(e?ta.Slot:"a",{ref:r,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:c("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...i}));Or.displayName="SidebarMenuSubButton";var Wa=({epics:e,sprints:t,currentView:a,onUpdateEpic:o,onDeleteEpic:i,onAddEpic:r,onAddSprint:d,onUpdateSprint:l,onDeleteSprint:n,onViewChange:f,mobileMenuOpen:m,onToggleMobileMenu:R})=>{let[M,S]=(0,we.useState)(null),[v,I]=(0,we.useState)(null),[x,A]=(0,we.useState)(null),[h,V]=(0,we.useState)({name:"",description:"",color:""}),[_,p]=(0,we.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[H,K]=(0,we.useState)(!1),[re,pe]=(0,we.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),Pe=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],be=g=>{I(g.id),V({name:g.name,description:g.description||"",color:g.color})},G=()=>{v&&h.name.trim()&&(o(v,{name:h.name.trim(),description:h.description.trim(),color:h.color}),I(null))},$e=()=>{I(null),V({name:"",description:"",color:""})},Te=g=>{A(g.id),p({name:g.name,description:g.description||"",startDate:g.startDate.toISOString().split("ea")[0],endDate:g.endDate.toISOString().split("ea")[0],isActive:g.isActive})},je=()=>{x&&_.name.trim()&&(l(x,{name:_.name.trim(),description:_.description.trim(),startDate:new Date(_.startDate),endDate:new Date(_.endDate),isActive:_.isActive}),A(null))},Me=()=>{A(null),p({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Ke=()=>{re.name.trim()&&(d({name:re.name.trim(),description:re.description.trim(),startDate:new Date(re.startDate),endDate:new Date(re.endDate),isActive:re.isActive,isSelected:!1}),pe({name:"",description:"",startDate:"",endDate:"",isActive:!1}),K(!1))},Fe=g=>{l(g,{isSelected:!0})};return(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)("div",{className:`fixed left-0 w-12 bg-slate-800 flex flex-col ea-30 flex-shrink-0 transition-transform duration-300 ${m?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[(0,ea.jsx)("button",{onClick:()=>{f("kanban"),S(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${a==="kanban"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Kanban",children:(0,ea.jsx)(de.Kanban,{className:"h-4 w-4 md:h-5 md:w-5"})}),(0,ea.jsx)("button",{onClick:()=>S(M==="epics"?null:"epics"),className:`flex-1 flex items-center justify-center text-white transition-colors ${M==="epics"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Epics",children:(0,ea.jsx)("span",{className:"text-xs font-bold transform -rotate-90 whitespace-nowrap",children:"EPICS"})}),(0,ea.jsx)("button",{onClick:()=>S(M==="sprints"?null:"sprints"),className:`flex-1 flex items-center justify-center text-white transition-colors ${M==="sprints"?"bg-green-600":"bg-green-500 hover:bg-green-600"}`,title:"Sprints",children:(0,ea.jsx)("span",{className:"text-xs font-bold transform -rotate-90 whitespace-nowrap",children:"SPRINTS"})}),(0,ea.jsx)("button",{onClick:()=>{f("planning"),S(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${a==="planning"?"bg-purple-600":"bg-purple-500 hover:bg-purple-600"} hidden md:flex`,title:"Planning",children:(0,ea.jsx)("span",{className:"text-xs font-bold transform -rotate-90 whitespace-nowrap",children:"PLANNING"})}),(0,ea.jsx)("button",{onClick:()=>{f("documentation"),S(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${a==="documentation"?"bg-orange-600":"bg-orange-500 hover:bg-orange-600"}`,title:"Documentation",children:(0,ea.jsx)(de.FileText,{className:"h-4 w-4 md:h-5 md:w-5"})})]}),m&&(0,ea.jsx)("div",{className:"md:hidden fixed inset-0 bg-black/50 ea-20",style:{top:"8.5rem"},onClick:R}),M&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)("div",{className:"fixed inset-0 bg-black/50 ea-40",style:{top:"8.5rem"},onClick:()=>S(null)}),(0,ea.jsxs)("div",{className:"fixed left-12 md:left-16 w-72 md:w-80 bg-white shadow-lg ea-50 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none",style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[(0,ea.jsxs)("div",{className:"p-3 md:p-4 border-ea flex items-center justify-between",children:[(0,ea.jsxs)("h2",{className:"text-base md:text-lg font-semibold",children:[M==="epics"&&"Manage Epics",M==="sprints"&&"Manage Sprints"]}),(0,ea.jsx)(w,{variant:"ghost",size:"sm",onClick:()=>S(null),children:(0,ea.jsx)(de.X,{className:"h-4 w-4"})})]}),(0,ea.jsxs)("div",{className:"p-3 md:p-4 space-ea-4 h-full overflow-ea-auto",children:[M==="epics"&&(0,ea.jsx)(se,{className:"p-3",children:(0,ea.jsxs)("div",{className:"space-ea-3",children:[(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)("h3",{className:"font-medium text-gray-900",children:"Epics"}),(0,ea.jsxs)(w,{size:"sm",onClick:r,className:"gap-1",children:[(0,ea.jsx)(de.Plus,{className:"h-3 w-3"}),"Add Epic"]})]}),(0,ea.jsx)("div",{className:"space-ea-3",children:e.map(g=>(0,ea.jsx)("div",{className:"border rounded-lg p-3",children:v===g.id?(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(Y,{value:h.name,onChange:F=>V($=>({...$,name:F.target.value})),placeholder:"Epic name"}),(0,ea.jsx)(ve,{value:h.description,onChange:F=>V($=>({...$,description:F.target.value})),placeholder:"Epic description",rows:2}),(0,ea.jsx)("div",{className:"flex gap-1 flex-wrap",children:Pe.map(F=>(0,ea.jsx)("button",{onClick:()=>V($=>({...$,color:F})),className:`w-6 h-6 rounded-full ${F} ${h.color===F?"ring-2 ring-gray-400":""}`},F))}),(0,ea.jsxs)("div",{className:"flex gap-2",children:[(0,ea.jsx)(w,{size:"sm",onClick:G,children:"Save"}),(0,ea.jsx)(w,{size:"sm",variant:"outline",onClick:$e,children:"Cancel"})]})]}):(0,ea.jsxs)("div",{className:`cursor-pointer p-2 rounded transition-colors ${g.isSelected?"bg-blue-50 border-blue-200":"hover:bg-gray-50"}`,onClick:()=>o(g.id,{isSelected:!g.isSelected}),children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ea.jsx)("div",{className:`w-3 h-3 rounded-full ${g.color}`}),(0,ea.jsx)("span",{className:"font-medium text-sm",children:g.name})]}),g.description&&(0,ea.jsx)("p",{className:"text-xs text-gray-600 mb-2",children:g.description}),(0,ea.jsxs)("div",{className:"flex gap-1",onClick:F=>F.stopPropagation(),children:[(0,ea.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>be(g),className:"h-6 px-2",children:(0,ea.jsx)(de.Edit2,{className:"h-3 w-3"})}),(0,ea.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>i(g.id),className:"h-6 px-2 text-red-600 hover:text-red-700",children:(0,ea.jsx)(de.Trash2,{className:"h-3 w-3"})})]})]})},g.id))})]})}),M==="sprints"&&(0,ea.jsx)(se,{className:"p-3",children:(0,ea.jsxs)("div",{className:"space-ea-3",children:[(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)("h3",{className:"font-medium text-gray-900",children:"Sprints (Select One)"}),(0,ea.jsxs)(w,{size:"sm",onClick:()=>K(!0),className:"gap-1",children:[(0,ea.jsx)(de.Plus,{className:"h-3 w-3"}),"Add Sprint"]})]}),H&&(0,ea.jsxs)("div",{className:"border rounded-lg p-2 space-ea-2",children:[(0,ea.jsx)(Y,{value:re.name,onChange:g=>pe(F=>({...F,name:g.target.value})),placeholder:"Sprint name",className:"text-sm"}),(0,ea.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,ea.jsx)(Y,{type:"date",value:re.startDate,onChange:g=>pe(F=>({...F,startDate:g.target.value})),className:"text-xs"}),(0,ea.jsx)(Y,{type:"date",value:re.endDate,onChange:g=>pe(F=>({...F,endDate:g.target.value})),className:"text-xs"})]}),(0,ea.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ea.jsx)("input",{type:"checkbox",checked:re.isActive,onChange:g=>pe(F=>({...F,isActive:g.target.checked})),className:"w-3 h-3"}),(0,ea.jsx)("span",{className:"text-xs",children:"Active"})]}),(0,ea.jsxs)("div",{className:"flex gap-1",children:[(0,ea.jsx)(w,{size:"sm",onClick:Ke,className:"text-xs h-6",children:"Save"}),(0,ea.jsx)(w,{size:"sm",variant:"outline",onClick:()=>K(!1),className:"text-xs h-6",children:"Cancel"})]})]}),(0,ea.jsx)("div",{className:"space-ea-2",children:t.map(g=>(0,ea.jsx)("div",{className:"border rounded p-2",children:x===g.id?(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(Y,{value:_.name,onChange:F=>p($=>({...$,name:F.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:g.id==="backlog"||g.id==="all-tasks"}),g.id!=="backlog"&&g.id!=="all-tasks"&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,ea.jsx)(Y,{type:"date",value:_.startDate,onChange:F=>p($=>({...$,startDate:F.target.value})),className:"text-xs"}),(0,ea.jsx)(Y,{type:"date",value:_.endDate,onChange:F=>p($=>({...$,endDate:F.target.value})),className:"text-xs"})]}),(0,ea.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ea.jsx)("input",{type:"checkbox",checked:_.isActive,onChange:F=>p($=>({...$,isActive:F.target.checked})),className:"w-3 h-3"}),(0,ea.jsx)("span",{className:"text-xs",children:"Active"})]})]}),(0,ea.jsxs)("div",{className:"flex gap-1",children:[(0,ea.jsx)(w,{size:"sm",onClick:je,className:"text-xs h-6",children:"Save"}),(0,ea.jsx)(w,{size:"sm",variant:"outline",onClick:Me,className:"text-xs h-6",children:"Cancel"})]})]}):(0,ea.jsxs)("div",{className:`cursor-pointer p-1 rounded transition-colors ${g.isSelected?"bg-green-50 border-green-200 ring-2 ring-green-300":"hover:bg-gray-50"}`,onClick:()=>Fe(g.id),children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ea.jsx)(de.Calendar,{className:"h-3 w-3 text-gray-500"}),(0,ea.jsx)("span",{className:"font-medium text-xs",children:g.name}),g.isActive&&(0,ea.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-1 py-0.5 rounded",children:"Active"}),(g.id==="backlog"||g.id==="all-tasks")&&(0,ea.jsx)("span",{className:"text-xs bg-gray-100 text-gray-800 px-1 py-0.5 rounded",children:"System"})]}),g.id!=="backlog"&&g.id!=="all-tasks"&&(0,ea.jsxs)("p",{className:"text-xs text-gray-500 mb-1",children:[g.startDate.toLocaleDateString()," - ",g.endDate.toLocaleDateString()]}),(0,ea.jsxs)("div",{className:"flex gap-1",onClick:F=>F.stopPropagation(),children:[(0,ea.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>Te(g),className:"h-5 px-1",children:(0,ea.jsx)(de.Edit2,{className:"h-3 w-3"})}),g.id!=="backlog"&&g.id!=="all-tasks"&&(0,ea.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>n(g.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:(0,ea.jsx)(de.Trash2,{className:"h-3 w-3"})})]})]})},g.id))})]})})]})]})]})]})},_a=e=>(0,ea.jsx)(Ot,{children:(0,ea.jsxs)("div",{className:"flex h-full w-full",children:[(0,ea.jsx)("div",{className:"hidden md:block w-16",children:(0,ea.jsx)(Wa,{...e})}),(0,ea.jsx)("div",{className:"md:hidden",children:(0,ea.jsx)(Wa,{...e})}),(0,ea.jsx)("div",{className:"flex-1 md:ml-0",children:e.children})]})});var ja=({isOpen:e,onClose:t,onAddEpic:a})=>{let[o,i]=(0,$a.useState)({name:"",description:"",color:"bg-blue-500"}),r=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],d=n=>{n.preventDefault(),o.name.trim()&&(a({name:o.name.trim(),description:o.description.trim(),color:o.color}),i({name:"",description:"",color:"bg-blue-500"}),t())},l=(n,f)=>{i(m=>({...m,[n]:f}))};return(0,ea.jsx)(Xe,{open:e,onOpenChange:t,children:(0,ea.jsxs)(Ge,{className:"sm:max-w-md",children:[(0,ea.jsx)(Ue,{children:(0,ea.jsx)(We,{children:"Add New Epic"})}),(0,ea.jsxs)("form",{onSubmit:d,className:"space-ea-4",children:[(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{htmlFor:"name",children:"Epic Name"}),(0,ea.jsx)(Y,{id:"name",value:o.name,onChange:n=>l("name",n.target.value),placeholder:"Enter epic name",required:!0})]}),(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{htmlFor:"description",children:"Description"}),(0,ea.jsx)(ve,{id:"description",value:o.description,onChange:n=>l("description",n.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsx)(W,{children:"Color"}),(0,ea.jsx)("div",{className:"flex gap-2 flex-wrap",children:r.map(n=>(0,ea.jsx)("button",{type:"button",onClick:()=>l("color",n),className:`w-8 h-8 rounded-full ${n} ${o.color===n?"ring-2 ring-gray-400":""}`},n))})]}),(0,ea.jsxs)(it,{children:[(0,ea.jsx)(w,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,ea.jsx)(w,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};var Ja=({tasks:e,epics:t,sprints:a,onUpdateTask:o,onTaskClick:i})=>{let[r,d]=(0,we.useState)(["2"]),[l,n]=(0,we.useState)(null),f=e.filter(p=>!p.sprintId),m=e.filter(p=>p.sprintId&&r.includes(p.sprintId)),R=[...a].filter(p=>p.id!=="backlog"&&p.id!=="all-tasks").sort((p,H)=>p.startDate.getTime()-H.startDate.getTime()),M=p=>t.find(H=>H.id===p),S=p=>a.find(H=>H.id===p),v=p=>{switch(p){case"high":return"bg-red-100 text-red-800";case"medium":return"bg-yellow-100 text-yellow-800";case"low":return"bg-green-100 text-green-800";default:return"bg-gray-100 text-gray-800"}},I=p=>p.split(" ").map(H=>H[0]).join("").toUpperCase(),x=p=>{n(p)},A=p=>{p.preventDefault()},h=(p,H)=>{p.preventDefault(),l&&(o(l.id,{sprintId:H==="backlog"?void 0:H}),n(null))},V=p=>{p==="backlog"||p==="all-tasks"||d(H=>H.includes(p)?H.filter(K=>K!==p):[...H,p])},_=({task:p,showSprint:H=!1})=>{let K=M(p.epicId),re=p.sprintId?S(p.sprintId):null;return(0,ea.jsx)(se,{className:"p-2 cursor-grab transition-all duration-200 hover:shadow-md bg-white active:cursor-grabbing",draggable:!0,onDragStart:be=>{x(p)},onClick:be=>{be.defaultPrevented||i(p)},children:(0,ea.jsxs)("div",{className:"space-ea-2",children:[(0,ea.jsxs)("div",{className:"flex items-start justify-between",children:[(0,ea.jsx)("h4",{className:"font-medium text-sm text-gray-900 line-clamp-1 select-none pointer-events-none",children:p.title}),(0,ea.jsx)(Z,{className:`text-xs select-none pointer-events-none ${v(p.priority)}`,children:p.priority[0].toUpperCase()})]}),(0,ea.jsxs)("div",{className:"flex items-center justify-between text-xs pointer-events-none",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-1",children:[K&&(0,ea.jsx)("div",{className:`w-2 h-2 rounded-full ${K.color}`}),(0,ea.jsx)("span",{className:"text-gray-600 truncate select-none",children:K?.name})]}),(0,ea.jsx)("span",{className:"text-gray-500 select-none",children:I(p.assignee)})]}),H&&re&&(0,ea.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-500 pointer-events-none",children:[(0,ea.jsx)(de.Calendar,{className:"h-3 w-3"}),(0,ea.jsx)("span",{className:"select-none",children:re.name})]})]})})};return(0,ea.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:[(0,ea.jsx)("div",{className:"lg:col-span-1",children:(0,ea.jsxs)(se,{className:"p-4 h-full",onDragOver:A,onDrop:p=>h(p,"backlog"),children:[(0,ea.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ea.jsx)("h3",{className:"font-semibold text-gray-900 select-none",children:"Backlog"}),(0,ea.jsx)(Z,{variant:"secondary",children:f.length})]}),(0,ea.jsxs)("div",{className:"space-ea-2 overflow-ea-auto max-h-[600px] min-h-[200px] border-2 border-dashed border-gray-200 rounded p-2",children:[f.map(p=>(0,ea.jsx)(_,{task:p},p.id)),f.length===0&&(0,ea.jsx)("div",{className:"flex items-center justify-center h-32 text-gray-400 text-sm select-none",children:"Drop tasks here to move to backlog"})]})]})}),(0,ea.jsx)("div",{className:"lg:col-span-3",children:(0,ea.jsxs)("div",{className:"space-ea-4",children:[(0,ea.jsxs)(se,{className:"p-4",children:[(0,ea.jsx)("h3",{className:"font-semibold text-gray-900 mb-3 select-none",children:"Select Sprints to View"}),(0,ea.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:R.map(p=>(0,ea.jsxs)(w,{variant:r.includes(p.id)?"default":"outline",size:"sm",onClick:()=>V(p.id),className:"text-xs h-8",children:[p.name,p.isActive&&(0,ea.jsx)("span",{className:"ml-1 text-green-400",children:"\u25CF"})]},p.id))})]}),(0,ea.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:r.map(p=>R.find(H=>H.id===p)).filter(Boolean).sort((p,H)=>p.startDate.getTime()-H.startDate.getTime()).map(p=>{let H=m.filter(K=>K.sprintId===p.id);return(0,ea.jsxs)(se,{className:"p-4",onDragOver:A,onDrop:K=>h(K,p.id),children:[(0,ea.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ea.jsxs)("div",{children:[(0,ea.jsx)("h3",{className:"font-semibold text-gray-900 select-none",children:p.name}),p.isActive&&(0,ea.jsx)("span",{className:"text-xs text-green-600 font-medium select-none",children:"Active Sprint"})]}),(0,ea.jsx)(Z,{variant:"secondary",children:H.length})]}),(0,ea.jsxs)("div",{className:"space-ea-2 overflow-ea-auto max-h-[500px] min-h-[200px] border-2 border-dashed border-gray-200 rounded p-2",children:[H.map(K=>(0,ea.jsx)(_,{task:K},K.id)),H.length===0&&(0,ea.jsx)("div",{className:"flex items-center justify-center h-32 text-gray-400 text-sm select-none",children:"Drop tasks here"})]})]},p.id)})})]})})]})};var qa=[{id:"1",title:"Project Overview",content:`# Project Overview
4
+ "use strict";var _o=Object.create;var Rt=Object.defineProperty;var Uo=Object.getOwnPropertyDescriptor;var Wo=Object.getOwnPropertyNames;var $o=Object.getPrototypeOf,Ko=Object.prototype.hasOwnProperty;var qo=(e,t)=>{for(var a in t)Rt(e,a,{get:t[a],enumerable:!0})},Ca=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Wo(t))!Ko.call(e,i)&&i!==a&&Rt(e,i,{get:()=>t[i],enumerable:!(o=Uo(t,i))||o.enumerable});return e};var Z=(e,t,a)=>(a=e!=null?_o($o(e)):{},Ca(t||!e||!e.__esModule?Rt(a,"default",{value:e,enumerable:!0}):a,e)),Jo=e=>Ca(Rt({},"__esModule",{value:!0}),e);var Bi={};qo(Bi,{KanbanBoard:()=>Li});module.exports=Jo(Bi);var Ee=require("react");var La=require("class-variance-authority");var Ia=require("clsx");var ea="-",Xo=e=>{let t=Yo(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:m=>{let d=m.split(ea);return d[0]===""&&d.length!==1&&d.shift(),Ra(d,t)||Zo(m)},getConflictingClassGroupIds:(m,d)=>{let n=a[m]||[];return d&&o[m]?[...n,...o[m]]:n}}},Ra=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),i=o?Ra(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;let s=e.join(ea);return t.validators.find(({validator:m})=>m(s))?.classGroupId},Da=/^\[(.+)\]$/,Zo=e=>{if(Da.test(e)){let t=Da.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Yo=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return er(Object.entries(e.classGroups),a).forEach(([s,m])=>{Qt(m,o,s,t)}),o},Qt=(e,t,a,o)=>{e.forEach(i=>{if(typeof i=="string"){let s=i===""?t:Pa(t,i);s.classGroupId=a;return}if(typeof i=="function"){if(Qo(i)){Qt(i(o),t,a,o);return}t.validators.push({validator:i,classGroupId:a});return}Object.entries(i).forEach(([s,m])=>{Qt(m,Pa(t,s),a,o)})})},Pa=(e,t)=>{let a=e;return t.split(ea).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Qo=e=>e.isThemeGetter,er=(e,t)=>t?e.map(([a,o])=>{let i=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([m,d])=>[t+m,d])):s);return[a,i]}):e,tr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,i=(s,m)=>{a.set(s,m),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let m=a.get(s);if(m!==void 0)return m;if((m=o.get(s))!==void 0)return i(s,m),m},set(s,m){a.has(s)?a.set(s,m):i(s,m)}}},ka="!",ar=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,i=t[0],s=t.length,m=d=>{let n=[],l=0,f=0,T;for(let u=0;u<d.length;u++){let A=d[u];if(l===0){if(A===i&&(o||d.slice(u,u+s)===t)){n.push(d.slice(f,u)),f=u+s;continue}if(A==="/"){T=u;continue}}A==="["?l++:A==="]"&&l--}let V=n.length===0?d:d.substring(f),E=V.startsWith(ka),C=E?V.substring(1):V,h=T&&T>f?T-f:void 0;return{modifiers:n,hasImportantModifier:E,baseClassName:C,maybePostfixModifierPosition:h}};return a?d=>a({className:d,parseClassName:m}):m},or=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},rr=e=>({cache:tr(e.cacheSize),parseClassName:ar(e),...Xo(e)}),ir=/\s+/,nr=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:i}=t,s=[],m=e.trim().split(ir),d="";for(let n=m.length-1;n>=0;n-=1){let l=m[n],{modifiers:f,hasImportantModifier:T,baseClassName:V,maybePostfixModifierPosition:E}=a(l),C=!!E,h=o(C?V.substring(0,E):V);if(!h){if(!C){d=l+(d.length>0?" "+d:d);continue}if(h=o(V),!h){d=l+(d.length>0?" "+d:d);continue}C=!1}let u=or(f).join(":"),A=T?u+ka:u,y=A+h;if(s.includes(y))continue;s.push(y);let X=i(h,C);for(let se=0;se<X.length;++se){let ge=X[se];s.push(A+ge)}d=l+(d.length>0?" "+d:d)}return d};function sr(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ta(t))&&(o&&(o+=" "),o+=a);return o}var Ta=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Ta(e[o]))&&(a&&(a+=" "),a+=t);return a};function lr(e,...t){let a,o,i,s=m;function m(n){let l=t.reduce((f,T)=>T(f),e());return a=rr(l),o=a.cache.get,i=a.cache.set,s=d,d(n)}function d(n){let l=o(n);if(l)return l;let f=nr(n,a);return i(n,f),f}return function(){return s(sr.apply(null,arguments))}}var Y=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ma=/^\[(?:([a-Ba-]+):)?(.+)\]$/i,dr=/^\d+\/\d+$/,cr=new Set(["px","full","screen"]),mr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pr=/\d+(%|px|Ba?em|[sdl]?v([hwib]|min|max)|fo|pc|in|cm|mm|cap|ch|ex|Ba?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ur=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gr=/^(inset_)?-?((\d+)?\.?(\d+)[a-Ba]+|0)_-?((\d+)?\.?(\d+)[a-Ba]+|0)/,fr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=e=>st(e)||cr.has(e)||dr.test(e),$e=e=>lt(e,"length",Sr),st=e=>!!e&&!Number.isNaN(Number(e)),Yt=e=>lt(e,"number",st),ft=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith("%")&&st(e.slice(0,-1)),L=e=>Ma.test(e),Ke=e=>mr.test(e),br=new Set(["length","size","percentage"]),hr=e=>lt(e,br,Ea),xr=e=>lt(e,"position",Ea),yr=new Set(["image","url"]),wr=e=>lt(e,yr,Dr),Nr=e=>lt(e,"",Cr),vt=()=>!0,lt=(e,t,a)=>{let o=Ma.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Sr=e=>pr.test(e)&&!ur.test(e),Ea=()=>!1,Cr=e=>gr.test(e),Dr=e=>fr.test(e);var Pr=()=>{let e=Y("colors"),t=Y("spacing"),a=Y("blur"),o=Y("brightness"),i=Y("borderColor"),s=Y("borderRadius"),m=Y("borderSpacing"),d=Y("borderWidth"),n=Y("contrast"),l=Y("grayscale"),f=Y("hueRotate"),T=Y("invert"),V=Y("gap"),E=Y("gradientColorStops"),C=Y("gradientColorStopPositions"),h=Y("inset"),u=Y("margin"),A=Y("opacity"),y=Y("padding"),X=Y("saturate"),se=Y("scale"),ge=Y("sepia"),he=Y("skew"),Ae=Y("space"),xe=Y("translate"),v=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",L,t],O=()=>[L,t],fe=()=>["",ze,$e],Be=()=>["auto",st,L],Re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ue=()=>["solid","dashed","dotted","double","none"],We=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>["start","end","center","between","around","evenly","stretch"],Te=()=>["","0",L],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[st,L];return{cacheSize:500,separator:":",theme:{colors:[vt],spacing:[ze,$e],blur:["none","",Ke,L],brightness:ne(),borderColor:[e],borderRadius:["none","","full",Ke,L],borderSpacing:O(),borderWidth:fe(),contrast:ne(),grayscale:Te(),hueRotate:ne(),invert:Te(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[vr,$e],inset:q(),margin:q(),opacity:ne(),padding:O(),saturate:ne(),scale:ne(),sepia:Te(),skew:ne(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[Ke]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"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:[...Re(),L]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:v()}],"overscroll-x":[{"overscroll-x":v()}],"overscroll-y":[{"overscroll-y":v()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],Ba:[{Ba:["auto",ft,L]}],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",L]}],grow:[{grow:Te()}],shrink:[{shrink:Te()}],order:[{order:["first","last","none",ft,L]}],"grid-cols":[{"grid-cols":[vt]}],"col-start-end":[{col:["auto",{span:["full",ft,L]},L]}],"col-start":[{"col-start":Be()}],"col-end":[{"col-end":Be()}],"grid-rows":[{"grid-rows":[vt]}],"row-start-end":[{row:["auto",{span:[ft,L]},L]}],"row-start":[{"row-start":Be()}],"row-end":[{"row-end":Be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[V]}],"gap-x":[{"gap-x":[V]}],"gap-y":[{"gap-y":[V]}],"justify-content":[{justify:["normal",...ke()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ke(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ke(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],fo:[{fo:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],Ee:[{Ee:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[Ae]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ae]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[Ke]},Ke]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ke,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yt]}],"font-family":[{font:[vt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",st,Yt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ze,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ue(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ze,$e]}],"underline-offset":[{"underline-offset":["auto",ze,L]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Re(),xr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","Ba","br","b","bl","l","tl"]},wr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[E]}],"gradient-via":[{via:[E]}],"gradient-to":[{to:[E]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-Ba":[{"rounded-Ba":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-Ba":[{"rounded-Ba":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-Ba":[{"border-Ba":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Ue(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Ue()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-Ba":[{"border-Ba":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Ue()]}],"outline-offset":[{"outline-offset":[ze,L]}],"outline-w":[{outline:[ze,$e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[ze,$e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ke,Nr]}],"shadow-color":[{shadow:[vt]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...We(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":We()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[n]}],"drop-shadow":[{"drop-shadow":["","none",Ke,L]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[T]}],saturate:[{saturate:[X]}],sepia:[{sepia:[ge]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[n]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[se]}],"scale-x":[{"scale-x":[se]}],"scale-y":[{"scale-y":[se]}],rotate:[{rotate:[ft,L]}],"translate-x":[{"translate-x":[xe]}],"translate-y":[{"translate-y":[xe]}],"skew-x":[{"skew-x":[he]}],"skew-y":[{"skew-y":[he]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-Ee":[{"scroll-Ee":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-fo":[{"scroll-fo":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ze,$e,Yt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","fo","pr","pb","pl"],px:["pr","pl"],py:["fo","pb"],m:["mx","my","ms","me","Ee","mr","mb","ml"],mx:["mr","ml"],my:["Ee","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-Ba","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-Ba","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Ba"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-Ba":["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-Ba","border-w-b","border-w-l"],"border-w-x":["border-w-Ba","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-Ba","border-color-b","border-color-l"],"border-color-x":["border-color-Ba","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-Ee","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Ee","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-fo","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-fo","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Aa=lr(Pr);function c(...e){return Aa((0,Ia.clsx)(e))}var Ba=require("react/jsx-runtime"),Rr=(0,La.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 ae({className:e,variant:t,...a}){return(0,Ba.jsx)("div",{className:c(Rr({variant:t}),e),...a})}var za=require("@radix-ui/react-slot"),Fa=Z(require("react")),kt=(0,La.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-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),x=Fa.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...i},s)=>(0,Ba.jsx)(e?za.Slot:"button",{className:c(kt({className:t,size:a,variant:o})),ref:s,...i}));x.displayName="Button";var Qe=Z(require("react"));var le=Qe.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));le.displayName="Card";var kr=Qe.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,className:c("flex flex-col space-y-1.5 p-6",e),...t}));kr.displayName="CardHeader";var Tr=Qe.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,className:c("font-semibold leading-none tracking-tight",e),...t}));Tr.displayName="CardTitle";var Mr=Qe.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,className:c("text-sm text-muted-foreground",e),...t}));Mr.displayName="CardDescription";var Er=Qe.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,className:c("p-6 fo-0",e),...t}));Er.displayName="CardContent";var Ar=Qe.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,className:c("flex items-center p-6 fo-0",e),...t}));Ar.displayName="CardFooter";var Ha=({title:e,status:t,taskCount:a,children:o,onDrop:i,isCompact:s=!1})=>{let m=l=>{l.preventDefault()},d=l=>{l.preventDefault(),i(t)};return(0,Ba.jsxs)(le,{className:`p-4 bg-white border-l-4 ${(()=>{switch(t){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 ${s?"lg:max-w-xs":""}`,onDragOver:m,onDrop:d,children:[(0,Ba.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Ba.jsx)("h3",{className:`font-semibold text-gray-900 select-none-important ${s?"text-base":"text-lg"}`,children:e}),(0,Ba.jsx)(ae,{variant:"secondary",className:"bg-gray-100 text-gray-600",children:a})]}),(0,Ba.jsx)("div",{className:"space-y-4 min-h-[200px]",children:o})]})};var Ie=require("lucide-react"),Tt=({task:e,epic:t,onDragStart:a,onTaskClick:o,isCompact:i=!1})=>{let s=f=>{a(e)},m=()=>{o(e)},d=()=>{switch(e.priority){case"high":return"bg-red-100 text-red-800 border-red-200";case"medium":return"bg-yellow-100 text-yellow-800 border-yellow-200";case"low":return"bg-green-100 text-green-800 border-green-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},n=()=>{switch(e.type){case"story":return(0,Ba.jsx)(Ie.BookOpen,{className:"h-3 w-3"});case"bug":return(0,Ba.jsx)(Ie.Bug,{className:"h-3 w-3"});case"spike":return(0,Ba.jsx)(Ie.Zap,{className:"h-3 w-3"});case"task":default:return(0,Ba.jsx)(Ie.AlertCircle,{className:"h-3 w-3"})}},l=()=>{switch(e.type){case"story":return"bg-blue-100 text-blue-800";case"bug":return"bg-red-100 text-red-800";case"spike":return"bg-purple-100 text-purple-800";case"task":default:return"bg-gray-100 text-gray-800"}};return i?(0,Ba.jsx)(le,{className:"p-3 bg-white border border-gray-200 hover:border-gray-300 cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:s,onClick:m,children:(0,Ba.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ba.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${l()}`,children:n()}),(0,Ba.jsx)("h4",{className:"font-medium text-gray-900 text-sm mb-1 line-clamp-2 select-none-important",children:e.title})]})}):(0,Ba.jsxs)(le,{className:"p-4 bg-white border border-gray-200 hover:border-gray-300 cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:s,onClick:m,children:[(0,Ba.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ba.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${l()}`,children:[n(),(0,Ba.jsx)("span",{className:"capitalize",children:e.type})]}),(0,Ba.jsxs)("div",{className:"flex gap-1",children:[(0,Ba.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${d()}`,children:e.priority}),(0,Ba.jsx)("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:e.points})]})]}),(0,Ba.jsx)("h4",{className:"font-semibold text-gray-900 mb-2 select-none-important",children:e.title}),(0,Ba.jsx)("p",{className:"text-sm text-gray-600 mb-3 line-clamp-2 select-none-important",children:e.description}),(0,Ba.jsx)("div",{className:"flex items-center justify-between text-sm text-gray-500",children:(0,Ba.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ba.jsx)(Ie.User,{className:"h-4 w-4"}),(0,Ba.jsx)("span",{children:e.assignee})]})})]})};var bt=Z(require("react")),oe=Z(require("@radix-ui/react-dialog"));var qe=oe.Root;var Ir=oe.Portal;var Ga=bt.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(oe.Overlay,{ref:a,className:c("fixed inset-0 Ba-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}));Ga.displayName=oe.Overlay.displayName;var Oe=bt.forwardRef(({className:e,children:t,...a},o)=>(0,Ba.jsxs)(Ir,{children:[(0,Ba.jsx)(Ga,{}),(0,Ba.jsxs)(oe.Content,{ref:o,className:c("fixed left-[50%] top-[50%] Ba-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,Ba.jsxs)(oe.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,Ba.jsx)(Ie.X,{className:"h-4 w-4"}),(0,Ba.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Oe.displayName=oe.Content.displayName;var Fe=({className:e,...t})=>(0,Ba.jsx)("div",{className:c("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Fe.displayName="DialogHeader";var ht=({className:e,...t})=>(0,Ba.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ht.displayName="DialogFooter";var Ve=bt.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(oe.Title,{ref:a,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));Ve.displayName=oe.Title.displayName;var Lr=bt.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(oe.Description,{ref:a,className:c("text-sm text-muted-foreground",e),...t}));Lr.displayName=oe.Description.displayName;var _a=Z(require("react"));var W=_a.forwardRef(({className:e,type:t,...a},o)=>(0,Ba.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));W.displayName="Input";var Wa=Z(require("react")),pe=Wa.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("textarea",{className:c("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));pe.displayName="Textarea";var j=Z(require("@radix-ui/react-select")),Je=Z(require("react")),we=j.Root;var He=j.Value,ve=Je.forwardRef(({children:e,className:t,...a},o)=>(0,Ba.jsxs)(j.Trigger,{className:c("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Ba.jsx)(j.Icon,{asChild:!0,children:(0,Ba.jsx)(Ie.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ve.displayName=j.Trigger.displayName;var Ka=Je.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(j.ScrollUpButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ba.jsx)(Ie.ChevronUp,{className:"h-4 w-4"})}));Ka.displayName=j.ScrollUpButton.displayName;var qa=Je.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(j.ScrollDownButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ba.jsx)(Ie.ChevronDown,{className:"h-4 w-4"})}));qa.displayName=j.ScrollDownButton.displayName;var be=Je.forwardRef(({children:e,className:t,position:a="popper",...o},i)=>(0,Ba.jsx)(j.Portal,{children:(0,Ba.jsxs)(j.Content,{className:c("relative Ba-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:i,...o,children:[(0,Ba.jsx)(Ka,{}),(0,Ba.jsx)(j.Viewport,{className:c("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ba.jsx)(qa,{})]})}));be.displayName=j.Content.displayName;var Br=Je.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(j.Label,{className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Br.displayName=j.Label.displayName;var de=Je.forwardRef(({children:e,className:t,...a},o)=>(0,Ba.jsxs)(j.Item,{className:c("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Ba.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ba.jsx)(j.ItemIndicator,{children:(0,Ba.jsx)(Ie.Check,{className:"h-4 w-4"})})}),(0,Ba.jsx)(j.ItemText,{children:e})]}));de.displayName=j.Item.displayName;var zr=Je.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(j.Separator,{className:c("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));zr.displayName=j.Separator.displayName;var Ja=Z(require("react")),ta=Z(require("@radix-ui/react-label"));var Or=(0,La.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),B=Ja.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(ta.Root,{ref:a,className:c(Or(),e),...t}));B.displayName=ta.Root.displayName;var ot=Z(require("react")),dt=Z(require("@radix-ui/react-toggle-group"));var Ya=Z(require("react")),aa=Z(require("@radix-ui/react-toggle"));var oa=(0,La.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Fr=Ya.forwardRef(({className:e,variant:t,size:a,...o},i)=>(0,Ba.jsx)(aa.Root,{ref:i,className:c(oa({variant:t,size:a,className:e})),...o}));Fr.displayName=aa.Root.displayName;var to=ot.createContext({size:"default",variant:"default"}),rt=ot.forwardRef(({className:e,variant:t,size:a,children:o,...i},s)=>(0,Ba.jsx)(dt.Root,{ref:s,className:c("flex items-center justify-center gap-1",e),...i,children:(0,Ba.jsx)(to.Provider,{value:{variant:t,size:a},children:o})}));rt.displayName=dt.Root.displayName;var it=ot.forwardRef(({className:e,children:t,variant:a,size:o,...i},s)=>{let m=ot.useContext(to);return(0,Ba.jsx)(dt.Item,{ref:s,className:c(oa({variant:m.variant||a,size:m.size||o}),e),...i,children:t})});it.displayName=dt.Item.displayName;var Vr=[{value:"story",label:"Story",color:"bg-blue-100 text-blue-800",icon:Ie.BookOpen},{value:"task",label:"Task",color:"bg-green-100 text-green-800",icon:Ie.AlertCircle},{value:"bug",label:"Bug",color:"bg-red-100 text-red-800",icon:Ie.Bug},{value:"spike",label:"Spike",color:"bg-purple-100 text-purple-800",icon:Ie.Zap}],Hr=[{value:"low",label:"Low",color:"bg-green-100 text-green-800"},{value:"medium",label:"Medium",color:"bg-yellow-100 text-yellow-800"},{value:"high",label:"High",color:"bg-red-100 text-red-800"}],oo=({isOpen:e,onClose:t,onAddTask:a,epics:o,sprints:i})=>{let[s,m]=(0,Ee.useState)({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""}),d=l=>{l.preventDefault(),s.title.trim()&&s.epicId&&(a({title:s.title.trim(),description:s.description.trim(),status:"todo",priority:s.priority,type:s.type,points:s.points,epicId:s.epicId,sprintId:s.sprintId==="none"?void 0:s.sprintId,assignee:s.assignee.trim()||"Unassigned"}),m({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""}),t())},n=(l,f)=>{m(T=>({...T,[l]:f}))};return(0,Ba.jsx)(qe,{open:e,onOpenChange:t,children:(0,Ba.jsxs)(Oe,{className:"sm:max-w-md",children:[(0,Ba.jsx)(Fe,{children:(0,Ba.jsx)(Ve,{children:"Add New Task"})}),(0,Ba.jsxs)("form",{onSubmit:d,className:"space-y-4",children:[(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"title",children:"Task Title"}),(0,Ba.jsx)(W,{id:"title",value:s.title,onChange:l=>n("title",l.target.value),placeholder:"Enter task title",required:!0})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"description",children:"Description"}),(0,Ba.jsx)(pe,{id:"description",value:s.description,onChange:l=>n("description",l.target.value),placeholder:"Enter task description",rows:3})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"Type"}),(0,Ba.jsx)(rt,{type:"single",value:s.type,onValueChange:l=>l&&n("type",l),children:Vr.map(l=>{let f=l.icon;return(0,Ba.jsxs)(it,{value:l.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,Ba.jsx)(f,{className:"h-4 w-4"}),l.label]},l.value)})})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"Priority"}),(0,Ba.jsx)(rt,{type:"single",value:s.priority,onValueChange:l=>l&&n("priority",l),children:Hr.map(l=>(0,Ba.jsx)(it,{value:l.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:l.label},l.value))})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"points",children:"Story Points"}),(0,Ba.jsx)(W,{id:"points",type:"number",min:"1",max:"100",value:s.points,onChange:l=>n("points",parseInt(l.target.value)||1),placeholder:"Enter story points",required:!0})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"epic",children:"Epic"}),(0,Ba.jsxs)(we,{value:s.epicId,onValueChange:l=>n("epicId",l),children:[(0,Ba.jsx)(ve,{children:(0,Ba.jsx)(He,{placeholder:"Select an epic"})}),(0,Ba.jsx)(be,{children:o.map(l=>(0,Ba.jsx)(de,{value:l.id,children:(0,Ba.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ba.jsx)("div",{className:`w-3 h-3 rounded-full ${l.color}`}),l.name]})},l.id))})]})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,Ba.jsxs)(we,{value:s.sprintId,onValueChange:l=>n("sprintId",l),children:[(0,Ba.jsx)(ve,{children:(0,Ba.jsx)(He,{placeholder:"Select a sprint"})}),(0,Ba.jsxs)(be,{children:[(0,Ba.jsx)(de,{value:"none",children:"No Sprint"}),i.map(l=>(0,Ba.jsx)(de,{value:l.id,children:(0,Ba.jsxs)("div",{className:"flex items-center gap-2",children:[l.name,l.isActive&&(0,Ba.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-1 rounded",children:"Active"})]})},l.id))]})]})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"assignee",children:"Assignee"}),(0,Ba.jsx)(W,{id:"assignee",value:s.assignee,onChange:l=>n("assignee",l.target.value),placeholder:"Enter assignee name",required:!0})]}),(0,Ba.jsxs)(ht,{children:[(0,Ba.jsx)(x,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Ba.jsx)(x,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var ia=({fieldName:e,value:t,label:a,multiline:o=!1,onSave:i,className:s=""})=>{let[m,d]=(0,Ee.useState)(!1),[n,l]=(0,Ee.useState)(""),f=()=>{d(!0),l(t)},T=()=>{n!==t&&i(e,n),d(!1)},V=E=>{E.key==="Enter"&&!o||E.key==="Enter"&&E.ctrlKey&&o?T():E.key==="Escape"&&(d(!1),l(""))};return(0,Ba.jsxs)("div",{className:`space-y-2 ${s}`,children:[(0,Ba.jsx)(B,{children:a}),m?o?(0,Ba.jsx)(pe,{value:n,onChange:E=>l(E.target.value),onBlur:T,onKeyDown:V,autoFocus:!0,rows:4,className:"resize-none"}):(0,Ba.jsx)(W,{value:n,onChange:E=>l(E.target.value),onBlur:T,onKeyPress:V,autoFocus:!0,className:"text-lg font-medium"}):(0,Ba.jsxs)("div",{onClick:f,className:`cursor-pointer hover:bg-gray-50 p-2 rounded border border-transparent hover:border-gray-200 transition-colors group ${o?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Ba.jsx)("span",{className:o?"text-sm text-gray-700":"text-lg font-medium text-gray-900",children:t||"Click to edit..."}),(0,Ba.jsx)(Ie.Edit,{className:"h-4 w-4 text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Et=Z(require("react")),Ge=Z(require("@radix-ui/react-avatar"));var xt=Et.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(Ge.Root,{ref:a,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));xt.displayName=Ge.Root.displayName;var na=Et.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(Ge.Image,{ref:a,className:c("aspect-square h-full w-full",e),...t}));na.displayName=Ge.Image.displayName;var yt=Et.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(Ge.Fallback,{ref:a,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));yt.displayName=Ge.Fallback.displayName;var no=({comments:e,onAddComment:t})=>{let[a,o]=(0,Ee.useState)(""),i=m=>m.split(" ").map(d=>d[0]).join("").toUpperCase(),s=()=>{a.trim()&&(t(a),o(""))};return(0,Ba.jsxs)("div",{className:"space-y-4",children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ba.jsx)(Ie.MessageSquare,{className:"h-5 w-5"}),(0,Ba.jsx)(B,{className:"text-lg font-medium",children:"Comments"}),(0,Ba.jsx)(ae,{variant:"secondary",children:e.length})]}),(0,Ba.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(m=>(0,Ba.jsxs)("div",{className:"flex gap-3 p-3 bg-gray-50 rounded-lg",children:[(0,Ba.jsx)(xt,{className:"h-8 w-8 Ee-1",children:(0,Ba.jsx)(yt,{className:"text-xs bg-gray-200 text-gray-700",children:i(m.author)})}),(0,Ba.jsxs)("div",{className:"flex-1",children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ba.jsx)("span",{className:"font-medium text-sm",children:m.author}),(0,Ba.jsxs)("span",{className:"text-xs text-gray-500",children:[m.createdAt.toLocaleDateString()," Ie ",m.createdAt.toLocaleTimeString()]})]}),(0,Ba.jsx)("p",{className:"text-sm text-gray-700",children:m.text})]})]},m.id))}),(0,Ba.jsxs)("div",{className:"flex gap-2",children:[(0,Ba.jsx)(pe,{value:a,onChange:m=>o(m.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Ba.jsx)(x,{onClick:s,disabled:!a.trim(),size:"sm",className:"self-end",children:(0,Ba.jsx)(Ie.Send,{className:"h-4 w-4"})})]})]})};var Lt=({label:e,value:t,onValueChange:a,options:o,showColor:i=!1})=>{let[s,m]=(0,Ee.useState)(!1),d=o.find(n=>n.value===t);return(0,Ba.jsxs)("div",{className:"space-y-1",children:[(0,Ba.jsx)(B,{className:"text-xs text-gray-600",children:e}),(0,Ba.jsxs)(we,{value:t,onValueChange:a,open:s,onOpenChange:m,children:[(0,Ba.jsx)(ve,{className:"h-auto p-0 border-none bg-transparent hover:bg-gray-50 rounded-md",children:(0,Ba.jsxs)(ae,{variant:"secondary",className:"cursor-pointer hover:bg-gray-200 transition-colors",onClick:()=>m(!s),children:[i&&d?.color&&(0,Ba.jsx)("div",{className:`w-2 h-2 rounded-full ${d.color} mr-1`}),d?.label||"Select..."]})}),(0,Ba.jsx)(be,{children:o.map(n=>(0,Ba.jsx)(de,{value:n.value,children:i&&n.color?(0,Ba.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ba.jsx)("div",{className:`w-3 h-3 rounded-full ${n.color}`}),n.label]}):n.label},n.value))})]})]})};var lo=({label:e,value:t,onValueChange:a,options:o,placeholder:i="Search...",allowCustomValue:s=!1})=>{let[m,d]=(0,Ee.useState)(!1),[n,l]=(0,Ee.useState)(""),f=o.find(C=>C.value===t),T=o.filter(C=>C.label.toLowerCase().includes(n.toLowerCase())),V=C=>{a(C),d(!1),l("")},E=()=>{s&&n.trim()&&!o.find(C=>C.value===n.trim())&&(a(n.trim()),d(!1),l(""))};return(0,Ba.jsxs)("div",{className:"space-y-1",children:[(0,Ba.jsx)(B,{className:"text-xs text-gray-600",children:e}),(0,Ba.jsxs)(we,{value:t,onValueChange:V,open:m,onOpenChange:d,children:[(0,Ba.jsx)(ve,{className:"h-auto p-0 border-none bg-transparent hover:bg-gray-50 rounded-md",children:(0,Ba.jsx)(ae,{variant:"secondary",className:"cursor-pointer hover:bg-gray-200 transition-colors",onClick:()=>d(!m),children:f?.label||t||"Select..."})}),(0,Ba.jsxs)(be,{children:[(0,Ba.jsx)("div",{className:"p-2",children:(0,Ba.jsx)(W,{placeholder:i,value:n,onChange:C=>l(C.target.value),onKeyDown:C=>{C.key==="Enter"&&s&&E()},className:"mb-2"})}),T.map(C=>(0,Ba.jsx)(de,{value:C.value,children:C.label},C.value)),s&&n.trim()&&!T.find(C=>C.value===n.trim())&&(0,Ba.jsxs)(de,{value:n.trim(),children:['Add "',n.trim(),'"']})]})]})]})};var jr=[{value:"story",label:"Story",color:"bg-blue-100 text-blue-800",icon:Ie.BookOpen},{value:"task",label:"Task",color:"bg-gray-100 text-gray-800",icon:Ie.AlertCircle},{value:"bug",label:"Bug",color:"bg-red-100 text-red-800",icon:Ie.Bug},{value:"spike",label:"Spike",color:"bg-purple-100 text-purple-800",icon:Ie.Zap}],Gr=[{value:"low",label:"Low",color:"bg-green-100 text-green-800"},{value:"medium",label:"Medium",color:"bg-yellow-100 text-yellow-800"},{value:"high",label:"High",color:"bg-red-100 text-red-800"}],_r=[{value:"John Doe",label:"John Doe"},{value:"Jane Smith",label:"Jane Smith"},{value:"Bob Wilson",label:"Bob Wilson"},{value:"Alice Johnson",label:"Alice Johnson"},{value:"Carol Brown",label:"Carol Brown"},{value:"David Lee",label:"David Lee"},{value:"Emma Davis",label:"Emma Davis"},{value:"Frank Miller",label:"Frank Miller"},{value:"Grace Taylor",label:"Grace Taylor"},{value:"Unassigned",label:"Unassigned"}],co=({task:e,epics:t,sprints:a,lastUpdated:o,onUpdateTask:i,onClose:s,onDelete:m})=>{let d=n=>n.split(" ").map(l=>l[0]).join("").toUpperCase();return(0,Ba.jsxs)("div",{className:"flex flex-col h-full",children:[(0,Ba.jsxs)("div",{className:"space-y-4",children:[(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{className:"text-xs text-gray-600",children:"Status"}),(0,Ba.jsx)(Lt,{label:"",value:e.status,onValueChange:n=>i("status",n),options:[{value:"todo",label:"Ee Ie"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}]})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{className:"text-xs text-gray-600",children:"Type"}),(0,Ba.jsx)(rt,{type:"single",value:e.type,onValueChange:n=>n&&i("type",n),className:"grid grid-cols-2 gap-1",children:jr.map(n=>{let l=n.icon;return(0,Ba.jsxs)(it,{value:n.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",children:[(0,Ba.jsx)(l,{className:"h-3 w-3"}),n.label]},n.value)})})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{className:"text-xs text-gray-600",children:"Priority"}),(0,Ba.jsx)(rt,{type:"single",value:e.priority,onValueChange:n=>n&&i("priority",n),className:"grid grid-cols-3 gap-1",children:Gr.map(n=>(0,Ba.jsx)(it,{value:n.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",children:n.label},n.value))})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{className:"text-xs text-gray-600",children:"Story Points"}),(0,Ba.jsx)("input",{type:"number",min:"1",max:"100",value:e.points||1,onChange:n=>i("points",n.target.value),className:"w-full h-8 px-2 text-xs border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{className:"text-xs text-gray-600",children:"Epic"}),(0,Ba.jsx)(Lt,{label:"",value:e.epicId,onValueChange:n=>i("epicId",n),options:t.map(n=>({value:n.id,label:n.name,color:n.color})),showColor:!0})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{className:"text-xs text-gray-600",children:"Sprint"}),(0,Ba.jsx)(Lt,{label:"",value:e.sprintId||"none",onValueChange:n=>i("sprintId",n==="none"?"":n),options:[{value:"none",label:"No Sprint"},...a.map(n=>({value:n.id,label:`${n.name}${n.isActive?" (Active)":""}`}))]})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{className:"text-xs text-gray-600",children:"Assignee"}),(0,Ba.jsx)(lo,{label:"",value:e.assignee,onValueChange:n=>i("assignee",n),options:_r,placeholder:"Search team members...",allowCustomValue:!0})]})]}),(0,Ba.jsxs)("div",{className:"Ee-auto fo-4 space-y-4",children:[(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(x,{onClick:s,variant:"outline",className:"w-full h-8 text-xs",children:"Close"}),(0,Ba.jsxs)(x,{onClick:m,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Ba.jsx)(Ie.Trash2,{className:"h-3 w-3"}),"Delete Task"]})]}),(0,Ba.jsxs)("div",{className:"fo-4 border-t border-gray-200 space-y-2",children:[(0,Ba.jsx)("div",{className:"text-xs text-gray-400 font-medium mb-2",children:"Information"}),(0,Ba.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ba.jsx)("span",{className:"text-xs text-gray-500",children:"Logged By"}),(0,Ba.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[(0,Ba.jsx)(Ie.User,{className:"h-3 w-3"}),(0,Ba.jsx)("span",{children:"System"})]})]}),(0,Ba.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ba.jsx)("span",{className:"text-xs text-gray-500",children:"Created"}),(0,Ba.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[(0,Ba.jsx)(Ie.Calendar,{className:"h-3 w-3"}),(0,Ba.jsx)("span",{children:e.createdAt.toLocaleDateString()})]})]}),(0,Ba.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ba.jsx)("span",{className:"text-xs text-gray-500",children:"Last Updated"}),(0,Ba.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[(0,Ba.jsx)(Ie.Clock,{className:"h-3 w-3"}),(0,Ba.jsxs)("span",{children:[o.toLocaleDateString()," Ie ",o.toLocaleTimeString()]})]})]})]})]})]})};var mo=({isOpen:e,onClose:t,task:a,epics:o,sprints:i,onUpdateTask:s,onDeleteTask:m})=>{let[d,n]=(0,Ee.useState)(new Date),[l,f]=(0,Ee.useState)([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:a.createdAt},{id:"2",text:"Started working on the implementation.",author:a.assignee,createdAt:new Date(a.createdAt.getTime()+864e5)}]),T=(h,u)=>{u!==a[h]&&(s(a.id,{[h]:u}),n(new Date))},V=(h,u)=>{u!==a[h]&&(s(a.id,{[h]:u}),n(new Date))},E=h=>{let u={id:Date.now().toString(),text:h,author:"Current User",createdAt:new Date};f([...l,u])},C=()=>{m(a.id),t()};return(0,Ba.jsx)(qe,{open:e,onOpenChange:t,children:(0,Ba.jsxs)(Oe,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[(0,Ba.jsx)(Fe,{children:(0,Ba.jsx)(Ve,{className:"sr-only",children:a.title})}),(0,Ba.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Ba.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,Ba.jsx)(ia,{fieldName:"title",value:a.title,label:"",onSave:T,className:"border-b pb-3"}),(0,Ba.jsx)(ia,{fieldName:"description",value:a.description,label:"Description",multiline:!0,onSave:T}),(0,Ba.jsx)(no,{comments:l,onAddComment:E})]}),(0,Ba.jsx)(co,{task:a,epics:o,sprints:i,lastUpdated:d,onUpdateTask:V,onClose:t,onDelete:C})]})]})})};var F=Z(require("react"));var po=(e=768)=>{let[t,a]=(0,Ee.useState)(!1);return(0,Ee.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var uo=Z(require("react")),da=Z(require("@radix-ui/react-separator"));var ca=uo.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},i)=>(0,Ba.jsx)(da.Root,{ref:i,decorative:a,orientation:t,className:c("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));ca.displayName=da.Root.displayName;var wt=Z(require("react")),re=Z(require("@radix-ui/react-dialog")),fo=require("@radix-ui/react-icons");var bo=re.Root;var Ur=re.Portal,ho=wt.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(re.Overlay,{className:c("fixed inset-0 Ba-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,ref:a}));ho.displayName=re.Overlay.displayName;var Wr=(0,La.cva)("fixed Ba-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-Ba data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),ma=wt.forwardRef(({side:e="right",className:t,children:a,...o},i)=>(0,Ba.jsxs)(Ur,{children:[(0,Ba.jsx)(ho,{}),(0,Ba.jsxs)(re.Content,{ref:i,className:c(Wr({side:e}),t),...o,children:[(0,Ba.jsxs)(re.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-secondary",children:[(0,Ba.jsx)(fo.Cross2Icon,{className:"h-4 w-4"}),(0,Ba.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));ma.displayName=re.Content.displayName;var $Ba=({className:e,...t})=>(0,Ba.jsx)("div",{className:c("flex flex-col space-y-2 text-center sm:text-left",e),...t});$Ba.displayName="SheetHeader";var Kr=({className:e,...t})=>(0,Ba.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Kr.displayName="SheetFooter";var qr=wt.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(re.Title,{ref:a,className:c("text-lg font-semibold text-foreground",e),...t}));qr.displayName=re.Title.displayName;var Jr=wt.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(re.Description,{ref:a,className:c("text-sm text-muted-foreground",e),...t}));Jr.displayName=re.Description.displayName;function pa({className:e,...t}){return(0,Ba.jsx)("div",{className:c("animate-pulse rounded-md bg-primary/10",e),...t})}var yo=Z(require("react")),Me=Z(require("@radix-ui/react-tooltip"));var wo=Me.Provider,No=Me.Root,So=Me.Trigger,ga=yo.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ba.jsx)(Me.Portal,{children:(0,Ba.jsx)(Me.Content,{ref:o,sideOffset:t,className:c("Ba-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),...a})}));ga.displayName=Me.Content.displayName;var Xr="sidebar:state",Zr=60*60*24*7,Yr="16rem",Qr="18rem",ei="3rem",ti="b",Po=F.createContext(null);function zt(){let e=F.useContext(Po);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var fa=F.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:i,children:s,...m},d)=>{let n=po(),[l,f]=F.useState(!1),[T,V]=F.useState(e),E=t??T,C=F.useCallback(y=>{if(a)return a?.(typeof y=="function"?y(E):y);V(y),document.cookie=`${Xr}=${E}; path=/; max-age=${Zr}`},[a,E]),h=F.useCallback(()=>n?f(y=>!y):C(y=>!y),[n,C,f]);F.useEffect(()=>{let y=X=>{X.key===ti&&(X.metaKey||X.ctrlKey)&&(X.preventDefault(),h())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[h]);let u=E?"expanded":"collapsed",A=F.useMemo(()=>({state:u,open:E,setOpen:C,isMobile:n,openMobile:l,setOpenMobile:f,toggleSidebar:h}),[u,E,C,n,l,f,h]);return(0,Ba.jsx)(Po.Provider,{value:A,children:(0,Ba.jsx)(wo,{delayDuration:0,children:(0,Ba.jsx)("div",{style:{"--sidebar-width":Yr,"--sidebar-width-icon":ei,...i},className:c("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:d,...m,children:s})})})});fa.displayName="SidebarProvider";var ai=F.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:i,...s},m)=>{let{isMobile:d,state:n,openMobile:l,setOpenMobile:f}=zt();return a==="none"?(0,Ba.jsx)("div",{className:c("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:m,...s,children:i}):d?(0,Ba.jsx)(bo,{open:l,onOpenChange:f,...s,children:(0,Ba.jsx)(ma,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Qr},side:e,children:(0,Ba.jsx)("div",{className:"flex h-full w-full flex-col",children:i})})}):(0,Ba.jsxs)("div",{ref:m,className:"group peer hidden md:block text-sidebar-foreground","data-state":n,"data-collapsible":n==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Ba.jsx)("div",{className:c("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Ba.jsx)("div",{className:c("duration-200 fixed top-14 bottom-0 Ba-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-Ba group-data-[side=right]:border-l",o),...s,children:(0,Ba.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:i})})]})});ai.displayName="Sidebar";var oi=F.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:i}=zt();return(0,Ba.jsxs)(x,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:c("h-7 w-7",e),onClick:s=>{t?.(s),i()},...a,children:[(0,Ba.jsx)(Ie.PanelLeft,{}),(0,Ba.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});oi.displayName="SidebarTrigger";var ri=F.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=zt();return(0,Ba.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:c("absolute inset-y-0 Ba-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ri.displayName="SidebarRail";var ii=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("main",{ref:a,className:c("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));ii.displayName="SidebarInset";var ni=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(W,{ref:a,"data-sidebar":"input",className:c("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ni.displayName="SidebarInput";var si=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,"data-sidebar":"header",className:c("flex flex-col gap-2 p-2",e),...t}));si.displayName="SidebarHeader";var li=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,"data-sidebar":"footer",className:c("flex flex-col gap-2 p-2",e),...t}));li.displayName="SidebarFooter";var di=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(ca,{ref:a,"data-sidebar":"separator",className:c("mx-2 w-auto bg-sidebar-border",e),...t}));di.displayName="SidebarSeparator";var ci=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,"data-sidebar":"content",className:c("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ci.displayName="SidebarContent";var mi=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,"data-sidebar":"group",className:c("relative flex w-full min-w-0 flex-col p-2",e),...t}));mi.displayName="SidebarGroup";var pi=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Ba.jsx)(t?za.Slot:"div",{ref:o,"data-sidebar":"group-label",className:c("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-Ee-8 group-data-[collapsible=icon]:opacity-0",e),...a}));pi.displayName="SidebarGroupLabel";var ui=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Ba.jsx)(t?za.Slot:"button",{ref:o,"data-sidebar":"group-action",className:c("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));ui.displayName="SidebarGroupAction";var gi=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,"data-sidebar":"group-content",className:c("w-full text-sm",e),...t}));gi.displayName="SidebarGroupContent";var fi=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("ul",{ref:a,"data-sidebar":"menu",className:c("flex w-full min-w-0 flex-col gap-1",e),...t}));fi.displayName="SidebarMenu";var vi=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:c("group/menu-item relative",e),...t}));vi.displayName="SidebarMenuItem";var bi=(0,La.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),hi=F.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:i,className:s,...m},d)=>{let n=e?za.Slot:"button",{isMobile:l,state:f}=zt(),T=(0,Ba.jsx)(n,{ref:d,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:c(bi({variant:a,size:o}),s),...m});return i?(typeof i=="string"&&(i={children:i}),(0,Ba.jsxs)(No,{children:[(0,Ba.jsx)(So,{asChild:!0,children:T}),(0,Ba.jsx)(ga,{side:"right",align:"center",hidden:f!=="collapsed"||l,...i})]})):T});hi.displayName="SidebarMenuButton";var xi=F.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},i)=>(0,Ba.jsx)(t?za.Slot:"button",{ref:i,"data-sidebar":"menu-action",className:c("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));xi.displayName="SidebarMenuAction";var yi=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:c("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));yi.displayName="SidebarMenuBadge";var wi=F.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let i=F.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Ba.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:c("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Ba.jsx)(pa,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Ba.jsx)(pa,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});wi.displayName="SidebarMenuSkeleton";var Ni=F.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:c("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ni.displayName="SidebarMenuSub";var Si=F.forwardRef(({...e},t)=>(0,Ba.jsx)("li",{ref:t,...e}));Si.displayName="SidebarMenuSubItem";var Ci=F.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...i},s)=>(0,Ba.jsx)(e?za.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:c("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...i}));Ci.displayName="SidebarMenuSubButton";var Ro=({projects:e,epics:t,sprints:a,currentView:o,onUpdateProject:i,onDeleteProject:s,onAddProject:m,onUpdateEpic:d,onDeleteEpic:n,onAddEpic:l,onAddSprint:f,onUpdateSprint:T,onDeleteSprint:V,onViewChange:E,mobileMenuOpen:C,onToggleMobileMenu:h})=>{let[u,A]=(0,Ee.useState)(null),[y,X]=(0,Ee.useState)(null),[se,ge]=(0,Ee.useState)(null),[he,Ae]=(0,Ee.useState)(null),[xe,v]=(0,Ee.useState)({name:"",description:""}),[D,q]=(0,Ee.useState)({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[O,fe]=(0,Ee.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[Be,Re]=(0,Ee.useState)(!1),[Ue,We]=(0,Ee.useState)(!1),[ke,Te]=(0,Ee.useState)({name:"",description:""}),[me,ne]=(0,Ee.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),_t=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],Ct=[{value:"low",label:"Low",color:"text-red-600"},{value:"medium",label:"Medium",color:"text-yellow-600"},{value:"high",label:"High",color:"text-green-600"}],nt=[{value:1,label:"Phase 1",color:"text-blue-600"},{value:2,label:"Phase 2",color:"text-purple-600"},{value:3,label:"Phase 3",color:"text-orange-600"},{value:4,label:"Phase 4",color:"text-green-600"},{value:5,label:"Phase 5",color:"text-red-600"},{value:6,label:"Phase 6",color:"text-yellow-600"},{value:7,label:"Phase 7",color:"text-pink-600"},{value:8,label:"Phase 8",color:"text-indigo-600"},{value:9,label:"Phase 9",color:"text-gray-600"}],Ut=p=>{X(p.id),v({name:p.name,description:p.description||""})},Dt=()=>{y&&xe.name.trim()&&(i(y,{name:xe.name.trim(),description:xe.description.trim()}),X(null))},Wt=()=>{X(null),v({name:"",description:""})},Pt=()=>{ke.name.trim()&&(m({name:ke.name.trim(),description:ke.description.trim(),isSelected:!1}),Te({name:"",description:""}),Re(!1))},Sa=p=>{i(p,{isSelected:!0})},$t=p=>{ge(p.id),q({name:p.name,description:p.description||"",color:p.color,confidence:p.confidence,phase:p.phase,startDate:p.startDate.toISOString().split("T")[0],endDate:p.endDate.toISOString().split("T")[0],progress:p.progress})},Kt=()=>{se&&D.name.trim()&&(d(se,{name:D.name.trim(),description:D.description.trim(),color:D.color,confidence:D.confidence,phase:D.phase,startDate:new Date(D.startDate),endDate:new Date(D.endDate),progress:D.progress}),ge(null))},qt=()=>{ge(null),q({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},gt=p=>{Ae(p.id),fe({name:p.name,description:p.description||"",startDate:p.startDate.toISOString().split("T")[0],endDate:p.endDate.toISOString().split("T")[0],isActive:p.isActive})},Jt=()=>{he&&O.name.trim()&&(T(he,{name:O.name.trim(),description:O.description.trim(),startDate:new Date(O.startDate),endDate:new Date(O.endDate),isActive:O.isActive}),Ae(null))},Xt=()=>{Ae(null),fe({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Zt=()=>{me.name.trim()&&(f({name:me.name.trim(),description:me.description.trim(),startDate:new Date(me.startDate),endDate:new Date(me.endDate),isActive:me.isActive,isSelected:!1}),ne({name:"",description:"",startDate:"",endDate:"",isActive:!1}),We(!1))},g=p=>{T(p,{isSelected:!0})},w=p=>p.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),I=p=>{let b=Ct.find(H=>H.value===p);return b?{label:b.label,color:b.color}:{label:"Medium",color:"text-yellow-600"}},K=p=>{let b=nt.find(H=>H.value===p);return b?{label:b.label,color:b.color}:{label:"Phase 1",color:"text-blue-600"}};return(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsxs)("div",{className:`fixed left-0 w-12 bg-slate-800 flex flex-col Ba-30 flex-shrink-0 transition-transform duration-300 ${C?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[(0,Ba.jsxs)("div",{className:"border-b border-slate-600",children:[(0,Ba.jsx)("button",{onClick:()=>{E("kanban"),A(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${o==="kanban"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Kanban View",children:(0,Ba.jsx)(Ie.Kanban,{className:"h-4 w-4"})}),(0,Ba.jsx)("button",{onClick:()=>{E("planning"),A(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${o==="planning"?"bg-purple-600":"bg-purple-500 hover:bg-purple-600"} hidden md:flex`,title:"Planning View",children:(0,Ba.jsx)(Ie.Calendar,{className:"h-4 w-4"})})]}),(0,Ba.jsx)("button",{onClick:()=>A(u==="projects"?null:"projects"),className:`flex-1 flex items-center justify-center text-white transition-colors ${u==="projects"?"bg-slate-600":"bg-slate-700 hover:bg-slate-600"}`,title:"Projects",children:(0,Ba.jsx)(Ie.FolderOpen,{className:"h-4 w-4"})}),(0,Ba.jsx)("button",{onClick:()=>{E("epics"),A(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="epics"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Epic Planning",children:(0,Ba.jsx)(Ie.Target,{className:"h-4 w-4"})}),(0,Ba.jsx)("button",{onClick:()=>A(u==="sprints"?null:"sprints"),className:`flex-1 flex items-center justify-center text-white transition-colors ${u==="sprints"?"bg-green-600":"bg-green-500 hover:bg-green-600"}`,title:"Sprints",children:(0,Ba.jsx)(Ie.Layers,{className:"h-4 w-4"})}),(0,Ba.jsx)("button",{onClick:()=>{E("documentation"),A(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="documentation"?"bg-orange-600":"bg-orange-500 hover:bg-orange-600"}`,title:"Documents",children:(0,Ba.jsx)(Ie.FileText,{className:"h-4 w-4"})})]}),C&&(0,Ba.jsx)("div",{className:"md:hidden fixed inset-0 bg-black/50 Ba-20",style:{top:"8.5rem"},onClick:h}),u&&(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsx)("div",{className:"fixed inset-0 bg-black/50 Ba-40",style:{top:"8.5rem"},onClick:()=>A(null)}),(0,Ba.jsxs)("div",{className:"fixed left-12 md:left-16 w-80 md:w-96 bg-white shadow-lg Ba-50 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none",style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[(0,Ba.jsxs)("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[(0,Ba.jsxs)("h2",{className:"text-base md:text-lg font-semibold",children:[u==="projects"&&"Projects",u==="epics"&&"Manage Epics",u==="sprints"&&"Manage Sprints",u==="documents"&&"Documents"]}),(0,Ba.jsx)(x,{variant:"ghost",size:"sm",onClick:()=>A(null),children:(0,Ba.jsx)(Ie.X,{className:"h-4 w-4"})})]}),(0,Ba.jsxs)("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[u==="projects"&&(0,Ba.jsx)(le,{className:"p-3",children:(0,Ba.jsxs)("div",{className:"space-y-3",children:[(0,Ba.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ba.jsx)("h3",{className:"font-medium text-gray-900",children:"Projects"}),(0,Ba.jsxs)(x,{size:"sm",onClick:()=>Re(!0),className:"gap-1",children:[(0,Ba.jsx)(Ie.Plus,{className:"h-3 w-3"}),"Add Project"]})]}),Be&&(0,Ba.jsxs)("div",{className:"border rounded-lg p-2 space-y-2",children:[(0,Ba.jsx)(W,{value:ke.name,onChange:p=>Te(b=>({...b,name:p.target.value})),placeholder:"Project name",className:"text-sm"}),(0,Ba.jsx)(pe,{value:ke.description,onChange:p=>Te(b=>({...b,description:p.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),(0,Ba.jsxs)("div",{className:"flex gap-1",children:[(0,Ba.jsx)(x,{size:"sm",onClick:Pt,className:"text-xs h-6",children:"Save"}),(0,Ba.jsx)(x,{size:"sm",variant:"outline",onClick:()=>Re(!1),className:"text-xs h-6",children:"Cancel"})]})]}),(0,Ba.jsx)("div",{className:"space-y-2",children:e.map(p=>(0,Ba.jsx)("div",{className:"border rounded p-2",children:y===p.id?(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(W,{value:xe.name,onChange:b=>v(H=>({...H,name:b.target.value})),placeholder:"Project name",className:"text-sm"}),(0,Ba.jsx)(pe,{value:xe.description,onChange:b=>v(H=>({...H,description:b.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),(0,Ba.jsxs)("div",{className:"flex gap-1",children:[(0,Ba.jsx)(x,{size:"sm",onClick:Dt,className:"text-xs h-6",children:"Save"}),(0,Ba.jsx)(x,{size:"sm",variant:"outline",onClick:Wt,className:"text-xs h-6",children:"Cancel"})]})]}):(0,Ba.jsxs)("div",{className:`cursor-pointer p-1 rounded transition-colors ${p.isSelected?"bg-blue-50 border-blue-200 ring-2 ring-blue-300":"hover:bg-gray-50"}`,onClick:()=>Sa(p.id),children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ba.jsx)(Ie.FolderOpen,{className:"h-3 w-3 text-gray-500"}),(0,Ba.jsx)("span",{className:"font-medium text-xs",children:p.name})]}),p.description&&(0,Ba.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:p.description}),(0,Ba.jsxs)("div",{className:"flex gap-1",onClick:b=>b.stopPropagation(),children:[(0,Ba.jsx)(x,{size:"sm",variant:"ghost",onClick:()=>Ut(p),className:"h-5 px-1",children:(0,Ba.jsx)(Ie.Edit2,{className:"h-3 w-3"})}),(0,Ba.jsx)(x,{size:"sm",variant:"ghost",onClick:()=>s(p.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:(0,Ba.jsx)(Ie.Trash2,{className:"h-3 w-3"})})]})]})},p.id))})]})}),u==="epics"&&(0,Ba.jsx)(le,{className:"p-3",children:(0,Ba.jsxs)("div",{className:"space-y-3",children:[(0,Ba.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ba.jsx)("h3",{className:"font-medium text-gray-900",children:"Epics"}),(0,Ba.jsxs)(x,{size:"sm",onClick:l,className:"gap-1",children:[(0,Ba.jsx)(Ie.Plus,{className:"h-3 w-3"}),"Add Epic"]})]}),(0,Ba.jsx)("div",{className:"space-y-4",children:t.map(p=>(0,Ba.jsx)("div",{className:"border rounded-lg p-3",children:se===p.id?(0,Ba.jsxs)("div",{className:"space-y-3",children:[(0,Ba.jsx)(W,{value:D.name,onChange:b=>q(H=>({...H,name:b.target.value})),placeholder:"Epic name",className:"text-sm"}),(0,Ba.jsx)(pe,{value:D.description,onChange:b=>q(H=>({...H,description:b.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)("label",{className:"text-xs font-medium",children:"Color"}),(0,Ba.jsx)("div",{className:"flex gap-1 flex-wrap",children:_t.map(b=>(0,Ba.jsx)("button",{onClick:()=>q(H=>({...H,color:b})),className:`w-6 h-6 rounded-full ${b} ${D.color===b?"ring-2 ring-gray-400":""}`},b))})]}),(0,Ba.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,Ba.jsxs)("div",{className:"space-y-1",children:[(0,Ba.jsx)("label",{className:"text-xs font-medium",children:"Confidence"}),(0,Ba.jsxs)(we,{value:D.confidence,onValueChange:b=>q(H=>({...H,confidence:b})),children:[(0,Ba.jsx)(ve,{className:"h-8 text-xs",children:(0,Ba.jsx)(He,{})}),(0,Ba.jsx)(be,{children:Ct.map(b=>(0,Ba.jsx)(de,{value:b.value,children:(0,Ba.jsx)("span",{className:b.color,children:b.label})},b.value))})]})]}),(0,Ba.jsxs)("div",{className:"space-y-1",children:[(0,Ba.jsx)("label",{className:"text-xs font-medium",children:"Phase"}),(0,Ba.jsxs)(we,{value:D.phase.toString(),onValueChange:b=>q(H=>({...H,phase:parseInt(b)})),children:[(0,Ba.jsx)(ve,{className:"h-8 text-xs",children:(0,Ba.jsx)(He,{})}),(0,Ba.jsx)(be,{children:nt.map(b=>(0,Ba.jsx)(de,{value:b.value.toString(),children:(0,Ba.jsx)("span",{className:b.color,children:b.label})},b.value))})]})]})]}),(0,Ba.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,Ba.jsxs)("div",{className:"space-y-1",children:[(0,Ba.jsx)("label",{className:"text-xs font-medium",children:"Start Date"}),(0,Ba.jsx)(W,{type:"date",value:D.startDate,onChange:b=>q(H=>({...H,startDate:b.target.value})),className:"text-xs h-8"})]}),(0,Ba.jsxs)("div",{className:"space-y-1",children:[(0,Ba.jsx)("label",{className:"text-xs font-medium",children:"End Date"}),(0,Ba.jsx)(W,{type:"date",value:D.endDate,onChange:b=>q(H=>({...H,endDate:b.target.value})),className:"text-xs h-8"})]})]}),(0,Ba.jsxs)("div",{className:"space-y-1",children:[(0,Ba.jsx)("label",{className:"text-xs font-medium",children:"Progress (%)"}),(0,Ba.jsx)(W,{type:"number",min:"0",max:"100",value:D.progress,onChange:b=>q(H=>({...H,progress:parseInt(b.target.value)||0})),className:"text-xs h-8"})]}),(0,Ba.jsxs)("div",{className:"flex gap-2",children:[(0,Ba.jsx)(x,{size:"sm",onClick:Kt,className:"text-xs",children:"Save"}),(0,Ba.jsx)(x,{size:"sm",variant:"outline",onClick:qt,className:"text-xs",children:"Cancel"})]})]}):(0,Ba.jsxs)("div",{className:`cursor-pointer p-2 rounded transition-colors ${p.isSelected?"bg-blue-50 border-blue-200":"hover:bg-gray-50"}`,onClick:()=>d(p.id,{isSelected:!p.isSelected}),children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Ba.jsx)("div",{className:`w-3 h-3 rounded-full ${p.color}`}),(0,Ba.jsx)("span",{className:"font-medium text-sm",children:p.name})]}),p.description&&(0,Ba.jsx)("p",{className:"text-xs text-gray-600 mb-2",children:p.description}),(0,Ba.jsxs)("div",{className:"space-y-1 mb-2",children:[(0,Ba.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,Ba.jsx)("span",{className:"text-gray-500",children:"Confidence:"}),(0,Ba.jsx)("span",{className:I(p.confidence).color,children:I(p.confidence).label})]}),(0,Ba.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,Ba.jsx)("span",{className:"text-gray-500",children:"Phase:"}),(0,Ba.jsx)("span",{className:K(p.phase).color,children:K(p.phase).label})]}),(0,Ba.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,Ba.jsx)("span",{className:"text-gray-500",children:"Timeline:"}),(0,Ba.jsxs)("span",{className:"text-gray-700",children:[w(p.startDate)," - ",w(p.endDate)]})]}),(0,Ba.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,Ba.jsx)("span",{className:"text-gray-500",children:"Progress:"}),(0,Ba.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ba.jsx)("div",{className:"w-12 h-2 bg-gray-200 rounded-full",children:(0,Ba.jsx)("div",{className:"h-2 bg-blue-500 rounded-full",style:{width:`${p.progress}%`}})}),(0,Ba.jsxs)("span",{className:"text-gray-700",children:[p.progress,"%"]})]})]})]}),(0,Ba.jsxs)("div",{className:"flex gap-1",onClick:b=>b.stopPropagation(),children:[(0,Ba.jsx)(x,{size:"sm",variant:"ghost",onClick:()=>$t(p),className:"h-6 px-2",children:(0,Ba.jsx)(Ie.Edit2,{className:"h-3 w-3"})}),(0,Ba.jsx)(x,{size:"sm",variant:"ghost",onClick:()=>n(p.id),className:"h-6 px-2 text-red-600 hover:text-red-700",children:(0,Ba.jsx)(Ie.Trash2,{className:"h-3 w-3"})})]})]})},p.id))})]})}),u==="sprints"&&(0,Ba.jsx)(le,{className:"p-3",children:(0,Ba.jsxs)("div",{className:"space-y-3",children:[(0,Ba.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ba.jsx)("h3",{className:"font-medium text-gray-900",children:"Sprints (Select One)"}),(0,Ba.jsxs)(x,{size:"sm",onClick:()=>We(!0),className:"gap-1",children:[(0,Ba.jsx)(Ie.Plus,{className:"h-3 w-3"}),"Add Sprint"]})]}),Ue&&(0,Ba.jsxs)("div",{className:"border rounded-lg p-2 space-y-2",children:[(0,Ba.jsx)(W,{value:me.name,onChange:p=>ne(b=>({...b,name:p.target.value})),placeholder:"Sprint name",className:"text-sm"}),(0,Ba.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,Ba.jsx)(W,{type:"date",value:me.startDate,onChange:p=>ne(b=>({...b,startDate:p.target.value})),className:"text-xs"}),(0,Ba.jsx)(W,{type:"date",value:me.endDate,onChange:p=>ne(b=>({...b,endDate:p.target.value})),className:"text-xs"})]}),(0,Ba.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ba.jsx)("input",{type:"checkbox",checked:me.isActive,onChange:p=>ne(b=>({...b,isActive:p.target.checked})),className:"w-3 h-3"}),(0,Ba.jsx)("span",{className:"text-xs",children:"Active"})]}),(0,Ba.jsxs)("div",{className:"flex gap-1",children:[(0,Ba.jsx)(x,{size:"sm",onClick:Zt,className:"text-xs h-6",children:"Save"}),(0,Ba.jsx)(x,{size:"sm",variant:"outline",onClick:()=>We(!1),className:"text-xs h-6",children:"Cancel"})]})]}),(0,Ba.jsx)("div",{className:"space-y-2",children:a.map(p=>(0,Ba.jsx)("div",{className:"border rounded p-2",children:he===p.id?(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(W,{value:O.name,onChange:b=>fe(H=>({...H,name:b.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:p.id==="backlog"||p.id==="all-tasks"}),p.id!=="backlog"&&p.id!=="all-tasks"&&(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,Ba.jsx)(W,{type:"date",value:O.startDate,onChange:b=>fe(H=>({...H,startDate:b.target.value})),className:"text-xs"}),(0,Ba.jsx)(W,{type:"date",value:O.endDate,onChange:b=>fe(H=>({...H,endDate:b.target.value})),className:"text-xs"})]}),(0,Ba.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ba.jsx)("input",{type:"checkbox",checked:O.isActive,onChange:b=>fe(H=>({...H,isActive:b.target.checked})),className:"w-3 h-3"}),(0,Ba.jsx)("span",{className:"text-xs",children:"Active"})]})]}),(0,Ba.jsxs)("div",{className:"flex gap-1",children:[(0,Ba.jsx)(x,{size:"sm",onClick:Jt,className:"text-xs h-6",children:"Save"}),(0,Ba.jsx)(x,{size:"sm",variant:"outline",onClick:Xt,className:"text-xs h-6",children:"Cancel"})]})]}):(0,Ba.jsxs)("div",{className:`cursor-pointer p-1 rounded transition-colors ${p.isSelected?"bg-green-50 border-green-200 ring-2 ring-green-300":"hover:bg-gray-50"}`,onClick:()=>g(p.id),children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ba.jsx)(Ie.Calendar,{className:"h-3 w-3 text-gray-500"}),(0,Ba.jsx)("span",{className:"font-medium text-xs",children:p.name}),p.isActive&&(0,Ba.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-1 py-0.5 rounded",children:"Active"}),(p.id==="backlog"||p.id==="all-tasks")&&(0,Ba.jsx)("span",{className:"text-xs bg-gray-100 text-gray-800 px-1 py-0.5 rounded",children:"System"})]}),p.id!=="backlog"&&p.id!=="all-tasks"&&(0,Ba.jsxs)("p",{className:"text-xs text-gray-500 mb-1",children:[p.startDate.toLocaleDateString()," - ",p.endDate.toLocaleDateString()]}),(0,Ba.jsxs)("div",{className:"flex gap-1",onClick:b=>b.stopPropagation(),children:[(0,Ba.jsx)(x,{size:"sm",variant:"ghost",onClick:()=>gt(p),className:"h-5 px-1",children:(0,Ba.jsx)(Ie.Edit2,{className:"h-3 w-3"})}),p.id!=="backlog"&&p.id!=="all-tasks"&&(0,Ba.jsx)(x,{size:"sm",variant:"ghost",onClick:()=>V(p.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:(0,Ba.jsx)(Ie.Trash2,{className:"h-3 w-3"})})]})]})},p.id))})]})})]})]})]})]})},ko=e=>(0,Ba.jsx)(fa,{children:(0,Ba.jsxs)("div",{className:"flex h-full w-full",children:[(0,Ba.jsx)("div",{className:"hidden md:block w-16",children:(0,Ba.jsx)(Ro,{...e})}),(0,Ba.jsx)("div",{className:"md:hidden",children:(0,Ba.jsx)(Ro,{...e})}),(0,Ba.jsx)("div",{className:"flex-1 md:ml-0",children:e.children})]})});var Mo=({isOpen:e,onClose:t,onAddEpic:a})=>{let[o,i]=(0,Ee.useState)({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),s=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],m=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],d=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],n=f=>{f.preventDefault(),o.name.trim()&&(a({name:o.name.trim(),description:o.description.trim(),color:o.color,confidence:o.confidence,phase:o.phase,startDate:new Date(o.startDate),endDate:new Date(o.endDate),progress:o.progress,isSelected:!0}),i({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),t())},l=(f,T)=>{i(V=>({...V,[f]:T}))};return(0,Ba.jsx)(qe,{open:e,onOpenChange:t,children:(0,Ba.jsxs)(Oe,{className:"sm:max-w-md",children:[(0,Ba.jsx)(Fe,{children:(0,Ba.jsx)(Ve,{children:"Add New Epic"})}),(0,Ba.jsxs)("form",{onSubmit:n,className:"space-y-4",children:[(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"name",children:"Epic Name"}),(0,Ba.jsx)(W,{id:"name",value:o.name,onChange:f=>l("name",f.target.value),placeholder:"Enter epic name",required:!0})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"description",children:"Description"}),(0,Ba.jsx)(pe,{id:"description",value:o.description,onChange:f=>l("description",f.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"Color"}),(0,Ba.jsx)("div",{className:"flex gap-2 flex-wrap",children:s.map(f=>(0,Ba.jsx)("button",{type:"button",onClick:()=>l("color",f),className:`w-8 h-8 rounded-full ${f} ${o.color===f?"ring-2 ring-gray-400":""}`},f))})]}),(0,Ba.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"Confidence"}),(0,Ba.jsxs)(we,{value:o.confidence,onValueChange:f=>l("confidence",f),children:[(0,Ba.jsx)(ve,{children:(0,Ba.jsx)(He,{})}),(0,Ba.jsx)(be,{children:m.map(f=>(0,Ba.jsx)(de,{value:f.value,children:f.label},f.value))})]})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"Phase"}),(0,Ba.jsxs)(we,{value:o.phase.toString(),onValueChange:f=>l("phase",parseInt(f)),children:[(0,Ba.jsx)(ve,{children:(0,Ba.jsx)(He,{})}),(0,Ba.jsx)(be,{children:d.map(f=>(0,Ba.jsx)(de,{value:f.value.toString(),children:f.label},f.value))})]})]})]}),(0,Ba.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"Start Date"}),(0,Ba.jsx)(W,{type:"date",value:o.startDate,onChange:f=>l("startDate",f.target.value)})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"End Date"}),(0,Ba.jsx)(W,{type:"date",value:o.endDate,onChange:f=>l("endDate",f.target.value)})]})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"Progress (%)"}),(0,Ba.jsx)(W,{type:"number",min:"0",max:"100",value:o.progress,onChange:f=>l("progress",parseInt(f.target.value)||0)})]}),(0,Ba.jsxs)(ht,{children:[(0,Ba.jsx)(x,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Ba.jsx)(x,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};var Eo=require("react-day-picker");function Ot({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Ba.jsx)(Eo.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:c("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center fo-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:c(kt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full Ee-2",cell:c("relative p-0 text-center text-sm focus-within:relative focus-within:Ba-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-Ba-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-Ba-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-Ba-md":"[&:has([aria-selected])]:rounded-md"),day:c(kt({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}Ot.displayName="Calendar";var Io=Z(require("react")),Le=Z(require("@radix-ui/react-popover"));var ba=Le.Root,ha=Le.Trigger;var Ft=Io.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},i)=>(0,Ba.jsx)(Le.Portal,{children:(0,Ba.jsx)(Le.Content,{ref:i,align:t,sideOffset:a,className:c("Ba-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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})}));Ft.displayName=Le.Content.displayName;var ya=require("date-fns");var Bo=({isOpen:e,onClose:t,onAddSprint:a})=>{let[o,i]=(0,Ee.useState)({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),s=d=>{d.preventDefault(),!(!o.name||!o.startDate||!o.endDate)&&(a({name:o.name,description:o.description,startDate:o.startDate,endDate:o.endDate,isActive:o.isActive,isSelected:!1}),i({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),t())},m=()=>{i({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),t()};return(0,Ba.jsx)(qe,{open:e,onOpenChange:m,children:(0,Ba.jsxs)(Oe,{className:"sm:max-w-md",children:[(0,Ba.jsx)(Fe,{children:(0,Ba.jsx)(Ve,{children:"Add New Sprint"})}),(0,Ba.jsxs)("form",{onSubmit:s,className:"space-y-4",children:[(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"name",children:"Sprint Name *"}),(0,Ba.jsx)(W,{id:"name",value:o.name,onChange:d=>i(n=>({...n,name:d.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{htmlFor:"description",children:"Description"}),(0,Ba.jsx)(pe,{id:"description",value:o.description,onChange:d=>i(n=>({...n,description:d.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),(0,Ba.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"Start Date *"}),(0,Ba.jsxs)(ba,{children:[(0,Ba.jsx)(ha,{asChild:!0,children:(0,Ba.jsxs)(x,{variant:"outline",className:c("w-full justify-start text-left font-normal",!o.startDate&&"text-muted-foreground"),children:[(0,Ba.jsx)(Ie.CalendarIcon,{className:"mr-2 h-4 w-4"}),o.startDate?(0,ya.format)(o.startDate,"PPP"):"Pick a date"]})}),(0,Ba.jsx)(Ft,{className:"w-auto p-0",align:"start",children:(0,Ba.jsx)(Ot,{mode:"single",selected:o.startDate,onSelect:d=>i(n=>({...n,startDate:d})),initialFocus:!0})})]})]}),(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsx)(B,{children:"End Date *"}),(0,Ba.jsxs)(ba,{children:[(0,Ba.jsx)(ha,{asChild:!0,children:(0,Ba.jsxs)(x,{variant:"outline",className:c("w-full justify-start text-left font-normal",!o.endDate&&"text-muted-foreground"),children:[(0,Ba.jsx)(Ie.CalendarIcon,{className:"mr-2 h-4 w-4"}),o.endDate?(0,ya.format)(o.endDate,"PPP"):"Pick a date"]})}),(0,Ba.jsx)(Ft,{className:"w-auto p-0",align:"start",children:(0,Ba.jsx)(Ot,{mode:"single",selected:o.endDate,onSelect:d=>i(n=>({...n,endDate:d})),initialFocus:!0,disabled:d=>o.startDate?d<o.startDate:!1})})]})]})]}),(0,Ba.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ba.jsx)("input",{type:"checkbox",id:"isActive",checked:o.isActive,onChange:d=>i(n=>({...n,isActive:d.target.checked})),className:"rounded border-gray-300"}),(0,Ba.jsx)(B,{htmlFor:"isActive",children:"Set as active sprint"})]}),(0,Ba.jsxs)("div",{className:"flex justify-end gap-3 fo-4",children:[(0,Ba.jsx)(x,{type:"button",variant:"outline",onClick:m,children:"Cancel"}),(0,Ba.jsx)(x,{type:"submit",disabled:!o.name||!o.startDate||!o.endDate,children:"Add Sprint"})]})]})]})})};var zo=({tasks:e,epics:t,sprints:a,onUpdateTask:o,onTaskClick:i,onAddSprint:s})=>{let[m,d]=(0,Ee.useState)(["2"]),[n,l]=(0,Ee.useState)(null),[f,T]=(0,Ee.useState)(!1),V=e.filter(v=>!v.sprintId),E=e.filter(v=>v.sprintId&&m.includes(v.sprintId)),C=[...a].filter(v=>v.id!=="backlog"&&v.id!=="all-tasks").sort((v,D)=>v.startDate.getTime()-D.startDate.getTime()),h=v=>t.find(D=>D.id===v),u=v=>a.find(D=>D.id===v),A=v=>{switch(v){case"high":return"bg-red-100 text-red-800";case"medium":return"bg-yellow-100 text-yellow-800";case"low":return"bg-green-100 text-green-800";default:return"bg-gray-100 text-gray-800"}},y=v=>v.split(" ").map(D=>D[0]).join("").toUpperCase(),X=v=>{l(v)},se=v=>{v.preventDefault()},ge=(v,D)=>{v.preventDefault(),n&&(o(n.id,{sprintId:D==="backlog"?void 0:D}),l(null))},he=v=>{v==="backlog"||v==="all-tasks"||d(D=>D.includes(v)?D.filter(q=>q!==v):[...D,v])},Ae=v=>{s(v),T(!1)},xe=({task:v,showSprint:D=!1})=>{let q=h(v.epicId),O=v.sprintId?u(v.sprintId):null;return(0,Ba.jsx)(le,{className:"p-2 cursor-grab transition-all duration-200 hover:shadow-md bg-white active:cursor-grabbing",draggable:!0,onDragStart:Re=>{X(v)},onClick:Re=>{Re.defaultPrevented||i(v)},children:(0,Ba.jsxs)("div",{className:"space-y-2",children:[(0,Ba.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ba.jsx)("h4",{className:"font-medium text-sm text-gray-900 line-clamp-1 select-none pointer-events-none",children:v.title}),(0,Ba.jsx)(ae,{className:`text-xs select-none pointer-events-none ${A(v.priority)}`,children:v.priority[0].toUpperCase()})]}),(0,Ba.jsxs)("div",{className:"flex items-center justify-between text-xs pointer-events-none",children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-1",children:[q&&(0,Ba.jsx)("div",{className:`w-2 h-2 rounded-full ${q.color}`}),(0,Ba.jsx)("span",{className:"text-gray-600 truncate select-none",children:q?.name})]}),(0,Ba.jsx)("span",{className:"text-gray-500 select-none",children:y(v.assignee)})]}),D&&O&&(0,Ba.jsxs)("div",{className:"flex items-center gap-1 text-xs text-gray-500 pointer-events-none",children:[(0,Ba.jsx)(Ie.Calendar,{className:"h-3 w-3"}),(0,Ba.jsx)("span",{className:"select-none",children:O.name})]})]})})};return(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:[(0,Ba.jsx)("div",{className:"lg:col-span-1",children:(0,Ba.jsxs)(le,{className:"p-4 h-full",onDragOver:se,onDrop:v=>ge(v,"backlog"),children:[(0,Ba.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Ba.jsx)("h3",{className:"font-semibold text-gray-900 select-none",children:"Backlog"}),(0,Ba.jsx)(ae,{variant:"secondary",children:V.length})]}),(0,Ba.jsxs)("div",{className:"space-y-2 overflow-y-auto max-h-[600px] min-h-[200px] border-2 border-dashed border-gray-200 rounded p-2",children:[V.map(v=>(0,Ba.jsx)(xe,{task:v},v.id)),V.length===0&&(0,Ba.jsx)("div",{className:"flex items-center justify-center h-32 text-gray-400 text-sm select-none",children:"Drop tasks here to move to backlog"})]})]})}),(0,Ba.jsx)("div",{className:"lg:col-span-3",children:(0,Ba.jsxs)("div",{className:"space-y-4",children:[(0,Ba.jsxs)(le,{className:"p-4",children:[(0,Ba.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ba.jsx)("h3",{className:"font-semibold text-gray-900 select-none",children:"Select Sprints to View"}),(0,Ba.jsxs)(x,{onClick:()=>T(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",size:"sm",children:[(0,Ba.jsx)(Ie.Plus,{className:"h-4 w-4"}),"Add Sprint"]})]}),(0,Ba.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:C.map(v=>(0,Ba.jsxs)(x,{variant:m.includes(v.id)?"default":"outline",size:"sm",onClick:()=>he(v.id),className:"text-xs h-8",children:[v.name,v.isActive&&(0,Ba.jsx)("span",{className:"ml-1 text-green-400",children:"\u25CF"})]},v.id))})]}),(0,Ba.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:m.map(v=>C.find(D=>D.id===v)).filter(Boolean).sort((v,D)=>v.startDate.getTime()-D.startDate.getTime()).map(v=>{let D=E.filter(q=>q.sprintId===v.id);return(0,Ba.jsxs)(le,{className:"p-4",onDragOver:se,onDrop:q=>ge(q,v.id),children:[(0,Ba.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Ba.jsxs)("div",{children:[(0,Ba.jsx)("h3",{className:"font-semibold text-gray-900 select-none",children:v.name}),v.isActive&&(0,Ba.jsx)("span",{className:"text-xs text-green-600 font-medium select-none",children:"Active Sprint"})]}),(0,Ba.jsx)(ae,{variant:"secondary",children:D.length})]}),(0,Ba.jsxs)("div",{className:"space-y-2 overflow-y-auto max-h-[500px] min-h-[200px] border-2 border-dashed border-gray-200 rounded p-2",children:[D.map(q=>(0,Ba.jsx)(xe,{task:q},q.id)),D.length===0&&(0,Ba.jsx)("div",{className:"flex items-center justify-center h-32 text-gray-400 text-sm select-none",children:"Drop tasks here"})]})]},v.id)})})]})})]}),(0,Ba.jsx)(Bo,{isOpen:f,onClose:()=>T(!1),onAddSprint:Ae})]})};var Oo=[{id:"1",title:"Project Overview",content:`# Project Overview
5
5
 
6
6
  This is the main project documentation...`,isFolder:!1},{id:"2",title:"User Guides",content:"",isFolder:!0,children:[{id:"2-1",title:"Getting Started",content:`# Getting Started
7
7
 
@@ -11,4 +11,4 @@ Learn about advanced functionality...`,parentId:"2",isFolder:!1}]},{id:"3",title
11
11
 
12
12
  API endpoints for user authentication...`,parentId:"3",isFolder:!1},{id:"3-2",title:"Data Management",content:`# Data Management API
13
13
 
14
- CRUD operations and data handling...`,parentId:"3",isFolder:!1}]}],Xa=()=>{let[e,t]=(0,we.useState)(qa),[a,o]=(0,we.useState)(qa[0]),[i,r]=(0,we.useState)(new Set(["2","3"])),[d,l]=(0,we.useState)(null),[n,f]=(0,we.useState)(""),m=x=>{let A=new Set(i);A.has(x)?A.delete(x):A.add(x),r(A)},R=x=>{x.isFolder||o(x)},M=x=>{l(x.id),f(x.content)},S=()=>{if(d&&a){let x=v(e,d,{content:n});t(x),o({...a,content:n}),l(null)}},v=(x,A,h)=>x.map(V=>V.id===A?{...V,...h}:V.children?{...V,children:v(V.children,A,h)}:V),I=(x,A=0)=>x.map(h=>(0,ea.jsxs)("div",{className:`ml-${A*4}`,children:[(0,ea.jsxs)("div",{className:`flex items-center gap-2 p-2 rounded cursor-pointer hover:bg-gray-100 ${a?.id===h.id?"bg-blue-50 border-l-4 border-blue-500":""}`,onClick:()=>h.isFolder?m(h.id):R(h),children:[h.isFolder?(0,ea.jsxs)(ea.Fragment,{children:[i.has(h.id)?(0,ea.jsx)(de.ChevronDown,{className:"h-4 w-4 text-gray-500"}):(0,ea.jsx)(de.ChevronRight,{className:"h-4 w-4 text-gray-500"}),(0,ea.jsx)(de.Folder,{className:"h-4 w-4 text-blue-500"})]}):(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)("div",{className:"w-4"}),(0,ea.jsx)(de.FileText,{className:"h-4 w-4 text-gray-500"})]}),(0,ea.jsx)("span",{className:"text-sm font-medium text-gray-700",children:h.title})]}),h.isFolder&&h.children&&i.has(h.id)&&(0,ea.jsx)("div",{className:"ml-4",children:I(h.children,A+1)})]},h.id));return(0,ea.jsxs)("div",{className:"flex h-full",children:[(0,ea.jsxs)("div",{className:"w-80 border-r bg-gray-50",children:[(0,ea.jsx)("div",{className:"p-4 border-ea",children:(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)("h2",{className:"text-lg font-semibold text-gray-900",children:"Documentation"}),(0,ea.jsxs)(w,{size:"sm",className:"gap-1",children:[(0,ea.jsx)(de.Plus,{className:"h-3 w-3"}),"New"]})]})}),(0,ea.jsx)("div",{className:"p-2 overflow-ea-auto h-full",children:I(e)})]}),(0,ea.jsx)("div",{className:"flex-1 flex flex-col",children:a?(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)("div",{className:"p-4 border-ea bg-white",children:(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:a.title}),(0,ea.jsxs)("div",{className:"flex gap-2",children:[(0,ea.jsxs)(w,{variant:"outline",size:"sm",onClick:()=>M(a),className:"gap-1",children:[(0,ea.jsx)(de.Edit2,{className:"h-3 w-3"}),"Edit"]}),(0,ea.jsxs)(w,{variant:"outline",size:"sm",className:"gap-1",children:[(0,ea.jsx)(de.Trash2,{className:"h-3 w-3"}),"Delete"]})]})]})}),(0,ea.jsx)("div",{className:"flex-1 p-6 bg-white overflow-ea-auto",children:d===a.id?(0,ea.jsxs)("div",{className:"space-ea-4",children:[(0,ea.jsx)("textarea",{value:n,onChange:x=>f(x.target.value),className:"w-full h-96 p-4 border rounded-lg font-mono text-sm",placeholder:"Write your documentation in Markdown..."}),(0,ea.jsxs)("div",{className:"flex gap-2",children:[(0,ea.jsx)(w,{onClick:S,children:"Save"}),(0,ea.jsx)(w,{variant:"outline",onClick:()=>l(null),children:"Cancel"})]})]}):(0,ea.jsx)("div",{className:"prose max-w-none",children:(0,ea.jsx)("pre",{className:"whitespace-pre-wrap font-sans",children:a.content})})})]}):(0,ea.jsx)("div",{className:"flex-1 flex items-center justify-center text-gray-500",children:(0,ea.jsxs)("div",{className:"text-center",children:[(0,ea.jsx)(de.FileText,{className:"h-12 w-12 mx-auto mb-4 text-gray-300"}),(0,ea.jsx)("p",{children:"Select a document to view its content"})]})})})]})};var De=J(require("react")),B=J(require("@radix-ui/react-dropdown-menu"));var ht=B.Root,xt=B.Trigger;var Hr=De.forwardRef(({className:e,inset:t,children:a,...o},i)=>(0,ea.jsxs)(B.SubTrigger,{ref:i,className:c("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,ea.jsx)(Ea.ChevronRightIcon,{className:"ml-auto"})]}));Hr.displayName=B.SubTrigger.displayName;var Vr=De.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(B.SubContent,{ref:a,className:c("ea-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Vr.displayName=B.SubContent.displayName;var ct=De.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ea.jsx)(B.Portal,{children:(0,ea.jsx)(B.Content,{ref:o,sideOffset:t,className:c("ea-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ct.displayName=B.Content.displayName;var tt=De.forwardRef(({className:e,inset:t,...a},o)=>(0,ea.jsx)(B.Item,{ref:o,className:c("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));tt.displayName=B.Item.displayName;var Gr=De.forwardRef(({className:e,children:t,checked:a,...o},i)=>(0,ea.jsxs)(B.CheckboxItem,{ref:i,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,ea.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ea.jsx)(B.ItemIndicator,{children:(0,ea.jsx)(Ea.CheckIcon,{className:"h-4 w-4"})})}),t]}));Gr.displayName=B.CheckboxItem.displayName;var Ur=De.forwardRef(({className:e,children:t,...a},o)=>(0,ea.jsxs)(B.RadioItem,{ref:o,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,ea.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ea.jsx)(B.ItemIndicator,{children:(0,ea.jsx)(Ea.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Ur.displayName=B.RadioItem.displayName;var Vt=De.forwardRef(({className:e,inset:t,...a},o)=>(0,ea.jsx)(B.Label,{ref:o,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Vt.displayName=B.Label.displayName;var Gt=De.forwardRef(({className:e,...t},a)=>(0,ea.jsx)(B.Separator,{ref:a,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Gt.displayName=B.Separator.displayName;var Wr=({className:e,...t})=>(0,ea.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Wr.displayName="DropdownMenuShortcut";var Za=({isRightSidebarOpen:e,onToggleRightSidebar:t,onToggleLeftSidebar:a})=>(0,ea.jsx)("header",{className:"border-ea bg-white/80 backdrop-blur-md dark:bg-slate-900/80 sticky top-0 ea-50",children:(0,ea.jsx)("div",{className:"container mx-auto px-6 py-4",children:(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsxs)("div",{className:"flex items-center space-x-4",children:[a&&(0,ea.jsx)(w,{variant:"ghost",size:"icon",className:"md:hidden",onClick:a,children:(0,ea.jsx)(de.Menu,{className:"h-5 w-5"})}),(0,ea.jsx)("h1",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Cortex Copilot"})]}),(0,ea.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,ea.jsxs)(w,{variant:"ghost",size:"icon",className:`relative lg:hidden ${e?"bg-blue-100 dark:bg-blue-900":""}`,onClick:t,children:[(0,ea.jsx)(de.Bell,{className:"h-5 w-5"}),(0,ea.jsx)("span",{className:"absolute -top-1 -right-1 h-3 w-3 bg-red-500 rounded-full text-xs text-white flex items-center justify-center",children:"3"})]}),(0,ea.jsxs)(w,{variant:"ghost",size:"icon",className:"relative hidden lg:flex",children:[(0,ea.jsx)(de.Bell,{className:"h-5 w-5"}),(0,ea.jsx)("span",{className:"absolute -top-1 -right-1 h-3 w-3 bg-red-500 rounded-full text-xs text-white flex items-center justify-center",children:"3"})]}),(0,ea.jsxs)(ht,{children:[(0,ea.jsx)(xt,{asChild:!0,children:(0,ea.jsx)(w,{variant:"ghost",className:"relative h-10 w-10 rounded-full",children:(0,ea.jsxs)(st,{className:"h-10 w-10",children:[(0,ea.jsx)(Tt,{src:"/avatars/01.png",alt:"@user"}),(0,ea.jsx)(lt,{children:"JD"})]})})}),(0,ea.jsxs)(ct,{className:"w-56",align:"end",forceMount:!0,children:[(0,ea.jsx)(Vt,{className:"font-normal",children:(0,ea.jsxs)("div",{className:"flex flex-col space-ea-1",children:[(0,ea.jsx)("p",{className:"text-sm font-medium leading-none",children:"John Doe"}),(0,ea.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:"john.doe@company.com"})]})}),(0,ea.jsx)(Gt,{}),(0,ea.jsxs)(tt,{children:[(0,ea.jsx)(de.User,{className:"mr-2 h-4 w-4"}),(0,ea.jsx)("span",{children:"Profile"})]}),(0,ea.jsxs)(tt,{children:[(0,ea.jsx)(de.Settings,{className:"mr-2 h-4 w-4"}),(0,ea.jsx)("span",{children:"Settings"})]})]})]})]})]})})});var Ya=require("next/navigation");var _r=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",isSelected:!0}],$r=[{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}],jr=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],Kr=()=>{let[e,t]=(0,we.useState)(jr),[a,o]=(0,we.useState)(_r),[i,r]=(0,we.useState)($r),[d,l]=(0,we.useState)(!1),[n,f]=(0,we.useState)(!1),[m,R]=(0,we.useState)(null),[M,S]=(0,we.useState)(null),[v,I]=(0,we.useState)("kanban"),[x,A]=(0,we.useState)(!1),h=(0,Ya.useRouter)(),V=a.filter(u=>u.isSelected).map(u=>u.id),_=i.find(u=>u.isSelected),p=e.filter(u=>{let D=V.includes(u.epicId);return!_||_.id==="all-tasks"?D:_.id==="backlog"?D&&!u.sprintId:D&&u.sprintId===_.id}),H=u=>p.filter(D=>D.status===u),K=u=>{let D={};return a.forEach(O=>{D[O.id]=u.filter(X=>X.epicId===O.id)}),D},re=u=>{S(u)},pe=u=>{M&&(t(D=>D.map(O=>O.id===M.id?{...O,status:u}:O)),S(null))},Pe=u=>{let D={...u,id:Date.now().toString(),createdAt:new Date};t(O=>[...O,D])},be=(u,D)=>{t(O=>O.map(X=>X.id===u?{...X,...D}:X))},G=u=>{t(D=>D.filter(O=>O.id!==u)),m?.id===u&&R(null)},$e=u=>{let D={...u,id:Date.now().toString(),isSelected:!0};o(O=>[...O,D])},Te=(u,D)=>{o(O=>O.map(X=>X.id===u?{...X,...D}:X))},je=u=>{o(D=>D.filter(O=>O.id!==u)),t(D=>D.filter(O=>O.epicId!==u))},Me=u=>{let D={...u,id:Date.now().toString(),isSelected:!1};r(O=>[...O,D])},Ke=(u,D)=>{r(O=>O.map(X=>X.id===u?D.isSelected?{...X,...D}:{...X,...D}:D.isSelected&&u!==X.id?{...X,isSelected:!1}:X))},Fe=u=>{u==="backlog"||u==="all-tasks"||(r(D=>D.filter(O=>O.id!==u)),t(D=>D.map(O=>O.sprintId===u?{...O,sprintId:void 0}:O)))},g=u=>{R(u)},F=u=>{u==="planning"&&window.innerWidth<768||I(u)},$=()=>{A(u=>!u)},Qa=()=>{h.push("/")},Ut=u=>{console.log("Switching to team:",u)},qr=u=>{console.log("Switching to team:",u)},eo=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],to=()=>{switch(v){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"documentation":return"Documentation";default:return"Project Board"}},yt=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],ao=yt.sort((u,D)=>D.lastUsed.getTime()-u.lastUsed.getTime()).slice(0,3),oo=yt.length>3,ro=yt.slice(3);return(0,ea.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex flex-col",children:[(0,ea.jsx)(Za,{isRightSidebarOpen:!1,onToggleRightSidebar:()=>{},onToggleLeftSidebar:$}),(0,ea.jsx)("div",{className:"border-ea bg-white px-6 py-3",children:(0,ea.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,ea.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-4",children:[(0,ea.jsxs)(w,{variant:"outline",onClick:Qa,className:"gap-2 h-9",children:[(0,ea.jsx)(de.MessageSquare,{className:"h-4 w-4"}),"Copilot"]}),ao.map(u=>(0,ea.jsxs)(w,{variant:"default",onClick:()=>Ut(u.id),className:"gap-2 h-9 bg-blue-600 hover:bg-blue-700",children:[(0,ea.jsx)("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:u.avatar}),u.name]},u.id)),oo&&(0,ea.jsxs)(ht,{children:[(0,ea.jsx)(xt,{asChild:!0,children:(0,ea.jsx)(w,{variant:"outline",className:"h-9 w-9 p-0",children:(0,ea.jsx)(de.MoreHorizontal,{className:"h-4 w-4"})})}),(0,ea.jsx)(ct,{align:"start",children:ro.map(u=>(0,ea.jsxs)(tt,{onClick:()=>Ut(u.id),className:"flex items-center gap-2 cursor-pointer",children:[(0,ea.jsx)("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:u.avatar}),u.name]},u.id))})]})]}),v!=="documentation"&&(0,ea.jsxs)(w,{onClick:()=>l(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[(0,ea.jsx)(de.Plus,{className:"h-4 w-4"}),"Add Task"]})]})})}),(0,ea.jsx)(_a,{epics:a,sprints:i,currentView:v,onUpdateEpic:Te,onDeleteEpic:je,onAddEpic:()=>f(!0),onAddSprint:Me,onUpdateSprint:Ke,onDeleteSprint:Fe,onViewChange:F,mobileMenuOpen:x,onToggleMobileMenu:$,children:(0,ea.jsx)("div",{className:"flex-1 p-6",children:(0,ea.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,ea.jsx)("div",{className:"mb-8",children:(0,ea.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,ea.jsx)(de.Kanban,{className:"h-8 w-8 text-blue-600"}),(0,ea.jsx)("h1",{className:"text-3xl font-bold text-gray-900 select-none-important",children:to()})]})}),v==="kanban"?(0,ea.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:eo.map(u=>{let D=H(u.status),O=K(D);return(0,ea.jsx)(ia,{title:u.title,status:u.status,taskCount:D.length,onDrop:pe,isCompact:u.status==="done",children:V.map(X=>{let wt=a.find(mt=>mt.id===X),Nt=O[X]||[];return Nt.length===0?null:(0,ea.jsxs)("div",{className:"mb-6",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,ea.jsx)("div",{className:`w-3 h-3 rounded-full ${wt?.color}`}),(0,ea.jsx)("span",{className:"text-sm font-medium text-gray-600 select-none-important",children:wt?.name}),(0,ea.jsx)(Z,{variant:"secondary",className:"text-xs",children:Nt.length})]}),(0,ea.jsx)("div",{className:"space-ea-3",children:Nt.map(mt=>(0,ea.jsx)(na,{task:mt,epic:wt,onDragStart:re,onTaskClick:g,isCompact:u.status==="done"},mt.id))})]},X)})},u.id)})}):v==="planning"?(0,ea.jsx)("div",{className:"hidden md:block",children:(0,ea.jsx)(Ja,{tasks:e,epics:a,sprints:i,onUpdateTask:be,onTaskClick:g})}):(0,ea.jsx)(Xa,{}),(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(ya,{isOpen:d,onClose:()=>l(!1),onAddTask:Pe,epics:a,sprints:i}),(0,ea.jsx)(ja,{isOpen:n,onClose:()=>f(!1),onAddEpic:$e}),m&&(0,ea.jsx)(ka,{isOpen:!!m,onClose:()=>R(null),task:m,epics:a,sprints:i,onUpdateTask:be,onDeleteTask:G})]})]})})})]})};0&&(module.exports={KanbanBoard});
14
+ CRUD operations and data handling...`,parentId:"3",isFolder:!1}]}],Fo=()=>{let[e,t]=(0,Ee.useState)(Oo),[a,o]=(0,Ee.useState)(Oo[0]),[i,s]=(0,Ee.useState)(new Set(["2","3"])),[m,d]=(0,Ee.useState)(null),[n,l]=(0,Ee.useState)(""),f=u=>{let A=new Set(i);A.has(u)?A.delete(u):A.add(u),s(A)},T=u=>{u.isFolder||o(u)},V=u=>{d(u.id),l(u.content)},E=()=>{if(m&&a){let u=C(e,m,{content:n});t(u),o({...a,content:n}),d(null)}},C=(u,A,y)=>u.map(X=>X.id===A?{...X,...y}:X.children?{...X,children:C(X.children,A,y)}:X),h=(u,A=0)=>u.map(y=>(0,Ba.jsxs)("div",{className:`ml-${A*4}`,children:[(0,Ba.jsxs)("div",{className:`flex items-center gap-2 p-2 rounded cursor-pointer hover:bg-gray-100 ${a?.id===y.id?"bg-blue-50 border-l-4 border-blue-500":""}`,onClick:()=>y.isFolder?f(y.id):T(y),children:[y.isFolder?(0,Ba.jsxs)(Ba.Fragment,{children:[i.has(y.id)?(0,Ba.jsx)(Ie.ChevronDown,{className:"h-4 w-4 text-gray-500"}):(0,Ba.jsx)(Ie.ChevronRight,{className:"h-4 w-4 text-gray-500"}),(0,Ba.jsx)(Ie.Folder,{className:"h-4 w-4 text-blue-500"})]}):(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsx)("div",{className:"w-4"}),(0,Ba.jsx)(Ie.FileText,{className:"h-4 w-4 text-gray-500"})]}),(0,Ba.jsx)("span",{className:"text-sm font-medium text-gray-700",children:y.title})]}),y.isFolder&&y.children&&i.has(y.id)&&(0,Ba.jsx)("div",{className:"ml-4",children:h(y.children,A+1)})]},y.id));return(0,Ba.jsxs)("div",{className:"flex h-full",children:[(0,Ba.jsxs)("div",{className:"w-80 border-Ba bg-gray-50",children:[(0,Ba.jsx)("div",{className:"p-4 border-b",children:(0,Ba.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ba.jsx)("h2",{className:"text-lg font-semibold text-gray-900",children:"Documentation"}),(0,Ba.jsxs)(x,{size:"sm",className:"gap-1",children:[(0,Ba.jsx)(Ie.Plus,{className:"h-3 w-3"}),"New"]})]})}),(0,Ba.jsx)("div",{className:"p-2 overflow-y-auto h-full",children:h(e)})]}),(0,Ba.jsx)("div",{className:"flex-1 flex flex-col",children:a?(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsx)("div",{className:"p-4 border-b bg-white",children:(0,Ba.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ba.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:a.title}),(0,Ba.jsxs)("div",{className:"flex gap-2",children:[(0,Ba.jsxs)(x,{variant:"outline",size:"sm",onClick:()=>V(a),className:"gap-1",children:[(0,Ba.jsx)(Ie.Edit2,{className:"h-3 w-3"}),"Edit"]}),(0,Ba.jsxs)(x,{variant:"outline",size:"sm",className:"gap-1",children:[(0,Ba.jsx)(Ie.Trash2,{className:"h-3 w-3"}),"Delete"]})]})]})}),(0,Ba.jsx)("div",{className:"flex-1 p-6 bg-white overflow-y-auto",children:m===a.id?(0,Ba.jsxs)("div",{className:"space-y-4",children:[(0,Ba.jsx)("textarea",{value:n,onChange:u=>l(u.target.value),className:"w-full h-96 p-4 border rounded-lg font-mono text-sm",placeholder:"Write your documentation in Markdown..."}),(0,Ba.jsxs)("div",{className:"flex gap-2",children:[(0,Ba.jsx)(x,{onClick:E,children:"Save"}),(0,Ba.jsx)(x,{variant:"outline",onClick:()=>d(null),children:"Cancel"})]})]}):(0,Ba.jsx)("div",{className:"prose max-w-none",children:(0,Ba.jsx)("pre",{className:"whitespace-pre-wrap font-sans",children:a.content})})})]}):(0,Ba.jsx)("div",{className:"flex-1 flex items-center justify-center text-gray-500",children:(0,Ba.jsxs)("div",{className:"text-center",children:[(0,Ba.jsx)(Ie.FileText,{className:"h-12 w-12 mx-auto mb-4 text-gray-300"}),(0,Ba.jsx)("p",{children:"Select a document to view its content"})]})})})]})};var _e=Z(require("react")),_=Z(require("@radix-ui/react-dropdown-menu"));var jt=_.Root,Gt=_.Trigger;var Di=_e.forwardRef(({className:e,inset:t,children:a,...o},i)=>(0,Ba.jsxs)(_.SubTrigger,{ref:i,className:c("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Ba.jsx)(fo.ChevronRightIcon,{className:"ml-auto"})]}));Di.displayName=_.SubTrigger.displayName;var Pi=_e.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(_.SubContent,{ref:a,className:c("Ba-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Pi.displayName=_.SubContent.displayName;var Nt=_e.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ba.jsx)(_.Portal,{children:(0,Ba.jsx)(_.Content,{ref:o,sideOffset:t,className:c("Ba-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Nt.displayName=_.Content.displayName;var ut=_e.forwardRef(({className:e,inset:t,...a},o)=>(0,Ba.jsx)(_.Item,{ref:o,className:c("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));ut.displayName=_.Item.displayName;var Ri=_e.forwardRef(({className:e,children:t,checked:a,...o},i)=>(0,Ba.jsxs)(_.CheckboxItem,{ref:i,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Ba.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ba.jsx)(_.ItemIndicator,{children:(0,Ba.jsx)(fo.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ri.displayName=_.CheckboxItem.displayName;var ki=_e.forwardRef(({className:e,children:t,...a},o)=>(0,Ba.jsxs)(_.RadioItem,{ref:o,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Ba.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ba.jsx)(_.ItemIndicator,{children:(0,Ba.jsx)(fo.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ki.displayName=_.RadioItem.displayName;var wa=_e.forwardRef(({className:e,inset:t,...a},o)=>(0,Ba.jsx)(_.Label,{ref:o,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));wa.displayName=_.Label.displayName;var Na=_e.forwardRef(({className:e,...t},a)=>(0,Ba.jsx)(_.Separator,{ref:a,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Na.displayName=_.Separator.displayName;var Ti=({className:e,...t})=>(0,Ba.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Ti.displayName="DropdownMenuShortcut";var Vo=({isRightSidebarOpen:e,onToggleRightSidebar:t,onToggleLeftSidebar:a,onToggleNotifications:o})=>(0,$.jsx)("header",{className:"border-b bg-white/80 backdrop-blur-md dark:bg-slate-900/80 sticky top-0 Ba-50",children:(0,$.jsx)("div",{className:"container mx-auto px-6 py-4",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center space-x-4",children:[a&&(0,$.jsx)(x,{variant:"ghost",size:"icon",className:"md:hidden",onClick:a,children:(0,$.jsx)(Ie.Menu,{className:"h-5 w-5"})}),(0,$.jsx)("h1",{className:"text-2xl font-bold bg-gradient-to-Ba from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Cortex Copilot"})]}),(0,$.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,$.jsxs)(x,{variant:"ghost",size:"icon",className:"relative",onClick:o,children:[(0,$.jsx)(Ie.Bell,{className:"h-5 w-5"}),(0,$.jsx)("span",{className:"absolute -top-1 -right-1 h-3 w-3 bg-red-500 rounded-full text-xs text-white flex items-center justify-center",children:"3"})]}),(0,$.jsxs)(jt,{children:[(0,$.jsx)(Gt,{asChild:!0,children:(0,$.jsx)(x,{variant:"ghost",className:"relative h-10 w-10 rounded-full",children:(0,$.jsxs)(xt,{className:"h-10 w-10",children:[(0,$.jsx)(na,{src:"/avatars/01.png",alt:"@user"}),(0,$.jsx)(yt,{children:"JD"})]})})}),(0,$.jsxs)(Nt,{className:"w-56",align:"end",forceMount:!0,children:[(0,$.jsx)(wa,{className:"font-normal",children:(0,$.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,$.jsx)("p",{className:"text-sm font-medium leading-none",children:"John Doe"}),(0,$.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:"john.doe@company.com"})]})}),(0,$.jsx)(Na,{}),(0,$.jsxs)(ut,{children:[(0,$.jsx)(Ie.User,{className:"mr-2 h-4 w-4"}),(0,$.jsx)("span",{children:"Profile"})]}),(0,$.jsxs)(ut,{children:[(0,$.jsx)(Ie.Settings,{className:"mr-2 h-4 w-4"}),(0,$.jsx)("span",{children:"Settings"})]})]})]})]})]})})});var Go=require("next/navigation");var jo=({tasks:e,epics:t,sprints:a,onUpdateTask:o,onTaskClick:i,onAddTaskToEpic:s,onAddEpic:m})=>{let[d,n]=(0,Ee.useState)(null),l=h=>{n(h)},f=h=>{h.preventDefault()},T=(h,u)=>{h.preventDefault(),d&&d.epicId!==u&&(o(d.id,{epicId:u}),n(null))},V=h=>e.filter(u=>u.epicId===h),E=h=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[h]||`Phase ${h}`,C=h=>{switch(h){case"high":return"bg-green-100 text-green-800";case"medium":return"bg-yellow-100 text-yellow-800";case"low":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}};return(0,Ba.jsx)("div",{className:"p-6 py-0",children:(0,Ba.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,Ba.jsxs)("div",{className:"mb-8 flex items-center justify-between",children:[(0,Ba.jsxs)("div",{children:[(0,Ba.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Epic Planning"}),(0,Ba.jsx)("p",{className:"text-gray-600",children:"Manage and organize your project epics"})]}),(0,Ba.jsxs)(x,{onClick:m,className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[(0,Ba.jsx)(Ie.Plus,{className:"h-4 w-4"}),"Add Epic"]})]}),(0,Ba.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:t.map(h=>{let u=V(h.id),A=u.reduce((y,X)=>y+X.points,0);return(0,Ba.jsxs)(le,{className:"flex flex-col h-[600px]",onDragOver:f,onDrop:y=>T(y,h.id),children:[(0,Ba.jsxs)("div",{className:"p-4 border-b",children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Ba.jsx)("div",{className:`w-4 h-4 rounded-full ${h.color}`}),(0,Ba.jsx)("h3",{className:"font-semibold text-gray-900 select-none",children:h.name})]}),(0,Ba.jsxs)("div",{className:"flex flex-wrap gap-2 mb-3",children:[(0,Ba.jsxs)(ae,{className:`text-xs ${C(h.confidence)}`,children:[h.confidence," confidence"]}),(0,Ba.jsx)(ae,{variant:"outline",className:"text-xs",children:E(h.phase)}),(0,Ba.jsxs)(ae,{variant:"secondary",className:"text-xs",children:[u.length," tasks"]}),(0,Ba.jsxs)(ae,{variant:"secondary",className:"text-xs",children:[A," pts"]})]}),h.description&&(0,Ba.jsx)("p",{className:"text-sm text-gray-600 mb-3 select-none",children:h.description}),(0,Ba.jsxs)("div",{className:"mb-3",children:[(0,Ba.jsxs)("div",{className:"flex justify-between text-xs text-gray-600 mb-1",children:[(0,Ba.jsx)("span",{className:"select-none",children:"Progress"}),(0,Ba.jsxs)("span",{className:"select-none",children:[h.progress,"%"]})]}),(0,Ba.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2",children:(0,Ba.jsx)("div",{className:"bg-blue-600 h-2 rounded-full transition-all duration-300",style:{width:`${h.progress}%`}})})]}),(0,Ba.jsxs)(x,{onClick:()=>s(h.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[(0,Ba.jsx)(Ie.Plus,{className:"h-4 w-4"}),"Add Task"]})]}),(0,Ba.jsx)("div",{className:"flex-1 p-4 overflow-y-auto",children:(0,Ba.jsx)("div",{className:"space-y-3 min-h-[200px]",children:u.length===0?(0,Ba.jsxs)("div",{className:"flex flex-col items-center justify-center h-32 text-gray-400 border-2 border-dashed border-gray-200 rounded-lg",children:[(0,Ba.jsx)(Ie.Move,{className:"h-8 w-8 mb-2"}),(0,Ba.jsx)("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):u.map(y=>(0,Ba.jsx)(Tt,{task:y,epic:h,onDragStart:l,onTaskClick:i,isCompact:!0},y.id))})})]},h.id)})})]})})};var Mi=[{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}],Ei=[{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}],Ai=[{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}],Ii=[{id:"1",title:"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",title:"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",title:"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",title:"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",title:"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",title:"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",title:"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")}],Li=()=>{let[e,t]=(0,Ee.useState)(Ii),[a,o]=(0,Ee.useState)(Ei),[i,s]=(0,Ee.useState)(Ai),[m,d]=(0,Ee.useState)(Mi),[n,l]=(0,Ee.useState)(!1),[f,T]=(0,Ee.useState)(!1),[V,E]=(0,Ee.useState)(null),[C,h]=(0,Ee.useState)(null),[u,A]=(0,Ee.useState)("kanban"),[y,X]=(0,Ee.useState)(!1),se=(0,Go.useRouter)(),ge=a.filter(g=>g.isSelected).map(g=>g.id),he=i.find(g=>g.isSelected),Ae=e.filter(g=>{let w=ge.includes(g.epicId);return!he||he.id==="all-tasks"?w:he.id==="backlog"?w&&!g.sprintId:w&&g.sprintId===he.id}),xe=g=>Ae.filter(w=>w.status===g),v=g=>{let w={};return a.forEach(I=>{w[I.id]=g.filter(K=>K.epicId===I.id)}),w},D=g=>{h(g)},q=g=>{C&&(t(w=>w.map(I=>I.id===C.id?{...I,status:g}:I)),h(null))},O=g=>{let w={...g,id:Date.now().toString(),createdAt:new Date};t(I=>[...I,w])},fe=(g,w)=>{t(I=>I.map(K=>K.id===g?{...K,...w}:K))},Be=g=>{t(w=>w.filter(I=>I.id!==g)),V?.id===g&&E(null)},Re=g=>{let w={...g,id:Date.now().toString(),isSelected:!1};d(I=>[...I,w])},Ue=(g,w)=>{d(I=>I.map(K=>K.id===g?w.isSelected?(se.push(`/kanban/${g}`),{...K,...w}):{...K,...w}:w.isSelected&&g!==K.id?{...K,isSelected:!1}:K))},We=g=>{d(w=>w.filter(I=>I.id!==g))},ke=g=>{let w={...g,id:Date.now().toString(),isSelected:!0};o(I=>[...I,w])},Te=(g,w)=>{o(I=>I.map(K=>K.id===g?{...K,...w}:K))},me=g=>{o(w=>w.filter(I=>I.id!==g)),t(w=>w.filter(I=>I.epicId!==g))},ne=g=>{let w={...g,id:Date.now().toString(),isSelected:!1};s(I=>[...I,w])},_t=(g,w)=>{s(I=>I.map(K=>K.id===g?w.isSelected?{...K,...w}:{...K,...w}:w.isSelected&&g!==K.id?{...K,isSelected:!1}:K))},Ct=g=>{g==="backlog"||g==="all-tasks"||(s(w=>w.filter(I=>I.id!==g)),t(w=>w.map(I=>I.sprintId===g?{...I,sprintId:void 0}:I)))},nt=g=>{E(g)},Ut=g=>{g==="planning"&&window.innerWidth<768||A(g)},Dt=()=>{X(g=>!g)},Wt=()=>{se.push("/")},Pt=g=>{console.log("Switching to team:",g)},Sa=g=>{console.log("Switching to team:",g)},$t=g=>{l(!0)},Kt=[{id:"todo",title:"Ee Ie",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],qt=()=>{switch(u){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"documentation":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},gt=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],Jt=gt.sort((g,w)=>w.lastUsed.getTime()-g.lastUsed.getTime()).slice(0,3),Xt=gt.length>3,Zt=gt.slice(3);return(0,Ba.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex flex-col",children:[(0,Ba.jsx)(Vo,{isRightSidebarOpen:!1,onToggleRightSidebar:()=>{},onToggleLeftSidebar:Dt,onToggleNotifications:()=>{}}),(0,Ba.jsx)("div",{className:"border-b bg-white px-6 py-3",children:(0,Ba.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,Ba.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-4",children:[(0,Ba.jsxs)(x,{variant:"outline",onClick:Wt,className:"gap-2 h-9",children:[(0,Ba.jsx)(Ie.MessageSquare,{className:"h-4 w-4"}),"Copilot"]}),Jt.map(g=>(0,Ba.jsxs)(x,{variant:"default",onClick:()=>Pt(g.id),className:"gap-2 h-9 bg-blue-600 hover:bg-blue-700",children:[(0,Ba.jsx)("div",{className:"w-5 h-5 rounded bg-gradient-to-Ba from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:g.avatar}),g.name]},g.id)),Xt&&(0,Ba.jsxs)(jt,{children:[(0,Ba.jsx)(Gt,{asChild:!0,children:(0,Ba.jsx)(x,{variant:"outline",className:"h-9 w-9 p-0",children:(0,Ba.jsx)(Ie.MoreHorizontal,{className:"h-4 w-4"})})}),(0,Ba.jsx)(Nt,{align:"start",children:Zt.map(g=>(0,Ba.jsxs)(ut,{onClick:()=>Pt(g.id),className:"flex items-center gap-2 cursor-pointer",children:[(0,Ba.jsx)("div",{className:"w-5 h-5 rounded bg-gradient-to-Ba from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:g.avatar}),g.name]},g.id))})]})]}),u==="kanban"&&(0,Ba.jsxs)(x,{onClick:()=>l(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[(0,Ba.jsx)(Ie.Plus,{className:"h-4 w-4"}),"Add Task"]})]})})}),(0,Ba.jsx)(ko,{projects:m,epics:a,sprints:i,currentView:u,onUpdateProject:Ue,onDeleteProject:We,onAddProject:Re,onUpdateEpic:Te,onDeleteEpic:me,onAddEpic:()=>T(!0),onAddSprint:ne,onUpdateSprint:_t,onDeleteSprint:Ct,onViewChange:Ut,mobileMenuOpen:y,onToggleMobileMenu:Dt,children:(0,Ba.jsx)("div",{className:"flex-1 p-6",children:(0,Ba.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,Ba.jsx)("div",{className:"mb-8",children:(0,Ba.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,Ba.jsx)(Ie.Kanban,{className:"h-8 w-8 text-blue-600"}),(0,Ba.jsx)("h1",{className:"text-3xl font-bold text-gray-900 select-none-important",children:qt()})]})}),u==="kanban"?(0,Ba.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:Kt.map(g=>{let w=xe(g.status),I=v(w);return(0,Ba.jsx)(Ha,{title:g.title,status:g.status,taskCount:w.length,onDrop:q,isCompact:g.status==="done",children:ge.map(K=>{let p=a.find(H=>H.id===K),b=I[K]||[];return b.length===0?null:(0,Ba.jsxs)("div",{className:"mb-6",children:[(0,Ba.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Ba.jsx)("div",{className:`w-3 h-3 rounded-full ${p?.color}`}),(0,Ba.jsx)("span",{className:"text-sm font-medium text-gray-600 select-none-important",children:p?.name}),(0,Ba.jsx)(ae,{variant:"secondary",className:"text-xs",children:b.length})]}),(0,Ba.jsx)("div",{className:"space-y-3",children:b.map(H=>(0,Ba.jsx)(Tt,{task:H,epic:p,onDragStart:D,onTaskClick:nt,isCompact:g.status==="done"},H.id))})]},K)})},g.id)})}):u==="planning"?(0,Ba.jsx)("div",{className:"hidden md:block",children:(0,Ba.jsx)(zo,{tasks:e,epics:a,sprints:i,onUpdateTask:fe,onTaskClick:nt,onAddSprint:ne})}):u==="epics"?(0,Ba.jsx)(jo,{tasks:e,epics:a,sprints:i,onUpdateTask:fe,onTaskClick:nt,onAddTaskToEpic:$t,onAddEpic:()=>T(!0)}):(0,Ba.jsx)(Fo,{}),(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsx)(oo,{isOpen:n,onClose:()=>l(!1),onAddTask:O,epics:a,sprints:i}),(0,Ba.jsx)(Mo,{isOpen:f,onClose:()=>T(!1),onAddEpic:ke}),V&&(0,Ba.jsx)(mo,{isOpen:!!V,onClose:()=>E(null),task:V,epics:a,sprints:i,onUpdateTask:fe,onDeleteTask:Be})]})]})})})]})};0&&(module.exports={KanbanBoard});