pulse-dashboard 1.2.7 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +63 -10
  3. package/.next/fallback-build-manifest.json +6 -3
  4. package/.next/images-manifest.json +1 -0
  5. package/.next/next-minimal-server.js.nft.json +1 -1
  6. package/.next/next-server.js.nft.json +1 -1
  7. package/.next/prerender-manifest.json +25 -13
  8. package/.next/required-server-files.json +69 -15
  9. package/.next/routes-manifest.json +1 -0
  10. package/.next/server/app/_global-error/page/build-manifest.json +13 -8
  11. package/.next/server/app/_global-error/page.js +9 -9
  12. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  13. package/.next/server/app/_global-error/page_client-reference-manifest.js +8 -2
  14. package/.next/server/app/_global-error.html +1 -2
  15. package/.next/server/app/_global-error.meta +19 -5
  16. package/.next/server/app/_global-error.rsc +17 -11
  17. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +21 -4
  18. package/.next/server/app/_global-error.segments/_tree.segment.rsc +2 -1
  19. package/.next/server/app/_not-found/page/build-manifest.json +13 -8
  20. package/.next/server/app/_not-found/page.js +13 -12
  21. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  22. package/.next/server/app/_not-found/page_client-reference-manifest.js +9 -2
  23. package/.next/server/app/_not-found.html +2 -2
  24. package/.next/server/app/_not-found.meta +24 -6
  25. package/.next/server/app/_not-found.rsc +23 -18
  26. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +28 -4
  27. package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -2
  28. package/.next/server/app/api/analyze-test/route/build-manifest.json +5 -4
  29. package/.next/server/app/api/analyze-test/route.js +4 -3
  30. package/.next/server/app/api/analyze-test/route.js.nft.json +1 -1
  31. package/.next/server/app/api/analyze-test/route_client-reference-manifest.js +5 -2
  32. package/.next/server/app/api/assets/[...slug]/route/build-manifest.json +5 -4
  33. package/.next/server/app/api/assets/[...slug]/route.js +4 -4
  34. package/.next/server/app/api/assets/[...slug]/route.js.nft.json +1 -1
  35. package/.next/server/app/api/assets/[...slug]/route_client-reference-manifest.js +5 -2
  36. package/.next/server/app/api/current-run/route/build-manifest.json +5 -4
  37. package/.next/server/app/api/current-run/route.js +4 -3
  38. package/.next/server/app/api/current-run/route.js.nft.json +1 -1
  39. package/.next/server/app/api/current-run/route_client-reference-manifest.js +5 -2
  40. package/.next/server/app/api/historical-trends/route/build-manifest.json +5 -4
  41. package/.next/server/app/api/historical-trends/route/server-reference-manifest.json +32 -1
  42. package/.next/server/app/api/historical-trends/route.js +5 -4
  43. package/.next/server/app/api/historical-trends/route.js.nft.json +1 -1
  44. package/.next/server/app/api/historical-trends/route_client-reference-manifest.js +5 -2
  45. package/.next/server/app/api/report-config/route/build-manifest.json +5 -4
  46. package/.next/server/app/api/report-config/route.js +4 -3
  47. package/.next/server/app/api/report-config/route.js.nft.json +1 -1
  48. package/.next/server/app/api/report-config/route_client-reference-manifest.js +5 -2
  49. package/.next/server/app/api/reports/[filename]/route/build-manifest.json +5 -4
  50. package/.next/server/app/api/reports/[filename]/route.js +4 -3
  51. package/.next/server/app/api/reports/[filename]/route.js.nft.json +1 -1
  52. package/.next/server/app/api/reports/[filename]/route_client-reference-manifest.js +5 -2
  53. package/.next/server/app/api/run-command/route/build-manifest.json +5 -4
  54. package/.next/server/app/api/run-command/route.js +4 -3
  55. package/.next/server/app/api/run-command/route.js.nft.json +1 -1
  56. package/.next/server/app/api/run-command/route_client-reference-manifest.js +5 -2
  57. package/.next/server/app/index.html +2 -2
  58. package/.next/server/app/index.meta +19 -5
  59. package/.next/server/app/index.rsc +26 -15
  60. package/.next/server/app/index.segments/__PAGE__.segment.rsc +31 -5
  61. package/.next/server/app/index.segments/_tree.segment.rsc +3 -2
  62. package/.next/server/app/page/build-manifest.json +13 -8
  63. package/.next/server/app/page/react-loadable-manifest.json +1 -1
  64. package/.next/server/app/page/server-reference-manifest.json +3 -8
  65. package/.next/server/app/page.js +15 -14
  66. package/.next/server/app/page.js.nft.json +1 -1
  67. package/.next/server/app/page_client-reference-manifest.js +9 -2
  68. package/.next/server/app/test/[testId]/page/build-manifest.json +13 -8
  69. package/.next/server/app/test/[testId]/page/server-reference-manifest.json +3 -8
  70. package/.next/server/app/test/[testId]/page.js +15 -14
  71. package/.next/server/app/test/[testId]/page.js.nft.json +1 -1
  72. package/.next/server/app/test/[testId]/page_client-reference-manifest.js +9 -2
  73. package/.next/server/chunks/[externals]__1bks6n1-hi3u2._.js +3 -0
  74. package/.next/server/chunks/[root-of-the-server]__08mw5-21_l0y0._.js +3 -0
  75. package/.next/server/chunks/[root-of-the-server]__0ainik_9ptfd4._.js +3 -0
  76. package/.next/server/chunks/[root-of-the-server]__0d2a-3_xzfq9t._.js +3 -0
  77. package/.next/server/chunks/[root-of-the-server]__0k8r_2i_c7804._.js +3 -0
  78. package/.next/server/chunks/[root-of-the-server]__0ku061j3k9q9v._.js +3 -0
  79. package/.next/server/chunks/[root-of-the-server]__1iga9nxrdvdxp._.js +63 -0
  80. package/.next/server/chunks/[root-of-the-server]__1l48ghhplu7u9._.js +3 -0
  81. package/.next/server/chunks/[turbopack]_runtime.js +474 -271
  82. package/.next/server/chunks/_021wero7wk5g-._.js +3 -0
  83. package/.next/server/chunks/_0f66qkfi1bpbn._.js +4 -0
  84. package/.next/server/chunks/_0omvyrynvgj4q._.js +3 -0
  85. package/.next/server/chunks/_0rj3uq83vare4._.js +3 -0
  86. package/.next/server/chunks/_1bftf09jweaep._.js +3 -0
  87. package/.next/server/chunks/_1e44q68l7kg3i._.js +3 -0
  88. package/.next/server/chunks/_next-internal_server_app_api_analyze-test_route_actions_mjs_0uo58g5gzd0uc._.js +3 -0
  89. package/.next/server/chunks/_next-internal_server_app_api_assets_[___slug]_route_actions_mjs_04b62p5ullv5v._.js +3 -0
  90. package/.next/server/chunks/_next-internal_server_app_api_current-run_route_actions_mjs_05xzsg3gk7k2q._.js +3 -0
  91. package/.next/server/chunks/_next-internal_server_app_api_report-config_route_actions_mjs_175cyh31s_2_h._.js +3 -0
  92. package/.next/server/chunks/_next-internal_server_app_api_reports_[filename]_route_actions_mjs_1803al6ouhkyr._.js +3 -0
  93. package/.next/server/chunks/_next-internal_server_app_api_run-command_route_actions_mjs_0o7ewtw5zp6ao._.js +3 -0
  94. package/.next/server/chunks/ssr/[root-of-the-server]__077mujmfcjrlq._.js +3 -0
  95. package/.next/server/chunks/ssr/[root-of-the-server]__0954o-19g2le2._.js +3 -0
  96. package/.next/server/chunks/ssr/[root-of-the-server]__0bqmj2mimgfp2._.js +3 -0
  97. package/.next/server/chunks/ssr/[root-of-the-server]__0dv9b4zkg5hdn._.js +3 -0
  98. package/.next/server/chunks/ssr/[root-of-the-server]__0ivd4vt5v8vsz._.js +3 -0
  99. package/.next/server/chunks/ssr/[root-of-the-server]__10tkfx-ofp61y._.js +3 -0
  100. package/.next/server/chunks/ssr/[root-of-the-server]__19zw3uu3ckhlo._.js +3 -0
  101. package/.next/server/chunks/ssr/[root-of-the-server]__1hsaagmb2fvap._.js +14 -0
  102. package/.next/server/chunks/ssr/[root-of-the-server]__1i9r59yk4i69p._.js +3 -0
  103. package/.next/server/chunks/ssr/[root-of-the-server]__1jljxgnhlm87p._.js +3 -0
  104. package/.next/server/chunks/ssr/[root-of-the-server]__1ycj5t-2qcq3e._.js +3 -0
  105. package/.next/server/chunks/ssr/[turbopack]_runtime.js +474 -271
  106. package/.next/server/chunks/ssr/_0-a_-dy7ui975._.js +5 -0
  107. package/.next/server/chunks/ssr/_04dqze6ixrsvs._.js +4 -0
  108. package/.next/server/chunks/ssr/_0x914xxedzmgf._.js +32 -0
  109. package/.next/server/chunks/ssr/_1-bq-mvkidpbm._.js +27 -0
  110. package/.next/server/chunks/ssr/_1z0ejft8z3bqp._.js +3 -0
  111. package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_mjs_1ctekssbjfw_g._.js +3 -0
  112. package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_mjs_1ghl5fbynabiq._.js +3 -0
  113. package/.next/server/chunks/ssr/node_modules_0gxlxpuufujz9._.js +33 -0
  114. package/.next/server/chunks/ssr/node_modules_0mtji6mpjxw71._.js +3 -0
  115. package/.next/server/chunks/ssr/node_modules_@swc_helpers_cjs__interop_require_default_cjs_1ztp13a5szri_._.js +3 -0
  116. package/.next/server/chunks/ssr/node_modules_next_dist_1dylt_x2lwntt._.js +3 -0
  117. package/.next/server/chunks/ssr/node_modules_next_dist_1tvl46c87-b1a._.js +8 -0
  118. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0bew68i643j53._.js +33 -0
  119. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_1vdct3pkbqi_w._.js +3 -0
  120. package/.next/server/chunks/ssr/{node_modules_next_dist_client_components_builtin_forbidden_45780354.js → node_modules_next_dist_client_components_builtin_forbidden_0symwr9mbf-fh.js} +2 -2
  121. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0q-w892nagajq.js +3 -0
  122. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_not-found_1vvgosrc2w28f.js +3 -0
  123. package/.next/server/chunks/ssr/{node_modules_next_dist_client_components_builtin_unauthorized_15817684.js → node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0xky89qu.js} +2 -2
  124. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_03a44q3-aihnz.js +3 -0
  125. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0k6_l1jr3jsqq.js +3 -0
  126. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0min3q4oeyf8a.js +3 -0
  127. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_19--w_z4y02i7.js +3 -0
  128. package/.next/server/chunks/ssr/src_0aglj-npucwwk._.js +23 -0
  129. package/.next/server/chunks/ssr/src_components_ui_toaster_tsx_0ll6bbq4_t7m_._.js +3 -0
  130. package/.next/server/middleware-build-manifest.js +65 -13
  131. package/.next/server/prefetch-hints.json +34 -0
  132. package/.next/server/preview-props.json +5 -0
  133. package/.next/server/server-reference-manifest.js +1 -1
  134. package/.next/server/server-reference-manifest.json +27 -19
  135. package/.next/static/5NYK4iijm2Nff3usU87JA/_clientMiddlewareManifest.js +1 -0
  136. package/.next/static/chunks/06u3fo34cc4ga.js +1 -0
  137. package/.next/static/chunks/07ceko_qv-n_d.js +1 -0
  138. package/.next/static/chunks/17tig9fuzy99m.js +1 -0
  139. package/.next/static/chunks/1axqivg23ezfb.js +1 -0
  140. package/.next/static/chunks/1e2nvb4q-3vse.js +1 -0
  141. package/.next/static/chunks/1ltrs9eixy8gu.js +3 -0
  142. package/.next/static/chunks/1n-k9_9iohc4w.js +1 -0
  143. package/.next/static/chunks/1oyrxi90x4jw8.js +31 -0
  144. package/.next/static/chunks/2510hisbrlwfi.js +1 -0
  145. package/.next/static/chunks/2viv-yky3p-jf.js +1 -0
  146. package/.next/static/chunks/3-ptszisyxsi8.js +5 -0
  147. package/.next/static/chunks/3f-g_qcegf3q4.js +22 -0
  148. package/.next/static/chunks/3j6vhmh5ev771.js +1 -0
  149. package/.next/static/chunks/3qtedoc85mjel.js +1 -0
  150. package/.next/static/chunks/3vfh62-53kqxb.css +1 -0
  151. package/.next/static/chunks/3vukeef84f3mg.js +1 -0
  152. package/.next/static/chunks/3z98c46ozxe__.js +1 -0
  153. package/.next/static/chunks/turbopack-2lihmh2pdnr2x.js +1 -0
  154. package/dist/components/pulse-dashboard/DashboardOverviewCharts.jsx +16 -16
  155. package/dist/components/pulse-dashboard/DashboardOverviewCharts.jsx.map +1 -1
  156. package/dist/components/pulse-dashboard/FailureCategorizationView.jsx +5 -5
  157. package/dist/components/pulse-dashboard/FailureCategorizationView.jsx.map +1 -1
  158. package/dist/components/pulse-dashboard/FlakyTestsWidget.d.ts.map +1 -1
  159. package/dist/components/pulse-dashboard/FlakyTestsWidget.jsx +44 -38
  160. package/dist/components/pulse-dashboard/FlakyTestsWidget.jsx.map +1 -1
  161. package/dist/components/pulse-dashboard/LiveTestResults.d.ts.map +1 -1
  162. package/dist/components/pulse-dashboard/LiveTestResults.jsx +32 -24
  163. package/dist/components/pulse-dashboard/LiveTestResults.jsx.map +1 -1
  164. package/dist/components/pulse-dashboard/PulseCommandView.jsx +3 -3
  165. package/dist/components/pulse-dashboard/PulseCommandView.jsx.map +1 -1
  166. package/dist/components/pulse-dashboard/PulseDashboard.d.ts.map +1 -1
  167. package/dist/components/pulse-dashboard/PulseDashboard.jsx +1 -2
  168. package/dist/components/pulse-dashboard/PulseDashboard.jsx.map +1 -1
  169. package/dist/components/pulse-dashboard/SettingsView.jsx +2 -2
  170. package/dist/components/pulse-dashboard/SettingsView.jsx.map +1 -1
  171. package/dist/components/pulse-dashboard/SummaryMetrics.jsx +7 -7
  172. package/dist/components/pulse-dashboard/SummaryMetrics.jsx.map +1 -1
  173. package/dist/components/pulse-dashboard/SystemInformationWidget.jsx +1 -1
  174. package/dist/components/pulse-dashboard/SystemInformationWidget.jsx.map +1 -1
  175. package/dist/components/pulse-dashboard/TestDetailsClientPage.d.ts.map +1 -1
  176. package/dist/components/pulse-dashboard/TestDetailsClientPage.jsx +105 -75
  177. package/dist/components/pulse-dashboard/TestDetailsClientPage.jsx.map +1 -1
  178. package/dist/components/pulse-dashboard/TestItem.jsx +8 -8
  179. package/dist/components/pulse-dashboard/TestItem.jsx.map +1 -1
  180. package/dist/components/pulse-dashboard/TestStepItemRecursive.jsx +3 -3
  181. package/dist/components/pulse-dashboard/TrendAnalysis.jsx +11 -11
  182. package/dist/components/pulse-dashboard/TrendAnalysis.jsx.map +1 -1
  183. package/dist/components/ui/alert.jsx +1 -1
  184. package/dist/components/ui/alert.jsx.map +1 -1
  185. package/dist/components/ui/button.jsx +3 -3
  186. package/dist/components/ui/card.jsx +1 -1
  187. package/dist/components/ui/card.jsx.map +1 -1
  188. package/dist/components/ui/tabs.jsx +2 -2
  189. package/dist/components/ui/tabs.jsx.map +1 -1
  190. package/dist/styles.css +1 -1
  191. package/package.json +12 -7
  192. package/.next/server/app/_global-error.segments/_full.segment.rsc +0 -12
  193. package/.next/server/app/_global-error.segments/_head.segment.rsc +0 -5
  194. package/.next/server/app/_global-error.segments/_index.segment.rsc +0 -4
  195. package/.next/server/app/_not-found.segments/_full.segment.rsc +0 -20
  196. package/.next/server/app/_not-found.segments/_head.segment.rsc +0 -6
  197. package/.next/server/app/_not-found.segments/_index.segment.rsc +0 -7
  198. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +0 -4
  199. package/.next/server/app/index.segments/_full.segment.rsc +0 -17
  200. package/.next/server/app/index.segments/_head.segment.rsc +0 -6
  201. package/.next/server/app/index.segments/_index.segment.rsc +0 -7
  202. package/.next/server/chunks/[externals]__858b6c42._.js +0 -3
  203. package/.next/server/chunks/[externals]__f52e4eb0._.js +0 -3
  204. package/.next/server/chunks/[root-of-the-server]__06c6346e._.js +0 -3
  205. package/.next/server/chunks/[root-of-the-server]__42738744._.js +0 -3
  206. package/.next/server/chunks/[root-of-the-server]__7113a113._.js +0 -3
  207. package/.next/server/chunks/[root-of-the-server]__71e0e3b9._.js +0 -21
  208. package/.next/server/chunks/[root-of-the-server]__74bb0547._.js +0 -3
  209. package/.next/server/chunks/[root-of-the-server]__c159e29b._.js +0 -3
  210. package/.next/server/chunks/[root-of-the-server]__d7fdaf5c._.js +0 -3
  211. package/.next/server/chunks/_next-internal_server_app_api_analyze-test_route_actions_e71f7d12.js +0 -3
  212. package/.next/server/chunks/_next-internal_server_app_api_assets_[___slug]_route_actions_a10bfa98.js +0 -3
  213. package/.next/server/chunks/_next-internal_server_app_api_current-run_route_actions_ed7eca66.js +0 -3
  214. package/.next/server/chunks/_next-internal_server_app_api_historical-trends_route_actions_ab165c16.js +0 -3
  215. package/.next/server/chunks/_next-internal_server_app_api_report-config_route_actions_7f74a29f.js +0 -3
  216. package/.next/server/chunks/_next-internal_server_app_api_reports_[filename]_route_actions_54bb3323.js +0 -3
  217. package/.next/server/chunks/_next-internal_server_app_api_run-command_route_actions_b3861930.js +0 -3
  218. package/.next/server/chunks/node_modules_next_dist_25e30e9d._.js +0 -4
  219. package/.next/server/chunks/ssr/[root-of-the-server]__15600e29._.js +0 -3
  220. package/.next/server/chunks/ssr/[root-of-the-server]__22ecdfea._.js +0 -3
  221. package/.next/server/chunks/ssr/[root-of-the-server]__4a382b8f._.js +0 -3
  222. package/.next/server/chunks/ssr/[root-of-the-server]__71dd9d42._.js +0 -4
  223. package/.next/server/chunks/ssr/[root-of-the-server]__77c90d39._.js +0 -3
  224. package/.next/server/chunks/ssr/[root-of-the-server]__84313e76._.js +0 -3
  225. package/.next/server/chunks/ssr/[root-of-the-server]__aed7e4d8._.js +0 -3
  226. package/.next/server/chunks/ssr/[root-of-the-server]__b3b1f5eb._.js +0 -4
  227. package/.next/server/chunks/ssr/[root-of-the-server]__b9356576._.js +0 -4
  228. package/.next/server/chunks/ssr/[root-of-the-server]__c507bbfe._.js +0 -3
  229. package/.next/server/chunks/ssr/[root-of-the-server]__c829c7d1._.js +0 -3
  230. package/.next/server/chunks/ssr/[root-of-the-server]__efd22fba._.js +0 -3
  231. package/.next/server/chunks/ssr/[root-of-the-server]__f682065b._.js +0 -3
  232. package/.next/server/chunks/ssr/_134010c8._.js +0 -3
  233. package/.next/server/chunks/ssr/_42495f68._.js +0 -7
  234. package/.next/server/chunks/ssr/_7bd96dfb._.js +0 -4
  235. package/.next/server/chunks/ssr/_8521b44e._.js +0 -5
  236. package/.next/server/chunks/ssr/_97aa43fe._.js +0 -6
  237. package/.next/server/chunks/ssr/_c1309523._.js +0 -4
  238. package/.next/server/chunks/ssr/_ed1fd268._.js +0 -5
  239. package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_75761787.js +0 -3
  240. package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_554ec2bf.js +0 -3
  241. package/.next/server/chunks/ssr/node_modules_entities_lib_maps_6c3ea140._.js +0 -3
  242. package/.next/server/chunks/ssr/node_modules_f76a24fb._.js +0 -3
  243. package/.next/server/chunks/ssr/node_modules_next_dist_08570d7f._.js +0 -4
  244. package/.next/server/chunks/ssr/node_modules_next_dist_174ae28d._.js +0 -10
  245. package/.next/server/chunks/ssr/node_modules_next_dist_4b63a0e1._.js +0 -3
  246. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js +0 -3
  247. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js +0 -3
  248. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_65a7265e.js +0 -4
  249. package/.next/server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js +0 -6
  250. package/.next/server/chunks/ssr/src_ce5be59b._.js +0 -23
  251. package/.next/server/chunks/ssr/src_components_ui_toaster_tsx_475f3ca1._.js +0 -3
  252. package/.next/static/chunks/4acc398e96387f8f.js +0 -1
  253. package/.next/static/chunks/4e6c102ba15cb8f3.js +0 -1
  254. package/.next/static/chunks/52a0548698d96d34.js +0 -1
  255. package/.next/static/chunks/550f12513ad3d3f5.js +0 -1
  256. package/.next/static/chunks/57a4e405cd49f084.js +0 -1
  257. package/.next/static/chunks/61cc43b3d7ad2990.js +0 -1
  258. package/.next/static/chunks/6b48616ac349ee78.js +0 -1
  259. package/.next/static/chunks/7d11f12dde2f0803.js +0 -3
  260. package/.next/static/chunks/a6bf5da24e4e4780.js +0 -2
  261. package/.next/static/chunks/aee6c7720838f8a2.js +0 -1
  262. package/.next/static/chunks/b2baab7e78ca16b2.js +0 -1
  263. package/.next/static/chunks/bbc54cf19103bcba.js +0 -5
  264. package/.next/static/chunks/c059c9ec2d096e23.css +0 -1
  265. package/.next/static/chunks/c593fbb06045d009.js +0 -1
  266. package/.next/static/chunks/f091501564eb2ea3.js +0 -4
  267. package/.next/static/chunks/f0dbf61c632d4a51.js +0 -1
  268. package/.next/static/chunks/f4aa6f394526ed88.js +0 -3
  269. package/.next/static/chunks/fa82d7dec6790f39.js +0 -1
  270. package/.next/static/chunks/ff1a16fafef87110.js +0 -1
  271. package/.next/static/chunks/turbopack-80629672101bb6b8.js +0 -4
  272. package/.next/static/qMIxqotvwHfyIWhQnz8JW/_clientMiddlewareManifest.json +0 -1
  273. /package/.next/static/{qMIxqotvwHfyIWhQnz8JW → 5NYK4iijm2Nff3usU87JA}/_buildManifest.js +0 -0
  274. /package/.next/static/{qMIxqotvwHfyIWhQnz8JW → 5NYK4iijm2Nff3usU87JA}/_ssgManifest.js +0 -0
  275. /package/.next/static/chunks/{a6dad97d9634a72d.js → 0cz1d0mv5g_q7.js} +0 -0
