@piwitests/server 0.26.0 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{BdQ7kfxJ.js → 1QWBzxLM.js} +4 -4
  3. package/.output/public/_nuxt/{CY1UsEbI.js → 4hW9LHwA.js} +1 -1
  4. package/.output/public/_nuxt/96uxfdYT.js +1 -0
  5. package/.output/public/_nuxt/{HGYIpJtg.js → AbnDY6Zr.js} +1 -1
  6. package/.output/public/_nuxt/{CZ6WR7uw.js → B-1zt4pp.js} +1 -1
  7. package/.output/public/_nuxt/{Sx5-c-bZ.js → B1iYmAt_.js} +1 -1
  8. package/.output/public/_nuxt/{CbzgEkmW.js → B2bxEmbR.js} +1 -1
  9. package/.output/public/_nuxt/B3hAvaCe.js +4 -0
  10. package/.output/public/_nuxt/{CyWOerIG.js → B4lvHjBe.js} +1 -1
  11. package/.output/public/_nuxt/B5S7BkC3.js +1 -0
  12. package/.output/public/_nuxt/{Bb_1uAHn.js → B6j5Ornu.js} +1 -1
  13. package/.output/public/_nuxt/{CrsaY0R_.js → B82vqOZe.js} +1 -1
  14. package/.output/public/_nuxt/{CTFUlsXp.js → B9oXlGro.js} +1 -1
  15. package/.output/public/_nuxt/{CsJ9Ce4U.js → BABCH5kE.js} +1 -1
  16. package/.output/public/_nuxt/{Gn1Ns00e.js → BF5qB58w.js} +1 -1
  17. package/.output/public/_nuxt/{CsGsLxHg.js → BFLa9ZEP.js} +1 -1
  18. package/.output/public/_nuxt/BIlohx1E.js +1 -0
  19. package/.output/public/_nuxt/{B6djubIK.js → BM5C-Oec.js} +1 -1
  20. package/.output/public/_nuxt/{CrZhoZuI.js → BOA-I6S9.js} +1 -1
  21. package/.output/public/_nuxt/{Bp2zrrkV.js → BQUhoGCh.js} +1 -1
  22. package/.output/public/_nuxt/{DUC3QnqW.js → BQYLGX9o.js} +1 -1
  23. package/.output/public/_nuxt/{CUjzhXN1.js → BRMeEHXd.js} +1 -1
  24. package/.output/public/_nuxt/{Cf_a8ynB.js → BRtaKOKv.js} +2 -2
  25. package/.output/public/_nuxt/{B7uPoZ7T.js → BS91Og__.js} +1 -1
  26. package/.output/public/_nuxt/{DKgbchez.js → BTGAvMoT.js} +1 -1
  27. package/.output/public/_nuxt/{BIamiwb7.js → BaLX92Wz.js} +1 -1
  28. package/.output/public/_nuxt/{LWIyaZKe.js → Bc6Zr-Xn.js} +1 -1
  29. package/.output/public/_nuxt/{R7AVOWi_.js → BceMEnJt.js} +1 -1
  30. package/.output/public/_nuxt/{Q2oJNyXL.js → BeCAVtCK.js} +1 -1
  31. package/.output/public/_nuxt/{D_SD71Qf.js → Bf119e7x.js} +1 -1
  32. package/.output/public/_nuxt/BfRcdz11.js +9 -0
  33. package/.output/public/_nuxt/{CxwnFFD0.js → Bl0xzETD.js} +1 -1
  34. package/.output/public/_nuxt/{C_eXufkv.js → BnUQ3i5l.js} +1 -1
  35. package/.output/public/_nuxt/{rPG7kzfL.js → Bp1WeQ0_.js} +1 -1
  36. package/.output/public/_nuxt/{BL8cYWsR.js → Bp31ZRcA.js} +1 -1
  37. package/.output/public/_nuxt/{Drh1_ASq.js → BrxUH8qL.js} +1 -1
  38. package/.output/public/_nuxt/{D72Ce8Ff.js → BsdfEbVC.js} +1 -1
  39. package/.output/public/_nuxt/BtGI4ZbP.js +1 -0
  40. package/.output/public/_nuxt/{BV8EzO8q.js → BuMX-4RF.js} +1 -1
  41. package/.output/public/_nuxt/{DPPhFZOr.js → BuXJR5tn.js} +1 -1
  42. package/.output/public/_nuxt/{Bh2WA4IJ.js → Bx_lfKHl.js} +1 -1
  43. package/.output/public/_nuxt/{vcSKeWsW.js → C4UKyPQn.js} +1 -1
  44. package/.output/public/_nuxt/{IoE3eJ9F.js → C9XCTbtQ.js} +1 -1
  45. package/.output/public/_nuxt/{BilJoEne.js → CEPU6VkU.js} +1 -1
  46. package/.output/public/_nuxt/CHz7LJIX.js +1 -0
  47. package/.output/public/_nuxt/{BPhGDGAR.js → CMhd8IBr.js} +1 -1
  48. package/.output/public/_nuxt/{C5X_N4R7.js → CN1M6i4K.js} +33 -33
  49. package/.output/public/_nuxt/CQLkowA3.js +1 -0
  50. package/.output/public/_nuxt/{DTtizz85.js → CU_2YLhT.js} +1 -1
  51. package/.output/public/_nuxt/{CMVTTE_g.js → CXkXHtcx.js} +1 -1
  52. package/.output/public/_nuxt/{igDJCTgt.js → CZeKW-zP.js} +1 -1
  53. package/.output/public/_nuxt/{9oKY4Zb7.js → CapSEET7.js} +1 -1
  54. package/.output/public/_nuxt/{j2eGYaRa.js → CeExxGSu.js} +1 -1
  55. package/.output/public/_nuxt/{CEgRB8H9.js → CfwpqSe7.js} +1 -1
  56. package/.output/public/_nuxt/{CFKbXp6V.js → ChOtLYkd.js} +1 -1
  57. package/.output/public/_nuxt/ChuJzPWz.js +1 -0
  58. package/.output/public/_nuxt/{Bo73sAu8.js → CiCUZGFZ.js} +1 -1
  59. package/.output/public/_nuxt/{C6R4tyud.js → CkL_oDa8.js} +1 -1
  60. package/.output/public/_nuxt/{DtGJeysS.js → CkhOMiiO.js} +1 -1
  61. package/.output/public/_nuxt/ClmHMP65.js +2 -0
  62. package/.output/public/_nuxt/{BtcDY0Du.js → Cnm0d_7S.js} +1 -1
  63. package/.output/public/_nuxt/{CK2AMqz_.js → CtQMagSz.js} +1 -1
  64. package/.output/public/_nuxt/{B1KjIR-q.js → Ctnn3S3-.js} +1 -1
  65. package/.output/public/_nuxt/{DCeZxpxe.js → CywiLuOD.js} +4 -4
  66. package/.output/public/_nuxt/{oA84LLqO.js → CzRkZLB4.js} +1 -1
  67. package/.output/public/_nuxt/CzyCEdYP.js +1 -0
  68. package/.output/public/_nuxt/{D56yp7m9.js → D-F0Rhjj.js} +1 -1
  69. package/.output/public/_nuxt/D4mPjHHR.js +2 -0
  70. package/.output/public/_nuxt/{BsGvSoPC.js → D4v7lLm3.js} +1 -1
  71. package/.output/public/_nuxt/{CxRTKV-K.js → D6B0WKO0.js} +1 -1
  72. package/.output/public/_nuxt/{jv8U_Tup.js → DAg6jtav.js} +1 -1
  73. package/.output/public/_nuxt/DBXXb0w8.js +1 -0
  74. package/.output/public/_nuxt/{ChlP20A5.js → DHN2t5Vt.js} +1 -1
  75. package/.output/public/_nuxt/{B8tezsWe.js → DJKHXfNS.js} +1 -1
  76. package/.output/public/_nuxt/{CFg5qdS0.js → DMqAUHFN.js} +1 -1
  77. package/.output/public/_nuxt/{C9A3sPDo.js → DURme_kn.js} +1 -1
  78. package/.output/public/_nuxt/{C2hIM5f9.js → DVo_e_uj.js} +1 -1
  79. package/.output/public/_nuxt/{DKhqIou2.js → DXh8q5KY.js} +1 -1
  80. package/.output/public/_nuxt/{CZXeJs2k.js → DXz1Kb4-.js} +1 -1
  81. package/.output/public/_nuxt/{CPrVhXJk.js → DYdwHaco.js} +1 -1
  82. package/.output/public/_nuxt/{WZXZeGYt.js → D_ZAGxCQ.js} +1 -1
  83. package/.output/public/_nuxt/{D5SN7rPK.js → D_dhjJvR.js} +1 -1
  84. package/.output/public/_nuxt/{DR1jFptD.js → DamZHy5M.js} +1 -1
  85. package/.output/public/_nuxt/{xKX9IHe3.js → DbtjJCra.js} +1 -1
  86. package/.output/public/_nuxt/{r6zkA1SE.js → DcOlL-oi.js} +1 -1
  87. package/.output/public/_nuxt/{CxspCKpR.js → DeQ9sIia.js} +1 -1
  88. package/.output/public/_nuxt/{BkHJoHpc.js → DjX1bLZD.js} +1 -1
  89. package/.output/public/_nuxt/{Be0bwdsi.js → Dly7wCCl.js} +1 -1
  90. package/.output/public/_nuxt/DmeogbGY.js +1 -0
  91. package/.output/public/_nuxt/{CfV2N201.js → Dn_-RkxP.js} +1 -1
  92. package/.output/public/_nuxt/{dg6uXTyR.js → DoDo3VF2.js} +1 -1
  93. package/.output/public/_nuxt/{BMlKQMjM.js → DoVHTl-K.js} +1 -1
  94. package/.output/public/_nuxt/DpM8IgHL.js +1 -0
  95. package/.output/public/_nuxt/{B4NjylBn.js → Dpwj_1H5.js} +1 -1
  96. package/.output/public/_nuxt/{DzJa19LG.js → DvSHenmZ.js} +1 -1
  97. package/.output/public/_nuxt/DvYU87_a.js +1 -0
  98. package/.output/public/_nuxt/{G2J1dVVb.js → Dx41arC8.js} +1 -1
  99. package/.output/public/_nuxt/DxBrlj7b.js +1 -0
  100. package/.output/public/_nuxt/{r-HZNbp3.js → JNpNdV-o.js} +1 -1
  101. package/.output/public/_nuxt/Lz9MmwKY.js +1 -0
  102. package/.output/public/_nuxt/OMI0cmZ0.js +1 -0
  103. package/.output/public/_nuxt/{CUWrUpTl.js → UAmyrRCI.js} +1 -1
  104. package/.output/public/_nuxt/{EJllK0wm.js → VBTxfbqU.js} +1 -1
  105. package/.output/public/_nuxt/VbedPPFH.js +1 -0
  106. package/.output/public/_nuxt/{BY9A1aOT.js → _okd7MfH.js} +1 -1
  107. package/.output/public/_nuxt/{BOn5q0rT.js → bmAf49LT.js} +1 -1
  108. package/.output/public/_nuxt/builds/latest.json +1 -1
  109. package/.output/public/_nuxt/builds/meta/0174ebd8-8fa5-4698-aa79-7a8dd2f6527f.json +1 -0
  110. package/.output/public/_nuxt/{D0XWJGhG.js → e-GZmCeP.js} +1 -1
  111. package/.output/public/_nuxt/entry.Dv52uAyn.css +1 -0
  112. package/.output/public/_nuxt/{DVIIj6Vv.js → f9TbT3AM.js} +1 -1
  113. package/.output/public/_nuxt/gdlHFfN6.js +1 -0
  114. package/.output/public/_nuxt/{BTG_PmM5.js → huBoAZeM.js} +1 -1
  115. package/.output/public/_nuxt/{DadksxQ9.js → mYw4b7uY.js} +1 -1
  116. package/.output/public/_nuxt/{B0eHOux4.js → mi7tdFxN.js} +1 -1
  117. package/.output/public/_nuxt/sFe4Zr5j.js +1 -0
  118. package/.output/public/_nuxt/{CLrLFf3s.js → uspGXbik.js} +1 -1
  119. package/.output/public/_nuxt/{DLN-CQXF.js → w7KxwWEv.js} +1 -1
  120. package/.output/public/_nuxt/{Bp55g9gr.js → wa4k1aDz.js} +1 -1
  121. package/.output/public/_nuxt/{C2yZcDch.js → xuB8n0QL.js} +1 -1
  122. package/.output/public/favicon.ico +0 -0
  123. package/.output/public/trace-viewer/assets/codeMirrorModule-LEHpjmcn.js +32 -0
  124. package/.output/public/trace-viewer/assets/defaultSettingsView-BNmKHKpQ.js +264 -0
  125. package/.output/public/trace-viewer/assets/urlMatch-BYQrIQwR.js +1 -0
  126. package/.output/public/trace-viewer/assets/xtermModule-CsJ4vdCR.js +9 -0
  127. package/.output/public/trace-viewer/codeMirrorModule.DYBRYzYX.css +1 -0
  128. package/.output/public/trace-viewer/codicon.DCmgc-ay.ttf +0 -0
  129. package/.output/public/trace-viewer/defaultSettingsView.CjdS-WJx.css +1 -0
  130. package/.output/public/trace-viewer/index.CzXZzn5A.css +1 -0
  131. package/.output/public/trace-viewer/index.DMMX1gXU.js +2 -0
  132. package/.output/public/trace-viewer/index.html +44 -0
  133. package/.output/public/trace-viewer/manifest.webmanifest +16 -0
  134. package/.output/public/trace-viewer/playwright-logo.svg +9 -0
  135. package/.output/public/trace-viewer/snapshot.html +10 -0
  136. package/.output/public/trace-viewer/snapshot.v8KI4P3m.js +2 -0
  137. package/.output/public/trace-viewer/sw.bundle.js +5 -0
  138. package/.output/public/trace-viewer/uiMode.BZQ54Kgt.css +1 -0
  139. package/.output/public/trace-viewer/uiMode.Ut8wwJNp.js +6 -0
  140. package/.output/public/trace-viewer/uiMode.html +18 -0
  141. package/.output/public/trace-viewer/xtermModule.DYP7pi_n.css +32 -0
  142. package/.output/server/chunks/_/users.mjs +1 -1
  143. package/.output/server/chunks/build/{BreadcrumbNav-DBnGj5Jq.mjs → BreadcrumbNav-Bg4QGX0k.mjs} +11 -4
  144. package/.output/server/chunks/build/BreadcrumbNav-Bg4QGX0k.mjs.map +1 -0
  145. package/.output/server/chunks/build/{BrowserBadge-vFb1ERG_.mjs → BrowserBadge-yMgLTBUu.mjs} +17 -9
  146. package/.output/server/chunks/build/BrowserBadge-yMgLTBUu.mjs.map +1 -0
  147. package/.output/server/chunks/build/{ChartMarkerLines-BXqUpUcs.mjs → ChartMarkerLines-D0cTRlxF.mjs} +3 -3
  148. package/.output/server/chunks/build/ChartMarkerLines-D0cTRlxF.mjs.map +1 -0
  149. package/.output/server/chunks/build/{ChartTooltip-DoF6Smyc.mjs → ChartTooltip-B2t6VYYH.mjs} +3 -3
  150. package/.output/server/chunks/build/ChartTooltip-B2t6VYYH.mjs.map +1 -0
  151. package/.output/server/chunks/build/Checkbox-ChSYhiUz.mjs +1 -1
  152. package/.output/server/chunks/build/ClientDate-U97Z1p6-.mjs +32 -0
  153. package/.output/server/chunks/build/ClientDate-U97Z1p6-.mjs.map +1 -0
  154. package/.output/server/chunks/build/{CodeBlock-CmvKHaq8.mjs → CodeBlock-DuWhmcI2.mjs} +3 -3
  155. package/.output/server/chunks/build/CodeBlock-DuWhmcI2.mjs.map +1 -0
  156. package/.output/server/chunks/build/DashboardSidebarToggle-a5KYecZ0.mjs +1 -1
  157. package/.output/server/chunks/build/DashboardToolbar-BZoGc0ri.mjs +72 -0
  158. package/.output/server/chunks/build/DashboardToolbar-BZoGc0ri.mjs.map +1 -0
  159. package/.output/server/chunks/build/{DataLocationCard-ChV02QJj.mjs → DataLocationCard-DCdhQBIY.mjs} +2 -2
  160. package/.output/server/chunks/build/DataLocationCard-DCdhQBIY.mjs.map +1 -0
  161. package/.output/server/chunks/build/{DesktopRunLocallyButton-BfmbZpiL.mjs → DesktopRunLocallyButton-ChHg3GqK.mjs} +5 -5
  162. package/.output/server/chunks/build/{DesktopRunLocallyButton-BfmbZpiL.mjs.map → DesktopRunLocallyButton-ChHg3GqK.mjs.map} +1 -1
  163. package/.output/server/chunks/build/{DiagnosisPanel-C_ndadzP.mjs → DiagnosisPanel-DE-r2UV8.mjs} +5 -5
  164. package/.output/server/chunks/build/DiagnosisPanel-DE-r2UV8.mjs.map +1 -0
  165. package/.output/server/chunks/build/{DiagnosisResult-GAjo6Lt3.mjs → DiagnosisResult-CrGK--xh.mjs} +16 -10
  166. package/.output/server/chunks/build/DiagnosisResult-CrGK--xh.mjs.map +1 -0
  167. package/.output/server/chunks/build/{DurationValue-CObiBDnH.mjs → DurationValue-Dn06XQk3.mjs} +2 -2
  168. package/.output/server/chunks/build/DurationValue-Dn06XQk3.mjs.map +1 -0
  169. package/.output/server/chunks/build/EntityLinks-BcpvMt_V.mjs +1 -1
  170. package/.output/server/chunks/build/EnvManagedBadge-_8GfjWjE.mjs +1 -1
  171. package/.output/server/chunks/build/{FeatureUnavailable-Buoyoqx1.mjs → FeatureUnavailable-IaBjVCqQ.mjs} +2 -2
  172. package/.output/server/chunks/build/FeatureUnavailable-IaBjVCqQ.mjs.map +1 -0
  173. package/.output/server/chunks/build/{GetStartedWizard-tL3U_qM1.mjs → GetStartedWizard-BiyxEXWP.mjs} +3 -3
  174. package/.output/server/chunks/build/GetStartedWizard-BiyxEXWP.mjs.map +1 -0
  175. package/.output/server/chunks/build/{HelpHint-C96TlqxY.mjs → HelpHint-CdBz6deq.mjs} +2 -2
  176. package/.output/server/chunks/build/HelpHint-CdBz6deq.mjs.map +1 -0
  177. package/.output/server/chunks/build/{MetaStripGroup-Cp2WCQf7.mjs → MetaStripGroup-CDyGlsNt.mjs} +94 -21
  178. package/.output/server/chunks/build/MetaStripGroup-CDyGlsNt.mjs.map +1 -0
  179. package/.output/server/chunks/build/{NavbarActions-VCHW0u67.mjs → NavbarActions-BTWxKCVI.mjs} +2 -2
  180. package/.output/server/chunks/build/NavbarActions-BTWxKCVI.mjs.map +1 -0
  181. package/.output/server/chunks/build/NavigationMenu-D4ZpdCm_.mjs +1 -1
  182. package/.output/server/chunks/build/OpenInIdeLink-Bnl-_som.mjs +1 -1
  183. package/.output/server/chunks/build/{ProjectTestCasesTable-saHYJoyQ.mjs → ProjectTestCasesTable-DJDAZ9NQ.mjs} +9 -9
  184. package/.output/server/chunks/build/ProjectTestCasesTable-DJDAZ9NQ.mjs.map +1 -0
  185. package/.output/server/chunks/build/{RunReports-CKYYRC59.mjs → RunReports-BSo2cCNx.mjs} +4 -4
  186. package/.output/server/chunks/build/RunReports-BSo2cCNx.mjs.map +1 -0
  187. package/.output/server/chunks/build/{RunStatusBadge-CWhmAmKb.mjs → RunStatusBadge-zfeSwcTx.mjs} +2 -2
  188. package/.output/server/chunks/build/RunStatusBadge-zfeSwcTx.mjs.map +1 -0
  189. package/.output/server/chunks/build/{SectionCard-BB1O3uXd.mjs → SectionCard-CKD1s0eF.mjs} +2 -2
  190. package/.output/server/chunks/build/SectionCard-CKD1s0eF.mjs.map +1 -0
  191. package/.output/server/chunks/build/Select-COU8NARj.mjs +1 -1
  192. package/.output/server/chunks/build/SelectMenu-BUwwc3Qt.mjs +1 -1
  193. package/.output/server/chunks/build/{SettingsField-CEasBHu3.mjs → SettingsField-CDnUtiCM.mjs} +3 -3
  194. package/.output/server/chunks/build/SettingsField-CDnUtiCM.mjs.map +1 -0
  195. package/.output/server/chunks/build/Table-BET-DOtX.mjs +1 -1
  196. package/.output/server/chunks/build/{TestCaseHistoryChart-BgI6P_zS.mjs → TestCaseHistoryChart-Do7WK-ZY.mjs} +16 -17
  197. package/.output/server/chunks/build/TestCaseHistoryChart-Do7WK-ZY.mjs.map +1 -0
  198. package/.output/server/chunks/build/{TestStatusBar-DR8jM5th.mjs → TestStatusBar-BipoEOzd.mjs} +15 -6
  199. package/.output/server/chunks/build/TestStatusBar-BipoEOzd.mjs.map +1 -0
  200. package/.output/server/chunks/build/Tooltip-CK0ucuXC.mjs +1 -1
  201. package/.output/server/chunks/build/{_id_-rQhFY0fN.mjs → _id_-BLPB189b.mjs} +16 -16
  202. package/.output/server/chunks/build/{_id_-rQhFY0fN.mjs.map → _id_-BLPB189b.mjs.map} +1 -1
  203. package/.output/server/chunks/build/{_id_-kkexEH_q.mjs → _id_-BeGJOSxY.mjs} +16 -16
  204. package/.output/server/chunks/build/_id_-BeGJOSxY.mjs.map +1 -0
  205. package/.output/server/chunks/build/{_id_-B7Dw490u.mjs → _id_-CfLEW45H.mjs} +472 -304
  206. package/.output/server/chunks/build/_id_-CfLEW45H.mjs.map +1 -0
  207. package/.output/server/chunks/build/{_id_-DVPb1S93.mjs → _id_-DxHe32cW.mjs} +654 -453
  208. package/.output/server/chunks/build/_id_-DxHe32cW.mjs.map +1 -0
  209. package/.output/server/chunks/build/{about-C4AbyQ4q.mjs → about-FLAssVsA.mjs} +5 -5
  210. package/.output/server/chunks/build/about-FLAssVsA.mjs.map +1 -0
  211. package/.output/server/chunks/build/{account-B45bYZd1.mjs → account-Cvz6KkYu.mjs} +4 -4
  212. package/.output/server/chunks/build/account-Cvz6KkYu.mjs.map +1 -0
  213. package/.output/server/chunks/build/{ai-CgN9xXFf.mjs → ai-DR9Zry7B.mjs} +8 -8
  214. package/.output/server/chunks/build/{ai-CgN9xXFf.mjs.map → ai-DR9Zry7B.mjs.map} +1 -1
  215. package/.output/server/chunks/build/{analytics-BRkiUpwa.mjs → analytics-CCAQayhv.mjs} +9 -9
  216. package/.output/server/chunks/build/{analytics-BRkiUpwa.mjs.map → analytics-CCAQayhv.mjs.map} +1 -1
  217. package/.output/server/chunks/build/{auto-heal-BnTdKHQq.mjs → auto-heal-ngiiiVmq.mjs} +4 -4
  218. package/.output/server/chunks/build/auto-heal-ngiiiVmq.mjs.map +1 -0
  219. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  220. package/.output/server/chunks/build/{default-BGOdM_zA.mjs → default-wYpdMMvh.mjs} +15 -13
  221. package/.output/server/chunks/build/{default-BGOdM_zA.mjs.map → default-wYpdMMvh.mjs.map} +1 -1
  222. package/.output/server/chunks/build/{docs-D7R5eJ1Z.mjs → docs-BX9DoKOI.mjs} +4 -4
  223. package/.output/server/chunks/build/{docs-D7R5eJ1Z.mjs.map → docs-BX9DoKOI.mjs.map} +1 -1
  224. package/.output/server/chunks/build/{edit-BbL3k6c3.mjs → edit-DnyBC4uC.mjs} +7 -7
  225. package/.output/server/chunks/build/{edit-BbL3k6c3.mjs.map → edit-DnyBC4uC.mjs.map} +1 -1
  226. package/.output/server/chunks/build/fetch-DOcN2mHf.mjs +1 -1
  227. package/.output/server/chunks/build/{help-content-BK3jcgLw.mjs → help-content-3QLSe6Vd.mjs} +3 -3
  228. package/.output/server/chunks/build/help-content-3QLSe6Vd.mjs.map +1 -0
  229. package/.output/server/chunks/build/{import-ibAn_HB9.mjs → import-S-w3MXez.mjs} +8 -8
  230. package/.output/server/chunks/build/import-S-w3MXez.mjs.map +1 -0
  231. package/.output/server/chunks/build/{index-D5A0DW7Y.mjs → index-BFr7JW_2.mjs} +4 -4
  232. package/.output/server/chunks/build/index-BFr7JW_2.mjs.map +1 -0
  233. package/.output/server/chunks/build/{index-CqinXTVs.mjs → index-CdzYiYiu.mjs} +9 -9
  234. package/.output/server/chunks/build/{index-CqinXTVs.mjs.map → index-CdzYiYiu.mjs.map} +1 -1
  235. package/.output/server/chunks/build/{index-DreB_S-d.mjs → index-CgYJur1z.mjs} +31 -23
  236. package/.output/server/chunks/build/index-CgYJur1z.mjs.map +1 -0
  237. package/.output/server/chunks/build/{index-2GmuPNF-.mjs → index-CjnZ521K.mjs} +22 -4
  238. package/.output/server/chunks/build/index-CjnZ521K.mjs.map +1 -0
  239. package/.output/server/chunks/build/{index-KsRegEjT.mjs → index-xgA4P1ht.mjs} +3218 -4087
  240. package/.output/server/chunks/build/index-xgA4P1ht.mjs.map +1 -0
  241. package/.output/server/chunks/build/isValueEqualOrExist-D4lZ8uRY.mjs +1 -1
  242. package/.output/server/chunks/build/login-DueFS2RU.mjs +1 -1
  243. package/.output/server/chunks/build/{mcp-Dwj29-uG.mjs → mcp-DlZzubUF.mjs} +7 -7
  244. package/.output/server/chunks/build/mcp-DlZzubUF.mjs.map +1 -0
  245. package/.output/server/chunks/build/{notifications-CjAn5FJj.mjs → notifications-ByPVhyPX.mjs} +6 -6
  246. package/.output/server/chunks/build/notifications-ByPVhyPX.mjs.map +1 -0
  247. package/.output/server/chunks/build/{performance-DRzcu_c7.mjs → performance-Dc9FhaJr.mjs} +6 -6
  248. package/.output/server/chunks/build/performance-Dc9FhaJr.mjs.map +1 -0
  249. package/.output/server/chunks/build/{pr-feedback-DR60oGBf.mjs → pr-feedback-5kC_UmKG.mjs} +4 -4
  250. package/.output/server/chunks/build/pr-feedback-5kC_UmKG.mjs.map +1 -0
  251. package/.output/server/chunks/build/{selections-BjjolRZ9.mjs → selections-C6J9mI0s.mjs} +9 -9
  252. package/.output/server/chunks/build/selections-C6J9mI0s.mjs.map +1 -0
  253. package/.output/server/chunks/build/server.mjs +33 -33
  254. package/.output/server/chunks/build/{settings-B3NWV9tu.mjs → settings-DcCAv0U4.mjs} +17 -81
  255. package/.output/server/chunks/build/settings-DcCAv0U4.mjs.map +1 -0
  256. package/.output/server/chunks/build/{settings-metadata-DwJk8uSt.mjs → settings-metadata-B684YiW4.mjs} +2 -2
  257. package/.output/server/chunks/build/settings-metadata-B684YiW4.mjs.map +1 -0
  258. package/.output/server/chunks/build/{setup-BlgFTixN.mjs → setup-Cf3Mzf-W.mjs} +8 -8
  259. package/.output/server/chunks/build/{setup-BlgFTixN.mjs.map → setup-Cf3Mzf-W.mjs.map} +1 -1
  260. package/.output/server/chunks/build/{storage-C1O-FC0U.mjs → storage-B4VySiv3.mjs} +7 -7
  261. package/.output/server/chunks/build/storage-B4VySiv3.mjs.map +1 -0
  262. package/.output/server/chunks/build/{tags-dsvYrnii.mjs → tags-BvWdsd1F.mjs} +25 -11
  263. package/.output/server/chunks/build/tags-BvWdsd1F.mjs.map +1 -0
  264. package/.output/server/chunks/build/{test-cases-CFiOuyK6.mjs → test-cases-LIIu7dMu.mjs} +11 -11
  265. package/.output/server/chunks/build/test-cases-LIIu7dMu.mjs.map +1 -0
  266. package/.output/server/chunks/build/{test-functions-CbmBi6az.mjs → test-functions-Dv8nezrM.mjs} +8 -8
  267. package/.output/server/chunks/build/test-functions-Dv8nezrM.mjs.map +1 -0
  268. package/.output/server/chunks/build/{useCopyRich-DPKZKHvZ.mjs → useCopyRich-DRRKIts2.mjs} +17 -14
  269. package/.output/server/chunks/build/{useCopyRich-DPKZKHvZ.mjs.map → useCopyRich-DRRKIts2.mjs.map} +1 -1
  270. package/.output/server/chunks/build/{useDesktopDownload-R_RWSgUV.mjs → useDesktopDownload-CK-5nATq.mjs} +2 -2
  271. package/.output/server/chunks/build/useDesktopDownload-CK-5nATq.mjs.map +1 -0
  272. package/.output/server/chunks/build/{useDesktopLocalRuns-BdELBy0Y.mjs → useDesktopLocalRuns-BHZic4MJ.mjs} +3 -3
  273. package/.output/server/chunks/build/useDesktopLocalRuns-BHZic4MJ.mjs.map +1 -0
  274. package/.output/server/chunks/build/{useDesktopProjectLink-IUN7SIP2.mjs → useDesktopProjectLink-CqBvnXwG.mjs} +2 -2
  275. package/.output/server/chunks/build/useDesktopProjectLink-CqBvnXwG.mjs.map +1 -0
  276. package/.output/server/chunks/build/useOpenInIde-DS4YXevu.mjs +1 -1
  277. package/.output/server/chunks/build/{useSettingsNav-Dg87E7kY.mjs → useSettingsNav-dyHz-2Bz.mjs} +2 -2
  278. package/.output/server/chunks/build/useSettingsNav-dyHz-2Bz.mjs.map +1 -0
  279. package/.output/server/chunks/build/{users-DgsoiXxQ.mjs → users-CluLB8DL.mjs} +31 -13
  280. package/.output/server/chunks/build/users-CluLB8DL.mjs.map +1 -0
  281. package/.output/server/chunks/nitro/nitro.mjs +839 -680
  282. package/.output/server/chunks/routes/__piwi/session.get.mjs +1 -1
  283. package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +5 -2
  284. package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs.map +1 -1
  285. package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +1 -1
  286. package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +1 -1
  287. package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +42 -26
  288. package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs.map +1 -1
  289. package/.output/server/chunks/routes/api/test-runs/_id/gate.post.mjs +1 -1
  290. package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +1 -1
  291. package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +1 -1
  292. package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +1 -1
  293. package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +1 -1
  294. package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +1 -1
  295. package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs +1 -1
  296. package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +1 -1
  297. package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +1 -1
  298. package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +1 -1
  299. package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs +1 -0
  300. package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs.map +1 -1
  301. package/.output/server/chunks/routes/api/traces/check.post.mjs +1 -1
  302. package/.output/server/chunks/routes/api/users/_id/index.post.mjs +1 -1
  303. package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +1 -1
  304. package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +1 -1
  305. package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +1 -1
  306. package/.output/server/chunks/routes/mcp.post.mjs +1 -1
  307. package/.output/server/chunks/routes/renderer.mjs +1 -1
  308. package/.output/server/chunks/routes/share/_token_.get.mjs +1 -1
  309. package/.output/server/index.mjs +1 -1
  310. package/.output/server/package.json +1 -1
  311. package/package.json +1 -1
  312. package/.output/public/_nuxt/3HmftUHT.js +0 -1
  313. package/.output/public/_nuxt/B7zo6PK8.js +0 -1
  314. package/.output/public/_nuxt/BO4sfkbw.js +0 -1
  315. package/.output/public/_nuxt/BdyXNI2_.js +0 -1
  316. package/.output/public/_nuxt/Bg63qh8W.js +0 -1
  317. package/.output/public/_nuxt/BnhWd06P.js +0 -1
  318. package/.output/public/_nuxt/CHWW6xiX.js +0 -1
  319. package/.output/public/_nuxt/CIPvUOic.js +0 -2
  320. package/.output/public/_nuxt/CVcFbORW.js +0 -9
  321. package/.output/public/_nuxt/CZlz5y13.js +0 -1
  322. package/.output/public/_nuxt/CkV_UG8j.js +0 -1
  323. package/.output/public/_nuxt/D0TpBpCc.js +0 -1
  324. package/.output/public/_nuxt/D3LyIeiJ.js +0 -1
  325. package/.output/public/_nuxt/DcccidY5.js +0 -4
  326. package/.output/public/_nuxt/DqkCbAzo.js +0 -1
  327. package/.output/public/_nuxt/DwH4SIZE.js +0 -1
  328. package/.output/public/_nuxt/DwZS0oRm.js +0 -2
  329. package/.output/public/_nuxt/DxPZIuWy.js +0 -1
  330. package/.output/public/_nuxt/Dyb1FouX.js +0 -1
  331. package/.output/public/_nuxt/builds/meta/a5fb24cc-65e3-4e55-aa12-038fe2de4754.json +0 -1
  332. package/.output/public/_nuxt/entry.BFe0Ua9k.css +0 -1
  333. package/.output/public/_nuxt/i7znB42v.js +0 -1
  334. package/.output/server/chunks/build/BreadcrumbNav-DBnGj5Jq.mjs.map +0 -1
  335. package/.output/server/chunks/build/BrowserBadge-vFb1ERG_.mjs.map +0 -1
  336. package/.output/server/chunks/build/ChartMarkerLines-BXqUpUcs.mjs.map +0 -1
  337. package/.output/server/chunks/build/ChartTooltip-DoF6Smyc.mjs.map +0 -1
  338. package/.output/server/chunks/build/CodeBlock-CmvKHaq8.mjs.map +0 -1
  339. package/.output/server/chunks/build/DataLocationCard-ChV02QJj.mjs.map +0 -1
  340. package/.output/server/chunks/build/DiagnosisPanel-C_ndadzP.mjs.map +0 -1
  341. package/.output/server/chunks/build/DiagnosisResult-GAjo6Lt3.mjs.map +0 -1
  342. package/.output/server/chunks/build/DurationValue-CObiBDnH.mjs.map +0 -1
  343. package/.output/server/chunks/build/FeatureUnavailable-Buoyoqx1.mjs.map +0 -1
  344. package/.output/server/chunks/build/GetStartedWizard-tL3U_qM1.mjs.map +0 -1
  345. package/.output/server/chunks/build/HelpHint-C96TlqxY.mjs.map +0 -1
  346. package/.output/server/chunks/build/MetaStripGroup-Cp2WCQf7.mjs.map +0 -1
  347. package/.output/server/chunks/build/NavbarActions-VCHW0u67.mjs.map +0 -1
  348. package/.output/server/chunks/build/ProjectTestCasesTable-saHYJoyQ.mjs.map +0 -1
  349. package/.output/server/chunks/build/RunReports-CKYYRC59.mjs.map +0 -1
  350. package/.output/server/chunks/build/RunStatusBadge-CWhmAmKb.mjs.map +0 -1
  351. package/.output/server/chunks/build/SectionCard-BB1O3uXd.mjs.map +0 -1
  352. package/.output/server/chunks/build/SettingsField-CEasBHu3.mjs.map +0 -1
  353. package/.output/server/chunks/build/TestCaseHistoryChart-BgI6P_zS.mjs.map +0 -1
  354. package/.output/server/chunks/build/TestStatusBar-DR8jM5th.mjs.map +0 -1
  355. package/.output/server/chunks/build/_id_-B7Dw490u.mjs.map +0 -1
  356. package/.output/server/chunks/build/_id_-DVPb1S93.mjs.map +0 -1
  357. package/.output/server/chunks/build/_id_-kkexEH_q.mjs.map +0 -1
  358. package/.output/server/chunks/build/about-C4AbyQ4q.mjs.map +0 -1
  359. package/.output/server/chunks/build/account-B45bYZd1.mjs.map +0 -1
  360. package/.output/server/chunks/build/auto-heal-BnTdKHQq.mjs.map +0 -1
  361. package/.output/server/chunks/build/help-content-BK3jcgLw.mjs.map +0 -1
  362. package/.output/server/chunks/build/import-ibAn_HB9.mjs.map +0 -1
  363. package/.output/server/chunks/build/index-2GmuPNF-.mjs.map +0 -1
  364. package/.output/server/chunks/build/index-D5A0DW7Y.mjs.map +0 -1
  365. package/.output/server/chunks/build/index-DreB_S-d.mjs.map +0 -1
  366. package/.output/server/chunks/build/index-KsRegEjT.mjs.map +0 -1
  367. package/.output/server/chunks/build/mcp-Dwj29-uG.mjs.map +0 -1
  368. package/.output/server/chunks/build/notifications-CjAn5FJj.mjs.map +0 -1
  369. package/.output/server/chunks/build/performance-DRzcu_c7.mjs.map +0 -1
  370. package/.output/server/chunks/build/pr-feedback-DR60oGBf.mjs.map +0 -1
  371. package/.output/server/chunks/build/selections-BjjolRZ9.mjs.map +0 -1
  372. package/.output/server/chunks/build/settings-B3NWV9tu.mjs.map +0 -1
  373. package/.output/server/chunks/build/settings-metadata-DwJk8uSt.mjs.map +0 -1
  374. package/.output/server/chunks/build/storage-C1O-FC0U.mjs.map +0 -1
  375. package/.output/server/chunks/build/tags-dsvYrnii.mjs.map +0 -1
  376. package/.output/server/chunks/build/test-cases-CFiOuyK6.mjs.map +0 -1
  377. package/.output/server/chunks/build/test-functions-CbmBi6az.mjs.map +0 -1
  378. package/.output/server/chunks/build/useDesktopDownload-R_RWSgUV.mjs.map +0 -1
  379. package/.output/server/chunks/build/useDesktopLocalRuns-BdELBy0Y.mjs.map +0 -1
  380. package/.output/server/chunks/build/useDesktopProjectLink-IUN7SIP2.mjs.map +0 -1
  381. package/.output/server/chunks/build/useSettingsNav-Dg87E7kY.mjs.map +0 -1
  382. package/.output/server/chunks/build/users-DgsoiXxQ.mjs.map +0 -1
