@piwitests/server 0.19.0 → 0.20.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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{eptP4pGv.js → -f7BAm1H.js} +1 -1
- package/.output/public/_nuxt/{Bti38m-M.js → 4gYNA-d4.js} +1 -1
- package/.output/public/_nuxt/{CHEFCN8Q.js → 5A6ITZXj.js} +1 -1
- package/.output/public/_nuxt/{DoUy4UHi.js → 8PUUncmO.js} +2 -2
- package/.output/public/_nuxt/{DS636elg.js → A1pj0VnG.js} +1 -1
- package/.output/public/_nuxt/{B9WhzpKO.js → AbmKWFQQ.js} +1 -1
- package/.output/public/_nuxt/{rWNTSFD6.js → B3obW6cw.js} +3 -3
- package/.output/public/_nuxt/{Bu2aaVIY.js → B7FTvFWq.js} +1 -1
- package/.output/public/_nuxt/{CpjgB2aY.js → B8zkOmwo.js} +1 -1
- package/.output/public/_nuxt/B96M2gdj.js +1 -0
- package/.output/public/_nuxt/{FUXhyidq.js → B99fbi73.js} +1 -1
- package/.output/public/_nuxt/{DslPMqfa.js → B9OLmp0f.js} +1 -1
- package/.output/public/_nuxt/{BccXfBfI.js → BKkF4pPD.js} +1 -1
- package/.output/public/_nuxt/{DP8hfJ9h.js → BT3wGCTI.js} +1 -1
- package/.output/public/_nuxt/{B3B9Ii2A.js → BUa0V0Ly.js} +1 -1
- package/.output/public/_nuxt/{B3HO8kuh.js → BUkim3TM.js} +1 -1
- package/.output/public/_nuxt/{BVaxh6Nl.js → BVc14Ncz.js} +3 -3
- package/.output/public/_nuxt/{DW0xl3I6.js → BY0HxR3t.js} +1 -1
- package/.output/public/_nuxt/B_xAMWQS.js +2 -0
- package/.output/public/_nuxt/{C2_3mdPC.js → BdQoBaOv.js} +1 -1
- package/.output/public/_nuxt/{DT53RWbC.js → BdfhYr-u.js} +1 -1
- package/.output/public/_nuxt/{CtQBsNUb.js → BgRu_3tT.js} +1 -1
- package/.output/public/_nuxt/{SlIRLREZ.js → BiO7RBWb.js} +1 -1
- package/.output/public/_nuxt/BicAJ6U8.js +1 -0
- package/.output/public/_nuxt/{C7P1UCO2.js → Bm62iDV5.js} +1 -1
- package/.output/public/_nuxt/{CZfMdzfk.js → BmUfSNMV.js} +1 -1
- package/.output/public/_nuxt/{tvgqrYDd.js → Bnxf8nbZ.js} +1 -1
- package/.output/public/_nuxt/{ndShiWE8.js → Bow4tTR0.js} +1 -1
- package/.output/public/_nuxt/{D0HNloZ9.js → BrQEE053.js} +1 -1
- package/.output/public/_nuxt/{CV9-fTmY.js → BzRRzmwm.js} +1 -1
- package/.output/public/_nuxt/{DprVVyUQ.js → C0_yH0N7.js} +1 -1
- package/.output/public/_nuxt/{DLSrtpsA.js → C1gTN4Q8.js} +1 -1
- package/.output/public/_nuxt/{ClOqkAcc.js → C2hkrSey.js} +1 -1
- package/.output/public/_nuxt/{ZFiQCMUB.js → C8e1EbJI.js} +1 -1
- package/.output/public/_nuxt/{nv9-6vBK.js → CA9B2HE5.js} +1 -1
- package/.output/public/_nuxt/{KnfsST6Y.js → CAAwCT7H.js} +1 -1
- package/.output/public/_nuxt/{ybDYeNxd.js → CAvY22RE.js} +1 -1
- package/.output/public/_nuxt/{C5iG7O4O.js → CEfS4-oS.js} +1 -1
- package/.output/public/_nuxt/{Bp5ELvx9.js → CIoSMkpp.js} +1 -1
- package/.output/public/_nuxt/{C95YAaJq.js → CIrFl3MW.js} +1 -1
- package/.output/public/_nuxt/{DiOLdHBC.js → CJFtzlQ4.js} +1 -1
- package/.output/public/_nuxt/{BX9ZXe98.js → CNyV9YpI.js} +1 -1
- package/.output/public/_nuxt/CSJ-eOQM.js +1 -0
- package/.output/public/_nuxt/{fVcG504p.js → CTU1mrhq.js} +1 -1
- package/.output/public/_nuxt/{279D2RYp.js → CXEH9OPk.js} +1 -1
- package/.output/public/_nuxt/CahpB9Z2.js +5 -0
- package/.output/public/_nuxt/{B7NBP1C-.js → Cbh--1MW.js} +1 -1
- package/.output/public/_nuxt/CeG9pBAD.js +1 -0
- package/.output/public/_nuxt/{D55D4EYo.js → CeW8v31b.js} +1 -1
- package/.output/public/_nuxt/{BuMC3WjZ.js → CjPfj7ya.js} +1 -1
- package/.output/public/_nuxt/{HXerICAi.js → Cnsmicv2.js} +1 -1
- package/.output/public/_nuxt/{DgE2YE3R.js → CsLojMwR.js} +1 -1
- package/.output/public/_nuxt/{C9_jrmk9.js → Cus22Ud3.js} +2 -2
- package/.output/public/_nuxt/{DX-MDGb3.js → CwGWJbiy.js} +1 -1
- package/.output/public/_nuxt/{BJ0XQElc.js → Cx6gc2VW.js} +1 -1
- package/.output/public/_nuxt/{cHAnlQbv.js → CxyAzHr3.js} +1 -1
- package/.output/public/_nuxt/{BxCKKeYs.js → CzAPFPpL.js} +1 -1
- package/.output/public/_nuxt/{B33iXw77.js → D--H4jLI.js} +1 -1
- package/.output/public/_nuxt/D1POo6S4.js +10 -0
- package/.output/public/_nuxt/{BDicZ1gQ.js → D5tke0B5.js} +1 -1
- package/.output/public/_nuxt/D8nkF-OO.js +3 -0
- package/.output/public/_nuxt/{CzGyac8q.js → DA25RkyK.js} +1 -1
- package/.output/public/_nuxt/{CUtJobDm.js → DIB-5fUJ.js} +1 -1
- package/.output/public/_nuxt/{BPRffDuo.js → DJmoLeVt.js} +1 -1
- package/.output/public/_nuxt/{DGfAxLHV.js → DJxlKFGb.js} +1 -1
- package/.output/public/_nuxt/{81InBX9v.js → DMec-OLo.js} +1 -1
- package/.output/public/_nuxt/{CK_2LZBS.js → DPCxhHri.js} +1 -1
- package/.output/public/_nuxt/{Bn0YQDyy.js → DSqHUrvO.js} +1 -1
- package/.output/public/_nuxt/{BqV0l12c.js → DabzhQB1.js} +1 -1
- package/.output/public/_nuxt/{BfTuX0wq.js → DdwHkKfV.js} +1 -1
- package/.output/public/_nuxt/{C-elpgyr.js → DeY2JkR2.js} +1 -1
- package/.output/public/_nuxt/{DEFEpYzn.js → DfgOx_ou.js} +1 -1
- package/.output/public/_nuxt/DmkUdSS4.js +1 -0
- package/.output/public/_nuxt/{Ar3IelOY.js → DoIREDVb.js} +1 -1
- package/.output/public/_nuxt/DpZ1r1HA.js +1 -0
- package/.output/public/_nuxt/{Jo8kRmHz.js → Dpd16JVI.js} +1 -1
- package/.output/public/_nuxt/{BSIxhGsh.js → DqcKngf3.js} +1 -1
- package/.output/public/_nuxt/{BMvCSA6h.js → DrfE8IY0.js} +1 -1
- package/.output/public/_nuxt/{eaVkJRSa.js → DsesNydr.js} +1 -1
- package/.output/public/_nuxt/{zQyPuvV1.js → DtHJgCS8.js} +1 -1
- package/.output/public/_nuxt/Dtd4rC58.js +9 -0
- package/.output/public/_nuxt/{NQikbhmK.js → Du2W7Jne.js} +37 -36
- package/.output/public/_nuxt/{CDk0q2hV.js → DuwtTfO8.js} +1 -1
- package/.output/public/_nuxt/{B44A4LSJ.js → Dy-TJ0Mt.js} +1 -1
- package/.output/public/_nuxt/{-09h6CA9.js → Dy86h-7P.js} +1 -1
- package/.output/public/_nuxt/{Cdff9XNh.js → Dyeqn3aG.js} +1 -1
- package/.output/public/_nuxt/{Dnpkl-1q.js → FaFoMVKo.js} +1 -1
- package/.output/public/_nuxt/GPNI1ffD.js +4 -0
- package/.output/public/_nuxt/{BCMuIgP5.js → H94BMf3L.js} +1 -1
- package/.output/public/_nuxt/HPNQD6v3.js +1 -0
- package/.output/public/_nuxt/HXadJrHu.js +2 -0
- package/.output/public/_nuxt/{YVN7WG7q.js → KyA_4Ks-.js} +1 -1
- package/.output/public/_nuxt/{CYsTqbBS.js → L3kAWB2a.js} +1 -1
- package/.output/public/_nuxt/{Dk9fwOCm.js → McL25vkx.js} +2 -2
- package/.output/public/_nuxt/Nn93e_Mz.js +1 -0
- package/.output/public/_nuxt/UdR3DBPS.js +1 -0
- package/.output/public/_nuxt/{SfMRXW25.js → Und3xXFc.js} +1 -1
- package/.output/public/_nuxt/_mj6CfPa.js +1 -0
- package/.output/public/_nuxt/{BPQoBGg5.js → b-GYfcrQ.js} +1 -1
- package/.output/public/_nuxt/{DHDtnj7p.js → bLcjFslv.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/e659b3e1-0e61-4971-940e-10063f9f4763.json +1 -0
- package/.output/public/_nuxt/entry.DmptwB51.css +1 -0
- package/.output/public/_nuxt/{y17lMTFy.js → hC_z4G8p.js} +1 -1
- package/.output/public/_nuxt/{CTxDO9fB.js → hNh4CIL0.js} +1 -1
- package/.output/public/_nuxt/{CGNkHojN.js → l5WKbU4h.js} +1 -1
- package/.output/public/_nuxt/{DcmZRa_F.js → oAClCn_h.js} +1 -1
- package/.output/public/_nuxt/{IvQlbZk6.js → pQqGiNch.js} +1 -1
- package/.output/public/_nuxt/ryMzSDUj.js +2 -0
- package/.output/server/chunks/_/collect.mjs +1 -1
- package/.output/server/chunks/_/markers.mjs +1 -1
- package/.output/server/chunks/_/quarantine.mjs +1 -1
- package/.output/server/chunks/_/users.mjs +1 -1
- package/.output/server/chunks/build/{BrowserBadge-D33lqUcj.mjs → BrowserBadge-MFvBwxmD.mjs} +66 -6
- package/.output/server/chunks/build/BrowserBadge-MFvBwxmD.mjs.map +1 -0
- package/.output/server/chunks/build/{Checkbox-DvUBGagc.mjs → Checkbox-4Q5d0fa0.mjs} +4 -4
- package/.output/server/chunks/build/Checkbox-4Q5d0fa0.mjs.map +1 -0
- package/.output/server/chunks/build/CiEnvCard-DB5DvBh1.mjs +1492 -0
- package/.output/server/chunks/build/CiEnvCard-DB5DvBh1.mjs.map +1 -0
- package/.output/server/chunks/build/CodeBlock-BgE-NSmE.mjs +1 -1
- package/.output/server/chunks/build/DashboardSidebarToggle-DCTnHiIv.mjs +1 -1
- package/.output/server/chunks/build/{DiagnosisPanel-B646dK4p.mjs → DiagnosisPanel-CALyEmcJ.mjs} +3 -3
- package/.output/server/chunks/build/DiagnosisPanel-CALyEmcJ.mjs.map +1 -0
- package/.output/server/chunks/build/{EmptyState-Dtlab7S9.mjs → EmptyState-DC2q_7TD.mjs} +3 -3
- package/.output/server/chunks/build/EmptyState-DC2q_7TD.mjs.map +1 -0
- package/.output/server/chunks/build/{EntityLinks-D3fp57pR.mjs → EntityLinks-BBHWssHH.mjs} +4 -4
- package/.output/server/chunks/build/EntityLinks-BBHWssHH.mjs.map +1 -0
- package/.output/server/chunks/build/{EnvManagedBadge-Bg3FSiU1.mjs → EnvManagedBadge-UwD2b9v2.mjs} +2 -2
- package/.output/server/chunks/build/EnvManagedBadge-UwD2b9v2.mjs.map +1 -0
- package/.output/server/chunks/build/{Modal-Ck2XLt8d.mjs → Modal-pSDlXzT3.mjs} +2 -2
- package/.output/server/chunks/build/Modal-pSDlXzT3.mjs.map +1 -0
- package/.output/server/chunks/build/{OpenInIdeLink-C4MXA8ya.mjs → OpenInIdeLink-CQWKKChd.mjs} +3 -3
- package/.output/server/chunks/build/{OpenInIdeLink-C4MXA8ya.mjs.map → OpenInIdeLink-CQWKKChd.mjs.map} +1 -1
- package/.output/server/chunks/build/{ProjectTestCasesTable-CxfQ5wtN.mjs → ProjectTestCasesTable-Bo61P5K1.mjs} +8 -8
- package/.output/server/chunks/build/{ProjectTestCasesTable-CxfQ5wtN.mjs.map → ProjectTestCasesTable-Bo61P5K1.mjs.map} +1 -1
- package/.output/server/chunks/build/{RovingFocusItem-BJSzTBjy.mjs → RovingFocusItem--OEHI2P3.mjs} +2 -2
- package/.output/server/chunks/build/RovingFocusItem--OEHI2P3.mjs.map +1 -0
- package/.output/server/chunks/build/RunReports-DFLv51TX.mjs +1 -1
- package/.output/server/chunks/build/{Select-CUqj50wi.mjs → Select-5DK9frQ7.mjs} +3 -3
- package/.output/server/chunks/build/Select-5DK9frQ7.mjs.map +1 -0
- package/.output/server/chunks/build/{SelectMenu-Db7osY7J.mjs → SelectMenu-D-2FSqBU.mjs} +939 -7
- package/.output/server/chunks/build/{SelectMenu-Db7osY7J.mjs.map → SelectMenu-D-2FSqBU.mjs.map} +1 -1
- package/.output/server/chunks/build/{SettingsField-D6iEYbEc.mjs → SettingsField-BZfx4ma1.mjs} +2 -2
- package/.output/server/chunks/build/SettingsField-BZfx4ma1.mjs.map +1 -0
- package/.output/server/chunks/build/{Slideover-DgCa80mf.mjs → Slideover-D270EZZD.mjs} +3 -3
- package/.output/server/chunks/build/Slideover-D270EZZD.mjs.map +1 -0
- package/.output/server/chunks/build/{Switch-CgUioOYB.mjs → Switch-B5Fp8ULt.mjs} +2 -2
- package/.output/server/chunks/build/Switch-B5Fp8ULt.mjs.map +1 -0
- package/.output/server/chunks/build/Table-BRk04Hd2.mjs +1 -1
- package/.output/server/chunks/build/{Tabs-Bbsg9wag.mjs → Tabs-BkSOnbaB.mjs} +2 -2
- package/.output/server/chunks/build/Tabs-BkSOnbaB.mjs.map +1 -0
- package/.output/server/chunks/build/{TestCaseHistoryChart-nMLPhdvD.mjs → TestCaseHistoryChart-CSi64vVA.mjs} +5 -5
- package/.output/server/chunks/build/TestCaseHistoryChart-CSi64vVA.mjs.map +1 -0
- package/.output/server/chunks/build/{TestStatusBar-j6h2Jp6A.mjs → TestStatusBar-DX3EhlyP.mjs} +2 -2
- package/.output/server/chunks/build/TestStatusBar-DX3EhlyP.mjs.map +1 -0
- package/.output/server/chunks/build/{Tooltip-BOazooWP.mjs → Tooltip-Dv4htNP6.mjs} +3 -3
- package/.output/server/chunks/build/Tooltip-Dv4htNP6.mjs.map +1 -0
- package/.output/server/chunks/build/{VisuallyHiddenInput-D6kBJxVd.mjs → VisuallyHiddenInput-BHvzNumK.mjs} +2 -2
- package/.output/server/chunks/build/VisuallyHiddenInput-BHvzNumK.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-z5N6HPyC.mjs → _id_-BdG37K7s.mjs} +12 -12
- package/.output/server/chunks/build/_id_-BdG37K7s.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-BHh65pfg.mjs → _id_-BdJs7BJZ.mjs} +57 -33
- package/.output/server/chunks/build/{_id_-BHh65pfg.mjs.map → _id_-BdJs7BJZ.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-B78ky13D.mjs → _id_-BxA6IgWr.mjs} +96 -73
- package/.output/server/chunks/build/_id_-BxA6IgWr.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-Rzkqx55x.mjs → _id_-C_uSBiyU.mjs} +22 -23
- package/.output/server/chunks/build/{_id_-Rzkqx55x.mjs.map → _id_-C_uSBiyU.mjs.map} +1 -1
- package/.output/server/chunks/build/{about-CvSP73Ug.mjs → about-BE0UV-8-.mjs} +365 -18
- package/.output/server/chunks/build/about-BE0UV-8-.mjs.map +1 -0
- package/.output/server/chunks/build/{ai-B4VJ9K1K.mjs → ai-Cn05ch0u.mjs} +9 -9
- package/.output/server/chunks/build/{ai-B4VJ9K1K.mjs.map → ai-Cn05ch0u.mjs.map} +1 -1
- package/.output/server/chunks/build/{analytics-CJPC6t4L.mjs → analytics-Bo_B_jko.mjs} +20 -21
- package/.output/server/chunks/build/analytics-Bo_B_jko.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{default-zvbFgDJG.mjs → default-CbNHaFsy.mjs} +603 -71
- package/.output/server/chunks/build/default-CbNHaFsy.mjs.map +1 -0
- package/.output/server/chunks/build/{docs-DyuVEgtB.mjs → docs-B_llWMxx.mjs} +6 -6
- package/.output/server/chunks/build/{docs-DyuVEgtB.mjs.map → docs-B_llWMxx.mjs.map} +1 -1
- package/.output/server/chunks/build/{edit-CFR5g2Qf.mjs → edit-J0asTFg8.mjs} +4 -5
- package/.output/server/chunks/build/edit-J0asTFg8.mjs.map +1 -0
- package/.output/server/chunks/build/fetch-B4FwBOzu.mjs +1 -1
- package/.output/server/chunks/build/{import-CZo3djDi.mjs → import-CS9oylTN.mjs} +4 -4
- package/.output/server/chunks/build/import-CS9oylTN.mjs.map +1 -0
- package/.output/server/chunks/build/{index-Stqw0dEI.mjs → index-DE45ycdZ.mjs} +9 -9
- package/.output/server/chunks/build/index-DE45ycdZ.mjs.map +1 -0
- package/.output/server/chunks/build/{index-gCw_y4ZJ.mjs → index-e9skCi-V.mjs} +10 -11
- package/.output/server/chunks/build/{index-gCw_y4ZJ.mjs.map → index-e9skCi-V.mjs.map} +1 -1
- package/.output/server/chunks/build/{index-D7fe97l3.mjs → index-hGHlmyxj.mjs} +299 -91
- package/.output/server/chunks/build/index-hGHlmyxj.mjs.map +1 -0
- package/.output/server/chunks/build/isValueEqualOrExist-D2qw9YEr.mjs +1 -1
- package/.output/server/chunks/build/login-Da4u1IlW.mjs +1 -1
- package/.output/server/chunks/build/{mcp-B3IUvRgD.mjs → mcp-uhVCCwQM.mjs} +339 -10
- package/.output/server/chunks/build/mcp-uhVCCwQM.mjs.map +1 -0
- package/.output/server/chunks/build/{notifications-abDv0id8.mjs → notifications-fx_qnKGA.mjs} +4 -4
- package/.output/server/chunks/build/notifications-fx_qnKGA.mjs.map +1 -0
- package/.output/server/chunks/build/{pr-feedback-DjZID6q-.mjs → pr-feedback-X6-70iF0.mjs} +3 -3
- package/.output/server/chunks/build/pr-feedback-X6-70iF0.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +24 -24
- package/.output/server/chunks/build/{settings-Du7YqF8i.mjs → settings-CCYe7rsc.mjs} +3 -3
- package/.output/server/chunks/build/settings-CCYe7rsc.mjs.map +1 -0
- package/.output/server/chunks/build/{storage-B4vzxd8G.mjs → storage-CJEmviCD.mjs} +5 -5
- package/.output/server/chunks/build/storage-CJEmviCD.mjs.map +1 -0
- package/.output/server/chunks/build/{test-cases-DUvaO1He.mjs → test-cases-thBbAykw.mjs} +9 -9
- package/.output/server/chunks/build/test-cases-thBbAykw.mjs.map +1 -0
- package/.output/server/chunks/build/{useAiStatus-CWvIo32Q.mjs → useAiStatus-CxjMmDDY.mjs} +8 -8
- package/.output/server/chunks/build/useAiStatus-CxjMmDDY.mjs.map +1 -0
- package/.output/server/chunks/build/{useCopyRich-BemRsKgv.mjs → useCopyRich-RJKhWoyj.mjs} +74 -44
- package/.output/server/chunks/build/useCopyRich-RJKhWoyj.mjs.map +1 -0
- package/.output/server/chunks/build/{useDesktopDownload-D49JRQSw.mjs → useDesktopDownload-BepjqxOt.mjs} +2 -2
- package/.output/server/chunks/build/useDesktopDownload-BepjqxOt.mjs.map +1 -0
- package/.output/server/chunks/build/{useOpenInIde-4GFf-kdi.mjs → useOpenInIde-BbTnPhFA.mjs} +2 -2
- package/.output/server/chunks/build/useOpenInIde-BbTnPhFA.mjs.map +1 -0
- package/.output/server/chunks/build/{useSettingsNav-C3O866KC.mjs → useSettingsNav-DnQKacz8.mjs} +4 -4
- package/.output/server/chunks/build/useSettingsNav-DnQKacz8.mjs.map +1 -0
- package/.output/server/chunks/build/useTauri-Kf3HE_42.mjs +11 -0
- package/.output/server/chunks/build/useTauri-Kf3HE_42.mjs.map +1 -0
- package/.output/server/chunks/build/{wasted-time-lYkx5YO4.mjs → wasted-time-BNTPIyrC.mjs} +4 -4
- package/.output/server/chunks/build/wasted-time-BNTPIyrC.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +3471 -2802
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/__piwi/session.get.mjs +1 -1
- package/.output/server/chunks/routes/api/desktop/import-local.post.mjs +88 -0
- package/.output/server/chunks/routes/api/desktop/import-local.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/failure-clusters/_id/base-commit.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/branches.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commit-diff.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commits.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose/stream.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnoses.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnosis.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/export.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/extract-cases.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/fix-plan.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/status.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-diagnoses/_id/feedback.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/files/_...path_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get2.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get4.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post2.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post3.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post4.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post5.mjs +1 -1
- package/.output/server/chunks/routes/api/links/_id/refresh.post.mjs +1 -1
- package/.output/server/chunks/routes/api/links/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/links/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/markers/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/markers/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/notifications/stream.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/cluster-merge-suggestions.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/failure-clusters.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/flaky-classify.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/flaky-tests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/latest-run.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/members.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/members.put.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/performance.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine/_testCaseId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/slow-tests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/spec-health.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/test-cases.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/timeout-opportunities.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/menu.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/overview.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects.get.mjs +1 -1
- package/.output/server/chunks/routes/api/search.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/usage.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/pr-feedback.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/pr-feedback.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/smtp.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.put.mjs +1 -1
- package/.output/server/chunks/routes/api/stream.get.mjs +1 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/tags/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/tags/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id/history.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id/stability-trend.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnose.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis-context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/export.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/traces.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/begin.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/dom-snapshot.get.mjs +5 -3
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/dom-snapshot.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/environment-diff.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-healing.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-pick.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network-body.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-stacks.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/visual-diff.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/gate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/stream.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs +1 -2
- package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/import.post.mjs +4 -128
- package/.output/server/chunks/routes/api/test-runs/import.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/setup.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/start.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +1 -1
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs +3 -1
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/traces/check.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +1 -1
- package/.output/server/chunks/routes/api/version.get.mjs +1 -1
- package/.output/server/chunks/routes/mcp.post.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/BYDaY0Z7.js +0 -1
- package/.output/public/_nuxt/Bc8mOoz9.js +0 -4
- package/.output/public/_nuxt/BeLWlVK0.js +0 -1
- package/.output/public/_nuxt/BpUaY9nH.js +0 -2
- package/.output/public/_nuxt/CHNwfU1y.js +0 -1
- package/.output/public/_nuxt/CNFYDQmj.js +0 -1
- package/.output/public/_nuxt/CU5S9GCh.js +0 -1
- package/.output/public/_nuxt/CrwJAwhk.js +0 -1
- package/.output/public/_nuxt/CuSVQEkS.js +0 -3
- package/.output/public/_nuxt/CylWPruw.js +0 -1
- package/.output/public/_nuxt/DDDpCFpF.js +0 -1
- package/.output/public/_nuxt/DVDXJYq2.js +0 -2
- package/.output/public/_nuxt/Dgf5N4Ng.js +0 -1
- package/.output/public/_nuxt/DiZyJYez.js +0 -1
- package/.output/public/_nuxt/OSduWzyz.js +0 -1
- package/.output/public/_nuxt/WsxFTEFq.js +0 -10
- package/.output/public/_nuxt/aQgs_c6e.js +0 -9
- package/.output/public/_nuxt/builds/meta/ab473028-4b37-4884-b243-b8f6e5046e5e.json +0 -1
- package/.output/public/_nuxt/dYCKgE-3.js +0 -5
- package/.output/public/_nuxt/entry.CPhW41mh.css +0 -1
- package/.output/public/_nuxt/g26aVPxc.js +0 -1
- package/.output/server/chunks/_/import-runs.mjs +0 -351
- package/.output/server/chunks/_/import-runs.mjs.map +0 -1
- package/.output/server/chunks/build/BrowserBadge-D33lqUcj.mjs.map +0 -1
- package/.output/server/chunks/build/Checkbox-DvUBGagc.mjs.map +0 -1
- package/.output/server/chunks/build/CiEnvCard-CrjOM17n.mjs +0 -631
- package/.output/server/chunks/build/CiEnvCard-CrjOM17n.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisPanel-B646dK4p.mjs.map +0 -1
- package/.output/server/chunks/build/EmptyState-Dtlab7S9.mjs.map +0 -1
- package/.output/server/chunks/build/EntityLinks-D3fp57pR.mjs.map +0 -1
- package/.output/server/chunks/build/EnvManagedBadge-Bg3FSiU1.mjs.map +0 -1
- package/.output/server/chunks/build/Modal-Ck2XLt8d.mjs.map +0 -1
- package/.output/server/chunks/build/RovingFocusItem-BJSzTBjy.mjs.map +0 -1
- package/.output/server/chunks/build/Select-CUqj50wi.mjs.map +0 -1
- package/.output/server/chunks/build/SettingsField-D6iEYbEc.mjs.map +0 -1
- package/.output/server/chunks/build/Slideover-DgCa80mf.mjs.map +0 -1
- package/.output/server/chunks/build/Switch-CgUioOYB.mjs.map +0 -1
- package/.output/server/chunks/build/Tabs-Bbsg9wag.mjs.map +0 -1
- package/.output/server/chunks/build/TestCaseHistoryChart-nMLPhdvD.mjs.map +0 -1
- package/.output/server/chunks/build/TestStatusBar-j6h2Jp6A.mjs.map +0 -1
- package/.output/server/chunks/build/Tooltip-BOazooWP.mjs.map +0 -1
- package/.output/server/chunks/build/VisuallyHiddenInput-D6kBJxVd.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-B78ky13D.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-z5N6HPyC.mjs.map +0 -1
- package/.output/server/chunks/build/about-CvSP73Ug.mjs.map +0 -1
- package/.output/server/chunks/build/analytics-CJPC6t4L.mjs.map +0 -1
- package/.output/server/chunks/build/default-zvbFgDJG.mjs.map +0 -1
- package/.output/server/chunks/build/edit-CFR5g2Qf.mjs.map +0 -1
- package/.output/server/chunks/build/import-CZo3djDi.mjs.map +0 -1
- package/.output/server/chunks/build/index-D7fe97l3.mjs.map +0 -1
- package/.output/server/chunks/build/index-Stqw0dEI.mjs.map +0 -1
- package/.output/server/chunks/build/mcp-B3IUvRgD.mjs.map +0 -1
- package/.output/server/chunks/build/notifications-abDv0id8.mjs.map +0 -1
- package/.output/server/chunks/build/pr-feedback-DjZID6q-.mjs.map +0 -1
- package/.output/server/chunks/build/settings-Du7YqF8i.mjs.map +0 -1
- package/.output/server/chunks/build/storage-B4vzxd8G.mjs.map +0 -1
- package/.output/server/chunks/build/test-cases-DUvaO1He.mjs.map +0 -1
- package/.output/server/chunks/build/useAiStatus-CWvIo32Q.mjs.map +0 -1
- package/.output/server/chunks/build/useCopyRich-BemRsKgv.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopDownload-D49JRQSw.mjs.map +0 -1
- package/.output/server/chunks/build/useOpenInIde-4GFf-kdi.mjs.map +0 -1
- package/.output/server/chunks/build/useSettingsNav-C3O866KC.mjs.map +0 -1
- package/.output/server/chunks/build/useTauri-lRT8zkLv.mjs +0 -7
- package/.output/server/chunks/build/useTauri-lRT8zkLv.mjs.map +0 -1
- package/.output/server/chunks/build/virtualizer-Cd1hhlxC.mjs +0 -940
- package/.output/server/chunks/build/virtualizer-Cd1hhlxC.mjs.map +0 -1
- package/.output/server/chunks/build/wasted-time-lYkx5YO4.mjs.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as Qt}from"./CXEH9OPk.js";import{d as ge,b as gt,o as s,f as w,g as i,i as n,q,k as e,j as o,m as $,t as l,c as a,F as G,O as ut,l as Ie,ak as ct,p as he,v as k,s as ve,D as Ue,_ as Re,J as pt,y as ae,z as es,A as xt,h as D,r as K,K as De,Q as ye,C as Ne,n as He,E as Je,H as me,al as dt,I as ts,R as yt,G as ss,u as Le,w as Me,ah as ns,B as as,ad as ht,a as os,e as ls}from"./Du2W7Jne.js";import{_ as vt}from"./BT3wGCTI.js";import{_ as is}from"./DabzhQB1.js";import{_ as rs}from"./CjPfj7ya.js";import{_ as us,a as cs}from"./5A6ITZXj.js";import{_ as ds,e as ms,b as fs,a as gs,c as ps,d as xs}from"./ryMzSDUj.js";import{_ as ys}from"./DqcKngf3.js";import{_ as Ee}from"./BzRRzmwm.js";import{_ as je}from"./Bm62iDV5.js";import{_ as kt}from"./FaFoMVKo.js";import{_ as nt}from"./-f7BAm1H.js";import{_ as hs}from"./hC_z4G8p.js";import{u as vs,_ as ks}from"./Cnsmicv2.js";import{p as bt,y as bs,n as ws,a as _s,h as wt,m as $s,z as et,A as tt,k as Fe,B as _t,j as st,f as $t,b as Cs,c as Ts,i as ce}from"./DuwtTfO8.js";import{f as Ze}from"./D-c8ZSws.js";import{b as Ct}from"./BicAJ6U8.js";import{u as at}from"./DSqHUrvO.js";import{_ as Rs}from"./A1pj0VnG.js";import{_ as Tt}from"./DrfE8IY0.js";import{_ as zs}from"./4gYNA-d4.js";import{_ as Rt}from"./DJmoLeVt.js";import{_ as Is}from"./CA9B2HE5.js";import{_ as zt}from"./b-GYfcrQ.js";import{u as Ss}from"./DeY2JkR2.js";import{_ as Fs}from"./CAvY22RE.js";import{_ as It}from"./CzAPFPpL.js";import{_ as St}from"./C1gTN4Q8.js";import{_ as Ds}from"./C0_yH0N7.js";import{_ as ot}from"./Cus22Ud3.js";import{_ as Ft}from"./CJFtzlQ4.js";import{_ as js}from"./BY0HxR3t.js";import{_ as Dt}from"./BUkim3TM.js";import{u as Ae}from"./B8zkOmwo.js";import{_ as Ps}from"./CeG9pBAD.js";import{_ as Bs}from"./Bnxf8nbZ.js";import{_ as Ns}from"./BrQEE053.js";import{u as Ms}from"./C2hkrSey.js";import{u as As,s as Us}from"./H94BMf3L.js";import"./KyA_4Ks-.js";import"./AbmKWFQQ.js";import"./L3kAWB2a.js";import"./Dpd16JVI.js";import"./UdR3DBPS.js";import"./Nn93e_Mz.js";import"./DmkUdSS4.js";import"./B3obW6cw.js";import"./CxyAzHr3.js";import"./pQqGiNch.js";import"./BjaRappk.js";import"./D7W_4Sqc.js";import"./DsesNydr.js";import"./DfgOx_ou.js";import"./Dy-TJ0Mt.js";import"./B99fbi73.js";import"./CIrFl3MW.js";const Ls={class:"flex items-center gap-3 flex-1 min-w-0 justify-between"},Es={class:"flex items-center gap-3 min-w-0"},Os={class:"text-sm font-semibold truncate flex items-center gap-1"},Ks={class:"flex items-center gap-3 shrink-0 max-sm:hidden"},Ws={class:"text-xs text-zinc-500 tabular-nums whitespace-nowrap"},Hs={class:"text-zinc-700 dark:text-zinc-300"},Vs={class:"text-xs text-emerald-600 dark:text-emerald-400 tabular-nums whitespace-nowrap"},Gs={class:"text-xs text-rose-600 dark:text-rose-400 tabular-nums whitespace-nowrap"},Xs={class:"text-xs text-zinc-500 tabular-nums whitespace-nowrap"},qs={class:"text-xs text-amber-600 dark:text-amber-400 tabular-nums whitespace-nowrap",title:"Tests that never ran (maxFailures cutoff or a serial-group failure)"},Ys={class:"text-xs text-orange-600 dark:text-orange-400 tabular-nums whitespace-nowrap"},Js={class:"grid grid-cols-1 lg:grid-cols-12 gap-4"},Zs={class:"space-y-3"},Qs={class:"flex items-start gap-3"},en={class:"flex items-center gap-2.5 min-w-0 flex-1"},tn={class:"min-w-0 flex-1"},sn={class:"flex items-center gap-2"},nn={class:"text-base font-bold shrink-0 flex items-center gap-1"},an={class:"text-xs text-zinc-500 ml-auto whitespace-nowrap"},on={class:"p-2 space-y-1 min-w-32"},ln=["onClick"],rn={class:"grid grid-cols-3 sm:grid-cols-5 gap-2"},un={class:"text-xl font-bold mt-0.5"},cn={class:"relative"},dn={class:"text-xl font-bold mt-0.5 text-emerald-600 dark:text-emerald-400"},mn={class:"text-xl font-bold mt-0.5 text-rose-600 dark:text-rose-400"},fn={class:"text-xl font-bold mt-0.5 text-zinc-600 dark:text-zinc-400"},gn={class:"text-xl font-bold mt-0.5 text-amber-600 dark:text-amber-400"},pn={key:0,class:"flex items-center gap-3"},xn={class:"flex-1 max-w-md"},yn={class:"flex items-center gap-3 text-xs shrink-0"},hn={class:"flex items-center gap-1"},vn={key:0,class:"flex items-center gap-1"},kn={key:1,class:"flex items-center gap-1"},bn={key:2,class:"flex items-center gap-1"},wn={key:0,class:"flex items-center gap-3"},_n={class:"flex-1 min-w-0"},$n={key:1,class:"space-y-1.5 text-sm"},Cn={class:"text-xs tabular-nums text-zinc-400 dark:text-zinc-500 shrink-0"},Tn={key:0,class:"flex items-center justify-between gap-2 min-w-0"},Rn={class:"truncate"},zn={class:"text-xs tabular-nums text-zinc-400 dark:text-zinc-500 shrink-0"},In={class:"space-y-3 text-sm"},Sn={key:0},Fn={class:"flex flex-wrap gap-1.5"},Dn={key:1,class:"flex items-center gap-1"},jn={key:3},Pn={class:"bg-zinc-50 dark:bg-zinc-900 p-2.5 rounded text-xs font-mono overflow-x-auto max-h-48 overflow-y-auto"},Bn={class:"m-0"},Nn=ge({__name:"RunSummary",props:{testRun:{},displayProgress:{},allReports:{},showCustomData:{type:Boolean},finalizing:{type:Boolean},activeFilter:{},totalWastedTime:{}},emits:["update:showCustomData","filter-status","label-updated"],setup(t,{emit:h}){const C=t,F=h,R=gt(),c=xt(),_=D(()=>C.testRun?.storageStats),u=D(()=>!!(C.testRun?.metadata?.ci||C.testRun?.environment||C.testRun?.playwrightVersion||C.testRun?.reporterVersion)),T=D(()=>!!C.testRun?.metadata?.scm),E=D(()=>!!(_.value?.totalFiles||C.finalizing)),N=D(()=>!!(C.testRun?.metadata?.tags?.length||C.testRun?.metadata?.projectDescription||C.testRun?.metadata?.relatedIssue||C.testRun?.metadata?.customData||C.testRun?.links?.length)),{summaryColSpanClass:B,blockColSpanClass:S}=vs(()=>[u,T,E,N].filter(g=>g.value).length),{copy:P,copied:H}=at(),A=K("file-line"),m=K(!1),I=D(()=>C.testRun?.testCases?C.testRun.testCases.filter(g=>g.status==="failed"||g.status==="timedout").map(g=>({filePath:(g.filePath||g.location?.split(":")[0])??"",title:g.title,line:g.location&&parseInt(g.location.split(":")[1]??"",10)||null,projectName:g.browser?.projectName||null})):[]);function x(){return Ct(I.value,{mode:A.value})}async function d(){const g=x();g&&(m.value=!0,await P(g,{toast:"Retry command copied"}),setTimeout(()=>{m.value=!1},2e3))}const f=D(()=>m.value?"Copied!":wt(x()));function U(){const g=C.testRun;if(!g)return"";const z=g.status==="passed"?"✅":g.status==="failed"?"❌":g.status==="running"?"🔄":"⚠️",re=g.label?` — ${g.label}`:"",p=g.project?.label??g.project?.name??"",j=g.totalTests??0,Y=g.passedTests??0,oe=g.failedTests??0,Z=g.skippedTests??0,b=g.didNotRunTests??0,V=g.flakyTests??0,se=_s(g.duration),te=V>0?` · ${V} flaky`:"",xe=b>0?` · ${b} didn't run`:"";return[`*Run #${g.id}*${re}`,`Status: ${z} ${g.status} | Project: ${p}`,`Tests: ${j} total · ${Y} passed · ${oe} failed · ${Z} skipped${xe}${te}`,`Duration: ${se}`].join(`
|
|
2
|
+
`)}const v=K(""),M=K(!1),y=K(!1);let J=!1;const ee=K(null);function ne(){J=!1,v.value=C.testRun?.label??"",M.value=!0,De(()=>ee.value?.focus())}async function Q(){if(y.value)return;if(J){J=!1;return}const g=C.testRun;if(g){y.value=!0;try{await $fetch(`/api/test-runs/${g.id}`,{method:"PATCH",body:{label:v.value||null}}),M.value=!1,F("label-updated")}catch(z){const re=z&&typeof z=="object"&&"data"in z?z.data?.message:"Failed to save label";R.add({title:"Error",description:re||"Failed to save label",color:"error"})}finally{y.value=!1}}}function ie(){J=!0,M.value=!1}function O(g){g.key==="Enter"?Q():g.key==="Escape"&&ie()}return(g,z)=>{const re=ds,p=he,j=ve,Y=ys,oe=Ee,Z=je,b=kt,V=Ue,se=vt,te=Re,xe=pt,we=ms,le=nt,_e=fs,$e=gs,fe=es,ke=ps,be=hs,ze=ks;return s(),w(ze,{"storage-key":"test-run"},{folded:i(()=>[n("div",Ls,[n("div",Es,[o(re,{status:t.testRun?.status??"",size:"sm"},null,8,["status"]),n("span",Os,[$(" Run #"+l(t.testRun?.id)+" ",1),e(M)?(s(),a(G,{key:0},[ut(n("input",{ref_key:"labelInputRef",ref:ee,"onUpdate:modelValue":z[0]||(z[0]=r=>Ie(v)?v.value=r:null),type:"text",placeholder:"Add a label...",class:"inline-block w-40 text-sm font-normal border-b border-dashed border-zinc-400 bg-transparent outline-none focus:border-primary px-0.5 py-0",onKeydown:O,onBlur:Q},null,544),[[ct,e(v)]]),e(y)?(s(),w(p,{key:0,name:"i-lucide-loader-circle",class:"size-3.5 text-zinc-400 animate-spin shrink-0"})):k("",!0)],64)):(s(),a(G,{key:1},[t.testRun?.label?(s(),a("span",{key:0,class:"font-normal text-zinc-500 ml-1.5 cursor-pointer hover:text-zinc-700 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400",onClick:ne},"— "+l(t.testRun.label),1)):(s(),a("button",{key:1,class:"text-xs text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400 ml-1",title:"Add a label",onClick:ne}," + label "))],64))]),t.testRun?.shardTotal&&t.testRun.shardTotal>1?(s(),w(j,{key:0,color:"neutral",variant:"soft",size:"sm",class:"shrink-0",title:`Shard ${t.testRun.shardsFinished??0}/${t.testRun.shardTotal}`},{default:i(()=>[o(p,{name:"i-lucide-layout-grid",class:"size-3 mr-1"}),$(" "+l(t.testRun.shardsFinished??0)+"/"+l(t.testRun.shardTotal),1)]),_:1},8,["title"])):k("",!0)]),n("div",Ks,[n("span",Ws,[z[12]||(z[12]=$(" T: ",-1)),n("strong",Hs,l(t.displayProgress?.totalTests??t.testRun?.totalTests??0),1)]),n("span",Vs,[z[13]||(z[13]=$(" P: ",-1)),n("strong",null,l(t.displayProgress?.passedTests??t.testRun?.passedTests??0),1)]),n("span",Gs,[z[14]||(z[14]=$(" F: ",-1)),n("strong",null,l(t.displayProgress?.failedTests??t.testRun?.failedTests??0),1)]),n("span",Xs,[z[15]||(z[15]=$(" S: ",-1)),n("strong",null,l(t.displayProgress?.skippedTests??t.testRun?.skippedTests??0),1)]),n("span",qs,[z[16]||(z[16]=$(" DNR: ",-1)),n("strong",null,l(t.testRun?.didNotRunTests??0),1)]),n("span",Ys,[z[17]||(z[17]=$(" Fl: ",-1)),n("strong",null,l(t.testRun?.flakyTests??0),1)]),o(Y,{passed:t.displayProgress?.passedTests??t.testRun?.passedTests??0,failed:t.displayProgress?.failedTests??t.testRun?.failedTests??0,skipped:t.displayProgress?.skippedTests??t.testRun?.skippedTests??0,flaky:t.testRun?.flakyTests??0,"did-not-run":t.testRun?.didNotRunTests??0,total:t.displayProgress?.totalTests??t.testRun?.totalTests??0},null,8,["passed","failed","skipped","flaky","did-not-run","total"]),o(oe,{ms:t.testRun?.duration,class:"text-xs text-zinc-400"},null,8,["ms"])])])]),default:i(()=>[n("div",Js,[n("div",{class:q(e(B))},[o(le,{class:"shadow-xs h-full"},{default:i(()=>[n("div",Zs,[n("div",Qs,[n("div",en,[o(re,{status:t.testRun?.status??"",size:"md"},null,8,["status"]),n("div",tn,[n("div",sn,[n("h2",nn,[$(" Run #"+l(t.testRun?.id)+" ",1),e(M)?(s(),a(G,{key:0},[ut(n("input",{ref_key:"labelInputRef",ref:ee,"onUpdate:modelValue":z[1]||(z[1]=r=>Ie(v)?v.value=r:null),type:"text",placeholder:"Add a label...",class:"inline-block w-48 text-sm font-normal border-b border-dashed border-zinc-400 bg-transparent outline-none focus:border-primary px-0.5 py-0",onKeydown:O,onBlur:Q},null,544),[[ct,e(v)]]),e(y)?(s(),w(p,{key:0,name:"i-lucide-loader-circle",class:"size-3.5 text-zinc-400 animate-spin shrink-0"})):k("",!0)],64)):(s(),a(G,{key:1},[t.testRun?.label?(s(),a("span",{key:0,class:"font-normal text-zinc-500 ml-1.5 cursor-pointer hover:text-zinc-700 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400",onClick:ne},"— "+l(t.testRun.label),1)):(s(),a("button",{key:1,class:"text-xs text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400 ml-1.5",title:"Add a label",onClick:ne}," + label "))],64)),o(Z,{topic:"run.summary"})]),t.testRun?.shardTotal&&t.testRun.shardTotal>1?(s(),w(j,{key:0,color:"neutral",variant:"soft",size:"sm",class:"shrink-0",title:`Shard ${t.testRun.shardsFinished??0}/${t.testRun.shardTotal}`},{default:i(()=>[o(p,{name:"i-lucide-layout-grid",class:"size-3 mr-1"}),$(" "+l(t.testRun.shardsFinished??0)+"/"+l(t.testRun.shardTotal),1)]),_:1},8,["title"])):k("",!0),t.testRun?.precedingMarker?(s(),w(se,{key:1,text:`This run started after: ${t.testRun.precedingMarker.label}`},{default:i(()=>[o(V,{to:`/projects/${t.testRun.projectId}?tab=timeline`,class:"shrink-0 inline-flex items-center gap-1"},{default:i(()=>[z[18]||(z[18]=n("span",{class:"text-xs text-muted"},"After",-1)),o(b,{marker:t.testRun.precedingMarker,size:"xs"},null,8,["marker"])]),_:1},8,["to"])]),_:1},8,["text"])):k("",!0),n("span",an,l(t.testRun?.project?.label??t.testRun?.project?.name)+" · Started "+l(("prettyDateFormat"in g?g.prettyDateFormat:e(bt))(t.testRun?.startTime)),1),o(se,{text:e(H)?"Copied!":"Copy run summary"},{default:i(()=>[o(te,{size:"xs",variant:"ghost",color:"neutral",icon:e(H)?"i-lucide-check":"i-lucide-clipboard",class:"shrink-0 text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300",onClick:z[2]||(z[2]=r=>e(P)(U(),{toast:"Run summary copied"}))},null,8,["icon"])]),_:1},8,["text"]),e(I).length>0?(s(),w(xe,{key:2},{content:i(()=>[n("div",on,[z[20]||(z[20]=n("p",{class:"text-xs font-medium text-zinc-500 px-2 py-1"},"Mode",-1)),(s(),a(G,null,ae(["file-line","grep","file"],r=>n("button",{key:r,class:q(["w-full text-left px-2 py-1 text-sm rounded hover:bg-zinc-100 dark:hover:bg-zinc-800",e(A)===r?"bg-primary/10 text-primary":""]),onClick:Ce=>A.value=r},l(r==="file-line"?"File:line":r==="grep"?"Title (grep)":"File only"),11,ln)),64))])]),default:i(()=>[o(te,{size:"xs",color:"warning",variant:"subtle",icon:e(m)?"i-lucide-check":"i-lucide-play",title:e(f),onClick:z[3]||(z[3]=r=>d())},{default:i(()=>[...z[19]||(z[19]=[$(" Retry ",-1)])]),_:1},8,["icon","title"])]),_:1})):k("",!0),e(I).length>0?(s(),w(we,{key:3,"project-id":t.testRun?.project?.id,"project-label":t.testRun?.project?.label??t.testRun?.project?.name,cases:e(I)},null,8,["project-id","project-label","cases"])):k("",!0)])])])]),n("div",rn,[n("button",{class:q(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="all"?"bg-accented ring-2 ring-zinc-400 dark:ring-zinc-500":"bg-elevated/60 hover:bg-elevated"]),onClick:z[4]||(z[4]=r=>F("filter-status","all"))},[z[21]||(z[21]=n("p",{class:"text-xs font-medium text-zinc-500 uppercase tracking-wider"},"Total",-1)),n("p",un,l(t.displayProgress?.totalTests??t.testRun?.totalTests??0),1)],2),n("div",cn,[n("button",{class:q(["rounded-lg p-3 text-left w-full h-full transition-colors cursor-pointer",t.activeFilter==="passed"?"bg-emerald-100 dark:bg-emerald-900/30 ring-2 ring-emerald-400 dark:ring-emerald-600":"bg-emerald-50 dark:bg-emerald-900/20 hover:bg-emerald-100 dark:hover:bg-emerald-900/30"]),onClick:z[5]||(z[5]=r=>F("filter-status","passed"))},[z[22]||(z[22]=n("p",{class:"text-xs font-medium text-emerald-700 dark:text-emerald-400 uppercase tracking-wider"}," Passed ",-1)),n("p",dn,l(t.displayProgress?.passedTests??t.testRun?.passedTests??0),1)],2),(t.testRun?.flakyTests??0)>0?(s(),a("button",{key:0,class:q(["absolute top-1.5 right-1.5 inline-flex items-center gap-0.5 rounded-full px-1.5 py-0.5 text-xs font-semibold leading-none tabular-nums transition-colors cursor-pointer",t.activeFilter==="flaky"?"bg-orange-200 dark:bg-orange-800/60 text-orange-800 dark:text-orange-200 ring-2 ring-orange-400 dark:ring-orange-600":"bg-orange-100 dark:bg-orange-900/40 text-orange-700 dark:text-orange-300 hover:bg-orange-200 dark:hover:bg-orange-800/60"]),title:"Flaky — passed only after a retry (a subset of passed). Click to filter.",onClick:z[6]||(z[6]=r=>F("filter-status","flaky"))},[o(p,{name:"i-lucide-shuffle",class:"size-3"}),$(" "+l(t.testRun?.flakyTests??0),1)],2)):k("",!0)]),n("button",{class:q(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="failed"?"bg-rose-100 dark:bg-rose-900/30 ring-2 ring-rose-400 dark:ring-rose-600":"bg-rose-50 dark:bg-rose-900/20 hover:bg-rose-100 dark:hover:bg-rose-900/30"]),onClick:z[7]||(z[7]=r=>F("filter-status","failed"))},[z[23]||(z[23]=n("p",{class:"text-xs font-medium text-rose-700 dark:text-rose-400 uppercase tracking-wider"},"Failed",-1)),n("p",mn,l(t.displayProgress?.failedTests??t.testRun?.failedTests??0),1)],2),n("button",{class:q(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="skipped"?"bg-accented ring-2 ring-zinc-400 dark:ring-zinc-500":"bg-elevated/60 hover:bg-elevated"]),onClick:z[8]||(z[8]=r=>F("filter-status","skipped"))},[z[24]||(z[24]=n("p",{class:"text-xs font-medium text-zinc-500 uppercase tracking-wider"},"Skipped",-1)),n("p",fn,l(t.displayProgress?.skippedTests??t.testRun?.skippedTests??0),1)],2),n("button",{class:q(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="didnotrun"?"bg-amber-100 dark:bg-amber-900/30 ring-2 ring-amber-400 dark:ring-amber-600":"bg-amber-50 dark:bg-amber-900/20 hover:bg-amber-100 dark:hover:bg-amber-900/30"]),title:"Tests that never ran (maxFailures cutoff or a serial-group failure)",onClick:z[9]||(z[9]=r=>F("filter-status","didnotrun"))},[z[25]||(z[25]=n("p",{class:"text-xs font-medium text-amber-700 dark:text-amber-400 uppercase tracking-wider"}," Didn't run ",-1)),n("p",gn,l(t.testRun?.didNotRunTests??0),1)],2)]),n("div",null,[t.testRun?(s(),a("div",pn,[n("div",xn,[o(Y,{passed:t.displayProgress?.passedTests??t.testRun?.passedTests??0,failed:t.displayProgress?.failedTests??t.testRun?.failedTests??0,skipped:t.displayProgress?.skippedTests??t.testRun?.skippedTests??0,flaky:t.testRun?.flakyTests??0,"did-not-run":t.testRun?.didNotRunTests??0,total:t.displayProgress?.totalTests??t.testRun?.totalTests??0},null,8,["passed","failed","skipped","flaky","did-not-run","total"])]),n("div",yn,[n("div",hn,[o(p,{name:"i-lucide-clock",class:"size-3.5 text-zinc-400"}),o(oe,{ms:t.testRun?.duration,class:"font-medium"},null,8,["ms"])]),t.testRun?.avgTestDuration?(s(),a("div",vn,[o(p,{name:"i-lucide-gauge",class:"size-3.5 text-zinc-400"}),z[26]||(z[26]=n("span",{class:"text-zinc-500 hidden sm:inline"},"Avg",-1)),o(oe,{ms:t.testRun.avgTestDuration,class:"font-medium"},null,8,["ms"])])):k("",!0),t.testRun?.p90TestDuration?(s(),a("div",kn,[o(p,{name:"i-lucide-arrow-up-right",class:"size-3.5 text-orange-500"}),z[27]||(z[27]=n("span",{class:"text-zinc-500 hidden sm:inline"},"P90",-1)),o(oe,{ms:t.testRun.p90TestDuration,class:"font-medium text-orange-600 dark:text-orange-400","unit-class":"opacity-60"},null,8,["ms"])])):k("",!0),t.totalWastedTime&&t.totalWastedTime>0?(s(),a("div",bn,[o(p,{name:"i-lucide-clock",class:"size-3.5 text-amber-500"}),z[28]||(z[28]=n("span",{class:"text-zinc-500 hidden sm:inline"},"Wasted",-1)),o(oe,{ms:t.totalWastedTime,class:"font-medium text-amber-600 dark:text-amber-400","unit-class":"opacity-60"},null,8,["ms"])])):k("",!0)])])):k("",!0)])])]),_:1})],2),e(u)?(s(),w(_e,{key:0,ci:t.testRun?.metadata?.ci,environment:t.testRun?.environment,"playwright-version":t.testRun?.playwrightVersion,"reporter-version":t.testRun?.reporterVersion,class:q(e(S))},null,8,["ci","environment","playwright-version","reporter-version","class"])):k("",!0),e(T)?(s(),w($e,{key:1,scm:t.testRun.metadata.scm,class:q(e(S))},null,8,["scm","class"])):k("",!0),e(E)?(s(),w(ke,{key:2,class:q(e(S)),title:"Storage",icon:"i-lucide-database",help:"run.reports",subtitle:e(_)?.totalFiles?`${e(_).totalFiles} files · ${("formatBytes"in g?g.formatBytes:e(Ze))(e(_).totalSize)}`:void 0},{default:i(()=>[t.finalizing?(s(),a("div",wn,[o(p,{name:"i-lucide-upload",class:"size-5 text-info shrink-0 animate-pulse"}),n("div",_n,[z[29]||(z[29]=n("div",{class:"flex items-center justify-between mb-1"},[n("span",{class:"text-sm font-medium"},"Finalizing test run"),n("span",{class:"text-xs text-zinc-500"},"Uploading reports & traces…")],-1)),o(fe,{value:null,size:"sm",color:"info",class:"rounded-full animate-pulse"})])])):k("",!0),e(_)?.totalFiles?(s(),a("div",$n,[(s(!0),a(G,null,ae(t.allReports,r=>(s(),a("div",{key:r.label,class:"flex items-center justify-between gap-2 min-w-0"},[o(te,{href:("fileApiUrl"in g?g.fileApiUrl:e(ws))(r.path,null,e(c).app?.baseURL),icon:("reportIcon"in g?g.reportIcon:e(bs))(r.type),target:"_blank",size:"xs",variant:"outline",class:"min-w-0",ui:{label:"truncate"}},{default:i(()=>[$(l(r.label),1)]),_:2},1032,["href","icon"]),n("span",Cn,l(("formatBytes"in g?g.formatBytes:e(Ze))(r.size)),1)]))),128)),e(_).testCaseFilesCount>0?(s(),a("div",Tn,[n("span",Rn,"Test files ("+l(e(_).testCaseFilesCount)+")",1),n("span",zn,l(("formatBytes"in g?g.formatBytes:e(Ze))(e(_).testCaseFilesSize)),1)])):k("",!0)])):k("",!0)]),_:1},8,["class","subtitle"])):k("",!0),e(N)?(s(),w(ke,{key:3,class:q(e(S)),title:"Other",icon:"i-lucide-tags",help:"run.metadata"},{default:i(()=>[n("div",In,[t.testRun.metadata.tags&&t.testRun.metadata.tags.length>0?(s(),a("div",Sn,[n("div",Fn,[(s(!0),a(G,null,ae(t.testRun.metadata.tags,r=>(s(),w(j,{key:r,color:"neutral",variant:"soft",size:"sm"},{default:i(()=>[$(l(r),1)]),_:2},1024))),128))])])):k("",!0),t.testRun.metadata.relatedIssue?(s(),a("p",Dn,[o(p,{name:"i-lucide-link",class:"w-3.5 h-3.5 text-zinc-400 shrink-0"}),n("span",null,l(t.testRun.metadata.relatedIssue),1)])):k("",!0),o(be,{"entity-type":"test_run","entity-id":t.testRun.id,links:t.testRun.links??null,onUpdated:z[10]||(z[10]=r=>g.$emit("label-updated"))},null,8,["entity-id","links"]),t.testRun.metadata.customData?(s(),w(te,{key:2,size:"xs",variant:"ghost",color:"neutral",icon:t.showCustomData?"i-lucide-chevron-up":"i-lucide-chevron-down",onClick:z[11]||(z[11]=r=>F("update:showCustomData",!t.showCustomData))},{default:i(()=>[...z[30]||(z[30]=[$(" Custom data ",-1)])]),_:1},8,["icon"])):k("",!0),t.showCustomData&&t.testRun.metadata.customData?(s(),a("div",jn,[n("div",Pn,[n("pre",Bn,l(JSON.stringify(t.testRun.metadata.customData,null,2)),1)])])):k("",!0)])]),_:1},8,["class"])):k("",!0)])]),_:1})}}}),Mn=Object.assign(Nn,{__name:"RunSummary"}),An={key:0,class:"inline-flex items-center gap-1 flex-wrap"},Un=ge({__name:"TestRowBadges",props:{mode:{default:null},isNewRegression:{type:[Boolean,null],default:!1},isNewFlaky:{type:[Boolean,null],default:!1},annotations:{default:null},tags:{default:null},meta:{default:null},maxTags:{default:0}},setup(t){const h=t;function C(T){return T==="fixme"||T==="slow"?"warning":T==="fail"?"error":T==="skip"?"neutral":T==="tag"?"primary":"info"}function F(T){switch(T){case"fixme":return"i-lucide-wrench";case"skip":return"i-lucide-skip-forward";case"slow":return"i-lucide-timer";case"fail":return"i-lucide-x-circle";case"tag":return"i-lucide-tag";default:return null}}function R(T){return T.type==="tag"?T.description??T.type:T.type}const c=D(()=>(h.annotations??[]).filter(T=>!$s(T.type))),_=D(()=>!!((h.tags?.length??0)>0||h.meta?.owner||h.meta?.priority||h.meta?.feature||h.meta?.link)),u=D(()=>h.mode==="parallel"||h.mode==="serial"||!!h.isNewRegression||!!h.isNewFlaky||c.value.length>0||_.value);return(T,E)=>{const N=ve,B=he,S=Is;return e(u)?(s(),a("div",An,[t.mode==="parallel"?(s(),w(N,{key:0,color:"success",variant:"soft",size:"xs",class:"shrink-0"},{default:i(()=>[...E[0]||(E[0]=[$("parallel",-1)])]),_:1})):k("",!0),t.mode==="serial"?(s(),w(N,{key:1,color:"warning",variant:"soft",size:"xs",class:"shrink-0"},{default:i(()=>[...E[1]||(E[1]=[$("serial",-1)])]),_:1})):k("",!0),t.isNewRegression?(s(),w(N,{key:2,color:"error",variant:"solid",size:"xs",class:"uppercase tracking-wider shrink-0",title:"First run in which this test failed"},{default:i(()=>[...E[2]||(E[2]=[$(" NEW ",-1)])]),_:1})):k("",!0),t.isNewFlaky?(s(),w(N,{key:3,color:"info",variant:"solid",size:"xs",class:"uppercase tracking-wider shrink-0",title:"First run in which this test was flaky"},{default:i(()=>[...E[3]||(E[3]=[$(" FLAKY ",-1)])]),_:1})):k("",!0),(s(!0),a(G,null,ae(e(c),P=>(s(),w(N,{key:`${P.type}:${P.description??""}`,color:C(P.type),variant:"soft",size:"xs",title:P.type!=="tag"?P.description??void 0:void 0,class:"shrink-0 gap-1"},{default:i(()=>[F(P.type)?(s(),w(B,{key:0,name:F(P.type),class:"size-2.5 shrink-0"},null,8,["name"])):k("",!0),$(" "+l(R(P)),1)]),_:2},1032,["color","title"]))),128)),o(S,{tags:t.tags,meta:t.meta,"max-tags":t.maxTags},null,8,["tags","meta","max-tags"])])):k("",!0)}}}),jt=Object.assign(Un,{__name:"TestRowBadges"}),Ln={class:"rounded-lg border border-default bg-default text-sm flex flex-col flex-1 min-h-0"},En={class:"flex items-center justify-end px-3 py-1.5 border-b border-default bg-elevated shrink-0"},On=["disabled","title"],Kn={class:"overflow-y-auto flex-1 min-h-0"},Wn=["onClick"],Hn={key:1,class:"font-medium truncate min-w-0 text-muted"},Vn={class:"flex items-center gap-1.5 sm:gap-2 shrink-0 tabular-nums"},Gn=["title"],Xn={class:"max-sm:sr-only"},qn=["href","title","onClick"],Yn={class:"truncate"},Jn={class:"flex items-center gap-1.5 sm:gap-2 shrink-0 ml-auto"},Zn={key:0,class:"text-xs text-info"},Qn={key:4,class:"inline-flex items-center gap-0.5 text-xs text-amber-600 dark:text-amber-400",title:"Wasted in fixed waits"},ea={key:0,class:"text-center py-8 text-muted"},ta=ge({__name:"TestCasesTree",props:{testCases:{},suites:{},hasFilter:{type:Boolean},highlightedCaseId:{},projectKey:{},projectName:{}},setup(t){const h=t,C=D(()=>{const m=new Map;for(const I of h.suites)m.set(`${I.filePath}${I.suitePath.join("")}`,I);return m});function F(m){return m==="timedOut"||m==="timedout"?"failed":m}const R=["failed","passed","skipped","didnotrun","running"];function c(m){return R.filter(I=>m[I]>0).map(I=>({key:I,count:m[I],label:Fe(I)}))}function _(m){const I={passed:0,failed:0,skipped:0,didnotrun:0,running:0,total:0};for(const x of m){const d=F(x.status);d in I&&I[d]++,I.total++}return I}const u=K(new Set),T=D(()=>u.value.size===0);function E(m){return h.hasFilter?!0:!u.value.has(m)}function N(m){if(h.hasFilter)return;const I=new Set(u.value);I.has(m)?I.delete(m):I.add(m),u.value=I}function B(){const m=[],I=new Map;for(const x of h.testCases){const d=x.filePath??"unknown";I.has(d)||I.set(d,[]),I.get(d).push(x)}for(const[x,d]of I){m.push(`file:${x}`);const f=new Set;for(const U of d){const v=U.suitePath??[];for(let M=1;M<=v.length;M++)f.add(`group:${x}${v.slice(0,M).join("")}`)}for(const U of f)m.push(U)}return m}function S(){u.value=new Set(B())}function P(){u.value=new Set}function H(m,I,x,d,f){const U=I.filter(y=>(y.suitePath??[]).length===d.length),v=I.filter(y=>(y.suitePath??[]).length>d.length),M=new Map;for(const y of v){const J=(y.suitePath??[])[d.length];M.has(J)||M.set(J,[]),M.get(J).push(y)}for(const[y,J]of M){const ee=[...d,y],ne=`group:${x}${ee.join("")}`,Q=C.value.get(`${x}${ee.join("")}`);m.push({kind:"group",depth:f,key:ne,label:y,stats:_(J),mode:Q?.mode??"default",annotations:Q?.annotations??[]}),E(ne)&&H(m,J,x,ee,f+1)}for(const y of U)m.push({kind:"test",depth:f,key:`test:${y.id}`,test:y})}const A=D(()=>{const m=[],I=new Map;for(const x of h.testCases){const d=x.filePath??"unknown";I.has(d)||I.set(d,[]),I.get(d).push(x)}for(const[x,d]of[...I.entries()].sort(([f],[U])=>f.localeCompare(U))){const f=`file:${x}`;m.push({kind:"group",depth:0,key:f,label:x,stats:_(d)}),E(f)&&H(m,d,x,[],1)}return m});return(m,I)=>{const x=he,d=Rt,f=jt,U=zt,v=Ee,M=ve;return s(),a("div",Ln,[n("div",En,[n("button",{class:q(["flex items-center gap-1 text-xs transition-colors",t.hasFilter?"text-muted cursor-not-allowed opacity-50":"text-muted hover:text-default"]),disabled:t.hasFilter,title:t.hasFilter?"Clear filters to collapse/expand":T.value?"Collapse all":"Expand all",onClick:I[0]||(I[0]=y=>T.value?S():P())},[o(x,{name:T.value?"i-lucide-fold-vertical":"i-lucide-unfold-vertical",class:"size-3.5"},null,8,["name"]),$(" "+l(T.value?"Collapse all":"Expand all"),1)],10,On)]),n("div",Kn,[(s(!0),a(G,null,ae(A.value,y=>(s(),a(G,{key:y.key},[y.kind==="group"?(s(),a("div",{key:0,class:q(["flex items-center gap-2 py-2 pr-4 border-b border-default last:border-b-0 select-none sticky",[y.depth===0?"bg-elevated":"bg-default",!t.hasFilter&&"cursor-pointer"]]),style:ye({paddingLeft:`${y.depth*20+12}px`,top:`${y.depth*36}px`,zIndex:20-y.depth}),onClick:J=>N(y.key)},[o(x,{name:E(y.key)?"i-lucide-chevron-down":"i-lucide-chevron-right",class:"size-3.5 text-muted shrink-0"},null,8,["name"]),o(x,{name:y.depth===0?"i-lucide-file-code-2":"i-lucide-folder-open",class:q(["size-4 shrink-0",y.depth===0?"text-blue-500":"text-amber-500"])},null,8,["name","class"]),y.depth===0?(s(),a("span",{key:0,class:"min-w-0",onClick:I[1]||(I[1]=Ne(()=>{},["stop"]))},[o(d,{"file-path":y.label,"project-key":t.projectKey,"project-name":t.projectName,class:"font-medium text-default"},null,8,["file-path","project-key","project-name"])])):(s(),a("span",Hn,l(y.label),1)),y.depth>0?(s(),w(f,{key:2,mode:y.mode,annotations:y.annotations,class:"shrink-0"},null,8,["mode","annotations"])):k("",!0),I[2]||(I[2]=n("div",{class:"flex-1"},null,-1)),n("div",Vn,[(s(!0),a(G,null,ae(c(y.stats),J=>(s(),a("span",{key:J.key,class:q(["text-xs inline-flex items-center gap-0.5",[("getStatusTextClass"in m?m.getStatusTextClass:e(et))(J.key),J.key==="failed"?"font-medium":""]]),title:`${J.count} ${J.label}`},[o(x,{name:("getStatusIcon"in m?m.getStatusIcon:e(tt))(J.key),class:"size-3 shrink-0 sm:hidden"},null,8,["name"]),$(" "+l(J.count),1),n("span",Xn,l(J.label),1)],10,Gn))),128))])],14,Wn)):(s(),a("div",{key:1,class:q(["flex flex-wrap items-center gap-x-2 gap-y-1 pr-3 py-2 sm:py-1.5 border-b border-default last:border-b-0 hover:bg-zinc-50 dark:hover:bg-zinc-900/40 transition-colors",t.highlightedCaseId===y.test.id?"animate-pulse bg-yellow-100 dark:bg-yellow-900/30":""]),style:ye({paddingLeft:`${y.depth*20+12}px`})},[o(U,{browser:y.test.browser,size:"sm"},null,8,["browser"]),o(x,{name:("getStatusIcon"in m?m.getStatusIcon:e(tt))(y.test.status),class:q(["size-4 shrink-0",[("getStatusTextClass"in m?m.getStatusTextClass:e(et))(y.test.status),("isStatusInFlight"in m?m.isStatusInFlight:e(_t))(y.test.status)?"animate-spin":""]]),role:"img","aria-label":`Status: ${("formatStatusLabel"in m?m.formatStatusLabel:e(Fe))(y.test.status)}`,title:("formatStatusLabel"in m?m.formatStatusLabel:e(Fe))(y.test.status)},null,8,["name","class","aria-label","title"]),n("a",{href:`/test-run-cases/${y.test.id}`,class:"text-highlighted hover:text-primary hover:underline min-w-32 self-stretch flex items-center",title:y.test.title,onClick:Ne(J=>("navigateTo"in m?m.navigateTo:e(He))(`/test-run-cases/${y.test.id}`),["prevent"])},[n("span",Yn,l(y.test.title),1)],8,qn),o(f,{"is-new-regression":!!y.test.isNewRegression,"is-new-flaky":!!y.test.isNewFlaky,annotations:y.test.testAnnotations,tags:y.test.tags,meta:y.test.testMeta,"max-tags":3,class:"shrink-0"},null,8,["is-new-regression","is-new-flaky","annotations","tags","meta"]),n("div",Jn,[y.test.status==="running"?(s(),a("span",Zn,"In progress...")):y.test.duration?(s(),w(v,{key:1,ms:y.test.duration,class:"text-xs text-muted"},null,8,["ms"])):k("",!0),y.test.workerIndex!=null?(s(),w(M,{key:2,color:"neutral",variant:"soft",size:"xs",class:"font-mono",title:`Worker ${y.test.workerIndex}`},{default:i(()=>[$(" w"+l(y.test.workerIndex),1)]),_:2},1032,["title"])):k("",!0),(y.test.retries??0)>0?(s(),w(M,{key:3,color:"warning",variant:"soft",size:"xs"},{default:i(()=>[$(l(y.test.retries)+"x ",1)]),_:2},1024)):k("",!0),y.test.wastedTimeMs?(s(),a("span",Qn,[o(x,{name:"i-lucide-hourglass",class:"size-3 shrink-0"}),o(v,{ms:y.test.wastedTimeMs,"unit-class":"opacity-60","no-title":""},null,8,["ms"])])):k("",!0)])],6))],64))),128)),A.value.length===0?(s(),a("div",ea,[o(x,{name:"i-lucide-search-x",class:"size-6 mx-auto mb-2 text-zinc-300 dark:text-zinc-600"}),I[3]||(I[3]=n("p",{class:"text-sm"},"No test cases match your filters.",-1))])):k("",!0)])])}}}),sa=Object.assign(ta,{__name:"TestCasesTree"}),na={class:"flex flex-col min-h-0"},aa={class:"flex items-center rounded-md border border-default overflow-hidden"},oa={key:0,class:"text-sm text-zinc-500 tabular-nums inline-flex items-center gap-1"},la={key:1,class:"text-sm text-zinc-500 tabular-nums inline-flex items-center gap-1"},ia={class:"flex flex-wrap items-center gap-1"},ra=["onClick"],ua={key:2,class:"flex items-center gap-1 md:hidden"},ca={key:0,class:"flex-1 min-h-0 max-lg:h-[70dvh] md:overflow-x-auto overflow-y-hidden rounded-lg border border-default bg-default"},da=["aria-rowcount"],ma=["aria-sort","aria-label","title","onClick"],fa={key:1,class:"truncate"},ga={class:"flex items-start gap-2"},pa=["href","onClick"],xa={class:"pl-6 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted"},ya={key:0,class:"text-info"},ha={key:4,class:"inline-flex items-center gap-0.5 text-amber-600 dark:text-amber-400",title:"Wasted in fixed waits"},va={class:"px-3 py-2 flex items-center min-w-0",role:"cell"},ka={class:"px-3 py-2 min-w-0 space-y-0.5",role:"cell"},ba={class:"flex items-center gap-1.5 min-w-0"},wa=["href","title","onClick"],_a={class:"px-3 py-2 flex items-center",role:"cell"},$a={class:"px-3 py-2 flex items-center whitespace-nowrap",role:"cell"},Ca={key:0,class:"text-info text-xs"},Ta={class:"px-3 py-2 flex items-center",role:"cell"},Ra={class:"px-3 py-2 flex items-center tabular-nums",role:"cell"},za={key:0,class:"px-3 py-2 flex items-center whitespace-nowrap",role:"cell"},Ia={key:1,class:"text-zinc-400"},Sa={class:"flex-1 min-h-0 flex items-center justify-center py-10 text-sm text-zinc-500"},Fa={key:1,class:"text-center py-10 text-zinc-500"},Da={key:2,class:"text-center py-10 text-zinc-500"},Ke="natural",ja=ge({__name:"TestCasesList",props:ss({testCases:{},suites:{},isLive:{type:Boolean},failureClusterFilter:{},projectKey:{},projectName:{}},{search:{default:""},searchModifiers:{},activeStatuses:{default:()=>[]},activeStatusesModifiers:{},browserFilter:{default:"all"},browserFilterModifiers:{}}),emits:["update:search","update:activeStatuses","update:browserFilter"],setup(t,{expose:h}){const{treeView:C,setTreeView:F}=Ss("test-cases"),R=t,c=Je(t,"search"),_=Je(t,"activeStatuses"),u=Je(t,"browserFilter"),T=K(!1),E=K(!1),N=[{label:"Passed",value:"passed",color:"green"},{label:"Failed",value:"failed",color:"red"},{label:"Skipped",value:"skipped",color:"gray"},{label:"Didn't run",value:"didnotrun",color:"amber"},{label:"Flaky",value:"flaky",color:"orange"}];function B(p){_.value.indexOf(p)>=0?_.value=_.value.filter(Y=>Y!==p):_.value=[..._.value,p]}const S=D(()=>{const p=new Set;for(const Y of R.testCases){const oe=Y.browser?.projectName;oe&&p.add(oe)}const j=[{label:"All browsers",value:"all"}];for(const Y of[...p].sort())j.push({label:Y,value:Y});return j});function P(p,j){return j==="failed"?p.status==="failed"||p.status==="timedOut"||p.status==="timedout":j==="flaky"?(p.retries??0)>0:p.status===j}const H=D(()=>{let p=R.testCases;if(R.failureClusterFilter!=null&&(p=p.filter(j=>j.failureClusterId===R.failureClusterFilter)),_.value.length>0&&(p=p.filter(j=>_.value.some(Y=>P(j,Y)))),u.value!=="all"&&(p=p.filter(j=>j.browser?.projectName===u.value)),c.value){const j=c.value.toLowerCase();p=p.filter(Y=>Y.title.toLowerCase().includes(j)||Y.location&&Y.location.toLowerCase().includes(j))}return T.value&&(p=p.filter(j=>j.isNewRegression)),E.value&&(p=p.filter(j=>j.isNewFlaky)),p}),A=K(null),m=K("asc");function I(p){A.value!==p?(A.value=p,m.value="asc"):m.value==="asc"?m.value="desc":A.value=null}function x(p){return A.value!==p?"i-lucide-chevrons-up-down":m.value==="asc"?"i-lucide-chevron-up":"i-lucide-chevron-down"}function d(p,j){switch(j){case"browser":return p.browser?.projectName??"";case"title":return p.title??"";case"status":return p.status??"";case"duration":return p.duration??0;case"workerIndex":return p.workerIndex??-1;case"retries":return p.retries??0;case"wastedTimeMs":return p.wastedTimeMs??0;default:return""}}const f=D(()=>{const p=H.value,j=A.value;if(!j)return p;const Y=m.value==="asc"?1:-1;return[...p].sort((oe,Z)=>{const b=d(oe,j),V=d(Z,j);return typeof b=="number"&&typeof V=="number"?(b-V)*Y:String(b).localeCompare(String(V))*Y})}),U=D(()=>R.testCases.some(p=>(p.wastedTimeMs??0)>0)),v=D(()=>{const p=[{key:"browser",label:"Browser",sortable:!0,width:"3.25rem",align:"left",icon:"i-lucide-monitor"},{key:"title",label:"Test case",sortable:!0,width:"minmax(12rem, 3fr)",align:"left"},{key:"status",label:"Status",sortable:!0,width:"6rem",align:"left"},{key:"duration",label:"Duration",sortable:!0,width:"7rem",align:"left"},{key:"workerIndex",label:"Worker",sortable:!0,width:"6rem",align:"left"},{key:"retries",label:"Retries",sortable:!0,width:"6.5rem",align:"left"}];return U.value&&p.push({key:"wastedTimeMs",label:"Wasted",sortable:!0,width:"6rem",align:"left"}),p}),M=D(()=>[{label:"Run order",value:Ke},...v.value.map(p=>({label:p.label,value:p.key}))]),y=D({get:()=>A.value??Ke,set:p=>{A.value=p===Ke?null:p,p!==Ke&&(m.value="asc")}}),J=D(()=>v.value.map(p=>p.width).join(" ")),ee=D(()=>U.value?"47.5rem":"41.5rem"),ne=D(()=>c.value!==""||_.value.length>0||u.value!=="all"||R.failureClusterFilter!=null),Q=K(null),ie=K(!1),O=K(null);function g(p){return p.scrollHeight-p.scrollTop-p.clientHeight<50}function z(p){const j=p.target;j&&(ie.value=!g(j))}me(()=>R.isLive,p=>{p||(ie.value=!1)}),me(()=>f.value.length,()=>{!R.isLive||ie.value||De(()=>Q.value?.scrollToBottom())});function re(p){F(!1),O.value=p;const j=()=>{const Y=f.value.findIndex(oe=>oe.id===p);Y>=0&&Q.value?.scrollToItem(Y,{behavior:"smooth"})};De(()=>{Q.value?j():setTimeout(j,60),setTimeout(()=>{O.value=null},3e3)})}return h({scrollToCase:re}),(p,j)=>{const Y=he,oe=je,Z=ts,b=Rs,V=Tt,se=Re,te=zs,xe=sa,we=zt,le=Rt,_e=jt,$e=Ee,fe=ve,ke=dt("DynamicScrollerItem"),be=dt("DynamicScroller"),ze=yt;return s(),a("div",na,[o(te,{class:"mb-4 shrink-0"},{start:i(()=>[n("div",aa,[n("button",{class:q(["px-2 py-1 text-xs transition-colors",e(C)?"text-muted hover:bg-elevated/60":"bg-primary text-white dark:text-white"]),title:"Flat list",onClick:j[0]||(j[0]=r=>e(F)(!1))},[o(Y,{name:"i-lucide-list",class:"size-3.5"})],2),n("button",{class:q(["px-2 py-1 text-xs transition-colors",e(C)?"bg-primary text-white dark:text-white":"text-muted hover:bg-elevated/60"]),title:"Tree view",onClick:j[1]||(j[1]=r=>e(F)(!0))},[o(Y,{name:"i-lucide-folder-tree",class:"size-3.5"})],2)]),t.isLive?(s(),a("span",oa,[$(l(t.testCases.length)+" completed ",1),o(oe,{topic:"run.live"})])):(s(),a("span",la,[$(l(f.value.length)+l(f.value.length!==t.testCases.length?` / ${t.testCases.length}`:"")+" cases ",1),o(oe,{topic:"run.test-cases"})]))]),default:i(()=>[o(Z,{modelValue:c.value,"onUpdate:modelValue":j[2]||(j[2]=r=>c.value=r),placeholder:"Search test cases...",icon:"i-lucide-search",size:"sm",class:"min-w-48 max-sm:flex-1"},null,8,["modelValue"]),n("div",ia,[(s(),a(G,null,ae(N,r=>n("button",{key:r.value,class:q(["inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-xs font-medium transition-colors whitespace-nowrap",_.value.includes(r.value)?r.color==="green"?"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400":r.color==="red"?"bg-rose-100 text-rose-700 dark:bg-rose-900/30 dark:text-rose-400":r.color==="orange"?"bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-400":"bg-zinc-200 text-zinc-700 dark:bg-zinc-700 dark:text-zinc-300":"bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400 hover:bg-zinc-200 dark:hover:bg-zinc-700"]),onClick:Ce=>B(r.value)},[n("span",{class:q(["size-2 rounded-full shrink-0",r.color==="green"?"bg-emerald-500":r.color==="red"?"bg-rose-500":r.color==="orange"?"bg-orange-500":"bg-zinc-400"])},null,2),$(" "+l(r.label),1)],10,ra)),64))]),o(b,{modelValue:u.value,"onUpdate:modelValue":j[3]||(j[3]=r=>u.value=r),items:S.value,size:"sm",class:"w-36"},null,8,["modelValue","items"]),t.isLive?k("",!0):(s(),w(V,{key:0,modelValue:T.value,"onUpdate:modelValue":j[4]||(j[4]=r=>T.value=r),label:"New regressions",size:"sm"},null,8,["modelValue"])),t.isLive?k("",!0):(s(),w(V,{key:1,modelValue:E.value,"onUpdate:modelValue":j[5]||(j[5]=r=>E.value=r),label:"New flaky",size:"sm"},null,8,["modelValue"])),e(C)?k("",!0):(s(),a("div",ua,[o(b,{modelValue:y.value,"onUpdate:modelValue":j[6]||(j[6]=r=>y.value=r),items:M.value,size:"sm",class:"w-32","aria-label":"Sort cases by"},null,8,["modelValue","items"]),o(se,{size:"sm",variant:"outline",color:"neutral",disabled:A.value===null,icon:m.value==="asc"?"i-lucide-arrow-up-narrow-wide":"i-lucide-arrow-down-wide-narrow",title:m.value==="asc"?"Sorted ascending":"Sorted descending","aria-label":m.value==="asc"?"Sorted ascending":"Sorted descending",onClick:j[7]||(j[7]=r=>m.value=m.value==="asc"?"desc":"asc")},null,8,["disabled","icon","title","aria-label"])]))]),_:1}),e(C)&&t.testCases.length>0?(s(),w(xe,{key:0,"test-cases":f.value,suites:t.suites,"has-filter":ne.value,"highlighted-case-id":O.value,"project-key":t.projectKey,"project-name":t.projectName,class:"flex-1 min-h-0"},null,8,["test-cases","suites","has-filter","highlighted-case-id","project-key","project-name"])):e(C)?k("",!0):(s(),a(G,{key:1},[f.value.length>0?(s(),a("div",ca,[n("div",{class:"flex flex-col h-full md:min-w-(--grid-min-width)",role:"table","aria-label":"Test cases","aria-rowcount":f.value.length+1,style:ye({"--grid-min-width":ee.value})},[n("div",{class:"hidden md:grid shrink-0 bg-elevated/50 border-b border-default",role:"row",style:ye({gridTemplateColumns:J.value})},[(s(!0),a(G,null,ae(v.value,r=>(s(),a(G,{key:r.key},[r.sortable?(s(),a("button",{key:0,type:"button",role:"columnheader","aria-sort":A.value===r.key?m.value==="asc"?"ascending":"descending":"none","aria-label":r.icon?r.label:void 0,title:r.icon?r.label:void 0,class:q(["flex items-center gap-1 min-w-0 px-3 py-2 text-sm font-semibold select-none cursor-pointer hover:text-highlighted transition-colors",r.align==="right"?"justify-end":""]),onClick:Ce=>I(r.key)},[r.icon?(s(),w(Y,{key:0,name:r.icon,class:"shrink-0 size-4"},null,8,["name"])):(s(),a("span",fa,l(r.label),1)),o(Y,{name:x(r.key),class:q(["shrink-0 size-3.5",A.value===r.key?"":"opacity-40"])},null,8,["name","class"])],10,ma)):(s(),a("div",{key:1,role:"columnheader",class:q(["px-3 py-2 text-sm font-semibold",r.align==="right"?"text-right":""])},l(r.label),3))],64))),128))],4),o(ze,null,{fallback:i(()=>[n("div",Sa,[o(Y,{name:"i-lucide-loader-circle",class:"size-4 mr-2 animate-spin"}),j[8]||(j[8]=$(" Loading test cases… ",-1))])]),default:i(()=>[o(be,{ref_key:"scrollerRef",ref:Q,items:f.value,"min-item-size":44,"key-field":"id",role:"rowgroup",class:"flex-1 min-h-0",onScrollPassive:z},{default:i(({item:r,index:Ce,active:qe})=>[o(ke,{item:r,active:qe,"size-dependencies":[r.title,r.location,r.isNewRegression,r.isNewFlaky,r.testAnnotations,r.tags],"data-index":Ce},{default:i(()=>[n("div",{class:q(["md:hidden border-b border-default px-3 py-2.5 space-y-1.5 text-sm transition-colors",O.value===r.id?"animate-pulse bg-yellow-100 dark:bg-yellow-900/30":""]),role:"row"},[n("div",ga,[o(Y,{name:("getStatusIcon"in p?p.getStatusIcon:e(tt))(r.status),class:q(["size-4 shrink-0 mt-0.5",[("getStatusTextClass"in p?p.getStatusTextClass:e(et))(r.status),("isStatusInFlight"in p?p.isStatusInFlight:e(_t))(r.status)?"animate-spin":""]]),role:"img","aria-label":`Status: ${("formatStatusLabel"in p?p.formatStatusLabel:e(Fe))(r.status)}`,title:("formatStatusLabel"in p?p.formatStatusLabel:e(Fe))(r.status)},null,8,["name","class","aria-label","title"]),n("a",{href:`/test-run-cases/${r.id}`,class:"text-highlighted hover:text-primary hover:underline font-medium flex-1 min-w-0",onClick:Ne(Oe=>("navigateTo"in p?p.navigateTo:e(He))(`/test-run-cases/${r.id}`),["prevent"])},l(r.title),9,pa),o(we,{browser:r.browser,size:"sm",class:"mt-0.5"},null,8,["browser"])]),r.location?(s(),w(le,{key:0,location:r.location,"project-key":t.projectKey,"project-name":t.projectName,class:"block pl-6 text-xs text-gray-400 dark:text-gray-500"},null,8,["location","project-key","project-name"])):k("",!0),o(_e,{"is-new-regression":!!r.isNewRegression,"is-new-flaky":!!r.isNewFlaky,annotations:r.testAnnotations,tags:r.tags,meta:r.testMeta,"max-tags":3,class:"pl-6"},null,8,["is-new-regression","is-new-flaky","annotations","tags","meta"]),n("div",xa,[r.status==="running"?(s(),a("span",ya,"In progress...")):r.duration?(s(),w($e,{key:1,ms:r.duration},null,8,["ms"])):k("",!0),r.workerIndex!=null?(s(),w(fe,{key:2,color:"neutral",variant:"soft",size:"xs",class:"font-mono",title:`Worker ${r.workerIndex}`},{default:i(()=>[$(" w"+l(r.workerIndex),1)]),_:2},1032,["title"])):k("",!0),(r.retries??0)>0?(s(),w(fe,{key:3,color:"warning",variant:"soft",size:"xs"},{default:i(()=>[$(l(r.retries)+"x ",1)]),_:2},1024)):k("",!0),r.wastedTimeMs?(s(),a("span",ha,[o(Y,{name:"i-lucide-hourglass",class:"size-3 shrink-0"}),o($e,{ms:r.wastedTimeMs,"unit-class":"opacity-60","no-title":""},null,8,["ms"])])):k("",!0)])],2),n("div",{class:q(["hidden md:grid items-center border-b border-default text-sm transition-colors hover:bg-zinc-50 dark:hover:bg-zinc-900/50",O.value===r.id?"animate-pulse bg-yellow-100 dark:bg-yellow-900/30":""]),role:"row",style:ye({gridTemplateColumns:J.value})},[n("div",va,[o(we,{browser:r.browser},null,8,["browser"])]),n("div",ka,[n("div",ba,[n("a",{href:`/test-run-cases/${r.id}`,class:"text-highlighted hover:text-primary hover:underline font-medium truncate",title:r.title,onClick:Ne(Oe=>("navigateTo"in p?p.navigateTo:e(He))(`/test-run-cases/${r.id}`),["prevent"])},l(r.title),9,wa),o(_e,{"is-new-regression":!!r.isNewRegression,"is-new-flaky":!!r.isNewFlaky,annotations:r.testAnnotations,tags:r.tags,meta:r.testMeta,"max-tags":3,class:"shrink-0"},null,8,["is-new-regression","is-new-flaky","annotations","tags","meta"])]),r.location?(s(),w(le,{key:0,location:r.location,"project-key":t.projectKey,"project-name":t.projectName,class:"text-xs text-zinc-400 dark:text-zinc-500"},null,8,["location","project-key","project-name"])):k("",!0)]),n("div",_a,[o(fe,{color:("getStatusColor"in p?p.getStatusColor:e(st))(r.status==="timedOut"||r.status==="timedout"?"failed":r.status),variant:"subtle",class:"capitalize"},{default:i(()=>[$(l(("formatStatusLabel"in p?p.formatStatusLabel:e(Fe))(r.status)),1)]),_:2},1032,["color"])]),n("div",$a,[r.status==="running"?(s(),a("span",Ca,"In progress...")):(s(),w($e,{key:1,ms:r.duration,fallback:""},null,8,["ms"]))]),n("div",Ta,[r.workerIndex!=null?(s(),w(fe,{key:0,color:"neutral",variant:"soft",class:"font-mono text-xs"},{default:i(()=>[$(l(r.workerIndex),1)]),_:2},1024)):k("",!0)]),n("div",Ra,l(r.retries&&r.retries>0?r.retries:""),1),U.value?(s(),a("div",za,[r.wastedTimeMs?(s(),w($e,{key:0,ms:r.wastedTimeMs,class:"text-amber-600 dark:text-amber-400","unit-class":"opacity-60"},null,8,["ms"])):(s(),a("span",Ia,"—"))])):k("",!0)],6)]),_:2},1032,["item","active","size-dependencies","data-index"])]),_:1},8,["items"])]),_:1})],12,da)])):t.testCases.length===0?(s(),a("div",Fa,[o(Y,{name:"i-lucide-beaker",class:"size-8 mx-auto mb-2 text-zinc-300 dark:text-zinc-600"}),j[9]||(j[9]=n("p",null,"No test cases recorded for this run.",-1))])):(s(),a("div",Da,[o(Y,{name:"i-lucide-search-x",class:"size-8 mx-auto mb-2 text-zinc-300 dark:text-zinc-600"}),j[10]||(j[10]=n("p",null,"No test cases match your filters.",-1))]))],64))])}}}),Pa=Object.assign(ja,{__name:"TestCasesList"}),Ba={key:2,class:"p-4"},Na={key:3,class:"p-4"},Ma={key:4,class:"p-4"},Aa={key:5,class:"space-y-6 p-4"},Ua={class:"flex items-center gap-1.5 text-sm text-muted"},La={class:"grid grid-cols-1 sm:grid-cols-3 gap-4"},Ea={class:"space-y-1"},Oa={class:"text-xl font-semibold"},Ka={key:0},Wa={key:1},Ha={class:"space-y-1"},Va={key:1,class:"text-xl font-semibold text-muted"},Ga={class:"space-y-1"},Xa={class:"space-y-0.5 text-sm"},qa={key:0,class:"text-red-500"},Ya={key:1,class:"text-green-600"},Ja={key:2,class:"text-purple-500"},Za={key:3,class:"text-muted"},Qa={class:"space-y-1"},eo={class:"font-medium text-primary hover:underline truncate"},to={class:"text-gray-400 text-xs ml-auto shrink-0"},so={class:"space-y-1"},no={class:"font-medium text-primary hover:underline truncate"},ao={class:"space-y-1"},oo={class:"font-medium text-primary hover:underline truncate"},lo={class:"space-y-1"},io={class:"font-medium text-primary hover:underline truncate"},ro={class:"text-gray-400 text-xs ml-auto shrink-0"},uo={class:"space-y-1"},co={class:"font-medium text-primary hover:underline truncate"},mo={class:"grid grid-cols-2 gap-4"},fo={key:0},go={class:"space-y-1"},po={class:"text-red-500 font-mono shrink-0"},xo={class:"truncate text-primary hover:underline"},yo={key:1},ho={class:"space-y-1"},vo={class:"text-green-500 font-mono shrink-0"},ko={class:"truncate text-primary hover:underline"},bo={class:"space-y-1"},wo={class:"flex-1 truncate text-primary hover:underline"},_o={class:"text-gray-500 font-mono text-xs shrink-0"},$o={class:"w-24 h-2 rounded-full bg-gray-100 shrink-0"},Co={key:0,class:"flex items-center gap-1.5 text-xs text-amber-600 mb-3"},To={class:"flex items-end gap-2 h-20"},Ro={class:"text-xs text-gray-500"},zo={class:"text-xs text-gray-400"},Io={class:"space-y-1"},So={class:"truncate"},Fo=ge({__name:"RunInsights",props:{testRunId:{},runStatus:{},refreshKey:{}},setup(t){const h=t,C=D(()=>{if(!c.value)return"";const B=c.value.passRateDelta;return B>0?"text-green-600":B<0?"text-red-600":"text-muted"}),F=D(()=>{if(!c.value)return"";const B=c.value.passRateDelta;return B>0?"i-lucide-trending-up":B<0?"i-lucide-trending-down":"i-lucide-minus"}),R=D(()=>c.value?.avgDurationDelta==null?"":c.value.avgDurationDelta>0?"text-red-600":"text-green-600"),c=K(null),_=K(!1),u=K(null),T=D(()=>h.runStatus==="running"||h.runStatus==="initialising"||h.runStatus==="finalizing");async function E(){if(!h.testRunId||T.value){c.value=null;return}_.value=!0,u.value=null;try{c.value=await $fetch(`/api/test-runs/${h.testRunId}/insights`)}catch(B){console.error("[RunInsights] failed to load",B),u.value=B?.data?.message||B?.message||"Failed to load insights"}finally{_.value=!1}}me(()=>h.testRunId,E,{immediate:!0}),me(()=>h.refreshKey,(B,S)=>{B!==S&&B!==void 0&&E()});function N(B){return B==null?"—":B<1e3?`${B}ms`:`${(B/1e3).toFixed(1)}s`}return(B,S)=>{const P=Re,H=Fs,A=It,m=St,I=he,x=je,d=Ds,f=ve,U=Ue;return e(u)?(s(),w(H,{key:0,text:e(u),padded:""},{action:i(()=>[o(P,{size:"sm",onClick:E},{default:i(()=>[...S[0]||(S[0]=[$("Retry",-1)])]),_:1})]),_:1},8,["text"])):e(_)?(s(),w(A,{key:1,padded:""})):e(T)?(s(),a("div",Ba,[o(m,{icon:"i-lucide-loader-circle",text:"Run in progress"},{default:i(()=>[...S[1]||(S[1]=[n("p",{class:"text-sm text-muted max-w-sm text-center"}," Insights are computed once the run finishes. Switch back here when the run completes. ",-1)])]),_:1})])):e(c)?e(c).hasBaseline?(s(),a("div",Aa,[n("div",Ua,[o(I,{name:"i-lucide-sparkles",class:"size-4 shrink-0 text-primary/70"}),S[3]||(S[3]=n("span",null,"Automatic highlights from this run",-1)),o(x,{topic:"run.insights"})]),o(d,{icon:"i-lucide-bar-chart-3","icon-class":"text-blue-500",title:"Run summary"},{default:i(()=>[n("div",La,[n("div",Ea,[S[4]||(S[4]=n("p",{class:"text-xs text-muted"},"Pass rate",-1)),n("p",Oa,l(e(c).passRate)+"%",1),n("div",{class:q(["flex items-center gap-1 text-xs",e(C)])},[o(I,{name:e(F),class:"size-3.5"},null,8,["name"]),e(c).passRateDelta!==0?(s(),a("span",Ka,l(e(c).passRateDelta>0?"+":"")+l(e(c).passRateDelta)+"pp vs baseline",1)):(s(),a("span",Wa,"Same as baseline"))],2)]),n("div",Ha,[S[5]||(S[5]=n("p",{class:"text-xs text-muted"},"Avg duration",-1)),e(c).avgDurationDelta!==null?(s(),a("p",{key:0,class:q(["text-xl font-semibold",e(R)])},l(e(c).avgDurationDelta>0?"+":"")+l(e(c).avgDurationDelta)+"% ",3)):(s(),a("p",Va,"—")),S[6]||(S[6]=n("p",{class:"text-xs text-muted"},"vs baseline (passing tests)",-1))]),n("div",Ga,[S[7]||(S[7]=n("p",{class:"text-xs text-muted"},"Changes",-1)),n("div",Xa,[e(c).newRegressions.length>0?(s(),a("p",qa," +"+l(e(c).newRegressions.length)+" regressed ",1)):k("",!0),e(c).recovered.length>0?(s(),a("p",Ya,"+"+l(e(c).recovered.length)+" fixed",1)):k("",!0),e(c).newFlaky.length>0?(s(),a("p",Ja,"+"+l(e(c).newFlaky.length)+" flaky",1)):k("",!0),!e(c).newRegressions.length&&!e(c).recovered.length&&!e(c).newFlaky.length?(s(),a("p",Za," No status changes ")):k("",!0)])])])]),_:1}),e(c).newRegressions.length>0?(s(),w(d,{key:0,icon:"i-lucide-alert-circle","icon-class":"text-red-500",title:"New regressions",count:e(c).newRegressions.length},{default:i(()=>[n("div",Qa,[(s(!0),a(G,null,ae(e(c).newRegressions,v=>(s(),w(U,{key:v.testRunsCaseId,to:`/test-run-cases/${v.testRunsCaseId}`,class:"flex items-center gap-2 text-sm hover:bg-red-50 dark:hover:bg-red-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[o(f,{color:"error",variant:"solid",size:"xs"},{default:i(()=>[...S[8]||(S[8]=[$("NEW",-1)])]),_:1}),n("span",eo,l(v.title),1),n("span",to,l(N(v.duration)),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):k("",!0),e(c).recurrences.length>0?(s(),w(d,{key:1,icon:"i-lucide-refresh-cw","icon-class":"text-amber-500",title:"Recurring failures",count:e(c).recurrences.length},{default:i(()=>[n("div",so,[(s(!0),a(G,null,ae(e(c).recurrences,v=>(s(),w(U,{key:v.testRunsCaseId,to:`/test-run-cases/${v.testRunsCaseId}`,class:"flex items-center gap-2 text-sm hover:bg-amber-50 dark:hover:bg-amber-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[o(f,{color:"warning",variant:"solid",size:"xs"},{default:i(()=>[...S[9]||(S[9]=[$("RECURRING",-1)])]),_:1}),n("span",no,l(v.title),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):k("",!0),e(c).recovered.length>0?(s(),w(d,{key:2,icon:"i-lucide-check-circle","icon-class":"text-green-500",title:"Fixed tests",count:e(c).recovered.length},{default:i(()=>[n("div",ao,[(s(!0),a(G,null,ae(e(c).recovered,v=>(s(),w(U,{key:v.testRunsCaseId,to:`/test-run-cases/${v.testRunsCaseId}`,class:"flex items-center gap-2 text-sm hover:bg-green-50 dark:hover:bg-green-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[o(f,{color:"success",variant:"solid",size:"xs"},{default:i(()=>[...S[10]||(S[10]=[$("FIXED",-1)])]),_:1}),n("span",oo,l(v.title),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):k("",!0),e(c).newFlaky.length>0?(s(),w(d,{key:3,icon:"i-lucide-flask","icon-class":"text-purple-500",title:"New flaky tests",count:e(c).newFlaky.length},{default:i(()=>[n("div",lo,[(s(!0),a(G,null,ae(e(c).newFlaky,v=>(s(),w(U,{key:v.testRunsCaseId,to:`/test-run-cases/${v.testRunsCaseId}?tab=history`,class:"flex items-center gap-2 text-sm hover:bg-purple-50 dark:hover:bg-purple-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[o(f,{color:"info",variant:"solid",size:"xs"},{default:i(()=>[...S[11]||(S[11]=[$("FLAKY",-1)])]),_:1}),n("span",io,l(v.title),1),n("span",ro,l(N(v.duration)),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):k("",!0),e(c).flakyOnRetry.length>0?(s(),w(d,{key:4,icon:"i-lucide-repeat","icon-class":"text-orange-500",title:"Passed on retry",count:e(c).flakyOnRetry.length,subtitle:"Tests that passed but needed one or more retries"},{default:i(()=>[n("div",uo,[(s(!0),a(G,null,ae(e(c).flakyOnRetry,v=>(s(),w(U,{key:v.testRunsCaseId,to:`/test-run-cases/${v.testRunsCaseId}?tab=history`,class:"flex items-center gap-2 text-sm hover:bg-orange-50 dark:hover:bg-orange-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[o(f,{color:"warning",variant:"subtle",size:"xs"},{default:i(()=>[$("×"+l(v.retries),1)]),_:2},1024),n("span",co,l(v.title),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):k("",!0),e(c).mostRegressed.length>0||e(c).mostImproved.length>0?(s(),w(d,{key:5,icon:"i-lucide-trending-up","icon-class":"text-blue-500",title:"Performance changes"},{default:i(()=>[n("div",mo,[e(c).mostRegressed.length>0?(s(),a("div",fo,[S[12]||(S[12]=n("p",{class:"text-xs font-medium text-red-500 mb-2"},"Most regressed",-1)),n("div",go,[(s(!0),a(G,null,ae(e(c).mostRegressed,v=>(s(),w(U,{key:v.testRunsCaseId,to:`/test-run-cases/${v.testRunsCaseId}?tab=performance`,class:"flex items-center gap-2 text-sm hover:bg-red-50 dark:hover:bg-red-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[n("span",po,"+"+l(v.pctChange)+"%",1),n("span",xo,l(v.title),1)]),_:2},1032,["to"]))),128))])])):k("",!0),e(c).mostImproved.length>0?(s(),a("div",yo,[S[13]||(S[13]=n("p",{class:"text-xs font-medium text-green-500 mb-2"},"Most improved",-1)),n("div",ho,[(s(!0),a(G,null,ae(e(c).mostImproved,v=>(s(),w(U,{key:v.testRunsCaseId,to:`/test-run-cases/${v.testRunsCaseId}?tab=performance`,class:"flex items-center gap-2 text-sm hover:bg-green-50 dark:hover:bg-green-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[n("span",vo,l(v.pctChange)+"%",1),n("span",ko,l(v.title),1)]),_:2},1032,["to"]))),128))])])):k("",!0)])]),_:1})):k("",!0),e(c).slowestTests.length>0?(s(),w(d,{key:6,icon:"i-lucide-clock","icon-class":"text-amber-500",title:"Slowest tests"},{default:i(()=>[n("div",bo,[(s(!0),a(G,null,ae(e(c).slowestTests,v=>(s(),w(U,{key:v.testRunsCaseId,to:`/test-run-cases/${v.testRunsCaseId}?tab=performance`,class:"flex items-center gap-2 text-sm hover:bg-amber-50 dark:hover:bg-amber-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[n("div",wo,l(v.title),1),n("div",_o,l(N(v.duration)),1),n("div",$o,[n("div",{class:"h-full rounded-full bg-amber-400",style:ye({width:Math.min(100,v.duration/(e(c).slowestTests[0]?.duration||1)*100)+"%"})},null,4)])]),_:2},1032,["to"]))),128))])]),_:1})):k("",!0),e(c).workerImbalance.length>1?(s(),w(d,{key:7,icon:"i-lucide-users","icon-class":"text-gray-500",title:"Worker distribution"},{default:i(()=>[e(c).workerImbalanceWarning?(s(),a("div",Co,[o(I,{name:"i-lucide-alert-triangle",class:"size-3.5 shrink-0"}),n("span",null,l(e(c).workerImbalanceWarning),1)])):k("",!0),n("div",To,[(s(!0),a(G,null,ae(e(c).workerImbalance,v=>(s(),a("div",{key:v.workerIndex,class:"flex-1 flex flex-col items-center gap-1"},[n("span",Ro,l(v.count),1),n("div",{class:"w-full bg-blue-400 rounded-t",style:ye({height:Math.max(4,v.count/Math.max(...e(c).workerImbalance.map(M=>M.count))*60)+"px"})},null,4),n("span",zo,"W"+l(v.workerIndex),1)]))),128))])]),_:1})):k("",!0),e(c).clusterNew.length>0?(s(),w(d,{key:8,icon:"i-lucide-layers","icon-class":"text-purple-500",title:"New failure clusters",count:e(c).clusterNew.length},{default:i(()=>[n("div",Io,[(s(!0),a(G,null,ae(e(c).clusterNew,v=>(s(),w(U,{key:v.clusterId,to:`/failure-clusters/${v.clusterId}`,class:"flex items-center gap-2 text-sm text-primary hover:underline"},{default:i(()=>[n("span",So,l(v.signature),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):k("",!0)])):(s(),a("div",Ma,[o(m,{icon:"i-lucide-git-compare-arrows",text:"No baseline run found"},{default:i(()=>[...S[2]||(S[2]=[n("p",{class:"text-sm text-muted max-w-sm text-center"}," Insights compare this run against the most recent passing run in the same project. No previous passing run exists yet — once you have at least two completed runs, comparisons will appear here automatically. ",-1)])]),_:1})])):(s(),a("div",Na,[o(m,{text:"No insights yet"})]))}}}),Do=Object.assign(Fo,{__name:"RunInsights"}),jo=ge({__name:"ClusterDiagnosis",props:{clusterId:{}},setup(t){return(h,C)=>{const F=js;return s(),w(F,{"cluster-id":t.clusterId},null,8,["cluster-id"])}}}),Po=Object.assign(jo,{__name:"ClusterDiagnosis"}),Bo={class:"pt-4 space-y-3"},No={key:0,class:"flex items-center justify-center py-8 text-gray-500 gap-2"},Mo={class:"flex items-center justify-between gap-3"},Ao={class:"text-sm text-gray-500 dark:text-gray-400 inline-flex items-center gap-1"},Uo={class:"min-w-0 space-y-0.5"},Lo=["title"],Eo={key:0,class:"text-xs text-gray-500 truncate block"},Oo={class:"font-mono"},Ko={key:1,class:"text-gray-400 text-xs"},Wo={key:1,class:"text-gray-400 text-xs"},Ho={class:"text-sm tabular-nums"},Vo={key:0,class:"flex flex-wrap gap-1"},Go={key:1,class:"text-gray-400 text-xs"},Xo={key:0,class:"flex items-center gap-1 text-xs text-gray-500"},qo={key:2,class:"text-gray-400 text-xs"},Yo={key:0,class:"text-xs font-medium text-warning-500"},Jo={key:1,class:"text-sm text-gray-500 whitespace-nowrap"},Zo={key:0,class:"ml-1 text-xs text-gray-400"},Qo={class:"flex justify-end gap-2"},el={key:2,class:"flex flex-col items-center justify-center py-8 text-gray-500 gap-2"},tl=ge({__name:"FailureGroups",props:{refreshKey:{}},emits:["selectCluster"],async setup(t,{emit:h}){let C,F;const R=h,c=t,u=Le().params.id,{data:T,pending:E,refresh:N}=([C,F]=Me(()=>Ae(`/api/test-runs/${u}/failure-groups`,{lazy:!0,server:!1},"$qddF1IOQ64")),C=await C,F(),C);me(()=>c.refreshKey,(d,f)=>{d!==f&&d!==void 0&&N()});const B=K(null),{copy:S,copied:P}=at(),H=D(()=>T.value?T.value.flatMap(d=>d.cases.filter(f=>!f.passedOnRetry).map(f=>({filePath:f.filePath,title:f.title,line:null,projectName:null}))):[]),A=D(()=>Ct(H.value));function m(){const d=A.value;d&&S(d,{toast:"Retry command copied"})}const I=[{accessorKey:"signature",header:ce("Signature")},{accessorKey:"errorType",header:ce("Type")},{accessorKey:"status",header:ce("Status")},{accessorKey:"caseCount",header:ce("Tests")},{accessorKey:"signals",header:"Signals"},{accessorKey:"diagnosis",header:"AI"},{accessorKey:"firstSeenRunId",header:ce("Known since")},{id:"actions",header:"Actions"}],x=D(()=>T.value?.reduce((d,f)=>d+f.caseCount,0)??0);return(d,f)=>{const U=he,v=je,M=Re,y=ve,J=Ue,ee=ot,ne=Ft,Q=nt,ie=Po,O=Dt;return s(),a(G,null,[n("div",Bo,[e(E)?(s(),a("div",No,[o(U,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),f[2]||(f[2]=n("span",null,"Grouping failures...",-1))])):e(T)&&e(T).length?(s(),a(G,{key:1},[n("div",Mo,[n("p",Ao,[$(l(e(x))+" failing "+l(e(x)===1?"test":"tests")+" across "+l(e(T).length)+" "+l(e(T).length===1?"group":"groups")+" ",1),o(v,{topic:"cluster.concept"})]),e(H).length>0?(s(),w(M,{key:0,size:"xs",variant:"outline",color:"neutral",icon:e(P)?"i-lucide-check":"i-lucide-play",title:e(P)?"Copied!":("copyPreview"in d?d.copyPreview:e(wt))(e(A)),onClick:f[0]||(f[0]=g=>m())},{default:i(()=>[...f[3]||(f[3]=[$(" Copy retry command ",-1)])]),_:1},8,["icon","title"])):k("",!0)]),o(Q,{ui:{body:"p-0 sm:p-0"}},{default:i(()=>[o(ne,{"min-width":"46rem",bleed:!1},{default:i(()=>[o(ee,{data:e(T),columns:I},{"actions-header":i(()=>[...f[4]||(f[4]=[n("div",{class:"text-right"},"Actions",-1)])]),"signature-cell":i(({row:g})=>[n("div",Uo,[n("span",{class:q(["text-sm block truncate",g.original.title?"":"font-mono"]),title:g.original.signature},l(g.original.title||g.original.signature),11,Lo),g.original.selector?(s(),a("span",Eo,[f[5]||(f[5]=$(" Locator: ",-1)),n("code",Oo,l(g.original.selector),1)])):k("",!0)])]),"errorType-cell":i(({row:g})=>[g.original.errorType?(s(),w(y,{key:0,color:("clusterErrorTypeColor"in d?d.clusterErrorTypeColor:e(Ts))(g.original.errorType),variant:"subtle",size:"sm"},{default:i(()=>[$(l(g.original.errorType),1)]),_:2},1032,["color"])):(s(),a("span",Ko,"—"))]),"status-cell":i(({row:g})=>[g.original.status?(s(),w(y,{key:0,color:("clusterStatusColor"in d?d.clusterStatusColor:e(Cs))(g.original.status),variant:"subtle",size:"sm"},{default:i(()=>[$(l(g.original.status),1)]),_:2},1032,["color"])):(s(),a("span",Wo,"—"))]),"caseCount-cell":i(({row:g})=>[n("span",Ho,l(g.original.caseCount),1)]),"signals-cell":i(({row:g})=>[g.original.isNew||g.original.flaky||g.original.workerCorrelated||g.original.locatorHealing?(s(),a("div",Vo,[g.original.isNew?(s(),w(y,{key:0,color:"warning",variant:"subtle",size:"sm"},{default:i(()=>[...f[6]||(f[6]=[$(" New ",-1)])]),_:1})):k("",!0),g.original.flaky?(s(),w(y,{key:1,color:"warning",variant:"outline",size:"sm"},{default:i(()=>[...f[7]||(f[7]=[$(" Flaky ",-1)])]),_:1})):k("",!0),g.original.workerCorrelated?(s(),w(y,{key:2,color:"info",variant:"outline",size:"sm",title:"All failures ran on the same worker"},{default:i(()=>[...f[8]||(f[8]=[$(" Same worker ",-1)])]),_:1})):k("",!0),g.original.locatorHealing?.healed?(s(),w(y,{key:3,color:"success",variant:"subtle",size:"sm",icon:"i-lucide-circle-check",title:"The recommended locator already passes at this call site in a later run"},{default:i(()=>[...f[9]||(f[9]=[$(" Healed ",-1)])]),_:1})):g.original.locatorHealing?(s(),w(y,{key:4,color:"success",variant:"outline",size:"sm",icon:"i-lucide-bandage",title:`Locator fix available: ${g.original.locatorHealing.recommended} — open the cluster to apply it`},{default:i(()=>[...f[10]||(f[10]=[$(" Locator fix ",-1)])]),_:1},8,["title"])):k("",!0)])):(s(),a("span",Go,"—"))]),"diagnosis-cell":i(({row:g})=>[g.original.diagnosis?.status==="running"?(s(),a("div",Xo,[o(U,{name:"i-lucide-loader-2",class:"size-3 animate-spin"}),f[11]||(f[11]=$(" Running ",-1))])):g.original.diagnosis?.status==="completed"&&g.original.diagnosis.category?(s(),w(y,{key:1,color:"neutral",variant:"subtle",size:"sm",class:"gap-1"},{default:i(()=>[o(U,{name:"i-lucide-sparkles",class:"size-3"}),$(" "+l(g.original.diagnosis.category),1)]),_:2},1024)):(s(),a("span",qo,"—"))]),"firstSeenRunId-cell":i(({row:g})=>[g.original.isNew?(s(),a("span",Yo,"New in this run")):(s(),a("div",Jo,[o(J,{to:`/test-runs/${g.original.firstSeenRunId}`,class:"text-primary hover:underline"},{default:i(()=>[$(" run #"+l(g.original.firstSeenRunId),1)]),_:2},1032,["to"]),g.original.firstSeenAt?(s(),a("span",Zo," ("+l(("formatRelativeTime"in d?d.formatRelativeTime:e($t))(g.original.firstSeenAt))+") ",1)):k("",!0)]))]),"actions-cell":i(({row:g})=>[n("div",Qo,[o(M,{size:"sm",color:"primary",variant:"soft",onClick:z=>R("selectCluster",g.original.clusterId)},{default:i(()=>[...f[12]||(f[12]=[$(" Filter ",-1)])]),_:1},8,["onClick"]),o(M,{size:"sm",color:"neutral",variant:"outline",icon:"i-lucide-sparkles",onClick:z=>B.value=g.original.clusterId},{default:i(()=>[...f[13]||(f[13]=[$(" Diagnose ",-1)])]),_:1},8,["onClick"]),o(M,{to:`/failure-clusters/${g.original.clusterId}`,size:"sm",variant:"outline","trailing-icon":"i-lucide-arrow-right"},{default:i(()=>[...f[14]||(f[14]=[$(" View ",-1)])]),_:1},8,["to"])])]),_:1},8,["data"])]),_:1})]),_:1})],64)):(s(),a("div",el,[o(U,{name:"i-lucide-party-popper",class:"size-6"}),f[15]||(f[15]=n("span",null,"No failure groups — failed tests without error details are not grouped",-1))]))]),o(O,{open:e(B)!==null,title:"AI Diagnosis",ui:{content:"max-w-2xl"},"onUpdate:open":f[1]||(f[1]=g=>{g||(B.value=null)})},{body:i(()=>[e(B)!==null?(s(),w(ie,{key:0,"cluster-id":e(B)},null,8,["cluster-id"])):k("",!0)]),_:1},8,["open"])],64)}}}),sl=Object.assign(tl,{__name:"FailureGroups"}),nl={class:"pt-4"},al={key:2,class:"space-y-4"},ol={class:"flex flex-wrap items-center gap-2 text-sm"},ll={class:"text-gray-500 inline-flex items-center gap-1"},il={key:0,class:"text-gray-400"},rl={key:0,class:"flex flex-wrap items-center gap-2"},ul={class:"text-sm text-gray-500"},cl={key:1,class:"flex items-center gap-2"},dl={class:"text-sm text-gray-500"},ml={class:"space-y-3"},fl={class:"flex items-center gap-2 text-sm font-medium"},gl={class:"flex flex-wrap items-center gap-2 text-sm font-mono"},pl={key:0,class:"text-xs text-gray-400 font-sans"},xl={class:"flex flex-wrap items-center gap-2"},yl={class:"flex items-center gap-1.5 flex-1 min-w-0"},hl={class:"flex-1 text-xs bg-gray-100 dark:bg-gray-800 px-3 py-1.5 rounded font-mono truncate select-all"},vl={key:3,class:"text-sm text-gray-500 flex items-center gap-2"},kl={class:"px-4 py-3 text-sm font-medium flex items-center gap-2 border-b border-default"},bl={class:"overflow-x-auto"},wl={class:"w-full min-w-[36rem] text-sm"},_l={class:"px-4 py-2 text-gray-500"},$l={class:"px-4 py-2 font-mono text-xs"},Cl={key:0,class:"text-green-700 dark:text-green-400"},Tl={key:1,class:"text-gray-400"},Rl={class:"px-4 py-2 font-mono text-xs"},zl={key:0,class:"text-red-700 dark:text-red-400"},Il={key:1,class:"text-gray-400"},Sl=ge({__name:"RegressionContext",props:{refreshKey:{}},async setup(t){let h,C;const R=Le().params.id,c=t,{data:_,pending:u,refresh:T}=([h,C]=Me(()=>Ae(`/api/test-runs/${R}/regression-context`,{lazy:!0,server:!1},"$AcrCJopY1M")),h=await h,C(),h);me(()=>c.refreshKey,(S,P)=>{S!==P&&S!==void 0&&T()});const{copy:E,copied:N}=at();function B(){E(_.value?.commitRange?.gitCommand)}return(S,P)=>{const H=It,A=St,m=he,I=je,x=Ue,d=ve,f=Re,U=nt;return s(),a("div",nl,[e(u)?(s(),w(H,{key:0,text:"Looking for last passing run…"})):e(_)?.hasGreen?(s(),a("div",al,[n("div",ol,[o(m,{name:"i-lucide-circle-check",class:"size-4 text-green-500 shrink-0"}),n("span",ll,[P[0]||(P[0]=$("Last passing run: ",-1)),o(I,{topic:"run.regression"})]),o(x,{to:`/test-runs/${e(_).lastGreenRunId}`,class:"font-medium text-primary hover:underline"},{default:i(()=>[$(" Run #"+l(e(_).lastGreenRunId),1)]),_:1},8,["to"]),e(_).lastGreenRunAt?(s(),a("span",il," ("+l(("formatRelativeTime"in S?S.formatRelativeTime:e($t))(e(_).lastGreenRunAt))+") ",1)):k("",!0)]),(e(_).newFailures??0)>0?(s(),a("div",rl,[o(d,{color:"error",variant:"soft",size:"lg"},{default:i(()=>[$(l(e(_).newFailures)+" new "+l(e(_).newFailures===1?"failure":"failures"),1)]),_:1}),n("span",ul,l(e(_).newFailures===1?"test":"tests")+" that "+l((e(_).newFailures===1,"passed"))+" in run #"+l(e(_).lastGreenRunId)+" but "+l(e(_).newFailures===1?"fails":"fail")+" here ",1)])):(s(),a("div",cl,[o(d,{color:"warning",variant:"soft",size:"lg"},{default:i(()=>[...P[1]||(P[1]=[$(" No new regressions ",-1)])]),_:1}),n("span",dl,"All failing tests were also failing before run #"+l(e(_).lastGreenRunId),1)])),e(_).commitRange?(s(),w(U,{key:2,ui:{body:"p-4 sm:p-4"}},{default:i(()=>[n("div",ml,[n("div",fl,[o(m,{name:"i-lucide-git-commit-horizontal",class:"size-4"}),P[2]||(P[2]=$(" Commits introduced since last passing run ",-1))]),n("div",gl,[o(d,{color:"success",variant:"soft",size:"sm"},{default:i(()=>[$(l(e(_).commitRange.fromShort),1)]),_:1}),o(m,{name:"i-lucide-arrow-right",class:"size-3 text-gray-400"}),o(d,{color:"error",variant:"soft",size:"sm"},{default:i(()=>[$(l(e(_).commitRange.toShort),1)]),_:1}),e(_).currentBranch||e(_).lastGreenBranch?(s(),a("span",pl," on "+l(e(_).currentBranch||e(_).lastGreenBranch),1)):k("",!0)]),n("div",xl,[e(_).commitRange.compareUrl?(s(),w(f,{key:0,to:e(_).commitRange.compareUrl,target:"_blank",external:"",icon:"i-lucide-external-link",size:"sm",variant:"soft",color:"primary"},{default:i(()=>[...P[3]||(P[3]=[$(" View commits ",-1)])]),_:1},8,["to"])):k("",!0),n("div",yl,[n("code",hl,l(e(_).commitRange.gitCommand),1),o(f,{icon:e(N)?"i-lucide-check":"i-lucide-clipboard",size:"xs",color:"neutral",variant:"ghost",title:e(N)?"Copied!":"Copy git command",onClick:B},null,8,["icon","title"])])])])]),_:1})):!e(_).currentCommit||!e(_).lastGreenCommit?(s(),a("div",vl,[o(m,{name:"i-lucide-git-branch",class:"size-4 shrink-0"}),P[4]||(P[4]=$(" No commit info available — enable ",-1)),P[5]||(P[5]=n("code",{class:"font-mono text-xs"},"collectScmInfo: true",-1)),P[6]||(P[6]=$(" in the reporter to see commit ranges ",-1))])):k("",!0),e(_).metadataDiff&&e(_).metadataDiff.length>0?(s(),w(U,{key:4,ui:{body:"p-0 sm:p-0"}},{default:i(()=>[n("div",kl,[o(m,{name:"i-lucide-sliders-horizontal",class:"size-4"}),P[7]||(P[7]=$(" What changed between runs ",-1))]),n("div",bl,[n("table",wl,[P[8]||(P[8]=n("thead",null,[n("tr",{class:"text-xs text-gray-500 uppercase tracking-wider border-b border-default"},[n("th",{class:"text-left px-4 py-2 font-medium w-32"},"Field"),n("th",{class:"text-left px-4 py-2 font-medium"},"Last passing"),n("th",{class:"text-left px-4 py-2 font-medium"},"This run")])],-1)),n("tbody",null,[(s(!0),a(G,null,ae(e(_).metadataDiff,v=>(s(),a("tr",{key:v.key,class:"border-b last:border-b-0 border-default"},[n("td",_l,l(v.label),1),n("td",$l,[v.before?(s(),a("span",Cl,l(v.before),1)):(s(),a("span",Tl,"—"))]),n("td",Rl,[v.after?(s(),a("span",zl,l(v.after),1)):(s(),a("span",Il,"—"))])]))),128))])])])]),_:1})):k("",!0)])):(s(),w(A,{key:1,icon:"i-lucide-history",text:"No previous passing run found for this project"}))])}}}),Fl=Object.assign(Sl,{__name:"RegressionContext"}),Dl={class:"flex items-center justify-between mb-2"},jl={class:"text-xs text-gray-500 inline-flex items-center gap-1"},Pl={class:"flex items-center gap-1"},Bl={class:"p-2 flex flex-col gap-2 min-w-56"},Nl=ge({__name:"TimelineHeader",props:{workerCount:{},shardTotal:{},testCount:{},hookCount:{},waitCount:{},spanTypes:{},live:{type:Boolean}},emits:["reset","toggleSpan"],setup(t){return(h,C)=>{const F=je,R=Re,c=Tt,_=pt;return s(),a("div",Dl,[n("span",jl,[n("span",null,[$(l(t.workerCount)+" worker"+l(t.workerCount>1?"s":"")+" ",1),t.shardTotal&&t.shardTotal>1?(s(),a(G,{key:0},[$(" · "+l(t.shardTotal)+" shard"+l(t.shardTotal>1?"s":""),1)],64)):k("",!0),$(" · "+l(t.testCount)+" tests ",1),t.hookCount>0?(s(),a(G,{key:1},[$(" · "+l(t.hookCount)+" hooks ",1)],64)):k("",!0),t.waitCount>0?(s(),a(G,{key:2},[$(" · "+l(t.waitCount)+" waits ",1)],64)):k("",!0)]),o(F,{topic:"run.timeline"})]),n("div",Pl,[t.spanTypes.length>1?(s(),w(_,{key:0,content:{align:"end"}},{content:i(()=>[n("div",Bl,[(s(!0),a(G,null,ae(t.spanTypes,u=>(s(),w(c,{key:u.key,"model-value":u.checked,label:u.label,"onUpdate:modelValue":T=>h.$emit("toggleSpan",u.key,T===!0)},null,8,["model-value","label","onUpdate:modelValue"]))),128))])]),default:i(()=>[o(R,{size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-list-filter","trailing-icon":"i-lucide-chevron-down",title:"Show or hide span types"},{default:i(()=>[...C[1]||(C[1]=[$(" Span types ",-1)])]),_:1})]),_:1})):k("",!0),t.live?k("",!0):(s(),w(R,{key:1,size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-rotate-ccw",onClick:C[0]||(C[0]=u=>h.$emit("reset"))},{default:i(()=>[...C[2]||(C[2]=[$(" Reset view ",-1)])]),_:1}))])])}}}),Ml=Object.assign(Nl,{__name:"TimelineHeader"}),Ve={barHeight:24,rowGap:8,labelWidth:80,sidePadding:16,axisHeight:28,get rowHeight(){return this.barHeight+this.rowGap}},Al={passed:"#16a34a",failed:"#dc2626",timedOut:"#ea580c",running:"#2563eb",initialising:"#2563eb",skipped:"#9ca3af",cancelled:"#a1a1aa",interrupted:"#ea580c",flaky:"#ca8a04"},Se={fill:"#facc15",stroke:"#ca8a04",swatch:"#f59e0b"};function Xe(t){return Al[t]||"#a1a1aa"}function Pt(t){return Xe(t)+"66"}function Bt(t){return Xe(t)}function Ge(t){return t<1e3?`${t}ms`:t<6e4?`${(t/1e3).toFixed(1)}s`:`${Math.floor(t/6e4)}m ${Math.floor(t%6e4/1e3)}s`}const Ul=["y","width","height"],Ll=["y1","x2","y2"],El=["x1","y1","x2","y2"],Ol=["x1","y1","x2","y2"],Kl=["x","y"],Wl=["y"],Hl=ge({__name:"TimelineGrid",props:{workerRows:{},shardGroups:{},tickMarks:{},contentWidth:{},shardTotal:{}},setup(t){const{barHeight:h,rowGap:C,axisHeight:F,rowHeight:R}=Ve;return(c,_)=>(s(),a("g",null,[(s(!0),a(G,null,ae(t.workerRows,(u,T)=>(s(),a("rect",{key:"bg-"+T,x:0,y:T*e(R)+e(F),width:t.contentWidth,height:e(R),class:q(T%2===1?"fill-black/[0.03] dark:fill-white/[0.03]":"fill-transparent")},null,10,Ul))),128)),(s(!0),a(G,null,ae(t.shardGroups.slice(1),u=>(s(),a("line",{key:"shard-sep-"+u.rowRange[0],x1:0,y1:u.rowRange[0]*e(R)+e(F)-e(C)/2,x2:t.contentWidth,y2:u.rowRange[0]*e(R)+e(F)-e(C)/2,stroke:"currentColor","stroke-dasharray":"4,3",class:"stroke-gray-400 dark:stroke-gray-500"},null,8,Ll))),128)),n("line",{x1:e(Ve).labelWidth,y1:e(F),x2:t.contentWidth,y2:e(F),stroke:"currentColor",class:"stroke-gray-300 dark:stroke-gray-600"},null,8,El),(s(!0),a(G,null,ae(t.tickMarks,u=>(s(),a("g",{key:u.ms},[n("line",{x1:u.x,y1:e(F)-4,x2:u.x,y2:e(F),stroke:"currentColor",class:"stroke-gray-300 dark:stroke-gray-600"},null,8,Ol),n("text",{x:u.x,y:e(F)-8,"text-anchor":"middle",class:"fill-gray-400 text-[10px]"},l(u.label),9,Kl)]))),128)),(s(!0),a(G,null,ae(t.workerRows,(u,T)=>(s(),a("text",{key:"label-"+T,x:6,y:T*e(R)+e(F)+e(h)/2+4,class:"fill-gray-500 text-[11px] font-medium"},l(u.shardIndex!=null&&t.shardTotal&&t.shardTotal>1?`S${u.shardIndex} W${u.workerIndex}`:`Worker ${u.workerIndex}`),9,Wl))),128))]))}}),Vl=Object.assign(Hl,{__name:"TimelineGrid"}),Gl=["x","y","width","height","fill","stroke"],Xl=["x","y"],ql=["x","y","width","height","fill","stroke"],Yl=["x1","y1","x2","y2","stroke"],Jl=["x1","y1","x2","y2","stroke"],Zl=["x","y"],Ql=["cx","cy"],ei=["cx","cy"],ti=["x","y","width","height","fill"],si=["x","y"],ni=ge({__name:"TimelineBar",props:{item:{},x:{},y:{},width:{}},emits:["select","hover","move","leave"],setup(t,{emit:h}){const C=t,F=h,{barHeight:R}=Ve,c=D(()=>["setup","hook","fixture"].includes(C.item.kind)),_=D(()=>C.item.testCaseId!=null),u=D(()=>_.value?"cursor-pointer":"cursor-default");function T(){C.item.testCaseId!=null&&F("select",C.item.testCaseId)}return(E,N)=>(s(),a("g",{class:"timeline-bar-group",onMouseenter:N[0]||(N[0]=B=>F("hover",t.item,B)),onMousemove:N[1]||(N[1]=B=>F("move",B)),onMouseleave:N[2]||(N[2]=B=>F("leave"))},[c.value?(s(),a(G,{key:0},[n("rect",{x:t.x,y:t.y,width:t.width,height:e(R),rx:3,ry:3,fill:e(Pt)(t.item.status),stroke:e(Bt)(t.item.status),"stroke-width":"1","stroke-dasharray":"3,2",class:q(["timeline-bar-shape transition-opacity duration-100 opacity-80",u.value]),onClick:T},null,10,Gl),t.width>60?(s(),a("text",{key:0,x:t.x+4,y:t.y+e(R)/2+4,class:"fill-gray-600 dark:fill-gray-300 text-[9px] font-medium pointer-events-none"},l(t.item.title),9,Xl)):k("",!0)],64)):t.item.kind==="wait"?(s(),a(G,{key:1},[n("rect",{x:t.x,y:t.y-3,width:t.width,height:e(R)+6,rx:2,ry:2,fill:e(Se).fill,"fill-opacity":"0.28",stroke:e(Se).stroke,"stroke-width":"1.5",class:q(["timeline-bar-shape transition-opacity duration-100 opacity-90",u.value]),onClick:T},null,10,ql),t.width>4?(s(),a("line",{key:0,x1:t.x+1,y1:t.y-3,x2:t.x+t.width-1,y2:t.y+e(R)+3,stroke:e(Se).stroke,"stroke-width":"1","stroke-opacity":"0.25",class:"pointer-events-none"},null,8,Yl)):k("",!0),t.width>4?(s(),a("line",{key:1,x1:t.x+t.width-1,y1:t.y-3,x2:t.x+1,y2:t.y+e(R)+3,stroke:e(Se).stroke,"stroke-width":"1","stroke-opacity":"0.25",class:"pointer-events-none"},null,8,Jl)):k("",!0),t.width>50?(s(),a("text",{key:2,x:t.x+4,y:t.y+e(R)/2+4,class:"fill-yellow-800 dark:fill-yellow-200 text-[9px] font-bold pointer-events-none"}," wasted "+l(e(Ge)(t.item.duration)),9,Zl)):k("",!0)],64)):t.item.status==="running"?(s(),a(G,{key:2},[n("circle",{cx:t.x+6,cy:t.y+e(R)/2,r:"3",fill:"#2563eb",filter:"url(#glow)",class:"timeline-bar-shape transition-opacity duration-100 cursor-pointer opacity-90",onClick:T},null,8,Ql),n("circle",{cx:t.x+6,cy:t.y+e(R)/2,r:"5",fill:"none",stroke:"#2563eb","stroke-width":"1.5","stroke-opacity":"0.4",filter:"url(#glow)",class:"timeline-bar-shape transition-opacity duration-100 cursor-pointer opacity-90",onClick:T},null,8,ei)],64)):(s(),a(G,{key:3},[n("rect",{x:t.x,y:t.y,width:t.width,height:e(R),rx:3,ry:3,fill:e(Xe)(t.item.status),class:"timeline-bar-shape transition-opacity duration-100 cursor-pointer opacity-90",onClick:T},null,8,ti),t.width>40?(s(),a("text",{key:0,x:t.x+4,y:t.y+e(R)/2+4,class:"fill-white text-[10px] font-medium pointer-events-none"},l(e(Ge)(t.item.duration)),9,si)):k("",!0)],64))],32))}}),ai=Object.assign(ni,{__name:"TimelineBar"}),oi={class:"flex items-center gap-2 mb-1"},li={class:"font-medium text-gray-900 dark:text-white max-w-64 truncate"},ii={class:"flex items-center gap-3 text-gray-500"},ri={class:"capitalize"},ui={key:0,class:"italic truncate max-w-48"},ci=340,di=ge({__name:"TimelineTooltip",props:{item:{},pos:{}},setup(t){const h=t,C=D(()=>{const R=h.item;return R?R.kind==="test"?{backgroundColor:Xe(R.status)}:R.kind==="wait"?{backgroundColor:Se.swatch+"66",borderColor:Se.swatch}:{backgroundColor:Pt(R.status),borderColor:Bt(R.status)}:{}}),F=D(()=>{const{x:R,y:c}=h.pos;if(typeof window>"u")return{left:`${R+12}px`,top:`${c-10}px`};const _=R+12+ci>window.innerWidth,u=c+90>window.innerHeight;return{left:_?void 0:`${R+12}px`,right:_?`${window.innerWidth-R+12}px`:void 0,top:u?void 0:`${c-10}px`,bottom:u?`${window.innerHeight-c+10}px`:void 0}});return(R,c)=>(s(),w(ns,{to:"body"},[t.item?(s(),a("div",{key:0,class:"fixed z-[9999] pointer-events-none rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 px-3 py-2 text-xs shadow-lg",style:ye(F.value)},[n("div",oi,[n("span",{class:q(["inline-block size-2.5 rounded-full shrink-0",{"border border-dashed":t.item.kind!=="test"}]),style:ye(C.value)},null,6),n("span",li,[t.item.kind!=="test"?(s(),a("span",{key:0,class:q(["uppercase text-[10px] tracking-wider mr-1",t.item.kind==="wait"?"text-amber-500":"text-gray-500"])},l(t.item.kind),3)):k("",!0),$(" "+l(t.item.title),1)])]),n("div",ii,[n("span",ri,l(t.item.status),1),n("span",null,l(e(Ge)(t.item.duration)),1),n("span",null,"Worker "+l(t.item.workerIndex),1),t.item.parentTitle?(s(),a("span",ui," for "+l(t.item.parentTitle),1)):k("",!0)])],4)):k("",!0)]))}}),mi=Object.assign(di,{__name:"TimelineTooltip"}),fi=["Wait for timeout*","*waitForTimeout*"];function gi(t){const h=t.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${h}$`,"i")}const mt=new Map;function pi(t){let h=mt.get(t);return h||(h=gi(t),mt.set(t,h)),h}function xi(t,h){if(!h||h.length===0)return!1;const C=t.title??"",F=t.location??"";for(const R of h){const c=pi(R);if(c.test(C)||F&&c.test(F))return!0}return!1}function yi(t){const h=new Map;for(const C of t){const F=C.workerIndex;if(F==null||F<0)continue;const R=C.shardIndex??null,c=`${R??"null"}|${F}`;let _=h.get(c);_||(_={shardIndex:R,workerIndex:F,cases:[]},h.set(c,_)),_.cases.push(C)}return[...h.values()].sort((C,F)=>{const R=C.shardIndex??1/0,c=F.shardIndex??1/0;return R!==c?R-c:C.workerIndex-F.workerIndex})}function We(t){if(t==null)return null;if(typeof t=="number")return Number.isFinite(t)?t:null;if(t instanceof Date)return t.getTime();const h=new Date(t).getTime();return Number.isNaN(h)?null:h}function hi(t,h){return t.category==="wait"?xi(t,h)?"wait":null:t.category==="hook"||t.category==="fixture"?t.category:null}function vi(t){const h=D(()=>t.wastedPatterns&&t.wastedPatterns.length>0?t.wastedPatterns:fi),C=D(()=>yi(t.testCases)),F=D(()=>{const u=C.value,T=h.value;let E=1/0;for(const H of u)for(const A of H.cases){const m=We(A.startedAt);m!=null&&m>0&&(E=Math.min(E,m))}const N=Number.isFinite(E),B=H=>Math.max(0,(We(H)??E)-E),S=[],P=new Map;if(u.forEach((H,A)=>{const m=[],I=N?H.cases:[...H.cases].sort((d,f)=>(We(d.startedAt)??0)-(We(f.startedAt)??0));let x=0;for(const d of I){const f=d.duration??1e3,U=N?B(d.startedAt):x;m.push({key:`t${d.id}`,kind:"test",testCaseId:d.id,title:d.title,status:d.status,workerIndex:H.workerIndex,start:U,duration:f,rowIndex:A}),x=U+f,(d.stepEvents??[]).forEach((M,y)=>{const J=hi(M,T);if(!J)return;const ee=M.duration||0,ne=N?B(M.startedAt):x;m.push({key:`s${d.id}:${y}`,kind:J,testCaseId:d.id,title:M.title,status:M.status||"passed",workerIndex:H.workerIndex,start:ne,duration:ee,rowIndex:A,parentTitle:d.title}),x=ne+ee})}m.sort((d,f)=>d.start-f.start),S.push(...m),P.has(H.workerIndex)||P.set(H.workerIndex,x)}),t.setupSteps&&t.setupSteps.length>0){const H=new Map;u.forEach((A,m)=>{H.has(A.workerIndex)||H.set(A.workerIndex,m)}),t.setupSteps.forEach((A,m)=>{const I=A.workerIndex;if(I==null||I<0)return;const x=H.get(I);if(x==null)return;const d=A.duration||0;let f;N?f=B(A.startedAt):(f=P.get(I)??0,P.set(I,f+d)),S.push({key:`setup${I}:${m}`,kind:"setup",testCaseId:null,title:`[Setup] ${A.title}`,status:A.status||"passed",workerIndex:I,start:f,duration:d,rowIndex:x,parentTitle:null})})}return S}),R=D(()=>C.value.map(u=>({shardIndex:u.shardIndex,workerIndex:u.workerIndex}))),c=D(()=>{const u=[];for(let T=0;T<R.value.length;T++){const E=R.value[T],N=u[u.length-1];!N||N.shardIndex!==E.shardIndex?u.push({shardIndex:E.shardIndex,rowRange:[T,T]}):N.rowRange[1]=T}return u}),_=D(()=>{let u=0;for(const T of F.value)u=Math.max(u,T.start+T.duration);return u||6e4});return{timelineData:F,workerRows:R,shardGroups:c,maxTime:_}}const ft=1.12,ki=10,bi=100,Qe=[10,20,50,100,200,500,1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5,9e5,18e5,36e5];function wi(t){const{containerRef:h,maxTime:C,rowCount:F,hasData:R,live:c}=t,{labelWidth:_,sidePadding:u,axisHeight:T,rowHeight:E}=Ve,N=K(1),B=K(0),S=K(!1),P=K(0),H=K(0),A=D(()=>.5*N.value),m=D(()=>C.value*A.value+_+u),I=D(()=>F.value*E+T);function x(b){return b.start*A.value+_}function d(b){return Math.max(b.duration*A.value,3)}function f(b){return b.rowIndex*E+T}function U(){const b=h.value?.clientWidth;if(!b||C.value<=0)return 1;const V=(b-_)/C.value;return Math.min(1,V/.5)}function v(){const b=U();b>0&&(N.value=b,B.value=0)}function M(b){if(!h.value)return b;const V=h.value.clientWidth;return m.value<=V?0:Math.max(V-m.value,Math.min(0,b))}function y(b,V){const se=Math.max(U(),Math.min(ki,b)),te=se/N.value;N.value=se,B.value=M(V-(V-B.value)*te)}const J=D(()=>{const b=bi/A.value;let V=Qe.find(te=>te>=b)??Qe[Qe.length-1];for(;C.value/V>1e3;)V*=2;const se=[];for(let te=0;te<=C.value;te+=V)se.push({ms:te,x:te*A.value+_,label:Ge(te)});return se});function ee(b){if(c())return;const V=b.deltaY>0?1/ft:ft,se=h.value?.getBoundingClientRect();y(N.value*V,se?b.clientX-se.left:0)}const ne=4,Q=new Map;let ie=null,O=0,g=1,z=0;function re(b,V){ie=b,P.value=V,H.value=B.value}function p(b){if(!c()&&!(b.pointerType==="mouse"&&b.button!==0)){if(Q.set(b.pointerId,{x:b.clientX,y:b.clientY}),Q.size===1)re(b.pointerId,b.clientX);else if(Q.size===2){ie=null,S.value=!1;for(const xe of Q.keys())h.value?.setPointerCapture?.(xe);const[V,se]=[...Q.values()];O=Math.hypot(V.x-se.x,V.y-se.y)||1,g=N.value;const te=h.value?.getBoundingClientRect();z=(V.x+se.x)/2-(te?.left??0)}b.preventDefault()}}function j(b){if(!(c()||!Q.has(b.pointerId))){if(Q.set(b.pointerId,{x:b.clientX,y:b.clientY}),Q.size>=2){const[V,se]=[...Q.values()],te=Math.hypot(V.x-se.x,V.y-se.y)||1;y(g*(te/O),z);return}S.value?B.value=M(H.value+(b.clientX-P.value)):ie===b.pointerId&&Math.abs(b.clientX-P.value)>ne&&(h.value?.setPointerCapture?.(b.pointerId),S.value=!0,B.value=M(H.value+(b.clientX-P.value)))}}function Y(b){if(Q.delete(b.pointerId),ie===b.pointerId&&(ie=null),h.value?.releasePointerCapture?.(b.pointerId),Q.size===1){const[V]=[...Q.entries()];re(V[0],V[1].x)}else Q.size===0&&(S.value=!1)}function oe(){v()}let Z=null;return as(()=>{De(v),h.value&&(Z=new ResizeObserver(()=>v()),Z.observe(h.value))}),ht(()=>{Z?.disconnect()}),me(()=>[c(),R.value,C.value,F.value],([b,V])=>{b&&V&&De(v)}),{panX:B,isPanning:S,pxPerMs:A,contentWidth:m,contentHeight:I,getBarX:x,getBarWidth:d,getBarTop:f,tickMarks:J,onWheel:ee,onPointerDown:p,onPointerMove:j,onPointerUp:Y,resetView:oe}}const _i={key:0,class:"relative select-none"},$i=["width","height"],Ci={key:1,class:"text-center py-10 text-gray-500"},Ti=ge({__name:"WorkersTimeline",props:{testCases:{},setupSteps:{},shardTotal:{},live:{type:Boolean},wastedPatterns:{}},emits:["selectTestCase"],setup(t,{emit:h}){const C=t,F=h,{timelineData:R,workerRows:c,shardGroups:_,maxTime:u}=vi(C),T=K(null),E=D(()=>c.value.length),N=D(()=>R.value.length>0),{panX:B,isPanning:S,contentWidth:P,contentHeight:H,getBarX:A,getBarWidth:m,getBarTop:I,tickMarks:x,onWheel:d,onPointerDown:f,onPointerMove:U,onPointerUp:v,resetView:M}=wi({containerRef:T,maxTime:u,rowCount:E,hasData:N,live:()=>C.live}),y=D(()=>R.value.filter(Z=>Z.kind==="test").length),J=D(()=>R.value.filter(Z=>Z.kind!=="test"&&Z.kind!=="wait").length),ee=D(()=>R.value.filter(Z=>Z.kind==="wait").length),ne=["test","setup","hook","fixture","wait"],Q={test:"Tests",setup:"Setup (beforeAll/afterAll)",hook:"Hooks",fixture:"Fixtures",wait:"Wasted waits"},ie=K({}),O=D(()=>R.value.filter(Z=>!ie.value[Z.kind])),g=D(()=>{const Z=new Set(R.value.map(b=>b.kind));return ne.filter(b=>Z.has(b)).map(b=>({key:b,label:Q[b],checked:!ie.value[b]}))});function z(Z,b){ie.value={...ie.value,[Z]:!b}}const re=K(null),p=K({x:0,y:0});me(O,Z=>{re.value&&(re.value=Z.find(b=>b.key===re.value.key)??null)});function j(Z,b){re.value=Z,p.value={x:b.clientX,y:b.clientY}}function Y(Z){p.value={x:Z.clientX,y:Z.clientY}}function oe(){re.value=null}return(Z,b)=>{const V=Ml,se=Vl,te=ai,xe=mi,we=he;return e(R).length>0?(s(),a("div",_i,[o(V,{"worker-count":e(c).length,"shard-total":t.shardTotal,"test-count":y.value,"hook-count":J.value,"wait-count":ee.value,"span-types":g.value,live:t.live,onToggleSpan:z,onReset:e(M)},null,8,["worker-count","shard-total","test-count","hook-count","wait-count","span-types","live","onReset"]),n("div",{ref_key:"containerRef",ref:T,class:q(["relative overflow-hidden rounded-lg border border-gray-200 dark:border-gray-700 touch-pan-y",{"cursor-grab":!e(S),"cursor-grabbing":e(S)}]),style:ye({height:e(H)+"px"}),onWheel:b[1]||(b[1]=Ne((...le)=>e(d)&&e(d)(...le),["prevent"])),onPointerdown:b[2]||(b[2]=(...le)=>e(f)&&e(f)(...le)),onPointermove:b[3]||(b[3]=(...le)=>e(U)&&e(U)(...le)),onPointerup:b[4]||(b[4]=(...le)=>e(v)&&e(v)(...le)),onPointercancel:b[5]||(b[5]=(...le)=>e(v)&&e(v)(...le)),onPointerleave:b[6]||(b[6]=(...le)=>e(v)&&e(v)(...le))},[(s(),a("svg",{class:"overflow-visible",style:ye({transform:`translateX(${e(B)}px)`}),width:e(P),height:e(H)},[b[7]||(b[7]=n("defs",null,[n("filter",{id:"glow"},[n("feGaussianBlur",{stdDeviation:"2.5",result:"blur"}),n("feMerge",null,[n("feMergeNode",{in:"blur"}),n("feMergeNode",{in:"SourceGraphic"})])])],-1)),o(se,{"worker-rows":e(c),"shard-groups":e(_),"tick-marks":e(x),"content-width":e(P),"shard-total":t.shardTotal},null,8,["worker-rows","shard-groups","tick-marks","content-width","shard-total"]),(s(!0),a(G,null,ae(O.value,le=>(s(),w(te,{key:le.key,item:le,x:e(A)(le),y:e(I)(le),width:e(m)(le),onSelect:b[0]||(b[0]=_e=>F("selectTestCase",_e)),onHover:j,onMove:Y,onLeave:oe},null,8,["item","x","y","width"]))),128))],12,$i))],38),o(xe,{item:re.value,pos:p.value},null,8,["item","pos"])])):(s(),a("div",Ci,[o(we,{name:"i-lucide-rows-3",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),b[8]||(b[8]=n("p",null,"No worker data available for this run.",-1))]))}}}),Ri=Object.assign(Ti,{__name:"WorkersTimeline"}),zi={key:0,class:"space-y-4"},Ii={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},Si={class:"flex items-center gap-2 py-1.5"},Fi={class:"font-medium"},Di={key:0,class:"flex"},ji={key:1,class:"flex items-center justify-center py-6 text-gray-500 gap-2"},Pi={class:"flex flex-wrap gap-2 mt-1"},Bi={class:"flex flex-wrap gap-4 text-sm"},Ni={key:3,class:"text-sm text-gray-500"},Mi={class:"flex flex-wrap gap-4 text-sm"},Ai={key:0,class:"text-gray-400"},Ui={key:0,class:"text-gray-400"},Li={key:1,class:"text-gray-400"},Ei={key:1,class:"text-gray-400"},Oi={key:0,class:"text-gray-400"},Ki={key:0,class:"text-gray-400"},Wi={key:4,class:"text-center py-8 text-gray-500"},Hi={key:5,class:"text-center py-8 text-gray-500"},Vi={key:1,class:"text-center py-10 text-gray-500"},Gi=ge({__name:"RunCompare",props:{testRun:{}},setup(t){const h=t,F=Le().params.id,R=K(null),c=K([]),_=D(()=>h.testRun?.status==="running"||h.testRun?.status==="finalizing");me(()=>h.testRun?.projectId,async x=>{if(!(!x||_.value)){try{R.value=await $fetch(`/api/projects/${x}`)}catch(d){console.error("Failed to fetch project for RunCompare",d)}try{const d=await $fetch(`/api/projects/${x}/markers`);c.value=d.markers??[]}catch{}}},{immediate:!0});const u=D(()=>{if(!B.value||!h.testRun)return[];const x=new Date(B.value.startTime).getTime(),d=new Date(h.testRun.startTime).getTime(),f=Math.min(x,d),U=Math.max(x,d),v=new Set([B.value.environment,h.testRun.environment].filter(M=>M!=null));return c.value.filter(M=>{const y=new Date(M.occurredAt).getTime();return y<=f||y>=U?!1:M.environment==null||v.has(M.environment)})}),T=D(()=>R.value?.testRuns?R.value.testRuns.filter(x=>x.id!==Number(F)).slice(0,50).map(x=>({label:`Run #${x.id} — ${bt(x.startTime,{dateOnly:!0})} (${x.status})`,value:x.id})):[]),E=D(()=>{if(!R.value?.testRuns)return null;const x=[...R.value.testRuns].sort((f,U)=>new Date(U.startTime).getTime()-new Date(f.startTime).getTime()),d=x.findIndex(f=>f.id===Number(F));return d>=0&&d<x.length-1?x[d+1].id:null}),N=K(void 0),B=K(null),S=K(!1);me(N,async x=>{if(!x?.value){B.value=null;return}S.value=!0;try{B.value=await $fetch(`/api/test-runs/${x.value}`)}catch{}finally{S.value=!1}});function P(){if(E.value){const x=T.value.find(d=>d.value===E.value);x&&(N.value=x)}}const H=D(()=>h.testRun??null),{comparisonData:A,comparisonSummary:m}=Ms(B,H),I=[{accessorKey:"title",header:ce("Test case")},{accessorKey:"statusA",header:ce("Status A")},{accessorKey:"statusB",header:ce("Status B")},{accessorKey:"durationA",header:ce("Duration A")},{accessorKey:"durationB",header:ce("Duration B")},{accessorKey:"delta",header:ce("Delta")},{accessorKey:"percentChange",header:ce("Change")}];return(x,d)=>{const f=Ps,U=Bs,v=Re,M=he,y=kt,J=Ns,ee=ve,ne=Ee,Q=ot,ie=Ft;return s(),a("div",null,[t.testRun&&!_.value?(s(),a("div",zi,[n("div",Ii,[n("div",null,[d[1]||(d[1]=n("label",{class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Run A (baseline)",-1)),o(f,{modelValue:N.value,"onUpdate:modelValue":d[0]||(d[0]=O=>N.value=O),items:T.value,placeholder:"Select a baseline run..."},null,8,["modelValue","items"])]),n("div",null,[d[2]||(d[2]=n("label",{class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Run B (this run)",-1)),n("div",Si,[o(U,{status:t.testRun.status},null,8,["status"]),n("span",Fi,"#"+l(t.testRun.id),1)])])]),E.value?(s(),a("div",Di,[o(v,{icon:"i-lucide-arrow-left-right",size:"sm",variant:"outline",label:"Compare with previous run",onClick:P})])):k("",!0),S.value?(s(),a("div",ji,[o(M,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),d[3]||(d[3]=n("span",null,"Loading baseline data...",-1))])):u.value.length>0?(s(),w(J,{key:2,color:"warning",variant:"subtle",icon:"i-lucide-milestone",title:`${u.value.length} timeline marker${u.value.length>1?"s":""} between these runs`},{description:i(()=>[n("div",Pi,[(s(!0),a(G,null,ae(u.value,O=>(s(),w(y,{key:O.id,marker:O,size:"sm"},null,8,["marker"]))),128))])]),_:1},8,["title"])):B.value&&e(A).length>0?(s(),a(G,{key:3},[n("div",Bi,[d[4]||(d[4]=n("span",{class:"text-xs font-semibold text-gray-500 uppercase tracking-wider mr-1"},"Status",-1)),e(m).newFailures>0?(s(),w(ee,{key:0,color:"error",variant:"soft",size:"lg"},{default:i(()=>[$(l(e(m).newFailures)+" new failure"+l(e(m).newFailures>1?"s":""),1)]),_:1})):k("",!0),e(m).recovered>0?(s(),w(ee,{key:1,color:"success",variant:"soft",size:"lg"},{default:i(()=>[$(l(e(m).recovered)+" recovered ",1)]),_:1})):k("",!0),e(m).stillFailing>0?(s(),w(ee,{key:2,color:"warning",variant:"soft",size:"lg"},{default:i(()=>[$(l(e(m).stillFailing)+" still failing ",1)]),_:1})):k("",!0),e(m).newFailures===0&&e(m).recovered===0&&e(m).stillFailing===0?(s(),a("span",Ni,"No status changes")):k("",!0)]),n("div",Mi,[d[5]||(d[5]=n("span",{class:"text-xs font-semibold text-gray-500 uppercase tracking-wider mr-1"},"Duration changes",-1)),e(m).regressed>0?(s(),w(ee,{key:0,color:"error",variant:"soft",size:"lg"},{default:i(()=>[$(l(e(m).regressed)+" regressed ",1)]),_:1})):k("",!0),e(m).improved>0?(s(),w(ee,{key:1,color:"success",variant:"soft",size:"lg"},{default:i(()=>[$(l(e(m).improved)+" improved ",1)]),_:1})):k("",!0),o(ee,{color:"neutral",variant:"soft",size:"lg"},{default:i(()=>[$(l(e(m).unchanged)+" unchanged ",1)]),_:1})]),o(ie,{"min-width":"48rem",bleed:!1},{default:i(()=>[o(Q,{data:e(A),columns:I,ui:{base:"table-fixed border-separate border-spacing-0 min-w-[48rem]",thead:"[&>tr]:bg-elevated/50 [&>tr]:after:content-none",tbody:"[&>tr]:last:[&>td]:border-b-0",th:"first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",td:"border-b border-default"}},{"statusA-cell":i(({row:O})=>[O.original.statusA?(s(),w(ee,{key:1,color:("getStatusColor"in x?x.getStatusColor:e(st))(O.original.statusA),variant:"subtle",class:"capitalize"},{default:i(()=>[$(l(O.original.statusA),1)]),_:2},1032,["color"])):(s(),a("span",Ai,"—"))]),"statusB-cell":i(({row:O})=>[O.original.statusB?(s(),w(ee,{key:1,color:("getStatusColor"in x?x.getStatusColor:e(st))(O.original.statusB),variant:"subtle",class:"capitalize"},{default:i(()=>[$(l(O.original.statusB),1)]),_:2},1032,["color"])):(s(),a("span",Ui,"—"))]),"durationA-cell":i(({row:O})=>[O.original.durationA!==null?(s(),w(ne,{key:0,ms:O.original.durationA},null,8,["ms"])):(s(),a("span",Li,"—"))]),"durationB-cell":i(({row:O})=>[O.original.durationB!==null?(s(),w(ne,{key:0,ms:O.original.durationB},null,8,["ms"])):(s(),a("span",Ei,"—"))]),"delta-cell":i(({row:O})=>[O.original.delta===null?(s(),a("span",Oi,"—")):(s(),a("span",{key:1,class:q(O.original.delta>0?"text-red-600":O.original.delta<0?"text-green-600":"text-gray-500")},[$(l(O.original.delta>0?"+":""),1),o(ne,{ms:O.original.delta,"unit-class":"opacity-60"},null,8,["ms"])],2))]),"percentChange-cell":i(({row:O})=>[O.original.percentChange===null?(s(),a("span",Ki,"—")):(s(),a("span",{key:1,class:q(O.original.percentChange>10?"text-red-600 font-medium":O.original.percentChange<-10?"text-green-600 font-medium":"text-gray-500")},l(O.original.percentChange>0?"+":"")+l(O.original.percentChange)+"% ",3))]),_:1},8,["data"])]),_:1})],64)):N.value&&!S.value?(s(),a("div",Wi,[o(M,{name:"i-lucide-git-compare-arrows",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),d[6]||(d[6]=n("p",null,"No comparison data available.",-1))])):(s(),a("div",Hi,[o(M,{name:"i-lucide-arrow-left-right",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),d[7]||(d[7]=n("p",null,"Select a baseline run to compare.",-1))]))])):_.value?(s(),a("div",Vi,[o(M,{name:"i-lucide-git-compare-arrows",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),d[8]||(d[8]=n("p",null,"Comparison is available after the run finishes.",-1))])):k("",!0)])}}}),Xi=Object.assign(Gi,{__name:"RunCompare"}),qi={class:"flex flex-col overflow-hidden"},Yi={key:0,class:"flex-1 flex items-center justify-center text-gray-500 gap-2"},Ji={class:"text-xs font-mono break-all"},Zi={key:0,class:"text-gray-400"},Qi={key:1,class:"text-red-600 font-medium"},er={key:2,class:"flex-1 flex items-center justify-center text-center text-gray-500"},tr=ge({__name:"SlowEndpoints",props:{refreshKey:{}},emits:["endpointsCount"],async setup(t,{emit:h}){let C,F;const c=Le().params.id,_=t,u=h,{data:T,pending:E,refresh:N}=([C,F]=Me(()=>Ae(`/api/test-runs/${c}/network-requests`,{lazy:!0,server:!1},"$DE3r8oSbIq")),C=await C,F(),C);me(T,S=>{u("endpointsCount",S?.length??0)}),me(()=>_.refreshKey,(S,P)=>{S!==P&&S!==void 0&&N()});const B=[{accessorKey:"method",header:ce("Method")},{accessorKey:"route",header:ce("Route")},{accessorKey:"count",header:ce("Calls")},{accessorKey:"avgDuration",header:ce("Avg")},{accessorKey:"p90Duration",header:ce("P90")},{accessorKey:"maxDuration",header:ce("Max")},{accessorKey:"errorRate",header:ce("Errors")}];return(S,P)=>{const H=he,A=ve,m=Ee,I=ot;return s(),a("div",qi,[e(E)?(s(),a("div",Yi,[o(H,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),P[0]||(P[0]=n("span",null,"Loading network data...",-1))])):e(T)&&e(T).length>0?(s(),w(I,{key:1,sticky:"",data:e(T),columns:B,class:"flex-1 min-h-0",ui:{base:"table-fixed border-separate border-spacing-0 min-w-[44rem]",thead:"[&>tr]:bg-elevated/50 [&>tr]:after:content-none",tbody:"[&>tr]:last:[&>td]:border-b-0 [&>tr]:hover:bg-gray-50 dark:[&>tr]:hover:bg-gray-900/50",th:"first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",td:"border-b border-default"}},{"method-cell":i(({row:x})=>[o(A,{color:x.original.method==="GET"?"info":x.original.method==="POST"?"success":x.original.method==="PUT"||x.original.method==="PATCH"?"warning":x.original.method==="DELETE"?"error":"neutral",variant:"soft",class:"font-mono text-xs"},{default:i(()=>[$(l(x.original.method),1)]),_:2},1032,["color"])]),"route-cell":i(({row:x})=>[n("code",Ji,l(x.original.route),1)]),"avgDuration-cell":i(({row:x})=>[n("span",{class:q(x.original.avgDuration>1e3?"text-red-600 font-medium":x.original.avgDuration>500?"text-orange-500 font-medium":"")},[o(m,{ms:x.original.avgDuration,"unit-class":"opacity-60"},null,8,["ms"])],2)]),"p90Duration-cell":i(({row:x})=>[n("span",{class:q(x.original.p90Duration>2e3?"text-red-600 font-medium":x.original.p90Duration>1e3?"text-orange-500":"")},[o(m,{ms:x.original.p90Duration,"unit-class":"opacity-60"},null,8,["ms"])],2)]),"errorRate-cell":i(({row:x})=>[x.original.errorRate===0?(s(),a("span",Zi,"0%")):(s(),a("span",Qi,l(x.original.errorRate)+"%",1))]),_:1},8,["data"])):(s(),a("div",er,[o(H,{name:"i-lucide-wifi-off",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),P[1]||(P[1]=n("p",null,[$(" No network request data. Add the "),n("code",{class:"text-xs bg-gray-100 dark:bg-gray-800 px-1 rounded font-mono"},"@piwitests/reporter"),$(" fixtures to your test setup. ")],-1))]))])}}}),sr=Object.assign(tr,{__name:"SlowEndpoints"}),nr={class:"inline-flex items-center justify-center w-5 h-5 rounded-full bg-blue-500/10 hover:bg-blue-500/20 transition-colors ml-1"},ar={key:0,class:"flex items-center gap-2 mb-3 shrink-0"},iu=ge({__name:"[id]",async setup(t){let h,C;const F=Le(),R=os(),c=F.params.id,_=!!xt().public.demoMode,{data:u,refresh:T}=([h,C]=Me(()=>Ae(`/api/test-runs/${c}`,"$D01RBpMFGT")),h=await h,C(),h),E=u.value?.projectId,{data:N,refresh:B}=E?([h,C]=Me(()=>Ae(`/api/projects/${E}/latest-run`,{key:`latest-run-${E}`},"$e4OLHgXNMR")),h=await h,C(),h):{data:K(null),refresh:async()=>{}};As(B);const S=D(()=>N.value?.id??u.value?.project?.latestRunId??null),P=D(()=>N.value?.status??u.value?.project?.latestRunStatus??null),H=D(()=>P.value==="running"||P.value==="finalizing");ls(D(()=>({title:`Test run #${c}${u.value?.project?` — ${u.value.project.name}`:""} — Piwi Dashboard`})));const A=gt(),m=K(!1),I=K(!1),x=D(()=>u.value?.status==="running"||u.value?.status==="finalizing"),d=K(!1),f=K([]),U=new Map,v=K(null);let M=null;const y=K([]);me([x,u],()=>{x.value&&f.value.length>0?y.value=[...f.value]:u.value?.testCases?y.value=u.value.testCases:y.value=[]},{immediate:!0});function J(L){for(const W of L){const ue=`${W.title}@@${W.location}@@${JSON.stringify(W.browser)}`;U.has(ue)||(U.set(ue,!0),f.value=[...f.value,W])}y.value=[...f.value]}let ee=[],ne=null;function Q(){if(ee.length===0)return;const L=ee;ee=[];for(const W of L){const ue=W.data;if(W.type==="init")v.value={totalTests:ue.totalTests,passedTests:ue.passedTests,failedTests:ue.failedTests,skippedTests:ue.skippedTests};else if(W.type==="test-begin"){const X=ue;if(X.stepCategory)continue;const Te=`${X.title}@@${X.location}@@${JSON.stringify(X.browser)}`;U.has(Te)||(U.set(Te,!0),f.value=[...f.value,{id:f.value.length+1,title:X.title,filePath:X.filePath,suitePath:X.suitePath??void 0,status:"running",location:X.location,workerIndex:X.workerIndex??null,startedAt:X.startedAt??Date.now(),browser:X.browser??null}],y.value=[...f.value])}else if(W.type==="test-completed"){const X=ue;if(X.stepCategory)continue;const Te=`${X.title}@@${X.location}@@${JSON.stringify(X.browser)}`;if(U.has(Te)){const Pe=f.value.findIndex(pe=>`${pe.title}@@${pe.location}@@${JSON.stringify(pe.browser)}`===Te);if(Pe>=0){const pe=f.value[Pe],Be=[...f.value];Be[Pe]={...pe,filePath:X.filePath??pe.filePath,suitePath:X.suitePath??pe.suitePath,status:X.status,duration:X.duration,error:X.error,stepEvents:X.stepEvents??pe.stepEvents,wastedTimeMs:X.wastedTimeMs??pe.wastedTimeMs,workerIndex:X.workerIndex??pe.workerIndex,startedAt:X.startedAt?X.startedAt:pe.startedAt,browser:X.browser??pe.browser},f.value=Be,y.value=[...Be]}}else U.set(Te,!0),f.value=[...f.value,{id:f.value.length+1,title:X.title,filePath:X.filePath,suitePath:X.suitePath??void 0,status:X.status,duration:X.duration,location:X.location,error:X.error,stepEvents:X.stepEvents??null,wastedTimeMs:X.wastedTimeMs??null,workerIndex:X.workerIndex??null,startedAt:X.startedAt??void 0,browser:X.browser??null}],y.value=[...f.value]}else W.type==="run-progress"?v.value=ue:W.type==="run-finalizing"?(d.value=!0,v.value=ue):W.type==="run-finished"&&(d.value=!1,p(),T(),be.value++,ie())}}function ie(L=0){_||L>=5||setTimeout(async()=>{await T(),ie(L+1)},1500*(L+1))}function O(L){ee.push(L),ne&&clearTimeout(ne),ne=setTimeout(Q,200)}let g=null;function z(){g||(u.value?.testCases?.length&&J(u.value.testCases),g=Us(L=>{L.scope==="run"&&L.runId===Number(c)?O(L.event):L.scope==="global"&&L.event.runId===Number(c)&&L.event.type==="run-started"&&T()}))}function re(){if(_){z();return}M||x.value&&(u.value?.testCases?.length&&J(u.value.testCases),M=new EventSource(`/api/test-runs/${c}/stream`),M.onmessage=L=>{try{O(JSON.parse(L.data))}catch{}},M.onerror=()=>{})}function p(){M&&(M.close(),M=null),g&&(g(),g=null)}const j=D(()=>x.value||_&&u.value?.status==="initialising");me(j,L=>{L?re():p()},{immediate:!0}),ht(()=>{p()});let Y=null;const oe=K([]);me(y,L=>{Y===null&&(Y=requestAnimationFrame(()=>{oe.value=L,Y=null}))},{immediate:!0});const Z=D(()=>x.value&&v.value?v.value:u.value?{totalTests:u.value.totalTests,passedTests:u.value.passedTests,failedTests:u.value.failedTests,skippedTests:u.value.skippedTests}:null);async function b(){m.value=!1,I.value=!0;try{await $fetch(`/api/test-runs/${c}`,{method:"DELETE"}),A.add({title:"Test run deleted",color:"success"}),await He(`/projects/${u.value?.project?.id}`)}catch(L){const W=L&&typeof L=="object"&&"data"in L?L.data?.message:void 0;A.add({title:"Delete failed",description:W||"An error occurred",color:"error"})}finally{I.value=!1}}const V=K(!1),se=K(""),te=K([]),xe=K("all"),we=D(()=>te.value.length===1?te.value[0]:"all");function le(L){te.value=!L||L==="all"?[]:[L]}const _e=D(()=>u.value?.reports||[]),$e=D(()=>{const L=y.value;return L?L.reduce((W,ue)=>W+(ue.wastedTimeMs??0),0):0}),fe=K("test-cases"),ke=K(null),be=K(0),ze=K(0);function r(){ke.value=null}const Ce=D(()=>u.value&&u.value.failedTests>0),qe=D(()=>{if(!u.value?.testCases)return 0;const L=new Set;for(const W of u.value.testCases)W.failureClusterId!=null&&L.add(W.failureClusterId);return L.size}),Oe=D(()=>{const L=x.value?y.value:u.value?.testCases;if(!L||L.length===0)return 0;const W=new Set;for(const ue of L)ue.workerIndex!=null&&ue.workerIndex>=0&&W.add(ue.workerIndex);return W.size}),lt=D(()=>[{label:`Test cases (${y.value.length})`,icon:"i-lucide-beaker",value:"test-cases",slot:"test-cases"},{label:"Insights",icon:"i-lucide-sparkles",value:"insights",slot:"insights"},{label:Ce.value?`Failure groups (${qe.value})`:"Failure groups",icon:"i-lucide-layers",value:"failure-groups",slot:"failure-groups",disabled:!Ce.value},{label:"Regression",icon:"i-lucide-git-pull-request-arrow",value:"regression",slot:"regression",disabled:!Ce.value},{label:`Timeline${Oe.value>0?` (${Oe.value})`:""}`,icon:"i-lucide-timeline",value:"workers",slot:"workers"},{label:"Compare",icon:"i-lucide-git-compare-arrows",value:"compare",slot:"compare"},{label:`Slow endpoints${ze.value>0?` (${ze.value})`:""}`,icon:"i-lucide-network",value:"endpoints",slot:"endpoints"}]),Nt={"test-cases":"overflow-hidden flex flex-col",endpoints:"overflow-hidden flex flex-col"},it=D(()=>lt.value.filter(L=>!L.disabled).map(L=>L.value));typeof F.query.tab=="string"&&it.value.includes(F.query.tab)&&(fe.value=F.query.tab),me(it,L=>{L.includes(fe.value)||(fe.value="test-cases")}),me(fe,L=>{F.query.tab!==L&&R.replace({query:{...F.query,tab:L}})});const rt=K(null);function Mt(L){fe.value="test-cases",De(()=>{rt.value?.scrollToCase(L)})}function At(L){ke.value=L,fe.value="test-cases"}return(L,W)=>{const ue=Qt,X=Ue,Te=he,Pe=vt,pe=is,Be=rs,Ut=cs,Lt=Mn,Et=ve,Ye=Re,Ot=Pa,Kt=Do,Wt=sl,Ht=Fl,Vt=Ri,Gt=Xi,Xt=sr,qt=xs,Yt=us,Jt=Dt,Zt=yt;return s(),a(G,null,[o(Yt,{id:"test-run-detail"},{header:i(()=>[o(Ut,null,{leading:i(()=>[o(ue),o(pe,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},...e(u)?.project?.id?[{label:e(u).project.label||e(u).project.name||"Project",to:`/projects/${e(u).project.id}`,slot:"project"}]:[{label:"Project"}],{label:`Run #${e(c)}`+(e(u)?.label?` — ${e(u).label}`:"")}]},{project:i(({item:de})=>[o(X,{to:de?.to,class:"text-sm font-medium text-[var(--ui-text-muted)] hover:text-[var(--ui-text)] transition-colors"},{default:i(()=>[$(l(de?.label),1)]),_:2},1032,["to"]),S.value&&S.value!==Number(e(c))?(s(),w(Pe,{key:0,text:H.value?"Go to running run":"Go to latest run"},{default:i(()=>[o(X,{to:`/test-runs/${S.value}`},{default:i(()=>[n("span",nr,[o(Te,{name:"i-lucide-circle-play",class:q(["w-3.5 h-3.5 text-blue-500",{"animate-pulse":H.value}])},null,8,["class"])])]),_:1},8,["to"])]),_:1},8,["text"])):k("",!0)]),_:1},8,["items"])]),right:i(()=>[o(Be,{actions:[{label:"Refresh",icon:"i-lucide-refresh-cw",onClick:()=>e(T)()},{label:"Delete",icon:"i-lucide-trash-2",color:"error",variant:"soft",loading:e(I),onClick:()=>m.value=!0}]},null,8,["actions"])]),_:1})]),body:i(()=>[o(qt,{modelValue:e(fe),"onUpdate:modelValue":W[5]||(W[5]=de=>Ie(fe)?fe.value=de:null),"tab-items":lt.value,"tab-panel-class":Nt},{summary:i(()=>[e(u)?(s(),w(Lt,{key:0,"test-run":e(u),"display-progress":Z.value,"all-reports":_e.value,"show-custom-data":e(V),finalizing:e(d),"active-filter":we.value,"total-wasted-time":$e.value,"onUpdate:showCustomData":W[0]||(W[0]=de=>V.value=de),onFilterStatus:le,onLabelUpdated:e(T)},null,8,["test-run","display-progress","all-reports","show-custom-data","finalizing","active-filter","total-wasted-time","onLabelUpdated"])):k("",!0)]),"tab-test-cases":i(()=>[e(ke)!=null?(s(),a("div",ar,[o(Et,{color:"info",variant:"subtle",size:"sm"},{default:i(()=>[...W[8]||(W[8]=[$(" Filtered by failure group ",-1)])]),_:1}),o(Ye,{size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-x",label:"Clear filter",onClick:r})])):k("",!0),o(Ot,{ref_key:"testCasesListRef",ref:rt,search:e(se),"onUpdate:search":W[1]||(W[1]=de=>Ie(se)?se.value=de:null),"active-statuses":e(te),"onUpdate:activeStatuses":W[2]||(W[2]=de=>Ie(te)?te.value=de:null),"browser-filter":e(xe),"onUpdate:browserFilter":W[3]||(W[3]=de=>Ie(xe)?xe.value=de:null),"test-cases":e(y),suites:e(u)?.suites??[],"is-live":x.value,"failure-cluster-filter":e(ke),"project-key":e(u)?.projectId,"project-name":e(u)?.project?.name,class:"flex-1 min-h-0"},null,8,["search","active-statuses","browser-filter","test-cases","suites","is-live","failure-cluster-filter","project-key","project-name"])]),"tab-insights":i(()=>[o(Kt,{"test-run-id":Number(e(c)),"run-status":e(u)?.status??"","refresh-key":e(be),class:"flex-1 min-h-0 p-4"},null,8,["test-run-id","run-status","refresh-key"])]),"tab-failure-groups":i(()=>[o(Wt,{"refresh-key":e(be),onSelectCluster:At},null,8,["refresh-key"])]),"tab-regression":i(()=>[o(Ht,{"refresh-key":e(be)},null,8,["refresh-key"])]),"tab-workers":i(()=>[o(Vt,{"test-cases":e(oe),"setup-steps":e(u)?.setupSteps??null,"shard-total":e(u)?.shardTotal??null,live:x.value,"wasted-patterns":e(u)?.wastedWaitPatterns??null,onSelectTestCase:Mt},null,8,["test-cases","setup-steps","shard-total","live","wasted-patterns"])]),"tab-compare":i(()=>[o(Gt,{"test-run":e(u)},null,8,["test-run"])]),"tab-endpoints":i(()=>[o(Xt,{"refresh-key":e(be),class:"flex-1 min-h-0",onEndpointsCount:W[4]||(W[4]=de=>ze.value=de)},null,8,["refresh-key"])]),_:1},8,["modelValue","tab-items"])]),_:1}),o(Zt,null,{default:i(()=>[o(Jt,{open:e(m),title:"Delete test run","onUpdate:open":W[7]||(W[7]=de=>m.value=de)},{body:i(()=>[n("p",null,[W[9]||(W[9]=$(" Are you sure you want to delete ",-1)),n("strong",null,"Test Run #"+l(e(u)?.id),1),W[10]||(W[10]=$("? This will also remove all associated test results, reports, and traces. This action cannot be undone. ",-1))])]),footer:i(()=>[o(Ye,{color:"neutral",variant:"ghost",label:"Cancel",onClick:W[6]||(W[6]=de=>m.value=!1)}),o(Ye,{color:"error",label:"Delete",icon:"i-lucide-trash-2",loading:e(I),onClick:b},null,8,["loading"])]),_:1},8,["open"])]),_:1})],64)}}});export{iu as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as C,H as I,c4 as N,am as D,c5 as J,K as G,aM as K,$ as Y,a3 as U,a6 as Q,b0 as Z,a4 as V,a5 as H,o as W,f as F,W as ee,k as p,_ as te,h as k,a8 as X,c6 as oe,l as R,g as ne,V as ie,q as ae,X as re}from"./NQikbhmK.js";const se=3456e4;function le(e,a,t){const n=e.indexOf(";",a);return n===-1?t:n}function ue(e,a,t){const n=e.indexOf("=",a);return n<t?n:-1}function M(e,a,t){if(a===t)return"";let n=a,i=t;do{const l=e.charCodeAt(n);if(l!==32&&l!==9)break}while(++n<i);for(;i>n;){const l=e.charCodeAt(i-1);if(l!==32&&l!==9)break;i--}return e.slice(n,i)}const ce=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function de(e,a){const t=new ce,n=e.length;if(n<2)return t;const i=a?.decode||fe,l=a?.allowMultiple||!1;let o=0;do{const c=ue(e,o,n);if(c===-1)break;const u=le(e,o,n);if(c>u){o=e.lastIndexOf(";",c-1)+1;continue}const r=M(e,o,c);if(a?.filter&&!a.filter(r)){o=u+1;continue}const f=i(M(e,c+1,u));if(l){const d=t[r];d===void 0?t[r]=f:Array.isArray(d)?d.push(f):t[r]=[d,f]}else t[r]===void 0&&(t[r]=f);o=u+1}while(o<n);return t}function fe(e){if(!e.includes("%"))return e;try{return decodeURIComponent(e)}catch{return e}}const pe=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,ve=/^[\u0021-\u003A\u003C-\u007E]*$/,he=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,me=/^[\u0020-\u003A\u003C-\u007E]*$/,ge=Object.prototype.toString;function $(e,a,t){const n=typeof e=="object"&&e!==null,i=n?a:t,l=i?.stringify||JSON.stringify,o=n?e:{...t,name:e,value:a==null?"":typeof a=="string"?a:l(a)},c=i?.encode||encodeURIComponent;if(!pe.test(o.name))throw new TypeError(`argument name is invalid: ${o.name}`);const u=o.value?c(o.value):"";if(!ve.test(u))throw new TypeError(`argument val is invalid: ${o.value}`);if(!o.secure){if(o.partitioned)throw new TypeError("Partitioned cookies must have the Secure attribute");if(o.sameSite&&String(o.sameSite).toLowerCase()==="none")throw new TypeError("SameSite=None cookies must have the Secure attribute");if(o.name.length>9&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95){const f=o.name.toLowerCase();if(f.startsWith("__secure-")||f.startsWith("__host-"))throw new TypeError(`${o.name} cookies must have the Secure attribute`)}}if(o.name.length>7&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95&&o.name.toLowerCase().startsWith("__host-")){if(o.path!=="/")throw new TypeError("__Host- cookies must have Path=/");if(o.domain)throw new TypeError("__Host- cookies must not have a Domain attribute")}let r=o.name+"="+u;if(o.maxAge!==void 0){if(!Number.isInteger(o.maxAge))throw new TypeError(`option maxAge is invalid: ${o.maxAge}`);r+="; Max-Age="+Math.max(0,Math.min(o.maxAge,se))}if(o.domain){if(!he.test(o.domain))throw new TypeError(`option domain is invalid: ${o.domain}`);r+="; Domain="+o.domain}if(o.path){if(!me.test(o.path))throw new TypeError(`option path is invalid: ${o.path}`);r+="; Path="+o.path}if(o.expires){if(!be(o.expires)||!Number.isFinite(o.expires.valueOf()))throw new TypeError(`option expires is invalid: ${o.expires}`);r+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(r+="; HttpOnly"),o.secure&&(r+="; Secure"),o.partitioned&&(r+="; Partitioned"),o.priority)switch(typeof o.priority=="string"?o.priority.toLowerCase():void 0){case"low":r+="; Priority=Low";break;case"medium":r+="; Priority=Medium";break;case"high":r+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${o.priority}`)}if(o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"none":r+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${o.sameSite}`)}return r}function be(e){return ge.call(e)==="[object Date]"}function g(e){if(typeof e!="object")return e;var a,t,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){t=new e.constructor;for(a in e)e.hasOwnProperty(a)&&t[a]!==e[a]&&(t[a]=g(e[a]))}else{t={};for(a in e)a==="__proto__"?Object.defineProperty(t,a,{value:g(e[a]),configurable:!0,enumerable:!0,writable:!0}):t[a]=g(e[a])}return t}if(n==="[object Array]"){for(a=e.length,t=Array(a);a--;)t[a]=g(e[a]);return t}return n==="[object Set]"?(t=new Set,e.forEach(function(i){t.add(g(i))}),t):n==="[object Map]"?(t=new Map,e.forEach(function(i,l){t.set(g(l),g(i))}),t):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(t=new RegExp(e.source,e.flags),t.lastIndex=e.lastIndex,t):n==="[object DataView]"?new e.constructor(g(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}function ye(e){if(e!=="undefined")try{const a=JSON.parse(e);return typeof a=="number"&&String(a)!==e?e:a}catch{return e}}const Se={path:"/",watch:!0,decode:e=>e&&ye(decodeURIComponent(e)),encode:e=>{if(typeof e!="string"||e==="undefined")return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!="string")return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},j=globalThis.cookieStore;function we(e,a){const t={...Se,...a};t.filter??=r=>r===e;const n=B(t)||{};let i;t.maxAge!==void 0?i=t.maxAge*1e3:t.expires&&(i=t.expires.getTime()-Date.now());const l=i!==void 0&&i<=0,o=l||n[e]===void 0||n[e]===null,c=g(l?void 0:n[e]??t.default?.()),u=i&&!l?Oe(c,i,t.watch&&t.watch!=="shallow"):C(c);{let r=null;try{!j&&typeof BroadcastChannel<"u"&&(r=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(h=!1)=>{if(!h&&(t.readonly||K(u.value,n[e])))return;const b=u.value===null||u.value===void 0?void 0:t.encode(u.value);Ee(e,b,t),n[e]=g(u.value),r?.postMessage({value:t.encode(u.value)})},d=h=>{const b=h.refresh?B(t)?.[e]:t.decode(h.value);y=!0,u.value=b,n[e]=g(b),G(()=>{y=!1})};let y=!1;const S=!!N();if(S&&D(()=>{y=!0,f(),r?.close()}),j){const h=b=>{const A=b.changed.find(E=>E.name===e),L=b.deleted.find(E=>E.name===e);A&&d({value:A.value}),L&&d({value:null})};j.addEventListener("change",h),S&&D(()=>j.removeEventListener("change",h))}else r&&(r.onmessage=({data:h})=>d(h));t.watch&&I(u,()=>{y||f(t.refresh)},{deep:t.watch!=="shallow"}),o&&f(o)}return u}function B(e={}){return de(document.cookie,e)}const Ce=e=>e;function ze(e){const{encode:a,decode:t,...n}=e;return{...n,encode:Ce}}function ke(e,a,t={}){const n=ze(t);return a===void 0?$(e,"",{...n,maxAge:-1}):$(e,a,n)}function Ee(e,a,t={}){document.cookie=ke(e,a,t)}const P=2147483647;function Oe(e,a,t){let n,i,l=0;const o=t?C(e):{value:e};return N()&&D(()=>{i?.(),clearTimeout(n)}),J((c,u)=>{t&&(i=I(o,u));function r(){const d=a-l,y=d<P?d:P;n=setTimeout(()=>{if(l+=y,l<a)return r();o.value=void 0,u()},y)}function f(){l=0,clearTimeout(n),r()}return{get(){return c(),o.value},set(d){f(),o.value=d,u()}}})}const[qe,xe]=Y("DashboardGroup"),Te={base:"lg:hidden",variants:{side:{left:"",right:""}}},Re=Object.assign({inheritAttrs:!1},{__name:"UDashboardSidebarToggle",props:{color:{type:null,required:!1,default:"neutral"},variant:{type:null,required:!1,default:"ghost"},side:{type:String,required:!1,default:"left"},ui:{type:Object,required:!1},label:{type:String,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},setup(e){const t=U("dashboardSidebarToggle",e),n=Q(Z(t,"icon","side","class")),{t:i}=V(),l=H(),{sidebarOpen:o,toggleSidebar:c}=qe({sidebarOpen:C(!1),toggleSidebar:()=>{}}),u=k(()=>X({extend:Te,...l.ui?.dashboardSidebarToggle||{}}));return(r,f)=>(W(),F(te,ee({...p(n),icon:p(t).icon||(p(o)?p(l).ui.icons.close:p(l).ui.icons.menu),"aria-label":p(o)?p(i)("dashboardSidebarToggle.close"):p(i)("dashboardSidebarToggle.open"),...r.$attrs},{class:u.value({class:[p(t).ui?.base,p(t).class],side:p(t).side}),onClick:p(c)}),null,16,["class","onClick"]))}});function je(e,a={},{collapsed:t=C(!1)}={}){const n=C(null),i=k(()=>({side:"left",minSize:0,maxSize:100,defaultSize:0,storage:"cookie",persistent:!0,collapsible:!1,collapsedSize:0,resizable:!0,unit:"%",...R(a)?a.value:a})),{dir:l}=V(),o={size:i.value.defaultSize,collapsed:p(t)??!1},c=i.value.persistent&&(i.value.resizable||i.value.collapsible)?i.value.storage==="cookie"?we(e,{...i.value.storageOptions,default:()=>o}):oe(e,o,void 0,i.value.storageOptions):C(o),u=s=>{c.value?Object.assign(c.value,s):c.value={...o,...s}},r=k({get:()=>c.value?.collapsed??o.collapsed,set:s=>{i.value.collapsible&&(R(t)&&(t.value=s),u({collapsed:s}))}}),f=C(i.value.defaultSize),d=k({get:()=>c.value?.size??i.value.defaultSize,set:s=>{u({size:s})}}),y=k(()=>r.value?i.value.collapsedSize:d.value),S=C(!1),h=()=>i.value.unit==="rem"?Number.parseFloat(getComputedStyle(document.documentElement).fontSize):1,b=(s,v,O,q)=>{if(!n.value||!i.value.resizable)return;const T=n.value.parentElement?.offsetWidth||1,z=l.value==="rtl";let m;z?m=i.value.side==="left"?v-s:s-v:m=i.value.side==="left"?s-v:v-s;const w=O+m;let _;if(i.value.unit==="rem"?_=w/q:i.value.unit==="px"?_=w:_=w/T*100,i.value.collapsible&&_<i.value.collapsedSize+4){x(!0);return}else r.value&&x(!1);d.value=Math.min(i.value.maxSize,Math.max(i.value.minSize,_))},A=s=>{if(!n.value||!i.value.resizable)return;s.preventDefault(),s.stopPropagation();const v=n.value.getBoundingClientRect().width;if(!v)return;const O=s.clientX,q=v,T=h();S.value=!0;const z=w=>{b(w.clientX,O,q,T)},m=()=>{S.value=!1,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",m)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",m)},L=s=>{if(!n.value||!i.value.resizable||!s.touches[0])return;s.preventDefault(),s.stopPropagation();const v=n.value.getBoundingClientRect().width;if(!v)return;const O=s.touches[0].clientX,q=v,T=h();S.value=!0;const z=w=>{w.touches[0]&&b(w.touches[0].clientX,O,q,T)},m=()=>{S.value=!1,document.removeEventListener("touchmove",z),document.removeEventListener("touchend",m),document.removeEventListener("touchcancel",m)};document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",m),document.addEventListener("touchcancel",m)},E=s=>{!n.value||!i.value.resizable||(s.preventDefault(),s.stopPropagation(),r.value&&x(!1),d.value=i.value.defaultSize)},x=s=>{if(!i.value.collapsible)return;const v=s??!r.value;v&&!r.value?f.value=d.value:!v&&r.value&&(d.value=f.value),r.value=v};return R(t)&&c.value?.collapsed&&(t.value=c.value.collapsed),R(t)&&I(t,s=>{i.value.collapsible&&c.value?.collapsed!==s&&(r.value=s)}),{el:n,size:y,isDragging:S,isCollapsed:r,onMouseDown:A,onTouchStart:L,onDoubleClick:E,collapse:x}}const _e={base:"hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5 before:z-1"},Le={__name:"UDashboardResizeHandle",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){const t=U("dashboardResizeHandle",e),n=H(),i=k(()=>X({extend:_e,...n.ui?.dashboardResizeHandle||{}}));return(l,o)=>(W(),F(p(re),{as:p(t).as,role:"separator",class:ae(i.value({class:[p(t).ui?.base,p(t).class]}))},{default:ne(()=>[ie(l.$slots,"default")]),_:3},8,["as","class"]))}};export{Re as _,qe as a,je as b,Le as c,xe as p,we as u};
|
|
1
|
+
import{r as C,H as I,b$ as N,am as D,c0 as J,K as G,aN as K,$ as Y,a3 as U,a6 as Q,b1 as Z,a4 as V,a5 as H,o as W,f as F,W as ee,k as p,_ as te,h as k,a8 as X,c1 as oe,l as R,g as ne,V as ie,q as ae,X as re}from"./Du2W7Jne.js";const se=3456e4;function le(e,a,t){const n=e.indexOf(";",a);return n===-1?t:n}function ue(e,a,t){const n=e.indexOf("=",a);return n<t?n:-1}function $(e,a,t){if(a===t)return"";let n=a,i=t;do{const l=e.charCodeAt(n);if(l!==32&&l!==9)break}while(++n<i);for(;i>n;){const l=e.charCodeAt(i-1);if(l!==32&&l!==9)break;i--}return e.slice(n,i)}const ce=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function de(e,a){const t=new ce,n=e.length;if(n<2)return t;const i=a?.decode||fe,l=a?.allowMultiple||!1;let o=0;do{const c=ue(e,o,n);if(c===-1)break;const u=le(e,o,n);if(c>u){o=e.lastIndexOf(";",c-1)+1;continue}const r=$(e,o,c);if(a?.filter&&!a.filter(r)){o=u+1;continue}const f=i($(e,c+1,u));if(l){const d=t[r];d===void 0?t[r]=f:Array.isArray(d)?d.push(f):t[r]=[d,f]}else t[r]===void 0&&(t[r]=f);o=u+1}while(o<n);return t}function fe(e){if(!e.includes("%"))return e;try{return decodeURIComponent(e)}catch{return e}}const pe=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,ve=/^[\u0021-\u003A\u003C-\u007E]*$/,he=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,me=/^[\u0020-\u003A\u003C-\u007E]*$/,ge=Object.prototype.toString;function M(e,a,t){const n=typeof e=="object"&&e!==null,i=n?a:t,l=i?.stringify||JSON.stringify,o=n?e:{...t,name:e,value:a==null?"":typeof a=="string"?a:l(a)},c=i?.encode||encodeURIComponent;if(!pe.test(o.name))throw new TypeError(`argument name is invalid: ${o.name}`);const u=o.value?c(o.value):"";if(!ve.test(u))throw new TypeError(`argument val is invalid: ${o.value}`);if(!o.secure){if(o.partitioned)throw new TypeError("Partitioned cookies must have the Secure attribute");if(o.sameSite&&String(o.sameSite).toLowerCase()==="none")throw new TypeError("SameSite=None cookies must have the Secure attribute");if(o.name.length>9&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95){const f=o.name.toLowerCase();if(f.startsWith("__secure-")||f.startsWith("__host-"))throw new TypeError(`${o.name} cookies must have the Secure attribute`)}}if(o.name.length>7&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95&&o.name.toLowerCase().startsWith("__host-")){if(o.path!=="/")throw new TypeError("__Host- cookies must have Path=/");if(o.domain)throw new TypeError("__Host- cookies must not have a Domain attribute")}let r=o.name+"="+u;if(o.maxAge!==void 0){if(!Number.isInteger(o.maxAge))throw new TypeError(`option maxAge is invalid: ${o.maxAge}`);r+="; Max-Age="+Math.max(0,Math.min(o.maxAge,se))}if(o.domain){if(!he.test(o.domain))throw new TypeError(`option domain is invalid: ${o.domain}`);r+="; Domain="+o.domain}if(o.path){if(!me.test(o.path))throw new TypeError(`option path is invalid: ${o.path}`);r+="; Path="+o.path}if(o.expires){if(!be(o.expires)||!Number.isFinite(o.expires.valueOf()))throw new TypeError(`option expires is invalid: ${o.expires}`);r+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(r+="; HttpOnly"),o.secure&&(r+="; Secure"),o.partitioned&&(r+="; Partitioned"),o.priority)switch(typeof o.priority=="string"?o.priority.toLowerCase():void 0){case"low":r+="; Priority=Low";break;case"medium":r+="; Priority=Medium";break;case"high":r+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${o.priority}`)}if(o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"none":r+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${o.sameSite}`)}return r}function be(e){return ge.call(e)==="[object Date]"}function g(e){if(typeof e!="object")return e;var a,t,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){t=new e.constructor;for(a in e)e.hasOwnProperty(a)&&t[a]!==e[a]&&(t[a]=g(e[a]))}else{t={};for(a in e)a==="__proto__"?Object.defineProperty(t,a,{value:g(e[a]),configurable:!0,enumerable:!0,writable:!0}):t[a]=g(e[a])}return t}if(n==="[object Array]"){for(a=e.length,t=Array(a);a--;)t[a]=g(e[a]);return t}return n==="[object Set]"?(t=new Set,e.forEach(function(i){t.add(g(i))}),t):n==="[object Map]"?(t=new Map,e.forEach(function(i,l){t.set(g(l),g(i))}),t):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(t=new RegExp(e.source,e.flags),t.lastIndex=e.lastIndex,t):n==="[object DataView]"?new e.constructor(g(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}function ye(e){if(e!=="undefined")try{const a=JSON.parse(e);return typeof a=="number"&&String(a)!==e?e:a}catch{return e}}const Se={path:"/",watch:!0,decode:e=>e&&ye(decodeURIComponent(e)),encode:e=>{if(typeof e!="string"||e==="undefined")return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!="string")return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},j=globalThis.cookieStore;function we(e,a){const t={...Se,...a};t.filter??=r=>r===e;const n=B(t)||{};let i;t.maxAge!==void 0?i=t.maxAge*1e3:t.expires&&(i=t.expires.getTime()-Date.now());const l=i!==void 0&&i<=0,o=l||n[e]===void 0||n[e]===null,c=g(l?void 0:n[e]??t.default?.()),u=i&&!l?Oe(c,i,t.watch&&t.watch!=="shallow"):C(c);{let r=null;try{!j&&typeof BroadcastChannel<"u"&&(r=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(h=!1)=>{if(!h&&(t.readonly||K(u.value,n[e])))return;const b=u.value===null||u.value===void 0?void 0:t.encode(u.value);Ee(e,b,t),n[e]=g(u.value),r?.postMessage({value:t.encode(u.value)})},d=h=>{const b=h.refresh?B(t)?.[e]:t.decode(h.value);y=!0,u.value=b,n[e]=g(b),G(()=>{y=!1})};let y=!1;const S=!!N();if(S&&D(()=>{y=!0,f(),r?.close()}),j){const h=b=>{const A=b.changed.find(E=>E.name===e),L=b.deleted.find(E=>E.name===e);A&&d({value:A.value}),L&&d({value:null})};j.addEventListener("change",h),S&&D(()=>j.removeEventListener("change",h))}else r&&(r.onmessage=({data:h})=>d(h));t.watch&&I(u,()=>{y||f(t.refresh)},{deep:t.watch!=="shallow"}),o&&f(o)}return u}function B(e={}){return de(document.cookie,e)}const Ce=e=>e;function ze(e){const{encode:a,decode:t,...n}=e;return{...n,encode:Ce}}function ke(e,a,t={}){const n=ze(t);return a===void 0?M(e,"",{...n,maxAge:-1}):M(e,a,n)}function Ee(e,a,t={}){document.cookie=ke(e,a,t)}const P=2147483647;function Oe(e,a,t){let n,i,l=0;const o=t?C(e):{value:e};return N()&&D(()=>{i?.(),clearTimeout(n)}),J((c,u)=>{t&&(i=I(o,u));function r(){const d=a-l,y=d<P?d:P;n=setTimeout(()=>{if(l+=y,l<a)return r();o.value=void 0,u()},y)}function f(){l=0,clearTimeout(n),r()}return{get(){return c(),o.value},set(d){f(),o.value=d,u()}}})}const[qe,xe]=Y("DashboardGroup"),Te={base:"lg:hidden",variants:{side:{left:"",right:""}}},Re=Object.assign({inheritAttrs:!1},{__name:"UDashboardSidebarToggle",props:{color:{type:null,required:!1,default:"neutral"},variant:{type:null,required:!1,default:"ghost"},side:{type:String,required:!1,default:"left"},ui:{type:Object,required:!1},label:{type:String,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},setup(e){const t=U("dashboardSidebarToggle",e),n=Q(Z(t,"icon","side","class")),{t:i}=V(),l=H(),{sidebarOpen:o,toggleSidebar:c}=qe({sidebarOpen:C(!1),toggleSidebar:()=>{}}),u=k(()=>X({extend:Te,...l.ui?.dashboardSidebarToggle||{}}));return(r,f)=>(W(),F(te,ee({...p(n),icon:p(t).icon||(p(o)?p(l).ui.icons.close:p(l).ui.icons.menu),"aria-label":p(o)?p(i)("dashboardSidebarToggle.close"):p(i)("dashboardSidebarToggle.open"),...r.$attrs},{class:u.value({class:[p(t).ui?.base,p(t).class],side:p(t).side}),onClick:p(c)}),null,16,["class","onClick"]))}});function je(e,a={},{collapsed:t=C(!1)}={}){const n=C(null),i=k(()=>({side:"left",minSize:0,maxSize:100,defaultSize:0,storage:"cookie",persistent:!0,collapsible:!1,collapsedSize:0,resizable:!0,unit:"%",...R(a)?a.value:a})),{dir:l}=V(),o={size:i.value.defaultSize,collapsed:p(t)??!1},c=i.value.persistent&&(i.value.resizable||i.value.collapsible)?i.value.storage==="cookie"?we(e,{...i.value.storageOptions,default:()=>o}):oe(e,o,void 0,i.value.storageOptions):C(o),u=s=>{c.value?Object.assign(c.value,s):c.value={...o,...s}},r=k({get:()=>c.value?.collapsed??o.collapsed,set:s=>{i.value.collapsible&&(R(t)&&(t.value=s),u({collapsed:s}))}}),f=C(i.value.defaultSize),d=k({get:()=>c.value?.size??i.value.defaultSize,set:s=>{u({size:s})}}),y=k(()=>r.value?i.value.collapsedSize:d.value),S=C(!1),h=()=>i.value.unit==="rem"?Number.parseFloat(getComputedStyle(document.documentElement).fontSize):1,b=(s,v,O,q)=>{if(!n.value||!i.value.resizable)return;const T=n.value.parentElement?.offsetWidth||1,z=l.value==="rtl";let m;z?m=i.value.side==="left"?v-s:s-v:m=i.value.side==="left"?s-v:v-s;const w=O+m;let _;if(i.value.unit==="rem"?_=w/q:i.value.unit==="px"?_=w:_=w/T*100,i.value.collapsible&&_<i.value.collapsedSize+4){x(!0);return}else r.value&&x(!1);d.value=Math.min(i.value.maxSize,Math.max(i.value.minSize,_))},A=s=>{if(!n.value||!i.value.resizable)return;s.preventDefault(),s.stopPropagation();const v=n.value.getBoundingClientRect().width;if(!v)return;const O=s.clientX,q=v,T=h();S.value=!0;const z=w=>{b(w.clientX,O,q,T)},m=()=>{S.value=!1,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",m)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",m)},L=s=>{if(!n.value||!i.value.resizable||!s.touches[0])return;s.preventDefault(),s.stopPropagation();const v=n.value.getBoundingClientRect().width;if(!v)return;const O=s.touches[0].clientX,q=v,T=h();S.value=!0;const z=w=>{w.touches[0]&&b(w.touches[0].clientX,O,q,T)},m=()=>{S.value=!1,document.removeEventListener("touchmove",z),document.removeEventListener("touchend",m),document.removeEventListener("touchcancel",m)};document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",m),document.addEventListener("touchcancel",m)},E=s=>{!n.value||!i.value.resizable||(s.preventDefault(),s.stopPropagation(),r.value&&x(!1),d.value=i.value.defaultSize)},x=s=>{if(!i.value.collapsible)return;const v=s??!r.value;v&&!r.value?f.value=d.value:!v&&r.value&&(d.value=f.value),r.value=v};return R(t)&&c.value?.collapsed&&(t.value=c.value.collapsed),R(t)&&I(t,s=>{i.value.collapsible&&c.value?.collapsed!==s&&(r.value=s)}),{el:n,size:y,isDragging:S,isCollapsed:r,onMouseDown:A,onTouchStart:L,onDoubleClick:E,collapse:x}}const _e={base:"hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5 before:z-1"},Le={__name:"UDashboardResizeHandle",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){const t=U("dashboardResizeHandle",e),n=H(),i=k(()=>X({extend:_e,...n.ui?.dashboardResizeHandle||{}}));return(l,o)=>(W(),F(p(re),{as:p(t).as,role:"separator",class:ae(i.value({class:[p(t).ui?.base,p(t).class]}))},{default:ne(()=>[ie(l.$slots,"default")]),_:3},8,["as","class"]))}};export{Re as _,qe as a,je as b,Le as c,xe as p,we as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,U as o,o as u,f as p,g as d,V as f,W as n,k as i,X as _}from"./
|
|
1
|
+
import{d as l,U as o,o as u,f as p,g as d,V as f,W as n,k as i,X as _}from"./Du2W7Jne.js";var m=l({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(r){const t=r;return o(),(s,a)=>(u(),p(i(_),n(t,{onMousedown:a[0]||(a[0]=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()})}),{default:d(()=>[f(s.$slots,"default")]),_:3},16))}}),b=m;export{b as L};
|