cortex-react-components 2.12.0 → 2.12.2

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 (665) hide show
  1. package/dist/{chunk-4CU7D3X2.mjs → chunk-2C3C5SQQ.mjs} +1 -1
  2. package/dist/{chunk-CSBGSBEU.mjs → chunk-2JKLBLDE.mjs} +1 -1
  3. package/dist/{chunk-IC2ABKAM.mjs → chunk-2LLMXGTP.mjs} +1 -1
  4. package/dist/chunk-2WLZ5T2D.mjs +1 -0
  5. package/dist/{chunk-MU5WPW4N.mjs → chunk-3GLK3JM6.mjs} +1 -1
  6. package/dist/{chunk-Q5Q3DJWU.mjs → chunk-3HD7RAT7.mjs} +1 -1
  7. package/dist/{chunk-CO6AQNZ5.mjs → chunk-3JEM6RIR.mjs} +1 -1
  8. package/dist/{chunk-EOXVYLPB.mjs → chunk-3KBY7FKD.mjs} +1 -1
  9. package/dist/{chunk-PK3OBSCB.mjs → chunk-3ZXW3WQU.mjs} +1 -1
  10. package/dist/{chunk-F5N6KQA2.mjs → chunk-44JXFP6W.mjs} +1 -1
  11. package/dist/{chunk-FKU4VQR6.mjs → chunk-4OAROJ4M.mjs} +1 -1
  12. package/dist/{chunk-JYL3XIJX.mjs → chunk-4OK6PUOO.mjs} +1 -1
  13. package/dist/{chunk-PFLESLNT.mjs → chunk-4RQ27GTD.mjs} +1 -1
  14. package/dist/{chunk-RAGDUV7M.mjs → chunk-52UFJIL4.mjs} +1 -1
  15. package/dist/{chunk-Q5XT55O3.mjs → chunk-532HP37G.mjs} +1 -1
  16. package/dist/{chunk-TEB67NCD.mjs → chunk-55OESIAK.mjs} +1 -1
  17. package/dist/{chunk-AQ6RGBGI.mjs → chunk-56AGUZR5.mjs} +1 -1
  18. package/dist/{chunk-IF3425JX.mjs → chunk-5AYDHF5U.mjs} +1 -1
  19. package/dist/{chunk-2RGAV55J.mjs → chunk-5N2D3BGH.mjs} +1 -1
  20. package/dist/{chunk-74U3NYS2.mjs → chunk-5T4OPJ7F.mjs} +1 -1
  21. package/dist/{chunk-LBUC4M6L.mjs → chunk-5WDNNO37.mjs} +1 -1
  22. package/dist/{chunk-QG5P52CK.mjs → chunk-5WH7SFOR.mjs} +1 -1
  23. package/dist/{chunk-V6GC3UGV.mjs → chunk-5YJFMMVM.mjs} +1 -1
  24. package/dist/{chunk-LKGCU7H6.mjs → chunk-67RPQW7V.mjs} +1 -1
  25. package/dist/{chunk-FGEFYI5E.mjs → chunk-6CAO4IKW.mjs} +1 -1
  26. package/dist/{chunk-MXCW6SOT.mjs → chunk-6GDVIZS5.mjs} +1 -1
  27. package/dist/{chunk-EAFH3DTH.mjs → chunk-6PBOA7BL.mjs} +1 -1
  28. package/dist/{chunk-2LINLX4S.mjs → chunk-6PQ67CC6.mjs} +1 -1
  29. package/dist/{chunk-VMAPGGGW.mjs → chunk-6TLGI4P6.mjs} +1 -1
  30. package/dist/{chunk-LJQPLE4S.mjs → chunk-6UVEJCVM.mjs} +1 -1
  31. package/dist/{chunk-XFPTR527.mjs → chunk-6WVIXUXX.mjs} +1 -1
  32. package/dist/{chunk-E4TE4NV6.mjs → chunk-7EEEXU54.mjs} +1 -1
  33. package/dist/{chunk-JFFTEK6Z.mjs → chunk-7QBPKUWN.mjs} +1 -1
  34. package/dist/{chunk-WUA65ZZB.mjs → chunk-7RKPUKFH.mjs} +1 -1
  35. package/dist/{chunk-YO3GQYRJ.mjs → chunk-7WKUKFCT.mjs} +1 -1
  36. package/dist/{chunk-ZUA4KNIR.mjs → chunk-7Z3TOFNL.mjs} +1 -1
  37. package/dist/{chunk-FHMQVAKQ.mjs → chunk-A4XWPIEI.mjs} +1 -1
  38. package/dist/{chunk-LJOWXPWW.mjs → chunk-A5TPL5CB.mjs} +1 -1
  39. package/dist/{chunk-ZSIYEVUV.mjs → chunk-A7S4L4P2.mjs} +1 -1
  40. package/dist/{chunk-UWEU6TLS.mjs → chunk-AARMIMMZ.mjs} +1 -1
  41. package/dist/{chunk-3UMMMQEH.mjs → chunk-AG6IN5S7.mjs} +1 -1
  42. package/dist/{chunk-GHZ6CUY3.mjs → chunk-AQIMDHFI.mjs} +1 -1
  43. package/dist/{chunk-RNMPX2AU.mjs → chunk-AWMXVMUW.mjs} +1 -1
  44. package/dist/{chunk-D4IMQTVU.mjs → chunk-BEPKJ67R.mjs} +1 -1
  45. package/dist/{chunk-KY7WQYN4.mjs → chunk-BIAOADJS.mjs} +1 -1
  46. package/dist/{chunk-Z22NSJMF.mjs → chunk-BM2ZNFM6.mjs} +1 -1
  47. package/dist/{chunk-MZP7RIQZ.mjs → chunk-BOG3XLGP.mjs} +1 -1
  48. package/dist/{chunk-5WVFEIMC.mjs → chunk-BUTUPCGN.mjs} +1 -1
  49. package/dist/{chunk-HKGW6JI2.mjs → chunk-BXVJNWFA.mjs} +1 -1
  50. package/dist/{chunk-M7ZG6HLI.mjs → chunk-C4SUCDRQ.mjs} +1 -1
  51. package/dist/chunk-CDH5ONCJ.mjs +8 -0
  52. package/dist/{chunk-AB43AQKL.mjs → chunk-CXK2IY4V.mjs} +1 -1
  53. package/dist/{chunk-M7NV6EFH.mjs → chunk-CXXPSCV3.mjs} +1 -1
  54. package/dist/{chunk-7YQNB57R.mjs → chunk-D42KIYIO.mjs} +1 -1
  55. package/dist/{chunk-QTILVWJA.mjs → chunk-DA5SDQDL.mjs} +1 -1
  56. package/dist/{chunk-255P6K5W.mjs → chunk-DFWWQRJ2.mjs} +1 -1
  57. package/dist/{chunk-OCPX4QPC.mjs → chunk-DGJHJHFF.mjs} +1 -1
  58. package/dist/{chunk-PWXCBW2H.mjs → chunk-E2MPOOEL.mjs} +1 -1
  59. package/dist/{chunk-CTAQQFEO.mjs → chunk-E3NWG6B4.mjs} +1 -1
  60. package/dist/{chunk-VGWDYD6Z.mjs → chunk-E43QS242.mjs} +1 -1
  61. package/dist/{chunk-52GADV2R.mjs → chunk-E6IIUYQ7.mjs} +1 -1
  62. package/dist/{chunk-JHNVX4UB.mjs → chunk-E6W2YMC3.mjs} +1 -1
  63. package/dist/{chunk-RHR3YOLG.mjs → chunk-E7SIU5SS.mjs} +1 -1
  64. package/dist/{chunk-J4IHIM6A.mjs → chunk-EBO2R46A.mjs} +1 -1
  65. package/dist/{chunk-LXZAOORS.mjs → chunk-EESKUTPD.mjs} +1 -1
  66. package/dist/{chunk-YRMNCHFO.mjs → chunk-EFIJNPMM.mjs} +1 -1
  67. package/dist/{chunk-X3JZSN3W.mjs → chunk-EGERAM4Q.mjs} +1 -1
  68. package/dist/{chunk-JB7IQQ3N.mjs → chunk-ENRNRNPQ.mjs} +1 -1
  69. package/dist/{chunk-5RTGHMF3.mjs → chunk-EPDV35LO.mjs} +1 -1
  70. package/dist/{chunk-7WIO2CIC.mjs → chunk-ESTO675Y.mjs} +1 -1
  71. package/dist/{chunk-RR4QSUV2.mjs → chunk-EUXJZBRI.mjs} +1 -1
  72. package/dist/{chunk-67QPOSVV.mjs → chunk-EYQ4UGAJ.mjs} +1 -1
  73. package/dist/{chunk-JVN7KTZV.mjs → chunk-EYRTGZWR.mjs} +1 -1
  74. package/dist/{chunk-7BXIU4ZM.mjs → chunk-F5JHHMZQ.mjs} +1 -1
  75. package/dist/{chunk-WUOWA2IX.mjs → chunk-F6KHZ4OS.mjs} +1 -1
  76. package/dist/{chunk-MAAKU7PN.mjs → chunk-FDJHY37W.mjs} +1 -1
  77. package/dist/{chunk-ZGQC6O62.mjs → chunk-FHPZSG7W.mjs} +1 -1
  78. package/dist/{chunk-SRUG246N.mjs → chunk-FJUAYJF4.mjs} +1 -1
  79. package/dist/{chunk-OYZDAMCS.mjs → chunk-FPWCCVDI.mjs} +1 -1
  80. package/dist/{chunk-FOEPKY7T.mjs → chunk-FSV7RCTY.mjs} +1 -1
  81. package/dist/{chunk-2RQDJ5XT.mjs → chunk-FT6JQ4AC.mjs} +1 -1
  82. package/dist/{chunk-YKG4FNS4.mjs → chunk-GCIWMQMK.mjs} +1 -1
  83. package/dist/{chunk-R7ILTSZR.mjs → chunk-GFLX67DN.mjs} +1 -1
  84. package/dist/{chunk-AZKOVKSK.mjs → chunk-GIGKJZGA.mjs} +1 -1
  85. package/dist/{chunk-L5JPAKPM.mjs → chunk-GJUA2KUH.mjs} +1 -1
  86. package/dist/{chunk-KGEIN56Y.mjs → chunk-GNIVCF53.mjs} +1 -1
  87. package/dist/{chunk-KX2NCNCS.mjs → chunk-GYTXBVCX.mjs} +1 -1
  88. package/dist/{chunk-AMV3MECK.mjs → chunk-GZQ7JEUL.mjs} +1 -1
  89. package/dist/{chunk-5WV5ZFEP.mjs → chunk-H45UTXIK.mjs} +1 -1
  90. package/dist/{chunk-7GSXNSLD.mjs → chunk-HH4JDBUN.mjs} +1 -1
  91. package/dist/{chunk-TZKQXT7Y.mjs → chunk-HK52LPE3.mjs} +1 -1
  92. package/dist/{chunk-WI2RL3XQ.mjs → chunk-HLWGNTZD.mjs} +1 -1
  93. package/dist/{chunk-LEC6GEWS.mjs → chunk-HPZPRZWG.mjs} +1 -1
  94. package/dist/{chunk-KVD6XDZT.mjs → chunk-HTCM27MI.mjs} +1 -1
  95. package/dist/{chunk-D275F3RT.mjs → chunk-HTQIVWYI.mjs} +1 -1
  96. package/dist/{chunk-U5PBLRRV.mjs → chunk-HYIRE7BK.mjs} +1 -1
  97. package/dist/chunk-I2BNJCJ7.mjs +1 -0
  98. package/dist/{chunk-Q5NHYYRS.mjs → chunk-IG6J62QA.mjs} +1 -1
  99. package/dist/{chunk-B3F6F2S4.mjs → chunk-JKPUXPHP.mjs} +1 -1
  100. package/dist/{chunk-QQVPLMPJ.mjs → chunk-JTFMN7OL.mjs} +1 -1
  101. package/dist/{chunk-2QZUKVBA.mjs → chunk-JULD2KZR.mjs} +1 -1
  102. package/dist/{chunk-FT3AE7L2.mjs → chunk-JVJG2LOA.mjs} +1 -1
  103. package/dist/{chunk-Q6PKGY27.mjs → chunk-K5GFFN67.mjs} +1 -1
  104. package/dist/chunk-KCOLYVJX.mjs +1 -0
  105. package/dist/{chunk-74JNWOJQ.mjs → chunk-KUVPOOSW.mjs} +1 -1
  106. package/dist/{chunk-HHYHENVF.mjs → chunk-KZTONTWM.mjs} +1 -1
  107. package/dist/{chunk-LVFMFRBR.mjs → chunk-LARQXED4.mjs} +1 -1
  108. package/dist/{chunk-Q3EVV5MV.mjs → chunk-LCIKBYDR.mjs} +1 -1
  109. package/dist/{chunk-76M7JE4D.mjs → chunk-LQDJWEHX.mjs} +1 -1
  110. package/dist/{chunk-LJLV5GUS.mjs → chunk-MZKVGPNQ.mjs} +1 -1
  111. package/dist/{chunk-JVG4XS2E.mjs → chunk-N5BLWWDM.mjs} +1 -1
  112. package/dist/{chunk-DFIXTV2M.mjs → chunk-N5GHL7UZ.mjs} +1 -1
  113. package/dist/{chunk-ISBVFNWD.mjs → chunk-NGC3C4FW.mjs} +1 -1
  114. package/dist/{chunk-I2ZLKSWR.mjs → chunk-NM6U4PLY.mjs} +1 -1
  115. package/dist/{chunk-DBY4SXQI.mjs → chunk-NMAMUYGQ.mjs} +1 -1
  116. package/dist/{chunk-NSMXJCXE.mjs → chunk-NN2RHTGW.mjs} +1 -1
  117. package/dist/{chunk-INCYANPB.mjs → chunk-NQPBIFGO.mjs} +1 -1
  118. package/dist/{chunk-TR6RBROH.mjs → chunk-OF63XSJ4.mjs} +1 -1
  119. package/dist/{chunk-6C4WESLL.mjs → chunk-OGN7YDFB.mjs} +1 -1
  120. package/dist/{chunk-I3E2TYYZ.mjs → chunk-OHDNPAPI.mjs} +1 -1
  121. package/dist/{chunk-FTZRG54P.mjs → chunk-OKAETRO6.mjs} +1 -1
  122. package/dist/{chunk-22LHS2J6.mjs → chunk-OU7KVCBI.mjs} +1 -1
  123. package/dist/{chunk-RLVKIMGU.mjs → chunk-P5U27QUJ.mjs} +1 -1
  124. package/dist/{chunk-5NRGSTPV.mjs → chunk-PMOMDGBA.mjs} +1 -1
  125. package/dist/{chunk-PDY7JYY3.mjs → chunk-PUAHE5VJ.mjs} +1 -1
  126. package/dist/{chunk-56X4PU43.mjs → chunk-PXAKUW3U.mjs} +1 -1
  127. package/dist/{chunk-MGYV46AJ.mjs → chunk-Q6FPZ6J3.mjs} +1 -1
  128. package/dist/{chunk-6WQXZ6IE.mjs → chunk-QAIS2C6W.mjs} +1 -1
  129. package/dist/{chunk-7GMAMIHM.mjs → chunk-QB63WPDB.mjs} +1 -1
  130. package/dist/{chunk-6HLXIE4P.mjs → chunk-QEFMYXHA.mjs} +1 -1
  131. package/dist/{chunk-IJQC7T2R.mjs → chunk-QIDPNZOL.mjs} +1 -1
  132. package/dist/{chunk-RVHCTANZ.mjs → chunk-QMTI6672.mjs} +1 -1
  133. package/dist/{chunk-D3B2YO7G.mjs → chunk-QUDKEIE6.mjs} +1 -1
  134. package/dist/{chunk-2BR55L74.mjs → chunk-QXA6C5VE.mjs} +1 -1
  135. package/dist/{chunk-Q6VAKKW3.mjs → chunk-QXNCGSQE.mjs} +1 -1
  136. package/dist/{chunk-TVZOULLL.mjs → chunk-RAAY7PEH.mjs} +1 -1
  137. package/dist/{chunk-AM2SRWFU.mjs → chunk-RARAKOXE.mjs} +1 -1
  138. package/dist/{chunk-Q67RF7VO.mjs → chunk-RD7LJPUV.mjs} +1 -1
  139. package/dist/{chunk-SOLZ4VQH.mjs → chunk-RFNYVF6F.mjs} +1 -1
  140. package/dist/{chunk-SOIRB5TV.mjs → chunk-RHYQ4V7N.mjs} +1 -1
  141. package/dist/{chunk-TUI4S4GI.mjs → chunk-RPUSKO6J.mjs} +1 -1
  142. package/dist/{chunk-OM5ZUHCN.mjs → chunk-RU435LAU.mjs} +1 -1
  143. package/dist/{chunk-LVK4QE5D.mjs → chunk-S7N4CSMJ.mjs} +1 -1
  144. package/dist/{chunk-AZ4VR5JX.mjs → chunk-SIFQNSEM.mjs} +1 -1
  145. package/dist/{chunk-XBCYPOFD.mjs → chunk-T3BIRW2W.mjs} +1 -1
  146. package/dist/{chunk-4UIARERB.mjs → chunk-T3NMKARZ.mjs} +1 -1
  147. package/dist/{chunk-CTAIR3TE.mjs → chunk-TAVSBP7M.mjs} +1 -1
  148. package/dist/{chunk-TKSXXSHY.mjs → chunk-TFPWTJ2V.mjs} +1 -1
  149. package/dist/{chunk-FMJBJ3HN.mjs → chunk-TNCD5YIY.mjs} +1 -1
  150. package/dist/{chunk-N3B3XNV3.mjs → chunk-TR52MKZR.mjs} +1 -1
  151. package/dist/chunk-TSEOL53Y.mjs +1 -0
  152. package/dist/{chunk-6SWKEZN6.mjs → chunk-TUTSJOO4.mjs} +1 -1
  153. package/dist/{chunk-6XUIHSKG.mjs → chunk-TYMRNSJ3.mjs} +1 -1
  154. package/dist/{chunk-XGIYNUGC.mjs → chunk-TZTQENNX.mjs} +1 -1
  155. package/dist/{chunk-BMA4266L.mjs → chunk-U5UV7T63.mjs} +1 -1
  156. package/dist/{chunk-ZXPDSSCF.mjs → chunk-UBCJPXKD.mjs} +1 -1
  157. package/dist/{chunk-CGDLOY7W.mjs → chunk-UJ6M7EV5.mjs} +1 -1
  158. package/dist/{chunk-KFCSVEI6.mjs → chunk-UXCCCQCB.mjs} +1 -1
  159. package/dist/{chunk-WISC5QJV.mjs → chunk-UY4BSKPK.mjs} +1 -1
  160. package/dist/{chunk-H3CJOE6S.mjs → chunk-VB7K44IF.mjs} +1 -1
  161. package/dist/{chunk-5SHZBJ5R.mjs → chunk-VFPS3FYN.mjs} +1 -1
  162. package/dist/{chunk-FMH5CZ7X.mjs → chunk-VRZHKAJK.mjs} +1 -1
  163. package/dist/{chunk-B4H6T2GP.mjs → chunk-VXZPPTQQ.mjs} +1 -1
  164. package/dist/{chunk-TJVEQJW3.mjs → chunk-WH24BWZV.mjs} +1 -1
  165. package/dist/{chunk-75WE6ZXB.mjs → chunk-WJZDHRGO.mjs} +1 -1
  166. package/dist/{chunk-RULSHTXR.mjs → chunk-WKLJU63E.mjs} +1 -1
  167. package/dist/{chunk-YFAZQYK4.mjs → chunk-WLM2ZFHF.mjs} +1 -1
  168. package/dist/{chunk-EHSOO47V.mjs → chunk-WNBJ7C5Y.mjs} +1 -1
  169. package/dist/{chunk-5BV4MHV6.mjs → chunk-WWTVAR4J.mjs} +1 -1
  170. package/dist/chunk-WXTJ6DVT.mjs +4 -0
  171. package/dist/{chunk-FA7PGHVM.mjs → chunk-X5RHYJW3.mjs} +1 -1
  172. package/dist/{chunk-BG7QXNV5.mjs → chunk-XXFUUOSB.mjs} +1 -1
  173. package/dist/{chunk-TK4JC5PG.mjs → chunk-XXWSCTF5.mjs} +1 -1
  174. package/dist/{chunk-ERJXTG6X.mjs → chunk-YHTFEWSZ.mjs} +1 -1
  175. package/dist/{chunk-OPLUKFRN.mjs → chunk-YUW3HHAK.mjs} +1 -1
  176. package/dist/{chunk-AREQGH47.mjs → chunk-YVNVQONM.mjs} +1 -1
  177. package/dist/{chunk-5BT4EWU5.mjs → chunk-Z756RYIZ.mjs} +1 -1
  178. package/dist/{chunk-4QRKVSTE.mjs → chunk-ZJBZTPLD.mjs} +1 -1
  179. package/dist/{chunk-BA3I4XZE.mjs → chunk-ZKLSTUIP.mjs} +1 -1
  180. package/dist/{chunk-5AWZJAK3.mjs → chunk-ZNV6MCYI.mjs} +1 -1
  181. package/dist/components/AdvancedComponents/AppSidebar.js +1 -1
  182. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  183. package/dist/components/AdvancedComponents/CommentSection.js +1 -1
  184. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  185. package/dist/components/AdvancedComponents/EditableField.js +1 -1
  186. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  187. package/dist/components/AdvancedComponents/app-header.d.ts +2 -2
  188. package/dist/components/AdvancedComponents/app-header.js +1 -1
  189. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  190. package/dist/components/AdvancedComponents/index.js +2 -2
  191. package/dist/components/AdvancedComponents/index.mjs +1 -1
  192. package/dist/components/AdvancedComponents/navigation-tabs.js +2 -2
  193. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  194. package/dist/components/AdvancedComponents/notifications-panel.js +1 -1
  195. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  196. package/dist/components/AdvancedComponents/switch.js +1 -1
  197. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  198. package/dist/components/AdvancedComponents/theme-toggle.js +1 -1
  199. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  200. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  201. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  202. package/dist/components/Blocks/Banner.js +1 -1
  203. package/dist/components/Blocks/Banner.mjs +1 -1
  204. package/dist/components/Blocks/CallToAction.js +1 -1
  205. package/dist/components/Blocks/CallToAction.mjs +1 -1
  206. package/dist/components/Blocks/CaseStudy.js +1 -1
  207. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  208. package/dist/components/Blocks/Code.client.js +1 -1
  209. package/dist/components/Blocks/Code.client.mjs +1 -1
  210. package/dist/components/Blocks/Code.js +1 -1
  211. package/dist/components/Blocks/Code.mjs +1 -1
  212. package/dist/components/Blocks/CollapsibleArea.js +1 -1
  213. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  214. package/dist/components/Blocks/ConsultantProfile.js +1 -1
  215. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  216. package/dist/components/Blocks/Content.js +1 -1
  217. package/dist/components/Blocks/Content.mjs +1 -1
  218. package/dist/components/Blocks/CopyButton.js +1 -1
  219. package/dist/components/Blocks/CopyButton.mjs +1 -1
  220. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  221. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  222. package/dist/components/Blocks/ImageBlock.js +1 -1
  223. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  224. package/dist/components/Blocks/MediaBlock.js +1 -1
  225. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  226. package/dist/components/Blocks/ProposalSummary.js +1 -1
  227. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  228. package/dist/components/Blocks/RelatedPosts.js +1 -1
  229. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  230. package/dist/components/Blocks/RenderBlocks.js +1 -1
  231. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  232. package/dist/components/Blocks/ReusableContentBlock.js +1 -1
  233. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  234. package/dist/components/Blocks/index.js +1 -1
  235. package/dist/components/Blocks/index.mjs +1 -1
  236. package/dist/components/CRM/CogeBoard.js +1 -1
  237. package/dist/components/CRM/CogeBoard.mjs +1 -1
  238. package/dist/components/CRM/DealCard.js +1 -1
  239. package/dist/components/CRM/DealCard.mjs +1 -1
  240. package/dist/components/CRM/DealDetails.js +1 -1
  241. package/dist/components/CRM/DealDetails.mjs +1 -1
  242. package/dist/components/CRM/KanbanBoard.js +1 -1
  243. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  244. package/dist/components/CRM/KanbanColumn.js +1 -1
  245. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  246. package/dist/components/CRM/NewCustomerForm.js +1 -1
  247. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  248. package/dist/components/CRM/NewDealForm.js +1 -1
  249. package/dist/components/CRM/NewDealForm.mjs +1 -1
  250. package/dist/components/CRM/index.js +1 -1
  251. package/dist/components/CRM/index.mjs +1 -1
  252. package/dist/components/Cards/ContentCard.js +1 -1
  253. package/dist/components/Cards/ContentCard.mjs +1 -1
  254. package/dist/components/Cards/CustomerCard.js +1 -1
  255. package/dist/components/Cards/CustomerCard.mjs +1 -1
  256. package/dist/components/Cards/EventCard.js +1 -1
  257. package/dist/components/Cards/EventCard.mjs +1 -1
  258. package/dist/components/Cards/FeatureCard.js +1 -1
  259. package/dist/components/Cards/FeatureCard.mjs +1 -1
  260. package/dist/components/Cards/HeroCard.js +1 -1
  261. package/dist/components/Cards/HeroCard.mjs +1 -1
  262. package/dist/components/Cards/Image.js +1 -1
  263. package/dist/components/Cards/Image.mjs +1 -1
  264. package/dist/components/Cards/PricingCard.js +1 -1
  265. package/dist/components/Cards/PricingCard.mjs +1 -1
  266. package/dist/components/Cards/ProjectCard.js +3 -3
  267. package/dist/components/Cards/ProjectCard.mjs +1 -1
  268. package/dist/components/Cards/ServiceCard.js +1 -1
  269. package/dist/components/Cards/ServiceCard.mjs +1 -1
  270. package/dist/components/Cards/index.js +4 -4
  271. package/dist/components/Cards/index.mjs +1 -1
  272. package/dist/components/Chat/ChatCardArtefact.js +1 -1
  273. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  274. package/dist/components/Chat/ChatCardTask.js +1 -1
  275. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  276. package/dist/components/Chat/ChatInterface.js +2 -2
  277. package/dist/components/Chat/ChatInterface.mjs +1 -1
  278. package/dist/components/Chat/ChatInterfaceMessages.js +2 -2
  279. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  280. package/dist/components/Chat/ChatMessage.js +2 -2
  281. package/dist/components/Chat/ChatMessage.mjs +1 -1
  282. package/dist/components/Chat/CopilotInterface.js +3 -3
  283. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  284. package/dist/components/Chat/capability-menu.js +1 -1
  285. package/dist/components/Chat/capability-menu.mjs +1 -1
  286. package/dist/components/Chat/chat-session-sidebar.js +1 -1
  287. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  288. package/dist/components/Chat/demo-long-messages.js +9 -9
  289. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  290. package/dist/components/Chat/demo-tests.js +24 -24
  291. package/dist/components/Chat/demo-tests.mjs +1 -1
  292. package/dist/components/Chat/demo.js +3 -3
  293. package/dist/components/Chat/demo.mjs +1 -1
  294. package/dist/components/Chat/example-usage.js +2 -2
  295. package/dist/components/Chat/example-usage.mjs +1 -1
  296. package/dist/components/Chat/example-with-file-uploads.js +1 -1
  297. package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
  298. package/dist/components/Chat/example-with-vercel-ai.js +3 -3
  299. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  300. package/dist/components/Chat/index.js +3 -3
  301. package/dist/components/Chat/index.mjs +1 -1
  302. package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +2 -2
  303. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  304. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +1 -1
  305. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  306. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +2 -2
  307. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  308. package/dist/components/DeliveryLead/index.js +2 -2
  309. package/dist/components/DeliveryLead/index.mjs +1 -1
  310. package/dist/components/DigitalColleagues/AppSidebarLeft.js +1 -1
  311. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  312. package/dist/components/DigitalColleagues/DashboardHeader.js +1 -1
  313. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  314. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  315. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  316. package/dist/components/DigitalColleagues/MainPage.js +1 -1
  317. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  318. package/dist/components/DigitalColleagues/ManagementSidebar.js +1 -1
  319. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  320. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  321. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  322. package/dist/components/DigitalColleagues/SearchableSelect.js +1 -1
  323. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  324. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  325. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  326. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  327. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  328. package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +1 -1
  329. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  330. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  331. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  332. package/dist/components/DigitalColleagues/colleague-card.js +1 -1
  333. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  334. package/dist/components/DigitalColleagues/colleague-form.js +1 -1
  335. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  336. package/dist/components/DigitalColleagues/colleague-type-selection.js +1 -1
  337. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  338. package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -1
  339. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  340. package/dist/components/DigitalColleagues/digital-colleague-options.js +1 -1
  341. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  342. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  343. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  344. package/dist/components/DigitalColleagues/document-preview-examples.js +5 -5
  345. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  346. package/dist/components/DigitalColleagues/document-preview.js +1 -1
  347. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  348. package/dist/components/DigitalColleagues/index.js +1 -1
  349. package/dist/components/DigitalColleagues/index.mjs +1 -1
  350. package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
  351. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  352. package/dist/components/DigitalColleagues/knowledge-search.js +1 -1
  353. package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
  354. package/dist/components/DigitalColleagues/team-form.js +1 -1
  355. package/dist/components/DigitalColleagues/team-form.mjs +1 -1
  356. package/dist/components/DigitalColleagues/test-data.js +1 -1
  357. package/dist/components/DigitalColleagues/test-data.mjs +1 -1
  358. package/dist/components/DigitalColleagues/types.d.ts +1 -0
  359. package/dist/components/HeaderFooter/BrandLogo.js +1 -1
  360. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
  361. package/dist/components/HeaderFooter/Footer.js +1 -1
  362. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  363. package/dist/components/HeaderFooter/Header.js +1 -1
  364. package/dist/components/HeaderFooter/Header.mjs +1 -1
  365. package/dist/components/HeaderFooter/HeaderDesktop.js +1 -1
  366. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  367. package/dist/components/HeaderFooter/HeaderMenu.js +1 -1
  368. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  369. package/dist/components/HeaderFooter/HeaderMobile.js +1 -1
  370. package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
  371. package/dist/components/HeaderFooter/RelatedPagesMenu.js +1 -1
  372. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  373. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  374. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  375. package/dist/components/HeaderFooter/SimpleHeader.js +1 -1
  376. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  377. package/dist/components/HeaderFooter/VideoHeader.js +1 -1
  378. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  379. package/dist/components/HeaderFooter/enhanced-header.js +1 -1
  380. package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
  381. package/dist/components/HeaderFooter/index.js +1 -1
  382. package/dist/components/HeaderFooter/index.mjs +1 -1
  383. package/dist/components/Heros/DashboardHero/DashboardHero.js +1 -1
  384. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  385. package/dist/components/Heros/DashboardHero/index.js +1 -1
  386. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  387. package/dist/components/Heros/HighImpact/index.js +1 -1
  388. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  389. package/dist/components/Heros/LowImpact/index.js +1 -1
  390. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  391. package/dist/components/Heros/MediumImpact/index.js +1 -1
  392. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  393. package/dist/components/Heros/PostHero/index.js +1 -1
  394. package/dist/components/Heros/PostHero/index.mjs +1 -1
  395. package/dist/components/Heros/RenderHero.js +1 -1
  396. package/dist/components/Heros/RenderHero.mjs +1 -1
  397. package/dist/components/Heros/SectionHero/index.js +1 -1
  398. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  399. package/dist/components/Heros/index.js +1 -1
  400. package/dist/components/Heros/index.mjs +1 -1
  401. package/dist/components/Holidays/ApproveLeave.js +1 -1
  402. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  403. package/dist/components/Holidays/CalendarView.js +1 -1
  404. package/dist/components/Holidays/CalendarView.mjs +1 -1
  405. package/dist/components/Holidays/HolidayGrid.js +1 -1
  406. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  407. package/dist/components/Holidays/HolidayTracker.js +1 -1
  408. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  409. package/dist/components/Holidays/RequestLeave.js +1 -1
  410. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  411. package/dist/components/Holidays/index.js +1 -1
  412. package/dist/components/Holidays/index.mjs +1 -1
  413. package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
  414. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  415. package/dist/components/Layouts/Print.js +2 -2
  416. package/dist/components/Layouts/Print.mjs +1 -1
  417. package/dist/components/Layouts/SlideShow.js +3 -3
  418. package/dist/components/Layouts/SlideShow.mjs +1 -1
  419. package/dist/components/Layouts/index.js +4 -4
  420. package/dist/components/Layouts/index.mjs +1 -1
  421. package/dist/components/Menus/Categories.js +1 -1
  422. package/dist/components/Menus/Categories.mjs +1 -1
  423. package/dist/components/Menus/Filter.js +1 -1
  424. package/dist/components/Menus/Filter.mjs +1 -1
  425. package/dist/components/Menus/Pagination.js +1 -1
  426. package/dist/components/Menus/Pagination.mjs +1 -1
  427. package/dist/components/Menus/ProjectTeam.js +1 -1
  428. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  429. package/dist/components/Menus/RelatedContent.js +1 -1
  430. package/dist/components/Menus/RelatedContent.mjs +1 -1
  431. package/dist/components/Menus/SidebarLeft.js +1 -1
  432. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  433. package/dist/components/Menus/SidebarRight.js +1 -1
  434. package/dist/components/Menus/SidebarRight.mjs +1 -1
  435. package/dist/components/Menus/index.js +1 -1
  436. package/dist/components/Menus/index.mjs +1 -1
  437. package/dist/components/Other/Container.js +1 -1
  438. package/dist/components/Other/Container.mjs +1 -1
  439. package/dist/components/Other/PageShape.js +1 -1
  440. package/dist/components/Other/PageShape.mjs +1 -1
  441. package/dist/components/Other/index.js +1 -1
  442. package/dist/components/Other/index.mjs +1 -1
  443. package/dist/components/Payload/Card/index.js +1 -1
  444. package/dist/components/Payload/Card/index.mjs +1 -1
  445. package/dist/components/Payload/CollectionArchive/index.js +1 -1
  446. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  447. package/dist/components/Payload/Link/index.js +1 -1
  448. package/dist/components/Payload/Link/index.mjs +1 -1
  449. package/dist/components/Payload/Media/ImageMedia/index.js +1 -1
  450. package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
  451. package/dist/components/Payload/Media/VideoMedia/index.js +1 -1
  452. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  453. package/dist/components/Payload/Media/index.js +1 -1
  454. package/dist/components/Payload/Media/index.mjs +1 -1
  455. package/dist/components/Payload/Pagination/index.js +1 -1
  456. package/dist/components/Payload/Pagination/index.mjs +1 -1
  457. package/dist/components/Payload/RichText/index.js +1 -1
  458. package/dist/components/Payload/RichText/index.mjs +1 -1
  459. package/dist/components/Payload/RichText/serialize.js +1 -1
  460. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  461. package/dist/components/Payload/index.js +1 -1
  462. package/dist/components/Payload/index.mjs +1 -1
  463. package/dist/components/Projects/AddEpicModal.js +1 -1
  464. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  465. package/dist/components/Projects/AddSprintModal.js +1 -1
  466. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  467. package/dist/components/Projects/AddTaskModal.js +1 -1
  468. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  469. package/dist/components/Projects/EpicFilter.js +1 -1
  470. package/dist/components/Projects/EpicFilter.mjs +1 -1
  471. package/dist/components/Projects/EpicsView.js +1 -1
  472. package/dist/components/Projects/EpicsView.mjs +1 -1
  473. package/dist/components/Projects/FileView.js +1 -1
  474. package/dist/components/Projects/FileView.mjs +1 -1
  475. package/dist/components/Projects/KanbanBoardView.js +1 -1
  476. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  477. package/dist/components/Projects/KanbanColumn.js +1 -1
  478. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  479. package/dist/components/Projects/PlanningView.js +1 -1
  480. package/dist/components/Projects/PlanningView.mjs +1 -1
  481. package/dist/components/Projects/ProjectPage.js +1 -1
  482. package/dist/components/Projects/ProjectPage.mjs +1 -1
  483. package/dist/components/Projects/ProjectView.js +1 -1
  484. package/dist/components/Projects/ProjectView.mjs +1 -1
  485. package/dist/components/Projects/ProjectsIndexView.js +1 -1
  486. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  487. package/dist/components/Projects/TaskCard.js +1 -1
  488. package/dist/components/Projects/TaskCard.mjs +1 -1
  489. package/dist/components/Projects/TaskDetailsModal.js +1 -1
  490. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  491. package/dist/components/Projects/TaskSelect.js +1 -1
  492. package/dist/components/Projects/TaskSelect.mjs +1 -1
  493. package/dist/components/Projects/TaskSidebar.js +1 -1
  494. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  495. package/dist/components/Projects/TasksView.js +1 -1
  496. package/dist/components/Projects/TasksView.mjs +1 -1
  497. package/dist/components/Projects/TeamSwitcher.js +1 -1
  498. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  499. package/dist/components/Projects/business-unit-switcher.js +1 -1
  500. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  501. package/dist/components/Projects/file-list.js +1 -1
  502. package/dist/components/Projects/file-list.mjs +1 -1
  503. package/dist/components/Projects/index.css +1 -0
  504. package/dist/components/Projects/index.d.ts +1 -0
  505. package/dist/components/Projects/index.js +4 -0
  506. package/dist/components/Projects/index.mjs +1 -0
  507. package/dist/components/Projects/project-card.js +1 -1
  508. package/dist/components/Projects/project-card.mjs +1 -1
  509. package/dist/components/Projects/project-form.js +1 -1
  510. package/dist/components/Projects/project-form.mjs +1 -1
  511. package/dist/components/Projects/team-card.js +1 -1
  512. package/dist/components/Projects/team-card.mjs +1 -1
  513. package/dist/components/Projects/team-switcher-bar.js +1 -1
  514. package/dist/components/Projects/team-switcher-bar.mjs +1 -1
  515. package/dist/components/Projects/test-data.js +1 -1
  516. package/dist/components/Projects/test-data.mjs +1 -1
  517. package/dist/components/dc-temp/creative.js +1 -1
  518. package/dist/components/dc-temp/creative.mjs +1 -1
  519. package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
  520. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  521. package/dist/components/dc-temp/index.js +1 -1
  522. package/dist/components/dc-temp/index.mjs +1 -1
  523. package/dist/components/dc-temp/markdown-renderer.js +1 -1
  524. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  525. package/dist/components/dc-temp/mock-data.js +1 -1
  526. package/dist/components/dc-temp/mock-data.mjs +1 -1
  527. package/dist/components/dc-temp/utils.js +1 -1
  528. package/dist/components/dc-temp/utils.mjs +1 -1
  529. package/dist/components/index.d.ts +1 -0
  530. package/dist/components/index.js +13 -13
  531. package/dist/components/index.mjs +1 -1
  532. package/dist/components/ui/alert.js +1 -1
  533. package/dist/components/ui/alert.mjs +1 -1
  534. package/dist/components/ui/avatar.js +1 -1
  535. package/dist/components/ui/avatar.mjs +1 -1
  536. package/dist/components/ui/badge.js +1 -1
  537. package/dist/components/ui/badge.mjs +1 -1
  538. package/dist/components/ui/breadcrumb.js +1 -1
  539. package/dist/components/ui/breadcrumb.mjs +1 -1
  540. package/dist/components/ui/button.js +1 -1
  541. package/dist/components/ui/button.mjs +1 -1
  542. package/dist/components/ui/calendar.js +1 -1
  543. package/dist/components/ui/calendar.mjs +1 -1
  544. package/dist/components/ui/card.js +1 -1
  545. package/dist/components/ui/card.mjs +1 -1
  546. package/dist/components/ui/checkbox.js +1 -1
  547. package/dist/components/ui/checkbox.mjs +1 -1
  548. package/dist/components/ui/command.js +1 -1
  549. package/dist/components/ui/command.mjs +1 -1
  550. package/dist/components/ui/dialog.js +1 -1
  551. package/dist/components/ui/dialog.mjs +1 -1
  552. package/dist/components/ui/dropdown-menu.js +1 -1
  553. package/dist/components/ui/dropdown-menu.mjs +1 -1
  554. package/dist/components/ui/hover-card.js +1 -1
  555. package/dist/components/ui/hover-card.mjs +1 -1
  556. package/dist/components/ui/index.js +1 -1
  557. package/dist/components/ui/index.mjs +1 -1
  558. package/dist/components/ui/input.js +1 -1
  559. package/dist/components/ui/input.mjs +1 -1
  560. package/dist/components/ui/inputs/common/styles/index.js +1 -1
  561. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  562. package/dist/components/ui/inputs/text-input/index.js +1 -1
  563. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  564. package/dist/components/ui/inputs/textarea-input/index.js +1 -1
  565. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  566. package/dist/components/ui/label.js +1 -1
  567. package/dist/components/ui/label.mjs +1 -1
  568. package/dist/components/ui/pagination.js +1 -1
  569. package/dist/components/ui/pagination.mjs +1 -1
  570. package/dist/components/ui/popover.js +1 -1
  571. package/dist/components/ui/popover.mjs +1 -1
  572. package/dist/components/ui/progress.js +1 -1
  573. package/dist/components/ui/progress.mjs +1 -1
  574. package/dist/components/ui/scroll-area.js +1 -1
  575. package/dist/components/ui/scroll-area.mjs +1 -1
  576. package/dist/components/ui/select.js +1 -1
  577. package/dist/components/ui/select.mjs +1 -1
  578. package/dist/components/ui/separator.js +1 -1
  579. package/dist/components/ui/separator.mjs +1 -1
  580. package/dist/components/ui/sheet.js +1 -1
  581. package/dist/components/ui/sheet.mjs +1 -1
  582. package/dist/components/ui/sidebar.js +1 -1
  583. package/dist/components/ui/sidebar.mjs +1 -1
  584. package/dist/components/ui/skeleton.js +1 -1
  585. package/dist/components/ui/skeleton.mjs +1 -1
  586. package/dist/components/ui/switch.js +1 -1
  587. package/dist/components/ui/switch.mjs +1 -1
  588. package/dist/components/ui/tabs.js +1 -1
  589. package/dist/components/ui/tabs.mjs +1 -1
  590. package/dist/components/ui/textarea.js +1 -1
  591. package/dist/components/ui/textarea.mjs +1 -1
  592. package/dist/components/ui/toast.js +1 -1
  593. package/dist/components/ui/toast.mjs +1 -1
  594. package/dist/components/ui/toaster.js +1 -1
  595. package/dist/components/ui/toaster.mjs +1 -1
  596. package/dist/components/ui/toggle-group.js +1 -1
  597. package/dist/components/ui/toggle-group.mjs +1 -1
  598. package/dist/components/ui/toggle.js +1 -1
  599. package/dist/components/ui/toggle.mjs +1 -1
  600. package/dist/components/ui/tooltip.js +1 -1
  601. package/dist/components/ui/tooltip.mjs +1 -1
  602. package/dist/globals.css +1 -1
  603. package/dist/index.js +18 -18
  604. package/dist/index.mjs +1 -1
  605. package/dist/metafile-cjs.json +1 -1
  606. package/dist/metafile-esm.json +1 -1
  607. package/dist/pages/Blog.js +1 -1
  608. package/dist/pages/Blog.mjs +1 -1
  609. package/dist/pages/Documentation.js +1 -1
  610. package/dist/pages/Documentation.mjs +1 -1
  611. package/dist/pages/IndexPage.js +1 -1
  612. package/dist/pages/IndexPage.mjs +1 -1
  613. package/dist/pages/Intranet.js +1 -1
  614. package/dist/pages/Intranet.mjs +1 -1
  615. package/dist/pages/LandingPage.js +3 -3
  616. package/dist/pages/LandingPage.mjs +1 -1
  617. package/dist/pages/Page.js +1 -1
  618. package/dist/pages/Page.mjs +1 -1
  619. package/dist/pages/Publish.js +4 -4
  620. package/dist/pages/Publish.mjs +1 -1
  621. package/dist/pages/Website.js +1 -1
  622. package/dist/pages/Website.mjs +1 -1
  623. package/dist/sections/AboutSection.js +1 -1
  624. package/dist/sections/AboutSection.mjs +1 -1
  625. package/dist/sections/BlogDetail.js +1 -1
  626. package/dist/sections/BlogDetail.mjs +1 -1
  627. package/dist/sections/BlogList.js +3 -3
  628. package/dist/sections/BlogList.mjs +1 -1
  629. package/dist/sections/BlogListSection.js +1 -1
  630. package/dist/sections/BlogListSection.mjs +1 -1
  631. package/dist/sections/ContactSection.js +1 -1
  632. package/dist/sections/ContactSection.mjs +1 -1
  633. package/dist/sections/ImageSection.js +1 -1
  634. package/dist/sections/ImageSection.mjs +1 -1
  635. package/dist/sections/MainPageSection.js +1 -1
  636. package/dist/sections/MainPageSection.mjs +1 -1
  637. package/dist/sections/PageSections.js +3 -3
  638. package/dist/sections/PageSections.mjs +1 -1
  639. package/dist/sections/PricingSection.js +1 -1
  640. package/dist/sections/PricingSection.mjs +1 -1
  641. package/dist/sections/ServiceDetail.js +1 -1
  642. package/dist/sections/ServiceDetail.mjs +1 -1
  643. package/dist/sections/ServiceDetailSection.js +1 -1
  644. package/dist/sections/ServiceDetailSection.mjs +1 -1
  645. package/dist/sections/ServiceSection.js +1 -1
  646. package/dist/sections/ServiceSection.mjs +1 -1
  647. package/dist/sections/form/index.js +1 -1
  648. package/dist/sections/form/index.mjs +1 -1
  649. package/dist/sections/index.js +3 -3
  650. package/dist/sections/index.mjs +1 -1
  651. package/dist/styles/Colors.js +1 -1
  652. package/dist/styles/Colors.mjs +1 -1
  653. package/dist/utils/AOSInit.js +2 -2
  654. package/dist/utils/AOSInit.mjs +1 -1
  655. package/dist/utils/cn.js +1 -1
  656. package/dist/utils/cn.mjs +1 -1
  657. package/dist/utils/index.js +2 -2
  658. package/dist/utils/index.mjs +1 -1
  659. package/package.json +1 -1
  660. package/dist/chunk-MDJREBVI.mjs +0 -1
  661. package/dist/chunk-O46BOA4T.mjs +0 -1
  662. package/dist/chunk-PA4ZBJDO.mjs +0 -1
  663. package/dist/chunk-XGRRLABA.mjs +0 -8
  664. package/dist/chunk-ZFUP5NVF.mjs +0 -4
  665. package/dist/chunk-ZWHGOTSF.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{Home as u,Layers as h,Bot as w,Building2 as y,Code as D,Palette as f,TrendingUp as b,Users as m,Wrench as k,DollarSign as v,Scale as A,Package as S,Zap as C,FileText as g,FileImage as I,FileVideo as P,Music as x,File as j}from"lucide-react";import{jsx as t}from"react/jsx-runtime";var i=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date}),E=[{id:"home",title:"Home",icon:t(u,{}),isActive:!0},{id:"teams",title:"Teams",icon:t(m,{}),maxItems:2,items:[{id:"design",title:"Design",url:"#"},{id:"marketing",title:"Marketing",url:"#"},{id:"finance",title:"Finance",url:"#"},{id:"engineering",title:"Engineering",url:"#"},{id:"sales",title:"Sales",url:"#"}]},{id:"projects",title:"Projects",icon:t(h,{}),badge:"4",maxItems:2,items:[{id:"active-projects",title:"Active Projects",url:"#",badge:"4"},{id:"archived",title:"Archived",url:"#"},{id:"templates",title:"Templates",url:"#"},{id:"drafts",title:"Drafts",url:"#"},{id:"shared",title:"Shared with Me",url:"#",badge:"2"}]},{id:"copilot",title:"Copilot",icon:t(w,{}),url:"/copilot"},{id:"knowledge",title:"Knowledge",icon:t(g,{}),url:"/knowledge"}],U=[{id:"1",title:"New comment on your post",description:"Alex Morgan commented on your 'Minimalist Logo Design' post.",time:"Just now",read:!1,type:"info",actionLabel:"View comment",onAction:()=>console.log("View comment clicked")},{id:"2",title:"Project deadline approaching",description:"The 'Website Redesign' project is due in 2 days.",time:"5 minutes ago",read:!1,type:"warning",actionLabel:"View project",onAction:()=>console.log("View project clicked")},{id:"3",title:"File shared with you",description:"Emma Thompson shared 'Brand Guidelines.pdf' with you.",time:"1 hour ago",read:!1,type:"info",actionLabel:"Open file",onAction:()=>console.log("Open file clicked")},{id:"4",title:"Update successful",description:"PixelMaster has been updated to version 2.4.0.",time:"3 hours ago",read:!0,type:"success",actionLabel:"See what's new",onAction:()=>console.log("See what's new clicked")},{id:"5",title:"Storage limit reached",description:"You've used 95% of your storage. Consider upgrading your plan.",time:"Yesterday",read:!0,type:"error",actionLabel:"Upgrade plan",onAction:()=>console.log("Upgrade plan clicked")},{id:"6",title:"Weekly summary",description:"Check out your activity summary for the past week.",time:"2 days ago",read:!0,type:"info",actionLabel:"View summary",onAction:()=>console.log("View summary clicked")},{id:"7",title:"New tutorial available",description:"A new tutorial on 'Advanced Animation Techniques' is now available.",time:"3 days ago",read:!0,type:"info",actionLabel:"Start learning",onAction:()=>console.log("Start learning clicked")}],z=[{id:"design",name:"Design",description:"Creative and visual design team",icon:t(f,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:t(D,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:t(b,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:t(v,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:t(m,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:t(k,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:t(A,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:t(S,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:t(C,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:t(y,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],r=[{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}],B=[{id:1,name:"Website Redesign",description:"Complete overhaul of company website",progress:75,dueDate:"June 15, 2025",members:4,files:23},{id:2,name:"Mobile App Launch",description:"Design and assets for new mobile application",progress:60,dueDate:"July 30, 2025",members:6,files:42},{id:3,name:"Brand Identity",description:"New brand guidelines and assets",progress:90,dueDate:"May 25, 2025",members:3,files:18},{id:4,name:"Marketing Campaign",description:"Summer promotion materials",progress:40,dueDate:"August 10, 2025",members:5,files:31}],N=[{id:"1",name:"Product Development",description:"Core product development team responsible for building and maintaining our main platform",humanColleagues:8,digitalColleagues:3,projects:5},{id:"2",name:"Design & UX",description:"Creative team focused on user experience design and visual identity",humanColleagues:5,digitalColleagues:2,projects:3},{id:"3",name:"Marketing",description:"Growth and marketing team driving customer acquisition and retention",humanColleagues:6,digitalColleagues:4,projects:7},{id:"4",name:"Data Science",description:"Analytics and machine learning team providing insights and intelligent features",humanColleagues:4,digitalColleagues:6,projects:2},{id:"5",name:"Customer Success",description:"Support and success team ensuring customer satisfaction and retention",humanColleagues:7,digitalColleagues:2,projects:4},{id:"6",name:"Operations",description:"Infrastructure and operations team maintaining system reliability and performance",humanColleagues:3,digitalColleagues:5,projects:3}],l=[{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}],s=[{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}],d=[{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")}],T=[...d,{id:"8",title:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",title:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",title:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",title:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",title:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],M=[...r,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],o={projects:[{id:"1",name:"Empty Project",description:"A project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},p={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:d.filter(e=>e.epicId==="1")},F=(e,a)=>e.filter(n=>n.status===a),L=(e,a)=>e.filter(n=>n.epicId===a),G=(e,a)=>e.filter(n=>n.sprintId===a),O=e=>e.filter(a=>a.isSelected),q=e=>e.filter(a=>a.isActive),V={empty:{initialProjects:o.projects,initialEpics:o.epics,initialSprints:o.sprints,initialTasks:o.tasks},default:{initialProjects:r,initialEpics:l,initialSprints:s,initialTasks:d},highDensity:{initialProjects:r,initialEpics:l,initialSprints:s,initialTasks:T},singleEpic:{initialProjects:r,initialEpics:p.epics,initialSprints:s,initialTasks:p.tasks},multipleProjects:{initialProjects:M,initialEpics:l,initialSprints:s,initialTasks:d}},c=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(i),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(i),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-7200*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(i),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(i),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-10080*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(i),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(i),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(i),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(i),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(i),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(i),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],J=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:c.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:c.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:c.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}],K=[{name:"Project_Requirements.docx",app:"Word",modified:"2 hours ago",icon:t(g,{className:"h-5 w-5 text-blue-500"}),shared:!0,size:"1.2 MB",collaborators:4},{name:"Sprint_Planning_Notes.pdf",app:"PDF Reader",modified:"1 day ago",icon:t(j,{className:"h-5 w-5 text-red-500"}),shared:!1,size:"245 KB",collaborators:0},{name:"UI_Mockups.fig",app:"Figma",modified:"3 days ago",icon:t(I,{className:"h-5 w-5 text-purple-500"}),shared:!0,size:"5.7 MB",collaborators:6},{name:"Demo_Video.mp4",app:"Video Player",modified:"1 week ago",icon:t(P,{className:"h-5 w-5 text-green-500"}),shared:!1,size:"89 MB",collaborators:0},{name:"Meeting_Recording.m4a",app:"Audio Player",modified:"2 weeks ago",icon:t(x,{className:"h-5 w-5 text-orange-500"}),shared:!0,size:"12 MB",collaborators:2}],W=c.filter(e=>e.type==="digital");export{E as a,U as b,z as c,r as d,B as e,N as f,l as g,s as h,d as i,T as j,M as k,o as l,p as m,F as n,L as o,G as p,O as q,q as r,V as s,c as t,J as u,K as v,W as w};
@@ -1 +1 @@
1
- import{a as c,c as d,d as p,g as m,i as g}from"./chunk-YFAZQYK4.mjs";import{a as f}from"./chunk-B4H6T2GP.mjs";import{a as i}from"./chunk-TVZOULLL.mjs";import{a as o}from"./chunk-L5JPAKPM.mjs";import{a as v,f as b,g as D,h,i as S}from"./chunk-3UMMMQEH.mjs";import{b as s}from"./chunk-ZUA4KNIR.mjs";import{useState as O}from"react";import{jsx as a,jsxs as l}from"react/jsx-runtime";var R=({isOpen:y,onClose:r,onAddEpic:C})=>{let[t,u]=O({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}),N=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],w=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],E=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],T=e=>{e.preventDefault(),t.name.trim()&&(C({name:t.name.trim(),description:t.description.trim(),color:t.color,confidence:t.confidence,phase:t.phase,startDate:new Date(t.startDate),endDate:new Date(t.endDate),progress:t.progress,isSelected:!0}),u({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}),r())},n=(e,I)=>{u(L=>({...L,[e]:I}))};return a(v,{open:y,onOpenChange:r,children:l(b,{className:"sm:max-w-md",children:[a(D,{children:a(S,{children:"Add New Epic"})}),l("form",{onSubmit:T,className:"space-y-4",children:[l("div",{className:"space-y-2",children:[a(i,{htmlFor:"name",children:"Epic Name"}),a(o,{id:"name",value:t.name,onChange:e=>n("name",e.target.value),placeholder:"Enter epic name",required:!0})]}),l("div",{className:"space-y-2",children:[a(i,{htmlFor:"description",children:"Description"}),a(f,{id:"description",value:t.description,onChange:e=>n("description",e.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),l("div",{className:"space-y-2",children:[a(i,{children:"Color"}),a("div",{className:"flex gap-2 flex-wrap",children:N.map(e=>a("button",{type:"button",onClick:()=>n("color",e),className:`w-8 h-8 rounded-full ${e} ${t.color===e?"ring-2 ring-gray-400":""}`},e))})]}),l("div",{className:"grid grid-cols-2 gap-4",children:[l("div",{className:"space-y-2",children:[a(i,{children:"Confidence"}),l(c,{value:t.confidence,onValueChange:e=>n("confidence",e),children:[a(p,{children:a(d,{})}),a(m,{children:w.map(e=>a(g,{value:e.value,children:e.label},e.value))})]})]}),l("div",{className:"space-y-2",children:[a(i,{children:"Phase"}),l(c,{value:t.phase.toString(),onValueChange:e=>n("phase",parseInt(e)),children:[a(p,{children:a(d,{})}),a(m,{children:E.map(e=>a(g,{value:e.value.toString(),children:e.label},e.value))})]})]})]}),l("div",{className:"grid grid-cols-2 gap-4",children:[l("div",{className:"space-y-2",children:[a(i,{children:"Start Date"}),a(o,{type:"date",value:t.startDate,onChange:e=>n("startDate",e.target.value)})]}),l("div",{className:"space-y-2",children:[a(i,{children:"End Date"}),a(o,{type:"date",value:t.endDate,onChange:e=>n("endDate",e.target.value)})]})]}),l("div",{className:"space-y-2",children:[a(i,{children:"Progress (%)"}),a(o,{type:"number",min:"0",max:"100",value:t.progress,onChange:e=>n("progress",parseInt(e.target.value)||0)})]}),l(h,{children:[a(s,{type:"button",variant:"outline",onClick:r,children:"Cancel"}),a(s,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};export{R as a};
1
+ import{a as c,c as d,d as p,g as m,i as g}from"./chunk-WLM2ZFHF.mjs";import{a as f}from"./chunk-VXZPPTQQ.mjs";import{a as i}from"./chunk-RAAY7PEH.mjs";import{a as v,f as b,g as D,h,i as S}from"./chunk-AG6IN5S7.mjs";import{a as o}from"./chunk-GJUA2KUH.mjs";import{b as s}from"./chunk-7Z3TOFNL.mjs";import{useState as O}from"react";import{jsx as a,jsxs as l}from"react/jsx-runtime";var R=({isOpen:y,onClose:r,onAddEpic:C})=>{let[t,u]=O({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}),N=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],w=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],E=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],T=e=>{e.preventDefault(),t.name.trim()&&(C({name:t.name.trim(),description:t.description.trim(),color:t.color,confidence:t.confidence,phase:t.phase,startDate:new Date(t.startDate),endDate:new Date(t.endDate),progress:t.progress,isSelected:!0}),u({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}),r())},n=(e,I)=>{u(L=>({...L,[e]:I}))};return a(v,{open:y,onOpenChange:r,children:l(b,{className:"sm:max-w-md",children:[a(D,{children:a(S,{children:"Add New Epic"})}),l("form",{onSubmit:T,className:"space-y-4",children:[l("div",{className:"space-y-2",children:[a(i,{htmlFor:"name",children:"Epic Name"}),a(o,{id:"name",value:t.name,onChange:e=>n("name",e.target.value),placeholder:"Enter epic name",required:!0})]}),l("div",{className:"space-y-2",children:[a(i,{htmlFor:"description",children:"Description"}),a(f,{id:"description",value:t.description,onChange:e=>n("description",e.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),l("div",{className:"space-y-2",children:[a(i,{children:"Color"}),a("div",{className:"flex gap-2 flex-wrap",children:N.map(e=>a("button",{type:"button",onClick:()=>n("color",e),className:`w-8 h-8 rounded-full ${e} ${t.color===e?"ring-2 ring-gray-400":""}`},e))})]}),l("div",{className:"grid grid-cols-2 gap-4",children:[l("div",{className:"space-y-2",children:[a(i,{children:"Confidence"}),l(c,{value:t.confidence,onValueChange:e=>n("confidence",e),children:[a(p,{children:a(d,{})}),a(m,{children:w.map(e=>a(g,{value:e.value,children:e.label},e.value))})]})]}),l("div",{className:"space-y-2",children:[a(i,{children:"Phase"}),l(c,{value:t.phase.toString(),onValueChange:e=>n("phase",parseInt(e)),children:[a(p,{children:a(d,{})}),a(m,{children:E.map(e=>a(g,{value:e.value.toString(),children:e.label},e.value))})]})]})]}),l("div",{className:"grid grid-cols-2 gap-4",children:[l("div",{className:"space-y-2",children:[a(i,{children:"Start Date"}),a(o,{type:"date",value:t.startDate,onChange:e=>n("startDate",e.target.value)})]}),l("div",{className:"space-y-2",children:[a(i,{children:"End Date"}),a(o,{type:"date",value:t.endDate,onChange:e=>n("endDate",e.target.value)})]})]}),l("div",{className:"space-y-2",children:[a(i,{children:"Progress (%)"}),a(o,{type:"number",min:"0",max:"100",value:t.progress,onChange:e=>n("progress",parseInt(e.target.value)||0)})]}),l(h,{children:[a(s,{type:"button",variant:"outline",onClick:r,children:"Cancel"}),a(s,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};export{R as a};
@@ -1 +1 @@
1
- import{a as C}from"./chunk-PFLESLNT.mjs";import{a as w}from"./chunk-6SWKEZN6.mjs";import{a as c}from"./chunk-DFIXTV2M.mjs";import{a as h,f as x,g as S,i as T}from"./chunk-3UMMMQEH.mjs";import{useState as r}from"react";import{Loader2 as H,Check as L,X as O}from"lucide-react";import{jsx as e,jsxs as i}from"react/jsx-runtime";var J=({isOpen:y,onClose:m,task:t,epics:U,sprints:b,onUpdateTask:p,onDeleteTask:N})=>{let[k,g]=r(new Date),[o,a]=r("idle"),[l,d]=r("idle"),[u,A]=r([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:t.createdAt},{id:"2",text:"Started working on the implementation.",author:t.assignee,createdAt:new Date(t.createdAt.getTime()+864e5)}]),f=async(s,n)=>{if(n!==t[s]){a("loading");try{await p(t.id,{[s]:n}),g(new Date),a("success"),setTimeout(()=>a("idle"),1500)}catch{a("error"),setTimeout(()=>a("idle"),3e3)}}},P=async(s,n)=>{if(n!==t[s]){a("loading");try{await p(t.id,{[s]:n}),g(new Date),a("success"),setTimeout(()=>a("idle"),1500)}catch{a("error"),setTimeout(()=>a("idle"),3e3)}}},I=s=>{let n={id:Date.now().toString(),text:s,author:"Current User",createdAt:new Date};A([...u,n])},E=async()=>{d("loading");try{await N(t.id),d("success"),setTimeout(()=>{m(),d("idle")},1e3)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}},v=o!=="loading"&&l!=="loading",D=()=>{v&&m()},F=()=>o==="loading"?i("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e(H,{className:"h-4 w-4 animate-spin"}),e("span",{children:"Updating..."})]}):o==="success"?i("div",{className:"flex items-center gap-2 text-sm text-success",children:[e(L,{className:"h-4 w-4"}),e("span",{children:"Updated successfully"})]}):o==="error"?i("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[e(O,{className:"h-4 w-4"}),e("span",{children:"Update failed"})]}):null;return e(h,{open:y,onOpenChange:D,children:i(x,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[i(S,{children:[e(T,{className:"sr-only",children:t.title}),i("div",{className:"flex items-center justify-between",children:[e("div",{className:"flex-1",children:F()}),!v&&e("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),i("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[i("div",{className:"lg:col-span-2 space-y-4",children:[e(c,{fieldName:"title",value:t.title,label:"",onSave:f,className:"border-b border-border pb-3",disabled:o==="loading"}),e(c,{fieldName:"description",value:t.description,label:"Description",multiline:!0,onSave:f,disabled:o==="loading"}),e(w,{comments:u,onAddComment:I})]}),e(C,{task:t,epics:U,sprints:b,lastUpdated:k,onUpdateTask:P,onClose:D,onDelete:E,isUpdating:o==="loading",isDeleting:l==="loading",deleteState:l})]})]})})};export{J as a};
1
+ import{a as C}from"./chunk-4RQ27GTD.mjs";import{a as w}from"./chunk-TUTSJOO4.mjs";import{a as c}from"./chunk-N5GHL7UZ.mjs";import{a as h,f as x,g as S,i as T}from"./chunk-AG6IN5S7.mjs";import{useState as r}from"react";import{Loader2 as H,Check as L,X as O}from"lucide-react";import{jsx as e,jsxs as i}from"react/jsx-runtime";var J=({isOpen:y,onClose:m,task:t,epics:U,sprints:b,onUpdateTask:p,onDeleteTask:N})=>{let[k,g]=r(new Date),[o,a]=r("idle"),[l,d]=r("idle"),[u,A]=r([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:t.createdAt},{id:"2",text:"Started working on the implementation.",author:t.assignee,createdAt:new Date(t.createdAt.getTime()+864e5)}]),f=async(s,n)=>{if(n!==t[s]){a("loading");try{await p(t.id,{[s]:n}),g(new Date),a("success"),setTimeout(()=>a("idle"),1500)}catch{a("error"),setTimeout(()=>a("idle"),3e3)}}},P=async(s,n)=>{if(n!==t[s]){a("loading");try{await p(t.id,{[s]:n}),g(new Date),a("success"),setTimeout(()=>a("idle"),1500)}catch{a("error"),setTimeout(()=>a("idle"),3e3)}}},I=s=>{let n={id:Date.now().toString(),text:s,author:"Current User",createdAt:new Date};A([...u,n])},E=async()=>{d("loading");try{await N(t.id),d("success"),setTimeout(()=>{m(),d("idle")},1e3)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}},v=o!=="loading"&&l!=="loading",D=()=>{v&&m()},F=()=>o==="loading"?i("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e(H,{className:"h-4 w-4 animate-spin"}),e("span",{children:"Updating..."})]}):o==="success"?i("div",{className:"flex items-center gap-2 text-sm text-success",children:[e(L,{className:"h-4 w-4"}),e("span",{children:"Updated successfully"})]}):o==="error"?i("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[e(O,{className:"h-4 w-4"}),e("span",{children:"Update failed"})]}):null;return e(h,{open:y,onOpenChange:D,children:i(x,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[i(S,{children:[e(T,{className:"sr-only",children:t.title}),i("div",{className:"flex items-center justify-between",children:[e("div",{className:"flex-1",children:F()}),!v&&e("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),i("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[i("div",{className:"lg:col-span-2 space-y-4",children:[e(c,{fieldName:"title",value:t.title,label:"",onSave:f,className:"border-b border-border pb-3",disabled:o==="loading"}),e(c,{fieldName:"description",value:t.description,label:"Description",multiline:!0,onSave:f,disabled:o==="loading"}),e(w,{comments:u,onAddComment:I})]}),e(C,{task:t,epics:U,sprints:b,lastUpdated:k,onUpdateTask:P,onClose:D,onDelete:E,isUpdating:o==="loading",isDeleting:l==="loading",deleteState:l})]})]})})};export{J as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as l}from"./chunk-ZSIYEVUV.mjs";import{a as r}from"./chunk-FT3AE7L2.mjs";import{a as i,b as n,c as o}from"./chunk-SOLZ4VQH.mjs";import{useEffect as p,useRef as u}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function N({messages:t,isLoading:c}){let s=u(null);return p(()=>{s.current?.scrollIntoView({behavior:"smooth"})},[t]),e("div",{className:"flex flex-col h-full overflow-hidden",children:a(r,{className:"container flex-1 p-4",children:[a("div",{className:"space-y-6",children:[t.length===0&&e("div",{className:"flex items-center justify-center h-full pt-60",children:a("div",{className:"text-center max-w-md",children:[e("h2",{className:"text-2xl font-bold mb-2",children:"Welcome to Dexter"}),e("p",{className:"text-zinc-400",children:"Ask me anything or direct your question to a business function directly using the toolbar below."})]})}),c&&a("div",{className:"flex items-start gap-3",children:[a(i,{className:"ai-border",children:[e(n,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),e(o,{children:"AI"})]}),a("div",{className:"grid gap-1.5",children:[e("div",{className:"flex items-center gap-2",children:e("span",{className:"font-medium",children:"AI Assistant"})}),e("div",{className:"rounded-lg p-3 text-sm bg-muted",children:a("div",{className:"flex space-x-2",children:[e("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),e("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),e("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),t.map((m,d)=>e(l,{...m},d))]}),e("div",{ref:s})]})})}export{N as a};
4
+ import{a as l}from"./chunk-A7S4L4P2.mjs";import{a as r}from"./chunk-JVJG2LOA.mjs";import{a as i,b as n,c as o}from"./chunk-RFNYVF6F.mjs";import{useEffect as p,useRef as u}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function N({messages:t,isLoading:c}){let s=u(null);return p(()=>{s.current?.scrollIntoView({behavior:"smooth"})},[t]),e("div",{className:"flex flex-col h-full overflow-hidden",children:a(r,{className:"container flex-1 p-4",children:[a("div",{className:"space-y-6",children:[t.length===0&&e("div",{className:"flex items-center justify-center h-full pt-60",children:a("div",{className:"text-center max-w-md",children:[e("h2",{className:"text-2xl font-bold mb-2",children:"Welcome to Dexter"}),e("p",{className:"text-zinc-400",children:"Ask me anything or direct your question to a business function directly using the toolbar below."})]})}),c&&a("div",{className:"flex items-start gap-3",children:[a(i,{className:"ai-border",children:[e(n,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),e(o,{children:"AI"})]}),a("div",{className:"grid gap-1.5",children:[e("div",{className:"flex items-center gap-2",children:e("span",{className:"font-medium",children:"AI Assistant"})}),e("div",{className:"rounded-lg p-3 text-sm bg-muted",children:a("div",{className:"flex space-x-2",children:[e("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),e("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),e("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),t.map((m,d)=>e(l,{...m},d))]}),e("div",{ref:s})]})})}export{N as a};
@@ -1 +1 @@
1
- import{a as q}from"./chunk-Z22NSJMF.mjs";import{a as S,c as w,d as R,g as I,i as o}from"./chunk-YFAZQYK4.mjs";import{a as M}from"./chunk-B4H6T2GP.mjs";import{a as c}from"./chunk-TVZOULLL.mjs";import{a as f}from"./chunk-L5JPAKPM.mjs";import{a as F,f as L,g as P,i as A}from"./chunk-3UMMMQEH.mjs";import{b as N}from"./chunk-ZUA4KNIR.mjs";import{b as U}from"./chunk-CSBGSBEU.mjs";import{a as T,e as H}from"./chunk-YO3GQYRJ.mjs";import{useEffect as W,useState as D}from"react";import{Plus as Y,Clock as K,Calendar as G,User as J,Repeat as Q,Edit2 as X,Trash2 as Z,CheckCircle as _,Circle as ee,Bell as te}from"lucide-react";import{Fragment as ce,jsx as e,jsxs as t}from"react/jsx-runtime";var ae=i=>{switch(i){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},ie=i=>i.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),re=i=>{let[u,v]=i.split(":"),g=new Date;return g.setHours(parseInt(u),parseInt(v)),g.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},B=(i,u)=>{let v=new Date,g=new Date(i);if(u){let[l,a]=u.split(":");g.setHours(parseInt(l),parseInt(a))}return g<v},O=i=>{let u=new Date;return i.toDateString()===u.toDateString()},le=i=>{let u=new Date;return u.setDate(u.getDate()+1),i.toDateString()===u.toDateString()},ne=({colleagues:i,onAddReminder:u,open:v,setOpen:g})=>{let[l,a]=D({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),[s,p]=D(!1),h=d=>{d.preventDefault();let y=i.find(k=>k?.id.toString()===l.colleagueId.toString());if(!y){console.error("No valid colleague selected"),p(!0);return}p(!1);let E={title:l.title,description:l.description,dueDate:new Date(l.dueDate),dueTime:l.dueTime||void 0,colleague:y,isCompleted:!1,isRecurring:l.isRecurring,recurrencePattern:l.isRecurring?l.recurrencePattern:void 0,recurrenceInterval:l.isRecurring?l.recurrenceInterval:void 0,priority:l.priority,reminderEnabled:l.reminderEnabled,reminderMinutes:l.reminderEnabled?l.reminderMinutes:void 0,tags:l.tags?l.tags.split(",").map(k=>k.trim()):void 0};u(E),g(!1),a({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})};W(()=>{l.colleagueId&&p(!1)},[l.colleagueId]);let n=i.filter(Boolean);return e(F,{open:v,onOpenChange:g,children:t(L,{className:"max-w-2xl",children:[e(P,{children:e(A,{children:"Add New Reminder"})}),t("form",{onSubmit:h,className:"space-y-4",children:[e("div",{className:"grid grid-cols-2 gap-4",children:t("div",{children:[e(c,{htmlFor:"title",children:"Title"}),e(f,{id:"title",value:l.title,onChange:d=>a({...l,title:d.target.value}),placeholder:"Enter reminder title",required:!0})]})}),t("div",{children:[e(c,{htmlFor:"description",children:"Description"}),e(M,{id:"description",value:l.description,onChange:d=>a({...l,description:d.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(c,{htmlFor:"dueDate",children:"Due Date"}),e(f,{id:"dueDate",type:"date",value:l.dueDate,onChange:d=>a({...l,dueDate:d.target.value}),required:!0})]}),t("div",{children:[e(c,{htmlFor:"dueTime",children:"Due Time (optional)"}),e(f,{id:"dueTime",type:"time",value:l.dueTime,onChange:d=>a({...l,dueTime:d.target.value})})]})]}),t("div",{children:[e(c,{className:`${s?"text-destructive":""}`,htmlFor:"colleague",children:"Assigned Colleague"}),t(S,{value:l.colleagueId,onValueChange:d=>{a({...l,colleagueId:d})},required:!0,children:[e(R,{className:`${s?"text-destructive border-red-500":""}`,children:e(w,{className:`${s?"text-destructive border-red-500":""}`,placeholder:"Select a digital colleague",children:i.find(d=>d?.id.toString()===l.colleagueId.toString())?.name||"Select a digital colleague"})}),e(I,{children:n.map(d=>e(o,{value:d.id,children:d.name},d.id))})]}),s&&e("p",{className:"text-destructive text-sm",children:"Please select a digital colleague"})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"isRecurring",checked:l.isRecurring,onChange:d=>a({...l,isRecurring:d.target.checked}),className:"rounded border-border"}),e(c,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),l.isRecurring&&t("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[t("div",{children:[e(c,{htmlFor:"recurrencePattern",children:"Frequency"}),t(S,{value:l.recurrencePattern,onValueChange:d=>a({...l,recurrencePattern:d}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"daily",children:"Daily"}),e(o,{value:"weekly",children:"Weekly"}),e(o,{value:"monthly",children:"Monthly"}),e(o,{value:"yearly",children:"Yearly"})]})]})]}),t("div",{children:[e(c,{htmlFor:"recurrenceInterval",children:"Every"}),e(f,{id:"recurrenceInterval",type:"number",min:"1",value:l.recurrenceInterval,onChange:d=>a({...l,recurrenceInterval:parseInt(d.target.value)})})]})]})]}),t("div",{className:"flex justify-end space-x-2",children:[e(N,{type:"button",variant:"outline",onClick:()=>g(!1),children:"Cancel"}),e(N,{type:"submit",children:"Add Reminder"})]})]})]})})},de=({reminder:i,colleagues:u,onUpdateReminder:v,open:g,onClose:l})=>{let[a,s]=D({title:i.title,description:i.description,dueDate:i.dueDate.toISOString().split("T")[0],dueTime:i.dueTime||"",colleagueId:i.colleague?.id||"",priority:i.priority,isRecurring:i.isRecurring,recurrencePattern:i.recurrencePattern||"weekly",recurrenceInterval:i.recurrenceInterval||1,reminderEnabled:i.reminderEnabled,reminderMinutes:i.reminderMinutes||15,tags:i.tags?.join(", ")||""}),p=n=>{n.preventDefault();let d=u.find(y=>y?.id===a.colleagueId);if(!d){console.error("No valid colleague selected");return}v(i.id,{title:a.title,description:a.description,dueDate:new Date(a.dueDate),dueTime:a.dueTime||void 0,colleague:d,priority:a.priority,isRecurring:a.isRecurring,recurrencePattern:a.isRecurring?a.recurrencePattern:void 0,recurrenceInterval:a.isRecurring?a.recurrenceInterval:void 0,reminderEnabled:a.reminderEnabled,reminderMinutes:a.reminderEnabled?a.reminderMinutes:void 0,tags:a.tags?a.tags.split(",").map(y=>y.trim()):void 0}),l()},h=u.filter(Boolean);return e(F,{open:g,onOpenChange:l,children:t(L,{className:"max-w-2xl",children:[e(P,{children:e(A,{children:"Edit Reminder"})}),t("form",{onSubmit:p,className:"space-y-4",children:[t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(c,{htmlFor:"edit-title",children:"Title"}),e(f,{id:"edit-title",value:a.title,onChange:n=>s({...a,title:n.target.value}),placeholder:"Enter reminder title",required:!0})]}),t("div",{children:[e(c,{htmlFor:"edit-priority",children:"Priority"}),t(S,{value:a.priority,onValueChange:n=>s({...a,priority:n}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"low",children:"\u{1F7E2} Low"}),e(o,{value:"medium",children:"\u{1F7E1} Medium"}),e(o,{value:"high",children:"\u{1F534} High"})]})]})]})]}),t("div",{children:[e(c,{htmlFor:"edit-description",children:"Description"}),e(M,{id:"edit-description",value:a.description,onChange:n=>s({...a,description:n.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(c,{htmlFor:"edit-dueDate",children:"Due Date"}),e(f,{id:"edit-dueDate",type:"date",value:a.dueDate,onChange:n=>s({...a,dueDate:n.target.value}),required:!0})]}),t("div",{children:[e(c,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),e(f,{id:"edit-dueTime",type:"time",value:a.dueTime,onChange:n=>s({...a,dueTime:n.target.value})})]})]}),t("div",{children:[e(c,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),t(S,{value:a.colleagueId,onValueChange:n=>s({...a,colleagueId:n}),required:!0,children:[e(R,{children:e(w,{placeholder:"Select a digital colleague"})}),e(I,{children:h.map(n=>e(o,{value:n.id,children:n.name},n.id))})]})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-isRecurring",checked:a.isRecurring,onChange:n=>s({...a,isRecurring:n.target.checked}),className:"rounded border-border"}),e(c,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),a.isRecurring&&t("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[t("div",{children:[e(c,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),t(S,{value:a.recurrencePattern,onValueChange:n=>s({...a,recurrencePattern:n}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"daily",children:"Daily"}),e(o,{value:"weekly",children:"Weekly"}),e(o,{value:"monthly",children:"Monthly"}),e(o,{value:"yearly",children:"Yearly"})]})]})]}),t("div",{children:[e(c,{htmlFor:"edit-recurrenceInterval",children:"Every"}),e(f,{id:"edit-recurrenceInterval",type:"number",min:"1",value:a.recurrenceInterval,onChange:n=>s({...a,recurrenceInterval:parseInt(n.target.value)})})]})]})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-reminderEnabled",checked:a.reminderEnabled,onChange:n=>s({...a,reminderEnabled:n.target.checked}),className:"rounded border-border"}),e(c,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),a.reminderEnabled&&t("div",{className:"pl-6",children:[e(c,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),t(S,{value:a.reminderMinutes.toString(),onValueChange:n=>s({...a,reminderMinutes:parseInt(n)}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"5",children:"5 minutes before"}),e(o,{value:"15",children:"15 minutes before"}),e(o,{value:"30",children:"30 minutes before"}),e(o,{value:"60",children:"1 hour before"}),e(o,{value:"1440",children:"1 day before"})]})]})]})]}),t("div",{children:[e(c,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),e(f,{id:"edit-tags",value:a.tags,onChange:n=>s({...a,tags:n.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),t("div",{className:"flex justify-end space-x-2",children:[e(N,{type:"button",variant:"outline",onClick:l,children:"Cancel"}),e(N,{type:"submit",children:"Save Changes"})]})]})]})})},se=({reminder:i,colleagues:u,onUpdateReminder:v,onDeleteReminder:g})=>{let[l,a]=D(!1);if(!i||!i.id)return null;let s=B(i.dueDate,i.dueTime),p=O(i.dueDate),h=le(i.dueDate),n=()=>{v(i.id,{isCompleted:!i.isCompleted,completedAt:i.isCompleted?void 0:new Date})},d=()=>p?"Today":h?"Tomorrow":s&&!i.isCompleted?"Overdue":ie(i.dueDate);return t(ce,{children:[e(de,{reminder:i,colleagues:u,onUpdateReminder:v,open:l,onClose:()=>a(!1)}),e(T,{className:`transition-all duration-200 ${i.isCompleted?"opacity-60":""} ${s&&!i.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:e(H,{className:"p-4",children:t("div",{className:"flex items-start justify-between",children:[t("div",{className:"flex items-start space-x-3 flex-1",children:[e("button",{onClick:n,className:"mt-1 text-primary hover:text-primary/80",children:i.isCompleted?e(_,{className:"h-5 w-5"}):e(ee,{className:"h-5 w-5"})}),t("div",{className:"flex-1",children:[t("div",{className:"flex items-center space-x-2 mb-1",children:[e("h3",{className:`font-semibold ${i.isCompleted?"line-through text-muted-foreground":""}`,children:i.title}),e("span",{className:"text-sm",children:ae(i.priority)}),i.isRecurring&&e(Q,{className:"h-4 w-4 text-primary"}),i.reminderEnabled&&e(te,{className:"h-4 w-4 text-success"})]}),e("p",{className:"text-sm text-muted-foreground mb-2",children:i.description}),t("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[t("div",{className:"flex items-center space-x-1",children:[e(G,{className:"h-4 w-4"}),e("span",{className:s&&!i.isCompleted?"text-destructive font-medium":"",children:d()})]}),i.dueTime&&t("div",{className:"flex items-center space-x-1",children:[e(K,{className:"h-4 w-4"}),e("span",{children:re(i.dueTime)})]}),t("div",{className:"flex items-center space-x-1",children:[e(J,{className:"h-4 w-4"}),e("span",{children:i.colleague?.name||"Unknown Colleague"})]})]}),i.tags&&i.tags.length>0&&e("div",{className:"flex flex-wrap gap-1 mt-2",children:i.tags.map((y,E)=>e(U,{variant:"secondary",className:"text-xs",children:y},E))})]})]}),t("div",{className:"flex items-center space-x-1",children:[e(N,{variant:"ghost",size:"sm",onClick:()=>a(!0),className:"h-8 w-8 p-0",children:e(X,{className:"h-4 w-4"})}),e(N,{variant:"ghost",size:"sm",onClick:()=>g(i.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:e(Z,{className:"h-4 w-4"})})]})]})})})]})},oe=({initialReminders:i=[],initialColleagues:u=[],onAddReminder:v,onUpdateReminder:g,onDeleteReminder:l})=>{let[a,s]=D(i.filter(Boolean)),[p]=D(u.filter(Boolean)),[h,n]=D("all"),[d,y]=D(""),[E,k]=D(!1),j=r=>{if(!r.title||!r.colleague?.id){console.error("Invalid reminder data:",r);return}let m={...r,id:Date.now().toString(),createdAt:new Date};s(x=>[...x,m]),v?.(r)},$=(r,m)=>{if(!r){console.error("No reminder ID provided for update");return}s(x=>x.map(b=>b?.id===r?{...b,...m}:b)),g?.(r,m)},z=r=>{if(!r){console.error("No reminder ID provided for deletion");return}s(m=>m.filter(x=>x?.id!==r)),l?.(r)},V=a.filter(r=>{if(!r)return!1;if(d){let m=d.toLowerCase();if(!(r.title.toLowerCase().includes(m)||r.description.toLowerCase().includes(m)||r.colleague?.name?.toLowerCase().includes(m)||r.tags?.some(b=>b.toLowerCase().includes(m))))return!1}switch(h){case"pending":return!r.isCompleted;case"completed":return r.isCompleted;case"overdue":return!r.isCompleted&&B(r.dueDate,r.dueTime);case"today":return O(new Date(r.dueDate));default:return!0}}).sort((r,m)=>{if(!r||!m)return 0;if(r.isCompleted&&!m.isCompleted)return 1;if(!r.isCompleted&&m.isCompleted)return-1;let x={high:3,medium:2,low:1},b=x[m.priority]-x[r.priority];return b!==0?b:r.dueDate.getTime()-m.dueDate.getTime()}),C={total:a.filter(Boolean).length,pending:a.filter(r=>r&&!r.isCompleted).length,completed:a.filter(r=>r&&r.isCompleted).length,overdue:a.filter(r=>r&&!r.isCompleted&&B(r.dueDate,r.dueTime)).length,today:a.filter(r=>r&&O(new Date(r.dueDate))).length},me=p.find(Boolean)||{id:"1",name:"Default Colleague",status:"active",joinedDate:new Date,lastActive:new Date,type:"digital",description:"Default digital colleague for task management",jobDescription:"Default team member for task management",workInstructions:"Handle basic task assignments and reminders",capabilities:["task-management","reminder-creation"],knowledge:[],coreKnowledge:[],version:"1.0.0",lastUpdated:new Date,isActive:!0};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(q,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{k(!0)}}}),t("div",{className:"h-full bg-background",children:[e(ne,{colleagues:p,onAddReminder:j,open:E,setOpen:k}),t("div",{className:"p-6",children:[t("div",{className:"flex items-center justify-between mb-6",children:[t("div",{children:[e("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),e("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),t(N,{className:"flex items-center space-x-2",onClick:()=>k(!0),children:[e(Y,{className:"h-4 w-4"}),e("span",{children:"Add Reminder"})]})]}),t("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-foreground",children:C.total}),e("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-primary",children:C.pending}),e("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-success",children:C.completed}),e("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-destructive",children:C.overdue}),e("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-warning",children:C.today}),e("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),t("div",{className:"flex items-center space-x-4 mb-6",children:[e("div",{className:"flex-1",children:e(f,{placeholder:"Search reminders...",value:d,onChange:r=>y(r.target.value),className:"max-w-md"})}),t(S,{value:h,onValueChange:r=>n(r),children:[e(R,{className:"w-40",children:e(w,{})}),t(I,{children:[t(o,{value:"all",children:["All (",C.total,")"]}),t(o,{value:"pending",children:["Pending (",C.pending,")"]}),t(o,{value:"completed",children:["Completed (",C.completed,")"]}),t(o,{value:"overdue",children:["Overdue (",C.overdue,")"]}),t(o,{value:"today",children:["Today (",C.today,")"]})]})]})]}),e("div",{className:"space-y-4",children:V.length===0?t(T,{className:"p-8 text-center",children:[e("div",{className:"text-muted-foreground",children:d||h!=="all"?"No reminders match your filters":"No reminders yet"}),!d&&h==="all"&&e("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):V.map(r=>r&&e(se,{reminder:r,colleagues:p,onUpdateReminder:$,onDeleteReminder:z},r.id))})]})]})]})},ke=oe;export{oe as a,ke as b};
1
+ import{a as q}from"./chunk-BM2ZNFM6.mjs";import{a as S,c as w,d as R,g as I,i as o}from"./chunk-WLM2ZFHF.mjs";import{a as M}from"./chunk-VXZPPTQQ.mjs";import{a as c}from"./chunk-RAAY7PEH.mjs";import{a as F,f as L,g as P,i as A}from"./chunk-AG6IN5S7.mjs";import{a as f}from"./chunk-GJUA2KUH.mjs";import{b as N}from"./chunk-7Z3TOFNL.mjs";import{b as U}from"./chunk-2JKLBLDE.mjs";import{a as T,e as H}from"./chunk-7WKUKFCT.mjs";import{useEffect as W,useState as D}from"react";import{Plus as Y,Clock as K,Calendar as G,User as J,Repeat as Q,Edit2 as X,Trash2 as Z,CheckCircle as _,Circle as ee,Bell as te}from"lucide-react";import{Fragment as ce,jsx as e,jsxs as t}from"react/jsx-runtime";var ae=i=>{switch(i){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},ie=i=>i.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),re=i=>{let[u,v]=i.split(":"),g=new Date;return g.setHours(parseInt(u),parseInt(v)),g.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},B=(i,u)=>{let v=new Date,g=new Date(i);if(u){let[l,a]=u.split(":");g.setHours(parseInt(l),parseInt(a))}return g<v},O=i=>{let u=new Date;return i.toDateString()===u.toDateString()},le=i=>{let u=new Date;return u.setDate(u.getDate()+1),i.toDateString()===u.toDateString()},ne=({colleagues:i,onAddReminder:u,open:v,setOpen:g})=>{let[l,a]=D({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),[s,p]=D(!1),h=d=>{d.preventDefault();let y=i.find(k=>k?.id.toString()===l.colleagueId.toString());if(!y){console.error("No valid colleague selected"),p(!0);return}p(!1);let E={title:l.title,description:l.description,dueDate:new Date(l.dueDate),dueTime:l.dueTime||void 0,colleague:y,isCompleted:!1,isRecurring:l.isRecurring,recurrencePattern:l.isRecurring?l.recurrencePattern:void 0,recurrenceInterval:l.isRecurring?l.recurrenceInterval:void 0,priority:l.priority,reminderEnabled:l.reminderEnabled,reminderMinutes:l.reminderEnabled?l.reminderMinutes:void 0,tags:l.tags?l.tags.split(",").map(k=>k.trim()):void 0};u(E),g(!1),a({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})};W(()=>{l.colleagueId&&p(!1)},[l.colleagueId]);let n=i.filter(Boolean);return e(F,{open:v,onOpenChange:g,children:t(L,{className:"max-w-2xl",children:[e(P,{children:e(A,{children:"Add New Reminder"})}),t("form",{onSubmit:h,className:"space-y-4",children:[e("div",{className:"grid grid-cols-2 gap-4",children:t("div",{children:[e(c,{htmlFor:"title",children:"Title"}),e(f,{id:"title",value:l.title,onChange:d=>a({...l,title:d.target.value}),placeholder:"Enter reminder title",required:!0})]})}),t("div",{children:[e(c,{htmlFor:"description",children:"Description"}),e(M,{id:"description",value:l.description,onChange:d=>a({...l,description:d.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(c,{htmlFor:"dueDate",children:"Due Date"}),e(f,{id:"dueDate",type:"date",value:l.dueDate,onChange:d=>a({...l,dueDate:d.target.value}),required:!0})]}),t("div",{children:[e(c,{htmlFor:"dueTime",children:"Due Time (optional)"}),e(f,{id:"dueTime",type:"time",value:l.dueTime,onChange:d=>a({...l,dueTime:d.target.value})})]})]}),t("div",{children:[e(c,{className:`${s?"text-destructive":""}`,htmlFor:"colleague",children:"Assigned Colleague"}),t(S,{value:l.colleagueId,onValueChange:d=>{a({...l,colleagueId:d})},required:!0,children:[e(R,{className:`${s?"text-destructive border-red-500":""}`,children:e(w,{className:`${s?"text-destructive border-red-500":""}`,placeholder:"Select a digital colleague",children:i.find(d=>d?.id.toString()===l.colleagueId.toString())?.name||"Select a digital colleague"})}),e(I,{children:n.map(d=>e(o,{value:d.id,children:d.name},d.id))})]}),s&&e("p",{className:"text-destructive text-sm",children:"Please select a digital colleague"})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"isRecurring",checked:l.isRecurring,onChange:d=>a({...l,isRecurring:d.target.checked}),className:"rounded border-border"}),e(c,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),l.isRecurring&&t("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[t("div",{children:[e(c,{htmlFor:"recurrencePattern",children:"Frequency"}),t(S,{value:l.recurrencePattern,onValueChange:d=>a({...l,recurrencePattern:d}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"daily",children:"Daily"}),e(o,{value:"weekly",children:"Weekly"}),e(o,{value:"monthly",children:"Monthly"}),e(o,{value:"yearly",children:"Yearly"})]})]})]}),t("div",{children:[e(c,{htmlFor:"recurrenceInterval",children:"Every"}),e(f,{id:"recurrenceInterval",type:"number",min:"1",value:l.recurrenceInterval,onChange:d=>a({...l,recurrenceInterval:parseInt(d.target.value)})})]})]})]}),t("div",{className:"flex justify-end space-x-2",children:[e(N,{type:"button",variant:"outline",onClick:()=>g(!1),children:"Cancel"}),e(N,{type:"submit",children:"Add Reminder"})]})]})]})})},de=({reminder:i,colleagues:u,onUpdateReminder:v,open:g,onClose:l})=>{let[a,s]=D({title:i.title,description:i.description,dueDate:i.dueDate.toISOString().split("T")[0],dueTime:i.dueTime||"",colleagueId:i.colleague?.id||"",priority:i.priority,isRecurring:i.isRecurring,recurrencePattern:i.recurrencePattern||"weekly",recurrenceInterval:i.recurrenceInterval||1,reminderEnabled:i.reminderEnabled,reminderMinutes:i.reminderMinutes||15,tags:i.tags?.join(", ")||""}),p=n=>{n.preventDefault();let d=u.find(y=>y?.id===a.colleagueId);if(!d){console.error("No valid colleague selected");return}v(i.id,{title:a.title,description:a.description,dueDate:new Date(a.dueDate),dueTime:a.dueTime||void 0,colleague:d,priority:a.priority,isRecurring:a.isRecurring,recurrencePattern:a.isRecurring?a.recurrencePattern:void 0,recurrenceInterval:a.isRecurring?a.recurrenceInterval:void 0,reminderEnabled:a.reminderEnabled,reminderMinutes:a.reminderEnabled?a.reminderMinutes:void 0,tags:a.tags?a.tags.split(",").map(y=>y.trim()):void 0}),l()},h=u.filter(Boolean);return e(F,{open:g,onOpenChange:l,children:t(L,{className:"max-w-2xl",children:[e(P,{children:e(A,{children:"Edit Reminder"})}),t("form",{onSubmit:p,className:"space-y-4",children:[t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(c,{htmlFor:"edit-title",children:"Title"}),e(f,{id:"edit-title",value:a.title,onChange:n=>s({...a,title:n.target.value}),placeholder:"Enter reminder title",required:!0})]}),t("div",{children:[e(c,{htmlFor:"edit-priority",children:"Priority"}),t(S,{value:a.priority,onValueChange:n=>s({...a,priority:n}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"low",children:"\u{1F7E2} Low"}),e(o,{value:"medium",children:"\u{1F7E1} Medium"}),e(o,{value:"high",children:"\u{1F534} High"})]})]})]})]}),t("div",{children:[e(c,{htmlFor:"edit-description",children:"Description"}),e(M,{id:"edit-description",value:a.description,onChange:n=>s({...a,description:n.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(c,{htmlFor:"edit-dueDate",children:"Due Date"}),e(f,{id:"edit-dueDate",type:"date",value:a.dueDate,onChange:n=>s({...a,dueDate:n.target.value}),required:!0})]}),t("div",{children:[e(c,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),e(f,{id:"edit-dueTime",type:"time",value:a.dueTime,onChange:n=>s({...a,dueTime:n.target.value})})]})]}),t("div",{children:[e(c,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),t(S,{value:a.colleagueId,onValueChange:n=>s({...a,colleagueId:n}),required:!0,children:[e(R,{children:e(w,{placeholder:"Select a digital colleague"})}),e(I,{children:h.map(n=>e(o,{value:n.id,children:n.name},n.id))})]})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-isRecurring",checked:a.isRecurring,onChange:n=>s({...a,isRecurring:n.target.checked}),className:"rounded border-border"}),e(c,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),a.isRecurring&&t("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[t("div",{children:[e(c,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),t(S,{value:a.recurrencePattern,onValueChange:n=>s({...a,recurrencePattern:n}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"daily",children:"Daily"}),e(o,{value:"weekly",children:"Weekly"}),e(o,{value:"monthly",children:"Monthly"}),e(o,{value:"yearly",children:"Yearly"})]})]})]}),t("div",{children:[e(c,{htmlFor:"edit-recurrenceInterval",children:"Every"}),e(f,{id:"edit-recurrenceInterval",type:"number",min:"1",value:a.recurrenceInterval,onChange:n=>s({...a,recurrenceInterval:parseInt(n.target.value)})})]})]})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-reminderEnabled",checked:a.reminderEnabled,onChange:n=>s({...a,reminderEnabled:n.target.checked}),className:"rounded border-border"}),e(c,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),a.reminderEnabled&&t("div",{className:"pl-6",children:[e(c,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),t(S,{value:a.reminderMinutes.toString(),onValueChange:n=>s({...a,reminderMinutes:parseInt(n)}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"5",children:"5 minutes before"}),e(o,{value:"15",children:"15 minutes before"}),e(o,{value:"30",children:"30 minutes before"}),e(o,{value:"60",children:"1 hour before"}),e(o,{value:"1440",children:"1 day before"})]})]})]})]}),t("div",{children:[e(c,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),e(f,{id:"edit-tags",value:a.tags,onChange:n=>s({...a,tags:n.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),t("div",{className:"flex justify-end space-x-2",children:[e(N,{type:"button",variant:"outline",onClick:l,children:"Cancel"}),e(N,{type:"submit",children:"Save Changes"})]})]})]})})},se=({reminder:i,colleagues:u,onUpdateReminder:v,onDeleteReminder:g})=>{let[l,a]=D(!1);if(!i||!i.id)return null;let s=B(i.dueDate,i.dueTime),p=O(i.dueDate),h=le(i.dueDate),n=()=>{v(i.id,{isCompleted:!i.isCompleted,completedAt:i.isCompleted?void 0:new Date})},d=()=>p?"Today":h?"Tomorrow":s&&!i.isCompleted?"Overdue":ie(i.dueDate);return t(ce,{children:[e(de,{reminder:i,colleagues:u,onUpdateReminder:v,open:l,onClose:()=>a(!1)}),e(T,{className:`transition-all duration-200 ${i.isCompleted?"opacity-60":""} ${s&&!i.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:e(H,{className:"p-4",children:t("div",{className:"flex items-start justify-between",children:[t("div",{className:"flex items-start space-x-3 flex-1",children:[e("button",{onClick:n,className:"mt-1 text-primary hover:text-primary/80",children:i.isCompleted?e(_,{className:"h-5 w-5"}):e(ee,{className:"h-5 w-5"})}),t("div",{className:"flex-1",children:[t("div",{className:"flex items-center space-x-2 mb-1",children:[e("h3",{className:`font-semibold ${i.isCompleted?"line-through text-muted-foreground":""}`,children:i.title}),e("span",{className:"text-sm",children:ae(i.priority)}),i.isRecurring&&e(Q,{className:"h-4 w-4 text-primary"}),i.reminderEnabled&&e(te,{className:"h-4 w-4 text-success"})]}),e("p",{className:"text-sm text-muted-foreground mb-2",children:i.description}),t("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[t("div",{className:"flex items-center space-x-1",children:[e(G,{className:"h-4 w-4"}),e("span",{className:s&&!i.isCompleted?"text-destructive font-medium":"",children:d()})]}),i.dueTime&&t("div",{className:"flex items-center space-x-1",children:[e(K,{className:"h-4 w-4"}),e("span",{children:re(i.dueTime)})]}),t("div",{className:"flex items-center space-x-1",children:[e(J,{className:"h-4 w-4"}),e("span",{children:i.colleague?.name||"Unknown Colleague"})]})]}),i.tags&&i.tags.length>0&&e("div",{className:"flex flex-wrap gap-1 mt-2",children:i.tags.map((y,E)=>e(U,{variant:"secondary",className:"text-xs",children:y},E))})]})]}),t("div",{className:"flex items-center space-x-1",children:[e(N,{variant:"ghost",size:"sm",onClick:()=>a(!0),className:"h-8 w-8 p-0",children:e(X,{className:"h-4 w-4"})}),e(N,{variant:"ghost",size:"sm",onClick:()=>g(i.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:e(Z,{className:"h-4 w-4"})})]})]})})})]})},oe=({initialReminders:i=[],initialColleagues:u=[],onAddReminder:v,onUpdateReminder:g,onDeleteReminder:l})=>{let[a,s]=D(i.filter(Boolean)),[p]=D(u.filter(Boolean)),[h,n]=D("all"),[d,y]=D(""),[E,k]=D(!1),j=r=>{if(!r.title||!r.colleague?.id){console.error("Invalid reminder data:",r);return}let m={...r,id:Date.now().toString(),createdAt:new Date};s(x=>[...x,m]),v?.(r)},$=(r,m)=>{if(!r){console.error("No reminder ID provided for update");return}s(x=>x.map(b=>b?.id===r?{...b,...m}:b)),g?.(r,m)},z=r=>{if(!r){console.error("No reminder ID provided for deletion");return}s(m=>m.filter(x=>x?.id!==r)),l?.(r)},V=a.filter(r=>{if(!r)return!1;if(d){let m=d.toLowerCase();if(!(r.title.toLowerCase().includes(m)||r.description.toLowerCase().includes(m)||r.colleague?.name?.toLowerCase().includes(m)||r.tags?.some(b=>b.toLowerCase().includes(m))))return!1}switch(h){case"pending":return!r.isCompleted;case"completed":return r.isCompleted;case"overdue":return!r.isCompleted&&B(r.dueDate,r.dueTime);case"today":return O(new Date(r.dueDate));default:return!0}}).sort((r,m)=>{if(!r||!m)return 0;if(r.isCompleted&&!m.isCompleted)return 1;if(!r.isCompleted&&m.isCompleted)return-1;let x={high:3,medium:2,low:1},b=x[m.priority]-x[r.priority];return b!==0?b:r.dueDate.getTime()-m.dueDate.getTime()}),C={total:a.filter(Boolean).length,pending:a.filter(r=>r&&!r.isCompleted).length,completed:a.filter(r=>r&&r.isCompleted).length,overdue:a.filter(r=>r&&!r.isCompleted&&B(r.dueDate,r.dueTime)).length,today:a.filter(r=>r&&O(new Date(r.dueDate))).length},me=p.find(Boolean)||{id:"1",name:"Default Colleague",status:"active",joinedDate:new Date,lastActive:new Date,type:"digital",description:"Default digital colleague for task management",jobDescription:"Default team member for task management",workInstructions:"Handle basic task assignments and reminders",capabilities:["task-management","reminder-creation"],knowledge:[],coreKnowledge:[],version:"1.0.0",lastUpdated:new Date,isActive:!0};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(q,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{k(!0)}}}),t("div",{className:"h-full bg-background",children:[e(ne,{colleagues:p,onAddReminder:j,open:E,setOpen:k}),t("div",{className:"p-6",children:[t("div",{className:"flex items-center justify-between mb-6",children:[t("div",{children:[e("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),e("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),t(N,{className:"flex items-center space-x-2",onClick:()=>k(!0),children:[e(Y,{className:"h-4 w-4"}),e("span",{children:"Add Reminder"})]})]}),t("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-foreground",children:C.total}),e("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-primary",children:C.pending}),e("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-success",children:C.completed}),e("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-destructive",children:C.overdue}),e("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-warning",children:C.today}),e("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),t("div",{className:"flex items-center space-x-4 mb-6",children:[e("div",{className:"flex-1",children:e(f,{placeholder:"Search reminders...",value:d,onChange:r=>y(r.target.value),className:"max-w-md"})}),t(S,{value:h,onValueChange:r=>n(r),children:[e(R,{className:"w-40",children:e(w,{})}),t(I,{children:[t(o,{value:"all",children:["All (",C.total,")"]}),t(o,{value:"pending",children:["Pending (",C.pending,")"]}),t(o,{value:"completed",children:["Completed (",C.completed,")"]}),t(o,{value:"overdue",children:["Overdue (",C.overdue,")"]}),t(o,{value:"today",children:["Today (",C.today,")"]})]})]})]}),e("div",{className:"space-y-4",children:V.length===0?t(T,{className:"p-8 text-center",children:[e("div",{className:"text-muted-foreground",children:d||h!=="all"?"No reminders match your filters":"No reminders yet"}),!d&&h==="all"&&e("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):V.map(r=>r&&e(se,{reminder:r,colleagues:p,onUpdateReminder:$,onDeleteReminder:z},r.id))})]})]})]})},ke=oe;export{oe as a,ke as b};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-MDJREBVI.mjs";import*as s from"react";import{ChevronRightIcon as m,DotsHorizontalIcon as c}from"@radix-ui/react-icons";import{Slot as i}from"@radix-ui/react-slot";import{jsx as t,jsxs as N}from"react/jsx-runtime";var l=s.forwardRef(({...e},a)=>t("nav",{ref:a,"aria-label":"breadcrumb",...e}));l.displayName="Breadcrumb";var p=s.forwardRef(({className:e,...a},r)=>t("ol",{ref:r,className:o("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...a}));p.displayName="BreadcrumbList";var d=s.forwardRef(({className:e,...a},r)=>t("li",{ref:r,className:o("inline-flex items-center gap-1.5",e),...a}));d.displayName="BreadcrumbItem";var f=s.forwardRef(({asChild:e,className:a,...r},n)=>t(e?i:"a",{ref:n,className:o("transition-colors hover:text-foreground",a),...r}));f.displayName="BreadcrumbLink";var u=s.forwardRef(({className:e,...a},r)=>t("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-normal text-foreground",e),...a}));u.displayName="BreadcrumbPage";var R=({children:e,className:a,...r})=>t("li",{role:"presentation","aria-hidden":"true",className:o("[&>svg]:w-3.5 [&>svg]:h-3.5",a),...r,children:e??t(m,{})});R.displayName="BreadcrumbSeparator";var b=({className:e,...a})=>N("span",{role:"presentation","aria-hidden":"true",className:o("flex h-9 w-9 items-center justify-center",e),...a,children:[t(c,{className:"h-4 w-4"}),t("span",{className:"sr-only",children:"More"})]});b.displayName="BreadcrumbElipssis";export{l as a,p as b,d as c,f as d,u as e,R as f,b as g};
1
+ import{a as o}from"./chunk-TSEOL53Y.mjs";import*as s from"react";import{ChevronRightIcon as m,DotsHorizontalIcon as c}from"@radix-ui/react-icons";import{Slot as i}from"@radix-ui/react-slot";import{jsx as t,jsxs as N}from"react/jsx-runtime";var l=s.forwardRef(({...e},a)=>t("nav",{ref:a,"aria-label":"breadcrumb",...e}));l.displayName="Breadcrumb";var p=s.forwardRef(({className:e,...a},r)=>t("ol",{ref:r,className:o("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...a}));p.displayName="BreadcrumbList";var d=s.forwardRef(({className:e,...a},r)=>t("li",{ref:r,className:o("inline-flex items-center gap-1.5",e),...a}));d.displayName="BreadcrumbItem";var f=s.forwardRef(({asChild:e,className:a,...r},n)=>t(e?i:"a",{ref:n,className:o("transition-colors hover:text-foreground",a),...r}));f.displayName="BreadcrumbLink";var u=s.forwardRef(({className:e,...a},r)=>t("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-normal text-foreground",e),...a}));u.displayName="BreadcrumbPage";var R=({children:e,className:a,...r})=>t("li",{role:"presentation","aria-hidden":"true",className:o("[&>svg]:w-3.5 [&>svg]:h-3.5",a),...r,children:e??t(m,{})});R.displayName="BreadcrumbSeparator";var b=({className:e,...a})=>N("span",{role:"presentation","aria-hidden":"true",className:o("flex h-9 w-9 items-center justify-center",e),...a,children:[t(c,{className:"h-4 w-4"}),t("span",{className:"sr-only",children:"More"})]});b.displayName="BreadcrumbElipssis";export{l as a,p as b,d as c,f as d,u as e,R as f,b as g};
@@ -1 +1 @@
1
- import{a as M}from"./chunk-HHYHENVF.mjs";import{a as B}from"./chunk-AM2SRWFU.mjs";import{a as O}from"./chunk-AMV3MECK.mjs";import{a as I}from"./chunk-74JNWOJQ.mjs";import{a as x}from"./chunk-BA3I4XZE.mjs";import{a as N}from"./chunk-Z22NSJMF.mjs";import{b as w}from"./chunk-CSBGSBEU.mjs";import{useEffect as D,useState as o}from"react";import{Fragment as ts,jsx as i,jsxs as r}from"react/jsx-runtime";var fs=({initialTasks:m=[],initialEpics:u=[],initialSprints:k=[],initialUsers:U=[],initialColleagues:j=[],initialProjects:is=[],onAddTask:K,onUpdateTask:g,onDeleteTask:y,onTaskClick:R,onAddEpic:F})=>{let[H,n]=o(m),[d,h]=o(u),[f,V]=o(k),[$,S]=o(!1),[q,b]=o(!1),[c,T]=o(null),[v,P]=o(null),[z,as]=o(U),[G,os]=o(j),C=d.filter(s=>!0).map(s=>s.id),l=f.find(s=>s.isSelected);C.push("no-epic"),D(()=>{n(m)},[m]),D(()=>{h(u)},[u]),D(()=>{V(k)},[k]);let J=H.filter(s=>{let e=C.includes(s.epicId)||!s.epicId;return!l||l.id==="all-tasks"?e:l.id==="backlog"?e&&!s.sprintId:e&&s.sprintId===l.id}),L=s=>J.filter(e=>e.status===s),Q=s=>{let e={};return d.forEach(t=>{e[t.id]=s.filter(a=>a.epicId===t.id)}),e["no-epic"]=s.filter(t=>!t.epicId),e},W=s=>{P(s)},X=s=>{v&&(n(e=>e.map(t=>t.id===v.id?{...t,status:s}:t)),g?.(v.id,{status:s}),P(null))},Y=s=>{let e={...s,id:Date.now().toString(),createdAt:new Date};n(t=>[...t,e]),K?.(s)},Z=async(s,e)=>{n(t=>t.map(a=>a.id===s?{...a,...e}:a)),g&&await g(s,e)},_=async s=>{n(e=>e.filter(t=>t.id!==s)),c?.id===s&&T(null),y&&await y(s)},ss=s=>{let e={...s,id:Date.now().toString(),isSelected:!0};h(t=>[...t,e]),F?.(s)},es=s=>{T(s),R?.(s)};return r("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[i(N,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>S(!0)},secondaryAction:{label:"Add epic",onClick:()=>b(!0)}}),i("div",{className:"flex-1",children:r("div",{className:"w-full",children:[i("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{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"}].map(s=>{let e=L(s.status),t=Q(e);return i(O,{title:s.title,status:s.status,taskCount:e.length,onDrop:X,isCompact:s.status==="done",children:C.map(a=>{let E=d.find(p=>p.id===a),A=t[a]||[];return A.length===0?null:r("div",{className:"mb-6",children:[r("div",{className:"flex items-center gap-2 mb-3",children:[i("div",{className:`w-3 h-3 rounded-full ${E?.color}`}),i("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:E?.name||"No Epic"}),i(w,{variant:"secondary",className:"text-xs",children:A.length})]})," ",i("div",{className:"space-y-3",children:A.map(p=>i(B,{task:p,epic:E,onDragStart:W,onTaskClick:es,isCompact:s.status==="done"},p.id))})]},a)})},s.id)})}),r(ts,{children:[i(x,{isOpen:$,onClose:()=>S(!1),onAddTask:Y,assignees:[...G,...z],epics:d,sprints:f}),i(I,{isOpen:q,onClose:()=>b(!1),onAddEpic:ss}),c&&i(M,{isOpen:!!c,onClose:()=>T(null),task:c,epics:d,sprints:f,onUpdateTask:Z,onDeleteTask:_})]})]})})]})};export{fs as a};
1
+ import{a as M}from"./chunk-KZTONTWM.mjs";import{a as O}from"./chunk-GZQ7JEUL.mjs";import{a as I}from"./chunk-KUVPOOSW.mjs";import{a as x}from"./chunk-ZKLSTUIP.mjs";import{a as B}from"./chunk-RARAKOXE.mjs";import{a as N}from"./chunk-BM2ZNFM6.mjs";import{b as w}from"./chunk-2JKLBLDE.mjs";import{useEffect as D,useState as o}from"react";import{Fragment as ts,jsx as i,jsxs as r}from"react/jsx-runtime";var fs=({initialTasks:m=[],initialEpics:u=[],initialSprints:k=[],initialUsers:U=[],initialColleagues:j=[],initialProjects:is=[],onAddTask:K,onUpdateTask:g,onDeleteTask:y,onTaskClick:R,onAddEpic:F})=>{let[H,n]=o(m),[d,h]=o(u),[f,V]=o(k),[$,S]=o(!1),[q,b]=o(!1),[c,T]=o(null),[v,P]=o(null),[z,as]=o(U),[G,os]=o(j),C=d.filter(s=>!0).map(s=>s.id),l=f.find(s=>s.isSelected);C.push("no-epic"),D(()=>{n(m)},[m]),D(()=>{h(u)},[u]),D(()=>{V(k)},[k]);let J=H.filter(s=>{let e=C.includes(s.epicId)||!s.epicId;return!l||l.id==="all-tasks"?e:l.id==="backlog"?e&&!s.sprintId:e&&s.sprintId===l.id}),L=s=>J.filter(e=>e.status===s),Q=s=>{let e={};return d.forEach(t=>{e[t.id]=s.filter(a=>a.epicId===t.id)}),e["no-epic"]=s.filter(t=>!t.epicId),e},W=s=>{P(s)},X=s=>{v&&(n(e=>e.map(t=>t.id===v.id?{...t,status:s}:t)),g?.(v.id,{status:s}),P(null))},Y=s=>{let e={...s,id:Date.now().toString(),createdAt:new Date};n(t=>[...t,e]),K?.(s)},Z=async(s,e)=>{n(t=>t.map(a=>a.id===s?{...a,...e}:a)),g&&await g(s,e)},_=async s=>{n(e=>e.filter(t=>t.id!==s)),c?.id===s&&T(null),y&&await y(s)},ss=s=>{let e={...s,id:Date.now().toString(),isSelected:!0};h(t=>[...t,e]),F?.(s)},es=s=>{T(s),R?.(s)};return r("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[i(N,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>S(!0)},secondaryAction:{label:"Add epic",onClick:()=>b(!0)}}),i("div",{className:"flex-1",children:r("div",{className:"w-full",children:[i("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{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"}].map(s=>{let e=L(s.status),t=Q(e);return i(O,{title:s.title,status:s.status,taskCount:e.length,onDrop:X,isCompact:s.status==="done",children:C.map(a=>{let E=d.find(p=>p.id===a),A=t[a]||[];return A.length===0?null:r("div",{className:"mb-6",children:[r("div",{className:"flex items-center gap-2 mb-3",children:[i("div",{className:`w-3 h-3 rounded-full ${E?.color}`}),i("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:E?.name||"No Epic"}),i(w,{variant:"secondary",className:"text-xs",children:A.length})]})," ",i("div",{className:"space-y-3",children:A.map(p=>i(B,{task:p,epic:E,onDragStart:W,onTaskClick:es,isCompact:s.status==="done"},p.id))})]},a)})},s.id)})}),r(ts,{children:[i(x,{isOpen:$,onClose:()=>S(!1),onAddTask:Y,assignees:[...G,...z],epics:d,sprints:f}),i(I,{isOpen:q,onClose:()=>b(!1),onAddEpic:ss}),c&&i(M,{isOpen:!!c,onClose:()=>T(null),task:c,epics:d,sprints:f,onUpdateTask:Z,onDeleteTask:_})]})]})})]})};export{fs as a};
@@ -1 +1 @@
1
- import{a as A}from"./chunk-RR4QSUV2.mjs";import{a as g,c as v,d as f,g as C,i as h}from"./chunk-YFAZQYK4.mjs";import{a as F}from"./chunk-INCYANPB.mjs";import{a as k}from"./chunk-B4H6T2GP.mjs";import{a as l}from"./chunk-TVZOULLL.mjs";import{a as N}from"./chunk-FT3AE7L2.mjs";import{a as u}from"./chunk-L5JPAKPM.mjs";import{a as S,f as y,g as x,i as w}from"./chunk-3UMMMQEH.mjs";import{b as p}from"./chunk-ZUA4KNIR.mjs";import{useState as D,useEffect as M}from"react";import{PlusIcon as z}from"lucide-react";import{Fragment as j,jsx as t,jsxs as r}from"react/jsx-runtime";function se({customers:b,users:d,categories:I,onSubmit:E,initialDeal:n,onAddCustomer:P,onClose:L}){let[a,o]=D(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[T,m]=D(!1),[i,c]=D({});M(()=>{n&&o(n)},[n]);let U=()=>{let e={};return a.customer||(e.customer="Customer is required"),a.value||(e.value="Value is required"),a.assignee||(e.assignee="Assignee is required"),a.closureDate||(e.closureDate="Closure Date is required"),c(e),Object.keys(e).length===0},B=async e=>{e.preventDefault(),c({});try{if(U()){let s=await E({...a});s.success?(o({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),L?.()):c(s.errors||{})}}catch{c({submit:"An error occurred while submitting the form."})}},O=e=>{o(s=>({...s,categories:(s.categories||[]).includes(e.id)?(s.categories||[]).filter(H=>H!==e.id):[...s.categories||[],e.id]}))},V=async e=>{o({...a,customer:e});try{let s=await P(e);s.success?m(!1):c(s.errors||{})}catch{c({submit:"An error occurred while submitting the form."})}},q=e=>d?.find(s=>s.id===Number(e)),R=e=>b?.find(s=>s.id===Number(e));return r(j,{children:[r("form",{onSubmit:B,className:"space-y-6",children:[t(N,{className:"h-[60vh] pr-4",children:r("div",{className:"space-y-6 px-4",children:[r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"customer",children:"Customer"}),r("div",{className:"flex items-center space-x-2",children:[r(g,{value:a.customer?.id?.toString(),onValueChange:e=>o({...a,customer:R(e)}),children:[t(f,{children:t(v,{placeholder:"Select customer"})}),t(C,{children:b.map(e=>t(h,{value:e.id?.toString()||"",children:e.name},e.id))})]}),t(p,{variant:"outline",size:"icon",onClick:()=>m(!0),children:t(z,{className:"w-5 h-5"})})]}),i.customerId&&t("p",{className:"text-red-500 text-sm",children:i.customerId})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"value",children:"Value"}),t(u,{id:"value",type:"number",value:a.value||"",onChange:e=>o({...a,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),i.value&&t("p",{className:"text-red-500 text-sm",children:i.value})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"assignee",children:"Assignee"}),r(g,{value:a.assignee?.id?.toString(),onValueChange:e=>o({...a,assignee:q(e)}),children:[t(f,{children:t(v,{placeholder:"Select assignee"})}),t(C,{children:d&&d.map(e=>t(h,{value:e.id?.toString()||"",children:e.name},e.id))})]}),i.assignee&&t("p",{className:"text-red-500 text-sm",children:i.assignee})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"description",children:"Description"}),t(k,{id:"description",value:a.description||"",onChange:e=>o({...a,description:e.target.value}),placeholder:"Enter deal description"})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{children:"Categories"}),t("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>r("div",{className:"space-y-2",children:[t("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),t("div",{className:"grid grid-cols-2 gap-2",children:I.filter(s=>s.type===e).map(s=>r("div",{className:"flex items-center space-x-2",children:[t(F,{id:s.id.toString(),checked:a.categories?.includes(s.id),onCheckedChange:()=>O(s)}),t("label",{htmlFor:s.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:s.name})]},s.id))})]},e))})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"closureDate",children:"Closure Date"}),t(u,{id:"closureDate",type:"date",value:a.closureDate||"",onChange:e=>o({...a,closureDate:e.target.value})}),i.closureDate&&t("p",{className:"text-red-500 text-sm",children:i.closureDate})]})]})}),t(p,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),t(S,{open:T,onOpenChange:m,children:r(y,{children:[t(x,{children:t(w,{children:"Add New Customer"})}),t(A,{onSubmit:V})]})})]})}export{se as a};
1
+ import{a as A}from"./chunk-EUXJZBRI.mjs";import{a as g,c as v,d as f,g as C,i as h}from"./chunk-WLM2ZFHF.mjs";import{a as F}from"./chunk-NQPBIFGO.mjs";import{a as k}from"./chunk-VXZPPTQQ.mjs";import{a as l}from"./chunk-RAAY7PEH.mjs";import{a as N}from"./chunk-JVJG2LOA.mjs";import{a as S,f as y,g as x,i as w}from"./chunk-AG6IN5S7.mjs";import{a as u}from"./chunk-GJUA2KUH.mjs";import{b as p}from"./chunk-7Z3TOFNL.mjs";import{useState as D,useEffect as M}from"react";import{PlusIcon as z}from"lucide-react";import{Fragment as j,jsx as t,jsxs as r}from"react/jsx-runtime";function se({customers:b,users:d,categories:I,onSubmit:E,initialDeal:n,onAddCustomer:P,onClose:L}){let[a,o]=D(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[T,m]=D(!1),[i,c]=D({});M(()=>{n&&o(n)},[n]);let U=()=>{let e={};return a.customer||(e.customer="Customer is required"),a.value||(e.value="Value is required"),a.assignee||(e.assignee="Assignee is required"),a.closureDate||(e.closureDate="Closure Date is required"),c(e),Object.keys(e).length===0},B=async e=>{e.preventDefault(),c({});try{if(U()){let s=await E({...a});s.success?(o({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),L?.()):c(s.errors||{})}}catch{c({submit:"An error occurred while submitting the form."})}},O=e=>{o(s=>({...s,categories:(s.categories||[]).includes(e.id)?(s.categories||[]).filter(H=>H!==e.id):[...s.categories||[],e.id]}))},V=async e=>{o({...a,customer:e});try{let s=await P(e);s.success?m(!1):c(s.errors||{})}catch{c({submit:"An error occurred while submitting the form."})}},q=e=>d?.find(s=>s.id===Number(e)),R=e=>b?.find(s=>s.id===Number(e));return r(j,{children:[r("form",{onSubmit:B,className:"space-y-6",children:[t(N,{className:"h-[60vh] pr-4",children:r("div",{className:"space-y-6 px-4",children:[r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"customer",children:"Customer"}),r("div",{className:"flex items-center space-x-2",children:[r(g,{value:a.customer?.id?.toString(),onValueChange:e=>o({...a,customer:R(e)}),children:[t(f,{children:t(v,{placeholder:"Select customer"})}),t(C,{children:b.map(e=>t(h,{value:e.id?.toString()||"",children:e.name},e.id))})]}),t(p,{variant:"outline",size:"icon",onClick:()=>m(!0),children:t(z,{className:"w-5 h-5"})})]}),i.customerId&&t("p",{className:"text-red-500 text-sm",children:i.customerId})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"value",children:"Value"}),t(u,{id:"value",type:"number",value:a.value||"",onChange:e=>o({...a,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),i.value&&t("p",{className:"text-red-500 text-sm",children:i.value})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"assignee",children:"Assignee"}),r(g,{value:a.assignee?.id?.toString(),onValueChange:e=>o({...a,assignee:q(e)}),children:[t(f,{children:t(v,{placeholder:"Select assignee"})}),t(C,{children:d&&d.map(e=>t(h,{value:e.id?.toString()||"",children:e.name},e.id))})]}),i.assignee&&t("p",{className:"text-red-500 text-sm",children:i.assignee})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"description",children:"Description"}),t(k,{id:"description",value:a.description||"",onChange:e=>o({...a,description:e.target.value}),placeholder:"Enter deal description"})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{children:"Categories"}),t("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>r("div",{className:"space-y-2",children:[t("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),t("div",{className:"grid grid-cols-2 gap-2",children:I.filter(s=>s.type===e).map(s=>r("div",{className:"flex items-center space-x-2",children:[t(F,{id:s.id.toString(),checked:a.categories?.includes(s.id),onCheckedChange:()=>O(s)}),t("label",{htmlFor:s.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:s.name})]},s.id))})]},e))})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"closureDate",children:"Closure Date"}),t(u,{id:"closureDate",type:"date",value:a.closureDate||"",onChange:e=>o({...a,closureDate:e.target.value})}),i.closureDate&&t("p",{className:"text-red-500 text-sm",children:i.closureDate})]})]})}),t(p,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),t(S,{open:T,onOpenChange:m,children:r(y,{children:[t(x,{children:t(w,{children:"Add New Customer"})}),t(A,{onSubmit:V})]})})]})}export{se as a};
@@ -1 +1 @@
1
- import{a as p}from"./chunk-B4H6T2GP.mjs";import{a as m}from"./chunk-TVZOULLL.mjs";import{a as c}from"./chunk-L5JPAKPM.mjs";import{useState as u}from"react";import{Edit as E}from"lucide-react";import{jsx as o,jsxs as f}from"react/jsx-runtime";var P=({fieldName:g,value:n,label:v,multiline:t=!1,onSave:y,className:b="",disabled:i=!1})=>{let[h,l]=u(!1),[a,r]=u(""),x=()=>{i||(l(!0),r(n))},s=async()=>{a!==n&&await y(g,a),l(!1)},d=e=>{e.key==="Enter"&&!t||e.key==="Enter"&&e.ctrlKey&&t?s():e.key==="Escape"&&(l(!1),r(""))};return f("div",{className:`space-y-2 ${b}`,children:[o(m,{children:v}),h?t?o(p,{value:a,onChange:e=>r(e.target.value),onBlur:s,onKeyDown:d,autoFocus:!0,rows:4,className:"resize-none"}):o(c,{value:a,onChange:e=>r(e.target.value),onBlur:s,onKeyPress:d,autoFocus:!0,className:"text-lg font-medium"}):f("div",{onClick:x,className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${t?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[o("span",{className:t?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:n||"Click to edit..."}),!i&&o(E,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};export{P as a};
1
+ import{a as p}from"./chunk-VXZPPTQQ.mjs";import{a as m}from"./chunk-RAAY7PEH.mjs";import{a as c}from"./chunk-GJUA2KUH.mjs";import{useState as u}from"react";import{Edit as E}from"lucide-react";import{jsx as o,jsxs as f}from"react/jsx-runtime";var P=({fieldName:g,value:n,label:v,multiline:t=!1,onSave:y,className:b="",disabled:i=!1})=>{let[h,l]=u(!1),[a,r]=u(""),x=()=>{i||(l(!0),r(n))},s=async()=>{a!==n&&await y(g,a),l(!1)},d=e=>{e.key==="Enter"&&!t||e.key==="Enter"&&e.ctrlKey&&t?s():e.key==="Escape"&&(l(!1),r(""))};return f("div",{className:`space-y-2 ${b}`,children:[o(m,{children:v}),h?t?o(p,{value:a,onChange:e=>r(e.target.value),onBlur:s,onKeyDown:d,autoFocus:!0,rows:4,className:"resize-none"}):o(c,{value:a,onChange:e=>r(e.target.value),onBlur:s,onKeyPress:d,autoFocus:!0,className:"text-lg font-medium"}):f("div",{onClick:x,className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${t?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[o("span",{className:t?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:n||"Click to edit..."}),!i&&o(E,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};export{P as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as p}from"./chunk-RYZTCMVC.mjs";import{a as d}from"./chunk-2BR55L74.mjs";import{a as m}from"./chunk-MDJREBVI.mjs";import A from"next/link";import{Fragment as g}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var j=v=>{let{card:f,link:h}=p({}),{className:u,doc:N,relationTo:y,showCategories:i,title:b}=v,{slug:C,categories:t,meta:F,title:k}=N||{},{description:s,image:r}=F||{},a=t&&Array.isArray(t)&&t.length>0,c=b||k,w=s?.replace(/\s/g," "),T=`/${y}/${C}`;return o("article",{className:m("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",u),ref:f.ref,children:[o("div",{className:"relative w-full ",children:[!r&&e("div",{className:"",children:"No image"}),r&&typeof r!="string"&&e(d,{resource:r,size:"33vw"})]}),o("div",{className:"p-4",children:[i&&a&&e("div",{className:"uppercase text-sm mb-4",children:i&&a&&e("div",{children:t?.map((l,n)=>{if(typeof l=="object"){let{title:L}=l,P=L||"Untitled category",z=n===t.length-1;return o(g,{children:[P,!z&&e(g,{children:", \xA0"})]},n)}return null})})}),c&&e("div",{className:"prose",children:e("h3",{children:e(A,{className:"not-prose",href:T,ref:h.ref,children:c})})}),s&&e("div",{className:"mt-2",children:s&&e("p",{children:w})})]})]})};export{j as a};
4
+ import{a as p}from"./chunk-RYZTCMVC.mjs";import{a as d}from"./chunk-QXA6C5VE.mjs";import{a as m}from"./chunk-TSEOL53Y.mjs";import A from"next/link";import{Fragment as g}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var j=v=>{let{card:f,link:h}=p({}),{className:u,doc:N,relationTo:y,showCategories:i,title:b}=v,{slug:C,categories:t,meta:F,title:k}=N||{},{description:s,image:r}=F||{},a=t&&Array.isArray(t)&&t.length>0,c=b||k,w=s?.replace(/\s/g," "),T=`/${y}/${C}`;return o("article",{className:m("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",u),ref:f.ref,children:[o("div",{className:"relative w-full ",children:[!r&&e("div",{className:"",children:"No image"}),r&&typeof r!="string"&&e(d,{resource:r,size:"33vw"})]}),o("div",{className:"p-4",children:[i&&a&&e("div",{className:"uppercase text-sm mb-4",children:i&&a&&e("div",{children:t?.map((l,n)=>{if(typeof l=="object"){let{title:L}=l,P=L||"Untitled category",z=n===t.length-1;return o(g,{children:[P,!z&&e(g,{children:", \xA0"})]},n)}return null})})}),c&&e("div",{className:"prose",children:e("h3",{children:e(A,{className:"not-prose",href:T,ref:h.ref,children:c})})}),s&&e("div",{className:"mt-2",children:s&&e("p",{children:w})})]})]})};export{j as a};
@@ -1 +1 @@
1
- import{a as E}from"./chunk-AM2SRWFU.mjs";import{a as w}from"./chunk-Z22NSJMF.mjs";import{a as u,c as v,d as f,g as h,i as l}from"./chunk-YFAZQYK4.mjs";import{a as b}from"./chunk-B4H6T2GP.mjs";import{a as p}from"./chunk-L5JPAKPM.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{b as d}from"./chunk-CSBGSBEU.mjs";import{a as k}from"./chunk-YO3GQYRJ.mjs";import{useState as x}from"react";import{Plus as U,Move as X,Edit2 as q,Trash2 as G,Check as J,X as K}from"lucide-react";import{Fragment as Q,jsx as s,jsxs as t}from"react/jsx-runtime";var le=({tasks:C,epics:y,sprints:W,onUpdateTask:S,onTaskClick:T,onAddTaskToEpic:D,onAddEpic:P,onUpdateEpic:I,onDeleteEpic:B})=>{let[c,N]=x(null),[m,g]=x(null),[r,n]=x({}),z=e=>{N(e)},A=e=>{e.preventDefault()},V=(e,i)=>{e.preventDefault(),c&&c.epicId!==i&&(S(c.id,{epicId:i}),N(null))},$=e=>C.filter(i=>i.epicId===e),R=e=>{g(e.id),n({name:e.name,description:e.description,confidence:e.confidence,phase:e.phase,progress:e.progress})},M=()=>{m&&r.name&&(I(m,r),g(null),n({}))},O=()=>{g(null),n({})},j=e=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&B(e)},Y=e=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[e]||`Phase ${e}`,F=e=>{switch(e){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[s(w,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:P}}),s("div",{className:"flex-1",children:s("div",{className:"w-full",children:s("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:y.map(e=>{let i=$(e.id),H=i.reduce((a,L)=>a+L.points,0);return t(k,{className:`flex flex-col ${m===e.id?"h-auto":"h-[600px]"} bg-card shadow-sm`,onDragOver:A,onDrop:a=>V(a,e.id),children:[s("div",{className:"p-4 border-b border-border",children:m===e.id?t("div",{className:"space-y-4",children:[t("div",{className:"flex items-center justify-between",children:[s(p,{value:r.name||"",onChange:a=>n({...r,name:a.target.value}),placeholder:"Epic name",className:"font-semibold"}),t("div",{className:"flex gap-2 ml-2",children:[s(o,{size:"sm",variant:"ghost",onClick:M,className:"p-1 h-8 w-8",children:s(J,{className:"h-4 w-4"})}),s(o,{size:"sm",variant:"ghost",onClick:O,className:"p-1 h-8 w-8",children:s(K,{className:"h-4 w-4"})})]})]}),s(b,{value:r.description||"",onChange:a=>n({...r,description:a.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),t(u,{value:r.confidence||e.confidence,onValueChange:a=>n({...r,confidence:a}),children:[s(f,{className:"text-xs",children:s(v,{})}),t(h,{children:[s(l,{value:"low",children:"Low"}),s(l,{value:"medium",children:"Medium"}),s(l,{value:"high",children:"High"})]})]})]}),t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Phase"}),t(u,{value:r.phase?.toString()||e.phase.toString(),onValueChange:a=>n({...r,phase:parseInt(a)}),children:[s(f,{className:"text-xs",children:s(v,{})}),s(h,{children:[1,2,3,4,5,6,7,8,9].map(a=>t(l,{value:a.toString(),children:["Phase ",a]},a))})]})]})]}),t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Progress (%)"}),s(p,{type:"number",min:"0",max:"100",value:r.progress||e.progress,onChange:a=>n({...r,progress:parseInt(a.target.value)||0}),className:"text-xs"})]})]}):t(Q,{children:[t("div",{className:"flex items-center gap-2 mb-2",children:[s("div",{className:`w-4 h-4 rounded-full ${e.color}`}),s("h3",{className:"font-semibold text-foreground select-none flex-1",children:e.name}),t("div",{className:"flex gap-1",children:[s(o,{size:"sm",variant:"ghost",onClick:()=>R(e),className:"p-1 h-8 w-8",children:s(q,{className:"h-3 w-3"})}),s(o,{size:"sm",variant:"ghost",onClick:()=>j(e.id),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:s(G,{className:"h-3 w-3"})})]})]}),t("div",{className:"flex flex-wrap gap-2 mb-3",children:[t(d,{className:`text-xs ${F(e.confidence)}`,children:[e.confidence," confidence"]}),t(d,{variant:"outline",className:"text-xs",children:["Phase ",e.phase]}),t(d,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[i.length," tasks"]}),t(d,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[H," pts"]})]}),e.description&&s("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:e.description}),t("div",{className:"mb-3",children:[t("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[s("span",{className:"select-none",children:"Progress"}),t("span",{className:"select-none",children:[e.progress,"%"]})]}),s("div",{className:"w-full bg-muted rounded-full h-2",children:s("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),t(o,{onClick:()=>D(e.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[s(U,{className:"h-4 w-4"}),"Add Task"]})]})}),s("div",{className:"flex-1 p-4 overflow-y-auto",children:s("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${c?"border-primary bg-primary/10":"border-border"}`,children:i.length===0?t("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[s(X,{className:"h-8 w-8 mb-2"}),s("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):i.map(a=>s(E,{task:a,epic:e,onDragStart:z,onTaskClick:T,isCompact:!0},a.id))})})]},e.id)})})})})]})};export{le as a};
1
+ import{a as E}from"./chunk-RARAKOXE.mjs";import{a as w}from"./chunk-BM2ZNFM6.mjs";import{a as u,c as v,d as f,g as h,i as l}from"./chunk-WLM2ZFHF.mjs";import{a as b}from"./chunk-VXZPPTQQ.mjs";import{a as p}from"./chunk-GJUA2KUH.mjs";import{b as o}from"./chunk-7Z3TOFNL.mjs";import{b as d}from"./chunk-2JKLBLDE.mjs";import{a as k}from"./chunk-7WKUKFCT.mjs";import{useState as x}from"react";import{Plus as U,Move as X,Edit2 as q,Trash2 as G,Check as J,X as K}from"lucide-react";import{Fragment as Q,jsx as s,jsxs as t}from"react/jsx-runtime";var le=({tasks:C,epics:y,sprints:W,onUpdateTask:S,onTaskClick:T,onAddTaskToEpic:D,onAddEpic:P,onUpdateEpic:I,onDeleteEpic:B})=>{let[c,N]=x(null),[m,g]=x(null),[r,n]=x({}),z=e=>{N(e)},A=e=>{e.preventDefault()},V=(e,i)=>{e.preventDefault(),c&&c.epicId!==i&&(S(c.id,{epicId:i}),N(null))},$=e=>C.filter(i=>i.epicId===e),R=e=>{g(e.id),n({name:e.name,description:e.description,confidence:e.confidence,phase:e.phase,progress:e.progress})},M=()=>{m&&r.name&&(I(m,r),g(null),n({}))},O=()=>{g(null),n({})},j=e=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&B(e)},Y=e=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[e]||`Phase ${e}`,F=e=>{switch(e){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[s(w,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:P}}),s("div",{className:"flex-1",children:s("div",{className:"w-full",children:s("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:y.map(e=>{let i=$(e.id),H=i.reduce((a,L)=>a+L.points,0);return t(k,{className:`flex flex-col ${m===e.id?"h-auto":"h-[600px]"} bg-card shadow-sm`,onDragOver:A,onDrop:a=>V(a,e.id),children:[s("div",{className:"p-4 border-b border-border",children:m===e.id?t("div",{className:"space-y-4",children:[t("div",{className:"flex items-center justify-between",children:[s(p,{value:r.name||"",onChange:a=>n({...r,name:a.target.value}),placeholder:"Epic name",className:"font-semibold"}),t("div",{className:"flex gap-2 ml-2",children:[s(o,{size:"sm",variant:"ghost",onClick:M,className:"p-1 h-8 w-8",children:s(J,{className:"h-4 w-4"})}),s(o,{size:"sm",variant:"ghost",onClick:O,className:"p-1 h-8 w-8",children:s(K,{className:"h-4 w-4"})})]})]}),s(b,{value:r.description||"",onChange:a=>n({...r,description:a.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),t("div",{className:"grid grid-cols-2 gap-2",children:[t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),t(u,{value:r.confidence||e.confidence,onValueChange:a=>n({...r,confidence:a}),children:[s(f,{className:"text-xs",children:s(v,{})}),t(h,{children:[s(l,{value:"low",children:"Low"}),s(l,{value:"medium",children:"Medium"}),s(l,{value:"high",children:"High"})]})]})]}),t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Phase"}),t(u,{value:r.phase?.toString()||e.phase.toString(),onValueChange:a=>n({...r,phase:parseInt(a)}),children:[s(f,{className:"text-xs",children:s(v,{})}),s(h,{children:[1,2,3,4,5,6,7,8,9].map(a=>t(l,{value:a.toString(),children:["Phase ",a]},a))})]})]})]}),t("div",{children:[s("label",{className:"text-xs text-muted-foreground",children:"Progress (%)"}),s(p,{type:"number",min:"0",max:"100",value:r.progress||e.progress,onChange:a=>n({...r,progress:parseInt(a.target.value)||0}),className:"text-xs"})]})]}):t(Q,{children:[t("div",{className:"flex items-center gap-2 mb-2",children:[s("div",{className:`w-4 h-4 rounded-full ${e.color}`}),s("h3",{className:"font-semibold text-foreground select-none flex-1",children:e.name}),t("div",{className:"flex gap-1",children:[s(o,{size:"sm",variant:"ghost",onClick:()=>R(e),className:"p-1 h-8 w-8",children:s(q,{className:"h-3 w-3"})}),s(o,{size:"sm",variant:"ghost",onClick:()=>j(e.id),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:s(G,{className:"h-3 w-3"})})]})]}),t("div",{className:"flex flex-wrap gap-2 mb-3",children:[t(d,{className:`text-xs ${F(e.confidence)}`,children:[e.confidence," confidence"]}),t(d,{variant:"outline",className:"text-xs",children:["Phase ",e.phase]}),t(d,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[i.length," tasks"]}),t(d,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[H," pts"]})]}),e.description&&s("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:e.description}),t("div",{className:"mb-3",children:[t("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[s("span",{className:"select-none",children:"Progress"}),t("span",{className:"select-none",children:[e.progress,"%"]})]}),s("div",{className:"w-full bg-muted rounded-full h-2",children:s("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${e.progress}%`}})})]}),t(o,{onClick:()=>D(e.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[s(U,{className:"h-4 w-4"}),"Add Task"]})]})}),s("div",{className:"flex-1 p-4 overflow-y-auto",children:s("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${c?"border-primary bg-primary/10":"border-border"}`,children:i.length===0?t("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[s(X,{className:"h-8 w-8 mb-2"}),s("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):i.map(a=>s(E,{task:a,epic:e,onDragStart:z,onTaskClick:T,isCompact:!0},a.id))})})]},e.id)})})})})]})};export{le as a};
@@ -1 +1 @@
1
- import{a as d,b as m,c as n,e as i,f as c}from"./chunk-YO3GQYRJ.mjs";import{Clock as g}from"lucide-react";import{formatDistanceToNow as N}from"date-fns";import{jsx as a,jsxs as e}from"react/jsx-runtime";function T({artefact:l,taskId:f,taskData:p,loading:s=!1,error:C=null}){let t=p||{id:f,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},o=t.dateLogged;try{let r=new Date(t.dateLogged);isNaN(r.getTime())||(o=N(r,{addSuffix:!0}))}catch{}return e(d,{className:"w-full max-w-md shadow-md",children:[a(m,{className:"pb-2",children:a("div",{className:"flex justify-between items-start",children:a(n,{className:"text-lg font-semibold",children:s?"Loading...":t.name})})}),a(i,{className:"pb-2",children:s?a("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):C?a("p",{className:"text-sm text-red-500",children:"Error loading task details"}):a("p",{className:"text-sm text-foreground",children:l})}),a(c,{className:"pt-2 flex items-center justify-between",children:e("div",{className:"flex items-center text-xs text-gray-500",children:[a(g,{className:"h-3 w-3 mr-1"}),e("span",{children:["Created ",o]}),a("span",{className:"mx-2",children:"\u2022"}),e("span",{children:["Task #",t.id]})]})})]})}export{T as a};
1
+ import{a as d,b as m,c as n,e as i,f as c}from"./chunk-7WKUKFCT.mjs";import{Clock as g}from"lucide-react";import{formatDistanceToNow as N}from"date-fns";import{jsx as a,jsxs as e}from"react/jsx-runtime";function T({artefact:l,taskId:f,taskData:p,loading:s=!1,error:C=null}){let t=p||{id:f,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},o=t.dateLogged;try{let r=new Date(t.dateLogged);isNaN(r.getTime())||(o=N(r,{addSuffix:!0}))}catch{}return e(d,{className:"w-full max-w-md shadow-md",children:[a(m,{className:"pb-2",children:a("div",{className:"flex justify-between items-start",children:a(n,{className:"text-lg font-semibold",children:s?"Loading...":t.name})})}),a(i,{className:"pb-2",children:s?a("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):C?a("p",{className:"text-sm text-red-500",children:"Error loading task details"}):a("p",{className:"text-sm text-foreground",children:l})}),a(c,{className:"pt-2 flex items-center justify-between",children:e("div",{className:"flex items-center text-xs text-gray-500",children:[a(g,{className:"h-3 w-3 mr-1"}),e("span",{children:["Created ",o]}),a("span",{className:"mx-2",children:"\u2022"}),e("span",{children:["Task #",t.id]})]})})]})}export{T as a};
@@ -1 +1 @@
1
- import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a}from"./chunk-WISCWNL2.mjs";import{a as c}from"./chunk-FVM5SQT2.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{jsx as e,jsxs as n}from"react/jsx-runtime";function m(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function h({icon:r,title:s,description:p,slug:t}){return n("article",{className:o(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[n("div",{className:"flex items-center text-foreground gap-5",children:[e("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:m(r)?e(c,{type:r.type,iconName:r.iconName,size:"sm"}):r}),e("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:t?e(a,{href:t,children:s}):s})]}),e("p",{className:"text-foreground",children:p}),t&&e(i,{asChild:!0,className:o(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:n(a,{href:t,children:[e("span",{children:"Read More"}),e("span",{className:"relative pl-3 text-sm/[1] text-accent",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),e("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}export{h as a};
1
+ import{b as i}from"./chunk-7Z3TOFNL.mjs";import{a}from"./chunk-WISCWNL2.mjs";import{a as c}from"./chunk-FVM5SQT2.mjs";import{a as o}from"./chunk-TSEOL53Y.mjs";import{jsx as e,jsxs as n}from"react/jsx-runtime";function m(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function h({icon:r,title:s,description:p,slug:t}){return n("article",{className:o(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[n("div",{className:"flex items-center text-foreground gap-5",children:[e("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:m(r)?e(c,{type:r.type,iconName:r.iconName,size:"sm"}):r}),e("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:t?e(a,{href:t,children:s}):s})]}),e("p",{className:"text-foreground",children:p}),t&&e(i,{asChild:!0,className:o(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:n(a,{href:t,children:[e("span",{children:"Read More"}),e("span",{className:"relative pl-3 text-sm/[1] text-accent",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),e("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}export{h as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as i}from"./chunk-MDJREBVI.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as s}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var m=t.forwardRef(({className:r,...c},a)=>o(e.Root,{className:i("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),ref:a,...c,children:o(e.Indicator,{className:i("flex items-center justify-center text-current"),children:o(s,{className:"h-4 w-4"})})}));m.displayName=e.Root.displayName;export{m as a};
4
+ import{a as i}from"./chunk-TSEOL53Y.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as s}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var m=t.forwardRef(({className:r,...c},a)=>o(e.Root,{className:i("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),ref:a,...c,children:o(e.Indicator,{className:i("flex items-center justify-center text-current"),children:o(s,{className:"h-4 w-4"})})}));m.displayName=e.Root.displayName;export{m as a};
@@ -1 +1 @@
1
- import{a as r,b as s,i,j as t,m as l,n as d}from"./chunk-OCPX4QPC.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{a as m,b as p,c}from"./chunk-SOLZ4VQH.mjs";import{Bell as g,Settings as h,User as b,Menu as v}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var k=({isRightSidebarOpen:f,onToggleRightSidebar:w,onToggleLeftSidebar:n,onToggleNotifications:u})=>e("header",{className:"border-b bg-white/80 backdrop-blur-md dark:bg-slate-900/80 sticky top-0 z-50",children:e("div",{className:"container mx-auto px-6 py-4",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[n&&e(o,{variant:"ghost",size:"icon",className:"md:hidden",onClick:n,children:e(v,{className:"h-5 w-5"})}),e("h1",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Cortex Copilot"})]}),a("div",{className:"flex items-center space-x-4",children:[a(o,{variant:"ghost",size:"icon",className:"relative",onClick:u,children:[e(g,{className:"h-5 w-5"}),e("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"})]}),a(r,{children:[e(s,{asChild:!0,children:e(o,{variant:"ghost",className:"relative h-10 w-10 rounded-full",children:a(m,{className:"h-10 w-10",children:[e(p,{src:"/avatars/01.png",alt:"@user"}),e(c,{children:"JD"})]})})}),a(i,{className:"w-56",align:"end",forceMount:!0,children:[e(l,{className:"font-normal",children:a("div",{className:"flex flex-col space-y-1",children:[e("p",{className:"text-sm font-medium leading-none",children:"John Doe"}),e("p",{className:"text-xs leading-none text-muted-foreground",children:"john.doe@company.com"})]})}),e(d,{}),a(t,{children:[e(b,{className:"mr-2 h-4 w-4"}),e("span",{children:"Profile"})]}),a(t,{children:[e(h,{className:"mr-2 h-4 w-4"}),e("span",{children:"Settings"})]})]})]})]})]})})});export{k as a};
1
+ import{a as r,b as s,i,j as t,m as l,n as d}from"./chunk-DGJHJHFF.mjs";import{b as o}from"./chunk-7Z3TOFNL.mjs";import{a as m,b as p,c}from"./chunk-RFNYVF6F.mjs";import{Bell as g,Settings as h,User as b,Menu as v}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var k=({isRightSidebarOpen:f,onToggleRightSidebar:w,onToggleLeftSidebar:n,onToggleNotifications:u})=>e("header",{className:"border-b bg-white/80 backdrop-blur-md dark:bg-slate-900/80 sticky top-0 z-50",children:e("div",{className:"container mx-auto px-6 py-4",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[n&&e(o,{variant:"ghost",size:"icon",className:"md:hidden",onClick:n,children:e(v,{className:"h-5 w-5"})}),e("h1",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Cortex Copilot"})]}),a("div",{className:"flex items-center space-x-4",children:[a(o,{variant:"ghost",size:"icon",className:"relative",onClick:u,children:[e(g,{className:"h-5 w-5"}),e("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"})]}),a(r,{children:[e(s,{asChild:!0,children:e(o,{variant:"ghost",className:"relative h-10 w-10 rounded-full",children:a(m,{className:"h-10 w-10",children:[e(p,{src:"/avatars/01.png",alt:"@user"}),e(c,{children:"JD"})]})})}),a(i,{className:"w-56",align:"end",forceMount:!0,children:[e(l,{className:"font-normal",children:a("div",{className:"flex flex-col space-y-1",children:[e("p",{className:"text-sm font-medium leading-none",children:"John Doe"}),e("p",{className:"text-xs leading-none text-muted-foreground",children:"john.doe@company.com"})]})}),e(d,{}),a(t,{children:[e(b,{className:"mr-2 h-4 w-4"}),e("span",{children:"Profile"})]}),a(t,{children:[e(h,{className:"mr-2 h-4 w-4"}),e("span",{children:"Settings"})]})]})]})]})]})})});export{k as a};
@@ -1 +1 @@
1
- import{a as g}from"./chunk-Q5XT55O3.mjs";import{a as m}from"./chunk-WISCWNL2.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{FaChevronRight as u,FaEnvelope as v,FaPaperPlane as k,FaPhone as y}from"react-icons/fa6";import{jsx as a,jsxs as t}from"react/jsx-runtime";var I=o("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),f=o("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),p=o("bg-brand-green rounded-full p-3 mr-4 text-2xl"),d=o("flex items-center text-white gap-3"),c=o("transition-colors duration-300 hover:text-accent dark:hover:text-white");function D({className:h,footerData:b,logoLight:N,logoDark:x}){let{about:l,columnOne:r,columnTwo:s,footerBottom:n}=b,w=void 0;return t("footer",{className:o("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",h),children:[a("div",{className:"py-16 md:py-20",children:a("div",{className:"container",children:t("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[t("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[a(g,{logoDark:x,logoLight:N}),a("p",{className:"mb-7 mt-3",children:l.description}),l.socialLinks&&l.socialLinks.length>0&&a("nav",{"aria-label":"social links",children:a("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:l.socialLinks.map((e,i)=>a("li",{className:"bg-primary rounded-full p-3",children:a(m,{"aria-label":e.href,className:"text-2xl",href:e.href,openNewTab:!0,children:a("span",{children:e.icon})})},i))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[a("h3",{className:f,children:r.title}),r.links&&r.links.length>0&&a("nav",{"aria-label":"footer links navigation",children:a("ul",{className:"grid pl-0 gap-2",children:r.links.map(e=>t("li",{className:"flex items-center gap-2.5",children:[a("span",{className:"flex-none text-sm/[1] text-white",children:a(u,{})}),a(m,{href:e.href,openNewTab:e.openNewTab,className:c,children:e.label})]},e.label))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[a("h3",{className:f,children:s.title}),t("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[t("li",{className:d,children:[a("span",{className:p,children:a(k,{})}),a("address",{className:"not-italic",children:s.location})]}),t("li",{className:d,children:[a("span",{className:p,children:a(v,{})}),s.mails&&s.mails.length>0&&a("div",{className:"grid gap-1",children:s.mails.map((e,i)=>a("a",{href:`mailto:${e}`,className:c,children:e},i))})]}),s.phoneNumbers&&s.phoneNumbers.length>0&&t("li",{className:d,children:[a("span",{className:p,children:a(y,{})}),a("div",{className:"grid gap-1",children:s.phoneNumbers.map((e,i)=>a("a",{href:`tel:${e.split(" ").join("")}`,className:c,children:e},i))})]})]})]})]})})}),a("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:a("div",{className:"container",children:t("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[a("p",{children:n.copyrightText}),n.links&&n.links.length>0&&a("nav",{"aria-label":"footer bottom navigation",children:a("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:n.links.map(e=>a("li",{children:a(m,{"aria-label":`Go to page ${e.label}`,href:e.href,openNewTab:e.openNewTab,className:c,children:e.label})},e.label))})})]})})})]})}export{D as a};
1
+ import{a as g}from"./chunk-532HP37G.mjs";import{a as m}from"./chunk-WISCWNL2.mjs";import{a as o}from"./chunk-TSEOL53Y.mjs";import{FaChevronRight as u,FaEnvelope as v,FaPaperPlane as k,FaPhone as y}from"react-icons/fa6";import{jsx as a,jsxs as t}from"react/jsx-runtime";var I=o("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),f=o("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),p=o("bg-brand-green rounded-full p-3 mr-4 text-2xl"),d=o("flex items-center text-white gap-3"),c=o("transition-colors duration-300 hover:text-accent dark:hover:text-white");function D({className:h,footerData:b,logoLight:N,logoDark:x}){let{about:l,columnOne:r,columnTwo:s,footerBottom:n}=b,w=void 0;return t("footer",{className:o("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",h),children:[a("div",{className:"py-16 md:py-20",children:a("div",{className:"container",children:t("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[t("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[a(g,{logoDark:x,logoLight:N}),a("p",{className:"mb-7 mt-3",children:l.description}),l.socialLinks&&l.socialLinks.length>0&&a("nav",{"aria-label":"social links",children:a("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:l.socialLinks.map((e,i)=>a("li",{className:"bg-primary rounded-full p-3",children:a(m,{"aria-label":e.href,className:"text-2xl",href:e.href,openNewTab:!0,children:a("span",{children:e.icon})})},i))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[a("h3",{className:f,children:r.title}),r.links&&r.links.length>0&&a("nav",{"aria-label":"footer links navigation",children:a("ul",{className:"grid pl-0 gap-2",children:r.links.map(e=>t("li",{className:"flex items-center gap-2.5",children:[a("span",{className:"flex-none text-sm/[1] text-white",children:a(u,{})}),a(m,{href:e.href,openNewTab:e.openNewTab,className:c,children:e.label})]},e.label))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[a("h3",{className:f,children:s.title}),t("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[t("li",{className:d,children:[a("span",{className:p,children:a(k,{})}),a("address",{className:"not-italic",children:s.location})]}),t("li",{className:d,children:[a("span",{className:p,children:a(v,{})}),s.mails&&s.mails.length>0&&a("div",{className:"grid gap-1",children:s.mails.map((e,i)=>a("a",{href:`mailto:${e}`,className:c,children:e},i))})]}),s.phoneNumbers&&s.phoneNumbers.length>0&&t("li",{className:d,children:[a("span",{className:p,children:a(y,{})}),a("div",{className:"grid gap-1",children:s.phoneNumbers.map((e,i)=>a("a",{href:`tel:${e.split(" ").join("")}`,className:c,children:e},i))})]})]})]})]})})}),a("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:a("div",{className:"container",children:t("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[a("p",{children:n.copyrightText}),n.links&&n.links.length>0&&a("nav",{"aria-label":"footer bottom navigation",children:a("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:n.links.map(e=>a("li",{children:a(m,{"aria-label":`Go to page ${e.label}`,href:e.href,openNewTab:e.openNewTab,className:c,children:e.label})},e.label))})})]})})})]})}export{D as a};
@@ -1 +1 @@
1
- import{a as h}from"./chunk-LTTO57ZK.mjs";import{b as u}from"./chunk-CSBGSBEU.mjs";import{a as f,b as p,c as C,d as k,e as x,f as b}from"./chunk-YO3GQYRJ.mjs";import{a as g}from"./chunk-MDJREBVI.mjs";import{Clock as S}from"lucide-react";import{formatDistanceToNow as v}from"date-fns";import{jsx as e,jsxs as r}from"react/jsx-runtime";var P=a=>{switch(a){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},j=a=>{switch(a){case"inProgress":return"In Progress";default:return a.charAt(0).toUpperCase()+a.slice(1)}};function $({data:a}){let{id:s,system:l,fetchLatest:i,taskData:N,error:w}=a||{};if(!s)return null;let t=null,n=!0,d=w,c=i!==void 0?i:!0;if(t=N||{id:s,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:a,id:s,initialFetchLatest:i,system:l,fetchLatest:c,taskData:t,error:d}),c){let{task:o,loading:D,error:L}=h({taskId:s,system:l});t=o,n=D,d=L}else n=!1;let T=P(t?.status||"todo"),y=j(t?.status||"todo"),m=t?.dateLogged||new Date().toISOString();try{let o=new Date(t?.dateLogged||"");isNaN(o.getTime())||(m=v(o,{addSuffix:!0}))}catch{}return r(f,{className:g("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[r(p,{className:"pb-2",children:[r("div",{className:"flex justify-between items-start",children:[e(C,{className:"text-lg font-semibold",children:n?"Loading...":t?.name||"Task"}),e(u,{className:`${T}`,children:y})]}),t?.project&&r(k,{className:"text-sm text-gray-500",children:["Project: ",t.project.name]})]}),e(x,{className:"pb-2",children:n?e("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?e("p",{className:"text-sm text-red-500",children:"Error loading task details"}):e("p",{className:"text-sm text-foreground",children:t?.description||"......."})}),e(b,{className:"pt-2 flex items-center justify-between",children:r("div",{className:"flex items-center text-xs text-gray-500",children:[e(S,{className:"h-3 w-3 mr-1"}),r("span",{children:["Created ",m]}),e("span",{className:"mx-2",children:"\u2022"}),r("span",{children:["Task #",s]})]})})]})}export{$ as a};
1
+ import{a as h}from"./chunk-LTTO57ZK.mjs";import{b as u}from"./chunk-2JKLBLDE.mjs";import{a as f,b as p,c as C,d as k,e as x,f as b}from"./chunk-7WKUKFCT.mjs";import{a as g}from"./chunk-TSEOL53Y.mjs";import{Clock as S}from"lucide-react";import{formatDistanceToNow as v}from"date-fns";import{jsx as e,jsxs as r}from"react/jsx-runtime";var P=a=>{switch(a){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},j=a=>{switch(a){case"inProgress":return"In Progress";default:return a.charAt(0).toUpperCase()+a.slice(1)}};function $({data:a}){let{id:s,system:l,fetchLatest:i,taskData:N,error:w}=a||{};if(!s)return null;let t=null,n=!0,d=w,c=i!==void 0?i:!0;if(t=N||{id:s,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:a,id:s,initialFetchLatest:i,system:l,fetchLatest:c,taskData:t,error:d}),c){let{task:o,loading:D,error:L}=h({taskId:s,system:l});t=o,n=D,d=L}else n=!1;let T=P(t?.status||"todo"),y=j(t?.status||"todo"),m=t?.dateLogged||new Date().toISOString();try{let o=new Date(t?.dateLogged||"");isNaN(o.getTime())||(m=v(o,{addSuffix:!0}))}catch{}return r(f,{className:g("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[r(p,{className:"pb-2",children:[r("div",{className:"flex justify-between items-start",children:[e(C,{className:"text-lg font-semibold",children:n?"Loading...":t?.name||"Task"}),e(u,{className:`${T}`,children:y})]}),t?.project&&r(k,{className:"text-sm text-gray-500",children:["Project: ",t.project.name]})]}),e(x,{className:"pb-2",children:n?e("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?e("p",{className:"text-sm text-red-500",children:"Error loading task details"}):e("p",{className:"text-sm text-foreground",children:t?.description||"......."})}),e(b,{className:"pt-2 flex items-center justify-between",children:r("div",{className:"flex items-center text-xs text-gray-500",children:[e(S,{className:"h-3 w-3 mr-1"}),r("span",{children:["Created ",m]}),e("span",{className:"mx-2",children:"\u2022"}),r("span",{children:["Task #",s]})]})})]})}export{$ as a};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-ISBVFNWD.mjs";import{f as s}from"./chunk-N3B3XNV3.mjs";import m from"clsx";import{jsx as t,jsxs as c}from"react/jsx-runtime";var g=a=>{let{className:i,docs:n,introContent:o}=a;return c("div",{className:m("container",i),children:[o&&t(s,{content:o,enableGutter:!1}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:n?.map((e,p)=>typeof e=="string"?null:t(r,{doc:e,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
1
+ import{a as r}from"./chunk-NGC3C4FW.mjs";import{f as s}from"./chunk-TR52MKZR.mjs";import m from"clsx";import{jsx as t,jsxs as c}from"react/jsx-runtime";var g=a=>{let{className:i,docs:n,introContent:o}=a;return c("div",{className:m("container",i),children:[o&&t(s,{content:o,enableGutter:!1}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:n?.map((e,p)=>typeof e=="string"?null:t(r,{doc:e,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a}from"./chunk-WISC5QJV.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import{PopoverGroup as i}from"@headlessui/react";import{Fragment as p,jsx as e}from"react/jsx-runtime";function d({menuItems:o,wide:n=!1,dark:m=!0}){return e(p,{children:e("menu",{className:r("w-full relative py-2 transition-all duration-300",m?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:e("div",{className:"container backdrop-blur-sm",children:e("div",{className:r("flex items-center justify-between py-0",!n&&"container"),children:e(i,{className:"flex gap-x-12",children:o&&o.map(t=>e(a,{...t},t.name))})})})})})}export{d as a};
4
+ import{a}from"./chunk-UY4BSKPK.mjs";import{a as r}from"./chunk-TSEOL53Y.mjs";import{PopoverGroup as i}from"@headlessui/react";import{Fragment as p,jsx as e}from"react/jsx-runtime";function d({menuItems:o,wide:n=!1,dark:m=!0}){return e(p,{children:e("menu",{className:r("w-full relative py-2 transition-all duration-300",m?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:e("div",{className:"container backdrop-blur-sm",children:e("div",{className:r("flex items-center justify-between py-0",!n&&"container"),children:e(i,{className:"flex gap-x-12",children:o&&o.map(t=>e(a,{...t},t.name))})})})})})}export{d as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as s}from"./chunk-MDJREBVI.mjs";import*as t from"@radix-ui/react-tabs";import{jsx as o}from"react/jsx-runtime";function a({className:e,...i}){return o(t.Root,{"data-slot":"tabs",className:s("flex flex-col gap-2",e),...i})}function r({className:e,...i}){return o(t.List,{"data-slot":"tabs-list",className:s("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...i})}function c({className:e,...i}){return o(t.Trigger,{"data-slot":"tabs-trigger",className:s("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i})}function l({className:e,...i}){return o(t.Content,{"data-slot":"tabs-content",className:s("flex-1 outline-none",e),...i})}export{a,r as b,c,l as d};
4
+ import{a as s}from"./chunk-TSEOL53Y.mjs";import*as t from"@radix-ui/react-tabs";import{jsx as o}from"react/jsx-runtime";function a({className:e,...i}){return o(t.Root,{"data-slot":"tabs",className:s("flex flex-col gap-2",e),...i})}function r({className:e,...i}){return o(t.List,{"data-slot":"tabs-list",className:s("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...i})}function c({className:e,...i}){return o(t.Trigger,{"data-slot":"tabs-trigger",className:s("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i})}function l({className:e,...i}){return o(t.Content,{"data-slot":"tabs-content",className:s("flex-1 outline-none",e),...i})}export{a,r as b,c,l as d};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as s}from"./chunk-MDJREBVI.mjs";import*as r from"react";import*as t from"@radix-ui/react-toast";import{cva as p}from"class-variance-authority";import{X as d}from"lucide-react";import{jsx as a}from"react/jsx-runtime";var g=t.Provider,c=r.forwardRef(({className:e,...o},i)=>a(t.Viewport,{ref:i,className:s("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...o}));c.displayName=t.Viewport.displayName;var m=p("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=r.forwardRef(({className:e,variant:o,...i},n)=>a(t.Root,{ref:n,className:s(m({variant:o}),e),...i}));f.displayName=t.Root.displayName;var l=r.forwardRef(({className:e,...o},i)=>a(t.Action,{ref:i,className:s("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...o}));l.displayName=t.Action.displayName;var u=r.forwardRef(({className:e,...o},i)=>a(t.Close,{ref:i,className:s("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...o,children:a(d,{className:"h-4 w-4"})}));u.displayName=t.Close.displayName;var v=r.forwardRef(({className:e,...o},i)=>a(t.Title,{ref:i,className:s("text-sm font-semibold [&+div]:text-xs",e),...o}));v.displayName=t.Title.displayName;var R=r.forwardRef(({className:e,...o},i)=>a(t.Description,{ref:i,className:s("text-sm opacity-90",e),...o}));R.displayName=t.Description.displayName;export{g as a,c as b,f as c,l as d,u as e,v as f,R as g};
4
+ import{a as s}from"./chunk-TSEOL53Y.mjs";import*as r from"react";import*as t from"@radix-ui/react-toast";import{cva as p}from"class-variance-authority";import{X as d}from"lucide-react";import{jsx as a}from"react/jsx-runtime";var g=t.Provider,c=r.forwardRef(({className:e,...o},i)=>a(t.Viewport,{ref:i,className:s("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...o}));c.displayName=t.Viewport.displayName;var m=p("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=r.forwardRef(({className:e,variant:o,...i},n)=>a(t.Root,{ref:n,className:s(m({variant:o}),e),...i}));f.displayName=t.Root.displayName;var l=r.forwardRef(({className:e,...o},i)=>a(t.Action,{ref:i,className:s("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...o}));l.displayName=t.Action.displayName;var u=r.forwardRef(({className:e,...o},i)=>a(t.Close,{ref:i,className:s("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...o,children:a(d,{className:"h-4 w-4"})}));u.displayName=t.Close.displayName;var v=r.forwardRef(({className:e,...o},i)=>a(t.Title,{ref:i,className:s("text-sm font-semibold [&+div]:text-xs",e),...o}));v.displayName=t.Title.displayName;var R=r.forwardRef(({className:e,...o},i)=>a(t.Description,{ref:i,className:s("text-sm opacity-90",e),...o}));R.displayName=t.Description.displayName;export{g as a,c as b,f as c,l as d,u as e,v as f,R as g};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as c}from"./chunk-Q5XT55O3.mjs";import{a as h}from"./chunk-MDJREBVI.mjs";import{useState as d,useEffect as b}from"react";import{Dialog as k,DialogPanel as N,Disclosure as w,DisclosureButton as x,DisclosurePanel as D}from"@headlessui/react";import{Bars3Icon as S,XMarkIcon as M}from"@heroicons/react/24/outline";import{useTheme as P}from"next-themes";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";var m=["light","dark"];function _({logoLight:o,logoDark:a,menuItems:l,isMenuOpen:n=!0}){let[s,u]=d(!1),{theme:g,setTheme:v}=P(),[p,i]=d(!1),[y,f]=d("light");b(()=>{let t=()=>{window.scrollY>100?u(!0):u(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),b(()=>{f(g||"dark")},[g]);let T=()=>{let t=m[(m.indexOf(y)+1)%m.length];f(t),v(t)};return e(H,{children:r("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${s||n?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[e("nav",{className:h("backdrop-blur-sm text-white p-0",p&&"hidden"),children:r("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[e(c,{logoDark:a,logoLight:o,mobile:!0}),e("div",{className:"flex items-center space-x-4",children:r("button",{type:"button",onClick:()=>i(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[e("span",{className:"sr-only",children:"Open main menu"}),e(S,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),r(k,{open:p,onClose:i,className:"lg:hidden",children:[e("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),r(N,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[r("div",{className:"flex items-stretch justify-between",children:[e(c,{logoDark:a,logoLight:o,mobile:!0}),r("button",{type:"button",onClick:()=>i(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[e("span",{className:"sr-only",children:"Close menu"}),e(M,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),e("div",{className:"mt-6 flow-root",children:e("div",{className:"-my-6 divide-y divide-gray-500/10",children:e("div",{className:"space-y-2 px-2 py-6",children:l&&l.map(t=>e(I,{...t},t.name))})})})]})]})]})})}function I({name:o,items:a,actions:l,href:n}){return!a&&n?e("a",{href:n,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:o}):r(w,{as:"div",className:"-mx-3",children:[e(x,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:o}),e(D,{className:"mt-2 space-y-2",children:a&&a.map(s=>e(x,{as:"a",href:s.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:s.name},s.name))})]})}export{_ as a};
4
+ import{a as c}from"./chunk-532HP37G.mjs";import{a as h}from"./chunk-TSEOL53Y.mjs";import{useState as d,useEffect as b}from"react";import{Dialog as k,DialogPanel as N,Disclosure as w,DisclosureButton as x,DisclosurePanel as D}from"@headlessui/react";import{Bars3Icon as S,XMarkIcon as M}from"@heroicons/react/24/outline";import{useTheme as P}from"next-themes";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";var m=["light","dark"];function _({logoLight:o,logoDark:a,menuItems:l,isMenuOpen:n=!0}){let[s,u]=d(!1),{theme:g,setTheme:v}=P(),[p,i]=d(!1),[y,f]=d("light");b(()=>{let t=()=>{window.scrollY>100?u(!0):u(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),b(()=>{f(g||"dark")},[g]);let T=()=>{let t=m[(m.indexOf(y)+1)%m.length];f(t),v(t)};return e(H,{children:r("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${s||n?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[e("nav",{className:h("backdrop-blur-sm text-white p-0",p&&"hidden"),children:r("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[e(c,{logoDark:a,logoLight:o,mobile:!0}),e("div",{className:"flex items-center space-x-4",children:r("button",{type:"button",onClick:()=>i(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[e("span",{className:"sr-only",children:"Open main menu"}),e(S,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),r(k,{open:p,onClose:i,className:"lg:hidden",children:[e("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),r(N,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[r("div",{className:"flex items-stretch justify-between",children:[e(c,{logoDark:a,logoLight:o,mobile:!0}),r("button",{type:"button",onClick:()=>i(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[e("span",{className:"sr-only",children:"Close menu"}),e(M,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),e("div",{className:"mt-6 flow-root",children:e("div",{className:"-my-6 divide-y divide-gray-500/10",children:e("div",{className:"space-y-2 px-2 py-6",children:l&&l.map(t=>e(I,{...t},t.name))})})})]})]})]})})}function I({name:o,items:a,actions:l,href:n}){return!a&&n?e("a",{href:n,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:o}):r(w,{as:"div",className:"-mx-3",children:[e(x,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:o}),e(D,{className:"mt-2 space-y-2",children:a&&a.map(s=>e(x,{as:"a",href:s.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:s.name},s.name))})]})}export{_ as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as h}from"./chunk-FT3AE7L2.mjs";import{a as n,b as m,c,d as p}from"./chunk-KY7WQYN4.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a as v}from"./chunk-YO3GQYRJ.mjs";import{a as d}from"./chunk-MDJREBVI.mjs";import{Clock as x,Edit3 as C,Plus as S,Trash2 as w}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function M({sessions:o,currentSession:g,teams:y,onNewChat:u,onSessionSelect:N,onSessionEdit:r,onSessionDelete:l,className:f}){return t(n,{children:t("div",{className:`space-y-4 h-full ${f||""}`,children:s(v,{className:"shadow-sm h-full",children:[t("div",{className:"p-4 border-b",children:s("div",{className:"flex items-center justify-between",children:[s("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[t(x,{className:"h-4 w-4"}),"Recent Chats"]}),s(i,{onClick:u,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[t(S,{className:"h-3 w-3"}),"New"]})]})}),t(h,{className:"h-[600px]",children:t("div",{className:"p-2",children:o.length===0?t("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):o.map(e=>s(m,{children:[t(c,{asChild:!0,children:t("div",{className:d("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",g?.id===e.id&&"bg-muted border"),onClick:()=>N(e),children:s("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[s("div",{className:"min-w-0 overflow-hidden",children:[t("h4",{className:"font-medium text-sm truncate mb-1",children:e.title}),t("p",{className:"text-xs text-muted-foreground line-clamp-2",children:e.lastMessage})]}),s("div",{className:"flex items-start gap-1 pt-0.5",children:[r&&t(i,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),r(e.id)},children:t(C,{className:"h-3 w-3"})}),l&&t(i,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),l(e.id)},children:t(w,{className:"h-3 w-3"})})]})]})})}),t(p,{side:"right",className:"max-w-xs",children:s("div",{className:"space-y-1",children:[t("p",{className:"font-medium text-sm",children:e.title}),t("p",{className:"text-xs",children:e.lastMessage})]})})]},e.id))})})]})})})}export{M as a};
4
+ import{a as h}from"./chunk-JVJG2LOA.mjs";import{a as n,b as m,c,d as p}from"./chunk-BIAOADJS.mjs";import{b as i}from"./chunk-7Z3TOFNL.mjs";import{a as v}from"./chunk-7WKUKFCT.mjs";import{a as d}from"./chunk-TSEOL53Y.mjs";import{Clock as x,Edit3 as C,Plus as S,Trash2 as w}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function M({sessions:o,currentSession:g,teams:y,onNewChat:u,onSessionSelect:N,onSessionEdit:r,onSessionDelete:l,className:f}){return t(n,{children:t("div",{className:`space-y-4 h-full ${f||""}`,children:s(v,{className:"shadow-sm h-full",children:[t("div",{className:"p-4 border-b",children:s("div",{className:"flex items-center justify-between",children:[s("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[t(x,{className:"h-4 w-4"}),"Recent Chats"]}),s(i,{onClick:u,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[t(S,{className:"h-3 w-3"}),"New"]})]})}),t(h,{className:"h-[600px]",children:t("div",{className:"p-2",children:o.length===0?t("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):o.map(e=>s(m,{children:[t(c,{asChild:!0,children:t("div",{className:d("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",g?.id===e.id&&"bg-muted border"),onClick:()=>N(e),children:s("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[s("div",{className:"min-w-0 overflow-hidden",children:[t("h4",{className:"font-medium text-sm truncate mb-1",children:e.title}),t("p",{className:"text-xs text-muted-foreground line-clamp-2",children:e.lastMessage})]}),s("div",{className:"flex items-start gap-1 pt-0.5",children:[r&&t(i,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),r(e.id)},children:t(C,{className:"h-3 w-3"})}),l&&t(i,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),l(e.id)},children:t(w,{className:"h-3 w-3"})})]})]})})}),t(p,{side:"right",className:"max-w-xs",children:s("div",{className:"space-y-1",children:[t("p",{className:"font-medium text-sm",children:e.title}),t("p",{className:"text-xs",children:e.lastMessage})]})})]},e.id))})})]})})})}export{M as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as o}from"./chunk-CGDLOY7W.mjs";import{Highlight as i,themes as d}from"prism-react-renderer";import{jsx as e,jsxs as s}from"react/jsx-runtime";var u=({code:t,language:l=""})=>t?e(i,{code:t,language:l,theme:d.vsDark,children:({getLineProps:p,getTokenProps:n,tokens:m})=>s("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[m.map((a,r)=>s("div",{...p({className:"table-row",line:a}),children:[e("span",{className:"table-cell select-none text-right text-white/25",children:r+1}),e("span",{className:"table-cell pl-4",children:a.map((c,g)=>e("span",{...n({token:c})},g))})]},r)),e(o,{code:t})]})}):null;export{u as a};
4
+ import{a as o}from"./chunk-UJ6M7EV5.mjs";import{Highlight as i,themes as d}from"prism-react-renderer";import{jsx as e,jsxs as s}from"react/jsx-runtime";var u=({code:t,language:l=""})=>t?e(i,{code:t,language:l,theme:d.vsDark,children:({getLineProps:p,getTokenProps:n,tokens:m})=>s("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[m.map((a,r)=>s("div",{...p({className:"table-row",line:a}),children:[e("span",{className:"table-cell select-none text-right text-white/25",children:r+1}),e("span",{className:"table-cell pl-4",children:a.map((c,g)=>e("span",{...n({token:c})},g))})]},r)),e(o,{code:t})]})}):null;export{u as a};