@@ -1 +1 @@
1
- import{_ as R}from"./Drh1_ASq.js";import{b as k,d as U,f as Y,t as j,u as G,_ as K,a as q,C as J}from"./DtGJeysS.js";import{_ as Q}from"./CfV2N201.js";import{d as Z,o as n,c as l,b as s,e as v,f as w,F as T,z as C,t as x,h as H,n as tt,g as h,k as et,i as at,l as b,v as S}from"./BdQ7kfxJ.js";const st={class:"w-full"},ot=["x","y","width","height","fill"],nt=["x","y"],rt=["x","width","height","fill","onClick","onMouseenter"],it={class:"font-semibold mb-1"},ut={class:"space-y-0.5"},lt={key:0,class:"text-gray-400 text-xs"},dt=Z({__name:"TestCaseHistoryChart",props:{data:{},height:{default:200},markers:{default:()=>[]}},emits:["marker-click"],setup(g,{emit:E}){const p=g,I=E,i=S(()=>!p.data||p.data.length===0?[]:[...p.data].sort((t,r)=>new Date(t.startTime).getTime()-new Date(r.startTime).getTime()).map(t=>({id:t.id,runId:t.runId,date:new Date(t.startTime),duration:t.duration??0,status:t.status,runStatus:t.runStatus}))),[O,X,$]=J,N=e=>e==="passed"?O.color:e==="failed"||e==="timedOut"||e==="timedout"?X.color:$.color,A=S(()=>Math.max(1,...i.value.map(e=>e.duration))),y=S(()=>i.value.map(e=>e.date));function D(e,t,r){const u=k(i.value.length,e,16);return i.value.map((m,c)=>{const d=Math.max(2,t-r(m.duration));return{d:m,slotX:c*u.slotWidth,slotWidth:u.slotWidth,barX:u.xOf(c),barWidth:u.barWidth,barY:t-d,barHeight:d,color:N(m.status)}})}function B(e){const{centerOf:t}=k(i.value.length,e);return U(y.value,Math.max(2,Math.floor(e/80))).map(r=>({x:t(r),label:Y(y.value[r])}))}function F(e,t){const{centerOf:r}=k(i.value.length,e),u=i.value.map((m,c)=>r(c));return j(y.value,u,new Date(t).getTime())}function L(e){return e>=1e3?`${Math.round(e/100)/10}s`:`${e}ms`}const{data:o,pos:P,show:V,move:z,hide:W}=G();return(e,t)=>{const r=R,u=K,m=Q,c=q;return n(),l("div",st,[s(i).length>0?(n(),v(u,{key:0,height:g.height,"y-max":s(A),"y-format":L},{default:w(({plotWidth:d,plotHeight:_,yScale:M})=>[(n(!0),l(T,null,C(D(d,_,M),a=>(n(),l("rect",{key:a.d.id,x:a.barX,y:a.barY,width:a.barWidth,height:a.barHeight,fill:a.color},null,8,ot))),128)),(n(!0),l(T,null,C(B(d),a=>(n(),l("text",{key:a.x,x:a.x,y:_+14,"text-anchor":"middle",class:"fill-gray-400 dark:fill-gray-500 text-[10px]"},x(a.label),9,nt))),128)),H(r,{markers:g.markers,"x-of":a=>F(d,a),"plot-height":_,onMarkerClick:t[0]||(t[0]=a=>I("marker-click",a))},null,8,["markers","x-of","plot-height"]),(n(!0),l(T,null,C(D(d,_,M),a=>(n(),l("rect",{key:`hover-${a.d.id}`,x:a.slotX,y:0,width:a.slotWidth,height:_,fill:s(o)?.id===a.d.id?"rgb(148 163 184 / 0.15)":"transparent",class:"cursor-pointer",onClick:f=>("navigateTo"in e?e.navigateTo:s(tt))(`/test-runs/${a.d.runId}`),onMouseenter:f=>s(V)(f,a.d),onMousemove:t[1]||(t[1]=f=>s(z)(f)),onMouseleave:t[2]||(t[2]=f=>s(W)())},null,40,rt))),128))]),_:1},8,["height","y-max"])):(n(),v(m,{key:1,text:"No history data available to display chart"})),s(o)?(n(),v(c,{key:2,pos:s(P)},{default:w(()=>[h("div",it,x(s(o).date.toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})),1),h("div",ut,[h("div",null,[t[3]||(t[3]=et(" Status: ",-1)),h("span",{class:at(["font-medium capitalize",s(o).status==="passed"?"text-green-600":s(o).status==="failed"||s(o).status==="timedOut"||s(o).status==="timedout"?"text-red-600":""])},x(s(o).status),3)]),h("div",null,"Duration: "+x(s(o).duration)+"ms",1),s(o).runStatus?(n(),l("div",lt,"Run status: "+x(s(o).runStatus),1)):b("",!0)]),t[4]||(t[4]=h("div",{class:"text-gray-400 text-xs mt-1"},"Click to view run details",-1))]),_:1},8,["pos"])):b("",!0)])}}}),ft=Object.assign(dt,{__name:"TestCaseHistoryChart"});export{ft as _};
1
+ import{_ as R}from"./BrxUH8qL.js";import{b as k,d as U,f as Y,t as j,u as G,_ as K,a as q,C as J}from"./CkhOMiiO.js";import{_ as Q}from"./Dn_-RkxP.js";import{d as Z,o as n,c as l,b as s,e as v,f as w,F as T,z as C,t as x,n as H,h as tt,g as h,k as et,i as at,l as b,v as S}from"./1QWBzxLM.js";const st={class:"w-full"},ot=["x","y","width","height","fill"],nt=["x","y"],rt=["x","width","height","fill","onClick","onMouseenter"],it={class:"font-semibold mb-1"},ut={class:"space-y-0.5"},lt={key:0,class:"text-gray-400 text-xs"},dt=Z({__name:"TestCaseHistoryChart",props:{data:{},height:{default:200},markers:{default:()=>[]}},emits:["marker-click"],setup(g,{emit:E}){const p=g,I=E,i=S(()=>!p.data||p.data.length===0?[]:[...p.data].sort((t,r)=>new Date(t.startTime).getTime()-new Date(r.startTime).getTime()).map(t=>({id:t.id,runId:t.runId,date:new Date(t.startTime),duration:t.duration??0,status:t.status,runStatus:t.runStatus}))),[O,X,$]=J,N=e=>e==="passed"?O.color:e==="failed"||e==="timedOut"||e==="timedout"?X.color:$.color,A=S(()=>Math.max(1,...i.value.map(e=>e.duration))),y=S(()=>i.value.map(e=>e.date));function D(e,t,r){const u=k(i.value.length,e,16);return i.value.map((m,c)=>{const d=Math.max(2,t-r(m.duration));return{d:m,slotX:c*u.slotWidth,slotWidth:u.slotWidth,barX:u.xOf(c),barWidth:u.barWidth,barY:t-d,barHeight:d,color:N(m.status)}})}function B(e){const{centerOf:t}=k(i.value.length,e);return U(y.value,Math.max(2,Math.floor(e/80))).map(r=>({x:t(r),label:Y(y.value[r])}))}function F(e,t){const{centerOf:r}=k(i.value.length,e),u=i.value.map((m,c)=>r(c));return j(y.value,u,new Date(t).getTime())}function L(e){return e>=1e3?`${Math.round(e/100)/10}s`:`${e}ms`}const{data:o,pos:P,show:V,move:z,hide:W}=G();return(e,t)=>{const r=R,u=K,m=Q,c=q;return n(),l("div",st,[s(i).length>0?(n(),v(u,{key:0,height:g.height,"y-max":s(A),"y-format":L},{default:w(({plotWidth:d,plotHeight:_,yScale:M})=>[(n(!0),l(T,null,C(D(d,_,M),a=>(n(),l("rect",{key:a.d.id,x:a.barX,y:a.barY,width:a.barWidth,height:a.barHeight,fill:a.color},null,8,ot))),128)),(n(!0),l(T,null,C(B(d),a=>(n(),l("text",{key:a.x,x:a.x,y:_+14,"text-anchor":"middle",class:"fill-gray-400 dark:fill-gray-500 text-[10px]"},x(a.label),9,nt))),128)),(n(!0),l(T,null,C(D(d,_,M),a=>(n(),l("rect",{key:`hover-${a.d.id}`,x:a.slotX,y:0,width:a.slotWidth,height:_,fill:s(o)?.id===a.d.id?"rgb(148 163 184 / 0.15)":"transparent",class:"cursor-pointer",onClick:f=>("navigateTo"in e?e.navigateTo:s(H))(`/test-runs/${a.d.runId}`),onMouseenter:f=>s(V)(f,a.d),onMousemove:t[0]||(t[0]=f=>s(z)(f)),onMouseleave:t[1]||(t[1]=f=>s(W)())},null,40,rt))),128)),tt(r,{markers:g.markers,"x-of":a=>F(d,a),"plot-height":_,onMarkerClick:t[2]||(t[2]=a=>I("marker-click",a))},null,8,["markers","x-of","plot-height"])]),_:1},8,["height","y-max"])):(n(),v(m,{key:1,text:"No history data available to display chart"})),s(o)?(n(),v(c,{key:2,pos:s(P)},{default:w(()=>[h("div",it,x(s(o).date.toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})),1),h("div",ut,[h("div",null,[t[3]||(t[3]=et(" Status: ",-1)),h("span",{class:at(["font-medium capitalize",s(o).status==="passed"?"text-green-600":s(o).status==="failed"||s(o).status==="timedOut"||s(o).status==="timedout"?"text-red-600":""])},x(s(o).status),3)]),h("div",null,"Duration: "+x(s(o).duration)+"ms",1),s(o).runStatus?(n(),l("div",lt,"Run status: "+x(s(o).runStatus),1)):b("",!0)]),t[4]||(t[4]=h("div",{class:"text-gray-400 text-xs mt-1"},"Click to view run details",-1))]),_:1},8,["pos"])):b("",!0)])}}}),ft=Object.assign(dt,{__name:"TestCaseHistoryChart"});export{ft as _};
@@ -0,0 +1 @@
1
+ import{_ as he,a as ke}from"./BuMX-4RF.js";import{_ as je,a as $e}from"./B82vqOZe.js";import{_ as Re}from"./ChuJzPWz.js";import{_ as Ce,a as Pe}from"./BS91Og__.js";import{d as J,K as Ne,q as Q,C as we,am as Te,a as Z,b as i,o,c as l,h as s,_ as De,g as r,f as n,k as p,j as G,t as N,e as _,l as y,L as Fe,r as v,s as Ue,F as L,E as Le,I as Se,z as K,H as ze,v as V,J as Be,n as Ke}from"./1QWBzxLM.js";import{_ as Ve}from"./mi7tdFxN.js";import{_ as Ie}from"./DxBrlj7b.js";import{_ as Me}from"./Bc6Zr-Xn.js";import{_ as Ee}from"./DvSHenmZ.js";import{_ as He}from"./DvYU87_a.js";import{_ as Oe}from"./D_dhjJvR.js";import{_ as qe}from"./uspGXbik.js";import{_ as Ae}from"./BuXJR5tn.js";import{_ as Je}from"./Dly7wCCl.js";import{_ as Qe}from"./Dn_-RkxP.js";import{_ as Ze,a as Ge}from"./DmeogbGY.js";import{p as We,a as Xe,s as Ye}from"./Bp31ZRcA.js";import{e as W,j as P}from"./D4mPjHHR.js";import{_ as et}from"./Cnm0d_7S.js";import{_ as tt}from"./CtQMagSz.js";import{u as A}from"./CU_2YLhT.js";import{o as ot,s as I}from"./DGnQ69wW.js";import"./CiCUZGFZ.js";import"./CHz7LJIX.js";import"./BnUQ3i5l.js";import"./D-c8ZSws.js";import"./VBTxfbqU.js";import"./B4lvHjBe.js";import"./Bl0xzETD.js";import"./DoDo3VF2.js";import"./UAmyrRCI.js";import"./DpM8IgHL.js";import"./Bp1WeQ0_.js";const st={key:0},at={key:0,class:"rounded-lg border border-dashed border-default p-3 flex flex-wrap items-center gap-3"},nt={key:1,class:"rounded-lg border border-default p-3 space-y-3"},lt={class:"flex items-center justify-between gap-3"},rt={class:"flex items-center gap-2 min-w-0 text-sm"},it={class:"text-xs break-all"},ct={class:"flex items-center gap-1.5 shrink-0"},dt=J({__name:"DesktopNewProjectFolder",props:{folder:{default:null},folderModifiers:{}},emits:Fe(["detected"],["update:folder"]),setup(M,{emit:k}){const b=Ne(M,"folder"),S=k,z=Q(),w=v(!1);we(()=>{w.value=!!Te()});const f=v(null),g=v(!1);async function T(){g.value=!0;try{const c=await We();c&&(b.value=c)}catch(c){z.add({title:"Could not open the folder picker",description:W(c),color:"error"})}finally{g.value=!1}}function j(){b.value=null}return Z(b,async c=>{f.value=c?await Xe(c):null,f.value&&S("detected",f.value)},{immediate:!0}),(c,u)=>{const D=De,R=G,x=Ze;return i(w)?(o(),l("div",st,[b.value?(o(),l("div",nt,[r("div",lt,[r("div",rt,[s(D,{name:"i-lucide-folder-check",class:"size-4 shrink-0 text-primary"}),r("code",it,N(b.value),1)]),r("div",ct,[s(R,{size:"xs",color:"neutral",variant:"soft",icon:"i-lucide-folder-search",loading:i(g),onClick:T},{default:n(()=>[...u[2]||(u[2]=[p(" Change ",-1)])]),_:1},8,["loading"]),s(R,{size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-x",disabled:i(g),onClick:j},{default:n(()=>[...u[3]||(u[3]=[p(" Clear ",-1)])]),_:1},8,["disabled"])])]),i(f)?(o(),_(x,{key:0,inspection:i(f)},null,8,["inspection"])):y("",!0),u[4]||(u[4]=r("p",{class:"text-xs text-muted"},"The folder is linked to the new project for local runs and IDE links.",-1))])):(o(),l("div",at,[s(D,{name:"i-lucide-folder-search",class:"size-5 shrink-0 text-muted"}),u[1]||(u[1]=r("div",{class:"min-w-0 flex-1 text-sm"},[r("p",{class:"font-medium"},"Start from a folder on this machine"),r("p",{class:"text-xs text-muted"},"Detects the project name and checks the Playwright + Piwi reporter setup.")],-1)),s(R,{color:"neutral",variant:"soft",size:"sm",icon:"i-lucide-folder-open",loading:i(g),onClick:T},{default:n(()=>[...u[0]||(u[0]=[p(" Choose folder… ",-1)])]),_:1},8,["loading"])]))])):y("",!0)}}}),ut=Object.assign(dt,{__name:"DesktopNewProjectFolder"}),mt={class:"flex flex-wrap items-center gap-3 mb-4"},pt={key:0,class:"flex flex-wrap items-center gap-2"},_t={class:"text-sm text-muted shrink-0 inline-flex items-center gap-1"},ft=["onClick"],gt={class:"flex flex-col gap-1"},xt={class:"flex items-center gap-2"},yt={key:0,class:"flex flex-wrap gap-1"},vt={key:0,class:"text-xs text-gray-600 italic"},bt={key:1},ht={key:1,class:"text-xs text-gray-600 italic"},kt={key:0,class:"flex items-center gap-1 flex-wrap"},jt={key:0,class:"text-xs font-medium bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded"},$t={key:1,class:"text-xs text-gray-500"},Rt={key:1,class:"text-xs text-gray-600 italic"},Ct={key:1,class:"text-xs text-gray-600 italic"},Pt={key:1,class:"text-xs text-gray-600 italic"},Nt={class:"flex justify-end gap-2"},wt={key:1,class:"space-y-2","aria-busy":"true"},Tt={key:2,class:"text-center py-12 text-gray-500"},Dt={class:"text-xs text-gray-400 max-w-sm"},Ft={class:"space-y-5"},Ut={class:"flex w-full justify-end gap-2"},_o=J({__name:"index",setup(M){Ue({title:"Projects — Piwi Dashboard"});const{data:k,refresh:b,status:S}=A("/api/projects",{key:"projects",lazy:!0,default:()=>[],transform:a=>a.items},"$6DHNZL9pIE"),{data:z,refresh:w}=A("/api/tags",{lazy:!0},"$FLI1EBmEg_"),f=Q(),g=V(()=>z.value?.items||[]),T=V(()=>S.value==="pending"&&!k.value?.length),j=v(""),c=v([]),u=V(()=>{let a=k.value||[];if(j.value.trim()){const t=j.value.trim().toLowerCase();a=a.filter(m=>(m.label||m.name).toLowerCase().includes(t)||m.name.toLowerCase().includes(t))}return c.value.length>0&&(a=a.filter(t=>c.value.some(m=>(t.tags||[]).some(h=>h.id===m)))),a});function D(a){const t=c.value.indexOf(a);t===-1?c.value.push(a):c.value.splice(t,1)}function R(a){return c.value.includes(a)}const x=v(!1),X=ot({name:I().min(1,"Project name is required").max(100),label:I().optional(),description:I().optional()}),d=Be({name:"",label:"",description:""}),F=v([]),B=v(!1),C=v(null);function Y(a){a.suggestedName&&(d.name=a.suggestedName)}Z(x,a=>{a||(C.value=null)});function ee(){d.name="",d.label="",d.description="",F.value=[],C.value=null}async function te(){if(d.name?.trim())try{B.value=!0;const a=await $fetch("/api/projects",{method:"POST",body:{name:d.name.trim(),label:d.label?.trim()||null,description:d.description?.trim()||null,tagIds:F.value.map(h=>h.id)}}),t=C.value;let m=!1;if(t&&a?.project?.id!=null)try{await Ye(a.project.id,t),m=!0}catch(h){f.add({title:"Project created, but the folder could not be linked",description:W(h),color:"warning"})}if(f.add({title:"Project created",description:m?`Project "${d.name}" has been created and linked to its folder`:`Project "${d.name}" has been created`,color:"success"}),x.value=!1,ee(),m&&a?.project?.id!=null){await Ke(`/projects/${a.project.id}`);return}await b()}catch(a){const t=a&&typeof a=="object"&&"data"in a?a.data?.message:void 0;f.add({title:"Failed to create project",description:t||"An error occurred",color:"error"})}finally{B.value=!1}}const oe=[{header:"Project",columns:[{accessorKey:"name",header:P("Name")},{accessorKey:"totalRuns",header:P("Runs")}]},{accessorKey:"latestRunData",header:"Latest run",columns:[{accessorKey:"latestRun",header:P("Date")},{accessorKey:"branch",header:"Branch"},{accessorKey:"duration",header:P("Duration")},{accessorKey:"status",header:P("Status")},{accessorKey:"testRatio",header:"Test status"},{accessorKey:"report",header:"Reports"}]},{accessorKey:"actions",header:"Project actions"}];return(a,t)=>{const m=he,h=ke,E=je,se=Re,ae=Pe,ne=Se,H=Ve,$=G,O=ze,le=Ie,re=Me,ie=Ee,ce=He,de=Oe,ue=qe,me=Ae,q=Je,pe=$e,_e=Qe,fe=Ce,ge=ut,xe=Ge,ye=et,ve=tt,be=Le;return o(),l(L,null,[s(fe,{id:"projects"},{header:n(()=>[s(ae,null,{leading:n(()=>[s(m),s(h,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects"}]})]),right:n(()=>[s(se,{actions:[{label:"New project",icon:"i-lucide-plus",onClick:()=>x.value=!0},{label:"Refresh",icon:"i-lucide-refresh-cw",variant:"outline",onClick:()=>i(b)()}]},{leading:n(()=>[s(E,{topic:"projects.table",size:"sm"})]),_:1},8,["actions"])]),_:1})]),body:n(()=>[r("div",mt,[s(ne,{modelValue:j.value,"onUpdate:modelValue":t[0]||(t[0]=e=>j.value=e),icon:"i-lucide-search",placeholder:"Search projects by name...",class:"min-w-48 flex-1",ui:{base:"w-full"}},null,8,["modelValue"]),g.value.length>0?(o(),l("div",pt,[r("span",_t,[t[11]||(t[11]=p(" Filter by tag (any match): ",-1)),s(E,{topic:"projects.tag-filter"})]),(o(!0),l(L,null,K(g.value,e=>(o(),l("button",{key:e.id,type:"button",class:"cursor-pointer focus:outline-none",onClick:U=>D(e.id)},[s(H,{text:e.text,color:e.color,variant:R(e.id)?"solid":"outline"},null,8,["text","color","variant"])],8,ft))),128)),c.value.length>0?(o(),_($,{key:0,size:"xs",variant:"ghost",color:"neutral",icon:"i-lucide-x",label:"Clear filters",onClick:t[1]||(t[1]=e=>c.value=[])})):y("",!0)])):y("",!0)]),u.value.length>0?(o(),_(me,{key:0,"min-width":"60rem",bleed:!1},{default:n(()=>[s(ue,{data:u.value,columns:oe,ui:{base:"table-fixed border-separate border-spacing-0",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"}},{"name-cell":n(({row:e})=>[r("div",gt,[r("div",xt,[s(O,{to:`/projects/${e.original.id}`,class:"text-primary hover:underline font-medium"},{default:n(()=>[p(N(e.original.label||e.original.name),1)]),_:2},1032,["to"])]),e.original.tags?.length?(o(),l("div",yt,[(o(!0),l(L,null,K(e.original.tags,U=>(o(),_(H,{key:U.id,text:U.text,color:U.color},null,8,["text","color"]))),128))])):y("",!0)])]),"totalRuns-cell":n(({row:e})=>[e.original.totalRuns===0?(o(),l("span",vt,"No data")):(o(),l("span",bt,N(e.original.totalRuns)+" runs",1))]),"latestRun-cell":n(({row:e})=>[e.original.latestRun?(o(),_(le,{key:0,date:e.original.latestRun.startTime,class:"text-xs text-gray-600"},null,8,["date"])):(o(),l("span",ht,"No data"))]),"branch-cell":n(({row:e})=>[e.original.latestRun?.metadata?.scm?(o(),l("div",kt,[e.original.latestRun.metadata.scm.branch?(o(),l("span",jt,N(e.original.latestRun.metadata.scm.branch),1)):y("",!0),e.original.latestRun.metadata.scm.commit?(o(),l("code",$t,N(e.original.latestRun.metadata.scm.commit.substring(0,7)),1)):y("",!0)])):y("",!0)]),"duration-cell":n(({row:e})=>[e.original.latestRun?.duration!=null?(o(),_(re,{key:0,ms:e.original.latestRun.duration,class:"text-sm text-gray-600"},null,8,["ms"])):(o(),l("span",Rt,"No data"))]),"status-cell":n(({row:e})=>[e.original.latestRun?(o(),_(ie,{key:0,status:e.original.latestRun.status},null,8,["status"])):(o(),l("span",Ct,"No data"))]),"testRatio-cell":n(({row:e})=>[e.original.latestRun?(o(),_(ce,{key:0,passed:e.original.latestRun.passedTests,failed:e.original.latestRun.failedTests,skipped:e.original.latestRun.skippedTests,flaky:e.original.latestRun.flakyTests,"did-not-run":e.original.latestRun.didNotRunTests??0,total:e.original.latestRun.totalTests},null,8,["passed","failed","skipped","flaky","did-not-run","total"])):(o(),l("span",Pt,"No data"))]),"report-cell":n(({row:e})=>[e.original.latestRun?(o(),_(de,{key:0,reports:e.original.latestRun.reports},null,8,["reports"])):y("",!0)]),"actions-header":n(()=>[...t[12]||(t[12]=[r("div",{class:"text-right"},"Project actions",-1)])]),"actions-cell":n(({row:e})=>[r("div",Nt,[s($,{to:`/projects/${e.original.id}`,size:"sm",variant:"outline"},{default:n(()=>[...t[13]||(t[13]=[p("View details",-1)])]),_:1},8,["to"]),s($,{to:`/projects/${e.original.id}/edit`,size:"sm",variant:"ghost",icon:"i-lucide-pencil"},null,8,["to"])])]),_:1},8,["data"])]),_:1})):T.value?(o(),l("div",wt,[t[14]||(t[14]=r("span",{class:"sr-only",role:"status"},"Loading projects…",-1)),s(q,{class:"h-10 w-full rounded-lg"}),(o(),l(L,null,K(6,e=>s(q,{key:e,class:"h-14 w-full rounded-lg"})),64))])):i(k)&&i(k).length>0?(o(),l("div",Tt,[...t[15]||(t[15]=[r("p",{class:"text-lg mb-2"},"No projects match your search",-1),r("p",{class:"text-sm"},"Try adjusting your search or filters",-1)])])):(o(),_(_e,{key:3,icon:"i-lucide-rocket",text:"No projects yet"},{default:n(()=>[r("p",Dt,[t[18]||(t[18]=p(" Projects are created automatically once the reporter submits its first run — see the ",-1)),s(O,{to:"/",class:"text-primary hover:underline"},{default:n(()=>[...t[16]||(t[16]=[p("home page",-1)])]),_:1}),t[19]||(t[19]=p(" for a copy-paste setup snippet, or the ",-1)),s(pe,{to:"reporter","no-icon":"",class:"text-primary hover:underline"},{default:n(()=>[...t[17]||(t[17]=[p("reporter docs",-1)])]),_:1}),t[20]||(t[20]=p(". ",-1))]),s($,{icon:"i-lucide-plus",label:"New project",variant:"ghost",size:"sm",class:"mt-2",onClick:t[2]||(t[2]=e=>x.value=!0)})]),_:1}))]),_:1}),s(be,null,{default:n(()=>[s(ve,{open:x.value,title:"Create new project","onUpdate:open":t[10]||(t[10]=e=>x.value=e)},{body:n(()=>[r("div",Ft,[s(ge,{folder:C.value,"onUpdate:folder":t[3]||(t[3]=e=>C.value=e),onDetected:Y},null,8,["folder"]),s(ye,{schema:i(X),state:i(d)},{default:n(()=>[s(xe,{mode:"create",name:i(d).name,"onUpdate:name":t[4]||(t[4]=e=>i(d).name=e),label:i(d).label,"onUpdate:label":t[5]||(t[5]=e=>i(d).label=e),description:i(d).description,"onUpdate:description":t[6]||(t[6]=e=>i(d).description=e),tags:F.value,"onUpdate:tags":t[7]||(t[7]=e=>F.value=e),"all-tags":g.value,onTagCreated:t[8]||(t[8]=e=>i(w)())},null,8,["name","label","description","tags","all-tags"])]),_:1},8,["schema","state"])])]),footer:n(()=>[r("div",Ut,[s($,{color:"neutral",variant:"ghost",label:"Cancel",onClick:t[9]||(t[9]=e=>x.value=!1)}),s($,{label:"Create project",icon:"i-lucide-plus",loading:B.value,onClick:te},null,8,["loading"])])]),_:1},8,["open"])]),_:1})],64)}}});export{_o as default};
@@ -1 +1 @@
1
- import{a3 as S,a6 as V,a_ as P,a4 as A,a5 as B,r as F,o as r,e as v,V as b,b as a,j as O,v as q,a8 as w,a2 as j,f as k,g as L,i as u,c as f,F as C,z as N,h as y,y as D,a$ as K,b0 as U,U as d,_ as $,aG as T,l as m,aF as I,k as E,t as G,W as R}from"./BdQ7kfxJ.js";import{a as W}from"./Bo73sAu8.js";const H={base:"hidden lg:flex",variants:{side:{left:"",right:""}}},X={__name:"UDashboardSidebarCollapse",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(g){const i=S("dashboardSidebarCollapse",g),l=V(P(i,"icon","side","class")),{t:p}=A(),o=B(),{sidebarCollapsed:c,collapseSidebar:s}=W({sidebarCollapsed:F(!1),collapseSidebar:()=>{}}),n=q(()=>w({extend:H,...o.ui?.dashboardSidebarCollapse||{}}));return(_,e)=>(r(),v(O,b({...a(l),icon:a(i).icon||(a(c)?a(o).ui.icons.panelOpen:a(o).ui.icons.panelClose),"aria-label":a(c)?a(p)("dashboardSidebarCollapse.expand"):a(p)("dashboardSidebarCollapse.collapse"),..._.$attrs},{class:n.value({class:[a(i).ui?.base,a(i).class],side:a(i).side}),onClick:e[0]||(e[0]=t=>a(s)?.(!a(c)))}),null,16,["class"]))}},J={slots:{root:"relative min-w-0",list:"flex items-center gap-1.5",item:"flex min-w-0",link:"group relative flex items-center gap-1.5 text-sm min-w-0 rounded-md",linkLeadingIcon:"shrink-0 size-5",linkLeadingAvatar:"shrink-0",linkLeadingAvatarSize:"2xs",linkLabel:"truncate",separator:"flex",separatorIcon:"shrink-0 size-5 text-muted"},variants:{active:{true:{link:"font-semibold"},false:{link:"text-muted font-medium"}},disabled:{true:{link:"cursor-not-allowed opacity-75"}},to:{true:""},color:{primary:{link:"outline-primary/25 focus-visible:outline-3"},secondary:{link:"outline-secondary/25 focus-visible:outline-3"},success:{link:"outline-success/25 focus-visible:outline-3"},info:{link:"outline-info/25 focus-visible:outline-3"},warning:{link:"outline-warning/25 focus-visible:outline-3"},error:{link:"outline-error/25 focus-visible:outline-3"},neutral:{link:"outline-inverted/25 focus-visible:outline-3"}}},compoundVariants:[{disabled:!1,active:!1,to:!0,class:{link:["hover:text-default","transition-colors"]}},{color:"primary",active:!0,class:{link:"text-primary"}},{color:"secondary",active:!0,class:{link:"text-secondary"}},{color:"success",active:!0,class:{link:"text-success"}},{color:"info",active:!0,class:{link:"text-info"}},{color:"warning",active:!0,class:{link:"text-warning"}},{color:"error",active:!0,class:{link:"text-error"}},{color:"neutral",active:!0,class:{link:"text-highlighted"}}],defaultVariants:{color:"primary"}},Y={__name:"UBreadcrumb",props:{as:{type:null,required:!1,default:"nav"},items:{type:Array,required:!1},separatorIcon:{type:null,required:!1},color:{type:null,required:!1},labelKey:{type:null,required:!1,default:"label"},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(g){const h=g,i=j(),l=S("breadcrumb",h),{dir:p}=A(),o=B(),c=q(()=>l.separatorIcon||(p.value==="rtl"?o.ui.icons.chevronLeft:o.ui.icons.chevronRight)),s=q(()=>w({extend:J,...o.ui?.breadcrumb||{}})({color:l.color}));return(n,_)=>(r(),v(a(R),{as:a(l).as,"aria-label":"breadcrumb","data-slot":"root",class:u(s.value.root({class:[a(l).ui?.root,a(l).class]}))},{default:k(()=>[L("ol",{"data-slot":"list",class:u(s.value.list({class:a(l).ui?.list}))},[(r(!0),f(C,null,N(a(l).items,(e,t)=>(r(),f(C,{key:t},[L("li",{"data-slot":"item",class:u(s.value.item({class:[a(l).ui?.item,e.ui?.item]}))},[y(D,b({ref_for:!0},a(K)(e),{custom:""}),{default:k(({active:x,...z})=>[y(U,b({ref_for:!0},z,{as:"span","aria-current":(e.active??x)&&t===a(l).items.length-1?"page":void 0,"data-slot":"link",class:s.value.link({class:[a(l).ui?.link,e.ui?.link,e.class],active:e.active??t===a(l).items.length-1,disabled:!!e.disabled,to:!!e.to})}),{default:k(()=>[d(n.$slots,e.slot||"item",{item:e,active:e.active??t===a(l).items.length-1,index:t,ui:s.value},()=>[d(n.$slots,e.slot?`${e.slot}-leading`:"item-leading",{item:e,active:e.active??t===a(l).items.length-1,index:t,ui:s.value},()=>[e.icon?(r(),v($,{key:0,name:e.icon,"data-slot":"linkLeadingIcon",class:u(s.value.linkLeadingIcon({class:[a(l).ui?.linkLeadingIcon,e.ui?.linkLeadingIcon],active:e.active??t===a(l).items.length-1}))},null,8,["name","class"])):e.avatar?(r(),v(T,b({key:1,size:a(l).ui?.linkLeadingAvatarSize||s.value.linkLeadingAvatarSize()},{ref_for:!0},e.avatar,{"data-slot":"linkLeadingAvatar",class:s.value.linkLeadingAvatar({class:[a(l).ui?.linkLeadingAvatar,e.ui?.linkLeadingAvatar],active:e.active??t===a(l).items.length-1})}),null,16,["size","class"])):m("",!0)]),a(I)(e,a(l).labelKey)||i[e.slot?`${e.slot}-label`:"item-label"]?(r(),f("span",{key:0,"data-slot":"linkLabel",class:u(s.value.linkLabel({class:[a(l).ui?.linkLabel,e.ui?.linkLabel]}))},[d(n.$slots,e.slot?`${e.slot}-label`:"item-label",{item:e,active:e.active??t===a(l).items.length-1,index:t},()=>[E(G(a(I)(e,a(l).labelKey)),1)])],2)):m("",!0),d(n.$slots,e.slot?`${e.slot}-trailing`:"item-trailing",{item:e,active:e.active??t===a(l).items.length-1,index:t})])]),_:2},1040,["aria-current","class"])]),_:2},1040)],2),t<a(l).items.length-1?(r(),f("li",{key:0,role:"presentation","aria-hidden":"true","data-slot":"separator",class:u(s.value.separator({class:[a(l).ui?.separator,e.ui?.separator]}))},[d(n.$slots,"separator",{ui:s.value},()=>[y($,{name:c.value,"data-slot":"separatorIcon",class:u(s.value.separatorIcon({class:[a(l).ui?.separatorIcon,e.ui?.separatorIcon]}))},null,8,["name","class"])])],2)):m("",!0)],64))),128))],2)]),_:3},8,["as","class"]))}};export{X as _,Y as a};
1
+ import{a3 as S,a6 as V,a_ as P,a4 as A,a5 as B,r as F,o as r,e as v,V as b,b as a,j as O,v as q,a8 as w,a2 as j,f as k,g as L,i as u,c as f,F as C,z as N,h as y,y as D,a$ as K,b0 as U,U as d,_ as $,aG as T,l as m,aF as I,k as E,t as G,W as R}from"./1QWBzxLM.js";import{a as W}from"./CiCUZGFZ.js";const H={base:"hidden lg:flex",variants:{side:{left:"",right:""}}},X={__name:"UDashboardSidebarCollapse",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(g){const i=S("dashboardSidebarCollapse",g),l=V(P(i,"icon","side","class")),{t:p}=A(),o=B(),{sidebarCollapsed:c,collapseSidebar:s}=W({sidebarCollapsed:F(!1),collapseSidebar:()=>{}}),n=q(()=>w({extend:H,...o.ui?.dashboardSidebarCollapse||{}}));return(_,e)=>(r(),v(O,b({...a(l),icon:a(i).icon||(a(c)?a(o).ui.icons.panelOpen:a(o).ui.icons.panelClose),"aria-label":a(c)?a(p)("dashboardSidebarCollapse.expand"):a(p)("dashboardSidebarCollapse.collapse"),..._.$attrs},{class:n.value({class:[a(i).ui?.base,a(i).class],side:a(i).side}),onClick:e[0]||(e[0]=t=>a(s)?.(!a(c)))}),null,16,["class"]))}},J={slots:{root:"relative min-w-0",list:"flex items-center gap-1.5",item:"flex min-w-0",link:"group relative flex items-center gap-1.5 text-sm min-w-0 rounded-md",linkLeadingIcon:"shrink-0 size-5",linkLeadingAvatar:"shrink-0",linkLeadingAvatarSize:"2xs",linkLabel:"truncate",separator:"flex",separatorIcon:"shrink-0 size-5 text-muted"},variants:{active:{true:{link:"font-semibold"},false:{link:"text-muted font-medium"}},disabled:{true:{link:"cursor-not-allowed opacity-75"}},to:{true:""},color:{primary:{link:"outline-primary/25 focus-visible:outline-3"},secondary:{link:"outline-secondary/25 focus-visible:outline-3"},success:{link:"outline-success/25 focus-visible:outline-3"},info:{link:"outline-info/25 focus-visible:outline-3"},warning:{link:"outline-warning/25 focus-visible:outline-3"},error:{link:"outline-error/25 focus-visible:outline-3"},neutral:{link:"outline-inverted/25 focus-visible:outline-3"}}},compoundVariants:[{disabled:!1,active:!1,to:!0,class:{link:["hover:text-default","transition-colors"]}},{color:"primary",active:!0,class:{link:"text-primary"}},{color:"secondary",active:!0,class:{link:"text-secondary"}},{color:"success",active:!0,class:{link:"text-success"}},{color:"info",active:!0,class:{link:"text-info"}},{color:"warning",active:!0,class:{link:"text-warning"}},{color:"error",active:!0,class:{link:"text-error"}},{color:"neutral",active:!0,class:{link:"text-highlighted"}}],defaultVariants:{color:"primary"}},Y={__name:"UBreadcrumb",props:{as:{type:null,required:!1,default:"nav"},items:{type:Array,required:!1},separatorIcon:{type:null,required:!1},color:{type:null,required:!1},labelKey:{type:null,required:!1,default:"label"},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(g){const h=g,i=j(),l=S("breadcrumb",h),{dir:p}=A(),o=B(),c=q(()=>l.separatorIcon||(p.value==="rtl"?o.ui.icons.chevronLeft:o.ui.icons.chevronRight)),s=q(()=>w({extend:J,...o.ui?.breadcrumb||{}})({color:l.color}));return(n,_)=>(r(),v(a(R),{as:a(l).as,"aria-label":"breadcrumb","data-slot":"root",class:u(s.value.root({class:[a(l).ui?.root,a(l).class]}))},{default:k(()=>[L("ol",{"data-slot":"list",class:u(s.value.list({class:a(l).ui?.list}))},[(r(!0),f(C,null,N(a(l).items,(e,t)=>(r(),f(C,{key:t},[L("li",{"data-slot":"item",class:u(s.value.item({class:[a(l).ui?.item,e.ui?.item]}))},[y(D,b({ref_for:!0},a(K)(e),{custom:""}),{default:k(({active:x,...z})=>[y(U,b({ref_for:!0},z,{as:"span","aria-current":(e.active??x)&&t===a(l).items.length-1?"page":void 0,"data-slot":"link",class:s.value.link({class:[a(l).ui?.link,e.ui?.link,e.class],active:e.active??t===a(l).items.length-1,disabled:!!e.disabled,to:!!e.to})}),{default:k(()=>[d(n.$slots,e.slot||"item",{item:e,active:e.active??t===a(l).items.length-1,index:t,ui:s.value},()=>[d(n.$slots,e.slot?`${e.slot}-leading`:"item-leading",{item:e,active:e.active??t===a(l).items.length-1,index:t,ui:s.value},()=>[e.icon?(r(),v($,{key:0,name:e.icon,"data-slot":"linkLeadingIcon",class:u(s.value.linkLeadingIcon({class:[a(l).ui?.linkLeadingIcon,e.ui?.linkLeadingIcon],active:e.active??t===a(l).items.length-1}))},null,8,["name","class"])):e.avatar?(r(),v(T,b({key:1,size:a(l).ui?.linkLeadingAvatarSize||s.value.linkLeadingAvatarSize()},{ref_for:!0},e.avatar,{"data-slot":"linkLeadingAvatar",class:s.value.linkLeadingAvatar({class:[a(l).ui?.linkLeadingAvatar,e.ui?.linkLeadingAvatar],active:e.active??t===a(l).items.length-1})}),null,16,["size","class"])):m("",!0)]),a(I)(e,a(l).labelKey)||i[e.slot?`${e.slot}-label`:"item-label"]?(r(),f("span",{key:0,"data-slot":"linkLabel",class:u(s.value.linkLabel({class:[a(l).ui?.linkLabel,e.ui?.linkLabel]}))},[d(n.$slots,e.slot?`${e.slot}-label`:"item-label",{item:e,active:e.active??t===a(l).items.length-1,index:t},()=>[E(G(a(I)(e,a(l).labelKey)),1)])],2)):m("",!0),d(n.$slots,e.slot?`${e.slot}-trailing`:"item-trailing",{item:e,active:e.active??t===a(l).items.length-1,index:t})])]),_:2},1040,["aria-current","class"])]),_:2},1040)],2),t<a(l).items.length-1?(r(),f("li",{key:0,role:"presentation","aria-hidden":"true","data-slot":"separator",class:u(s.value.separator({class:[a(l).ui?.separator,e.ui?.separator]}))},[d(n.$slots,"separator",{ui:s.value},()=>[y($,{name:c.value,"data-slot":"separatorIcon",class:u(s.value.separatorIcon({class:[a(l).ui?.separatorIcon,e.ui?.separatorIcon]}))},null,8,["name","class"])])],2)):m("",!0)],64))),128))],2)]),_:3},8,["as","class"]))}};export{X as _,Y as a};
@@ -1 +1 @@
1
- import{d as t,o,c as n,g as l,U as s,a1 as i,i as m}from"./BdQ7kfxJ.js";const r=t({__name:"TableScroller",props:{minWidth:{},bleed:{type:Boolean,default:!0}},setup(e){return(a,c)=>(o(),n("div",{class:m(["overflow-x-auto",e.bleed?"-mx-4 px-4 sm:mx-0 sm:px-0":""])},[l("div",{style:i(e.minWidth?{minWidth:e.minWidth}:void 0)},[s(a.$slots,"default")],4)],2))}}),u=Object.assign(r,{__name:"TableScroller"});export{u as _};
1
+ import{d as t,o,c as n,g as l,U as s,a1 as i,i as m}from"./1QWBzxLM.js";const r=t({__name:"TableScroller",props:{minWidth:{},bleed:{type:Boolean,default:!0}},setup(e){return(a,c)=>(o(),n("div",{class:m(["overflow-x-auto",e.bleed?"-mx-4 px-4 sm:mx-0 sm:px-0":""])},[l("div",{style:i(e.minWidth?{minWidth:e.minWidth}:void 0)},[s(a.$slots,"default")],4)],2))}}),u=Object.assign(r,{__name:"TableScroller"});export{u as _};
@@ -1 +1 @@
1
- import{d as a,o as s,c as n,h as o,_ as c,g as i,t as r,i as d}from"./BdQ7kfxJ.js";const l={class:"text-sm"},_=a({__name:"LoadingState",props:{text:{default:"Loading…"},padded:{type:Boolean,default:!0}},setup(e){return(p,m)=>{const t=c;return s(),n("div",{role:"status","aria-live":"polite","aria-busy":"true",class:d(["flex items-center justify-center gap-2 text-gray-400",e.padded&&"py-8"])},[o(t,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),i("span",l,r(e.text),1)],2)}}}),f=Object.assign(_,{__name:"LoadingState"});export{f as _};
1
+ import{d as a,o as s,c as n,h as o,_ as c,g as i,t as r,i as d}from"./1QWBzxLM.js";const l={class:"text-sm"},_=a({__name:"LoadingState",props:{text:{default:"Loading…"},padded:{type:Boolean,default:!0}},setup(e){return(p,m)=>{const t=c;return s(),n("div",{role:"status","aria-live":"polite","aria-busy":"true",class:d(["flex items-center justify-center gap-2 text-gray-400",e.padded&&"py-8"])},[o(t,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),i("span",l,r(e.text),1)],2)}}}),f=Object.assign(_,{__name:"LoadingState"});export{f as _};
@@ -1 +1 @@
1
- import{d as p,o as s,c as u,h as n,_ as f,g as e,t as a,f as c,k as l,j as x,e as g,l as y,U as k,i as b}from"./BdQ7kfxJ.js";import{a as B}from"./CrsaY0R_.js";const v={class:"text-sm font-medium text-gray-600 dark:text-gray-300"},U={class:"text-sm max-w-md"},h={class:"flex items-center gap-3 mt-1"},z=p({__name:"FeatureUnavailable",props:{title:{},text:{},icon:{default:"i-lucide-plug-zap"},doc:{},to:{default:"/setup"},toLabel:{default:"How to enable"},padded:{type:Boolean,default:!0}},setup(i){const t=i;return(r,o)=>{const d=f,_=x,m=B;return s(),u("div",{class:b(["flex flex-col items-center justify-center gap-2 text-center text-gray-500",t.padded&&"py-8"])},[n(d,{name:t.icon,class:"size-6 opacity-60"},null,8,["name"]),e("p",v,a(t.title),1),e("p",U,a(t.text),1),e("div",h,[n(_,{to:t.to,size:"xs",variant:"soft",icon:"i-lucide-rocket"},{default:c(()=>[l(a(t.toLabel),1)]),_:1},8,["to"]),t.doc?(s(),g(m,{key:0,to:t.doc,class:"text-sm"},{default:c(()=>[...o[0]||(o[0]=[l("Docs",-1)])]),_:1},8,["to"])):y("",!0)]),k(r.$slots,"default")],2)}}}),V=Object.assign(z,{__name:"FeatureUnavailable"});export{V as _};
1
+ import{d as p,o as s,c as u,h as n,_ as f,g as e,t as a,f as c,k as l,j as x,e as g,l as y,U as k,i as b}from"./1QWBzxLM.js";import{a as B}from"./B82vqOZe.js";const v={class:"text-sm font-medium text-gray-600 dark:text-gray-300"},U={class:"text-sm max-w-md"},h={class:"flex items-center gap-3 mt-1"},z=p({__name:"FeatureUnavailable",props:{title:{},text:{},icon:{default:"i-lucide-plug-zap"},doc:{},to:{default:"/setup"},toLabel:{default:"How to enable"},padded:{type:Boolean,default:!0}},setup(i){const t=i;return(r,o)=>{const d=f,_=x,m=B;return s(),u("div",{class:b(["flex flex-col items-center justify-center gap-2 text-center text-gray-500",t.padded&&"py-8"])},[n(d,{name:t.icon,class:"size-6 opacity-60"},null,8,["name"]),e("p",v,a(t.title),1),e("p",U,a(t.text),1),e("div",h,[n(_,{to:t.to,size:"xs",variant:"soft",icon:"i-lucide-rocket"},{default:c(()=>[l(a(t.toLabel),1)]),_:1},8,["to"]),t.doc?(s(),g(m,{key:0,to:t.doc,class:"text-sm"},{default:c(()=>[...o[0]||(o[0]=[l("Docs",-1)])]),_:1},8,["to"])):y("",!0)]),k(r.$slots,"default")],2)}}}),V=Object.assign(z,{__name:"FeatureUnavailable"});export{V as _};
@@ -1 +1 @@
1
- import{d as q,u as C,p as F,q as S,c as g,h as t,f as n,o as i,b as e,e as h,F as T,l as j,g as d,D as A,I as M,x as k,j as D,k as b,t as x,H as z,_ as E,v as V,r as u}from"./BdQ7kfxJ.js";import{_ as H}from"./CZ6WR7uw.js";import{_ as L}from"./CyWOerIG.js";import{_ as O}from"./HGYIpJtg.js";import"./CxwnFFD0.js";const G={class:"min-h-screen flex items-center justify-center bg-elevated/50"},J={class:"flex items-center gap-2"},K={class:"text-2xl font-bold"},Q={class:"mt-4 text-center"},te=q({__name:"reset-password",setup(W){const f=C(),U=F(),$=S(),m=V(()=>f.query.token),p=V(()=>f.query.mode==="invite"),o=u(""),c=u(""),r=u(!1),a=u("");async function B(){if(a.value="",!m.value){a.value="Missing reset token";return}if(o.value.length<8){a.value="Password must be at least 8 characters";return}if(o.value!==c.value){a.value="Passwords do not match";return}r.value=!0;try{await $fetch("/api/auth/reset-password",{method:"POST",body:{token:m.value,password:o.value}}),$.add({title:p.value?"Account activated!":"Password reset!",color:"success"}),U.push("/login")}catch(l){const s=l&&typeof l=="object"&&"data"in l?l.data?.message:void 0;a.value=s||"Invalid or expired link"}finally{r.value=!1}}return(l,s)=>{const I=E,v=H,w=M,y=L,N=D,P=z,R=O;return i(),g("div",G,[t(R,{class:"w-full max-w-md"},{header:n(()=>[d("div",J,[t(I,{name:"i-lucide-lock",class:"size-6"}),d("h1",K,x(e(p)?"Set your password":"Reset your password"),1)])]),default:n(()=>[e(m)?(i(),g(T,{key:1},[e(a)?(i(),h(v,{key:0,color:"error",title:e(a),variant:"subtle",class:"mb-4"},null,8,["title"])):j("",!0),d("form",{class:"space-y-4",onSubmit:A(B,["prevent"])},[t(y,{label:"New password",name:"password",required:""},{default:n(()=>[t(w,{modelValue:e(o),"onUpdate:modelValue":s[0]||(s[0]=_=>k(o)?o.value=_:null),type:"password",placeholder:"Min 8 characters",autocomplete:"new-password",disabled:e(r),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),t(y,{label:"Confirm password",name:"confirmPassword",required:""},{default:n(()=>[t(w,{modelValue:e(c),"onUpdate:modelValue":s[1]||(s[1]=_=>k(c)?c.value=_:null),type:"password",placeholder:"Repeat password",autocomplete:"new-password",disabled:e(r),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),t(N,{type:"submit",block:"",loading:e(r)},{default:n(()=>[b(x(e(p)?"Activate account":"Reset password"),1)]),_:1},8,["loading"])],32)],64)):(i(),h(v,{key:0,color:"error",title:"Invalid link",description:"This link is missing or malformed."})),d("div",Q,[t(P,{to:"/login",class:"text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"},{default:n(()=>[...s[2]||(s[2]=[b(" Back to login ",-1)])]),_:1})])]),_:1})])}}});export{te as default};
1
+ import{d as q,u as C,p as F,q as S,c as g,h as t,f as n,o as i,b as e,e as h,F as T,l as j,g as d,D as A,I as M,x as k,j as D,k as b,t as x,H as z,_ as E,v as V,r as u}from"./1QWBzxLM.js";import{_ as H}from"./B-1zt4pp.js";import{_ as L}from"./B4lvHjBe.js";import{_ as O}from"./AbnDY6Zr.js";import"./Bl0xzETD.js";const G={class:"min-h-screen flex items-center justify-center bg-elevated/50"},J={class:"flex items-center gap-2"},K={class:"text-2xl font-bold"},Q={class:"mt-4 text-center"},te=q({__name:"reset-password",setup(W){const f=C(),U=F(),$=S(),m=V(()=>f.query.token),p=V(()=>f.query.mode==="invite"),o=u(""),c=u(""),r=u(!1),a=u("");async function B(){if(a.value="",!m.value){a.value="Missing reset token";return}if(o.value.length<8){a.value="Password must be at least 8 characters";return}if(o.value!==c.value){a.value="Passwords do not match";return}r.value=!0;try{await $fetch("/api/auth/reset-password",{method:"POST",body:{token:m.value,password:o.value}}),$.add({title:p.value?"Account activated!":"Password reset!",color:"success"}),U.push("/login")}catch(l){const s=l&&typeof l=="object"&&"data"in l?l.data?.message:void 0;a.value=s||"Invalid or expired link"}finally{r.value=!1}}return(l,s)=>{const I=E,v=H,w=M,y=L,N=D,P=z,R=O;return i(),g("div",G,[t(R,{class:"w-full max-w-md"},{header:n(()=>[d("div",J,[t(I,{name:"i-lucide-lock",class:"size-6"}),d("h1",K,x(e(p)?"Set your password":"Reset your password"),1)])]),default:n(()=>[e(m)?(i(),g(T,{key:1},[e(a)?(i(),h(v,{key:0,color:"error",title:e(a),variant:"subtle",class:"mb-4"},null,8,["title"])):j("",!0),d("form",{class:"space-y-4",onSubmit:A(B,["prevent"])},[t(y,{label:"New password",name:"password",required:""},{default:n(()=>[t(w,{modelValue:e(o),"onUpdate:modelValue":s[0]||(s[0]=_=>k(o)?o.value=_:null),type:"password",placeholder:"Min 8 characters",autocomplete:"new-password",disabled:e(r),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),t(y,{label:"Confirm password",name:"confirmPassword",required:""},{default:n(()=>[t(w,{modelValue:e(c),"onUpdate:modelValue":s[1]||(s[1]=_=>k(c)?c.value=_:null),type:"password",placeholder:"Repeat password",autocomplete:"new-password",disabled:e(r),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),t(N,{type:"submit",block:"",loading:e(r)},{default:n(()=>[b(x(e(p)?"Activate account":"Reset password"),1)]),_:1},8,["loading"])],32)],64)):(i(),h(v,{key:0,color:"error",title:"Invalid link",description:"This link is missing or malformed."})),d("div",Q,[t(P,{to:"/login",class:"text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"},{default:n(()=>[...s[2]||(s[2]=[b(" Back to login ",-1)])]),_:1})])]),_:1})])}}});export{te as default};
@@ -1 +1 @@
1
- import{a3 as K,a5 as J,o as X,e as Y,f as V,U as W,i as Q,b as g,W as Z,v as x,a8 as ee,N as te,c4 as se,ar as b,q as ne,p as oe,am as $,aI as ie}from"./BdQ7kfxJ.js";import{e as ae,t as L}from"./CrZhoZuI.js";import{e as le}from"./DwZS0oRm.js";const re={base:"relative",variants:{size:{xs:"",sm:"",md:"",lg:"",xl:""},orientation:{horizontal:"inline-flex -space-x-px",vertical:"flex flex-col -space-y-px"}}},Ie={__name:"UFieldGroup",props:{as:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(n){const i=K("fieldGroup",n),u=J(),l=x(()=>ee({extend:re,...u.ui?.fieldGroup||{}}));return te(se,x(()=>({orientation:i.orientation,size:i.size}))),(r,h)=>(X(),Y(g(Z),{as:g(i).as,"data-orientation":g(i).orientation,class:Q(l.value({orientation:g(i).orientation,class:[g(i).ui?.base,g(i).class]}))},{default:V(()=>[W(r.$slots,"default")]),_:3},8,["as","data-orientation","class"]))}},ce={normal:[],headed:["--headed"],debug:["--debug"],ui:["--ui"]};function ue(n){const a=new Map;for(const i of n){const u=i.projectName||"";a.has(u)||a.set(u,[]),a.get(u).push(i)}return a}function pe(n,a){if(a==="grep"){const l=n.map(r=>ae(r.title));return["--grep",l.length===1?l[0]:`(${l.join("|")})`]}const i=new Set,u=[];for(const l of n){const r=a==="file-line"&&l.line?`${L(l.filePath)}:${l.line}`:L(l.filePath);i.has(r)||(i.add(r),u.push(r))}return u}function de(n){return/[\s"'()|]/.test(n)?`"${n.replace(/"/g,'\\"')}"`:n}function fe(n,a={}){if(n.length===0)return[];const i=a.mode??"file-line",u=a.runMode??"normal",l=Math.min(1e3,Math.max(1,Math.floor(a.repeatEach??1))),r=[];for(const[h,v]of ue(n)){const p=pe(v,i);h&&p.push(`--project=${h}`),p.push(...ce[u]),a.trace&&p.push("--trace=on"),l>1&&p.push(`--repeat-each=${l}`),r.push({args:p,display:["playwright","test",...p.map(de)].join(" ")})}return r}function be(n){return n.progressTotal?`Running ${n.progressDone}/${n.progressTotal}…`:n.steps.length>1?`Running ${n.stepIndex+1}/${n.steps.length}…`:"Running…"}const he={mode:"file-line",runMode:"normal",trace:!1,repeatEach:1},$e=[{label:"Headless",value:"normal",icon:"i-lucide-square-terminal"},{label:"Headed",value:"headed",icon:"i-lucide-app-window"},{label:"Debug (inspector)",value:"debug",icon:"i-lucide-bug"},{label:"UI mode",value:"ui",icon:"i-lucide-layout-grid"}],_e=[{label:"File:line",value:"file-line"},{label:"Title (grep)",value:"grep"},{label:"File only",value:"file"}],S=2e3,k=15,O="piwi:desktop-local-run-options";let ge=1,E=null,w=0,m=[];const _=new Map,R=new Map;let y=null,M=null,P=!1;const ve=/^Running (\d+) tests? using \d+ workers?$/,we=/^\s{1,6}(?:✓|✘|✗|x|ok|-)\s+\d+\s/;function xe(){const n=b("desktop-local-runs",()=>[]),a=b("desktop-local-runs-tray",()=>!1),i=b("desktop-local-run-options",()=>({}));y=ne(),M=oe();const u=x(()=>n.value.filter(e=>e.status==="running").length);function l(){if(!P){P=!0;try{const e=localStorage.getItem(O);e&&(i.value=JSON.parse(e))}catch{}}}function r(e){return l(),{...he,...i.value[String(e)]}}function h(e,t){l();const s={...r(e),...t};i.value={...i.value,[String(e)]:s};try{localStorage.setItem(O,JSON.stringify(i.value))}catch{}}function v(e,t,s){if(e.lines.push({text:t,error:s}),e.lines.length>S&&e.lines.splice(0,e.lines.length-S),s)return;const o=ve.exec(t);o?e.progressTotal=(e.progressTotal??0)+Number(o[1]):we.test(t)&&(e.progressDone=Math.min(e.progressDone+1,e.progressTotal??e.progressDone+1))}function p(e,t){if(t.kind==="exit"){R.get(t.id)?.(t.code);return}v(e,t.line??"",t.kind!=="stdout")}async function T(){if(E)return;const e=ie();if(!e)throw new Error("The desktop bridge is unavailable.");E=await e.listen("piwi:local-run",({payload:t})=>{const s=_.get(t.id);s?p(s,t):w>0&&m.push(t)})}async function A(e,t){const s=$();if(!s)throw new Error("The desktop bridge is unavailable.");w+=1;let o;try{o=await s.invoke("desktop_run_local_tests",{projectId:e.projectId,args:t.args})}catch(d){throw w-=1,d}const c=new Promise(d=>R.set(o,d));_.set(o,e),e.shellId=o;const f=m.filter(d=>d.id===o);m=w>1?m.filter(d=>d.id!==o):[],w-=1;for(const d of f)p(e,d);const I=await c;return _.delete(o),R.delete(o),e.shellId=null,I}async function C(e){try{await T();let t=0;for(const[s,o]of e.steps.entries()){if(e.stopRequested)break;e.stepIndex=s,e.steps.length>1&&v(e,`$ ${o.display}`,!1);const c=await A(e,o);if(e.stopRequested)break;c!==0&&(t=c??1)}e.stopRequested?e.status="stopped":(e.exitCode=typeof t=="number"?t:1,e.status=t===0?"passed":"failed")}catch(t){v(e,le(t),!0),e.status="error"}finally{e.finishedAt=Date.now(),D(e),q()}}function D(e){if(e.status==="stopped")return;const t=e.projectLabel||"Local run",s=`${e.cases.length} test${e.cases.length===1?"":"s"}`,o=Math.max(1,Math.round(((e.finishedAt??Date.now())-e.startedAt)/1e3));N(e,t,s,o);const c={label:"View output",color:"neutral",variant:"outline",onClick:()=>{a.value=!0}},f=e.piwiRunId==null?[]:[{label:`Open run #${e.piwiRunId}`,color:"neutral",variant:"outline",onClick:()=>{M?.push(`/test-runs/${e.piwiRunId}`)}}];e.status==="passed"?y?.add({title:"Local run passed",description:`${t} — ${s} in ${o}s`,icon:"i-lucide-check",color:"success",actions:[c,...f]}):e.status==="failed"?y?.add({title:"Local run failed",description:`${t} — exit ${e.exitCode??1} after ${o}s`,icon:"i-lucide-x",color:"error",actions:[c,...f]}):y?.add({title:"Local run could not start",description:e.lines.findLast(I=>I.error)?.text,icon:"i-lucide-triangle-alert",color:"error",actions:[c]})}function N(e,t,s,o){if(typeof Notification>"u"||Notification.permission!=="granted"||!document.hidden&&document.hasFocus())return;const c=e.status==="passed"?"Local run passed":e.status==="failed"?"Local run failed":"Local run could not start",f=e.status==="failed"?`${t} — exit ${e.exitCode??1} after ${o}s`:`${t} — ${s} in ${o}s`;try{new Notification(c,{body:f})}catch{}}function q(){const e=n.value.filter(s=>s.status!=="running");if(e.length<=k)return;const t=new Set(e.slice(k).map(s=>s.key));n.value=n.value.filter(s=>!t.has(s.key))}function j(e){if(!$()||e.cases.length===0)return null;const t={...r(e.projectId),...e.options},s=fe(e.cases,t);if(s.length===0)return null;e.persistOptions!==!1&&h(e.projectId,t);const o={key:ge++,projectId:String(e.projectId),projectLabel:e.projectLabel??null,cases:e.cases.map(f=>({...f})),options:t,steps:s,stepIndex:0,status:"running",lines:[],exitCode:null,startedAt:Date.now(),finishedAt:null,shellId:null,stopRequested:!1,progressTotal:null,progressDone:0,piwiRunId:null,piwiRunBaseline:null};n.value=[o,...n.value];const c=n.value[0];return a.value=!0,F(c),C(c),c}async function F(e){try{const t=await $fetch(`/api/projects/${e.projectId}/latest-run`);e.piwiRunBaseline=t?.id??0}catch{}}async function B(){const e=Date.now()-12e4;for(const t of n.value)if(!(t.piwiRunId!=null||t.piwiRunBaseline==null)&&!(t.status!=="running"&&(t.finishedAt??0)<e))try{const s=await $fetch(`/api/projects/${t.projectId}/latest-run`);s&&s.id>t.piwiRunBaseline&&(t.piwiRunId=s.id)}catch{}}function G(e){return j({projectId:e.projectId,projectLabel:e.projectLabel,cases:e.cases,options:e.options,persistOptions:!1})}async function U(e){if(e.status!=="running")return;e.stopRequested=!0;const t=$(),s=e.shellId;if(t&&s!=null){try{await t.invoke("desktop_stop_local_tests",{runId:s})}catch{}R.get(s)?.(null)}}function z(){n.value=n.value.filter(e=>e.status==="running")}function H(e){if(e==null)return;const t=String(e);return n.value.find(s=>s.projectId===t)}return{runs:n,trayOpen:a,activeCount:u,startRun:j,rerun:G,stopRun:U,clearFinished:z,latestForProject:H,getProjectOptions:r,saveProjectOptions:h,correlatePiwiRuns:B}}export{$e as L,_e as R,Ie as _,fe as b,be as l,xe as u};
1
+ import{a3 as K,a5 as J,o as X,e as Y,f as V,U as W,i as Q,b as g,W as Z,v as x,a8 as ee,N as te,c4 as se,ar as b,q as ne,p as oe,am as $,aI as ie}from"./1QWBzxLM.js";import{e as ae,t as L}from"./BOA-I6S9.js";import{e as le}from"./D4mPjHHR.js";const re={base:"relative",variants:{size:{xs:"",sm:"",md:"",lg:"",xl:""},orientation:{horizontal:"inline-flex -space-x-px",vertical:"flex flex-col -space-y-px"}}},Ie={__name:"UFieldGroup",props:{as:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(n){const i=K("fieldGroup",n),u=J(),l=x(()=>ee({extend:re,...u.ui?.fieldGroup||{}}));return te(se,x(()=>({orientation:i.orientation,size:i.size}))),(r,h)=>(X(),Y(g(Z),{as:g(i).as,"data-orientation":g(i).orientation,class:Q(l.value({orientation:g(i).orientation,class:[g(i).ui?.base,g(i).class]}))},{default:V(()=>[W(r.$slots,"default")]),_:3},8,["as","data-orientation","class"]))}},ce={normal:[],headed:["--headed"],debug:["--debug"],ui:["--ui"]};function ue(n){const a=new Map;for(const i of n){const u=i.projectName||"";a.has(u)||a.set(u,[]),a.get(u).push(i)}return a}function pe(n,a){if(a==="grep"){const l=n.map(r=>ae(r.title));return["--grep",l.length===1?l[0]:`(${l.join("|")})`]}const i=new Set,u=[];for(const l of n){const r=a==="file-line"&&l.line?`${L(l.filePath)}:${l.line}`:L(l.filePath);i.has(r)||(i.add(r),u.push(r))}return u}function de(n){return/[\s"'()|]/.test(n)?`"${n.replace(/"/g,'\\"')}"`:n}function fe(n,a={}){if(n.length===0)return[];const i=a.mode??"file-line",u=a.runMode??"normal",l=Math.min(1e3,Math.max(1,Math.floor(a.repeatEach??1))),r=[];for(const[h,v]of ue(n)){const p=pe(v,i);h&&p.push(`--project=${h}`),p.push(...ce[u]),a.trace&&p.push("--trace=on"),l>1&&p.push(`--repeat-each=${l}`),r.push({args:p,display:["playwright","test",...p.map(de)].join(" ")})}return r}function be(n){return n.progressTotal?`Running ${n.progressDone}/${n.progressTotal}…`:n.steps.length>1?`Running ${n.stepIndex+1}/${n.steps.length}…`:"Running…"}const he={mode:"file-line",runMode:"normal",trace:!1,repeatEach:1},$e=[{label:"Headless",value:"normal",icon:"i-lucide-square-terminal"},{label:"Headed",value:"headed",icon:"i-lucide-app-window"},{label:"Debug (inspector)",value:"debug",icon:"i-lucide-bug"},{label:"UI mode",value:"ui",icon:"i-lucide-layout-grid"}],_e=[{label:"File:line",value:"file-line"},{label:"Title (grep)",value:"grep"},{label:"File only",value:"file"}],S=2e3,k=15,O="piwi:desktop-local-run-options";let ge=1,E=null,w=0,m=[];const _=new Map,R=new Map;let y=null,M=null,P=!1;const ve=/^Running (\d+) tests? using \d+ workers?$/,we=/^\s{1,6}(?:✓|✘|✗|x|ok|-)\s+\d+\s/;function xe(){const n=b("desktop-local-runs",()=>[]),a=b("desktop-local-runs-tray",()=>!1),i=b("desktop-local-run-options",()=>({}));y=ne(),M=oe();const u=x(()=>n.value.filter(e=>e.status==="running").length);function l(){if(!P){P=!0;try{const e=localStorage.getItem(O);e&&(i.value=JSON.parse(e))}catch{}}}function r(e){return l(),{...he,...i.value[String(e)]}}function h(e,t){l();const s={...r(e),...t};i.value={...i.value,[String(e)]:s};try{localStorage.setItem(O,JSON.stringify(i.value))}catch{}}function v(e,t,s){if(e.lines.push({text:t,error:s}),e.lines.length>S&&e.lines.splice(0,e.lines.length-S),s)return;const o=ve.exec(t);o?e.progressTotal=(e.progressTotal??0)+Number(o[1]):we.test(t)&&(e.progressDone=Math.min(e.progressDone+1,e.progressTotal??e.progressDone+1))}function p(e,t){if(t.kind==="exit"){R.get(t.id)?.(t.code);return}v(e,t.line??"",t.kind!=="stdout")}async function T(){if(E)return;const e=ie();if(!e)throw new Error("The desktop bridge is unavailable.");E=await e.listen("piwi:local-run",({payload:t})=>{const s=_.get(t.id);s?p(s,t):w>0&&m.push(t)})}async function A(e,t){const s=$();if(!s)throw new Error("The desktop bridge is unavailable.");w+=1;let o;try{o=await s.invoke("desktop_run_local_tests",{projectId:e.projectId,args:t.args})}catch(d){throw w-=1,d}const c=new Promise(d=>R.set(o,d));_.set(o,e),e.shellId=o;const f=m.filter(d=>d.id===o);m=w>1?m.filter(d=>d.id!==o):[],w-=1;for(const d of f)p(e,d);const I=await c;return _.delete(o),R.delete(o),e.shellId=null,I}async function C(e){try{await T();let t=0;for(const[s,o]of e.steps.entries()){if(e.stopRequested)break;e.stepIndex=s,e.steps.length>1&&v(e,`$ ${o.display}`,!1);const c=await A(e,o);if(e.stopRequested)break;c!==0&&(t=c??1)}e.stopRequested?e.status="stopped":(e.exitCode=typeof t=="number"?t:1,e.status=t===0?"passed":"failed")}catch(t){v(e,le(t),!0),e.status="error"}finally{e.finishedAt=Date.now(),D(e),q()}}function D(e){if(e.status==="stopped")return;const t=e.projectLabel||"Local run",s=`${e.cases.length} test${e.cases.length===1?"":"s"}`,o=Math.max(1,Math.round(((e.finishedAt??Date.now())-e.startedAt)/1e3));N(e,t,s,o);const c={label:"View output",color:"neutral",variant:"outline",onClick:()=>{a.value=!0}},f=e.piwiRunId==null?[]:[{label:`Open run #${e.piwiRunId}`,color:"neutral",variant:"outline",onClick:()=>{M?.push(`/test-runs/${e.piwiRunId}`)}}];e.status==="passed"?y?.add({title:"Local run passed",description:`${t} — ${s} in ${o}s`,icon:"i-lucide-check",color:"success",actions:[c,...f]}):e.status==="failed"?y?.add({title:"Local run failed",description:`${t} — exit ${e.exitCode??1} after ${o}s`,icon:"i-lucide-x",color:"error",actions:[c,...f]}):y?.add({title:"Local run could not start",description:e.lines.findLast(I=>I.error)?.text,icon:"i-lucide-triangle-alert",color:"error",actions:[c]})}function N(e,t,s,o){if(typeof Notification>"u"||Notification.permission!=="granted"||!document.hidden&&document.hasFocus())return;const c=e.status==="passed"?"Local run passed":e.status==="failed"?"Local run failed":"Local run could not start",f=e.status==="failed"?`${t} — exit ${e.exitCode??1} after ${o}s`:`${t} — ${s} in ${o}s`;try{new Notification(c,{body:f})}catch{}}function q(){const e=n.value.filter(s=>s.status!=="running");if(e.length<=k)return;const t=new Set(e.slice(k).map(s=>s.key));n.value=n.value.filter(s=>!t.has(s.key))}function j(e){if(!$()||e.cases.length===0)return null;const t={...r(e.projectId),...e.options},s=fe(e.cases,t);if(s.length===0)return null;e.persistOptions!==!1&&h(e.projectId,t);const o={key:ge++,projectId:String(e.projectId),projectLabel:e.projectLabel??null,cases:e.cases.map(f=>({...f})),options:t,steps:s,stepIndex:0,status:"running",lines:[],exitCode:null,startedAt:Date.now(),finishedAt:null,shellId:null,stopRequested:!1,progressTotal:null,progressDone:0,piwiRunId:null,piwiRunBaseline:null};n.value=[o,...n.value];const c=n.value[0];return a.value=!0,F(c),C(c),c}async function F(e){try{const t=await $fetch(`/api/projects/${e.projectId}/latest-run`);e.piwiRunBaseline=t?.id??0}catch{}}async function B(){const e=Date.now()-12e4;for(const t of n.value)if(!(t.piwiRunId!=null||t.piwiRunBaseline==null)&&!(t.status!=="running"&&(t.finishedAt??0)<e))try{const s=await $fetch(`/api/projects/${t.projectId}/latest-run`);s&&s.id>t.piwiRunBaseline&&(t.piwiRunId=s.id)}catch{}}function G(e){return j({projectId:e.projectId,projectLabel:e.projectLabel,cases:e.cases,options:e.options,persistOptions:!1})}async function U(e){if(e.status!=="running")return;e.stopRequested=!0;const t=$(),s=e.shellId;if(t&&s!=null){try{await t.invoke("desktop_stop_local_tests",{runId:s})}catch{}R.get(s)?.(null)}}function z(){n.value=n.value.filter(e=>e.status==="running")}function H(e){if(e==null)return;const t=String(e);return n.value.find(s=>s.projectId===t)}return{runs:n,trayOpen:a,activeCount:u,startRun:j,rerun:G,stopRun:U,clearFinished:z,latestForProject:H,getProjectOptions:r,saveProjectOptions:h,correlatePiwiRuns:B}}export{$e as L,_e as R,Ie as _,fe as b,be as l,xe as u};
@@ -0,0 +1 @@
1
+ const t={"home.flaky":{title:"Flaky tests",text:"Tests that pass and fail without code changes. This counts how many were detected across your projects recently.",doc:"flaky-tests#flaky-test-detection"},"home.trend-bars":{title:"Run history bars",text:"One bar per full run (up to 20), oldest left → newest right. Green = pass, red = fail, amber = passed with flaky tests, gray = skipped/unknown. Click a bar to open that run.",doc:"ui-overview#home"},"home.tendency":{title:"Tendency",text:"Derived from the last 5 full runs. Failing = latest run failed; flaky = pass/fail mixed or flaky tests seen in the window; passing = all recent runs green.",doc:"ui-overview#home"},"home.project-health":{title:"Project health",text:"Every project at a glance — run history bars and a tendency badge so you can immediately see which project needs attention. Only full runs count.",doc:"ui-overview#home"},"home.get-started":{title:"Get started",text:"Wire the Piwi reporter into your Playwright config to start sending results here. The wizard generates the snippet for you.",doc:"getting-started#using-the-piwi-dashboard-reporter"},"analytics.insights":{title:"Insights",text:"Auto-generated findings over the selected period — pass-rate drops, failing streaks, stale clusters, wasted CI time. Ranked by severity; click one to jump to the source."},"analytics.portfolio":{title:"Portfolio health",text:"Every project over the selected period: pass rate with its change vs the previous period, flaky volume, open failure clusters, and the latest run. Worst health sorts first."},"analytics.heatmap":{title:"Pass rate heatmap",text:"Each cell is the aggregate pass rate of one project over one time bucket — green is healthy, red is broken, gray means no runs. Longer periods use wider buckets."},"analytics.ci-time":{title:"CI time",text:"Total minutes your test runs consumed, over time, with the change vs the previous equal-length period. Steady growth here is a capacity conversation."},"analytics.wasted-time":{title:"Wasted CI time",text:"Minutes that produced no signal: time inside wait steps plus time executing attempts that ended failed or timed out. The strongest argument for fixing slow waits and flaky tests."},"analytics.flaky-leaderboard":{title:"Flakiest tests",text:"The worst flaky tests across all projects, using the same scoring as each project’s Flaky tests tab, sorted by wasted-CI impact.",doc:"flaky-tests#flaky-test-detection"},"analytics.cluster-landscape":{title:"Failure clusters",text:"Open failure clusters across all projects — the biggest and oldest unresolved root causes. Clusters outlive run retention, so this works on long horizons.",doc:"ai-diagnosis#failure-clustering"},"analytics.regression-velocity":{title:"Regression velocity",text:"How much new breakage each period introduces: tests that passed in a baseline and now fail (regressions), plus tests that turned flaky. Rising bars mean quality debt is accumulating.",doc:"flaky-tests#regression-signals"},"analytics.browser-matrix":{title:"Browser matrix",text:"Pass rate per project × browser, so a suite that is green on one browser but failing on another (a browser-specific bug) stands out immediately."},"analytics.slow-endpoints":{title:"Slow endpoints",text:"Backend calls captured during tests, aggregated across all projects by route: p50/p90 latency, error rate, and how many projects hit each one — a shared endpoint regressing shows up here first.",doc:"capture-fixtures"},"projects.tag-filter":{text:"Filter projects by tag. Selecting several tags uses OR logic — a project matching any of them is shown."},"projects.table":{title:"Projects",text:"Every project that has reported results, with its latest run, pass rate and activity. Click a row to drill in.",doc:"ui-overview#projects"},"project.import":{title:"Importing past runs",text:"Upload the archives Playwright writes to blob-report/ to backfill runs from before you adopted Piwi. One archive becomes one run, complete with traces and screenshots, and re-uploading the same archive changes nothing. Imports are silent by design — no notifications, AI diagnosis or regression signals, so a backfill never pages the team about months-old failures.",doc:"importing-runs",envVars:["PIWI_IMPORT_MAX_BYTES"]},"project.run-scope":{title:"Full vs partial runs",text:"A partial run executed only a subset of the suite (a shard, a retry, or a filtered selection). Trends use full runs so partial results don’t skew the numbers.",doc:"ui-overview#test-run-detail"},"project.runs-trend":{title:"Run trend",text:"One stacked bar per run — failed anchored at the bottom, passed on top — following the filters above. A growing red base marks where things broke; hover a bar for the counts, click it to open the run.",doc:"ui-overview#project-detail"},"project.flaky-tests":{title:"Flaky tests",text:"Tests that fail intermittently across runs. Impact estimates wasted CI time; the score (0–100) rates severity and root cause explains why.",doc:"flaky-tests#flaky-test-detection"},"project.quarantine":{title:"Quarantine",text:"A quarantined test still runs and still reports — it is only excluded from the CI gate’s verdict. Passing runs accumulate as a streak, so a test that recovers is flagged ready to release instead of staying quarantined forever.",doc:"flaky-tests#quarantine-with-a-way-out"},"project.performance":{title:"Performance",text:"Duration trends for the suite — average and P90 (the slowest 10% threshold). Use it to catch tests getting steadily slower.",doc:"flaky-tests#performance"},"project.timeline":{title:"Timeline markers",text:"Dated events — deploys, config changes, infra migrations, incidents — overlaid as vertical lines on the trend charts, so you can tell whether a change moved your results or performance. Markers can be scoped to an environment; some are detected automatically when tooling versions change between runs.",doc:"timeline-markers",envVars:["PIWI_AUTO_MARKERS"]},"project.slowest-tests":{title:"Slowest tests",text:"The tests taking the most time, ranked. Optimizing the top entries shortens your overall run the fastest.",doc:"flaky-tests#performance"},"project.run-compare":{title:"Run comparison",text:"Diff two runs to see which tests changed status or duration between them — handy for confirming a fix or spotting a regression.",doc:"ui-overview#test-run-detail"},"project.test-cases":{title:"Test cases",text:'Every distinct test in the project with its executed-only pass rate, result breakdown and average duration across runs. Search by title or file, filter by status, and switch to a per-spec tree. Cases not run within the selected age window are hidden by default (last 30 days) — pick "All time" to see obsolete ones. Click a test to see its full history.',doc:"ui-overview#project-detail"},"project.compare":{title:"Compare runs",text:"Pick two runs to see a side-by-side summary and a per-test status diff between them.",doc:"ui-overview#test-run-detail"},"project.spec-health":{title:"Spec health",text:"A heatmap grouped by spec file: pass rate, flaky rate and average time per spec, so you can find the riskiest files at a glance.",doc:"flaky-tests#spec-health-heatmap"},"project.members":{title:"Project access",text:"Who can see this project. Admins always have access; reporters and users see only the projects assigned to them.",doc:"authentication#user-management"},"project.ai-instructions":{title:"AI diagnosis instructions",text:"Extra guidance handed to the AI when diagnosing this project’s failures — e.g. domain terms, known-flaky areas, or where to look first.",doc:"ai-diagnosis#custom-instructions"},"project.scm-token":{title:"Repository access token",text:"A read-only Git host token lets diagnosis pull the actual commit diffs behind a failure for SCM-grounded analysis. Stored encrypted.",doc:"ai-diagnosis#scm-grounded-context"},"project.local-folder":{title:"Linked local folder",text:"The checkout on this machine that produces this project’s runs. Linking it enables running tests from the app and opening files in your IDE. The link is stored on this machine only — never on the server.",doc:"desktop#running-tests-from-the-app"},"run.summary":{title:"Run summary",text:"Headline outcome of this run — overall status, test counts and total duration.",doc:"ui-overview#test-run-detail"},"run.partial":{title:"Partial run",text:"This run covered only part of the suite (a shard, retry or filtered selection), so its totals aren’t a full picture.",doc:"ui-overview#test-run-detail"},"run.live":{title:"Live run",text:"This run is still streaming results in real time. Results and counts update as each test finishes.",doc:"reporter#live-streaming"},"run.ci-env":{title:"CI & environment",text:"Where this run executed — CI provider, pipeline and machine details — collected automatically by the reporter.",doc:"reporter#automatic-metadata-collection"},"run.reports":{title:"Storage & reports",text:"HTML reports, traces and attachments uploaded with this run. A run can carry several reports (e.g. per shard).",doc:"reporter#multiple-reports"},"run.metadata":{title:"Tags, links & custom data",text:"Extra context attached to the run: tags for grouping, links to external issues, and any custom key/value data your reporter sent."},"run.test-cases":{title:"Test cases",text:"Per-test results for this run. Filter by status, or by the NEW (new regression) and FLAKY signal badges.",doc:"ui-overview#test-run-detail"},"run.insights":{title:"Run insights",text:"Automatic highlights for this run — newly failing, flaky and slow tests — surfaced so you don’t have to hunt for them.",doc:"flaky-tests#run-insights"},"run.regression":{title:"Since last pass",text:"Compares this run against the most recent passing run of the project — the commits introduced since and the tests that changed between the two.",doc:"flaky-tests#regression-signals"},"run.timeline":{title:"Workers timeline",text:"When each test ran on each parallel worker. Gaps and long bars reveal poor parallelization or a single slow test stalling a shard.",doc:"ui-overview#test-run-detail"},"case.diagnosis-tab":{title:"Diagnosis",text:"Everything you need to understand and fix this failure in one place — the error, a verdict on what kind of failure it is, the captured evidence, and an AI diagnosis.",doc:"evidence#one-execution-diagnosis-first"},"case.verdict":{title:"Failure verdict",text:"An at-a-glance read on this failure: whether it newly regressed or is flaky, how many times it retried, and how long the test has been failing.",doc:"flaky-tests#regression-signals"},"case.evidence":{title:"Failure evidence",text:"What was captured at the moment of failure — screenshots, video and traces — grouped so you can see exactly what the browser saw.",doc:"evidence#trace-viewer"},"case.test-source":{title:"Test source",text:"The source around the failing line and the callers above it — captured from the failure’s call stack — so you can read where it broke, and the code that led there, without opening your editor. When the execution has a trace, this deepens into the complete call stack with the real source of every frame, read from the trace’s embedded files.",doc:"evidence#trace-powered-deep-views"},"export.offline":{title:"Reading this offline",text:"Takes this investigation out of the dashboard as a file that needs no network and no Piwi server. HTML is one self-contained page with screenshots and video embedded; ZIP adds the raw artifacts — trace archives, full-size video, logs — plus a machine-readable data.json; PDF is the HTML printed from your browser. Evidence past the size budget is listed in the report as omitted rather than dropped quietly.",doc:"offline-export",envVars:["PIWI_EXPORT_MAX_INLINE_BYTES","PIWI_EXPORT_MAX_BYTES","PIWI_EXPORT_MAX_CASES"]},"case.artifacts":{title:"Artifacts",text:"Traces, attachments, console output and network requests captured for this execution — the raw material behind the result.",doc:"evidence#trace-viewer"},"case.steps":{title:"Steps",text:"Each step Playwright ran, with its duration. A failed step is highlighted with its error, and slow steps are color-coded.",doc:"evidence#one-execution-diagnosis-first"},"case.wasted-time":{title:"Wasted time",text:"Time spent in fixed waits (waitForTimeout and matching patterns) that could usually be replaced with a web-first assertion.",doc:"flaky-tests#performance"},"case.ai":{title:"AI diagnosis for this execution",text:"Diagnose just this failing execution, or copy the full evidence context to paste into your own AI assistant.",doc:"ai-diagnosis#diagnosing-one-execution"},"case.web-vitals":{title:"Web Vitals",text:"Core Web Vitals (LCP, CLS, etc.) captured during the test, measuring real loading and responsiveness of the page under test.",doc:"capture-fixtures"},"case.traces":{title:"Traces",text:`Playwright trace files for this execution. "View trace" opens them in the dashboard's own trace viewer — the trace stays on your server, it is never sent to a third party.`,doc:"evidence#trace-viewer"},"case.console":{title:"Console output",text:"Browser console messages logged while this test ran — often the first clue for a JavaScript error behind a failure.",doc:"capture-fixtures"},"case.network":{title:"Network requests",text:"HTTP requests the page made during the test, with timing and status — useful for spotting failed or slow calls. When the execution has a trace, the Full trace view shows every request (all resource types) with headers, timing phases, a waterfall and capped body previews; sensitive header values are masked.",doc:"evidence#trace-powered-deep-views"},"case.backend-logs":{title:"Backend server logs",text:"Server-side warnings and errors captured during the test, correlated with this execution via a Piwi backend integration.",doc:"backend-logs"},"case.aria":{title:"ARIA snapshot",text:"A snapshot of the accessibility tree at the moment of failure — what assistive tech saw, and useful grounding for AI diagnosis.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"case.flaky-count":{title:"Flaky runs",text:"How many of this test’s recent executions flipped between pass and fail without a code change.",doc:"flaky-tests#flaky-test-detection"},"case.history-chart":{title:"Duration trend",text:"This test’s duration across recent runs. Rising times or spikes hint at a slowdown or instability.",doc:"flaky-tests#flaky-test-detection"},"case.sparkline":{title:"Status history",text:"Pass/fail outcome of this test over its recent runs, oldest to newest — a quick read on its stability.",doc:"flaky-tests#flaky-test-detection"},"cluster.concept":{title:"Failure clusters",text:"Failures with the same error fingerprint are grouped into one cluster, so a single root cause shows up once instead of N times.",doc:"ai-diagnosis#failure-clustering"},"cluster.new-vs-known":{title:"New vs known failure",text:"Whether this failure matches an existing cluster (a known issue) or opened a new one — a fresh signature worth a closer look.",doc:"ai-diagnosis#failure-clustering"},"cluster.triage":{text:"Track a cluster’s state: set its status, add triage notes, or extract a subset of failures into a separate cluster."},"cluster.resolution":{title:"Resolution",text:"Recorded when a full run turns this cluster green: when the fix landed, how long the cluster stayed open, and whether the change matched the diagnosed files. If the failure comes back, the cluster is marked as regressed rather than quietly reopened.",doc:"ai-diagnosis#did-the-fix-work"},"cluster.evidence":{title:"Test evidence",text:"The concrete artifacts behind this cluster — screenshots, signals and traces from affected tests — gathered for review and AI diagnosis.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.scm":{title:"What changed",text:"Recent commits and diffs around when this failure started, so you can connect the break to the change that caused it.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.baseline":{title:"Baseline commit",text:"The last known-good commit. Diffs are computed from here forward to scope the search for the offending change.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.commit-browser":{title:"Commit browser",text:"Browse the repository’s recent commits and inspect each diff to pick a baseline or find the suspect change.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.diagnosis":{title:"AI diagnosis",text:"Runs the configured AI model over the failure plus its evidence and code changes to propose a root cause and fix.",doc:"ai-diagnosis#enabling-ai-diagnosis"},"cluster.context-input":{title:"Additional context",text:"Extra notes, files or screenshots you add to steer the diagnosis — anything the model can’t infer from the captured evidence.",doc:"ai-diagnosis#custom-instructions"},"cluster.context-preview":{title:"Context preview",text:"Exactly what will be sent to the AI, including how much was trimmed to fit the token budget. Review it before spending tokens.",doc:"ai-diagnosis#context-limits-and-token-cost"},"cluster.result":{title:"Diagnosis result",text:"The AI’s proposed root cause, fix and confidence. Treat it as a lead to verify, not proof — confirm against the evidence before acting.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.ai-setup":{title:"AI not configured",text:"Diagnosis needs an AI provider and API key. Configure one in Settings → AI to enable automatic and on-demand analysis.",doc:"ai-diagnosis#enabling-ai-diagnosis"},"cluster.confidence":{title:"Confidence score",text:"How sure the model is of the top hypothesis (0–100). It is lowered when key evidence is missing or truncated, so treat a low score as “gather more before acting”.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.hypotheses":{title:"Other hypotheses",text:"Alternative root causes the model weighed, ranked by likelihood. Useful when the evidence is ambiguous and the top pick is not conclusive.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.coverage":{title:"Data coverage",text:"Which evidence sections were present, truncated or absent for this diagnosis — the same map the model sees. Absent or trimmed evidence lowers confidence; the quote icon marks sections the diagnosis cited.",doc:"ai-diagnosis#context-limits-and-token-cost"},"notifications.subscribe":{title:"Project notifications",text:"Get notified about this project’s runs through your channels. Choose which events trigger an alert.",doc:"notifications#subscriptions"},"settings.general":{title:"General settings",text:"Central place for account, users, AI diagnosis, notifications, storage and tags. Settings that can be overridden by environment variables show a lock badge naming the variable."},"settings.storage-stats":{title:"Storage statistics",text:"How much disk your reports, traces and attachments use, broken down so you can see what to clean up.",doc:"storage#storage-architecture"},"settings.cleanup":{title:"Cleanup old runs",text:"Delete runs (and their reports, traces and attachments) older than a chosen age to reclaim storage. This cannot be undone.",doc:"storage#storage-management"},"account.email":{title:"Email & verification",text:"Your account email is used for password resets and notifications. Verifying it confirms you own the address.",doc:"authentication#user-management"},"settings.smtp":{title:"SMTP status",text:"Outbound email (resets, invites, notifications) is configured through environment variables and shown here read-only.",doc:"notifications#smtp-configuration",envVars:["PIWI_SMTP_HOST","PIWI_SMTP_PORT","PIWI_SMTP_USER","PIWI_SMTP_PASS","PIWI_SMTP_FROM","PIWI_SMTP_FROM_NAME","PIWI_SMTP_SECURE"]},"notifications.channels":{title:"Channels",text:"Destinations an alert can go to — browser, email, Slack or webhook. Create a channel, then subscribe events to it. Administrators can make a channel global (usable by everyone); without authentication every channel is global.",doc:"notifications#channels"},"notifications.subscriptions":{title:"Subscriptions",text:"Which events (run failed, new cluster, etc.) notify which channel, optionally scoped to one project and filtered. Global subscriptions deliver instance-wide and are managed by administrators.",doc:"notifications#subscriptions"},"settings.ai-provider":{title:"AI provider",text:"Configure the model providers behind the three AI roles — diagnosis, research and embedding. Each role has its own provider config, or reuses another role’s provider and credentials. Keys are stored encrypted and never returned by the API.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_PROVIDER","PIWI_AI_MODEL","PIWI_AI_API_KEY","PIWI_AI_BASE_URL"]},"settings.ai-instructions":{title:"Global analysis instructions",text:"Guidance applied to every diagnosis across all projects — house style, terminology, or things to always check. Per-project instructions add to this.",doc:"ai-diagnosis#custom-instructions"},"settings.ai-research":{title:"Research model",text:"An optional cheaper/faster model that pre-analyzes the failure (on a lean view) before the main model writes the final diagnosis. It can use its own provider, and the costly SCM diff is only fetched when it flags a likely regression. It also handles cluster naming and merge adjudication, so configuring a cheap research model routes those utility calls away from the expensive diagnosis model.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_RESEARCH_PROVIDER","PIWI_AI_RESEARCH_MODEL","PIWI_AI_RESEARCH_BASE_URL","PIWI_AI_RESEARCH_API_KEY"]},"settings.ai-limits":{title:"Diagnosis context limits",text:"Caps on how much evidence (and how many tokens) go into each diagnosis. Higher limits give the model more to work with but cost more. Each field can be pinned individually by its env var.",doc:"ai-diagnosis#context-limits-and-token-cost",envVars:["PIWI_AI_MAX_SAMPLE_ERROR_CHARS","PIWI_AI_MAX_SCM_PATCH_BUDGET","PIWI_AI_MAX_AFFECTED_TESTS","PIWI_AI_MAX_STEPS","PIWI_AI_MAX_CONSOLE_ENTRIES","PIWI_AI_MAX_CONSOLE_ENTRY_CHARS","PIWI_AI_MAX_NETWORK_REQUESTS","PIWI_AI_MAX_ARIA_SNAPSHOT_CHARS","PIWI_AI_MAX_TEST_SOURCE_CHARS","PIWI_AI_MAX_SERVER_LOG_ENTRIES","PIWI_AI_MAX_SERVER_LOG_ENTRY_CHARS","PIWI_AI_MAX_IMAGES","PIWI_AI_MAX_PASSED_PEERS","PIWI_AI_MAX_CONSOLE_WINDOW","PIWI_AI_SLOW_REQUEST_MS","PIWI_AI_MAX_TRACE_STACK_FRAMES","PIWI_AI_MAX_TRACE_NETWORK_REQUESTS"]},"settings.users":{title:"Users & roles",text:"Manage accounts and their role. Administrators control everything; reporters submit results; users have read-only access.",doc:"authentication#roles"},"settings.api-keys":{title:"API keys",text:"Tokens (prefixed pd_) that let the reporter or scripts authenticate without a password. Shown once at creation; revoke anytime.",doc:"authentication#api-keys"},"settings.tags":{text:"Reusable labels you can attach to projects for grouping and filtering across the dashboard."},"settings.wasted-time":{title:"Wasted-time patterns",text:"Define which wait steps count as wasted time. A wait is wasted when any pattern matches its step title or source location. Patterns are case-insensitive and support * and ? wildcards. Changes apply to existing runs immediately.",doc:"flaky-tests#performance",envVars:["PIWI_WASTED_WAIT_PATTERNS"]},"settings.timeout-hygiene":{title:"Timeout hygiene",text:"Thresholds for flagging oversized per-test timeouts and stale test.slow() marks. Opportunities are recomputed at read time, so changes apply to existing runs immediately.",doc:"flaky-tests#performance"},"settings.pr-feedback":{title:"Pull-request feedback",text:"When a run finishes on a branch with an open pull request, Piwi can post a summary comment — new failures separated from pre-existing ones, with suggested locators — and set a commit status. Needs PIWI_SITE_URL and an SCM token with write access.",doc:"ci#pull-request-feedback",envVars:["PIWI_SITE_URL"]},"settings.auto-heal":{title:"Auto-heal pull requests",text:"When a locator breaks on the default branch and healing has high-confidence evidence, Piwi opens the fix pull request itself — a deterministic one-line locator edit per broken call site. Off by default, with an explicit per-project allowlist. Needs PIWI_SITE_URL and an SCM token with write access.",doc:"auto-heal",envVars:["PIWI_SITE_URL"]},"settings.auto-diagnose":{title:"Auto-diagnose",text:"When a run finishes, up to 3 new failure clusters are diagnosed automatically — each diagnosis is one research call (when a research model is configured) plus one diagnosis call — and new clusters get human-readable titles in one batched call. Requires the diagnosis model to be configured.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_AUTO_DIAGNOSE"]},"settings.embedding-model":{title:"Embedding model",text:"Embeds failures so semantically-similar errors group together (used by failure clustering). Can reuse another role’s provider or configure its own.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_EMBEDDING_PROVIDER","PIWI_AI_EMBEDDING_MODEL","PIWI_AI_EMBEDDING_BASE_URL","PIWI_AI_EMBEDDING_API_KEY"]},"settings.privacy":{title:"Privacy notice",text:"What data is sent to the configured LLM provider when diagnosing a failure, and how secrets are stored. API keys are encrypted at rest; env vars keep them out of the DB entirely.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"settings.storage-backend":{title:"Storage backend",text:"Where test artifacts (HTML reports, traces, attachments) are stored — local disk or S3. Configured entirely through environment variables; shown here read-only.",doc:"storage#storage-architecture",envVars:["PIWI_STORAGE_TYPE","PIWI_STORAGE_PATH","PIWI_S3_BUCKET","PIWI_S3_REGION","PIWI_S3_ACCESS_KEY_ID","PIWI_S3_SECRET_ACCESS_KEY","PIWI_S3_ENDPOINT","PIWI_S3_FORCE_PATH_STYLE"]},"settings.auth-toggle":{title:"Authentication",text:"Role-based access control and API keys. Off by default — when disabled, every endpoint behaves as a single virtual administrator.",doc:"authentication",envVars:["PIWI_AUTH_ENABLED","PIWI_AUTH_SECRET"]},"account.display-name":{title:"Display name",text:"A friendly name shown alongside your account. Optional, and visible only within the dashboard."},"account.connected-accounts":{title:"Connected accounts",text:"Sign in with an OAuth provider (Google or GitHub). Providers are configured by an operator through environment variables; one provider can be linked per account.",doc:"authentication#oauth-google-github",envVars:["PIWI_OAUTH_GOOGLE_CLIENT_ID","PIWI_OAUTH_GOOGLE_CLIENT_SECRET","PIWI_OAUTH_GITHUB_CLIENT_ID","PIWI_OAUTH_GITHUB_CLIENT_SECRET","PIWI_OAUTH_ALLOWED_DOMAINS","PIWI_OAUTH_GITHUB_ALLOWED_ORGS"]},"account.password":{title:"Password",text:"Change the password you sign in with. OAuth-only accounts manage their password through their provider.",doc:"authentication#user-management"},"notifications.test-email":{title:"Send test email",text:"Send a test message through the configured SMTP server to verify delivery. Uses the environment-configured SMTP connection.",doc:"notifications#smtp-configuration"},"mcp.tools":{title:"What it provides",text:"The tools this MCP server exposes to AI agents, letting them query your projects, runs and failures directly.",doc:"mcp#what-it-provides"},"mcp.auth":{title:"Authentication",text:"How an MCP client authenticates to this server — uses the same API keys as the rest of the dashboard.",doc:"mcp#authentication"},"mcp.client-setup":{title:"Client setup",text:"Copy-paste configuration to connect Claude Code, Cursor, VS Code and other MCP clients to this server.",doc:"mcp#client-setup"},"shared.entity-links":{title:"Entity links",text:"Links to external systems (Jira, GitHub, etc.) attached to this item. The provider is detected automatically from the URL."},"ide.open":{title:"Open in IDE",text:"Click a source path to open it in your local editor. Set your local workspace folder (so VS Code gets an absolute path) or a JetBrains project name, then pick a method. Auto probes the JetBrains local server first (the only one it can confirm) before falling back to a vscode:// or jetbrains:// launch. These preferences live in this browser only.",doc:"ide-integration"},"locator-healing":{title:"Alternative locators",text:'When a locator breaks after a UI change, Piwi suggests pre-captured alternatives from the last passing run — or from another test in the project that uses the same locator. Each alternative is ranked by stability score — prefer data-testid (100) over CSS classes (10–40). The recommended fix shows the exact one-line edit for the failing test, with a "Copy fix prompt" for an AI coding agent. A "Your pick" badge marks a replacement you confirmed on the failing page: "Pick from snapshot" opens the failure-time DOM and lets you click the intended element, and "Pick from trace" opens the failure trace in the trace viewer, whose Pick locator tool works on the recorded page snapshots.',doc:"reporter#locator-healing"},"environment-diff":{title:"Environment diff",text:"Compares this execution’s environment (Playwright version, browser config, locale, viewport, CI provider, …) against the same test’s last passing run on the same browser. Only changed keys are shown — an empty diff rules out environment drift as the cause."},"visual-diff":{title:"Visual diff",text:"Pixel-compares the failing screenshot against the same test’s last passing screenshot (same browser). Red pixels in the overlay mark what changed. When the two screenshots have different dimensions the ratio is flagged as unreliable."},"dom-snapshot":{title:"DOM snapshot",text:"The page’s HTML around the failing action, rendered from the uploaded Playwright trace — nothing extra is captured. Input values, inline handlers and script bodies are removed; token-shaped strings are masked."},"page-state":{title:"App state at test end",text:"URL, history state, storage key names + value lengths, and cookie names + flags captured when the test ended. Values are never captured. Disable with the reporter’s capturePageState option.",doc:"capture-fixtures"}};function s(e){return t[e].envVars??[]}export{t as H,s as h};
@@ -1 +1 @@
1
- import{D as H,a as R,b as E,c as N,d as b,e as _,f as A,g as L}from"./CK2AMqz_.js";import{a2 as T,a3 as z,a4 as F,a5 as G,a6 as I,a7 as U,bG as J,o as a,e as l,f as r,b as e,i as c,U as d,l as i,h,V as k,bJ as K,bW as W,bR as X,k as m,t as v,c as q,j as M,g as Q,$ as Y,a0 as Z,v as x,b2 as B,bX as ee,a8 as te}from"./BdQ7kfxJ.js";const se={slots:{overlay:"fixed inset-0 bg-elevated/75",content:"fixed bg-default divide-y divide-default sm:ring ring-default sm:shadow-lg flex flex-col focus:outline-none",header:"flex items-center gap-1.5 p-4 sm:px-6 min-h-(--ui-header-height)",wrapper:"",body:"flex-1 overflow-y-auto p-4 sm:p-6",footer:"flex items-center gap-1.5 p-4 sm:px-6",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",close:"absolute top-4 end-4"},variants:{side:{top:{content:""},right:{content:"max-w-md"},bottom:{content:""},left:{content:"max-w-md"}},inset:{true:{content:"rounded-lg"}},transition:{true:{overlay:"data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"}}},compoundVariants:[{side:"top",inset:!0,class:{content:"max-h-[calc(100%-2rem)] inset-x-4 top-4"}},{side:"top",inset:!1,class:{content:"max-h-full inset-x-0 top-0"}},{side:"right",inset:!0,class:{content:"w-[calc(100%-2rem)] inset-y-4 right-4"}},{side:"right",inset:!1,class:{content:"w-full inset-y-0 right-0"}},{side:"bottom",inset:!0,class:{content:"max-h-[calc(100%-2rem)] inset-x-4 bottom-4"}},{side:"bottom",inset:!1,class:{content:"max-h-full inset-x-0 bottom-0"}},{side:"left",inset:!0,class:{content:"w-[calc(100%-2rem)] inset-y-4 left-4"}},{side:"left",inset:!1,class:{content:"w-full inset-y-0 left-0"}},{transition:!0,side:"top",class:{content:"data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]"}},{transition:!0,side:"right",class:{content:"data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]"}},{transition:!0,side:"bottom",class:{content:"data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]"}},{transition:!0,side:"left",class:{content:"data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]"}}]},le={__name:"USlideover",props:{title:{type:String,required:!1},description:{type:String,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},transition:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1,default:"right"},inset:{type:Boolean,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1}},emits:["leave","after:leave","enter","after:enter","close:prevent","update:open"],setup(D,{emit:O}){const P=D,f=O,s=T(),t=z("slideover",P),{t:C}=F(),$=G(),S=I(U(t,"open","defaultOpen","modal","unmountOnHide"),f),w=J(B(()=>t.portal)),V=B(()=>t.content),j=x(()=>t.dismissible?{pointerDownOutside:ee}:["interactOutside","escapeKeyDown"].reduce((n,y)=>(n[y]=p=>{p.preventDefault(),f("close:prevent")},n),{})),u=x(()=>te({extend:se,...$.ui?.slideover||{}})({transition:t.transition,side:t.side,inset:t.inset}));return(o,n)=>(a(),l(e(L),Y(Z(e(S))),{default:r(({open:y,close:p})=>[s.default?(a(),l(e(H),{key:0,"as-child":"",class:c(e(t).class)},{default:r(()=>[d(o.$slots,"default",{open:y})]),_:2},1032,["class"])):i("",!0),h(e(R),k(e(w),{"force-mount":e(w).disabled&&e(t).unmountOnHide===!1||void 0}),{default:r(()=>[h(e(K),null,{default:r(()=>[e(t).overlay?(a(),l(e(E),{key:0,"data-slot":"overlay",class:c(u.value.overlay({class:e(t).ui?.overlay}))},null,8,["class"])):i("",!0),h(e(N),k({"data-side":e(t).side,"data-slot":"content",class:u.value.content({class:[!s.default&&e(t).class,e(t).ui?.content]})},V.value,{onEnter:n[0]||(n[0]=g=>f("enter")),onAfterEnter:n[1]||(n[1]=g=>f("after:enter")),onLeave:n[2]||(n[2]=g=>f("leave")),onAfterLeave:n[3]||(n[3]=g=>f("after:leave"))},W(j.value)),{default:r(()=>[!e(t).title&&!s.title||!e(t).description&&!s.description||s.content?(a(),l(e(X),{key:0},{default:r(()=>[!e(t).title&&!s.title?(a(),l(e(b),{key:0})):s.content?(a(),l(e(b),{key:1},{default:r(()=>[d(o.$slots,"title",{},()=>[m(v(e(t).title),1)])]),_:3})):i("",!0),!e(t).description&&!s.description?(a(),l(e(_),{key:2})):s.content?(a(),l(e(_),{key:3},{default:r(()=>[d(o.$slots,"description",{},()=>[m(v(e(t).description),1)])]),_:3})):i("",!0)]),_:3})):i("",!0),d(o.$slots,"content",{close:p},()=>[s.header||e(t).title||s.title||e(t).description||s.description||e(t).close||s.close?(a(),q("div",{key:0,"data-slot":"header",class:c(u.value.header({class:e(t).ui?.header}))},[d(o.$slots,"header",{close:p},()=>[e(t).title||s.title||e(t).description||s.description?(a(),q("div",{key:0,"data-slot":"wrapper",class:c(u.value.wrapper({class:e(t).ui?.wrapper}))},[e(t).title||s.title?(a(),l(e(b),{key:0,"data-slot":"title",class:c(u.value.title({class:e(t).ui?.title}))},{default:r(()=>[d(o.$slots,"title",{},()=>[m(v(e(t).title),1)])]),_:3},8,["class"])):i("",!0),e(t).description||s.description?(a(),l(e(_),{key:1,"data-slot":"description",class:c(u.value.description({class:e(t).ui?.description}))},{default:r(()=>[d(o.$slots,"description",{},()=>[m(v(e(t).description),1)])]),_:3},8,["class"])):i("",!0)],2)):i("",!0),d(o.$slots,"actions"),e(t).close||s.close?(a(),l(e(A),{key:1,"as-child":""},{default:r(()=>[d(o.$slots,"close",{ui:u.value},()=>[e(t).close?(a(),l(M,k({key:0,icon:e(t).closeIcon||e($).ui.icons.close,color:"neutral",variant:"ghost","aria-label":e(C)("slideover.close")},typeof e(t).close=="object"?e(t).close:{},{"data-slot":"close",class:u.value.close({class:e(t).ui?.close})}),null,16,["icon","aria-label","class"])):i("",!0)])]),_:2},1024)):i("",!0)])],2)):i("",!0),Q("div",{"data-slot":"body",class:c(u.value.body({class:e(t).ui?.body}))},[d(o.$slots,"body",{close:p})],2),s.footer?(a(),q("div",{key:1,"data-slot":"footer",class:c(u.value.footer({class:e(t).ui?.footer}))},[d(o.$slots,"footer",{close:p})],2)):i("",!0)])]),_:2},1040,["data-side","class"])]),_:2},1024)]),_:2},1040,["force-mount"])]),_:3},16))}};export{le as _};
1
+ import{D as H,a as R,b as E,c as N,d as b,e as _,f as A,g as L}from"./CtQMagSz.js";import{a2 as T,a3 as z,a4 as F,a5 as G,a6 as I,a7 as U,bG as J,o as a,e as l,f as r,b as e,i as c,U as d,l as i,h,V as k,bJ as K,bW as W,bR as X,k as m,t as v,c as q,j as M,g as Q,$ as Y,a0 as Z,v as x,b2 as B,bX as ee,a8 as te}from"./1QWBzxLM.js";const se={slots:{overlay:"fixed inset-0 bg-elevated/75",content:"fixed bg-default divide-y divide-default sm:ring ring-default sm:shadow-lg flex flex-col focus:outline-none",header:"flex items-center gap-1.5 p-4 sm:px-6 min-h-(--ui-header-height)",wrapper:"",body:"flex-1 overflow-y-auto p-4 sm:p-6",footer:"flex items-center gap-1.5 p-4 sm:px-6",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",close:"absolute top-4 end-4"},variants:{side:{top:{content:""},right:{content:"max-w-md"},bottom:{content:""},left:{content:"max-w-md"}},inset:{true:{content:"rounded-lg"}},transition:{true:{overlay:"data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"}}},compoundVariants:[{side:"top",inset:!0,class:{content:"max-h-[calc(100%-2rem)] inset-x-4 top-4"}},{side:"top",inset:!1,class:{content:"max-h-full inset-x-0 top-0"}},{side:"right",inset:!0,class:{content:"w-[calc(100%-2rem)] inset-y-4 right-4"}},{side:"right",inset:!1,class:{content:"w-full inset-y-0 right-0"}},{side:"bottom",inset:!0,class:{content:"max-h-[calc(100%-2rem)] inset-x-4 bottom-4"}},{side:"bottom",inset:!1,class:{content:"max-h-full inset-x-0 bottom-0"}},{side:"left",inset:!0,class:{content:"w-[calc(100%-2rem)] inset-y-4 left-4"}},{side:"left",inset:!1,class:{content:"w-full inset-y-0 left-0"}},{transition:!0,side:"top",class:{content:"data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]"}},{transition:!0,side:"right",class:{content:"data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]"}},{transition:!0,side:"bottom",class:{content:"data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]"}},{transition:!0,side:"left",class:{content:"data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]"}}]},le={__name:"USlideover",props:{title:{type:String,required:!1},description:{type:String,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},transition:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1,default:"right"},inset:{type:Boolean,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1}},emits:["leave","after:leave","enter","after:enter","close:prevent","update:open"],setup(D,{emit:O}){const P=D,f=O,s=T(),t=z("slideover",P),{t:C}=F(),$=G(),S=I(U(t,"open","defaultOpen","modal","unmountOnHide"),f),w=J(B(()=>t.portal)),V=B(()=>t.content),j=x(()=>t.dismissible?{pointerDownOutside:ee}:["interactOutside","escapeKeyDown"].reduce((n,y)=>(n[y]=p=>{p.preventDefault(),f("close:prevent")},n),{})),u=x(()=>te({extend:se,...$.ui?.slideover||{}})({transition:t.transition,side:t.side,inset:t.inset}));return(o,n)=>(a(),l(e(L),Y(Z(e(S))),{default:r(({open:y,close:p})=>[s.default?(a(),l(e(H),{key:0,"as-child":"",class:c(e(t).class)},{default:r(()=>[d(o.$slots,"default",{open:y})]),_:2},1032,["class"])):i("",!0),h(e(R),k(e(w),{"force-mount":e(w).disabled&&e(t).unmountOnHide===!1||void 0}),{default:r(()=>[h(e(K),null,{default:r(()=>[e(t).overlay?(a(),l(e(E),{key:0,"data-slot":"overlay",class:c(u.value.overlay({class:e(t).ui?.overlay}))},null,8,["class"])):i("",!0),h(e(N),k({"data-side":e(t).side,"data-slot":"content",class:u.value.content({class:[!s.default&&e(t).class,e(t).ui?.content]})},V.value,{onEnter:n[0]||(n[0]=g=>f("enter")),onAfterEnter:n[1]||(n[1]=g=>f("after:enter")),onLeave:n[2]||(n[2]=g=>f("leave")),onAfterLeave:n[3]||(n[3]=g=>f("after:leave"))},W(j.value)),{default:r(()=>[!e(t).title&&!s.title||!e(t).description&&!s.description||s.content?(a(),l(e(X),{key:0},{default:r(()=>[!e(t).title&&!s.title?(a(),l(e(b),{key:0})):s.content?(a(),l(e(b),{key:1},{default:r(()=>[d(o.$slots,"title",{},()=>[m(v(e(t).title),1)])]),_:3})):i("",!0),!e(t).description&&!s.description?(a(),l(e(_),{key:2})):s.content?(a(),l(e(_),{key:3},{default:r(()=>[d(o.$slots,"description",{},()=>[m(v(e(t).description),1)])]),_:3})):i("",!0)]),_:3})):i("",!0),d(o.$slots,"content",{close:p},()=>[s.header||e(t).title||s.title||e(t).description||s.description||e(t).close||s.close?(a(),q("div",{key:0,"data-slot":"header",class:c(u.value.header({class:e(t).ui?.header}))},[d(o.$slots,"header",{close:p},()=>[e(t).title||s.title||e(t).description||s.description?(a(),q("div",{key:0,"data-slot":"wrapper",class:c(u.value.wrapper({class:e(t).ui?.wrapper}))},[e(t).title||s.title?(a(),l(e(b),{key:0,"data-slot":"title",class:c(u.value.title({class:e(t).ui?.title}))},{default:r(()=>[d(o.$slots,"title",{},()=>[m(v(e(t).title),1)])]),_:3},8,["class"])):i("",!0),e(t).description||s.description?(a(),l(e(_),{key:1,"data-slot":"description",class:c(u.value.description({class:e(t).ui?.description}))},{default:r(()=>[d(o.$slots,"description",{},()=>[m(v(e(t).description),1)])]),_:3},8,["class"])):i("",!0)],2)):i("",!0),d(o.$slots,"actions"),e(t).close||s.close?(a(),l(e(A),{key:1,"as-child":""},{default:r(()=>[d(o.$slots,"close",{ui:u.value},()=>[e(t).close?(a(),l(M,k({key:0,icon:e(t).closeIcon||e($).ui.icons.close,color:"neutral",variant:"ghost","aria-label":e(C)("slideover.close")},typeof e(t).close=="object"?e(t).close:{},{"data-slot":"close",class:u.value.close({class:e(t).ui?.close})}),null,16,["icon","aria-label","class"])):i("",!0)])]),_:2},1024)):i("",!0)])],2)):i("",!0),Q("div",{"data-slot":"body",class:c(u.value.body({class:e(t).ui?.body}))},[d(o.$slots,"body",{close:p})],2),s.footer?(a(),q("div",{key:1,"data-slot":"footer",class:c(u.value.footer({class:e(t).ui?.footer}))},[d(o.$slots,"footer",{close:p})],2)):i("",!0)])]),_:2},1040,["data-side","class"])]),_:2},1024)]),_:2},1040,["force-mount"])]),_:3},16))}};export{le as _};