@@ -0,0 +1,5 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return r},useLinkStatus:function(){return t}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(90809),g=a.r(43476),h=f._(a.r(71645)),i=a.r(95057),j=a.r(8372),k=a.r(18581),l=a.r(18967),m=a.r(5550),n=a.r(88540),o=a.r(91949),p=a.r(73668),q=a.r(9396);function r(b){var c;let d,e,f,r,[t,u]=(0,h.useOptimistic)(o.IDLE_LINK_STATUS),v=(0,h.useRef)(null),{href:w,as:x,children:y,prefetch:z=null,passHref:A,replace:B,shallow:C,scroll:D,onClick:E,onMouseEnter:F,onTouchStart:G,legacyBehavior:H=!1,onNavigate:I,transitionTypes:J,ref:K,unstable_dynamicOnHover:L,...M}=b;d=y,H&&("string"==typeof d||"number"==typeof d)&&(d=(0,g.jsx)("a",{children:d}));let N=h.default.useContext(j.AppRouterContext),O=!1!==z;switch(z){case!0:case"prefetch":e=q.AppStage.Prefetch;break;case"navigation":e=q.AppStage.Navigation;break;default:e=q.AppStage.Shell}let P="string"==typeof(c=x||w)?c:(0,i.formatUrl)(c);if(H){if(d?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");f=h.default.Children.only(d)}let Q=H?f&&"object"==typeof f&&f.ref:K,R,S=h.default.useCallback(a=>(null!==N&&(v.current=(0,o.mountLinkInstance)(a,P,N,e,O,u,R)),()=>{v.current&&((0,o.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,o.unmountPrefetchableInstance)(a)}),[O,P,N,e,u,R]),T={ref:(0,k.useMergedRef)(S,Q),onClick(b){H||"function"!=typeof E||E(b),H&&f.props&&"function"==typeof f.props.onClick&&f.props.onClick(b),!N||b.defaultPrevented||function(b,c,d,e,f,g,h,i="none"){if("u">typeof window){let j,{nodeName:k}=b.currentTarget;if("A"===k.toUpperCase()&&((j=b.currentTarget.getAttribute("target"))&&"_self"!==j||b.metaKey||b.ctrlKey||b.shiftKey||b.altKey||b.nativeEvent&&2===b.nativeEvent.which)||b.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(c)){e&&(b.preventDefault(),location.replace(c));return}if(b.preventDefault(),g){let a=!1;if(g({preventDefault:()=>{a=!0}}),a)return}let{navigate:l}=a.r(32916);l(c,e?"replace":"push",!1===f?n.ScrollBehavior.NoScroll:n.ScrollBehavior.Default,d.current,h,i)}}(b,P,v,B,D,I,J,!1===z?"none":!0===z||"prefetch"===z||"navigation"===z?"full":"auto")},onMouseEnter(a){H||"function"!=typeof F||F(a),H&&f.props&&"function"==typeof f.props.onMouseEnter&&f.props.onMouseEnter(a),N&&O&&(0,o.onNavigationIntent)(a.currentTarget,!0===L)},onTouchStart:function(a){H||"function"!=typeof G||G(a),H&&f.props&&"function"==typeof f.props.onTouchStart&&f.props.onTouchStart(a),N&&O&&(0,o.onNavigationIntent)(a.currentTarget,!0===L)}};return(0,l.isAbsoluteUrl)(P)?T.href=P:H&&!A&&("a"!==f.type||"href"in f.props)||(T.href=(0,m.addBasePath)(P)),r=H?h.default.cloneElement(f,T):(0,g.jsx)("a",{...M,...T,children:d}),(0,g.jsx)(s.Provider,{value:t,children:r})}let s=(0,h.createContext)(o.IDLE_LINK_STATUS),t=()=>(0,h.useContext)(s);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},90317,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0});var d={bindSnapshot:function(){return k},createAsyncLocalStorage:function(){return i},createSnapshot:function(){return l},getOrCreateGlobalAsyncLocalStorage:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class g{disable(){throw f}getStore(){}run(){throw f}exit(){throw f}enterWith(){throw f}static bind(a){return a}}let h="u">typeof globalThis&&globalThis.AsyncLocalStorage;function i(){return h?new h:new g}function j(a){let b=Symbol.for(`@next/${a}@16.5.0`),c=globalThis;return c[b]??=i()}function k(a){return h?h.bind(a):g.bind(a)}function l(){return h?h.snapshot():function(a,...b){return a(...b)}}},42344,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"workAsyncStorageInstance",{enumerable:!0,get:function(){return d}});let d=(0,a.r(90317).getOrCreateGlobalAsyncLocalStorage)("work-async-storage")},63599,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"workAsyncStorage",{enumerable:!0,get:function(){return d.workAsyncStorageInstance}});let d=a.r(42344)},70703,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return e}});let d=a.r(55682)._(a.r(69093));function e(a,b){let c={};"function"==typeof a&&(c.loader=a);let e={...c,...b};return(0,d.default)({...e,modules:e.loadableGenerated?.modules})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},9885,(a,b,c)=>{function d(a){return a.split("/").map(a=>encodeURIComponent(a)).join("/")}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"encodeURIPath",{enumerable:!0,get:function(){return d}})},67585,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"BailoutToCSRForNextDynamic",{enumerable:!0,get:function(){return g}});let d=a.r(71645),e=a.r(74080);a.r(32061);let f=a.r(49354).createReactBrowserBailoutReason.bind(null,"next/dynamic");function g({children:a}){return(0,d.use)((0,e.browser)(f)),a}},69093,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return j}});let d=a.r(43476),e=a.r(71645),f=a.r(67585),g=a.r(52157);function h(a){return{default:a&&"default"in a?a.default:a}}let i={loader:()=>Promise.resolve(h(()=>null)),loading:null,ssr:!0},j=function(a){let b={...i,...a},c=(0,e.lazy)(()=>b.loader().then(h)),j=b.loading;function k(a){let h=j?(0,d.jsx)(j,{isLoading:!0,pastDelay:!0,error:null}):null,i=!b.ssr||!!b.loading,k=i?e.Suspense:e.Fragment,l=b.ssr?(0,d.jsxs)(d.Fragment,{children:["u"<typeof window?(0,d.jsx)(g.PreloadChunks,{moduleIds:b.modules}):null,(0,d.jsx)(c,{...a})]}):(0,d.jsx)(f.BailoutToCSRForNextDynamic,{children:(0,d.jsx)(c,{...a})});return(0,d.jsx)(k,{...i?{fallback:h}:{},children:l})}return k.displayName="LoadableComponent",k}},52157,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"PreloadChunks",{enumerable:!0,get:function(){return i}});let d=a.r(43476),e=a.r(74080),f=a.r(63599),g=a.r(9885),h=a.r(43369);function i({moduleIds:a}){if("u">typeof window)return null;let b=f.workAsyncStorage.getStore();if(void 0===b)return null;let c=[];if(b.reactLoadableManifest&&a){let d=b.reactLoadableManifest;for(let b of a){if(!d[b])continue;let a=d[b].files;c.push(...a)}}if(0===c.length)return null;let j=(0,h.getAssetTokenQuery)();return(0,d.jsx)(d.Fragment,{children:c.map(a=>{let c=`${b.assetPrefix}/_next/${(0,g.encodeURIPath)(a)}${j}`;return a.endsWith(".css")?(0,d.jsx)("link",{precedence:"dynamic",href:c,rel:"stylesheet",as:"style",nonce:b.nonce},a):((0,e.preload)(c,{as:"script",fetchPriority:"low",nonce:b.nonce}),null)})})}},49354,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0});var d={createReactBrowserBailoutReason:function(){return g},getReactBrowserBailoutReason:function(){return h},isNextBrowserBailoutError:function(){return i}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=Symbol.for("next.browser-bailout-reason");function g(a){return{$$typeof:f,reason:a}}function h(a){let b=a?.cause;return b?.$$typeof===f?b.reason:void 0}function i(a){return void 0!==h(a)}},95057,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0});var d={formatUrl:function(){return h},formatWithValidation:function(){return j},urlObjectKeys:function(){return i}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(90809)._(a.r(98183)),g=/https?|ftp|gopher|file/;function h(a){let{auth:b,hostname:c}=a,d=a.protocol||"",e=a.pathname||"",h=a.hash||"",i=a.query||"",j=!1;b=b?encodeURIComponent(b).replace(/%3A/i,":")+"@":"",a.host?j=b+a.host:c&&(j=b+(~c.indexOf(":")?`[${c}]`:c),a.port&&(j+=":"+a.port)),i&&"object"==typeof i&&(i=String(f.urlQueryToSearchParams(i)));let k=a.search||i&&`?${i}`||"";return d&&!d.endsWith(":")&&(d+=":"),a.slashes||(!d||g.test(d))&&!1!==j?(j="//"+(j||""),e&&"/"!==e[0]&&(e="/"+e)):j||(j=""),h&&"#"!==h[0]&&(h="#"+h),k&&"?"!==k[0]&&(k="?"+k),e=e.replace(/[?#]/g,encodeURIComponent),k=k.replace("#","%23"),`${d}${j}${e}${k}${h}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function j(a){return h(a)}},73668,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"isLocalURL",{enumerable:!0,get:function(){return f}});let d=a.r(18967),e=a.r(52817);function f(a){if(!(0,d.isAbsoluteUrl)(a))return!0;try{let b=(0,d.getLocationOrigin)(),c=new URL(a,b);return c.origin===b&&(0,e.hasBasePath)(c.pathname)}catch(a){return!1}}},18967,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0});var d={DecodeError:function(){return q},MiddlewareNotFoundError:function(){return u},MissingStaticPage:function(){return t},NormalizeError:function(){return r},PageNotFoundError:function(){return s},SP:function(){return o},ST:function(){return p},WEB_VITALS:function(){return f},execOnce:function(){return g},getDisplayName:function(){return l},getLocationOrigin:function(){return j},getURL:function(){return k},isAbsoluteUrl:function(){return i},isResSent:function(){return m},loadGetInitialProps:function(){return async function a(b,c){let d=c.res||c.ctx&&c.ctx.res;if(!b.getInitialProps)return c.ctx&&c.Component?{pageProps:await a(c.Component,c.ctx)}:{};let e=await b.getInitialProps(c);if(d&&m(d))return e;if(!e)throw Error(`"${l(b)}.getInitialProps()" should resolve to an object. But found "${e}" instead.`);return e}},normalizeRepeatedSlashes:function(){return n},stringifyError:function(){return v}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=["CLS","FCP","INP","LCP","TTFB"];function g(a){let b,c=!1;return(...d)=>(c||(c=!0,b=a(...d)),b)}let h=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=a=>{let b=a.charCodeAt(0);return!!(b>=65&&b<=90||b>=97&&b<=122)&&h.test(a)};function j(){let{protocol:a,hostname:b,port:c}=window.location;return`${a}//${b}${c?":"+c:""}`}function k(){let{href:a}=window.location,b=j();return a.substring(b.length)}function l(a){return"string"==typeof a?a:a.displayName||a.name||"Unknown"}function m(a){return a.finished||a.headersSent}function n(a){let b=a.split("?");return b[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(b[1]?`?${b.slice(1).join("?")}`:"")}let o="u">typeof performance,p=o&&["mark","measure","getEntriesByName"].every(a=>"function"==typeof performance[a]);class q extends Error{}class r extends Error{}class s extends Error{constructor(a){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${a}`}}class t extends Error{constructor(a,b){super(),this.message=`Failed to load static file for page: ${a} ${b}`}}class u extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(a){return JSON.stringify({message:a.message,stack:a.stack})}},95923,a=>{var b=a.i(43476),c=a.i(71645),d=a.i(25164),e=a.i(87596),f=a.i(15288),g=a.i(2747),h=a.i(29592),i=a.i(75254);let j=(0,i.f)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var k=a.i(73884);let l=(0,i.f)("skip-forward",[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]]);var m=a.i(3116),n=a.i(68054),o=a.i(11641);let p=(0,i.f)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),q=(0,i.f)("repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]),r=(0,i.f)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),s=(0,i.f)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),t=(0,i.f)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]),u=(0,i.f)("memory-stick",[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]]),v=(0,i.f)("cog",[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]]),w=(0,i.f)("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]),x=(0,i.f)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),y=(0,i.f)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]);var z=a.i(52571);let A=(0,i.f)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),B=(0,i.f)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);var C=a.i(48256),D=a.i(94908),E=a.i(68566);let F=(0,i.f)("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]),G=(0,i.f)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);var H=a.i(77572);let I=(a,c="")=>(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Object.entries(a).map(([a,d])=>{var e;let f,g=(a=>{if("string"==typeof a||"number"==typeof a||"boolean"==typeof a)return String(a);if(Array.isArray(a))return a.length>0?a.join(", "):"Empty";if("object"==typeof a&&null!==a){let b=Object.entries(a);return 0===b.length?"Empty":b.length<=3?b.map(([a,b])=>{let c=a.replace(/([A-Z])/g," $1").trim();return`${c}: ${String(b)}`}).join(", "):`${b.length} items`}return"N/A"})(d),h="object"==typeof d&&null!==d?JSON.stringify(d,null,2):String(d);return(0,b.jsxs)("div",{className:"flex items-center space-x-2 p-2 rounded-2xl hover:bg-muted/50 transition-all duration-200 group/item",children:[(0,b.jsx)("div",{className:"flex-shrink-0",children:(f=(e=a).toLowerCase()).includes("os")||f.includes("operative system")?(0,b.jsx)(y,{className:"h-4 w-4 text-primary"}):f.includes("cpu")?(0,b.jsx)(t,{className:"h-4 w-4 text-primary"}):f.includes("mem")||f.includes("ram")?(0,b.jsx)(u,{className:"h-4 w-4 text-primary"}):f.includes("node")?(0,b.jsx)(v,{className:"h-4 w-4 text-primary"}):f.includes("playwright")?(0,b.jsx)(w,{className:"h-4 w-4 text-primary"}):f.includes("y playwright")?(0,b.jsx)(x,{className:"h-4 w-4 text-primary"}):f.includes("browser")?(0,b.jsx)(C.f,{className:"h-4 w-4 text-primary"}):f.includes("chromium")||f.includes("chrome")?(0,b.jsx)(E.f,{className:"h-4 w-4 text-primary"}):f.includes("firefox")?(0,b.jsx)(C.f,{className:"h-4 w-4 text-primary"}):f.includes("webkit")||f.includes("safari")?(0,b.jsx)(D.f,{className:"h-4 w-4 text-primary"}):f.includes("provider")&&(e.toLowerCase().includes("ci")||e.toLowerCase().includes("cd"))?(0,b.jsx)(A,{className:"h-4 w-4 text-primary"}):f.includes("job")&&(e.toLowerCase().includes("ci")||e.toLowerCase().includes("cd"))?(0,b.jsx)(B,{className:"h-4 w-4 text-primary"}):f.includes("disk")||f.includes("storage")?(0,b.jsx)(F,{className:"h-4 w-4 text-primary"}):(0,b.jsx)(z.f,{className:"h-4 w-4 text-primary"})}),(0,b.jsxs)("div",{className:"flex-grow min-w-0",children:[(0,b.jsx)("p",{className:"text-xs font-medium text-muted-foreground truncate",children:a.replace(/([A-Z]+)/g," $1").replace(/([A-Z][a-z])/g," $1").replace(/^./,a=>a.toUpperCase())}),(0,b.jsx)("div",{className:"text-xs font-semibold text-foreground truncate",title:h,children:g})]})]},`${c}${a}`)})});function J({environmentInfo:a,loading:d}){let[e,i]=(0,c.useState)("0");if(d)return(0,b.jsxs)(f.N,{className:"shadow-lg rounded-xl mt-6",children:[(0,b.jsxs)(f.Y,{children:[(0,b.jsx)(g.f,{className:"h-6 w-48 mb-1"}),(0,b.jsx)(g.f,{className:"h-4 w-3/4"})]}),(0,b.jsx)(f.O,{className:"space-y-3",children:[void 0,void 0,void 0,void 0].map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,b.jsx)(g.f,{className:"h-5 w-5 rounded-full"}),(0,b.jsx)(g.f,{className:"h-4 w-1/4"}),(0,b.jsx)(g.f,{className:"h-4 w-1/2"})]},c))})]});if(!a||(Array.isArray(a)?0===a.length:0===Object.keys(a).length))return(0,b.jsxs)(f.N,{className:"shadow-lg rounded-xl mt-6",children:[(0,b.jsxs)(f.Y,{children:[(0,b.jsxs)(f.v,{className:"text-lg font-semibold text-primary flex items-center",children:[(0,b.jsx)(s,{className:"h-5 w-5 mr-2"})," System Information"]}),(0,b.jsx)(f.u,{className:"text-xs",children:"Details about the test execution environment."})]}),(0,b.jsx)(f.O,{children:(0,b.jsxs)(h.J,{variant:"default",className:"border-muted-foreground/30",children:[(0,b.jsx)(z.f,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"No Environment Data"}),(0,b.jsx)(h.p,{children:"Environment information is not available in the current report."})]})})]});let j=Array.isArray(a);return(0,b.jsxs)(f.N,{className:"shadow-lg rounded-xl mt-6 hover:shadow-2xl transition-all duration-300 border-0 bg-gradient-to-br from-card via-card to-card/95 group",children:[(0,b.jsx)(f.Y,{className:"pb-3",children:(0,b.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)(f.v,{className:"text-base font-semibold text-foreground group-hover:text-primary transition-colors flex items-center",children:[(0,b.jsx)(s,{className:"h-4 w-4 mr-2"})," System Information",j&&(0,b.jsxs)("span",{className:"ml-2 text-xs font-normal text-muted-foreground flex items-center gap-1",children:[(0,b.jsx)(G,{className:"h-3 w-3"}),a.length," ",1===a.length?"Shard":"Shards"]})]}),(0,b.jsx)(f.u,{className:"text-xs mt-1",children:j?"Environment details from each test shard":"Test execution environment details"})]}),(0,b.jsx)("div",{className:"h-9 w-9 rounded-full bg-gradient-to-br from-primary/10 to-primary/5 flex items-center justify-center",children:j?(0,b.jsx)(G,{className:"h-4 w-4 text-primary"}):(0,b.jsx)(y,{className:"h-4 w-4 text-primary"})})]})}),(0,b.jsx)(f.O,{className:"pt-0",children:j?(0,b.jsxs)(H.i,{value:e,onValueChange:i,className:"w-full",children:[(0,b.jsx)(H.U,{className:"w-fit max-w-full h-auto p-1 bg-muted/50 flex justify-start overflow-x-auto",children:a.map((a,c)=>(0,b.jsxs)(H.k,{value:String(c),className:"text-xs px-3 py-1.5 data-[state=active]:bg-primary/10 flex-shrink-0",children:["Shard ",c+1]},c))}),a.map((a,c)=>(0,b.jsx)(H.S,{value:String(c),className:"mt-4",children:I(a,`shard-${c}-`)},c))]}):I(a)})]})}var K=a.i(70703),L=a.i(95150);let M=(0,K.default)(()=>a.A(51558).then(a=>a.DashboardOverviewCharts),{loadableGenerated:{modules:[78472]},ssr:!1,loading:()=>(0,b.jsx)("div",{className:"grid gap-6 md:grid-cols-1 lg:grid-cols-2 mt-6",children:[...Array(6)].map((a,c)=>(0,b.jsxs)(f.N,{className:"shadow-lg rounded-xl",children:[(0,b.jsxs)(f.Y,{children:[(0,b.jsx)(g.f,{className:"h-5 w-3/4 rounded-xl"}),(0,b.jsx)(g.f,{className:"h-4 w-1/2 mt-1 rounded-xl"})]}),(0,b.jsx)(f.O,{children:(0,b.jsx)(g.f,{className:"h-48 w-full rounded-2xl"})})]},`loader-chart-${c}`))})});function N(a){if(0===a)return"0s";let b=Math.floor(a/1e3%60),c=Math.floor(a/6e4%60),d=Math.floor(a/36e5%24),e="";return d>0&&(e+=`${d}h `),c>0&&(e+=`${c}m `),(b>0||0===d&&0===c)&&(e+=`${b}s`),e.trim()||"0s"}function O({currentRun:a,loading:c,error:d,onMetricClick:e}){let i=a?.run,s=a?.run?.environment||a?.environment;if(d&&!i)return(0,b.jsxs)(h.J,{variant:"destructive",className:"col-span-full md:col-span-2 lg:col-span-5",children:[(0,b.jsx)(n.f,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"Error Fetching Summary Metrics"}),(0,b.jsx)(h.p,{children:d})]});if(c&&!i)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-5",children:[void 0,void 0,void 0,void 0,void 0].map((a,c)=>(0,b.jsxs)(f.N,{className:"shadow-lg rounded-xl",children:[(0,b.jsxs)(f.Y,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,b.jsx)(g.f,{className:"h-5 w-24"}),(0,b.jsx)(g.f,{className:"h-6 w-6"})]}),(0,b.jsxs)(f.O,{children:[(0,b.jsx)(g.f,{className:"h-8 w-16"}),(0,b.jsx)(g.f,{className:"h-4 w-32 mt-1"})]})]},c))}),(0,b.jsx)(J,{environmentInfo:null,loading:!0,error:null}),(0,b.jsx)("div",{className:"grid gap-6 md:grid-cols-1 lg:grid-cols-2 mt-6",children:[...Array(6)].map((a,c)=>(0,b.jsxs)(f.N,{className:"shadow-lg rounded-xl",children:[(0,b.jsxs)(f.Y,{children:[(0,b.jsx)(g.f,{className:"h-5 w-3/4 rounded-xl"}),(0,b.jsx)(g.f,{className:"h-4 w-1/2 mt-1 rounded-xl"})]}),(0,b.jsx)(f.O,{children:(0,b.jsx)(g.f,{className:"h-48 w-full rounded-2xl"})})]},`skeleton-chart-main-${c}`))})]});let t={total:a?.results?.length||0,passed:0,failed:0,skipped:0,flaky:0,totalRetries:0,retriedTests:0,sumDuration:0};a?.results?.forEach(a=>{let b=(0,L.f)(a);if("passed"===b?t.passed++:"failed"===b||"timedOut"===b?t.failed++:"skipped"===b?t.skipped++:"flaky"===b&&t.flaky++,a.retryHistory&&a.retryHistory.length>0){let b=a.retryHistory.filter(a=>"failed"===a.status||"timedOut"===a.status||"flaky"===a.status);b.length>0&&(t.totalRetries+=b.length,t.retriedTests++)}t.sumDuration+=a.duration||0});let u=t.total>0?t.sumDuration/t.total:0,v=i?[{title:"Total Tests",value:t.total.toString(),icon:(0,b.jsx)(o.f,{className:"h-5 w-5 text-muted-foreground"}),change:null,filterKey:"all"},{title:"Passed",value:t.passed.toString(),icon:(0,b.jsx)(j,{className:"h-5 w-5 text-[hsl(var(--chart-3))]"}),change:`${t.total>0?(t.passed/t.total*100).toFixed(1):"0.0"}% pass rate`,filterKey:"passed"},{title:"Flaky",value:t.flaky.toString(),icon:(0,b.jsx)(p,{className:"h-5 w-5 text-[hsl(var(--flaky))]"}),change:`${t.total>0?(t.flaky/t.total*100).toFixed(1):"0.0"}% flaky rate`,filterKey:"flaky"},{title:"Failed",value:t.failed.toString(),icon:(0,b.jsx)(k.f,{className:"h-5 w-5 text-destructive"}),change:`${t.total>0?(t.failed/t.total*100).toFixed(1):"0.0"}% fail rate`,filterKey:"failed"},{title:"Skipped",value:t.skipped.toString(),icon:(0,b.jsx)(l,{className:"h-5 w-5 text-[hsl(var(--accent))]"}),change:`${t.total>0?(t.skipped/t.total*100).toFixed(1):"0.0"}% skip rate`,filterKey:"skipped"},{title:"Total Retries Count",value:t.totalRetries.toString(),icon:(0,b.jsx)(q,{className:"h-5 w-5 text-orange-500"}),change:`${t.retriedTests} tests retried`,filterKey:null},{title:"Avg. Test Time",value:N(u),icon:(0,b.jsx)(r,{className:"h-5 w-5 text-yellow-500"}),change:"Average per test",filterKey:null},{title:"Duration",value:N(i.duration),icon:(0,b.jsx)(m.f,{className:"h-5 w-5 text-primary"}),change:"Total execution time",filterKey:null}]:[],w=a=>{a&&e&&e(a)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4 mb-8 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:[v.map(a=>(0,b.jsxs)(f.N,{className:`relative overflow-hidden shadow-2xl hover:shadow-[0_20px_50px_rgba(8,_112,_184,_0.3)] transition-all duration-500 rounded-2xl border-0 bg-gradient-to-br from-card via-card to-card/80 backdrop-blur-sm group ${a.filterKey&&e?"cursor-pointer hover:scale-[1.02]":""}`,onClick:()=>w(a.filterKey),tabIndex:a.filterKey&&e?0:-1,onKeyDown:b=>{("Enter"===b.key||" "===b.key)&&a.filterKey&&e&&w(a.filterKey)},role:a.filterKey&&e?"button":void 0,"aria-label":a.filterKey&&e?`View ${a.filterKey} tests`:void 0,children:[(0,b.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),(0,b.jsxs)(f.Y,{className:"flex flex-row items-center justify-between space-y-0 pb-2 relative z-10",children:[(0,b.jsx)(f.v,{className:"text-sm font-semibold text-muted-foreground/90 uppercase tracking-wide",children:a.title}),(0,b.jsx)("div",{className:"h-9 w-9 rounded-full bg-gradient-to-br from-primary/10 to-primary/5 flex items-center justify-center backdrop-blur-sm",children:a.icon})]}),(0,b.jsxs)(f.O,{className:"relative z-10",children:[(0,b.jsx)("div",{className:"text-4xl font-extrabold bg-gradient-to-br from-foreground to-foreground/60 bg-clip-text text-transparent",children:a.value}),a.change&&(0,b.jsx)("p",{className:"text-xs font-medium text-muted-foreground/70 pt-1.5",children:a.change})]})]},a.title)),c&&i&&[...Array(5-v.length)].map((a,c)=>(0,b.jsxs)(f.N,{className:"shadow-lg rounded-xl",children:[(0,b.jsxs)(f.Y,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,b.jsx)(g.f,{className:"h-5 w-24"}),(0,b.jsx)(g.f,{className:"h-6 w-6"})]}),(0,b.jsxs)(f.O,{children:[(0,b.jsx)(g.f,{className:"h-8 w-16"}),(0,b.jsx)(g.f,{className:"h-4 w-32 mt-1"})]})]},`loading-${c}`))]}),(0,b.jsx)(J,{environmentInfo:s,loading:c,error:d}),(0,b.jsx)(M,{currentRun:a,loading:c,error:d})]})}var P=a.i(73443),Q=a.i(87486),R=a.i(22016),S=a.i(95468),T=a.i(63209);let U=(0,i.f)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var V=a.i(63059),W=a.i(75157);function X({status:a}){switch(a){case"passed":return(0,b.jsx)(S.f,{className:"h-5 w-5 text-[hsl(var(--chart-3))]"});case"failed":return(0,b.jsx)(k.f,{className:"h-5 w-5 text-destructive"});case"skipped":return(0,b.jsx)(T.f,{className:"h-5 w-5 text-[hsl(var(--accent))]"});case"timedOut":return(0,b.jsx)(m.f,{className:"h-5 w-5 text-destructive"});case"flaky":return(0,b.jsx)(p,{className:"h-5 w-5 text-[hsl(var(--flaky))]"});case"pending":return(0,b.jsx)(m.f,{className:"h-5 w-5 text-primary animate-pulse"});default:return(0,b.jsx)(z.f,{className:"h-5 w-5 text-muted-foreground"})}}function Y({test:a}){var e;let f=(0,c.useMemo)(()=>a.screenshots&&Array.isArray(a.screenshots)?a.screenshots.slice(0,4).map((a,b)=>({name:function(a,b="Attachment"){return a&&"string"==typeof a&&a.split(/[/\\]/).pop()||b}(a,`Screenshot ${b+1}`),path:a,contentType:"image/png","data-ai-hint":"test screenshot thumbnail"})):[],[a.screenshots]),g=(0,c.useMemo)(()=>{if(!a.annotations||!Array.isArray(a.annotations))return null;let b=a.annotations.find(a=>"pulse_severity"===a.type);return b?.description||null},[a.annotations]),h=a.errorMessage||f.length>0,i=function(a){if(!a)return"";let b=a.split(" > ");return b[b.length-1]||a}(a.name),j=a.retryHistory?a.retryHistory.filter(a=>"passed"!==a.status&&"skipped"!==a.status).length:0;return(0,b.jsxs)("div",{className:"border-b border-border last:border-b-0 py-3 hover:bg-muted/20 transition-colors duration-200 px-4 rounded-2xl mb-2 shadow-md bg-card hover:shadow-lg",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center space-x-3 flex-1 min-w-0",children:[(0,b.jsx)(X,{status:a.status}),(0,b.jsx)(R.default,{href:`/test/${a.id}`,className:"font-medium text-foreground text-sm md:text-base hover:underline truncate",title:a.name,children:i})]}),(0,b.jsxs)("div",{className:"flex items-center space-x-2 ml-2 flex-shrink-0 flex-wrap gap-1",children:[a.tags&&a.tags.length>0&&a.tags.map((a,c)=>(0,b.jsx)(Q.f,{variant:"outline",className:"text-xs px-2 py-0.5 rounded-xl border",style:{backgroundColor:"#808080",color:"#fff"},children:a},`tag-${c}`)),j>0&&(0,b.jsxs)(Q.f,{variant:"outline",className:"retry-badge text-xs px-2 py-0.5 rounded-xl border",style:{backgroundColor:"#ff9800",color:"#fff",borderColor:"#f57c00"},children:["Retry Count: ",j]}),g&&(0,b.jsx)(Q.f,{variant:"outline",className:"capitalize text-xs px-2 py-0.5 rounded-xl border-0",style:function(a){switch(a.toLowerCase()){case"minor":return{backgroundColor:"#006064",color:"#fff"};case"low":return{backgroundColor:"#FFA07A",color:"#fff"};case"medium":return{backgroundColor:"#577A11",color:"#fff"};case"high":return{backgroundColor:"#B71C1C",color:"#fff"};case"critical":return{backgroundColor:"#64158A",color:"#fff"};default:return{backgroundColor:"hsl(var(--muted))",color:"hsl(var(--muted-foreground))"}}}(g),children:g}),(0,b.jsx)("span",{className:"text-sm text-muted-foreground w-20 text-right",children:(e=a.duration)<1e3?`${e}ms`:`${(e/1e3).toFixed(2)}s`}),(0,b.jsx)(R.default,{href:`/test/${a.id}`,"aria-label":`View details for ${i}`,children:(0,b.jsx)(V.f,{className:"h-5 w-5 text-muted-foreground hover:text-primary transition-colors"})})]})]}),h&&(0,b.jsx)(P.i,{type:"single",collapsible:!0,className:"w-full mt-2",children:(0,b.jsxs)(P.O,{value:"details",className:"border-none",children:[(0,b.jsx)(P.P,{className:"text-xs py-1 px-1 hover:no-underline text-muted-foreground justify-start hover:bg-accent/10 rounded-xl [&[data-state=open]>svg]:ml-2",children:"Quick Look"}),(0,b.jsxs)(P.L,{className:"pt-2 pl-2 pr-2 pb-1 bg-muted/30 rounded-2xl",children:[a.errorMessage&&(0,b.jsxs)("div",{className:"mb-3",children:[(0,b.jsx)("h4",{className:"font-semibold text-xs text-destructive mb-1",children:"Error:"}),(0,b.jsx)("pre",{className:"bg-destructive/10 text-xs p-2 rounded-xl whitespace-pre-wrap break-all font-code max-h-20 overflow-y-auto",children:(0,b.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.p)(a.errorMessage)}})})]}),f.length>0&&(0,b.jsxs)("div",{children:[(0,b.jsx)("h4",{className:"font-semibold text-xs text-primary mb-1",children:"Screenshots:"}),(0,b.jsx)("div",{className:"mt-1 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-1",children:f.map((a,c)=>{let e=(0,W.W)(a.path);return"#"===e?null:(0,b.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"relative aspect-video rounded-xl overflow-hidden group border hover:border-primary shadow-sm",children:[(0,b.jsx)(d.default,{src:e,alt:a.name,fill:!0,style:{objectFit:"cover"},className:"group-hover:scale-105 transition-transform duration-300","data-ai-hint":a["data-ai-hint"]}),(0,b.jsx)("div",{className:"absolute inset-0 bg-black/30 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center",children:(0,b.jsx)(U,{className:"h-6 w-6 text-white"})})]},`img-thumb-${c}`)})})]}),!a.errorMessage&&0===f.length&&(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:"No error or screenshots for quick look. Click to view full details."})]})]})})]})}var Z=a.i(64659);let $=(0,i.f)("funnel-x",[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]]),_=(0,i.f)("repeat-1",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}],["path",{d:"M11 10h1v4",key:"70cz1p"}]]),aa=(0,i.f)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]);var ab=a.i(94918),ac=a.i(93479),ad=a.i(67489),ae=a.i(48425),af=c.forwardRef((a,c)=>(0,b.jsx)(ae.V.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));af.displayName="Label";var ag=a.i(25913);let ah=(0,ag.f)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ai=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(af,{ref:d,className:(0,W.c)(ah(),a),...c}));ai.displayName=af.displayName;var aj=a.i(19455),ak=a.i(37822);function al(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}function am(...a){return b=>{let c=!1,d=a.map(a=>{let d=al(a,b);return c||"function"!=typeof d||(c=!0),d});if(c)return()=>{for(let b=0;b<d.length;b++){let c=d[b];"function"==typeof c?c():al(a[b],null)}}}}function an(...a){return c.useCallback(am(...a),a)}function ao(a,b,{checkForDefaultPrevented:c=!0}={}){return function(d){if(a?.(d),!1===c||!d.defaultPrevented)return b?.(d)}}"u">typeof window&&window.document&&window.document.createElement;var ap=globalThis?.document?c.useLayoutEffect:()=>{};a.i(83986);var aq=c[" useInsertionEffect ".trim().toString()]||ap;Symbol("RADIX:SYNC_STATE");var ar=a=>{var b;let d,e,{present:f,children:g}=a,h=function(a){var b,d;let[e,f]=c.useState(),g=c.useRef(null),h=c.useRef(a),i=c.useRef("none"),[j,k]=(b=a?"mounted":"unmounted",d={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},c.useReducer((a,b)=>d[a][b]??a,b));return c.useEffect(()=>{let a=as(g.current);i.current="mounted"===j?a:"none"},[j]),ap(()=>{let b=g.current,c=h.current;if(c!==a){let d=i.current,e=as(b);a?k("MOUNT"):"none"===e||b?.display==="none"?k("UNMOUNT"):c&&d!==e?k("ANIMATION_OUT"):k("UNMOUNT"),h.current=a}},[a,k]),ap(()=>{if(e){let a,b=e.ownerDocument.defaultView??window,c=c=>{let d=as(g.current).includes(CSS.escape(c.animationName));if(c.target===e&&d&&(k("ANIMATION_END"),!h.current)){let c=e.style.animationFillMode;e.style.animationFillMode="forwards",a=b.setTimeout(()=>{"forwards"===e.style.animationFillMode&&(e.style.animationFillMode=c)})}},d=a=>{a.target===e&&(i.current=as(g.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{b.clearTimeout(a),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}k("ANIMATION_END")},[e,k]),{isPresent:["mounted","unmountSuspended"].includes(j),ref:c.useCallback(a=>{g.current=a?getComputedStyle(a):null,f(a)},[])}}(f),i="function"==typeof g?g({present:h.isPresent}):c.Children.only(g),j=an(h.ref,(b=i,(e=(d=Object.getOwnPropertyDescriptor(b.props,"ref")?.get)&&"isReactWarning"in d&&d.isReactWarning)?b.ref:(e=(d=Object.getOwnPropertyDescriptor(b,"ref")?.get)&&"isReactWarning"in d&&d.isReactWarning)?b.props.ref:b.props.ref||b.ref));return"function"==typeof g||h.isPresent?c.cloneElement(i,{ref:j}):null};function as(a){return a?.animationName||"none"}ar.displayName="Presence",a.i(74080);var at=Symbol("radix.slottable");function au(a){return c.isValidElement(a)&&"function"==typeof a.type&&"__radixId"in a.type&&a.type.__radixId===at}var av=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,d)=>{var e,f;let g,h,i,j=(f=e=`Primitive.${d}`,(g=c.forwardRef((a,b)=>{let{children:d,...e}=a;if(c.isValidElement(d)){var f;let a,g,h=(f=d,(g=(a=Object.getOwnPropertyDescriptor(f.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?f.ref:(g=(a=Object.getOwnPropertyDescriptor(f,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?f.props.ref:f.props.ref||f.ref),i=function(a,b){let c={...b};for(let d in b){let e=a[d],f=b[d];/^on[A-Z]/.test(d)?e&&f?c[d]=(...a)=>{let b=f(...a);return e(...a),b}:e&&(c[d]=e):"style"===d?c[d]={...e,...f}:"className"===d&&(c[d]=[e,f].filter(Boolean).join(" "))}return{...a,...c}}(e,d.props);return d.type!==c.Fragment&&(i.ref=b?am(b,h):h),c.cloneElement(d,i)}return c.Children.count(d)>1?c.Children.only(null):null})).displayName=`${f}.SlotClone`,h=g,(i=c.forwardRef((a,d)=>{let{children:e,...f}=a,g=c.Children.toArray(e),i=g.find(au);if(i){let a=i.props.children,e=g.map(b=>b!==i?b:c.Children.count(a)>1?c.Children.only(null):c.isValidElement(a)?a.props.children:null);return(0,b.jsx)(h,{...f,ref:d,children:c.isValidElement(a)?c.cloneElement(a,void 0,e):null})}return(0,b.jsx)(h,{...f,ref:d,children:e})})).displayName=`${e}.Slot`,i),k=c.forwardRef((a,c)=>{let{asChild:e,...f}=a;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,b.jsx)(e?j:d,{...f,ref:c})});return k.displayName=`Primitive.${d}`,{...a,[d]:k}},{}),aw="Checkbox",[ax,ay]=function(a,d=[]){let e=[],f=()=>{let b=e.map(a=>c.createContext(a));return function(d){let e=d?.[a]||b;return c.useMemo(()=>({[`__scope${a}`]:{...d,[a]:e}}),[d,e])}};return f.scopeName=a,[function(d,f){let g=c.createContext(f),h=e.length;e=[...e,f];let i=d=>{let{scope:e,children:f,...i}=d,j=e?.[a]?.[h]||g,k=c.useMemo(()=>i,Object.values(i));return(0,b.jsx)(j.Provider,{value:k,children:f})};return i.displayName=d+"Provider",[i,function(b,e){let i=e?.[a]?.[h]||g,j=c.useContext(i);if(j)return j;if(void 0!==f)return f;throw Error(`\`${b}\` must be used within \`${d}\``)}]},function(...a){let b=a[0];if(1===a.length)return b;let d=()=>{let d=a.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){let e=d.reduce((b,{useScope:c,scopeName:d})=>{let e=c(a)[`__scope${d}`];return{...b,...e}},{});return c.useMemo(()=>({[`__scope${b.scopeName}`]:e}),[e])}};return d.scopeName=b.scopeName,d}(f,...d)]}(aw),[az,aA]=ax(aw);function aB(a){let{__scopeCheckbox:d,checked:e,children:f,defaultChecked:g,disabled:h,form:i,name:j,onCheckedChange:k,required:l,value:m="on",internal_do_not_use_render:n}=a,[o,p]=function({prop:a,defaultProp:b,onChange:d=()=>{},caller:e}){let[f,g,h]=function({defaultProp:a,onChange:b}){let[d,e]=c.useState(a),f=c.useRef(d),g=c.useRef(b);return aq(()=>{g.current=b},[b]),c.useEffect(()=>{f.current!==d&&(g.current?.(d),f.current=d)},[d,f]),[d,e,g]}({defaultProp:b,onChange:d}),i=void 0!==a,j=i?a:f;{let b=c.useRef(void 0!==a);c.useEffect(()=>{let a=b.current;if(a!==i){let b=i?"controlled":"uncontrolled";console.warn(`${e} is changing from ${a?"controlled":"uncontrolled"} to ${b}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}b.current=i},[i,e])}return[j,c.useCallback(b=>{if(i){let c="function"==typeof b?b(a):b;c!==a&&h.current?.(c)}else g(b)},[i,a,g,h])]}({prop:e,defaultProp:g??!1,onChange:k,caller:aw}),[q,r]=c.useState(null),[s,t]=c.useState(null),u=c.useRef(!1),v=!q||!!i||!!q.closest("form"),w={checked:o,disabled:h,setChecked:p,control:q,setControl:r,name:j,form:i,value:m,hasConsumerStoppedPropagationRef:u,required:l,defaultChecked:!aJ(g)&&g,isFormControl:v,bubbleInput:s,setBubbleInput:t};return(0,b.jsx)(az,{scope:d,...w,children:"function"==typeof n?n(w):f})}var aC="CheckboxTrigger",aD=c.forwardRef(({__scopeCheckbox:a,onKeyDown:d,onClick:e,...f},g)=>{let{control:h,value:i,disabled:j,checked:k,required:l,setControl:m,setChecked:n,hasConsumerStoppedPropagationRef:o,isFormControl:p,bubbleInput:q}=aA(aC,a),r=an(g,m),s=c.useRef(k);return c.useEffect(()=>{let a=h?.form;if(a){let b=()=>n(s.current);return a.addEventListener("reset",b),()=>a.removeEventListener("reset",b)}},[h,n]),(0,b.jsx)(av.button,{type:"button",role:"checkbox","aria-checked":aJ(k)?"mixed":k,"aria-required":l,"data-state":aK(k),"data-disabled":j?"":void 0,disabled:j,value:i,...f,ref:r,onKeyDown:ao(d,a=>{"Enter"===a.key&&a.preventDefault()}),onClick:ao(e,a=>{n(a=>!!aJ(a)||!a),q&&p&&(o.current=a.isPropagationStopped(),o.current||a.stopPropagation())})})});aD.displayName=aC;var aE=c.forwardRef((a,c)=>{let{__scopeCheckbox:d,name:e,checked:f,defaultChecked:g,required:h,disabled:i,value:j,onCheckedChange:k,form:l,...m}=a;return(0,b.jsx)(aB,{__scopeCheckbox:d,checked:f,defaultChecked:g,disabled:i,required:h,onCheckedChange:k,name:e,form:l,value:j,internal_do_not_use_render:({isFormControl:a})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(aD,{...m,ref:c,__scopeCheckbox:d}),a&&(0,b.jsx)(aI,{__scopeCheckbox:d})]})})});aE.displayName=aw;var aF="CheckboxIndicator",aG=c.forwardRef((a,c)=>{let{__scopeCheckbox:d,forceMount:e,...f}=a,g=aA(aF,d);return(0,b.jsx)(ar,{present:e||aJ(g.checked)||!0===g.checked,children:(0,b.jsx)(av.span,{"data-state":aK(g.checked),"data-disabled":g.disabled?"":void 0,...f,ref:c,style:{pointerEvents:"none",...a.style}})})});aG.displayName=aF;var aH="CheckboxBubbleInput",aI=c.forwardRef(({__scopeCheckbox:a,...d},e)=>{let f,{control:g,hasConsumerStoppedPropagationRef:h,checked:i,defaultChecked:j,required:k,disabled:l,name:m,value:n,form:o,bubbleInput:p,setBubbleInput:q}=aA(aH,a),r=an(e,q),s=(f=c.useRef({value:i,previous:i}),c.useMemo(()=>(f.current.value!==i&&(f.current.previous=f.current.value,f.current.value=i),f.current.previous),[i])),t=function(a){let[b,d]=c.useState(void 0);return ap(()=>{if(a){d({width:a.offsetWidth,height:a.offsetHeight});let b=new ResizeObserver(b=>{let c,e;if(!Array.isArray(b)||!b.length)return;let f=b[0];if("borderBoxSize"in f){let a=f.borderBoxSize,b=Array.isArray(a)?a[0]:a;c=b.inlineSize,e=b.blockSize}else c=a.offsetWidth,e=a.offsetHeight;d({width:c,height:e})});return b.observe(a,{box:"border-box"}),()=>b.unobserve(a)}d(void 0)},[a]),b}(g);c.useEffect(()=>{if(!p)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,b=!h.current;if(s!==i&&a){let c=new Event("click",{bubbles:b});p.indeterminate=aJ(i),a.call(p,!aJ(i)&&i),p.dispatchEvent(c)}},[p,s,i,h]);let u=c.useRef(!aJ(i)&&i);return(0,b.jsx)(av.input,{type:"checkbox","aria-hidden":!0,defaultChecked:j??u.current,required:k,disabled:l,name:m,value:n,form:o,...d,tabIndex:-1,ref:r,style:{...d.style,...t,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function aJ(a){return"indeterminate"===a}function aK(a){return aJ(a)?"indeterminate":a?"checked":"unchecked"}aI.displayName=aH;var aL=a.i(43531);let aM=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(aE,{ref:d,className:(0,W.c)("peer h-4 w-4 shrink-0 rounded-sm 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",a),...c,children:(0,b.jsx)(aG,{className:(0,W.c)("flex items-center justify-center text-current"),children:(0,b.jsx)(aL.f,{className:"h-4 w-4"})})}));aM.displayName=aE.displayName;var aN=a.i(59684),aO=a.i(74911);let aP=["all","passed","failed","skipped","flaky"],aQ=["--suite-color-1-hsl","--suite-color-2-hsl","--suite-color-3-hsl","--suite-color-4-hsl","--suite-color-5-hsl"];function aR({report:a,loading:d,error:e,initialFilter:i}){let[j,o]=(0,c.useState)(i||"all"),[q,r]=(0,c.useState)(""),[s,t]=(0,c.useState)([]),[u,v]=(0,c.useState)([]),[w,x]=(0,c.useState)(!1),[y,A]=(0,c.useState)("all"),[B,C]=(0,c.useState)(["all"]),[D,E]=(0,c.useState)("all"),[F,G]=(0,c.useState)(["all"]),[H,I]=(0,c.useState)(!1),{toast:J}=(0,aO.f)();(0,c.useEffect)(()=>{i&&o(i)},[i]),(0,c.useEffect)(()=>{if(a?.results){let b=new Set,c=new Set,d=new Set;a.results.forEach(a=>{a.tags?.forEach(a=>b.add(a)),a.browser&&c.add(a.browser),a.suiteName?d.add(a.suiteName):d.add("Untitled Suite")}),v(Array.from(b).sort()),C(["all",...Array.from(c).sort()]),G(["all",...Array.from(d).sort()])}},[a]);let K=(0,c.useMemo)(()=>"all"!==j||""!==q||s.length>0||"all"!==y||"all"!==D||H,[j,q,s,y,D,H]),M=(0,c.useMemo)(()=>{if(!a?.results)return[];let b=a.results.filter(a=>{let b=(0,L.f)(a),c=!1;c="all"===j||("flaky"===j?"flaky"===b:"passed"===j?"passed"===b:"failed"===j?"failed"===b||"timedOut"===b:"skipped"===j?"skipped"===b:b===j);let d=(a.name||"").toLowerCase().includes(q.toLowerCase())||(a.suiteName||"").toLowerCase().includes(q.toLowerCase()),e=0===s.length||a.tags&&a.tags.some(a=>s.includes(a)),f="all"===y||a.browser===y,g=a.suiteName||"Untitled Suite",h="all"===D||g===D,i=a.retryHistory?a.retryHistory.filter(a=>"passed"!==a.status&&"skipped"!==a.status).length:0,k=!H||H&&i>0;return c&&d&&e&&f&&h&&k}),c=new Map;return b.forEach(a=>{let b=a.suiteName||"Untitled Suite";c.has(b)||c.set(b,{tests:[],stats:{total:0,passed:0,failed:0,skipped:0,pending:0,flaky:0}});let d=c.get(b);d.tests.push(a),d.stats.total++;let e=(0,L.f)(a);"flaky"===e?d.stats.flaky++:"passed"===e?d.stats.passed++:"failed"===e||"timedOut"===e?d.stats.failed++:"skipped"===e?d.stats.skipped++:"pending"===e&&d.stats.pending++}),Array.from(c.entries()).map(([a,b])=>({title:a,tests:b.tests,stats:b.stats})).sort((a,b)=>b.stats.failed-a.stats.failed||b.stats.total-a.stats.total||a.title.localeCompare(b.title))},[a,j,q,s,y,D,H]);return d?(0,b.jsx)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:(0,b.jsxs)(f.N,{className:"shadow-xl",children:[(0,b.jsxs)(f.Y,{children:[(0,b.jsx)(g.f,{className:"h-6 w-48"}),(0,b.jsx)(g.f,{className:"h-4 w-64 mt-1"})]}),(0,b.jsxs)(f.O,{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 mb-6 p-6 border rounded-xl bg-muted/50 shadow-lg",children:[(0,b.jsx)(g.f,{className:"h-10 w-full"}),(0,b.jsx)(g.f,{className:"h-10 w-full"}),(0,b.jsx)(g.f,{className:"h-10 w-full"}),(0,b.jsx)(g.f,{className:"h-10 w-full"}),(0,b.jsx)(g.f,{className:"h-10 w-full"}),(0,b.jsx)(g.f,{className:"h-10 w-full"}),(0,b.jsx)(g.f,{className:"h-10 w-full"})]}),[void 0,void 0,void 0].map((a,c)=>(0,b.jsxs)("div",{className:"space-y-2 p-2 border rounded-2xl shadow-md",children:[(0,b.jsx)(g.f,{className:"h-5 w-1/3"}),(0,b.jsx)(g.f,{className:"h-8 w-full"}),(0,b.jsx)(g.f,{className:"h-8 w-full"})]},c))]})]})}):e?(0,b.jsx)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:(0,b.jsxs)(h.J,{variant:"destructive",className:"mt-4 shadow-md",children:[(0,b.jsx)(n.f,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"Error Fetching Test Results"}),(0,b.jsx)(h.p,{children:e})]})}):a&&a.results&&0!==a.results.length?(0,b.jsx)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:(0,b.jsxs)(f.N,{className:"shadow-xl",children:[(0,b.jsxs)(f.Y,{className:"flex flex-row items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(f.v,{className:"text-2xl font-headline text-primary",children:"Test Results"}),(a.metadata?.generatedAt||a.run?.timestamp)&&(0,b.jsxs)(f.u,{children:["Last updated:"," ",new Date(a.metadata.generatedAt||a.run.timestamp).toLocaleString()]})]}),(0,b.jsxs)(aj.f,{onClick:()=>{if(!a||!a.results||0===a.results.length)return void J({title:"Export Failed",description:"No data available to export.",variant:"destructive"});let b=["id","name","suiteName","status","duration","startTime","endTime","browser","retries","tags","stdout","stderr","workerId"],c=a=>{if(null==a)return"";let b=String(a);return(b.includes(",")||b.includes('"')||b.includes("\n"))&&(b=`"${b.replace(/"/g,'""')}"`),b},d=b.map(c).join(",")+"\n";a.results.forEach(a=>{let e=b.map(b=>{let d;switch(b){case"tags":d=a.tags?a.tags.join("; "):"";break;case"stdout":d=a.stdout?a.stdout.join("\\n"):"";break;case"stderr":d=a.errorMessage||"";break;case"workerId":d=void 0!==a.workerId&&null!==a.workerId?String(a.workerId):"";break;default:d=a[b]}return c(d)});d+=e.join(",")+"\n"});let e=new Blob([d],{type:"text/csv;charset=utf-8;"}),f=URL.createObjectURL(e),g=document.createElement("a");g.setAttribute("href",f);let h="data";if(a.run&&a.run.id&&"string"==typeof a.run.id&&""!==a.run.id.trim()){let b=a.run.id.trim().split("-");b.length>1&&"run"===b[0].toLowerCase()&&b[1]&&""!==b[1].trim()?h=b[1]:b.length>0&&""!==b[0].trim()&&(h=b[0])}else if(a.run&&a.run.timestamp)try{h=String(new Date(a.run.timestamp).getTime())}catch(a){}let i=`run-${h}.csv`;g.setAttribute("download",i),g.style.visibility="hidden",document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(f),J({title:"Export Successful",description:`${i} has been downloaded.`})},variant:"outline",size:"sm",className:"ml-auto rounded-xl shadow-md",children:[(0,b.jsx)(ab.f,{className:"mr-2 h-4 w-4"}),"Export as CSV"]})]}),(0,b.jsxs)(f.O,{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"p-6 border rounded-xl bg-muted/50 shadow-lg space-y-4",children:[(0,b.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4",children:[(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(ai,{htmlFor:"status-filter",className:"text-sm font-medium text-muted-foreground",children:"Filter by Status"}),(0,b.jsxs)(ad.d,{value:j,onValueChange:a=>o(a),children:[(0,b.jsx)(ad.P,{id:"status-filter",className:"w-full bg-background shadow-inner rounded-xl",children:(0,b.jsx)(ad.U,{placeholder:"Select status"})}),(0,b.jsx)(ad.r,{className:"rounded-xl",children:aP.map(a=>(0,b.jsx)(ad.T,{value:a,className:"capitalize",children:a.charAt(0).toUpperCase()+a.slice(1)},a))})]})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(ai,{htmlFor:"search-filter",className:"text-sm font-medium text-muted-foreground",children:"Search by Name/Suite"}),(0,b.jsx)(ac.f,{id:"search-filter",type:"text",placeholder:"Enter test or suite name...",value:q,onChange:a=>r(a.target.value),className:"w-full bg-background shadow-inner rounded-xl"})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(ai,{className:"text-sm font-medium text-muted-foreground",children:"Filter by Tags"}),(0,b.jsxs)(ak.V,{open:w,onOpenChange:x,children:[(0,b.jsx)(ak.J,{asChild:!0,children:(0,b.jsxs)(aj.f,{variant:"outline",className:"w-full bg-background shadow-inner justify-between rounded-xl",children:[s.length>0?`Tags (${s.length})`:"Select Tags",(0,b.jsx)(Z.f,{className:"ml-2 h-4 w-4 opacity-50"})]})}),(0,b.jsxs)(ak.T,{className:"w-[var(--radix-popover-trigger-width)] p-0 rounded-xl",align:"start",children:[(0,b.jsx)("div",{className:"p-2 border-b",children:(0,b.jsx)("p",{className:"text-sm font-medium",children:"Filter by Tags"})}),(0,b.jsx)(aN.f,{className:"h-48",children:(0,b.jsx)("div",{className:"p-2 space-y-1",children:u.length>0?u.map(a=>(0,b.jsxs)(ai,{htmlFor:`tag-${a}`,className:"flex items-center space-x-2 p-1.5 rounded-xl hover:bg-accent/10 cursor-pointer",children:[(0,b.jsx)(aM,{id:`tag-${a}`,checked:s.includes(a),onCheckedChange:b=>{t(c=>!0===b?[...c,a]:c.filter(b=>b!==a))},className:"rounded-xl"}),(0,b.jsx)("span",{children:a})]},a)):(0,b.jsx)("p",{className:"text-xs text-muted-foreground p-2",children:"No tags available in this report."})})}),s.length>0&&(0,b.jsx)("div",{className:"p-2 border-t flex justify-end",children:(0,b.jsx)(aj.f,{variant:"ghost",size:"sm",onClick:()=>t([]),children:"Clear selected"})})]})]})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(ai,{htmlFor:"browser-filter",className:"text-sm font-medium text-muted-foreground",children:"Filter by Browser"}),(0,b.jsxs)(ad.d,{value:y,onValueChange:A,children:[(0,b.jsx)(ad.P,{id:"browser-filter",className:"w-full bg-background shadow-inner rounded-xl",children:(0,b.jsx)(ad.U,{placeholder:"Select browser"})}),(0,b.jsx)(ad.r,{className:"rounded-xl",children:B.map(a=>(0,b.jsx)(ad.T,{value:a,className:"capitalize",children:"all"===a?"All Browsers":a},a))})]})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(ai,{htmlFor:"suite-filter",className:"text-sm font-medium text-muted-foreground",children:"Filter by Test Suite"}),(0,b.jsxs)(ad.d,{value:D,onValueChange:E,children:[(0,b.jsx)(ad.P,{id:"suite-filter",className:"w-full bg-background shadow-inner rounded-xl",children:(0,b.jsx)(ad.U,{placeholder:"Select test suite"})}),(0,b.jsx)(ad.r,{className:"rounded-xl",children:F.map(a=>(0,b.jsx)(ad.T,{value:a,className:"capitalize truncate",children:"all"===a?"All Suites":a.length>40?a.substring(0,37)+"...":a},a))})]})]}),(0,b.jsxs)("div",{className:"flex items-center space-x-2 pt-5",children:[(0,b.jsx)(aM,{id:"retries-filter",checked:H,onCheckedChange:a=>I(!!a),className:"rounded-xl"}),(0,b.jsxs)(ai,{htmlFor:"retries-filter",className:"text-sm font-medium text-muted-foreground cursor-pointer flex items-center",children:[(0,b.jsx)(_,{className:"h-4 w-4 mr-1.5 text-muted-foreground"}),"Retries Only"]})]})]}),K&&(0,b.jsx)("div",{className:"mt-4 flex justify-end",children:(0,b.jsxs)(aj.f,{variant:"ghost",onClick:()=>{o("all"),r(""),t([]),A("all"),E("all"),I(!1)},className:"text-sm rounded-xl",children:[(0,b.jsx)($,{className:"mr-2 h-4 w-4"}),"Clear All Filters"]})})]}),s.length>0&&(0,b.jsxs)("div",{className:"mb-4 flex flex-wrap gap-2 items-center",children:[(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:"Active tags:"}),s.map(a=>(0,b.jsxs)(Q.f,{variant:"secondary",className:"flex items-center rounded-full",children:[a,(0,b.jsx)("button",{type:"button","aria-label":`Remove ${a} filter`,onClick:()=>{t(b=>b.filter(b=>b!==a))},className:"ml-1.5 p-0.5 rounded-full hover:bg-muted-foreground/20 focus:outline-none focus:ring-1 focus:ring-ring",children:(0,b.jsx)(k.f,{className:"h-3.5 w-3.5"})})]},a))]}),M.length>0?(0,b.jsx)(P.i,{type:"multiple",className:"w-full space-y-3",children:M.map((a,c)=>(0,b.jsxs)(P.O,{value:`suite-${a.title.replace(/\s+/g,"-")}-${c}`,className:"border rounded-xl shadow-lg bg-card hover:shadow-xl transition-shadow duration-300",children:[(0,b.jsx)(P.P,{className:"p-4 hover:no-underline text-left w-full group",children:(0,b.jsx)("div",{className:"flex justify-between items-center w-full",children:(0,b.jsxs)("div",{className:"flex-grow min-w-0",children:[(0,b.jsx)("h3",{className:"text-lg font-semibold group-hover:opacity-80 transition-opacity",title:a.title,style:{color:`hsl(var(${aQ[c%aQ.length]}))`},children:a.title}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-x-3 gap-y-1.5 mt-2",children:[(0,b.jsxs)(Q.f,{variant:"outline",className:"text-xs border-muted-foreground/50",children:[(0,b.jsx)(aa,{className:"mr-1.5 h-3 w-3 text-muted-foreground"}),"Total: ",a.stats.total]}),(0,b.jsxs)(Q.f,{variant:"outline",className:"text-xs",style:{color:"hsl(var(--chart-3))",borderColor:"hsl(var(--chart-3) / 0.5)"},children:[(0,b.jsx)(S.f,{className:"mr-1.5 h-3 w-3"}),"Passed: ",a.stats.passed]}),a.stats.flaky>0&&(0,b.jsxs)(Q.f,{variant:"outline",className:"text-xs",style:{color:"hsl(var(--flaky))",borderColor:"hsl(var(--flaky) / 0.5)"},children:[(0,b.jsx)(p,{className:"mr-1.5 h-3 w-3 text-[hsl(var(--flaky))]"}),(0,b.jsxs)("span",{className:"text-[hsl(var(--flaky))]",children:["Flaky: ",a.stats.flaky]})]}),(0,b.jsxs)(Q.f,{variant:"outline",className:"text-xs",style:{color:"hsl(var(--destructive))",borderColor:"hsl(var(--destructive) / 0.5)"},children:[(0,b.jsx)(k.f,{className:"mr-1.5 h-3 w-3"}),"Failed: ",a.stats.failed]}),(0,b.jsxs)(Q.f,{variant:"outline",className:"text-xs",style:{color:"hsl(var(--accent))",borderColor:"hsl(var(--accent) / 0.5)"},children:[(0,b.jsx)(l,{className:"mr-1.5 h-3 w-3"}),"Skipped: ",a.stats.skipped]}),a.stats.pending>0&&(0,b.jsxs)(Q.f,{variant:"outline",className:"text-xs",style:{color:"hsl(var(--primary))",borderColor:"hsl(var(--primary) / 0.5)"},children:[(0,b.jsx)(m.f,{className:"mr-1.5 h-3 w-3"}),"Pending: ",a.stats.pending]})]})]})})}),(0,b.jsx)(P.L,{className:"p-4 pt-0",children:a.tests.length>0?(0,b.jsx)(aN.f,{className:"h-[600px] pr-4",children:(0,b.jsx)("div",{className:"space-y-1 mt-2",children:a.tests.map(a=>(0,b.jsx)(Y,{test:a},a.id))})}):(0,b.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"No tests in this suite match the current filters."})})]},`suite-${a.title.replace(/\s+/g,"-")}-${c}`))}):(0,b.jsxs)("div",{className:"text-center py-8",children:[(0,b.jsx)("p",{className:"text-muted-foreground text-lg",children:"No test results match your current filters."}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Try adjusting the status, search term, or tag filters."})]})]})]})}):(0,b.jsx)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:(0,b.jsxs)(f.N,{className:"shadow-xl",children:[(0,b.jsx)(f.Y,{className:"flex flex-row items-center justify-between",children:(0,b.jsxs)("div",{children:[(0,b.jsx)(f.v,{className:"text-2xl font-headline text-primary",children:"Test Results"}),(a?.metadata?.generatedAt||a?.run?.timestamp)&&(0,b.jsxs)(f.u,{children:["Last updated:"," ",new Date(a.metadata?.generatedAt||a.run?.timestamp||Date.now()).toLocaleString()]})]})}),(0,b.jsx)(f.O,{children:(0,b.jsxs)(h.J,{className:"shadow-sm rounded-2xl",children:[(0,b.jsx)(z.f,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"No Test Data"}),(0,b.jsx)(h.p,{children:"No test results available. Ensure 'playwright-pulse-report.json' exists in 'pulse-report/' and is correctly formatted, or that the data source is providing results."})]})})]})})}var aS=a.i(29228),aT=a.i(55706),aU=a.i(85183),aV=a.i(93230),aW=a.i(72526),aX=a.i(34239),aY=a.i(59559),aZ=a.i(44098),a$=a.i(9694),a_=a.i(75225),a0=a.i(83966),a1=a.i(7670),a2=a.i(73050),a3=a.i(71223),a4=a.i(86966),a5=a.i(29873),a6=a.i(78948),a7=a.i(98892),a8=a.i(72733),a9=a.i(38279),ba=a.i(97865),bb=a.i(69212),bc=a.i(62728),bd=a.i(94395),be=a.i(98770),bf=a.i(81977),bg=["layout","type","stroke","connectNulls","isRange","ref"],bh=["key"];function bi(a){return(bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function bj(a,b){if(null==a)return{};var c,d,e=function(a,b){if(null==a)return{};var c={};for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d)){if(b.indexOf(d)>=0)continue;c[d]=a[d]}return c}(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],!(b.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function bk(){return(bk=Object.assign.bind()).apply(this,arguments)}function bl(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function bm(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?bl(Object(c),!0).forEach(function(b){br(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):bl(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}function bn(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,bs(d.key),d)}}function bo(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(bo=function(){return!!a})()}function bp(a){return(bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)})(a)}function bq(a,b){return(bq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a})(a,b)}function br(a,b,c){return(b=bs(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function bs(a){var b=function(a,b){if("object"!=bi(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=bi(d))return d;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}(a,"string");return"symbol"==bi(b)?b:b+""}var bt=function(a){var b,d;function e(){var a,b,c;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");for(var d=arguments.length,f=Array(d),g=0;g<d;g++)f[g]=arguments[g];return b=e,c=[].concat(f),b=bp(b),br(a=function(a,b){if(b&&("object"===bi(b)||"function"==typeof b))return b;if(void 0!==b)throw TypeError("Derived constructors may only return object or undefined");var c=a;if(void 0===c)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return c}(this,bo()?Reflect.construct(b,c||[],bp(this).constructor):b.apply(this,c)),"state",{isAnimationFinished:!0}),br(a,"id",(0,bd.C)("recharts-area-")),br(a,"handleAnimationEnd",function(){var b=a.props.onAnimationEnd;a.setState({isAnimationFinished:!0}),(0,a3.default)(b)&&b()}),br(a,"handleAnimationStart",function(){var b=a.props.onAnimationStart;a.setState({isAnimationFinished:!1}),(0,a3.default)(b)&&b()}),a}if("function"!=typeof a&&null!==a)throw TypeError("Super expression must either be null or a function");return e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&bq(e,a),b=[{key:"renderDots",value:function(a,b,d){var f=this.props.isAnimationActive,g=this.state.isAnimationFinished;if(f&&!g)return null;var h=this.props,i=h.dot,j=h.points,k=h.dataKey,l=(0,bf.T)(this.props,!1),m=(0,bf.T)(i,!0),n=j.map(function(a,b){var c=bm(bm(bm({key:"dot-".concat(b),r:3},l),m),{},{index:b,cx:a.x,cy:a.y,dataKey:k,value:a.value,payload:a.payload,points:j});return e.renderDotItem(i,c)}),o={clipPath:a?"url(#clipPath-".concat(b?"":"dots-").concat(d,")"):null};return c.default.createElement(ba.f,bk({className:"recharts-area-dots"},o),n)}},{key:"renderHorizontalRect",value:function(a){var b=this.props,d=b.baseLine,e=b.points,f=b.strokeWidth,g=e[0].x,h=e[e.length-1].x,i=a*Math.abs(g-h),j=(0,a4.default)(e.map(function(a){return a.y||0}));return((0,bd.H)(d)&&"number"==typeof d?j=Math.max(d,j):d&&Array.isArray(d)&&d.length&&(j=Math.max((0,a4.default)(d.map(function(a){return a.y||0})),j)),(0,bd.H)(j))?c.default.createElement("rect",{x:g<h?g:g-i,y:0,width:i,height:Math.floor(j+(f?parseInt("".concat(f),10):1))}):null}},{key:"renderVerticalRect",value:function(a){var b=this.props,d=b.baseLine,e=b.points,f=b.strokeWidth,g=e[0].y,h=e[e.length-1].y,i=a*Math.abs(g-h),j=(0,a4.default)(e.map(function(a){return a.x||0}));return((0,bd.H)(d)&&"number"==typeof d?j=Math.max(d,j):d&&Array.isArray(d)&&d.length&&(j=Math.max((0,a4.default)(d.map(function(a){return a.x||0})),j)),(0,bd.H)(j))?c.default.createElement("rect",{x:0,y:g<h?g:g-i,width:j+(f?parseInt("".concat(f),10):1),height:Math.floor(i)}):null}},{key:"renderClipRect",value:function(a){return"vertical"===this.props.layout?this.renderVerticalRect(a):this.renderHorizontalRect(a)}},{key:"renderAreaStatically",value:function(a,b,d,e){var f=this.props,g=f.layout,h=f.type,i=f.stroke,j=f.connectNulls,k=f.isRange,l=(f.ref,bj(f,bg));return c.default.createElement(ba.f,{clipPath:d?"url(#clipPath-".concat(e,")"):null},c.default.createElement(a8.f,bk({},(0,bf.T)(l,!0),{points:a,connectNulls:j,type:h,baseLine:b,layout:g,stroke:"none",className:"recharts-area-area"})),"none"!==i&&c.default.createElement(a8.f,bk({},(0,bf.T)(this.props,!1),{className:"recharts-area-curve",layout:g,type:h,connectNulls:j,fill:"none",points:a})),"none"!==i&&k&&c.default.createElement(a8.f,bk({},(0,bf.T)(this.props,!1),{className:"recharts-area-curve",layout:g,type:h,connectNulls:j,fill:"none",points:b})))}},{key:"renderAreaWithAnimation",value:function(a,b){var d=this,e=this.props,f=e.points,g=e.baseLine,h=e.isAnimationActive,i=e.animationBegin,j=e.animationDuration,k=e.animationEasing,l=e.animationId,m=this.state,n=m.prevPoints,o=m.prevBaseLine;return c.default.createElement(a2.f,{begin:i,duration:j,isActive:h,easing:k,from:{t:0},to:{t:1},key:"area-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var h=e.t;if(n){var i,j=n.length/f.length,k=f.map(function(a,b){var c=Math.floor(b*j);if(n[c]){var d=n[c],e=(0,bd.O)(d.x,a.x),f=(0,bd.O)(d.y,a.y);return bm(bm({},a),{},{x:e(h),y:f(h)})}return a});return i=(0,bd.H)(g)&&"number"==typeof g?(0,bd.O)(o,g)(h):(0,a5.default)(g)||(0,a6.default)(g)?(0,bd.O)(o,0)(h):g.map(function(a,b){var c=Math.floor(b*j);if(o[c]){var d=o[c],e=(0,bd.O)(d.x,a.x),f=(0,bd.O)(d.y,a.y);return bm(bm({},a),{},{x:e(h),y:f(h)})}return a}),d.renderAreaStatically(k,i,a,b)}return c.default.createElement(ba.f,null,c.default.createElement("defs",null,c.default.createElement("clipPath",{id:"animationClipPath-".concat(b)},d.renderClipRect(h))),c.default.createElement(ba.f,{clipPath:"url(#animationClipPath-".concat(b,")")},d.renderAreaStatically(f,g,a,b)))})}},{key:"renderArea",value:function(a,b){var c=this.props,d=c.points,e=c.baseLine,f=c.isAnimationActive,g=this.state,h=g.prevPoints,i=g.prevBaseLine,j=g.totalLength;return f&&d&&d.length&&(!h&&j>0||!(0,a7.default)(h,d)||!(0,a7.default)(i,e))?this.renderAreaWithAnimation(a,b):this.renderAreaStatically(d,e,a,b)}},{key:"render",value:function(){var a,b=this.props,d=b.hide,e=b.dot,f=b.points,g=b.className,h=b.top,i=b.left,j=b.xAxis,k=b.yAxis,l=b.width,m=b.height,n=b.isAnimationActive,o=b.id;if(d||!f||!f.length)return null;var p=this.state.isAnimationFinished,q=1===f.length,r=(0,a1.U)("recharts-area",g),s=j&&j.allowDataOverflow,t=k&&k.allowDataOverflow,u=s||t,v=(0,a5.default)(o)?this.id:o,w=null!=(a=(0,bf.T)(e,!1))?a:{r:3,strokeWidth:2},x=w.r,y=w.strokeWidth,z=((0,bf.b)(e)?e:{}).clipDot,A=void 0===z||z,B=2*(void 0===x?3:x)+(void 0===y?2:y);return c.default.createElement(ba.f,{className:r},s||t?c.default.createElement("defs",null,c.default.createElement("clipPath",{id:"clipPath-".concat(v)},c.default.createElement("rect",{x:s?i:i-l/2,y:t?h:h-m/2,width:s?l:2*l,height:t?m:2*m})),!A&&c.default.createElement("clipPath",{id:"clipPath-dots-".concat(v)},c.default.createElement("rect",{x:i-B/2,y:h-B/2,width:l+B,height:m+B}))):null,q?null:this.renderArea(u,v),(e||q)&&this.renderDots(u,A,v),(!n||p)&&bb.f.renderCallByParent(this.props,f))}}],d=[{key:"getDerivedStateFromProps",value:function(a,b){return a.animationId!==b.prevAnimationId?{prevAnimationId:a.animationId,curPoints:a.points,curBaseLine:a.baseLine,prevPoints:b.curPoints,prevBaseLine:b.curBaseLine}:a.points!==b.curPoints||a.baseLine!==b.curBaseLine?{curPoints:a.points,curBaseLine:a.baseLine}:null}}],b&&bn(e.prototype,b),d&&bn(e,d),Object.defineProperty(e,"prototype",{writable:!1}),e}(c.PureComponent);br(bt,"displayName","Area"),br(bt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!bc.f.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),br(bt,"getBaseValue",function(a,b,c,d){var e=a.layout,f=a.baseValue,g=b.props.baseValue,h=null!=g?g:f;if((0,bd.H)(h)&&"number"==typeof h)return h;var i="horizontal"===e?d:c,j=i.scale.domain();if("number"===i.type){var k=Math.max(j[0],j[1]),l=Math.min(j[0],j[1]);return"dataMin"===h?l:"dataMax"===h||k<0?k:Math.max(Math.min(j[0],j[1]),0)}return"dataMin"===h?j[0]:"dataMax"===h?j[1]:j[0]}),br(bt,"getComposedData",function(a){var b,c=a.props,d=a.item,e=a.xAxis,f=a.yAxis,g=a.xAxisTicks,h=a.yAxisTicks,i=a.bandSize,j=a.dataKey,k=a.stackedData,l=a.dataStartIndex,m=a.displayedData,n=a.offset,o=c.layout,p=k&&k.length,q=bt.getBaseValue(c,d,e,f),r="horizontal"===o,s=!1,t=m.map(function(a,b){p?c=k[l+b]:Array.isArray(c=(0,be.K)(a,j))?s=!0:c=[q,c];var c,d=null==c[1]||p&&null==(0,be.K)(a,j);return r?{x:(0,be.q)({axis:e,ticks:g,bandSize:i,entry:a,index:b}),y:d?null:f.scale(c[1]),value:c,payload:a}:{x:d?null:e.scale(c[1]),y:(0,be.q)({axis:f,ticks:h,bandSize:i,entry:a,index:b}),value:c,payload:a}});return b=p||s?t.map(function(a){var b=Array.isArray(a.value)?a.value[0]:null;return r?{x:a.x,y:null!=b&&null!=a.y?f.scale(b):null}:{x:null!=b?e.scale(b):null,y:a.y}}):r?f.scale(q):e.scale(q),bm({points:t,baseLine:b,layout:o,isRange:s},n)}),br(bt,"renderDotItem",function(a,b){var d;if(c.default.isValidElement(a))d=c.default.cloneElement(a,b);else if((0,a3.default)(a))d=a(b);else{var e=(0,a1.U)("recharts-area-dot","boolean"!=typeof a?a.className:""),f=b.key,g=bj(b,bh);d=c.default.createElement(a9.f,bk({},g,{key:f,className:e}))}return d});var bu=a.i(44171),bv=(0,a0.f)({chartName:"AreaChart",GraphicalChild:bt,axisComponents:[{axisType:"xAxis",AxisComp:aU.f},{axisType:"yAxis",AxisComp:aV.f}],formatAxisMap:bu.t});let bw=(0,i.f)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);var bx=a.i(61911);let by=({active:a,payload:c,label:d})=>a&&c&&c.length?(0,b.jsxs)("div",{className:"custom-recharts-tooltip",children:[(0,b.jsx)("p",{className:"label",children:`Date: ${d}`}),c.map((a,c)=>(0,b.jsx)("p",{style:{color:a.color},className:"text-xs",children:`${a.name}: ${a.value?.toLocaleString()}${a.unit||""}`},`item-${c}`))]}):null,bz=({active:a,payload:c})=>{if(a&&c&&c.length){let a=c[0].payload,d=new Date(a.dateRaw).toLocaleString();return(0,b.jsxs)("div",{className:"bg-[#0a0a0aeb] p-3 rounded-xl shadow-2xl border border-white/10 text-white min-w-[180px] backdrop-blur-sm",children:[(0,b.jsxs)("p",{className:"font-bold text-sm mb-0.5",children:["Run ",new Date(a.dateRaw).getTime()]}),(0,b.jsxs)("p",{className:"text-[11px] text-gray-400 mb-2",children:["Date: ",d]}),(0,b.jsxs)("div",{className:"flex items-center gap-1.5 text-[13px] mb-1",children:[(0,b.jsx)("span",{className:"w-2.5 h-2.5 rounded-full bg-[#ff9800]"}),(0,b.jsxs)("span",{children:["Duration: ",(0,b.jsxs)("span",{className:"font-bold",children:[a.durationSeconds,"s"]})]})]}),(0,b.jsxs)("p",{className:"text-[13px] mt-2 pt-2 border-t border-white/10 text-gray-300",children:["Tests: ",a.totalTests]})]})}return null},bA=c.memo(({trends:a,loading:d,error:e,currentResults:i})=>{let j=c.useRef(null),k=c.useRef(null),l=c.useRef(null),m=c.useRef(null),o=c.useRef(null),p=c.useMemo(()=>a&&0!==a.length?a.map((a,b)=>({...a,date:new Date(a.date).toLocaleDateString("en-CA",{month:"short",day:"numeric"}),durationSeconds:parseFloat((a.duration/1e3).toFixed(2)),workerCount:a.workerCount,flaky:a.flaky||0,runLabel:`Run ${b+1}`,dateRaw:a.date})):[],[a]),q=c.useMemo(()=>{if(console.log("[Describe Duration Chart] currentResults:",i?.length,"items"),!i||0===i.length)return console.log("[Describe Duration Chart] No current results"),[];let a=new Map,b=!1;if(i.forEach(c=>{if(c.describe){let d=c.describe;if(!d||"n/a"===d.trim().toLowerCase()||""===d.trim())return;b=!0;let e=c.spec_file||"Unknown File",f=`${e}::${d}`;a.has(f)||a.set(f,{duration:0,file:e,describe:d}),a.get(f).duration+=c.duration}}),!b)return console.log("[Describe Duration Chart] No valid describe blocks found"),[];let c=Array.from(a.values()).map(a=>({describe:a.describe,duration:a.duration,durationSeconds:parseFloat((a.duration/1e3).toFixed(2)),file:a.file}));return console.log("[Describe Duration Chart] Processed data:",c.length,"describe blocks"),c},[i]),r=c.useMemo(()=>{if(!i||0===i.length)return{series:[],categories:[]};let a=["Critical","High","Medium","Low","Minor"],b=[0,0,0,0,0],c=[0,0,0,0,0],d=[0,0,0,0,0],e=[0,0,0,0,0];return i.forEach(f=>{let g=f.severity||"Medium",h=String(f.status).toLowerCase(),i=a.indexOf(g);-1===i&&(i=2),"passed"===h?b[i]++:"flaky"===h?e[i]++:"failed"===h||"timedout"===h||"interrupted"===h?c[i]++:d[i]++}),{series:[{name:"Passed",data:b},{name:"Failed",data:c},{name:"Flaky",data:e},{name:"Skipped",data:d}],categories:a}},[i]);if(d)return(0,b.jsxs)(f.N,{className:"shadow-xl rounded-xl backdrop-blur-md bg-card/80 border-border/50",children:[(0,b.jsx)(f.Y,{children:(0,b.jsxs)(f.v,{className:"flex items-center text-2xl font-headline text-primary",children:[(0,b.jsx)(bw,{className:"h-7 w-7 mr-2"}),"Historical Trend Analysis"]})}),(0,b.jsx)(f.O,{className:"space-y-8 p-6",children:[void 0,void 0,void 0].map((a,c)=>(0,b.jsxs)("div",{className:"bg-muted/30 p-4 rounded-2xl shadow-inner",children:[(0,b.jsx)(g.f,{className:"h-6 w-1/3 mb-4 rounded-xl bg-muted/50"}),(0,b.jsx)(g.f,{className:"h-64 w-full rounded-xl bg-muted/50"})]},c))})]});if(e)return(0,b.jsxs)(h.J,{variant:"destructive",className:"mt-4 shadow-md rounded-2xl",children:[(0,b.jsx)(n.f,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"Error Fetching Historical Trends"}),(0,b.jsx)(h.p,{children:e})]});if(!a||0===a.length)return(0,b.jsxs)(f.N,{className:"shadow-xl rounded-xl backdrop-blur-md bg-card/80 border-border/50",children:[(0,b.jsx)(f.Y,{children:(0,b.jsxs)(f.v,{className:"flex items-center text-2xl font-headline text-primary",children:[(0,b.jsx)(bw,{className:"h-7 w-7 mr-2"}),"Historical Trend Analysis"]})}),(0,b.jsx)(f.O,{className:"p-6",children:(0,b.jsxs)(h.J,{className:"rounded-2xl border-primary/30 bg-primary/5 text-primary",children:[(0,b.jsx)(z.f,{className:"h-5 w-5 text-primary/80"}),(0,b.jsx)(h.s,{className:"font-semibold",children:"No Historical Data"}),(0,b.jsx)(h.p,{children:"No historical trend data available. Ensure 'trend-*.json' files exist in 'pulse-report/history/' and are correctly formatted."})]})})]});let s=p.some(a=>"number"==typeof a.workerCount&&a.workerCount>0);return(0,b.jsxs)(f.N,{className:"shadow-xl rounded-xl backdrop-blur-md bg-card/80 border-border/50",children:[(0,b.jsx)(f.Y,{children:(0,b.jsxs)(f.v,{className:"text-2xl font-headline text-primary flex items-center",children:[(0,b.jsx)(bw,{className:"h-7 w-7 mr-2"}),"Historical Trend Analysis"]})}),(0,b.jsxs)(f.O,{className:"space-y-10 p-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,b.jsx)("h4",{className:"text-xl font-semibold text-foreground",children:"Test Outcomes Over Time"})}),(0,b.jsx)("div",{ref:j,className:"w-full h-[350px] bg-muted/30 p-4 rounded-2xl shadow-inner",children:(0,b.jsx)(aZ.f,{width:"100%",height:"100%",children:(0,b.jsxs)(aS.f,{data:p,margin:{top:5,right:20,left:0,bottom:5},children:[(0,b.jsx)(aW.f,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),(0,b.jsx)(aU.f,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),(0,b.jsx)(aV.f,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),(0,b.jsx)(aX.f,{content:(0,b.jsx)(by,{}),cursor:{fill:"hsl(var(--muted))",fillOpacity:.2}}),(0,b.jsx)(aY.f,{wrapperStyle:{fontSize:"12px",paddingTop:"10px"}}),(0,b.jsx)(aT.f,{type:"monotone",dataKey:"totalTests",name:"Total Tests",stroke:"hsl(var(--chart-2))",strokeWidth:2,dot:{r:3},activeDot:{r:6}}),(0,b.jsx)(aT.f,{type:"monotone",dataKey:"passed",name:"Passed",stroke:"hsl(var(--chart-3))",strokeWidth:2,dot:{r:3},activeDot:{r:6}}),(0,b.jsx)(aT.f,{type:"monotone",dataKey:"failed",name:"Failed",stroke:"hsl(var(--chart-4))",strokeWidth:2,dot:{r:3},activeDot:{r:6}}),(0,b.jsx)(aT.f,{type:"monotone",dataKey:"flaky",name:"Flaky",stroke:"hsl(var(--flaky))",strokeWidth:2,dot:{r:3},activeDot:{r:6}}),(0,b.jsx)(aT.f,{type:"monotone",dataKey:"skipped",name:"Skipped",stroke:"hsl(var(--chart-5))",strokeWidth:2,dot:{r:3},activeDot:{r:6}})]})})})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,b.jsx)("h4",{className:"text-xl font-semibold text-foreground",children:"Test Duration Over Time"})}),(0,b.jsx)("div",{ref:k,className:"w-full h-[350px] bg-muted/30 p-4 rounded-2xl shadow-inner",children:(0,b.jsx)(aZ.f,{width:"100%",height:"100%",children:(0,b.jsxs)(bv,{data:p,margin:{top:5,right:20,left:0,bottom:5},children:[(0,b.jsx)("defs",{children:(0,b.jsxs)("linearGradient",{id:"colorDuration",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,b.jsx)("stop",{offset:"5%",stopColor:"#ff9800",stopOpacity:.4}),(0,b.jsx)("stop",{offset:"95%",stopColor:"#ff9800",stopOpacity:0})]})}),(0,b.jsx)(aW.f,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),(0,b.jsx)(aU.f,{dataKey:"runLabel",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),(0,b.jsx)(aV.f,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},unit:"s",name:"Seconds"}),(0,b.jsx)(aX.f,{content:(0,b.jsx)(bz,{}),cursor:{stroke:"#ff9800",strokeWidth:1}}),(0,b.jsx)(aY.f,{wrapperStyle:{fontSize:"12px",paddingTop:"10px"}}),(0,b.jsx)(bt,{type:"monotone",dataKey:"durationSeconds",name:"Duration (s)",stroke:"#ff9800",fillOpacity:1,fill:"url(#colorDuration)",strokeWidth:2.5,dot:{r:4,fill:"#ff9800",stroke:"#fff",strokeWidth:2},activeDot:{r:6,fill:"#ff9800",stroke:"#fff",strokeWidth:2}})]})})})]}),q.length>0&&(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,b.jsx)("h4",{className:"text-xl font-semibold text-foreground",children:"Test Describe Duration"})}),(0,b.jsx)("div",{ref:l,className:"w-full h-[400px] bg-muted/30 p-4 rounded-2xl shadow-inner",children:(0,b.jsx)(aZ.f,{width:"100%",height:"100%",children:(0,b.jsxs)(a$.f,{data:q,margin:{top:5,right:20,left:0,bottom:5},children:[(0,b.jsx)(aW.f,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),(0,b.jsx)(aU.f,{dataKey:"describe",hide:!0,tick:!1,axisLine:!1}),(0,b.jsx)(aV.f,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},label:{value:"Total Duration (s)",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}}}),(0,b.jsx)(aX.f,{content:({active:a,payload:c})=>{if(a&&c&&c.length){let a=c[0].payload;return(0,b.jsxs)("div",{className:"custom-recharts-tooltip",children:[(0,b.jsx)("p",{className:"label font-semibold",children:`Describe: ${a.describe}`}),(0,b.jsx)("p",{className:"text-xs",style:{opacity:.8},children:`File: ${a.file}`}),(0,b.jsx)("p",{className:"text-xs",style:{color:c[0].color},children:`Duration: ${a.durationSeconds}s`})]})}return null},cursor:{fill:"hsl(var(--muted))",fillOpacity:.2}}),(0,b.jsx)(aY.f,{wrapperStyle:{fontSize:"12px",paddingTop:"10px"}}),(0,b.jsx)(a_.f,{dataKey:"durationSeconds",name:"Duration (s)",fill:"hsl(var(--accent))",radius:[4,4,0,0]})]})})})]}),r.series.length>0&&(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,b.jsx)("h4",{className:"text-xl font-semibold text-foreground",children:"Severity Distribution"})}),(0,b.jsx)("div",{ref:m,className:"w-full h-[400px] bg-muted/30 p-4 rounded-2xl shadow-inner",children:(0,b.jsx)(aZ.f,{width:"100%",height:"100%",children:(0,b.jsxs)(a$.f,{data:r.categories.map((a,b)=>{let c={severity:a};return r.series.forEach(a=>{c[a.name]=a.data[b]}),c}),margin:{top:5,right:20,left:0,bottom:5},children:[(0,b.jsx)(aW.f,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),(0,b.jsx)(aU.f,{dataKey:"severity",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),(0,b.jsx)(aV.f,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},label:{value:"Test Count",angle:-90,position:"insideLeft",style:{textAnchor:"middle"}}}),(0,b.jsx)(aX.f,{content:({active:a,payload:c})=>{if(a&&c&&c.length){let a=c.filter(a=>a.value&&Number(a.value)>0);return 0===a.length?null:(0,b.jsxs)("div",{className:"custom-recharts-tooltip",children:[(0,b.jsx)("p",{className:"label font-semibold",children:`Severity: ${c[0].payload.severity}`}),a.map((a,c)=>(0,b.jsx)("p",{className:"text-xs",style:{color:a.color},children:`${a.name}: ${a.value}`},`item-${c}`)),(0,b.jsx)("p",{className:"text-xs font-semibold mt-1",children:`Total: ${a.reduce((a,b)=>a+(b.value||0),0)}`})]})}return null},cursor:{fill:"hsl(var(--muted))",fillOpacity:.2}}),(0,b.jsx)(aY.f,{wrapperStyle:{fontSize:"12px",paddingTop:"10px"}}),(0,b.jsx)(a_.f,{dataKey:"Passed",stackId:"a",fill:"hsl(var(--chart-3))",radius:[0,0,0,0]}),(0,b.jsx)(a_.f,{dataKey:"Failed",stackId:"a",fill:"hsl(var(--chart-4))",radius:[0,0,0,0]}),(0,b.jsx)(a_.f,{dataKey:"Flaky",stackId:"a",fill:"hsl(var(--flaky))",radius:[0,0,0,0]}),(0,b.jsx)(a_.f,{dataKey:"Skipped",stackId:"a",fill:"hsl(var(--chart-5))",radius:[4,4,0,0]})]})})})]}),s&&(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,b.jsxs)("h4",{className:"text-xl font-semibold text-foreground flex items-center",children:[(0,b.jsx)(bx.f,{className:"h-5 w-5 mr-2 text-primary"})," Active Worker Count Over Time"]})}),(0,b.jsx)("div",{ref:o,className:"w-full h-[350px] bg-muted/30 p-4 rounded-2xl shadow-inner",children:(0,b.jsx)(aZ.f,{width:"100%",height:"100%",children:(0,b.jsxs)(aS.f,{data:p.filter(a=>"number"==typeof a.workerCount),margin:{top:5,right:20,left:0,bottom:5},children:[(0,b.jsx)(aW.f,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),(0,b.jsx)(aU.f,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),(0,b.jsx)(aV.f,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},allowDecimals:!1,domain:["dataMin","dataMax"]}),(0,b.jsx)(aX.f,{content:(0,b.jsx)(by,{}),cursor:{fill:"hsl(var(--muted))",fillOpacity:.2}}),(0,b.jsx)(aY.f,{wrapperStyle:{fontSize:"12px",paddingTop:"10px"}}),(0,b.jsx)(aT.f,{type:"monotone",dataKey:"workerCount",name:"Active Workers",stroke:"hsl(var(--chart-info))",strokeWidth:2,dot:{r:3},activeDot:{r:6},connectNulls:!1})]})})}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:"Note: This chart shows the number of unique worker IDs detected in each historical run. Runs without worker information will not be plotted."})]})]})]})});bA.displayName="TrendAnalysis";var bB=a.i(95187);let bC=(0,bB.createServerReference)("009c6c0343f20a1ed20b0f46d8e31be239a5ee8d8a",bB.callServer,void 0,bB.findSourceMapURL,"getFlakyTestsAnalysis"),bD=(0,i.f)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),bE=(0,i.f)("chart-bar-big",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"7",y:"13",width:"9",height:"4",rx:"1",key:"1iip1u"}],["rect",{x:"7",y:"5",width:"12",height:"4",rx:"1",key:"1anskk"}]]);function bF({status:a}){let c={},d=(0,b.jsx)(m.f,{className:"h-3 w-3 mr-1"}),e=a;switch(a){case"passed":c={backgroundColor:"hsl(var(--chart-3) / 0.1)",color:"hsl(var(--chart-3))",borderColor:"hsl(var(--chart-3) / 0.3)"},d=(0,b.jsx)(j,{className:"h-3 w-3 mr-1",style:{color:"hsl(var(--chart-3))"}}),e="passed";break;case"failed":case"timedOut":c={backgroundColor:"hsl(var(--destructive) / 0.1)",color:"hsl(var(--destructive))",borderColor:"hsl(var(--destructive) / 0.3)"},d=(0,b.jsx)(k.f,{className:"h-3 w-3 mr-1",style:{color:"hsl(var(--destructive))"}}),e="failed"===a?"failed":"timedOut";break;case"skipped":c={backgroundColor:"hsl(var(--accent) / 0.1)",color:"hsl(var(--accent))",borderColor:"hsl(var(--accent) / 0.3)"},d=(0,b.jsx)(l,{className:"h-3 w-3 mr-1",style:{color:"hsl(var(--accent))"}}),e="skipped";break;case"pending":c={backgroundColor:"hsl(var(--primary) / 0.1)",color:"hsl(var(--primary))",borderColor:"hsl(var(--primary) / 0.3)"},d=(0,b.jsx)(m.f,{className:"h-3 w-3 mr-1",style:{color:"hsl(var(--primary))"}}),e="pending";break;default:c={backgroundColor:"hsl(var(--muted) / 0.5)",color:"hsl(var(--muted-foreground))",borderColor:"hsl(var(--border))"}}return(0,b.jsxs)(Q.f,{variant:"outline",className:"capitalize text-xs px-2 py-0.5 whitespace-nowrap border",style:c,children:[d,e]})}function bG(){let[a,d]=(0,c.useState)(null),[e,i]=(0,c.useState)(!0),[l,m]=(0,c.useState)(null);if((0,c.useEffect)(()=>{!async function(){i(!0),m(null);let a=await bC();a.success&&a.currentFlakyTests&&a.historicalFlakyTests?d({currentFlakyTests:a.currentFlakyTests,historicalFlakyTests:a.historicalFlakyTests}):m(a.error||"Failed to fetch flaky test analysis."),i(!1)}()},[]),e)return(0,b.jsx)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:(0,b.jsxs)(f.N,{className:"shadow-xl",children:[(0,b.jsxs)(f.Y,{children:[(0,b.jsx)(g.f,{className:"h-7 w-48 mb-1"}),(0,b.jsx)(g.f,{className:"h-4 w-3/4"})]}),(0,b.jsx)(f.O,{className:"space-y-4",children:[void 0,void 0,void 0].map((a,c)=>(0,b.jsxs)("div",{className:"p-4 border rounded-2xl space-y-2",children:[(0,b.jsx)(g.f,{className:"h-5 w-2/3"}),(0,b.jsx)(g.f,{className:"h-4 w-1/2"}),(0,b.jsx)(g.f,{className:"h-4 w-1/3"})]},c))})]})});if(l)return(0,b.jsx)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:(0,b.jsxs)(h.J,{variant:"destructive",children:[(0,b.jsx)(n.f,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"Flaky Test Analysis Error"}),(0,b.jsx)(h.p,{children:l})]})});let o=(a,c)=>0===a.length?(0,b.jsxs)(h.J,{className:"mt-4",children:[(0,b.jsx)(j,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"No Flaky Tests"}),(0,b.jsx)(h.p,{children:c})]}):(0,b.jsx)(P.i,{type:"multiple",className:"w-full space-y-3 mt-4",children:a.map((a,c)=>(0,b.jsxs)(P.O,{value:`flaky-${a.id}-${c}`,className:"border rounded-2xl bg-card hover:bg-muted/20 transition-colors",children:[(0,b.jsx)(P.P,{className:"p-4 text-left hover:no-underline",children:(0,b.jsxs)("div",{className:"flex flex-col w-full",children:[(0,b.jsx)(R.default,{href:`/test/${a.id}`,className:"hover:underline text-base font-semibold text-primary",onClick:a=>a.stopPropagation(),children:(a=>{if(!a)return"Unknown Test";let b=a.split(" > ");return b[b.length-1]||a})(a.name)}),(0,b.jsxs)("p",{className:"text-xs text-muted-foreground mt-0.5",children:["Suite: ",a.suiteName]}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2 text-xs mt-2 items-center",children:[(0,b.jsxs)(Q.f,{variant:"outline",style:{borderColor:"hsl(var(--chart-3))",color:"hsl(var(--chart-3))"},children:[(0,b.jsx)(j,{className:"h-3 w-3 mr-1.5"})," ",a.passedCount," Passed"]}),(0,b.jsxs)(Q.f,{variant:"outline",style:{borderColor:"hsl(var(--destructive))",color:"hsl(var(--destructive))"},children:[(0,b.jsx)(k.f,{className:"h-3 w-3 mr-1.5"})," ",a.failedCount," Failed"]}),(0,b.jsxs)(Q.f,{variant:"secondary",children:[(0,b.jsx)(bE,{className:"h-3 w-3 mr-1.5"})," ",a.totalRuns," Total Runs"]}),(0,b.jsxs)(Q.f,{variant:"outline",className:"text-xs",children:[(0,b.jsx)(bD,{className:"h-3 w-3 mr-1.5"}),"Seen: ",new Date(a.firstSeen).toLocaleDateString()," - ",new Date(a.lastSeen).toLocaleDateString()]})]})]})}),(0,b.jsxs)(P.L,{className:"p-4 pt-0",children:[(0,b.jsxs)("h4",{className:"text-sm font-semibold mb-2 text-foreground",children:["Run History (",a.occurrences.length,"):"]}),(0,b.jsx)("div",{className:"max-h-60 overflow-y-auto space-y-1.5 pr-2",children:a.occurrences.map((a,c)=>(0,b.jsxs)("div",{className:"flex justify-between items-center text-xs p-1.5 bg-muted/30 rounded-xl",children:[(0,b.jsx)("span",{children:new Date(a.runTimestamp).toLocaleString()}),(0,b.jsx)(bF,{status:a.status})]},c))})]})]},a.id+c))});return(0,b.jsx)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:(0,b.jsxs)(f.N,{className:"shadow-xl",children:[(0,b.jsxs)(f.Y,{children:[(0,b.jsxs)(f.v,{className:"text-2xl font-headline text-primary flex items-center",children:[(0,b.jsx)(q,{className:"h-7 w-7 mr-2"}),"Flaky Test Analysis"]}),(0,b.jsx)(f.u,{children:"Analysis of tests that have shown inconsistent pass/fail behavior across current and historical runs."})]}),(0,b.jsx)(f.O,{children:(0,b.jsxs)(H.i,{defaultValue:"current",className:"w-full",children:[(0,b.jsxs)(H.U,{className:"grid w-full grid-cols-2 bg-muted/50",children:[(0,b.jsxs)(H.k,{value:"current",className:"font-semibold",children:["Current Run (",a?.currentFlakyTests.length||0,")"]}),(0,b.jsxs)(H.k,{value:"historical",className:"font-semibold",children:["Historical Run (",a?.historicalFlakyTests.length||0,")"]})]}),(0,b.jsx)(H.S,{value:"current",children:o(a?.currentFlakyTests||[],"No tests were identified as flaky in the current run.")}),(0,b.jsx)(H.S,{value:"historical",children:o(a?.historicalFlakyTests||[],"No tests were identified as flaky based on historical pattern analysis.")})]})})]})})}var bH=a.i(81140),bI=a.i(20783),bJ=a.i(30030),bK=a.i(69340),bL=a.i(99682),bM=a.i(35804),bN="Switch",[bO,bP]=(0,bJ.c)(bN),[bQ,bR]=bO(bN),bS=c.forwardRef((a,d)=>{let{__scopeSwitch:e,name:f,checked:g,defaultChecked:h,required:i,disabled:j,value:k="on",onCheckedChange:l,form:m,...n}=a,[o,p]=c.useState(null),q=(0,bI.j)(d,a=>p(a)),r=c.useRef(!1),s=!o||m||!!o.closest("form"),[t=!1,u]=(0,bK.f)({prop:g,defaultProp:h,onChange:l});return(0,b.jsxs)(bQ,{scope:e,checked:t,disabled:j,children:[(0,b.jsx)(ae.V.button,{type:"button",role:"switch","aria-checked":t,"aria-required":i,"data-state":bW(t),"data-disabled":j?"":void 0,disabled:j,value:k,...n,ref:q,onClick:(0,bH.f)(a.onClick,a=>{u(a=>!a),s&&(r.current=a.isPropagationStopped(),r.current||a.stopPropagation())})}),s&&(0,b.jsx)(bV,{control:o,bubbles:!r.current,name:f,value:k,checked:t,required:i,disabled:j,form:m,style:{transform:"translateX(-100%)"}})]})});bS.displayName=bN;var bT="SwitchThumb",bU=c.forwardRef((a,c)=>{let{__scopeSwitch:d,...e}=a,f=bR(bT,d);return(0,b.jsx)(ae.V.span,{"data-state":bW(f.checked),"data-disabled":f.disabled?"":void 0,...e,ref:c})});bU.displayName=bT;var bV=a=>{let{control:d,checked:e,bubbles:f=!0,...g}=a,h=c.useRef(null),i=(0,bL.f)(e),j=(0,bM.f)(d);return c.useEffect(()=>{let a=h.current,b=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(i!==e&&b){let c=new Event("click",{bubbles:f});b.call(a,e),a.dispatchEvent(c)}},[i,e,f]),(0,b.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...g,tabIndex:-1,ref:h,style:{...a.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function bW(a){return a?"checked":"unchecked"}let bX=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(bS,{className:(0,W.c)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...c,ref:d,children:(0,b.jsx)(bU,{className:(0,W.c)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));function bY(){let[a,d]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let a,b=localStorage.getItem("pulse-theme");d(a=b?"dark"===b:document.documentElement.classList.contains("dark")),a&&!document.documentElement.classList.contains("dark")?document.documentElement.classList.add("dark"):!a&&document.documentElement.classList.contains("dark")&&document.documentElement.classList.remove("dark")},[]),(0,b.jsxs)(f.N,{className:"shadow-xl",children:[(0,b.jsxs)(f.Y,{children:[(0,b.jsx)(f.v,{className:"text-2xl font-headline text-primary",children:"Settings"}),(0,b.jsx)(f.u,{children:"Customize the appearance of the dashboard."})]}),(0,b.jsx)(f.O,{children:(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-2xl bg-card/70 shadow-sm",children:[(0,b.jsx)(ai,{htmlFor:"theme-toggle",className:"text-base font-medium text-foreground",children:"Theme"}),(0,b.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:a?"Dark Mode":"Light Mode"}),(0,b.jsx)(bX,{id:"theme-toggle",checked:a,onCheckedChange:a=>{d(a),a?(document.documentElement.classList.add("dark"),localStorage.setItem("pulse-theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("pulse-theme","light"))},"aria-label":"Toggle theme"})]})]}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground mt-4 text-center text-base font-medium text-foreground",children:"Your theme preference is saved in your browser."}),(0,b.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-2xl bg-card/70 shadow-sm",children:[(0,b.jsx)("span",{children:"Learn more from Documentation Website: "}),(0,b.jsx)("a",{className:"text-l font-headline text-primary underline hover:text-primary-dark transition-colors",href:"https://arghajit47.github.io/playwright-pulse-dashboard/",target:"_blank",rel:"noopener noreferrer",children:"Pulse Dashboard"})]})]})})]})}bX.displayName=bS.displayName;let bZ=(0,i.f)("list-x",[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"m15.5 9.5 5 5",key:"ytk86i"}],["path",{d:"m20.5 9.5-5 5",key:"17o44f"}]]),b$=(0,i.f)("search-slash",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),b_=[{name:"Timeout Errors",keywords:["timeout","exceeded"],description:"Tests that failed due to exceeding a specified time limit for an operation."},{name:"Locator/Selector Errors",keywords:["locator","selector","getByRole","getByText","getByLabel","getByPlaceholder","element not found","no element found"],description:"Failures related to finding or interacting with UI elements on the page."},{name:"Assertion Errors",keywords:["expect(","expected","assertion failed"],description:"Tests where a specific condition or value did not meet the expected criteria."},{name:"Strict Mode Violations",keywords:["strict mode violation"],description:"Failures caused by Playwright's strict mode, often when a locator resolves to multiple elements."},{name:"Navigation Errors",keywords:["navigation failed","page.goto","frame.goto"],description:"Errors that occurred during page navigation actions."}],b0="Other Errors";function b1(a){if(!a)return"Unknown Test";let b=a.split(" > ");return b[b.length-1]||a}function b2(){let{currentRun:a,loadingCurrent:d,errorCurrent:i}=(0,e.f)(),k=(0,c.useMemo)(()=>{if(!a?.results)return{categories:[],totalFailed:0};let b=a.results.filter(a=>"failed"===a.status||"timedOut"===a.status),c=new Map;b.forEach(a=>{c.has(a.name)||c.set(a.name,a)});let d=Array.from(c.values()),e=new Map;d.forEach(a=>{let b=(a.errorMessage||"Unknown error").replace(/\u001b\[[0-9;]*[mGKH]/g,"").toLowerCase(),c=!1;for(let d of b_)if(d.keywords.some(a=>b.includes(a.toLowerCase()))){e.has(d.name)||e.set(d.name,{tests:[],exampleErrorMessages:[]}),e.get(d.name).tests.push(a),e.get(d.name).exampleErrorMessages.length<3&&e.get(d.name).exampleErrorMessages.push(a.errorMessage),c=!0;break}!c&&(e.has(b0)||e.set(b0,{tests:[],exampleErrorMessages:[]}),e.get(b0).tests.push(a),e.get(b0).exampleErrorMessages.length<3&&e.get(b0).exampleErrorMessages.push(a.errorMessage))});let f=[];return e.forEach((a,b)=>{f.push({categoryName:b,count:a.tests.length,tests:a.tests,exampleErrorMessages:a.exampleErrorMessages})}),f.sort((a,b)=>b.count-a.count),{categories:f,totalFailed:d.length}},[a]);if(d)return(0,b.jsx)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:[void 0,void 0,void 0].map((a,c)=>(0,b.jsxs)(f.N,{className:"shadow-lg",children:[(0,b.jsxs)(f.Y,{children:[(0,b.jsx)(g.f,{className:"h-7 w-1/2 mb-2"}),(0,b.jsx)(g.f,{className:"h-4 w-3/4"})]}),(0,b.jsxs)(f.O,{children:[(0,b.jsx)(g.f,{className:"h-10 w-full"}),(0,b.jsx)(g.f,{className:"h-10 w-full mt-2"})]})]},c))});if(i)return(0,b.jsxs)(h.J,{variant:"destructive",className:"shadow-md",children:[(0,b.jsx)(n.f,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"Error Fetching Data"}),(0,b.jsx)(h.p,{children:i})]});if(!a||!a.results)return(0,b.jsxs)(h.J,{className:"shadow-md",children:[(0,b.jsx)(z.f,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"No Data Available"}),(0,b.jsx)(h.p,{children:"The current run report ('playwright-pulse-report.json') could not be loaded or is empty."})]});let l=k.totalFailed;return 0===l?(0,b.jsxs)(h.J,{variant:"default",className:"shadow-md border-green-500 bg-green-50 dark:bg-green-900/30",children:[(0,b.jsx)(j,{className:"h-5 w-5 text-green-600"}),(0,b.jsx)(h.s,{className:"text-green-700 dark:text-green-400",children:"No Failures Found!"}),(0,b.jsx)(h.p,{className:"text-green-600 dark:text-green-300",children:"Excellent! There are no failed or timed out tests in the current run report."})]}):0===k.categories.length&&l>0?(0,b.jsxs)(h.J,{className:"shadow-md",children:[(0,b.jsx)(b$,{className:"h-4 w-4"}),(0,b.jsx)(h.s,{children:"Failures Present, But Not Categorized"}),(0,b.jsxs)(h.p,{children:["There are ",l,' failures in the current report, but they did not match any predefined categories. They might be listed under "Other Errors" if that category appears.']})]}):(0,b.jsxs)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:[(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[(0,b.jsx)(f.N,{className:"shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-destructive/10 via-card to-card/95",children:(0,b.jsx)(f.O,{className:"p-6",children:(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:"Total Failures"}),(0,b.jsx)("p",{className:"text-3xl font-bold text-destructive mt-2",children:l})]}),(0,b.jsx)(bZ,{className:"h-12 w-12 text-destructive opacity-20"})]})})}),(0,b.jsx)(f.N,{className:"shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-primary/10 via-card to-card/95",children:(0,b.jsx)(f.O,{className:"p-6",children:(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:"Categories"}),(0,b.jsx)("p",{className:"text-3xl font-bold text-primary mt-2",children:k.categories.length})]}),(0,b.jsx)(n.f,{className:"h-12 w-12 text-primary opacity-20"})]})})}),(0,b.jsx)(f.N,{className:"shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-accent/10 via-card to-card/95",children:(0,b.jsx)(f.O,{className:"p-6",children:(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:"Most Common"}),(0,b.jsx)("p",{className:"text-lg font-bold text-foreground mt-2 truncate",children:k.categories[0]?.categoryName||"N/A"}),(0,b.jsxs)("p",{className:"text-xs text-muted-foreground",children:[k.categories[0]?.count||0," tests"]})]}),(0,b.jsx)(z.f,{className:"h-12 w-12 text-accent opacity-20"})]})})})]}),k.categories.map((a,c)=>{let d=b_.find(b=>b.name===a.categoryName),e=a.exampleErrorMessages[0],g=e?(0,W.p)(e.substring(0,150)):"",h=e&&e.length>150;return(0,b.jsxs)(f.N,{className:"shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-card via-card to-card/95 group",children:[(0,b.jsxs)(f.Y,{className:"border-b border-border/50 bg-muted/20",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"h-12 w-12 rounded-full bg-gradient-to-br from-destructive/20 to-destructive/10 flex items-center justify-center",children:(0,b.jsx)(bZ,{className:"h-6 w-6 text-destructive"})}),(0,b.jsxs)("div",{children:[(0,b.jsxs)(f.v,{className:"text-xl font-semibold text-foreground group-hover:text-primary transition-colors flex items-center gap-2",children:[a.categoryName,(0,b.jsx)(Q.f,{variant:"destructive",className:"text-xs font-semibold",children:a.count})]}),d?.description&&(0,b.jsx)(f.u,{className:"text-xs mt-1",children:d.description})]})]}),(0,b.jsxs)("div",{className:"text-right",children:[(0,b.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Category #",c+1]}),(0,b.jsxs)("p",{className:"text-sm font-semibold text-foreground",children:[(a.count/l*100).toFixed(1),"%"]})]})]}),a.categoryName===b0&&e&&(0,b.jsxs)("div",{className:"mt-3 p-3 rounded-2xl bg-muted/50 border border-border/30",children:[(0,b.jsx)("p",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Example error snippet:"}),(0,b.jsxs)("p",{className:"text-xs text-foreground font-mono",children:[(0,b.jsx)("span",{dangerouslySetInnerHTML:{__html:g}}),h?"...":""]})]})]}),(0,b.jsx)(f.O,{className:"pt-4",children:a.tests.length>0?(0,b.jsx)(P.i,{type:"multiple",className:"w-full space-y-3",children:a.tests.map((c,d)=>(0,b.jsxs)(P.O,{value:`${a.categoryName}-${c.id}-${d}`,className:"border border-border/50 rounded-2xl bg-card hover:bg-muted/30 transition-all duration-200 hover:shadow-md overflow-hidden",children:[(0,b.jsx)(P.P,{className:"px-4 py-3 text-left hover:no-underline group/trigger",children:(0,b.jsxs)("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[(0,b.jsx)("div",{className:"h-2 w-2 rounded-full bg-destructive flex-shrink-0"}),(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsx)("p",{className:"font-medium text-sm text-foreground group-hover/trigger:text-primary transition-colors truncate",title:b1(c.name),children:b1(c.name)}),(0,b.jsxs)("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",title:c.suiteName,children:["Suite: ",c.suiteName||"N/A"]})]})]})}),(0,b.jsx)(P.L,{className:"px-4 pb-4 pt-2 bg-muted/10",children:(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)(R.default,{href:`/test/${c.id}`,className:"inline-flex items-center gap-1 text-xs text-primary hover:underline font-medium",children:[(0,b.jsx)(V.f,{className:"h-3 w-3"}),"View full test details"]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,b.jsx)(n.f,{className:"h-3 w-3 text-destructive"}),(0,b.jsx)("h5",{className:"text-xs font-semibold text-foreground",children:"Error Message:"})]}),(0,b.jsx)(aN.f,{className:"max-h-40 w-full rounded-2xl border border-border/30",children:(0,b.jsx)("pre",{className:"text-xs whitespace-pre-wrap break-words font-mono bg-muted/50 p-3",children:(0,b.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.p)(c.errorMessage||"No error message captured.")}})})})]})]})})]},`${a.categoryName}-${c.id}-${d}`))}):(0,b.jsxs)("div",{className:"text-center py-8",children:[(0,b.jsx)(b$,{className:"h-12 w-12 text-muted-foreground mx-auto mb-3 opacity-50"}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:"No tests found in this category."})]})})]},a.categoryName)}),0===k.categories.length&&(0,b.jsxs)(h.J,{className:"shadow-lg rounded-xl border-0 bg-gradient-to-br from-muted/50 to-card",children:[(0,b.jsx)(b$,{className:"h-5 w-5"}),(0,b.jsx)(h.s,{className:"text-lg",children:"No Failures Categorized"}),(0,b.jsx)(h.p,{children:"Could not categorize any failures based on the current rules."})]})]})}let b3=(0,i.f)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var b4=a.i(78583);let b5=(0,i.f)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),b6=(0,i.f)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]);function b7(){let[a,d]=(0,c.useState)(null),[e,g]=(0,c.useState)({}),i=[{id:"attachment",name:"Generate Attachment Based Report",command:"npx generate-pulse-report",icon:b6,description:"Generates a comprehensive report with attachments including screenshots, videos, and traces.",outputFile:"playwright-pulse-report.html"},{id:"embedded",name:"Generate Embedded Single File Report",command:"npx generate-report",icon:b4.f,description:"Creates a self-contained HTML report with all assets embedded inline.",outputFile:"playwright-pulse-static-report.html"},{id:"email",name:"Generate Email Report",command:"npx generate-email-report",icon:b5,description:"Produces an email-optimized report format suitable for direct email distribution.",outputFile:"pulse-email-summary.html"}];return(0,b.jsxs)("div",{className:"space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner",children:[(0,b.jsxs)(h.J,{children:[(0,b.jsx)(b4.f,{className:"h-4 w-4"}),(0,b.jsxs)(h.p,{children:["These commands require ",(0,b.jsx)("strong",{children:"playwright-pulse-report"})," to be installed in your project. Run commands to generate different report formats from your test results."]})]}),(0,b.jsxs)(h.J,{children:[(0,b.jsx)(z.f,{className:"h-4 w-4"}),(0,b.jsxs)(h.p,{children:[(0,b.jsx)("strong",{children:"Note:"})," These report generation commands are only valid if the report directory is ",(0,b.jsx)("strong",{children:"'pulse-report'"}),", default report folder. Otherwise kindly use the CLI commands, for custom report directory."]})]}),(0,b.jsx)("div",{className:"grid gap-6 md:grid-cols-1 lg:grid-cols-1",children:i.map(c=>{let i=c.icon,j=e[c.id];return(0,b.jsxs)(f.N,{className:"hover:shadow-lg transition-shadow",children:[(0,b.jsx)(f.Y,{children:(0,b.jsx)("div",{className:"flex items-start justify-between",children:(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"p-2 rounded-2xl bg-primary/10",children:(0,b.jsx)(i,{className:"h-6 w-6 text-primary"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)(f.v,{className:"text-lg",children:c.name}),(0,b.jsx)(f.u,{className:"mt-1",children:c.description})]})]})})}),(0,b.jsx)(f.O,{children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsx)("div",{className:"bg-muted p-3 rounded-xl font-mono text-sm",children:(0,b.jsx)("code",{children:c.command})}),j&&(0,b.jsx)(h.J,{variant:j.success?"default":"destructive",children:(0,b.jsx)(h.p,{children:j.message})}),(0,b.jsxs)("div",{className:"flex gap-3",children:[(0,b.jsxs)(aj.f,{onClick:()=>(async a=>{d(a.id),g(b=>({...b,[a.id]:null}));try{let b=await fetch("/api/run-command",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:a.command})}),c=await b.json();b.ok&&c.success?g(b=>({...b,[a.id]:{success:!0,message:"Command executed successfully!"}})):g(b=>({...b,[a.id]:{success:!1,message:c.error||"Command execution failed"}}))}catch(b){g(b=>({...b,[a.id]:{success:!1,message:"Failed to execute command. Please try running it manually in your terminal."}}))}finally{d(null)}})(c),disabled:a===c.id,className:"flex-1",variant:"default",children:[(0,b.jsx)(b3,{className:"h-4 w-4 mr-2"}),a===c.id?"Running...":"Re-run"]}),(0,b.jsxs)(aj.f,{onClick:()=>{let a,b;a=window.location.origin,b=`${a}/api/reports/${c.outputFile}`,window.open(b,"_blank","noopener,noreferrer")},variant:"outline",className:"flex-1",children:[(0,b.jsx)(U,{className:"h-4 w-4 mr-2"}),"View"]})]})]})})]},c.id)})})]})}var b8=a.i(91918);let b9=(0,i.f)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);var ca="horizontal",cb=["horizontal","vertical"],cc=c.forwardRef((a,c)=>{var d;let{decorative:e,orientation:f=ca,...g}=a,h=(d=f,cb.includes(d))?f:ca;return(0,b.jsx)(ae.V.div,{"data-orientation":h,...e?{role:"none"}:{"aria-orientation":"vertical"===h?h:void 0,role:"separator"},...g,ref:c})});cc.displayName="Separator";let cd=c.forwardRef(({className:a,orientation:c="horizontal",decorative:d=!0,...e},f)=>(0,b.jsx)(cc,{ref:f,decorative:d,orientation:c,className:(0,W.c)("shrink-0 bg-border","horizontal"===c?"h-[1px] w-full":"h-full w-[1px]",a),...e}));cd.displayName=cc.displayName;var ce=a.i(10772),cf=a.i(26330),cg=a.i(65491),ch=a.i(74606),ci=a.i(96626),cj=a.i(3536),ck=a.i(85369),cl=a.i(86312),cm="Dialog",[cn,co]=(0,bJ.c)(cm),[cp,cq]=cn(cm),cr=a=>{let{__scopeDialog:d,children:e,open:f,defaultOpen:g,onOpenChange:h,modal:i=!0}=a,j=c.useRef(null),k=c.useRef(null),[l=!1,m]=(0,bK.f)({prop:f,defaultProp:g,onChange:h});return(0,b.jsx)(cp,{scope:d,triggerRef:j,contentRef:k,contentId:(0,ce.f)(),titleId:(0,ce.f)(),descriptionId:(0,ce.f)(),open:l,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(a=>!a),[m]),modal:i,children:e})};cr.displayName=cm;var cs="DialogTrigger";c.forwardRef((a,c)=>{let{__scopeDialog:d,...e}=a,f=cq(cs,d),g=(0,bI.j)(c,f.triggerRef);return(0,b.jsx)(ae.V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":f.open,"aria-controls":f.contentId,"data-state":cL(f.open),...e,ref:g,onClick:(0,bH.f)(a.onClick,f.onOpenToggle)})}).displayName=cs;var ct="DialogPortal",[cu,cv]=cn(ct,{forceMount:void 0}),cw=a=>{let{__scopeDialog:d,forceMount:e,children:f,container:g}=a,h=cq(ct,d);return(0,b.jsx)(cu,{scope:d,forceMount:e,children:c.Children.map(f,a=>(0,b.jsx)(ci.f,{present:e||h.open,children:(0,b.jsx)(ch.f,{asChild:!0,container:g,children:a})}))})};cw.displayName=ct;var cx="DialogOverlay",cy=c.forwardRef((a,c)=>{let d=cv(cx,a.__scopeDialog),{forceMount:e=d.forceMount,...f}=a,g=cq(cx,a.__scopeDialog);return g.modal?(0,b.jsx)(ci.f,{present:e||g.open,children:(0,b.jsx)(cz,{...f,ref:c})}):null});cy.displayName=cx;var cz=c.forwardRef((a,c)=>{let{__scopeDialog:d,...e}=a,f=cq(cx,d);return(0,b.jsx)(ck.f,{as:b8.f,allowPinchZoom:!0,shards:[f.contentRef],children:(0,b.jsx)(ae.V.div,{"data-state":cL(f.open),...e,ref:c,style:{pointerEvents:"auto",...e.style}})})}),cA="DialogContent",cB=c.forwardRef((a,c)=>{let d=cv(cA,a.__scopeDialog),{forceMount:e=d.forceMount,...f}=a,g=cq(cA,a.__scopeDialog);return(0,b.jsx)(ci.f,{present:e||g.open,children:g.modal?(0,b.jsx)(cC,{...f,ref:c}):(0,b.jsx)(cD,{...f,ref:c})})});cB.displayName=cA;var cC=c.forwardRef((a,d)=>{let e=cq(cA,a.__scopeDialog),f=c.useRef(null),g=(0,bI.j)(d,e.contentRef,f);return c.useEffect(()=>{let a=f.current;if(a)return(0,cl.f)(a)},[]),(0,b.jsx)(cE,{...a,ref:g,trapFocus:e.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,bH.f)(a.onCloseAutoFocus,a=>{a.preventDefault(),e.triggerRef.current?.focus()}),onPointerDownOutside:(0,bH.f)(a.onPointerDownOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey;(2===b.button||c)&&a.preventDefault()}),onFocusOutside:(0,bH.f)(a.onFocusOutside,a=>a.preventDefault())})}),cD=c.forwardRef((a,d)=>{let e=cq(cA,a.__scopeDialog),f=c.useRef(!1),g=c.useRef(!1);return(0,b.jsx)(cE,{...a,ref:d,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),b.defaultPrevented||(f.current||e.triggerRef.current?.focus(),b.preventDefault()),f.current=!1,g.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||(f.current=!0,"pointerdown"===b.detail.originalEvent.type&&(g.current=!0));let c=b.target;e.triggerRef.current?.contains(c)&&b.preventDefault(),"focusin"===b.detail.originalEvent.type&&g.current&&b.preventDefault()}})}),cE=c.forwardRef((a,d)=>{let{__scopeDialog:e,trapFocus:f,onOpenAutoFocus:g,onCloseAutoFocus:h,...i}=a,j=cq(cA,e),k=c.useRef(null),l=(0,bI.j)(d,k);return(0,cj.f)(),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(cg.f,{asChild:!0,loop:!0,trapped:f,onMountAutoFocus:g,onUnmountAutoFocus:h,children:(0,b.jsx)(cf.f,{role:"dialog",id:j.contentId,"aria-describedby":j.descriptionId,"aria-labelledby":j.titleId,"data-state":cL(j.open),...i,ref:l,onDismiss:()=>j.onOpenChange(!1)})}),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(cP,{titleId:j.titleId}),(0,b.jsx)(cQ,{contentRef:k,descriptionId:j.descriptionId})]})]})}),cF="DialogTitle",cG=c.forwardRef((a,c)=>{let{__scopeDialog:d,...e}=a,f=cq(cF,d);return(0,b.jsx)(ae.V.h2,{id:f.titleId,...e,ref:c})});cG.displayName=cF;var cH="DialogDescription",cI=c.forwardRef((a,c)=>{let{__scopeDialog:d,...e}=a,f=cq(cH,d);return(0,b.jsx)(ae.V.p,{id:f.descriptionId,...e,ref:c})});cI.displayName=cH;var cJ="DialogClose",cK=c.forwardRef((a,c)=>{let{__scopeDialog:d,...e}=a,f=cq(cJ,d);return(0,b.jsx)(ae.V.button,{type:"button",...e,ref:c,onClick:(0,bH.f)(a.onClick,()=>f.onOpenChange(!1))})});function cL(a){return a?"open":"closed"}cK.displayName=cJ;var cM="DialogTitleWarning",[cN,cO]=(0,bJ.e)(cM,{contentName:cA,titleName:cF,docsSlug:"dialog"}),cP=({titleId:a})=>{let b=cO(cM),d=`\`${b.contentName}\` requires a \`${b.titleName}\` for the component to be accessible for screen reader users.
2
+
3
+ If you want to hide the \`${b.titleName}\`, you can wrap it with our VisuallyHidden component.
4
+
5
+ For more information, see https://radix-ui.com/primitives/docs/components/${b.docsSlug}`;return c.useEffect(()=>{a&&(document.getElementById(a)||console.error(d))},[d,a]),null},cQ=({contentRef:a,descriptionId:b})=>{let d=cO("DialogDescriptionWarning"),e=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${d.contentName}}.`;return c.useEffect(()=>{let c=a.current?.getAttribute("aria-describedby");b&&c&&(document.getElementById(b)||console.warn(e))},[e,a,b]),null},cR=a.i(37727);let cS=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(cy,{className:(0,W.c)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...c,ref:d}));cS.displayName=cy.displayName;let cT=(0,ag.f)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),cU=c.forwardRef(({side:a="right",className:c,children:d,...e},f)=>(0,b.jsxs)(cw,{children:[(0,b.jsx)(cS,{}),(0,b.jsxs)(cB,{ref:f,className:(0,W.c)(cT({side:a}),c),...e,children:[d,(0,b.jsxs)(cK,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,b.jsx)(cR.X,{className:"h-4 w-4"}),(0,b.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));cU.displayName=cB.displayName,(c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(cG,{ref:d,className:(0,W.c)("text-lg font-semibold text-foreground",a),...c}))).displayName=cG.displayName,(c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(cI,{ref:d,className:(0,W.c)("text-sm text-muted-foreground",a),...c}))).displayName=cI.displayName;var cV=a.i(46798);let cW=c.createContext(null);function cX(){let a=c.useContext(cW);if(!a)throw Error("useSidebar must be used within a SidebarProvider.");return a}let cY=c.forwardRef(({defaultOpen:a=!0,open:d,onOpenChange:e,className:f,style:g,children:h,...i},j)=>{let k=function(){let[a,b]=c.useState(void 0);return c.useEffect(()=>{let a=window.matchMedia("(max-width: 767px)"),c=()=>{b(window.innerWidth<768)};return a.addEventListener("change",c),b(window.innerWidth<768),()=>a.removeEventListener("change",c)},[]),!!a}(),[l,m]=c.useState(!1),[n,o]=c.useState(a),p=d??n,q=c.useCallback(a=>{let b="function"==typeof a?a(p):a;e?e(b):o(b),document.cookie=`sidebar_state=${b}; path=/; max-age=604800`},[e,p]),r=c.useCallback(()=>k?m(a=>!a):q(a=>!a),[k,q,m]);c.useEffect(()=>{let a=a=>{"b"===a.key&&(a.metaKey||a.ctrlKey)&&(a.preventDefault(),r())};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[r]);let s=p?"expanded":"collapsed",t=c.useMemo(()=>({state:s,open:p,setOpen:q,isMobile:k,openMobile:l,setOpenMobile:m,toggleSidebar:r}),[s,p,q,k,l,m,r]);return(0,b.jsx)(cW.Provider,{value:t,children:(0,b.jsx)(cV.g,{delayDuration:0,children:(0,b.jsx)("div",{style:{"--sidebar-width":"320px","--sidebar-width-icon":"3.5rem",...g},className:(0,W.c)("group/sidebar-wrapper flex min-h-svh w-full",f),ref:j,...i,children:h})})})});cY.displayName="SidebarProvider";let cZ=c.forwardRef(({side:a="left",collapsible:c="icon",className:d,children:e,...f},g)=>{let{isMobile:h,state:i,openMobile:j,setOpenMobile:k}=cX();return h?(0,b.jsxs)(cr,{open:j,onOpenChange:k,children:[(0,b.jsx)(cS,{className:"bg-black/60 backdrop-blur-sm"}),(0,b.jsx)(cU,{"data-sidebar":"sidebar","data-mobile":"true",className:(0,W.c)("w-[var(--sidebar-width)] p-0 text-[--color-text-primary] border-r-0","bg-[--glass-bg] backdrop-blur-[20px] saturate-180 border-r border-[--glass-border]"),style:{"--sidebar-width":"320px"},side:a,children:(0,b.jsx)("div",{className:"flex h-full w-full flex-col",children:e})})]}):(0,b.jsx)("aside",{ref:g,"data-sidebar":"sidebar","data-state":i,"data-collapsible":c,"data-side":a,className:(0,W.c)("group hidden h-svh h-[100dvh] flex-shrink-0 flex-col md:flex sticky top-0","bg-[--glass-bg] backdrop-blur-[20px] saturate-180","border-[--glass-border]","left"===a?"border-r":"border-l","transition-all duration-300 ease-in-out","collapsed"===i?"w-[var(--sidebar-width-icon)]":"w-[var(--sidebar-width)]",d),...f,children:(0,b.jsx)("div",{className:"flex h-full w-full flex-col",children:e})})});cZ.displayName="Sidebar";let c$=c.forwardRef(({className:a,onClick:c,...d},e)=>{let{toggleSidebar:f}=cX();return(0,b.jsxs)(aj.f,{ref:e,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:(0,W.c)("h-7 w-7 md:hidden",a),onClick:a=>{c?.(a),f()},...d,children:[(0,b.jsx)(b9,{}),(0,b.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});c$.displayName="SidebarTrigger";let c_=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)("main",{ref:d,className:(0,W.c)("relative flex min-h-svh flex-1 flex-col bg-background",a),...c}));c_.displayName="SidebarInset";let c0=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)("div",{ref:d,"data-sidebar":"header",className:(0,W.c)("flex flex-col gap-4 p-6",a),...c}));c0.displayName="SidebarHeader";let c1=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)("div",{ref:d,"data-sidebar":"content",className:(0,W.c)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-6","group-data-[collapsible=icon][data-state=collapsed]:p-2 group-data-[collapsible=icon][data-state=collapsed]:overflow-hidden",a),...c}));c1.displayName="SidebarContent";let c2=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)("ul",{ref:d,"data-sidebar":"menu",className:(0,W.c)("flex w-full min-w-0 flex-col gap-1",a),...c}));c2.displayName="SidebarMenu";let c3=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)("li",{ref:d,"data-sidebar":"menu-item",className:(0,W.c)("group/menu-item relative",a),...c}));c3.displayName="SidebarMenuItem";let c4=(0,ag.f)("peer/menu-button relative flex w-full items-center gap-4 overflow-hidden rounded-xl p-4 text-left text-[0.95rem] font-medium outline-none transition-all duration-300 ease-in-out disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-[--color-text-secondary] hover:text-[--color-primary] hover:bg-[--color-hover] hover:translate-x-1 hover:shadow-md data-[active=true]:bg-primary/10 data-[active=true]:text-primary data-[active=true]:font-semibold data-[active=true]:shadow-lg"}},defaultVariants:{variant:"default"}}),c5=c.forwardRef(({asChild:a=!1,isActive:c=!1,variant:d="default",tooltip:e,className:f,children:g,...h},i)=>{let j=a?b8.f:"button",{isMobile:k,state:l}=cX(),m=(0,b.jsxs)(j,{ref:i,"data-sidebar":"menu-button","data-active":c,className:(0,W.c)(c4({variant:d}),"group-data-[collapsible=icon][data-state=collapsed]:size-12 group-data-[collapsible=icon][data-state=collapsed]:justify-center group-data-[collapsible=icon][data-state=collapsed]:p-0","group-data-[collapsible=icon][data-state=collapsed]:[&>span:last-child]:hidden",f),...h,children:[(0,b.jsx)("div",{className:(0,W.c)("absolute top-0 left-[-100%] w-full h-full bg-gradient-to-r from-primary/10 to-transparent opacity-50 transition-all duration-400 ease-in-out","peer-hover/menu-button:left-0 peer-data-[active=true]/menu-button:left-0")}),g]});return e?("string"==typeof e&&(e={children:e}),(0,b.jsxs)(cV.W,{children:[(0,b.jsx)(cV.y,{asChild:!0,children:m}),(0,b.jsx)(cV.Y,{side:"right",align:"center",className:(0,W.c)("collapsed"!==l||k?"hidden":"block"),...e,children:e.children})]})):m});c5.displayName="SidebarMenuButton";let c6=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)("div",{ref:d,"data-sidebar":"footer",className:(0,W.c)("flex flex-col gap-2 p-6 mt-auto",a),...c}));c6.displayName="SidebarFooter";let c7=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(cd,{ref:d,"data-sidebar":"separator",className:(0,W.c)("mx-2 w-auto bg-[--color-border]","group-data-[state=collapsed]:mx-auto group-data-[state=collapsed]:my-2 group-data-[state=collapsed]:h-auto group-data-[state=collapsed]:w-8/12",a),...c}));c7.displayName="SidebarSeparator",(c.forwardRef(({className:a,...c},d)=>(0,b.jsx)("div",{ref:d,"data-sidebar":"group",className:(0,W.c)("relative flex w-full min-w-0 flex-col",a),...c}))).displayName="SidebarGroup",(c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(ac.f,{ref:d,"data-sidebar":"input",className:(0,W.c)("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-[--color-primary]",a),...c}))).displayName="SidebarInput";let c8=(0,i.f)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),c9=(0,i.f)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),da=(0,i.f)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);a.s(["PulseDashboard",0,function(){let a,{currentRun:f,historicalTrends:g,loadingCurrent:h,loadingHistorical:i,errorCurrent:j,errorHistorical:k}=(0,e.f)(),[l,m]=(0,c.useState)("dashboard"),[o,p]=(0,c.useState)(void 0),[r,s]=(0,c.useState)("#7737BF");(0,c.useEffect)(()=>{"live-results"!==l&&o&&p(void 0)},[l,o]);let t=[{id:"dashboard",label:"Dashboard",icon:c8,description:"Real-time Playwright Test Execution Monitoring & Analysis Overview",labelColorVar:"--sidebar-tab-dashboard-color-hsl"},{id:"live-results",label:"Test Results",icon:aa,description:"Detailed view of the latest test run results with filters.",labelColorVar:"--sidebar-tab-results-color-hsl"},{id:"trend-analysis",label:"Trend Analysis",icon:bw,description:"Historical data visualization for test performance.",labelColorVar:"--sidebar-tab-trends-color-hsl"},{id:"flaky-tests",label:"Flaky Tests",icon:q,description:"Analysis of historically flaky tests.",labelColorVar:"--sidebar-tab-flaky-color-hsl"},{id:"failure-categorization",label:"Failure Categorization",icon:bZ,description:"Categorize and view common failure types.",labelColorVar:"--sidebar-tab-failures-color-hsl"},{id:"pulse-command",label:"Pulse Command",icon:n.f,description:"Generate various report formats using playwright-pulse-report commands.",labelColorVar:"--sidebar-tab-command-color-hsl"},{id:"settings",label:"Settings",icon:c9,description:"Configure dashboard appearance and preferences.",labelColorVar:"--sidebar-tab-settings-color-hsl"}],u=t.find(a=>"settings"===a.id),v=t.filter(a=>"settings"!==a.id),w=t.find(a=>a.id===l);switch(l){case"dashboard":default:a=(0,b.jsx)(O,{currentRun:f,loading:h,error:j,onMetricClick:a=>{p(a),m("live-results")}});break;case"live-results":a=(0,b.jsx)(aR,{report:f,loading:h,error:j,initialFilter:o});break;case"trend-analysis":a=(0,b.jsx)(bA,{trends:g,loading:i,error:k,currentResults:f?.results});break;case"flaky-tests":a=(0,b.jsx)(bG,{});break;case"failure-categorization":a=(0,b.jsx)(b2,{});break;case"pulse-command":a=(0,b.jsx)(b7,{});break;case"settings":a=(0,b.jsx)(bY,{})}return(0,b.jsxs)(cY,{defaultOpen:!0,children:[(0,b.jsxs)(cZ,{collapsible:"icon",className:"border-r border-sidebar-border shadow-lg",children:[(0,b.jsxs)(c0,{className:"p-4 group-data-[collapsible=icon]:p-2 flex items-center justify-between group-data-[collapsible=icon]:justify-center border-b border-sidebar-border",children:[(0,b.jsxs)(R.default,{href:"/",className:"flex items-center",onClick:()=>m("dashboard"),children:[(0,b.jsx)(d.default,{src:"https://ocpaxmghzmfbuhxzxzae.supabase.co/storage/v1/object/public/images/pulse-report/playwright_pulse_icon.png",alt:"Pulse Dashboard Logo",width:120,height:30,style:{objectFit:"fill"},className:"transition-all duration-200","data-ai-hint":"pulse logo"}),(0,b.jsx)("span",{style:{marginLeft:"10px",color:"#489ef9",fontWeight:900},children:"PULSE DASHBOARD"})]}),(0,b.jsx)(c$,{className:"md:hidden"})]}),(0,b.jsx)(c1,{children:(0,b.jsx)(c2,{children:v.map(a=>(0,b.jsx)(c3,{children:(0,b.jsxs)(c5,{onClick:()=>{m(a.id)},isActive:l===a.id,tooltip:{children:a.label,side:"right",align:"center"},children:[(0,b.jsx)(a.icon,{className:"h-5 w-5"}),(0,b.jsx)("span",{style:l===a.id?void 0:a.labelColorVar?{color:`hsl(var(${a.labelColorVar}))`}:void 0,children:a.label})]})},a.id))})}),(0,b.jsxs)(c6,{className:"p-2 mt-auto border-t border-sidebar-border",children:[u&&(0,b.jsx)(c2,{className:"group-data-[collapsible=icon]:py-2",children:(0,b.jsx)(c3,{children:(0,b.jsxs)(c5,{onClick:()=>{m(u.id)},isActive:l===u.id,tooltip:{children:u.label,side:"right",align:"center"},children:[(0,b.jsx)(u.icon,{className:"h-5 w-5"}),(0,b.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",style:l===u.id?void 0:u.labelColorVar?{color:`hsl(var(${u.labelColorVar}))`}:void 0,children:u.label})]})})}),(0,b.jsxs)("div",{className:"pt-2 group-data-[collapsible=icon]:hidden",children:[(0,b.jsx)(c7,{className:"my-1 group-data-[collapsible=icon]:hidden"}),(0,b.jsxs)("div",{className:"flex items-center justify-center gap-1.5 text-xs p-2",children:[(0,b.jsx)(da,{className:"h-3.5 w-3.5 text-sidebar-foreground/70"}),(0,b.jsx)("span",{className:"font-medium text-sidebar-foreground",children:"Pulse"}),(0,b.jsx)("span",{className:"text-muted-foreground/80",children:"v1.1.0"})]})]})]})]}),(0,b.jsx)(c_,{children:(0,b.jsxs)("div",{className:"container mx-auto p-6 md:p-8 space-y-6 min-h-screen flex flex-col rounded-[2rem] shadow-lg bg-background",children:[(0,b.jsxs)("header",{className:"mb-0",children:[(0,b.jsx)("h1",{className:"text-3xl font-bold font-headline text-primary tracking-tight",children:w?.label||"Pulse Dashboard"}),(0,b.jsx)("p",{className:"text-md text-muted-foreground mt-1",children:w?.description||"Real-time Playwright Test Execution Monitoring & Analysis Overview"}),(0,b.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["Latest Run Date:"," ",h?(0,b.jsx)("span",{className:"text-muted-foreground",children:"Loading..."}):f?.run?.timestamp?(0,b.jsx)("span",{className:"text-muted-foreground font-medium",children:new Date(f.run.timestamp).toLocaleString()}):j?(0,b.jsx)("span",{className:"text-destructive font-medium",children:"Error loading data"}):(0,b.jsx)("span",{className:"text-muted-foreground font-medium",children:"Not available"})]})]}),(0,b.jsx)("main",{className:"flex-grow mt-6",children:a}),(0,b.jsxs)("footer",{style:{padding:"0.5rem",textAlign:"center",fontFamily:"'Segoe UI', system-ui, sans-serif",marginTop:"auto"},className:"text-foreground",children:[(0,b.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",fontSize:"0.9rem",fontWeight:600,letterSpacing:"0.5px"},children:[(0,b.jsx)("span",{children:"Created by"}),(0,b.jsx)("a",{href:"https://github.com/Arghajit47",target:"_blank",rel:"noopener noreferrer",style:{color:r,fontWeight:700,fontStyle:"italic",textDecoration:"none",transition:"all 0.2s ease"},onMouseOver:()=>s("#BF5C37"),onMouseOut:()=>s("#7737BF"),children:"Arghajit Singha"})]}),(0,b.jsx)("div",{style:{marginTop:"0.5rem",fontSize:"0.75rem"},className:"text-muted-foreground",children:"Crafted with precision"})]})]})})]})}],95923)}]);})()