@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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{BdQ7kfxJ.js → 1QWBzxLM.js} +4 -4
- package/.output/public/_nuxt/{CY1UsEbI.js → 4hW9LHwA.js} +1 -1
- package/.output/public/_nuxt/96uxfdYT.js +1 -0
- package/.output/public/_nuxt/{HGYIpJtg.js → AbnDY6Zr.js} +1 -1
- package/.output/public/_nuxt/{CZ6WR7uw.js → B-1zt4pp.js} +1 -1
- package/.output/public/_nuxt/{Sx5-c-bZ.js → B1iYmAt_.js} +1 -1
- package/.output/public/_nuxt/{CbzgEkmW.js → B2bxEmbR.js} +1 -1
- package/.output/public/_nuxt/B3hAvaCe.js +4 -0
- package/.output/public/_nuxt/{CyWOerIG.js → B4lvHjBe.js} +1 -1
- package/.output/public/_nuxt/B5S7BkC3.js +1 -0
- package/.output/public/_nuxt/{Bb_1uAHn.js → B6j5Ornu.js} +1 -1
- package/.output/public/_nuxt/{CrsaY0R_.js → B82vqOZe.js} +1 -1
- package/.output/public/_nuxt/{CTFUlsXp.js → B9oXlGro.js} +1 -1
- package/.output/public/_nuxt/{CsJ9Ce4U.js → BABCH5kE.js} +1 -1
- package/.output/public/_nuxt/{Gn1Ns00e.js → BF5qB58w.js} +1 -1
- package/.output/public/_nuxt/{CsGsLxHg.js → BFLa9ZEP.js} +1 -1
- package/.output/public/_nuxt/BIlohx1E.js +1 -0
- package/.output/public/_nuxt/{B6djubIK.js → BM5C-Oec.js} +1 -1
- package/.output/public/_nuxt/{CrZhoZuI.js → BOA-I6S9.js} +1 -1
- package/.output/public/_nuxt/{Bp2zrrkV.js → BQUhoGCh.js} +1 -1
- package/.output/public/_nuxt/{DUC3QnqW.js → BQYLGX9o.js} +1 -1
- package/.output/public/_nuxt/{CUjzhXN1.js → BRMeEHXd.js} +1 -1
- package/.output/public/_nuxt/{Cf_a8ynB.js → BRtaKOKv.js} +2 -2
- package/.output/public/_nuxt/{B7uPoZ7T.js → BS91Og__.js} +1 -1
- package/.output/public/_nuxt/{DKgbchez.js → BTGAvMoT.js} +1 -1
- package/.output/public/_nuxt/{BIamiwb7.js → BaLX92Wz.js} +1 -1
- package/.output/public/_nuxt/{LWIyaZKe.js → Bc6Zr-Xn.js} +1 -1
- package/.output/public/_nuxt/{R7AVOWi_.js → BceMEnJt.js} +1 -1
- package/.output/public/_nuxt/{Q2oJNyXL.js → BeCAVtCK.js} +1 -1
- package/.output/public/_nuxt/{D_SD71Qf.js → Bf119e7x.js} +1 -1
- package/.output/public/_nuxt/BfRcdz11.js +9 -0
- package/.output/public/_nuxt/{CxwnFFD0.js → Bl0xzETD.js} +1 -1
- package/.output/public/_nuxt/{C_eXufkv.js → BnUQ3i5l.js} +1 -1
- package/.output/public/_nuxt/{rPG7kzfL.js → Bp1WeQ0_.js} +1 -1
- package/.output/public/_nuxt/{BL8cYWsR.js → Bp31ZRcA.js} +1 -1
- package/.output/public/_nuxt/{Drh1_ASq.js → BrxUH8qL.js} +1 -1
- package/.output/public/_nuxt/{D72Ce8Ff.js → BsdfEbVC.js} +1 -1
- package/.output/public/_nuxt/BtGI4ZbP.js +1 -0
- package/.output/public/_nuxt/{BV8EzO8q.js → BuMX-4RF.js} +1 -1
- package/.output/public/_nuxt/{DPPhFZOr.js → BuXJR5tn.js} +1 -1
- package/.output/public/_nuxt/{Bh2WA4IJ.js → Bx_lfKHl.js} +1 -1
- package/.output/public/_nuxt/{vcSKeWsW.js → C4UKyPQn.js} +1 -1
- package/.output/public/_nuxt/{IoE3eJ9F.js → C9XCTbtQ.js} +1 -1
- package/.output/public/_nuxt/{BilJoEne.js → CEPU6VkU.js} +1 -1
- package/.output/public/_nuxt/CHz7LJIX.js +1 -0
- package/.output/public/_nuxt/{BPhGDGAR.js → CMhd8IBr.js} +1 -1
- package/.output/public/_nuxt/{C5X_N4R7.js → CN1M6i4K.js} +33 -33
- package/.output/public/_nuxt/CQLkowA3.js +1 -0
- package/.output/public/_nuxt/{DTtizz85.js → CU_2YLhT.js} +1 -1
- package/.output/public/_nuxt/{CMVTTE_g.js → CXkXHtcx.js} +1 -1
- package/.output/public/_nuxt/{igDJCTgt.js → CZeKW-zP.js} +1 -1
- package/.output/public/_nuxt/{9oKY4Zb7.js → CapSEET7.js} +1 -1
- package/.output/public/_nuxt/{j2eGYaRa.js → CeExxGSu.js} +1 -1
- package/.output/public/_nuxt/{CEgRB8H9.js → CfwpqSe7.js} +1 -1
- package/.output/public/_nuxt/{CFKbXp6V.js → ChOtLYkd.js} +1 -1
- package/.output/public/_nuxt/ChuJzPWz.js +1 -0
- package/.output/public/_nuxt/{Bo73sAu8.js → CiCUZGFZ.js} +1 -1
- package/.output/public/_nuxt/{C6R4tyud.js → CkL_oDa8.js} +1 -1
- package/.output/public/_nuxt/{DtGJeysS.js → CkhOMiiO.js} +1 -1
- package/.output/public/_nuxt/ClmHMP65.js +2 -0
- package/.output/public/_nuxt/{BtcDY0Du.js → Cnm0d_7S.js} +1 -1
- package/.output/public/_nuxt/{CK2AMqz_.js → CtQMagSz.js} +1 -1
- package/.output/public/_nuxt/{B1KjIR-q.js → Ctnn3S3-.js} +1 -1
- package/.output/public/_nuxt/{DCeZxpxe.js → CywiLuOD.js} +4 -4
- package/.output/public/_nuxt/{oA84LLqO.js → CzRkZLB4.js} +1 -1
- package/.output/public/_nuxt/CzyCEdYP.js +1 -0
- package/.output/public/_nuxt/{D56yp7m9.js → D-F0Rhjj.js} +1 -1
- package/.output/public/_nuxt/D4mPjHHR.js +2 -0
- package/.output/public/_nuxt/{BsGvSoPC.js → D4v7lLm3.js} +1 -1
- package/.output/public/_nuxt/{CxRTKV-K.js → D6B0WKO0.js} +1 -1
- package/.output/public/_nuxt/{jv8U_Tup.js → DAg6jtav.js} +1 -1
- package/.output/public/_nuxt/DBXXb0w8.js +1 -0
- package/.output/public/_nuxt/{ChlP20A5.js → DHN2t5Vt.js} +1 -1
- package/.output/public/_nuxt/{B8tezsWe.js → DJKHXfNS.js} +1 -1
- package/.output/public/_nuxt/{CFg5qdS0.js → DMqAUHFN.js} +1 -1
- package/.output/public/_nuxt/{C9A3sPDo.js → DURme_kn.js} +1 -1
- package/.output/public/_nuxt/{C2hIM5f9.js → DVo_e_uj.js} +1 -1
- package/.output/public/_nuxt/{DKhqIou2.js → DXh8q5KY.js} +1 -1
- package/.output/public/_nuxt/{CZXeJs2k.js → DXz1Kb4-.js} +1 -1
- package/.output/public/_nuxt/{CPrVhXJk.js → DYdwHaco.js} +1 -1
- package/.output/public/_nuxt/{WZXZeGYt.js → D_ZAGxCQ.js} +1 -1
- package/.output/public/_nuxt/{D5SN7rPK.js → D_dhjJvR.js} +1 -1
- package/.output/public/_nuxt/{DR1jFptD.js → DamZHy5M.js} +1 -1
- package/.output/public/_nuxt/{xKX9IHe3.js → DbtjJCra.js} +1 -1
- package/.output/public/_nuxt/{r6zkA1SE.js → DcOlL-oi.js} +1 -1
- package/.output/public/_nuxt/{CxspCKpR.js → DeQ9sIia.js} +1 -1
- package/.output/public/_nuxt/{BkHJoHpc.js → DjX1bLZD.js} +1 -1
- package/.output/public/_nuxt/{Be0bwdsi.js → Dly7wCCl.js} +1 -1
- package/.output/public/_nuxt/DmeogbGY.js +1 -0
- package/.output/public/_nuxt/{CfV2N201.js → Dn_-RkxP.js} +1 -1
- package/.output/public/_nuxt/{dg6uXTyR.js → DoDo3VF2.js} +1 -1
- package/.output/public/_nuxt/{BMlKQMjM.js → DoVHTl-K.js} +1 -1
- package/.output/public/_nuxt/DpM8IgHL.js +1 -0
- package/.output/public/_nuxt/{B4NjylBn.js → Dpwj_1H5.js} +1 -1
- package/.output/public/_nuxt/{DzJa19LG.js → DvSHenmZ.js} +1 -1
- package/.output/public/_nuxt/DvYU87_a.js +1 -0
- package/.output/public/_nuxt/{G2J1dVVb.js → Dx41arC8.js} +1 -1
- package/.output/public/_nuxt/DxBrlj7b.js +1 -0
- package/.output/public/_nuxt/{r-HZNbp3.js → JNpNdV-o.js} +1 -1
- package/.output/public/_nuxt/Lz9MmwKY.js +1 -0
- package/.output/public/_nuxt/OMI0cmZ0.js +1 -0
- package/.output/public/_nuxt/{CUWrUpTl.js → UAmyrRCI.js} +1 -1
- package/.output/public/_nuxt/{EJllK0wm.js → VBTxfbqU.js} +1 -1
- package/.output/public/_nuxt/VbedPPFH.js +1 -0
- package/.output/public/_nuxt/{BY9A1aOT.js → _okd7MfH.js} +1 -1
- package/.output/public/_nuxt/{BOn5q0rT.js → bmAf49LT.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/0174ebd8-8fa5-4698-aa79-7a8dd2f6527f.json +1 -0
- package/.output/public/_nuxt/{D0XWJGhG.js → e-GZmCeP.js} +1 -1
- package/.output/public/_nuxt/entry.Dv52uAyn.css +1 -0
- package/.output/public/_nuxt/{DVIIj6Vv.js → f9TbT3AM.js} +1 -1
- package/.output/public/_nuxt/gdlHFfN6.js +1 -0
- package/.output/public/_nuxt/{BTG_PmM5.js → huBoAZeM.js} +1 -1
- package/.output/public/_nuxt/{DadksxQ9.js → mYw4b7uY.js} +1 -1
- package/.output/public/_nuxt/{B0eHOux4.js → mi7tdFxN.js} +1 -1
- package/.output/public/_nuxt/sFe4Zr5j.js +1 -0
- package/.output/public/_nuxt/{CLrLFf3s.js → uspGXbik.js} +1 -1
- package/.output/public/_nuxt/{DLN-CQXF.js → w7KxwWEv.js} +1 -1
- package/.output/public/_nuxt/{Bp55g9gr.js → wa4k1aDz.js} +1 -1
- package/.output/public/_nuxt/{C2yZcDch.js → xuB8n0QL.js} +1 -1
- package/.output/public/favicon.ico +0 -0
- package/.output/public/trace-viewer/assets/codeMirrorModule-LEHpjmcn.js +32 -0
- package/.output/public/trace-viewer/assets/defaultSettingsView-BNmKHKpQ.js +264 -0
- package/.output/public/trace-viewer/assets/urlMatch-BYQrIQwR.js +1 -0
- package/.output/public/trace-viewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- package/.output/public/trace-viewer/codeMirrorModule.DYBRYzYX.css +1 -0
- package/.output/public/trace-viewer/codicon.DCmgc-ay.ttf +0 -0
- package/.output/public/trace-viewer/defaultSettingsView.CjdS-WJx.css +1 -0
- package/.output/public/trace-viewer/index.CzXZzn5A.css +1 -0
- package/.output/public/trace-viewer/index.DMMX1gXU.js +2 -0
- package/.output/public/trace-viewer/index.html +44 -0
- package/.output/public/trace-viewer/manifest.webmanifest +16 -0
- package/.output/public/trace-viewer/playwright-logo.svg +9 -0
- package/.output/public/trace-viewer/snapshot.html +10 -0
- package/.output/public/trace-viewer/snapshot.v8KI4P3m.js +2 -0
- package/.output/public/trace-viewer/sw.bundle.js +5 -0
- package/.output/public/trace-viewer/uiMode.BZQ54Kgt.css +1 -0
- package/.output/public/trace-viewer/uiMode.Ut8wwJNp.js +6 -0
- package/.output/public/trace-viewer/uiMode.html +18 -0
- package/.output/public/trace-viewer/xtermModule.DYP7pi_n.css +32 -0
- package/.output/server/chunks/_/users.mjs +1 -1
- package/.output/server/chunks/build/{BreadcrumbNav-DBnGj5Jq.mjs → BreadcrumbNav-Bg4QGX0k.mjs} +11 -4
- package/.output/server/chunks/build/BreadcrumbNav-Bg4QGX0k.mjs.map +1 -0
- package/.output/server/chunks/build/{BrowserBadge-vFb1ERG_.mjs → BrowserBadge-yMgLTBUu.mjs} +17 -9
- package/.output/server/chunks/build/BrowserBadge-yMgLTBUu.mjs.map +1 -0
- package/.output/server/chunks/build/{ChartMarkerLines-BXqUpUcs.mjs → ChartMarkerLines-D0cTRlxF.mjs} +3 -3
- package/.output/server/chunks/build/ChartMarkerLines-D0cTRlxF.mjs.map +1 -0
- package/.output/server/chunks/build/{ChartTooltip-DoF6Smyc.mjs → ChartTooltip-B2t6VYYH.mjs} +3 -3
- package/.output/server/chunks/build/ChartTooltip-B2t6VYYH.mjs.map +1 -0
- package/.output/server/chunks/build/Checkbox-ChSYhiUz.mjs +1 -1
- package/.output/server/chunks/build/ClientDate-U97Z1p6-.mjs +32 -0
- package/.output/server/chunks/build/ClientDate-U97Z1p6-.mjs.map +1 -0
- package/.output/server/chunks/build/{CodeBlock-CmvKHaq8.mjs → CodeBlock-DuWhmcI2.mjs} +3 -3
- package/.output/server/chunks/build/CodeBlock-DuWhmcI2.mjs.map +1 -0
- package/.output/server/chunks/build/DashboardSidebarToggle-a5KYecZ0.mjs +1 -1
- package/.output/server/chunks/build/DashboardToolbar-BZoGc0ri.mjs +72 -0
- package/.output/server/chunks/build/DashboardToolbar-BZoGc0ri.mjs.map +1 -0
- package/.output/server/chunks/build/{DataLocationCard-ChV02QJj.mjs → DataLocationCard-DCdhQBIY.mjs} +2 -2
- package/.output/server/chunks/build/DataLocationCard-DCdhQBIY.mjs.map +1 -0
- package/.output/server/chunks/build/{DesktopRunLocallyButton-BfmbZpiL.mjs → DesktopRunLocallyButton-ChHg3GqK.mjs} +5 -5
- package/.output/server/chunks/build/{DesktopRunLocallyButton-BfmbZpiL.mjs.map → DesktopRunLocallyButton-ChHg3GqK.mjs.map} +1 -1
- package/.output/server/chunks/build/{DiagnosisPanel-C_ndadzP.mjs → DiagnosisPanel-DE-r2UV8.mjs} +5 -5
- package/.output/server/chunks/build/DiagnosisPanel-DE-r2UV8.mjs.map +1 -0
- package/.output/server/chunks/build/{DiagnosisResult-GAjo6Lt3.mjs → DiagnosisResult-CrGK--xh.mjs} +16 -10
- package/.output/server/chunks/build/DiagnosisResult-CrGK--xh.mjs.map +1 -0
- package/.output/server/chunks/build/{DurationValue-CObiBDnH.mjs → DurationValue-Dn06XQk3.mjs} +2 -2
- package/.output/server/chunks/build/DurationValue-Dn06XQk3.mjs.map +1 -0
- package/.output/server/chunks/build/EntityLinks-BcpvMt_V.mjs +1 -1
- package/.output/server/chunks/build/EnvManagedBadge-_8GfjWjE.mjs +1 -1
- package/.output/server/chunks/build/{FeatureUnavailable-Buoyoqx1.mjs → FeatureUnavailable-IaBjVCqQ.mjs} +2 -2
- package/.output/server/chunks/build/FeatureUnavailable-IaBjVCqQ.mjs.map +1 -0
- package/.output/server/chunks/build/{GetStartedWizard-tL3U_qM1.mjs → GetStartedWizard-BiyxEXWP.mjs} +3 -3
- package/.output/server/chunks/build/GetStartedWizard-BiyxEXWP.mjs.map +1 -0
- package/.output/server/chunks/build/{HelpHint-C96TlqxY.mjs → HelpHint-CdBz6deq.mjs} +2 -2
- package/.output/server/chunks/build/HelpHint-CdBz6deq.mjs.map +1 -0
- package/.output/server/chunks/build/{MetaStripGroup-Cp2WCQf7.mjs → MetaStripGroup-CDyGlsNt.mjs} +94 -21
- package/.output/server/chunks/build/MetaStripGroup-CDyGlsNt.mjs.map +1 -0
- package/.output/server/chunks/build/{NavbarActions-VCHW0u67.mjs → NavbarActions-BTWxKCVI.mjs} +2 -2
- package/.output/server/chunks/build/NavbarActions-BTWxKCVI.mjs.map +1 -0
- package/.output/server/chunks/build/NavigationMenu-D4ZpdCm_.mjs +1 -1
- package/.output/server/chunks/build/OpenInIdeLink-Bnl-_som.mjs +1 -1
- package/.output/server/chunks/build/{ProjectTestCasesTable-saHYJoyQ.mjs → ProjectTestCasesTable-DJDAZ9NQ.mjs} +9 -9
- package/.output/server/chunks/build/ProjectTestCasesTable-DJDAZ9NQ.mjs.map +1 -0
- package/.output/server/chunks/build/{RunReports-CKYYRC59.mjs → RunReports-BSo2cCNx.mjs} +4 -4
- package/.output/server/chunks/build/RunReports-BSo2cCNx.mjs.map +1 -0
- package/.output/server/chunks/build/{RunStatusBadge-CWhmAmKb.mjs → RunStatusBadge-zfeSwcTx.mjs} +2 -2
- package/.output/server/chunks/build/RunStatusBadge-zfeSwcTx.mjs.map +1 -0
- package/.output/server/chunks/build/{SectionCard-BB1O3uXd.mjs → SectionCard-CKD1s0eF.mjs} +2 -2
- package/.output/server/chunks/build/SectionCard-CKD1s0eF.mjs.map +1 -0
- package/.output/server/chunks/build/Select-COU8NARj.mjs +1 -1
- package/.output/server/chunks/build/SelectMenu-BUwwc3Qt.mjs +1 -1
- package/.output/server/chunks/build/{SettingsField-CEasBHu3.mjs → SettingsField-CDnUtiCM.mjs} +3 -3
- package/.output/server/chunks/build/SettingsField-CDnUtiCM.mjs.map +1 -0
- package/.output/server/chunks/build/Table-BET-DOtX.mjs +1 -1
- package/.output/server/chunks/build/{TestCaseHistoryChart-BgI6P_zS.mjs → TestCaseHistoryChart-Do7WK-ZY.mjs} +16 -17
- package/.output/server/chunks/build/TestCaseHistoryChart-Do7WK-ZY.mjs.map +1 -0
- package/.output/server/chunks/build/{TestStatusBar-DR8jM5th.mjs → TestStatusBar-BipoEOzd.mjs} +15 -6
- package/.output/server/chunks/build/TestStatusBar-BipoEOzd.mjs.map +1 -0
- package/.output/server/chunks/build/Tooltip-CK0ucuXC.mjs +1 -1
- package/.output/server/chunks/build/{_id_-rQhFY0fN.mjs → _id_-BLPB189b.mjs} +16 -16
- package/.output/server/chunks/build/{_id_-rQhFY0fN.mjs.map → _id_-BLPB189b.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-kkexEH_q.mjs → _id_-BeGJOSxY.mjs} +16 -16
- package/.output/server/chunks/build/_id_-BeGJOSxY.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-B7Dw490u.mjs → _id_-CfLEW45H.mjs} +472 -304
- package/.output/server/chunks/build/_id_-CfLEW45H.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-DVPb1S93.mjs → _id_-DxHe32cW.mjs} +654 -453
- package/.output/server/chunks/build/_id_-DxHe32cW.mjs.map +1 -0
- package/.output/server/chunks/build/{about-C4AbyQ4q.mjs → about-FLAssVsA.mjs} +5 -5
- package/.output/server/chunks/build/about-FLAssVsA.mjs.map +1 -0
- package/.output/server/chunks/build/{account-B45bYZd1.mjs → account-Cvz6KkYu.mjs} +4 -4
- package/.output/server/chunks/build/account-Cvz6KkYu.mjs.map +1 -0
- package/.output/server/chunks/build/{ai-CgN9xXFf.mjs → ai-DR9Zry7B.mjs} +8 -8
- package/.output/server/chunks/build/{ai-CgN9xXFf.mjs.map → ai-DR9Zry7B.mjs.map} +1 -1
- package/.output/server/chunks/build/{analytics-BRkiUpwa.mjs → analytics-CCAQayhv.mjs} +9 -9
- package/.output/server/chunks/build/{analytics-BRkiUpwa.mjs.map → analytics-CCAQayhv.mjs.map} +1 -1
- package/.output/server/chunks/build/{auto-heal-BnTdKHQq.mjs → auto-heal-ngiiiVmq.mjs} +4 -4
- package/.output/server/chunks/build/auto-heal-ngiiiVmq.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{default-BGOdM_zA.mjs → default-wYpdMMvh.mjs} +15 -13
- package/.output/server/chunks/build/{default-BGOdM_zA.mjs.map → default-wYpdMMvh.mjs.map} +1 -1
- package/.output/server/chunks/build/{docs-D7R5eJ1Z.mjs → docs-BX9DoKOI.mjs} +4 -4
- package/.output/server/chunks/build/{docs-D7R5eJ1Z.mjs.map → docs-BX9DoKOI.mjs.map} +1 -1
- package/.output/server/chunks/build/{edit-BbL3k6c3.mjs → edit-DnyBC4uC.mjs} +7 -7
- package/.output/server/chunks/build/{edit-BbL3k6c3.mjs.map → edit-DnyBC4uC.mjs.map} +1 -1
- package/.output/server/chunks/build/fetch-DOcN2mHf.mjs +1 -1
- package/.output/server/chunks/build/{help-content-BK3jcgLw.mjs → help-content-3QLSe6Vd.mjs} +3 -3
- package/.output/server/chunks/build/help-content-3QLSe6Vd.mjs.map +1 -0
- package/.output/server/chunks/build/{import-ibAn_HB9.mjs → import-S-w3MXez.mjs} +8 -8
- package/.output/server/chunks/build/import-S-w3MXez.mjs.map +1 -0
- package/.output/server/chunks/build/{index-D5A0DW7Y.mjs → index-BFr7JW_2.mjs} +4 -4
- package/.output/server/chunks/build/index-BFr7JW_2.mjs.map +1 -0
- package/.output/server/chunks/build/{index-CqinXTVs.mjs → index-CdzYiYiu.mjs} +9 -9
- package/.output/server/chunks/build/{index-CqinXTVs.mjs.map → index-CdzYiYiu.mjs.map} +1 -1
- package/.output/server/chunks/build/{index-DreB_S-d.mjs → index-CgYJur1z.mjs} +31 -23
- package/.output/server/chunks/build/index-CgYJur1z.mjs.map +1 -0
- package/.output/server/chunks/build/{index-2GmuPNF-.mjs → index-CjnZ521K.mjs} +22 -4
- package/.output/server/chunks/build/index-CjnZ521K.mjs.map +1 -0
- package/.output/server/chunks/build/{index-KsRegEjT.mjs → index-xgA4P1ht.mjs} +3218 -4087
- package/.output/server/chunks/build/index-xgA4P1ht.mjs.map +1 -0
- package/.output/server/chunks/build/isValueEqualOrExist-D4lZ8uRY.mjs +1 -1
- package/.output/server/chunks/build/login-DueFS2RU.mjs +1 -1
- package/.output/server/chunks/build/{mcp-Dwj29-uG.mjs → mcp-DlZzubUF.mjs} +7 -7
- package/.output/server/chunks/build/mcp-DlZzubUF.mjs.map +1 -0
- package/.output/server/chunks/build/{notifications-CjAn5FJj.mjs → notifications-ByPVhyPX.mjs} +6 -6
- package/.output/server/chunks/build/notifications-ByPVhyPX.mjs.map +1 -0
- package/.output/server/chunks/build/{performance-DRzcu_c7.mjs → performance-Dc9FhaJr.mjs} +6 -6
- package/.output/server/chunks/build/performance-Dc9FhaJr.mjs.map +1 -0
- package/.output/server/chunks/build/{pr-feedback-DR60oGBf.mjs → pr-feedback-5kC_UmKG.mjs} +4 -4
- package/.output/server/chunks/build/pr-feedback-5kC_UmKG.mjs.map +1 -0
- package/.output/server/chunks/build/{selections-BjjolRZ9.mjs → selections-C6J9mI0s.mjs} +9 -9
- package/.output/server/chunks/build/selections-C6J9mI0s.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +33 -33
- package/.output/server/chunks/build/{settings-B3NWV9tu.mjs → settings-DcCAv0U4.mjs} +17 -81
- package/.output/server/chunks/build/settings-DcCAv0U4.mjs.map +1 -0
- package/.output/server/chunks/build/{settings-metadata-DwJk8uSt.mjs → settings-metadata-B684YiW4.mjs} +2 -2
- package/.output/server/chunks/build/settings-metadata-B684YiW4.mjs.map +1 -0
- package/.output/server/chunks/build/{setup-BlgFTixN.mjs → setup-Cf3Mzf-W.mjs} +8 -8
- package/.output/server/chunks/build/{setup-BlgFTixN.mjs.map → setup-Cf3Mzf-W.mjs.map} +1 -1
- package/.output/server/chunks/build/{storage-C1O-FC0U.mjs → storage-B4VySiv3.mjs} +7 -7
- package/.output/server/chunks/build/storage-B4VySiv3.mjs.map +1 -0
- package/.output/server/chunks/build/{tags-dsvYrnii.mjs → tags-BvWdsd1F.mjs} +25 -11
- package/.output/server/chunks/build/tags-BvWdsd1F.mjs.map +1 -0
- package/.output/server/chunks/build/{test-cases-CFiOuyK6.mjs → test-cases-LIIu7dMu.mjs} +11 -11
- package/.output/server/chunks/build/test-cases-LIIu7dMu.mjs.map +1 -0
- package/.output/server/chunks/build/{test-functions-CbmBi6az.mjs → test-functions-Dv8nezrM.mjs} +8 -8
- package/.output/server/chunks/build/test-functions-Dv8nezrM.mjs.map +1 -0
- package/.output/server/chunks/build/{useCopyRich-DPKZKHvZ.mjs → useCopyRich-DRRKIts2.mjs} +17 -14
- package/.output/server/chunks/build/{useCopyRich-DPKZKHvZ.mjs.map → useCopyRich-DRRKIts2.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDesktopDownload-R_RWSgUV.mjs → useDesktopDownload-CK-5nATq.mjs} +2 -2
- package/.output/server/chunks/build/useDesktopDownload-CK-5nATq.mjs.map +1 -0
- package/.output/server/chunks/build/{useDesktopLocalRuns-BdELBy0Y.mjs → useDesktopLocalRuns-BHZic4MJ.mjs} +3 -3
- package/.output/server/chunks/build/useDesktopLocalRuns-BHZic4MJ.mjs.map +1 -0
- package/.output/server/chunks/build/{useDesktopProjectLink-IUN7SIP2.mjs → useDesktopProjectLink-CqBvnXwG.mjs} +2 -2
- package/.output/server/chunks/build/useDesktopProjectLink-CqBvnXwG.mjs.map +1 -0
- package/.output/server/chunks/build/useOpenInIde-DS4YXevu.mjs +1 -1
- package/.output/server/chunks/build/{useSettingsNav-Dg87E7kY.mjs → useSettingsNav-dyHz-2Bz.mjs} +2 -2
- package/.output/server/chunks/build/useSettingsNav-dyHz-2Bz.mjs.map +1 -0
- package/.output/server/chunks/build/{users-DgsoiXxQ.mjs → users-CluLB8DL.mjs} +31 -13
- package/.output/server/chunks/build/users-CluLB8DL.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +839 -680
- package/.output/server/chunks/routes/__piwi/session.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +5 -2
- package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +42 -26
- package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/gate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +1 -1
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs +1 -0
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/traces/check.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +1 -1
- package/.output/server/chunks/routes/mcp.post.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/routes/share/_token_.get.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/3HmftUHT.js +0 -1
- package/.output/public/_nuxt/B7zo6PK8.js +0 -1
- package/.output/public/_nuxt/BO4sfkbw.js +0 -1
- package/.output/public/_nuxt/BdyXNI2_.js +0 -1
- package/.output/public/_nuxt/Bg63qh8W.js +0 -1
- package/.output/public/_nuxt/BnhWd06P.js +0 -1
- package/.output/public/_nuxt/CHWW6xiX.js +0 -1
- package/.output/public/_nuxt/CIPvUOic.js +0 -2
- package/.output/public/_nuxt/CVcFbORW.js +0 -9
- package/.output/public/_nuxt/CZlz5y13.js +0 -1
- package/.output/public/_nuxt/CkV_UG8j.js +0 -1
- package/.output/public/_nuxt/D0TpBpCc.js +0 -1
- package/.output/public/_nuxt/D3LyIeiJ.js +0 -1
- package/.output/public/_nuxt/DcccidY5.js +0 -4
- package/.output/public/_nuxt/DqkCbAzo.js +0 -1
- package/.output/public/_nuxt/DwH4SIZE.js +0 -1
- package/.output/public/_nuxt/DwZS0oRm.js +0 -2
- package/.output/public/_nuxt/DxPZIuWy.js +0 -1
- package/.output/public/_nuxt/Dyb1FouX.js +0 -1
- package/.output/public/_nuxt/builds/meta/a5fb24cc-65e3-4e55-aa12-038fe2de4754.json +0 -1
- package/.output/public/_nuxt/entry.BFe0Ua9k.css +0 -1
- package/.output/public/_nuxt/i7znB42v.js +0 -1
- package/.output/server/chunks/build/BreadcrumbNav-DBnGj5Jq.mjs.map +0 -1
- package/.output/server/chunks/build/BrowserBadge-vFb1ERG_.mjs.map +0 -1
- package/.output/server/chunks/build/ChartMarkerLines-BXqUpUcs.mjs.map +0 -1
- package/.output/server/chunks/build/ChartTooltip-DoF6Smyc.mjs.map +0 -1
- package/.output/server/chunks/build/CodeBlock-CmvKHaq8.mjs.map +0 -1
- package/.output/server/chunks/build/DataLocationCard-ChV02QJj.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisPanel-C_ndadzP.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisResult-GAjo6Lt3.mjs.map +0 -1
- package/.output/server/chunks/build/DurationValue-CObiBDnH.mjs.map +0 -1
- package/.output/server/chunks/build/FeatureUnavailable-Buoyoqx1.mjs.map +0 -1
- package/.output/server/chunks/build/GetStartedWizard-tL3U_qM1.mjs.map +0 -1
- package/.output/server/chunks/build/HelpHint-C96TlqxY.mjs.map +0 -1
- package/.output/server/chunks/build/MetaStripGroup-Cp2WCQf7.mjs.map +0 -1
- package/.output/server/chunks/build/NavbarActions-VCHW0u67.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectTestCasesTable-saHYJoyQ.mjs.map +0 -1
- package/.output/server/chunks/build/RunReports-CKYYRC59.mjs.map +0 -1
- package/.output/server/chunks/build/RunStatusBadge-CWhmAmKb.mjs.map +0 -1
- package/.output/server/chunks/build/SectionCard-BB1O3uXd.mjs.map +0 -1
- package/.output/server/chunks/build/SettingsField-CEasBHu3.mjs.map +0 -1
- package/.output/server/chunks/build/TestCaseHistoryChart-BgI6P_zS.mjs.map +0 -1
- package/.output/server/chunks/build/TestStatusBar-DR8jM5th.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-B7Dw490u.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-DVPb1S93.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-kkexEH_q.mjs.map +0 -1
- package/.output/server/chunks/build/about-C4AbyQ4q.mjs.map +0 -1
- package/.output/server/chunks/build/account-B45bYZd1.mjs.map +0 -1
- package/.output/server/chunks/build/auto-heal-BnTdKHQq.mjs.map +0 -1
- package/.output/server/chunks/build/help-content-BK3jcgLw.mjs.map +0 -1
- package/.output/server/chunks/build/import-ibAn_HB9.mjs.map +0 -1
- package/.output/server/chunks/build/index-2GmuPNF-.mjs.map +0 -1
- package/.output/server/chunks/build/index-D5A0DW7Y.mjs.map +0 -1
- package/.output/server/chunks/build/index-DreB_S-d.mjs.map +0 -1
- package/.output/server/chunks/build/index-KsRegEjT.mjs.map +0 -1
- package/.output/server/chunks/build/mcp-Dwj29-uG.mjs.map +0 -1
- package/.output/server/chunks/build/notifications-CjAn5FJj.mjs.map +0 -1
- package/.output/server/chunks/build/performance-DRzcu_c7.mjs.map +0 -1
- package/.output/server/chunks/build/pr-feedback-DR60oGBf.mjs.map +0 -1
- package/.output/server/chunks/build/selections-BjjolRZ9.mjs.map +0 -1
- package/.output/server/chunks/build/settings-B3NWV9tu.mjs.map +0 -1
- package/.output/server/chunks/build/settings-metadata-DwJk8uSt.mjs.map +0 -1
- package/.output/server/chunks/build/storage-C1O-FC0U.mjs.map +0 -1
- package/.output/server/chunks/build/tags-dsvYrnii.mjs.map +0 -1
- package/.output/server/chunks/build/test-cases-CFiOuyK6.mjs.map +0 -1
- package/.output/server/chunks/build/test-functions-CbmBi6az.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopDownload-R_RWSgUV.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopLocalRuns-BdELBy0Y.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopProjectLink-IUN7SIP2.mjs.map +0 -1
- package/.output/server/chunks/build/useSettingsNav-Dg87E7kY.mjs.map +0 -1
- package/.output/server/chunks/build/users-DgsoiXxQ.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as A,Y as ke,X as me,T as P,o as c,e as C,f as h,U as D,b as e,W as F,Z as le,ay as se,r as V,a as he,C as _e,aP as Ve,h as T,V as O,l as N,aA as ue,v as B,M as Be,aQ as Te,ax as $e,R as Re,ca as Le,bp as Z,bd as ie,bj as Se,aJ as Ce,a9 as je,bB as Ue,bE as Ge,a_ as Qe,bi as qe,aj as ze,aC as re,c as R,F as j,bR as Je,bQ as Xe,a2 as Ye,a3 as Ze,a5 as et,a6 as Ee,a7 as tt,b1 as Me,aG as at,bI as nt,_ as W,i as q,aF as J,k as ce,t as ee,ai as oe,m as lt,y as fe,a$ as pe,G as it,b0 as te,g as X,z as ae,b2 as ve,bL as Oe,a8 as ot,bO as rt}from"./BdQ7kfxJ.js";import{i as st}from"./DKgbchez.js";import{_ as ut}from"./C_eXufkv.js";const[Ae,dt]=le("CollapsibleRoot");var ct=A({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:open"],setup(u,{expose:r,emit:l}){const n=u,t=ke(n,"open",l,{defaultValue:n.defaultOpen,passive:n.open===void 0}),{disabled:s,unmountOnHide:d}=me(n);return dt({contentId:"",disabled:s,open:t,unmountOnHide:d,onOpenToggle:()=>{s.value||(t.value=!t.value)}}),r({open:t}),P(),(f,x)=>(c(),C(e(F),{as:f.as,"as-child":n.asChild,"data-state":e(t)?"open":"closed","data-disabled":e(s)?"":void 0},{default:h(()=>[D(f.$slots,"default",{open:e(t)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),ft=ct,pt=A({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["contentFound"],setup(u,{emit:r}){const l=u,n=r,i=Ae();i.contentId||=se(void 0,"reka-collapsible-content");const t=V(),{forwardRef:s,currentElement:d}=P(),f=V(0),x=V(0),I=B(()=>i.open.value),y=V(I.value),M=V();he(()=>[I.value,t.value?.present],async()=>{await Be();const p=d.value;if(!p)return;M.value=M.value||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const L=p.getBoundingClientRect();x.value=L.height,f.value=L.width,y.value||(p.style.transitionDuration=M.value.transitionDuration,p.style.animationName=M.value.animationName)},{immediate:!0});const _=B(()=>y.value&&i.open.value);return _e(()=>{requestAnimationFrame(()=>{y.value=!1})}),Ve(d,"beforematch",p=>{requestAnimationFrame(()=>{i.onOpenToggle(),n("contentFound")})}),(p,L)=>(c(),C(e(ue),{ref_key:"presentRef",ref:t,present:p.forceMount||e(i).open.value,"force-mount":!0},{default:h(({present:o})=>[T(e(F),O(p.$attrs,{id:e(i).contentId,ref:e(s),"as-child":l.asChild,as:p.as,hidden:o?void 0:e(i).unmountOnHide.value?"":"until-found","data-state":_.value?void 0:e(i).open.value?"open":"closed","data-disabled":e(i).disabled?.value?"":void 0,style:{"--reka-collapsible-content-height":`${x.value}px`,"--reka-collapsible-content-width":`${f.value}px`}}),{default:h(()=>[!e(i).unmountOnHide.value||o?D(p.$slots,"default",{key:0}):N("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]),_:3},8,["present"]))}}),vt=pt,gt=A({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(u){const r=u;P();const l=Ae();return(n,i)=>(c(),C(e(F),{type:n.as==="button"?"button":void 0,as:n.as,"as-child":r.asChild,"aria-controls":e(l).contentId,"aria-expanded":e(l).open.value,"data-state":e(l).open.value?"open":"closed","data-disabled":e(l).disabled?.value?"":void 0,disabled:e(l).disabled?.value,onClick:e(l).onOpenToggle},{default:h(()=>[D(n.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"]))}}),ht=gt;function bt({type:u,defaultValue:r,modelValue:l}){const n=l||r;return l!==void 0||r!==void 0?Array.isArray(n)?"multiple":"single":u??"single"}function yt({type:u,defaultValue:r,modelValue:l}){return u||bt({type:u,defaultValue:r,modelValue:l})}function kt({type:u,defaultValue:r}){return r!==void 0?r:u==="single"?void 0:[]}function mt(u,r){const l=B(()=>yt(u)),n=ke(u,"modelValue",r,{defaultValue:kt(u),passive:u.modelValue===void 0,deep:!0});function i(s){if(l.value==="single")n.value=Te(s,n.value)?void 0:s;else{const d=Array.isArray(n.value)?[...n.value||[]]:[n.value].filter(Boolean);if(st(d,s)){const f=d.findIndex(x=>Te(x,s));d.splice(f,1)}else d.push(s);n.value=d}}const t=B(()=>l.value==="single");return{modelValue:n,changeModelValue:i,isSingle:t}}const[xe,_t]=le("AccordionRoot");var Lt=A({__name:"AccordionRoot",props:{collapsible:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:"vertical"},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:["update:modelValue"],setup(u,{emit:r}){const l=u,n=r,{dir:i,disabled:t,unmountOnHide:s}=me(l),d=$e(i),{modelValue:f,changeModelValue:x,isSingle:I}=mt(l,n),{forwardRef:y,currentElement:M}=P();return _t({disabled:t,direction:d,orientation:l.orientation,parentElement:M,isSingle:I,collapsible:l.collapsible,modelValue:f,changeModelValue:x,unmountOnHide:s}),(_,p)=>(c(),C(e(F),{ref:e(y),"as-child":_.asChild,as:_.as},{default:h(()=>[D(_.$slots,"default",{modelValue:e(f)})]),_:3},8,["as-child","as"]))}}),De=Lt,be=(function(u){return u.Open="open",u.Closed="closed",u})(be||{});const[Pe,Ct]=le("AccordionItem");var xt=A({__name:"AccordionItem",props:{disabled:{type:Boolean,required:!1},value:{type:String,required:!0},unmountOnHide:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u,{expose:r}){const l=u,n=xe(),i=B(()=>n.isSingle.value?l.value===n.modelValue.value:Array.isArray(n.modelValue.value)&&n.modelValue.value.includes(l.value)),t=B(()=>n.disabled.value||l.disabled),s=B(()=>t.value?"":void 0),d=B(()=>i.value?be.Open:be.Closed);r({open:i,dataDisabled:s});const{currentRef:f,currentElement:x}=P();Ct({open:i,dataState:d,disabled:t,dataDisabled:s,triggerId:"",currentRef:f,currentElement:x,value:B(()=>l.value)});function I(y){const M=y.target;if(Array.from(n.parentElement.value?.querySelectorAll("[data-reka-collection-item]")??[]).findIndex(L=>L===M)===-1)return null;Le(y,M,n.parentElement.value,{arrowKeyOptions:n.orientation,dir:n.direction.value,focus:!0})}return(y,M)=>(c(),C(e(ft),{"data-orientation":e(n).orientation,"data-disabled":s.value,"data-state":d.value,disabled:t.value,open:i.value,as:l.as,"as-child":l.asChild,"unmount-on-hide":l.unmountOnHide??e(n).unmountOnHide.value,onKeydown:Re(I,["up","down","left","right","home","end"])},{default:h(()=>[D(y.$slots,"default",{open:i.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child","unmount-on-hide"]))}}),wt=xt,It=A({__name:"AccordionContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u){const r=u,l=xe(),n=Pe();return P(),(i,t)=>(c(),C(e(vt),{role:"region","as-child":r.asChild,as:i.as,"force-mount":r.forceMount,"aria-labelledby":e(n).triggerId,"data-state":e(n).dataState.value,"data-disabled":e(n).dataDisabled.value,"data-orientation":e(l).orientation,style:{"--reka-accordion-content-width":"var(--reka-collapsible-content-width)","--reka-accordion-content-height":"var(--reka-collapsible-content-height)"},onContentFound:t[0]||(t[0]=s=>e(l).changeModelValue(e(n).value.value))},{default:h(()=>[D(i.$slots,"default")]),_:3},8,["as-child","as","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),Tt=It,qt=A({__name:"AccordionTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u){const r=u,l=xe(),n=Pe();n.triggerId||=se(void 0,"reka-accordion-trigger");function i(){const t=l.isSingle.value&&n.open.value&&!l.collapsible;n.disabled.value||t||l.changeModelValue(n.value.value)}return(t,s)=>(c(),C(e(ht),{id:e(n).triggerId,ref:e(n).currentRef,"data-reka-collection-item":"",as:r.as,"as-child":r.asChild,"aria-disabled":e(n).disabled.value||void 0,"aria-expanded":e(n).open.value||!1,"data-disabled":e(n).dataDisabled.value,"data-orientation":e(l).orientation,"data-state":e(n).dataState.value,disabled:e(n).disabled.value,onClick:i},{default:h(()=>[D(t.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),Ne=qt;function de(u){return u?"open":"closed"}function Fe(u,r){return`${u}-trigger-${r}`}function we(u,r){return`${u}-content-${r}`}const Et="navigationMenu.linkSelect",ne="navigationMenu.rootContentDismiss";function ye(u){const r=[],l=document.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)r.push(l.currentNode);return r}function Ke(u){const r=Z();return u.some(l=>l===r?!0:(l.focus(),Z()!==r))}function Mt(u){return u.forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")}),()=>{u.forEach(r=>{const l=r.dataset.tabindex;r.setAttribute("tabindex",l)})}}function He(u){return r=>r.pointerType==="mouse"?u(r):void 0}const[Y,Ot]=le(["NavigationMenuRoot","NavigationMenuSub"],"NavigationMenuContext");var Dt=A({__name:"NavigationMenuRoot",props:{modelValue:{type:String,required:!1,default:void 0},defaultValue:{type:String,required:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:"horizontal"},delayDuration:{type:Number,required:!1,default:200},skipDelayDuration:{type:Number,required:!1,default:300},disableClickTrigger:{type:Boolean,required:!1,default:!1},disableHoverTrigger:{type:Boolean,required:!1,default:!1},disablePointerLeaveClose:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"nav"}},emits:["update:modelValue"],setup(u,{emit:r}){const l=u,i=ke(l,"modelValue",r,{defaultValue:l.defaultValue??"",passive:l.modelValue===void 0}),t=V(""),{forwardRef:s,currentElement:d}=P(),f=V(),x=V(),I=V(),{getItems:y,CollectionSlot:M}=ie({key:"NavigationMenu",isProvider:!0}),{delayDuration:_,skipDelayDuration:p,dir:L,disableClickTrigger:o,disableHoverTrigger:S,unmountOnHide:g}=me(l),b=$e(L),E=Se(!1,p),v=V(!1),w=B(()=>i.value!==""||E.value?150:_.value),a=je(k=>{if(typeof k=="string"){if(k===""&&v.value){v.value=!1;return}t.value=i.value,i.value=k,k===""&&(E.value=!0)}},w);Ce(()=>{if(!i.value)return;const k=y().map($=>$.ref);I.value=k.find($=>$.id.includes(i.value))}),Ve(d,ne,m),Ot({isRootMenu:!0,modelValue:i,previousValue:t,baseId:se(void 0,"reka-navigation-menu"),disableClickTrigger:o,disableHoverTrigger:S,dir:b,unmountOnHide:g,orientation:l.orientation,rootNavigationMenu:d,indicatorTrack:f,activeTrigger:I,onIndicatorTrackChange:k=>{f.value=k},viewport:x,onViewportChange:k=>{x.value=k},onTriggerEnter:k=>{i.value!==""?(v.value=!0,t.value=i.value,i.value=k):a(k)},onTriggerLeave:()=>{v.value=!1,a("")},onContentEnter:()=>{a()},onContentLeave:()=>{l.disablePointerLeaveClose||(v.value=!1,a(""))},onItemSelect:k=>{t.value=i.value,i.value=k},onItemDismiss:m});function m(){t.value=i.value,i.value=""}return(k,$)=>(c(),C(e(M),null,{default:h(()=>[T(e(F),{ref:e(s),as:k.as,"as-child":k.asChild,"data-orientation":k.orientation,dir:e(b),"data-reka-navigation-menu":""},{default:h(()=>[D(k.$slots,"default",{modelValue:e(i)})]),_:3},8,["as","as-child","data-orientation","dir"])]),_:3}))}}),Nt=Dt;const[Ie,Vt]=le("NavigationMenuItem");var Bt=A({__name:"NavigationMenuItem",props:{value:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},setup(u){const r=u;P();const{getItems:l}=ie({key:"NavigationMenu"}),n=Y(),i=se(r.value),t=V(),s=V(),d=we(n.baseId,i);let f=()=>({});const x=V(!1);async function I(p="start"){const L=document.getElementById(d);if(L){f();const o=ye(L);o.length&&Ke(p==="start"?o:o.reverse())}}function y(){const p=document.getElementById(d);if(p){const L=ye(p);L.length&&(f=Mt(L))}}Vt({value:i,contentId:d,triggerRef:t,focusProxyRef:s,wasEscapeCloseRef:x,onEntryKeyDown:I,onFocusProxyEnter:I,onContentFocusOutside:y,onRootContentClose:y});function M(){n.onItemDismiss(),t.value?.focus()}function _(p){const L=Z();if(p.keyCode===32||p.key==="Enter")if(n.modelValue.value===i){M(),p.preventDefault();return}else{p.target.click(),p.preventDefault();return}const o=l().filter(g=>g.ref.parentElement?.hasAttribute("data-menu-item")).map(g=>g.ref);if(!o.includes(L))return;const S=Le(p,L,void 0,{itemsArray:o,loop:!1});S&&S?.focus(),p.preventDefault(),p.stopPropagation()}return(p,L)=>(c(),C(e(F),{"as-child":p.asChild,as:p.as,"data-menu-item":"",onKeydown:Re(_,["up","down","left","right","home","end","space"])},{default:h(()=>[D(p.$slots,"default")]),_:3},8,["as-child","as"]))}}),$t=Bt,Rt=A({__name:"NavigationMenuContentImpl",props:{disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(u,{emit:r}){const l=u,n=r,{getItems:i}=ie({key:"NavigationMenu"}),{forwardRef:t,currentElement:s}=P(),d=Y(),f=Ie(),x=Fe(d.baseId,f.value),I=we(d.baseId,f.value),y=V(null),M=B(()=>{const g=i().map(m=>m.ref.id.split("trigger-")[1]);d.dir.value==="rtl"&&g.reverse();const b=g.indexOf(d.modelValue.value),E=g.indexOf(d.previousValue.value),v=f.value===d.modelValue.value,w=E===g.indexOf(f.value);if(!v&&!w)return y.value;const a=(()=>{if(b!==E){if(v&&E!==-1)return b>E?"from-end":"from-start";if(w&&b!==-1)return b>E?"to-start":"to-end"}return null})();return y.value=a,a});function _(g){if(n("focusOutside",g),n("interactOutside",g),g.detail.originalEvent.target.hasAttribute("data-navigation-menu-trigger")&&g.preventDefault(),!g.defaultPrevented){f.onContentFocusOutside();const E=g.target;d.rootNavigationMenu?.value?.contains(E)&&g.preventDefault()}}function p(g){if(n("pointerDownOutside",g),!g.defaultPrevented){const b=g.target,E=i().some(w=>w.ref.contains(b)),v=d.isRootMenu&&d.viewport.value?.contains(b);(E||v||!d.isRootMenu)&&g.preventDefault()}}Ce(g=>{const b=s.value;if(d.isRootMenu&&b){const E=()=>{d.onItemDismiss(),f.onRootContentClose(),b.contains(Z())&&f.triggerRef.value?.focus()};b.addEventListener(ne,E),g(()=>b.removeEventListener(ne,E))}});function L(g){n("escapeKeyDown",g),g.defaultPrevented||(d.onItemDismiss(),f.triggerRef?.value?.focus(),f.wasEscapeCloseRef.value=!0)}function o(g){if(g.target.closest("[data-reka-navigation-menu]")!==d.rootNavigationMenu.value)return;const b=g.altKey||g.ctrlKey||g.metaKey,E=g.key==="Tab"&&!b,v=ye(g.currentTarget);if(E){const a=Z(),m=v.findIndex(z=>z===a),$=g.shiftKey?v.slice(0,m).reverse():v.slice(m+1,v.length);if(Ke($))g.preventDefault();else{f.focusProxyRef.value?.focus();return}}Le(g,Z(),void 0,{itemsArray:v,loop:!1,enableIgnoredElement:!0})?.focus()}function S(){if(d.modelValue.value!==f.value)return;const g=new Event(ne,{bubbles:!0,cancelable:!0});s.value?.dispatchEvent(g)}return(g,b)=>(c(),C(e(Ue),O({id:e(I),ref:e(t),"aria-labelledby":e(x),"data-motion":M.value,"data-state":e(de)(e(d).modelValue.value===e(f).value),"data-orientation":e(d).orientation},l,{onKeydown:o,onEscapeKeyDown:L,onPointerDownOutside:p,onFocusOutside:_,onDismiss:S}),{default:h(()=>[D(g.$slots,"default")]),_:3},16,["id","aria-labelledby","data-motion","data-state","data-orientation"]))}}),St=Rt,zt=A({inheritAttrs:!1,__name:"NavigationMenuContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(u,{emit:r}){const l=u,n=r,i=Ge(Qe(l,"forceMount"),n),{forwardRef:t}=P(),s=Y(),d=Ie(),f=B(()=>d.value===s.modelValue.value),x=B(()=>s.viewport.value&&!s.modelValue.value&&s.previousValue.value?s.previousValue.value===d.value:!1);return(I,y)=>(c(),C(ze,{to:e(qe)&&e(s).viewport.value?e(s).viewport.value:"body",disabled:e(qe)&&e(s).viewport.value?!e(s).viewport.value:!0},[T(e(ue),{present:I.forceMount||f.value||x.value,"force-mount":!e(s).unmountOnHide.value},{default:h(({present:M})=>[T(St,O({ref:e(t),"data-state":e(de)(f.value),style:{pointerEvents:!f.value&&e(s).isRootMenu?"none":void 0}},{...I.$attrs,...e(i)},{hidden:!M,onPointerenter:y[0]||(y[0]=_=>e(s).onContentEnter(e(d).value)),onPointerleave:y[1]||(y[1]=_=>e(He)(()=>e(s).onContentLeave())(_)),onPointerDownOutside:y[2]||(y[2]=_=>n("pointerDownOutside",_)),onFocusOutside:y[3]||(y[3]=_=>n("focusOutside",_)),onInteractOutside:y[4]||(y[4]=_=>n("interactOutside",_))}),{default:h(()=>[D(I.$slots,"default")]),_:2},1040,["data-state","style","hidden"])]),_:3},8,["present","force-mount"])],8,["to","disabled"]))}}),At=zt,Pt=A({inheritAttrs:!1,__name:"NavigationMenuIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u){const r=u,{forwardRef:l}=P(),n=Y(),i=V(),t=B(()=>n.orientation==="horizontal"),s=B(()=>!!n.modelValue.value),{activeTrigger:d}=n;function f(){d.value&&(i.value={size:t.value?d.value.offsetWidth:d.value.offsetHeight,position:t.value?d.value.offsetLeft:d.value.offsetTop})}return Ce(()=>{n.modelValue.value&&f()}),re(d,f),re(n.indicatorTrack,f),(x,I)=>e(n).indicatorTrack.value?(c(),C(ze,{key:0,to:e(n).indicatorTrack.value},[T(e(ue),{present:x.forceMount||s.value},{default:h(()=>[T(e(F),O({ref:e(l),"aria-hidden":"true","data-state":s.value?"visible":"hidden","data-orientation":e(n).orientation,"as-child":r.asChild,as:x.as,style:{...i.value?{"--reka-navigation-menu-indicator-size":`${i.value.size}px`,"--reka-navigation-menu-indicator-position":`${i.value.position}px`}:{}}},x.$attrs),{default:h(()=>[D(x.$slots,"default")]),_:3},16,["data-state","data-orientation","as-child","as","style"])]),_:3},8,["present"])],8,["to"])):N("v-if",!0)}}),Ft=Pt,Kt=A({__name:"NavigationMenuLink",props:{active:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"a"}},emits:["select"],setup(u,{emit:r}){const l=u,n=r,{CollectionItem:i}=ie({key:"NavigationMenu"});P();async function t(s){const d=new CustomEvent(Et,{bubbles:!0,cancelable:!0,detail:{originalEvent:s}});if(n("select",d),!d.defaultPrevented&&!s.metaKey){const f=new CustomEvent(ne,{bubbles:!0,cancelable:!0});s.target?.dispatchEvent(f)}}return(s,d)=>(c(),C(e(i),null,{default:h(()=>[T(e(F),{as:s.as,"data-active":s.active?"":void 0,"aria-current":s.active?"page":void 0,"as-child":l.asChild,onClick:t},{default:h(()=>[D(s.$slots,"default")]),_:3},8,["as","data-active","aria-current","as-child"])]),_:3}))}}),ge=Kt,Ht=A({inheritAttrs:!1,__name:"NavigationMenuList",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"ul"}},setup(u){const r=u,l=Y(),{forwardRef:n,currentElement:i}=P();return _e(()=>{l.onIndicatorTrackChange(i.value)}),(t,s)=>(c(),C(e(F),{ref:e(n),style:{position:"relative"}},{default:h(()=>[T(e(F),O(t.$attrs,{"as-child":r.asChild,as:t.as,"data-orientation":e(l).orientation}),{default:h(()=>[D(t.$slots,"default")]),_:3},16,["as-child","as","data-orientation"])]),_:3},512))}}),Wt=Ht;const jt=["aria-owns"];var Ut=A({inheritAttrs:!1,__name:"NavigationMenuTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(u){const r=u,l=Y(),n=Ie(),{CollectionItem:i}=ie({key:"NavigationMenu"}),{forwardRef:t,currentElement:s}=P(),d=V(""),f=V(""),x=Se(!1,300),I=V(!1),y=B(()=>n.value===l.modelValue.value);_e(()=>{n.triggerRef=s,d.value=Fe(l.baseId,n.value),f.value=we(l.baseId,n.value)});function M(){l.disableHoverTrigger.value||(I.value=!1,n.wasEscapeCloseRef.value=!1)}function _(b){if(!l.disableHoverTrigger.value&&b.pointerType==="mouse"){if(r.disabled||I.value||n.wasEscapeCloseRef.value||x.value)return;l.onTriggerEnter(n.value),x.value=!0}}function p(b){if(!l.disableHoverTrigger.value&&b.pointerType==="mouse"){if(r.disabled)return;l.onTriggerLeave(),x.value=!1}}function L(b){(!("pointerType"in b)||b.pointerType==="mouse")&&l.disableClickTrigger.value||x.value||(y.value?l.onItemSelect(""):l.onItemSelect(n.value),I.value=y.value)}function o(b){const v={horizontal:"ArrowDown",vertical:l.dir.value==="rtl"?"ArrowLeft":"ArrowRight"}[l.orientation];y.value&&b.key===v&&(n.onEntryKeyDown(),b.preventDefault(),b.stopPropagation())}function S(b){b&&(n.focusProxyRef.value=Xe(b))}function g(b){const E=document.getElementById(n.contentId),v=b.relatedTarget,w=v===s.value,a=E?.contains(v);(w||!a)&&n.onFocusProxyEnter(w?"start":"end")}return(b,E)=>(c(),R(j,null,[T(e(i),null,{default:h(()=>[T(e(F),O({id:d.value,ref:e(t),disabled:b.disabled,"data-disabled":b.disabled?"":void 0,"data-state":e(de)(y.value),"data-navigation-menu-trigger":"","aria-expanded":y.value,"aria-controls":f.value,"as-child":r.asChild,as:b.as},b.$attrs,{onPointerenter:M,onPointermove:_,onPointerleave:p,onClick:L,onKeydown:o}),{default:h(()=>[D(b.$slots,"default")]),_:3},16,["id","disabled","data-disabled","data-state","aria-expanded","aria-controls","as-child","as"])]),_:3}),y.value?(c(),R(j,{key:0},[T(e(Je),{ref:S,"aria-hidden":"true",tabindex:0,onFocus:g}),e(l).viewport?(c(),R("span",{key:0,"aria-owns":f.value},null,8,jt)):N("v-if",!0)],64)):N("v-if",!0)],64))}}),Gt=Ut,Qt=A({inheritAttrs:!1,__name:"NavigationMenuViewport",props:{forceMount:{type:Boolean,required:!1},align:{type:String,required:!1,default:"center"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u){const r=u,{forwardRef:l,currentElement:n}=P(),i=Y(),{activeTrigger:t,rootNavigationMenu:s,modelValue:d}=i,f=V(),x=V(),I=B(()=>!!i.modelValue.value);he(n,()=>{i.onViewportChange(n.value)});const y=V();he([d,I],()=>{Be(()=>{n.value&&requestAnimationFrame(()=>{const _=n.value?.querySelector("[data-state=open]");y.value=_})})},{immediate:!0});function M(){if(y.value&&t.value&&s.value){const _=document.documentElement.offsetWidth,p=document.documentElement.offsetHeight,L=s.value.getBoundingClientRect(),o=t.value.getBoundingClientRect(),{offsetWidth:S,offsetHeight:g}=y.value,b=o.left-L.left,E=o.top-L.top;let v=null,w=null;switch(r.align){case"start":v=b,w=E;break;case"end":v=b-S+o.width,w=E-g+o.height;break;default:v=b-S/2+o.width/2,w=E-g/2+o.height/2}const a=10;v+L.left<a&&(v=a-L.left);const m=v+L.left+S;m>_-a&&(v-=m-_+a,v<a-L.left&&(v=a-L.left)),w+L.top<a&&(w=a-L.top);const k=w+L.top+g;k>p-a&&(w-=k-p+a,w<a-L.top&&(w=a-L.top)),v=Math.round(v),w=Math.round(w),x.value={left:v,top:w}}}return re(y,()=>{y.value&&(f.value={width:y.value.offsetWidth,height:y.value.offsetHeight},M())}),re([globalThis.document?.body,s],()=>{M()}),(_,p)=>(c(),C(e(ue),{present:_.forceMount||I.value,"force-mount":!e(i).unmountOnHide.value,onAfterLeave:p[2]||(p[2]=()=>{f.value=void 0,x.value=void 0})},{default:h(({present:L})=>[T(e(F),O(_.$attrs,{ref:e(l),as:_.as,"as-child":_.asChild,"data-state":e(de)(I.value),"data-orientation":e(i).orientation,style:{pointerEvents:!I.value&&e(i).isRootMenu?"none":void 0,"--reka-navigation-menu-viewport-width":f.value?`${f.value?.width}px`:void 0,"--reka-navigation-menu-viewport-height":f.value?`${f.value?.height}px`:void 0,"--reka-navigation-menu-viewport-left":x.value?`${x.value?.left}px`:void 0,"--reka-navigation-menu-viewport-top":x.value?`${x.value?.top}px`:void 0},hidden:!L,onPointerenter:p[0]||(p[0]=o=>e(i).onContentEnter(e(i).modelValue.value)),onPointerleave:p[1]||(p[1]=o=>e(He)(()=>e(i).onContentLeave())(o))}),{default:h(()=>[D(_.$slots,"default")]),_:2},1040,["as","as-child","data-state","data-orientation","style","hidden"])]),_:3},8,["present","force-mount"]))}}),Jt=Qt;const Xt={slots:{root:"relative flex gap-1.5 [&>div]:min-w-0",list:"isolate min-w-0",label:"w-full flex items-center gap-1.5 font-semibold text-xs/5 text-highlighted px-2.5 py-1.5",item:"min-w-0",link:"group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none focus-visible:before:outline-3",linkLeadingIcon:"shrink-0 size-5",linkLeadingAvatar:"shrink-0",linkLeadingAvatarSize:"2xs",linkLeadingChipSize:"sm",linkTrailing:"group ms-auto inline-flex gap-1.5 items-center",linkTrailingBadge:"shrink-0",linkTrailingBadgeSize:"sm",linkTrailingIcon:"size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",linkLabel:"truncate",linkLabelExternalIcon:"inline-block size-3 align-top text-dimmed",childList:"isolate",childLabel:"text-xs text-highlighted",childItem:"",childLink:"group relative size-full flex items-start text-start text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none focus-visible:before:outline-3",childLinkWrapper:"min-w-0",childLinkIcon:"size-5 shrink-0",childLinkLabel:"truncate",childLinkLabelExternalIcon:"inline-block size-3 align-top text-dimmed",childLinkDescription:"text-muted",separator:"px-2 h-px bg-border",viewportWrapper:"absolute top-full start-0 flex w-full",viewport:"relative overflow-hidden bg-default shadow-lg rounded-md ring ring-default h-(--reka-navigation-menu-viewport-height) w-full transition-[width,height,left,right] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] z-1",content:"",indicator:"absolute left-0 data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-2 w-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200",arrow:"relative top-[50%] size-2.5 rotate-45 border border-default bg-default z-1 rounded-xs"},variants:{color:{primary:{link:"before:outline-primary/25",childLink:"before:outline-primary/25"},secondary:{link:"before:outline-secondary/25",childLink:"before:outline-secondary/25"},success:{link:"before:outline-success/25",childLink:"before:outline-success/25"},info:{link:"before:outline-info/25",childLink:"before:outline-info/25"},warning:{link:"before:outline-warning/25",childLink:"before:outline-warning/25"},error:{link:"before:outline-error/25",childLink:"before:outline-error/25"},neutral:{link:"before:outline-inverted/25",childLink:"before:outline-inverted/25"}},highlightColor:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{pill:"",link:""},orientation:{horizontal:{root:"items-center justify-between",list:"flex items-center",item:"py-2",link:"px-2.5 py-1.5 before:inset-x-px before:inset-y-0",childList:"grid p-2",childLink:"px-3 py-2 gap-2 before:inset-x-px before:inset-y-0",childLinkLabel:"font-medium",content:"absolute top-0 start-0 w-full max-h-[70vh] overflow-y-auto"},vertical:{root:"flex-col",link:"flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0",childLabel:"px-1.5 py-0.5",childLink:"p-1.5 gap-1.5 before:inset-y-px before:inset-x-0"}},contentOrientation:{horizontal:{viewportWrapper:"justify-center",content:"data-[motion=from-start]:animate-[enter-from-left_200ms_ease] data-[motion=from-end]:animate-[enter-from-right_200ms_ease] data-[motion=to-start]:animate-[exit-to-left_200ms_ease] data-[motion=to-end]:animate-[exit-to-right_200ms_ease]"},vertical:{viewport:"sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left) rtl:left-auto rtl:right-[calc(100%-var(--reka-navigation-menu-viewport-left)-var(--reka-navigation-menu-viewport-width))]"}},active:{true:{childLink:"before:bg-elevated text-highlighted",childLinkIcon:"text-default"},false:{link:"text-muted",linkLeadingIcon:"text-dimmed",childLink:["hover:before:bg-elevated/50 text-default hover:text-highlighted","transition-colors before:transition-colors"],childLinkIcon:["text-dimmed group-hover:text-default","transition-colors"]}},disabled:{true:{link:"cursor-not-allowed opacity-75"}},highlight:{true:""},level:{true:""},collapsed:{true:""}},compoundVariants:[{orientation:"horizontal",contentOrientation:"horizontal",class:{childList:"grid-cols-2 gap-2"}},{orientation:"horizontal",contentOrientation:"vertical",class:{childList:"gap-1",content:"w-60"}},{orientation:"vertical",collapsed:!1,class:{childList:"ms-5 border-s border-default",childItem:"ps-1.5 -ms-px",content:"data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] data-[state=closed]:overflow-hidden"}},{orientation:"vertical",collapsed:!0,class:{link:"px-1.5",linkLabel:"hidden",linkTrailing:"hidden",content:"shadow-sm rounded-sm min-h-6 p-1"}},{orientation:"horizontal",highlight:!0,class:{link:["after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full","after:transition-colors"]}},{orientation:"vertical",highlight:!0,level:!0,class:{link:["after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full","after:transition-colors"]}},{disabled:!1,active:!1,variant:"pill",class:{link:["hover:text-highlighted hover:before:bg-elevated/50","transition-colors before:transition-colors"],linkLeadingIcon:["group-hover:text-default","transition-colors"]}},{disabled:!1,active:!1,variant:"pill",orientation:"horizontal",class:{link:"data-[state=open]:text-highlighted",linkLeadingIcon:"group-data-[state=open]:text-default"}},{disabled:!1,variant:"pill",highlight:!0,orientation:"horizontal",class:{link:"data-[state=open]:before:bg-elevated/50"}},{disabled:!1,variant:"pill",highlight:!1,active:!1,orientation:"horizontal",class:{link:"data-[state=open]:before:bg-elevated/50"}},{color:"primary",variant:"pill",active:!0,class:{link:"text-primary",linkLeadingIcon:"text-primary group-data-[state=open]:text-primary"}},{color:"secondary",variant:"pill",active:!0,class:{link:"text-secondary",linkLeadingIcon:"text-secondary group-data-[state=open]:text-secondary"}},{color:"success",variant:"pill",active:!0,class:{link:"text-success",linkLeadingIcon:"text-success group-data-[state=open]:text-success"}},{color:"info",variant:"pill",active:!0,class:{link:"text-info",linkLeadingIcon:"text-info group-data-[state=open]:text-info"}},{color:"warning",variant:"pill",active:!0,class:{link:"text-warning",linkLeadingIcon:"text-warning group-data-[state=open]:text-warning"}},{color:"error",variant:"pill",active:!0,class:{link:"text-error",linkLeadingIcon:"text-error group-data-[state=open]:text-error"}},{color:"neutral",variant:"pill",active:!0,class:{link:"text-highlighted",linkLeadingIcon:"text-highlighted group-data-[state=open]:text-highlighted"}},{variant:"pill",active:!0,highlight:!1,class:{link:"before:bg-elevated"}},{variant:"pill",active:!0,highlight:!0,disabled:!1,class:{link:["hover:before:bg-elevated/50","before:transition-colors"]}},{disabled:!1,active:!1,variant:"link",class:{link:["hover:text-highlighted","transition-colors"],linkLeadingIcon:["group-hover:text-default","transition-colors"]}},{disabled:!1,active:!1,variant:"link",orientation:"horizontal",class:{link:"data-[state=open]:text-highlighted",linkLeadingIcon:"group-data-[state=open]:text-default"}},{color:"primary",variant:"link",active:!0,class:{link:"text-primary",linkLeadingIcon:"text-primary group-data-[state=open]:text-primary"}},{color:"secondary",variant:"link",active:!0,class:{link:"text-secondary",linkLeadingIcon:"text-secondary group-data-[state=open]:text-secondary"}},{color:"success",variant:"link",active:!0,class:{link:"text-success",linkLeadingIcon:"text-success group-data-[state=open]:text-success"}},{color:"info",variant:"link",active:!0,class:{link:"text-info",linkLeadingIcon:"text-info group-data-[state=open]:text-info"}},{color:"warning",variant:"link",active:!0,class:{link:"text-warning",linkLeadingIcon:"text-warning group-data-[state=open]:text-warning"}},{color:"error",variant:"link",active:!0,class:{link:"text-error",linkLeadingIcon:"text-error group-data-[state=open]:text-error"}},{color:"neutral",variant:"link",active:!0,class:{link:"text-highlighted",linkLeadingIcon:"text-highlighted group-data-[state=open]:text-highlighted"}},{highlightColor:"primary",highlight:!0,level:!0,active:!0,class:{link:"after:bg-primary"}},{highlightColor:"secondary",highlight:!0,level:!0,active:!0,class:{link:"after:bg-secondary"}},{highlightColor:"success",highlight:!0,level:!0,active:!0,class:{link:"after:bg-success"}},{highlightColor:"info",highlight:!0,level:!0,active:!0,class:{link:"after:bg-info"}},{highlightColor:"warning",highlight:!0,level:!0,active:!0,class:{link:"after:bg-warning"}},{highlightColor:"error",highlight:!0,level:!0,active:!0,class:{link:"after:bg-error"}},{highlightColor:"neutral",highlight:!0,level:!0,active:!0,class:{link:"after:bg-inverted"}}],defaultVariants:{color:"primary",highlightColor:"primary",variant:"pill"}},ta=Object.assign({inheritAttrs:!1},{__name:"UNavigationMenu",props:{as:{type:null,required:!1},type:{type:null,required:!1,default:"multiple"},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},trailingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},items:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},collapsed:{type:Boolean,required:!1},tooltip:{type:[Boolean,Object],required:!1},popover:{type:[Boolean,Object],required:!1},highlight:{type:Boolean,required:!1},highlightColor:{type:null,required:!1},content:{type:Object,required:!1},contentOrientation:{type:null,required:!1,default:"horizontal"},arrow:{type:Boolean,required:!1},valueKey:{type:null,required:!1,default:"value"},labelKey:{type:null,required:!1,default:"label"},class:{type:null,required:!1},ui:{type:Object,required:!1},delayDuration:{type:Number,required:!1,default:0},disableClickTrigger:{type:Boolean,required:!1},disableHoverTrigger:{type:Boolean,required:!1},skipDelayDuration:{type:Number,required:!1},disablePointerLeaveClose:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1},collapsible:{type:Boolean,required:!1,default:!0}},emits:["update:modelValue"],setup(u,{emit:r}){const l=u,n=r,i=Ye(),t=Ze("navigationMenu",l),s=et(),d=Ee(B(()=>({as:t.as,delayDuration:t.delayDuration,skipDelayDuration:t.skipDelayDuration,orientation:t.orientation,disableClickTrigger:t.disableClickTrigger,disableHoverTrigger:t.disableHoverTrigger,disablePointerLeaveClose:t.disablePointerLeaveClose,unmountOnHide:t.unmountOnHide})),n),f=Ee(tt(t,"collapsible","disabled","type","unmountOnHide"),n),x=ve(()=>t.content),I=ve(()=>Oe(typeof t.tooltip=="boolean"?{}:t.tooltip,{...t.orientation==="vertical"&&{delayDuration:0,content:{side:"right"}}})),y=ve(()=>Oe(typeof t.popover=="boolean"?{}:t.popover,{mode:"hover",content:{side:"right",align:"start",alignOffset:2}})),[M,_]=Me(),[p,L]=Me({props:{item:Object,index:Number,level:Number,listIndex:Number}}),o=B(()=>ot({extend:Xt,...s.ui?.navigationMenu||{}})({orientation:t.orientation,contentOrientation:t.orientation==="vertical"?void 0:t.contentOrientation,collapsed:t.collapsed,color:t.color,variant:t.variant,highlight:t.highlight,highlightColor:t.highlightColor||t.color})),S=B(()=>t.items?.length?rt(t.items)?t.items:[t.items]:[]);function g(v,w,a,m){const k=S.value.length>1?`group-${m}-`:"";return J(v,t.valueKey)??(a>0?`${k}item-${a}-${w}`:`${k}item-${w}`)}function b(v,w=0,a=0){const m=v.reduce((k,$,z)=>(($.defaultOpen||$.open)&&k.push(g($,z,w,a)),k),[]);return t.type==="single"?m[0]:m}function E(v,w){w.children?.length&&(t.orientation==="horizontal"?v.preventDefault():t.orientation==="vertical"&&!t.collapsed&&(v.preventDefault(),v.stopPropagation()))}return(v,w)=>(c(),R(j,null,[T(e(M),null,{default:h(({item:a,active:m,index:k})=>[D(v.$slots,a.slot||"item",{item:a,index:k,active:m,ui:o.value},()=>[D(v.$slots,a.slot?`${a.slot}-leading`:"item-leading",{item:a,active:m,index:k,ui:o.value},()=>[a.avatar?(c(),C(at,O({key:0,size:a.ui?.linkLeadingAvatarSize||e(t).ui?.linkLeadingAvatarSize||o.value.linkLeadingAvatarSize()},a.avatar,{"data-slot":"linkLeadingAvatar",class:o.value.linkLeadingAvatar({class:[e(t).ui?.linkLeadingAvatar,a.ui?.linkLeadingAvatar],active:m,disabled:!!a.disabled})}),null,16,["size","class"])):a.icon&&a.chip?(c(),C(nt,O({key:1,size:a.ui?.linkLeadingChipSize||e(t).ui?.linkLeadingChipSize||o.value.linkLeadingChipSize(),inset:""},typeof a.chip=="object"?a.chip:{},{"data-slot":"linkLeadingChip"}),{default:h(()=>[T(W,{name:a.icon,"data-slot":"linkLeadingIcon",class:q(o.value.linkLeadingIcon({class:[e(t).ui?.linkLeadingIcon,a.ui?.linkLeadingIcon],active:m,disabled:!!a.disabled}))},null,8,["name","class"])]),_:2},1040,["size"])):a.icon?(c(),C(W,{key:2,name:a.icon,"data-slot":"linkLeadingIcon",class:q(o.value.linkLeadingIcon({class:[e(t).ui?.linkLeadingIcon,a.ui?.linkLeadingIcon],active:m,disabled:!!a.disabled}))},null,8,["name","class"])):N("",!0)]),e(J)(a,e(t).labelKey)||i[a.slot?`${a.slot}-label`:"item-label"]?(c(),R("span",{key:0,"data-slot":"linkLabel",class:q(o.value.linkLabel({class:[e(t).ui?.linkLabel,a.ui?.linkLabel]}))},[D(v.$slots,a.slot?`${a.slot}-label`:"item-label",{item:a,active:m,index:k},()=>[ce(ee(e(J)(a,e(t).labelKey)),1)]),a.target==="_blank"&&e(t).externalIcon!==!1?(c(),C(W,{key:0,name:typeof e(t).externalIcon=="string"?e(t).externalIcon:e(s).ui.icons.external,"data-slot":"linkLabelExternalIcon",class:q(o.value.linkLabelExternalIcon({class:[e(t).ui?.linkLabelExternalIcon,a.ui?.linkLabelExternalIcon],active:m}))},null,8,["name","class"])):N("",!0)],2)):N("",!0),a.badge||a.badge===0||e(t).orientation==="horizontal"&&(a.children?.length||i[a.slot?`${a.slot}-content`:"item-content"])||e(t).orientation==="vertical"&&a.children?.length||a.trailingIcon||i[a.slot?`${a.slot}-trailing`:"item-trailing"]?(c(),C(oe(e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed?e(Ne):"span"),{key:1,as:e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed?"span":void 0,"data-slot":"linkTrailing",class:q(o.value.linkTrailing({class:[e(t).ui?.linkTrailing,a.ui?.linkTrailing]})),onClick:$=>E($,a)},{default:h(()=>[D(v.$slots,a.slot?`${a.slot}-trailing`:"item-trailing",{item:a,active:m,index:k,ui:o.value},()=>[a.badge||a.badge===0?(c(),C(lt,O({key:0,color:"neutral",variant:"outline",size:a.ui?.linkTrailingBadgeSize||e(t).ui?.linkTrailingBadgeSize||o.value.linkTrailingBadgeSize()},typeof a.badge=="string"||typeof a.badge=="number"?{label:a.badge}:a.badge,{"data-slot":"linkTrailingBadge",class:o.value.linkTrailingBadge({class:[e(t).ui?.linkTrailingBadge,a.ui?.linkTrailingBadge]})}),null,16,["size","class"])):N("",!0),e(t).orientation==="horizontal"&&(a.children?.length||i[a.slot?`${a.slot}-content`:"item-content"])||e(t).orientation==="vertical"&&a.children?.length?(c(),C(W,{key:1,name:a.trailingIcon||e(t).trailingIcon||e(s).ui.icons.chevronDown,"data-slot":"linkTrailingIcon",class:q(o.value.linkTrailingIcon({class:[e(t).ui?.linkTrailingIcon,a.ui?.linkTrailingIcon],active:m}))},null,8,["name","class"])):a.trailingIcon?(c(),C(W,{key:2,name:a.trailingIcon,"data-slot":"linkTrailingIcon",class:q(o.value.linkTrailingIcon({class:[e(t).ui?.linkTrailingIcon,a.ui?.linkTrailingIcon],active:m}))},null,8,["name","class"])):N("",!0)])]),_:2},1032,["as","class","onClick"])):N("",!0)])]),_:3}),T(e(p),null,{default:h(({item:a,index:m,level:k=0,listIndex:$=0})=>[(c(),C(oe(e(t).orientation==="vertical"&&!e(t).collapsed?e(wt):e($t)),O({as:"li"},e(t).orientation==="vertical"&&!e(t).collapsed?{disabled:!!a.disabled}:{},{value:g(a,m,k,$)}),{default:h(()=>[e(t).orientation==="vertical"&&a.type==="label"&&!e(t).collapsed?(c(),R("div",{key:0,"data-slot":"label",class:q(o.value.label({class:[e(t).ui?.label,a.ui?.label,a.class]}))},[T(e(_),{item:a,index:m},null,8,["item","index"])],2)):a.type!=="label"?(c(),C(fe,O({key:1},e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed&&a.type==="trigger"?{}:e(pe)(a),{custom:""}),{default:h(({active:z,...G})=>[(c(),C(oe(e(t).orientation==="horizontal"&&(a.children?.length||i[a.slot?`${a.slot}-content`:"item-content"])?e(Gt):e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed&&!G.href?e(Ne):e(ge)),{"as-child":"",active:z||a.active,disabled:a.disabled,onSelect:a.onSelect},{default:h(()=>[e(t).orientation==="vertical"&&e(t).collapsed&&a.children?.length&&(e(t).popover||a.popover)?(c(),C(it,O({key:0},{...y.value,...typeof a.popover=="boolean"?{}:a.popover||{}},{ui:{content:o.value.content({class:[e(t).ui?.content,a.ui?.content]})}}),{content:h(({close:K})=>[D(v.$slots,a.slot?`${a.slot}-content`:"item-content",{item:a,active:z||a.active,index:m,ui:o.value,close:K},()=>[X("ul",{"data-slot":"childList",class:q(o.value.childList({class:[e(t).ui?.childList,a.ui?.childList]}))},[X("li",{"data-slot":"childLabel",class:q(o.value.childLabel({class:[e(t).ui?.childLabel,a.ui?.childLabel]}))},ee(e(J)(a,e(t).labelKey)),3),(c(!0),R(j,null,ae(a.children,(H,U)=>(c(),R("li",{key:U,"data-slot":"childItem",class:q(o.value.childItem({class:[e(t).ui?.childItem,a.ui?.childItem]}))},[T(fe,O({ref_for:!0},e(pe)(H),{custom:""}),{default:h(({active:Q,...We})=>[T(e(ge),{"as-child":"",active:Q,onSelect:H.onSelect},{default:h(()=>[T(te,O({ref_for:!0},We,{"data-slot":"childLink",class:o.value.childLink({class:[e(t).ui?.childLink,a.ui?.childLink,H.class],active:Q})}),{default:h(()=>[H.icon?(c(),C(W,{key:0,name:H.icon,"data-slot":"childLinkIcon",class:q(o.value.childLinkIcon({class:[e(t).ui?.childLinkIcon,a.ui?.childLinkIcon],active:Q}))},null,8,["name","class"])):N("",!0),X("span",{"data-slot":"childLinkLabel",class:q(o.value.childLinkLabel({class:[e(t).ui?.childLinkLabel,a.ui?.childLinkLabel],active:Q}))},[ce(ee(e(J)(H,e(t).labelKey))+" ",1),H.target==="_blank"&&e(t).externalIcon!==!1?(c(),C(W,{key:0,name:typeof e(t).externalIcon=="string"?e(t).externalIcon:e(s).ui.icons.external,"data-slot":"childLinkLabelExternalIcon",class:q(o.value.childLinkLabelExternalIcon({class:[e(t).ui?.childLinkLabelExternalIcon,a.ui?.childLinkLabelExternalIcon],active:Q}))},null,8,["name","class"])):N("",!0)],2)]),_:2},1040,["class"])]),_:2},1032,["active","onSelect"])]),_:2},1040)],2))),128))],2)])]),default:h(()=>[T(te,O(G,{"data-slot":"link",class:o.value.link({class:[e(t).ui?.link,a.ui?.link,a.class],active:z||a.active,disabled:!!a.disabled,level:k>0})}),{default:h(()=>[T(e(_),{item:a,active:z||a.active,index:m},null,8,["item","active","index"])]),_:2},1040,["class"])]),_:2},1040,["ui"])):e(t).orientation==="vertical"&&e(t).collapsed&&(e(t).tooltip||a.tooltip)||e(t).orientation==="horizontal"&&a.tooltip?(c(),C(ut,O({key:1,text:e(J)(a,e(t).labelKey)},{...I.value,...typeof a.tooltip=="boolean"?{}:a.tooltip||{}}),{default:h(()=>[T(te,O(G,{"data-slot":"link",class:o.value.link({class:[e(t).ui?.link,a.ui?.link,a.class],active:z||a.active,disabled:!!a.disabled,level:k>0})}),{default:h(()=>[T(e(_),{item:a,active:z||a.active,index:m},null,8,["item","active","index"])]),_:2},1040,["class"])]),_:2},1040,["text"])):(c(),C(te,O({key:2},G,{"data-slot":"link",class:o.value.link({class:[e(t).ui?.link,a.ui?.link,a.class],active:z||a.active,disabled:!!a.disabled,level:e(t).orientation==="horizontal"||k>0})}),{default:h(()=>[T(e(_),{item:a,active:z||a.active,index:m},null,8,["item","active","index"])]),_:2},1040,["class"]))]),_:2},1064,["active","disabled","onSelect"])),e(t).orientation==="horizontal"&&(a.children?.length||i[a.slot?`${a.slot}-content`:"item-content"])?(c(),C(e(At),O({key:0},x.value,{"data-slot":"content",class:o.value.content({class:[e(t).ui?.content,a.ui?.content]})}),{default:h(()=>[D(v.$slots,a.slot?`${a.slot}-content`:"item-content",{item:a,active:z||a.active,index:m,ui:o.value},()=>[X("ul",{"data-slot":"childList",class:q(o.value.childList({class:[e(t).ui?.childList,a.ui?.childList]}))},[(c(!0),R(j,null,ae(a.children,(K,H)=>(c(),R("li",{key:H,"data-slot":"childItem",class:q(o.value.childItem({class:[e(t).ui?.childItem,a.ui?.childItem]}))},[T(fe,O({ref_for:!0},e(pe)(K),{custom:""}),{default:h(({active:U,...Q})=>[T(e(ge),{"as-child":"",active:U,onSelect:K.onSelect},{default:h(()=>[T(te,O({ref_for:!0},Q,{"data-slot":"childLink",class:o.value.childLink({class:[e(t).ui?.childLink,a.ui?.childLink,K.class],active:U})}),{default:h(()=>[K.icon?(c(),C(W,{key:0,name:K.icon,"data-slot":"childLinkIcon",class:q(o.value.childLinkIcon({class:[e(t).ui?.childLinkIcon,a.ui?.childLinkIcon],active:U}))},null,8,["name","class"])):N("",!0),X("div",{"data-slot":"childLinkWrapper",class:q(o.value.childLinkWrapper({class:[e(t).ui?.childLinkWrapper,a.ui?.childLinkWrapper]}))},[X("p",{"data-slot":"childLinkLabel",class:q(o.value.childLinkLabel({class:[e(t).ui?.childLinkLabel,a.ui?.childLinkLabel],active:U}))},[ce(ee(e(J)(K,e(t).labelKey))+" ",1),K.target==="_blank"&&e(t).externalIcon!==!1?(c(),C(W,{key:0,name:typeof e(t).externalIcon=="string"?e(t).externalIcon:e(s).ui.icons.external,"data-slot":"childLinkLabelExternalIcon",class:q(o.value.childLinkLabelExternalIcon({class:[e(t).ui?.childLinkLabelExternalIcon,a.ui?.childLinkLabelExternalIcon],active:U}))},null,8,["name","class"])):N("",!0)],2),K.description?(c(),R("p",{key:0,"data-slot":"childLinkDescription",class:q(o.value.childLinkDescription({class:[e(t).ui?.childLinkDescription,a.ui?.childLinkDescription],active:U}))},ee(K.description),3)):N("",!0)],2)]),_:2},1040,["class"])]),_:2},1032,["active","onSelect"])]),_:2},1040)],2))),128))],2)])]),_:2},1040,["class"])):N("",!0)]),_:2},1040)):N("",!0),e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed?(c(),C(e(Tt),{key:2,"data-slot":"content",class:q(o.value.content({class:[e(t).ui?.content,a.ui?.content]}))},{default:h(()=>[T(e(De),O({...e(f),defaultValue:b(a.children,k+1,$)},{as:"ul","data-slot":"childList",class:o.value.childList({class:[e(t).ui?.childList,a.ui?.childList]})}),{default:h(()=>[(c(!0),R(j,null,ae(a.children,(z,G)=>(c(),C(e(L),{key:G,item:z,index:G,level:k+1,"list-index":$,"data-slot":"childItem",class:q(o.value.childItem({class:[e(t).ui?.childItem,z.ui?.childItem]}))},null,8,["item","index","level","list-index","class"]))),128))]),_:2},1040,["class"])]),_:2},1032,["class"])):N("",!0)]),_:2},1040,["value"]))]),_:3}),T(e(Nt),O({"data-slot":"root"},{...e(d),...e(t).orientation==="horizontal"?{modelValue:e(t).modelValue,defaultValue:e(t).defaultValue}:{},...v.$attrs},{"data-collapsed":e(t).collapsed,class:o.value.root({class:[e(t).ui?.root,e(t).class]})}),{default:h(()=>[D(v.$slots,"list-leading"),(c(!0),R(j,null,ae(S.value,(a,m)=>(c(),R(j,{key:`list-${m}`},[(c(),C(oe(e(t).orientation==="vertical"?e(De):e(Wt)),O({ref_for:!0},e(t).orientation==="vertical"&&!e(t).collapsed?{...e(f),modelValue:e(t).modelValue,defaultValue:e(t).defaultValue??b(a,0,m)}:{},{as:"ul","data-slot":"list",class:o.value.list({class:e(t).ui?.list})}),{default:h(()=>[(c(!0),R(j,null,ae(a,(k,$)=>(c(),C(e(L),{key:`list-${m}-${$}`,item:k,index:$,"list-index":m,"data-slot":"item",class:q(o.value.item({class:[e(t).ui?.item,k.ui?.item]}))},null,8,["item","index","list-index","class"]))),128))]),_:2},1040,["class"])),e(t).orientation==="vertical"&&m<S.value.length-1?(c(),R("div",{key:0,"data-slot":"separator",class:q(o.value.separator({class:e(t).ui?.separator}))},null,2)):N("",!0)],64))),128)),D(v.$slots,"list-trailing"),e(t).orientation==="horizontal"?(c(),R("div",{key:0,"data-slot":"viewportWrapper",class:q(o.value.viewportWrapper({class:e(t).ui?.viewportWrapper}))},[e(t).arrow?(c(),C(e(Ft),{key:0,"data-slot":"indicator",class:q(o.value.indicator({class:e(t).ui?.indicator}))},{default:h(()=>[X("div",{"data-slot":"arrow",class:q(o.value.arrow({class:e(t).ui?.arrow}))},null,2)]),_:1},8,["class"])):N("",!0),T(e(Jt),{"data-slot":"viewport",class:q(o.value.viewport({class:e(t).ui?.viewport}))},null,8,["class"])],2)):N("",!0)]),_:3},16,["data-collapsed","class"])],64))}});export{ta as _};
|
|
1
|
+
import{d as A,Y as ke,X as me,T as P,o as c,e as C,f as h,U as D,b as e,W as F,Z as le,ay as se,r as V,a as he,C as _e,aP as Ve,h as T,V as O,l as N,aA as ue,v as B,M as Be,aQ as Te,ax as $e,R as Re,c9 as Le,bp as Z,bd as ie,bj as Se,aJ as Ce,a9 as je,bB as Ue,bE as Ge,a_ as Qe,bi as qe,aj as ze,aC as re,c as R,F as j,bR as Je,bQ as Xe,a2 as Ye,a3 as Ze,a5 as et,a6 as Ee,a7 as tt,b1 as Me,aG as at,bI as nt,_ as W,i as q,aF as J,k as ce,t as ee,ai as oe,m as lt,y as fe,a$ as pe,G as it,b0 as te,g as X,z as ae,b2 as ve,bL as Oe,a8 as ot,bO as rt}from"./1QWBzxLM.js";import{i as st}from"./BTGAvMoT.js";import{_ as ut}from"./BnUQ3i5l.js";const[Ae,dt]=le("CollapsibleRoot");var ct=A({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:open"],setup(u,{expose:r,emit:l}){const n=u,t=ke(n,"open",l,{defaultValue:n.defaultOpen,passive:n.open===void 0}),{disabled:s,unmountOnHide:d}=me(n);return dt({contentId:"",disabled:s,open:t,unmountOnHide:d,onOpenToggle:()=>{s.value||(t.value=!t.value)}}),r({open:t}),P(),(f,x)=>(c(),C(e(F),{as:f.as,"as-child":n.asChild,"data-state":e(t)?"open":"closed","data-disabled":e(s)?"":void 0},{default:h(()=>[D(f.$slots,"default",{open:e(t)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),ft=ct,pt=A({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["contentFound"],setup(u,{emit:r}){const l=u,n=r,i=Ae();i.contentId||=se(void 0,"reka-collapsible-content");const t=V(),{forwardRef:s,currentElement:d}=P(),f=V(0),x=V(0),I=B(()=>i.open.value),y=V(I.value),M=V();he(()=>[I.value,t.value?.present],async()=>{await Be();const p=d.value;if(!p)return;M.value=M.value||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const L=p.getBoundingClientRect();x.value=L.height,f.value=L.width,y.value||(p.style.transitionDuration=M.value.transitionDuration,p.style.animationName=M.value.animationName)},{immediate:!0});const _=B(()=>y.value&&i.open.value);return _e(()=>{requestAnimationFrame(()=>{y.value=!1})}),Ve(d,"beforematch",p=>{requestAnimationFrame(()=>{i.onOpenToggle(),n("contentFound")})}),(p,L)=>(c(),C(e(ue),{ref_key:"presentRef",ref:t,present:p.forceMount||e(i).open.value,"force-mount":!0},{default:h(({present:o})=>[T(e(F),O(p.$attrs,{id:e(i).contentId,ref:e(s),"as-child":l.asChild,as:p.as,hidden:o?void 0:e(i).unmountOnHide.value?"":"until-found","data-state":_.value?void 0:e(i).open.value?"open":"closed","data-disabled":e(i).disabled?.value?"":void 0,style:{"--reka-collapsible-content-height":`${x.value}px`,"--reka-collapsible-content-width":`${f.value}px`}}),{default:h(()=>[!e(i).unmountOnHide.value||o?D(p.$slots,"default",{key:0}):N("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]),_:3},8,["present"]))}}),vt=pt,gt=A({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(u){const r=u;P();const l=Ae();return(n,i)=>(c(),C(e(F),{type:n.as==="button"?"button":void 0,as:n.as,"as-child":r.asChild,"aria-controls":e(l).contentId,"aria-expanded":e(l).open.value,"data-state":e(l).open.value?"open":"closed","data-disabled":e(l).disabled?.value?"":void 0,disabled:e(l).disabled?.value,onClick:e(l).onOpenToggle},{default:h(()=>[D(n.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"]))}}),ht=gt;function bt({type:u,defaultValue:r,modelValue:l}){const n=l||r;return l!==void 0||r!==void 0?Array.isArray(n)?"multiple":"single":u??"single"}function yt({type:u,defaultValue:r,modelValue:l}){return u||bt({type:u,defaultValue:r,modelValue:l})}function kt({type:u,defaultValue:r}){return r!==void 0?r:u==="single"?void 0:[]}function mt(u,r){const l=B(()=>yt(u)),n=ke(u,"modelValue",r,{defaultValue:kt(u),passive:u.modelValue===void 0,deep:!0});function i(s){if(l.value==="single")n.value=Te(s,n.value)?void 0:s;else{const d=Array.isArray(n.value)?[...n.value||[]]:[n.value].filter(Boolean);if(st(d,s)){const f=d.findIndex(x=>Te(x,s));d.splice(f,1)}else d.push(s);n.value=d}}const t=B(()=>l.value==="single");return{modelValue:n,changeModelValue:i,isSingle:t}}const[xe,_t]=le("AccordionRoot");var Lt=A({__name:"AccordionRoot",props:{collapsible:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:"vertical"},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:["update:modelValue"],setup(u,{emit:r}){const l=u,n=r,{dir:i,disabled:t,unmountOnHide:s}=me(l),d=$e(i),{modelValue:f,changeModelValue:x,isSingle:I}=mt(l,n),{forwardRef:y,currentElement:M}=P();return _t({disabled:t,direction:d,orientation:l.orientation,parentElement:M,isSingle:I,collapsible:l.collapsible,modelValue:f,changeModelValue:x,unmountOnHide:s}),(_,p)=>(c(),C(e(F),{ref:e(y),"as-child":_.asChild,as:_.as},{default:h(()=>[D(_.$slots,"default",{modelValue:e(f)})]),_:3},8,["as-child","as"]))}}),De=Lt,be=(function(u){return u.Open="open",u.Closed="closed",u})(be||{});const[Pe,Ct]=le("AccordionItem");var xt=A({__name:"AccordionItem",props:{disabled:{type:Boolean,required:!1},value:{type:String,required:!0},unmountOnHide:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u,{expose:r}){const l=u,n=xe(),i=B(()=>n.isSingle.value?l.value===n.modelValue.value:Array.isArray(n.modelValue.value)&&n.modelValue.value.includes(l.value)),t=B(()=>n.disabled.value||l.disabled),s=B(()=>t.value?"":void 0),d=B(()=>i.value?be.Open:be.Closed);r({open:i,dataDisabled:s});const{currentRef:f,currentElement:x}=P();Ct({open:i,dataState:d,disabled:t,dataDisabled:s,triggerId:"",currentRef:f,currentElement:x,value:B(()=>l.value)});function I(y){const M=y.target;if(Array.from(n.parentElement.value?.querySelectorAll("[data-reka-collection-item]")??[]).findIndex(L=>L===M)===-1)return null;Le(y,M,n.parentElement.value,{arrowKeyOptions:n.orientation,dir:n.direction.value,focus:!0})}return(y,M)=>(c(),C(e(ft),{"data-orientation":e(n).orientation,"data-disabled":s.value,"data-state":d.value,disabled:t.value,open:i.value,as:l.as,"as-child":l.asChild,"unmount-on-hide":l.unmountOnHide??e(n).unmountOnHide.value,onKeydown:Re(I,["up","down","left","right","home","end"])},{default:h(()=>[D(y.$slots,"default",{open:i.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child","unmount-on-hide"]))}}),wt=xt,It=A({__name:"AccordionContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u){const r=u,l=xe(),n=Pe();return P(),(i,t)=>(c(),C(e(vt),{role:"region","as-child":r.asChild,as:i.as,"force-mount":r.forceMount,"aria-labelledby":e(n).triggerId,"data-state":e(n).dataState.value,"data-disabled":e(n).dataDisabled.value,"data-orientation":e(l).orientation,style:{"--reka-accordion-content-width":"var(--reka-collapsible-content-width)","--reka-accordion-content-height":"var(--reka-collapsible-content-height)"},onContentFound:t[0]||(t[0]=s=>e(l).changeModelValue(e(n).value.value))},{default:h(()=>[D(i.$slots,"default")]),_:3},8,["as-child","as","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),Tt=It,qt=A({__name:"AccordionTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u){const r=u,l=xe(),n=Pe();n.triggerId||=se(void 0,"reka-accordion-trigger");function i(){const t=l.isSingle.value&&n.open.value&&!l.collapsible;n.disabled.value||t||l.changeModelValue(n.value.value)}return(t,s)=>(c(),C(e(ht),{id:e(n).triggerId,ref:e(n).currentRef,"data-reka-collection-item":"",as:r.as,"as-child":r.asChild,"aria-disabled":e(n).disabled.value||void 0,"aria-expanded":e(n).open.value||!1,"data-disabled":e(n).dataDisabled.value,"data-orientation":e(l).orientation,"data-state":e(n).dataState.value,disabled:e(n).disabled.value,onClick:i},{default:h(()=>[D(t.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),Ne=qt;function de(u){return u?"open":"closed"}function Fe(u,r){return`${u}-trigger-${r}`}function we(u,r){return`${u}-content-${r}`}const Et="navigationMenu.linkSelect",ne="navigationMenu.rootContentDismiss";function ye(u){const r=[],l=document.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)r.push(l.currentNode);return r}function Ke(u){const r=Z();return u.some(l=>l===r?!0:(l.focus(),Z()!==r))}function Mt(u){return u.forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")}),()=>{u.forEach(r=>{const l=r.dataset.tabindex;r.setAttribute("tabindex",l)})}}function He(u){return r=>r.pointerType==="mouse"?u(r):void 0}const[Y,Ot]=le(["NavigationMenuRoot","NavigationMenuSub"],"NavigationMenuContext");var Dt=A({__name:"NavigationMenuRoot",props:{modelValue:{type:String,required:!1,default:void 0},defaultValue:{type:String,required:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:"horizontal"},delayDuration:{type:Number,required:!1,default:200},skipDelayDuration:{type:Number,required:!1,default:300},disableClickTrigger:{type:Boolean,required:!1,default:!1},disableHoverTrigger:{type:Boolean,required:!1,default:!1},disablePointerLeaveClose:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"nav"}},emits:["update:modelValue"],setup(u,{emit:r}){const l=u,i=ke(l,"modelValue",r,{defaultValue:l.defaultValue??"",passive:l.modelValue===void 0}),t=V(""),{forwardRef:s,currentElement:d}=P(),f=V(),x=V(),I=V(),{getItems:y,CollectionSlot:M}=ie({key:"NavigationMenu",isProvider:!0}),{delayDuration:_,skipDelayDuration:p,dir:L,disableClickTrigger:o,disableHoverTrigger:S,unmountOnHide:g}=me(l),b=$e(L),E=Se(!1,p),v=V(!1),w=B(()=>i.value!==""||E.value?150:_.value),a=je(k=>{if(typeof k=="string"){if(k===""&&v.value){v.value=!1;return}t.value=i.value,i.value=k,k===""&&(E.value=!0)}},w);Ce(()=>{if(!i.value)return;const k=y().map($=>$.ref);I.value=k.find($=>$.id.includes(i.value))}),Ve(d,ne,m),Ot({isRootMenu:!0,modelValue:i,previousValue:t,baseId:se(void 0,"reka-navigation-menu"),disableClickTrigger:o,disableHoverTrigger:S,dir:b,unmountOnHide:g,orientation:l.orientation,rootNavigationMenu:d,indicatorTrack:f,activeTrigger:I,onIndicatorTrackChange:k=>{f.value=k},viewport:x,onViewportChange:k=>{x.value=k},onTriggerEnter:k=>{i.value!==""?(v.value=!0,t.value=i.value,i.value=k):a(k)},onTriggerLeave:()=>{v.value=!1,a("")},onContentEnter:()=>{a()},onContentLeave:()=>{l.disablePointerLeaveClose||(v.value=!1,a(""))},onItemSelect:k=>{t.value=i.value,i.value=k},onItemDismiss:m});function m(){t.value=i.value,i.value=""}return(k,$)=>(c(),C(e(M),null,{default:h(()=>[T(e(F),{ref:e(s),as:k.as,"as-child":k.asChild,"data-orientation":k.orientation,dir:e(b),"data-reka-navigation-menu":""},{default:h(()=>[D(k.$slots,"default",{modelValue:e(i)})]),_:3},8,["as","as-child","data-orientation","dir"])]),_:3}))}}),Nt=Dt;const[Ie,Vt]=le("NavigationMenuItem");var Bt=A({__name:"NavigationMenuItem",props:{value:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},setup(u){const r=u;P();const{getItems:l}=ie({key:"NavigationMenu"}),n=Y(),i=se(r.value),t=V(),s=V(),d=we(n.baseId,i);let f=()=>({});const x=V(!1);async function I(p="start"){const L=document.getElementById(d);if(L){f();const o=ye(L);o.length&&Ke(p==="start"?o:o.reverse())}}function y(){const p=document.getElementById(d);if(p){const L=ye(p);L.length&&(f=Mt(L))}}Vt({value:i,contentId:d,triggerRef:t,focusProxyRef:s,wasEscapeCloseRef:x,onEntryKeyDown:I,onFocusProxyEnter:I,onContentFocusOutside:y,onRootContentClose:y});function M(){n.onItemDismiss(),t.value?.focus()}function _(p){const L=Z();if(p.keyCode===32||p.key==="Enter")if(n.modelValue.value===i){M(),p.preventDefault();return}else{p.target.click(),p.preventDefault();return}const o=l().filter(g=>g.ref.parentElement?.hasAttribute("data-menu-item")).map(g=>g.ref);if(!o.includes(L))return;const S=Le(p,L,void 0,{itemsArray:o,loop:!1});S&&S?.focus(),p.preventDefault(),p.stopPropagation()}return(p,L)=>(c(),C(e(F),{"as-child":p.asChild,as:p.as,"data-menu-item":"",onKeydown:Re(_,["up","down","left","right","home","end","space"])},{default:h(()=>[D(p.$slots,"default")]),_:3},8,["as-child","as"]))}}),$t=Bt,Rt=A({__name:"NavigationMenuContentImpl",props:{disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(u,{emit:r}){const l=u,n=r,{getItems:i}=ie({key:"NavigationMenu"}),{forwardRef:t,currentElement:s}=P(),d=Y(),f=Ie(),x=Fe(d.baseId,f.value),I=we(d.baseId,f.value),y=V(null),M=B(()=>{const g=i().map(m=>m.ref.id.split("trigger-")[1]);d.dir.value==="rtl"&&g.reverse();const b=g.indexOf(d.modelValue.value),E=g.indexOf(d.previousValue.value),v=f.value===d.modelValue.value,w=E===g.indexOf(f.value);if(!v&&!w)return y.value;const a=(()=>{if(b!==E){if(v&&E!==-1)return b>E?"from-end":"from-start";if(w&&b!==-1)return b>E?"to-start":"to-end"}return null})();return y.value=a,a});function _(g){if(n("focusOutside",g),n("interactOutside",g),g.detail.originalEvent.target.hasAttribute("data-navigation-menu-trigger")&&g.preventDefault(),!g.defaultPrevented){f.onContentFocusOutside();const E=g.target;d.rootNavigationMenu?.value?.contains(E)&&g.preventDefault()}}function p(g){if(n("pointerDownOutside",g),!g.defaultPrevented){const b=g.target,E=i().some(w=>w.ref.contains(b)),v=d.isRootMenu&&d.viewport.value?.contains(b);(E||v||!d.isRootMenu)&&g.preventDefault()}}Ce(g=>{const b=s.value;if(d.isRootMenu&&b){const E=()=>{d.onItemDismiss(),f.onRootContentClose(),b.contains(Z())&&f.triggerRef.value?.focus()};b.addEventListener(ne,E),g(()=>b.removeEventListener(ne,E))}});function L(g){n("escapeKeyDown",g),g.defaultPrevented||(d.onItemDismiss(),f.triggerRef?.value?.focus(),f.wasEscapeCloseRef.value=!0)}function o(g){if(g.target.closest("[data-reka-navigation-menu]")!==d.rootNavigationMenu.value)return;const b=g.altKey||g.ctrlKey||g.metaKey,E=g.key==="Tab"&&!b,v=ye(g.currentTarget);if(E){const a=Z(),m=v.findIndex(z=>z===a),$=g.shiftKey?v.slice(0,m).reverse():v.slice(m+1,v.length);if(Ke($))g.preventDefault();else{f.focusProxyRef.value?.focus();return}}Le(g,Z(),void 0,{itemsArray:v,loop:!1,enableIgnoredElement:!0})?.focus()}function S(){if(d.modelValue.value!==f.value)return;const g=new Event(ne,{bubbles:!0,cancelable:!0});s.value?.dispatchEvent(g)}return(g,b)=>(c(),C(e(Ue),O({id:e(I),ref:e(t),"aria-labelledby":e(x),"data-motion":M.value,"data-state":e(de)(e(d).modelValue.value===e(f).value),"data-orientation":e(d).orientation},l,{onKeydown:o,onEscapeKeyDown:L,onPointerDownOutside:p,onFocusOutside:_,onDismiss:S}),{default:h(()=>[D(g.$slots,"default")]),_:3},16,["id","aria-labelledby","data-motion","data-state","data-orientation"]))}}),St=Rt,zt=A({inheritAttrs:!1,__name:"NavigationMenuContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(u,{emit:r}){const l=u,n=r,i=Ge(Qe(l,"forceMount"),n),{forwardRef:t}=P(),s=Y(),d=Ie(),f=B(()=>d.value===s.modelValue.value),x=B(()=>s.viewport.value&&!s.modelValue.value&&s.previousValue.value?s.previousValue.value===d.value:!1);return(I,y)=>(c(),C(ze,{to:e(qe)&&e(s).viewport.value?e(s).viewport.value:"body",disabled:e(qe)&&e(s).viewport.value?!e(s).viewport.value:!0},[T(e(ue),{present:I.forceMount||f.value||x.value,"force-mount":!e(s).unmountOnHide.value},{default:h(({present:M})=>[T(St,O({ref:e(t),"data-state":e(de)(f.value),style:{pointerEvents:!f.value&&e(s).isRootMenu?"none":void 0}},{...I.$attrs,...e(i)},{hidden:!M,onPointerenter:y[0]||(y[0]=_=>e(s).onContentEnter(e(d).value)),onPointerleave:y[1]||(y[1]=_=>e(He)(()=>e(s).onContentLeave())(_)),onPointerDownOutside:y[2]||(y[2]=_=>n("pointerDownOutside",_)),onFocusOutside:y[3]||(y[3]=_=>n("focusOutside",_)),onInteractOutside:y[4]||(y[4]=_=>n("interactOutside",_))}),{default:h(()=>[D(I.$slots,"default")]),_:2},1040,["data-state","style","hidden"])]),_:3},8,["present","force-mount"])],8,["to","disabled"]))}}),At=zt,Pt=A({inheritAttrs:!1,__name:"NavigationMenuIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u){const r=u,{forwardRef:l}=P(),n=Y(),i=V(),t=B(()=>n.orientation==="horizontal"),s=B(()=>!!n.modelValue.value),{activeTrigger:d}=n;function f(){d.value&&(i.value={size:t.value?d.value.offsetWidth:d.value.offsetHeight,position:t.value?d.value.offsetLeft:d.value.offsetTop})}return Ce(()=>{n.modelValue.value&&f()}),re(d,f),re(n.indicatorTrack,f),(x,I)=>e(n).indicatorTrack.value?(c(),C(ze,{key:0,to:e(n).indicatorTrack.value},[T(e(ue),{present:x.forceMount||s.value},{default:h(()=>[T(e(F),O({ref:e(l),"aria-hidden":"true","data-state":s.value?"visible":"hidden","data-orientation":e(n).orientation,"as-child":r.asChild,as:x.as,style:{...i.value?{"--reka-navigation-menu-indicator-size":`${i.value.size}px`,"--reka-navigation-menu-indicator-position":`${i.value.position}px`}:{}}},x.$attrs),{default:h(()=>[D(x.$slots,"default")]),_:3},16,["data-state","data-orientation","as-child","as","style"])]),_:3},8,["present"])],8,["to"])):N("v-if",!0)}}),Ft=Pt,Kt=A({__name:"NavigationMenuLink",props:{active:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"a"}},emits:["select"],setup(u,{emit:r}){const l=u,n=r,{CollectionItem:i}=ie({key:"NavigationMenu"});P();async function t(s){const d=new CustomEvent(Et,{bubbles:!0,cancelable:!0,detail:{originalEvent:s}});if(n("select",d),!d.defaultPrevented&&!s.metaKey){const f=new CustomEvent(ne,{bubbles:!0,cancelable:!0});s.target?.dispatchEvent(f)}}return(s,d)=>(c(),C(e(i),null,{default:h(()=>[T(e(F),{as:s.as,"data-active":s.active?"":void 0,"aria-current":s.active?"page":void 0,"as-child":l.asChild,onClick:t},{default:h(()=>[D(s.$slots,"default")]),_:3},8,["as","data-active","aria-current","as-child"])]),_:3}))}}),ge=Kt,Ht=A({inheritAttrs:!1,__name:"NavigationMenuList",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"ul"}},setup(u){const r=u,l=Y(),{forwardRef:n,currentElement:i}=P();return _e(()=>{l.onIndicatorTrackChange(i.value)}),(t,s)=>(c(),C(e(F),{ref:e(n),style:{position:"relative"}},{default:h(()=>[T(e(F),O(t.$attrs,{"as-child":r.asChild,as:t.as,"data-orientation":e(l).orientation}),{default:h(()=>[D(t.$slots,"default")]),_:3},16,["as-child","as","data-orientation"])]),_:3},512))}}),Wt=Ht;const jt=["aria-owns"];var Ut=A({inheritAttrs:!1,__name:"NavigationMenuTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(u){const r=u,l=Y(),n=Ie(),{CollectionItem:i}=ie({key:"NavigationMenu"}),{forwardRef:t,currentElement:s}=P(),d=V(""),f=V(""),x=Se(!1,300),I=V(!1),y=B(()=>n.value===l.modelValue.value);_e(()=>{n.triggerRef=s,d.value=Fe(l.baseId,n.value),f.value=we(l.baseId,n.value)});function M(){l.disableHoverTrigger.value||(I.value=!1,n.wasEscapeCloseRef.value=!1)}function _(b){if(!l.disableHoverTrigger.value&&b.pointerType==="mouse"){if(r.disabled||I.value||n.wasEscapeCloseRef.value||x.value)return;l.onTriggerEnter(n.value),x.value=!0}}function p(b){if(!l.disableHoverTrigger.value&&b.pointerType==="mouse"){if(r.disabled)return;l.onTriggerLeave(),x.value=!1}}function L(b){(!("pointerType"in b)||b.pointerType==="mouse")&&l.disableClickTrigger.value||x.value||(y.value?l.onItemSelect(""):l.onItemSelect(n.value),I.value=y.value)}function o(b){const v={horizontal:"ArrowDown",vertical:l.dir.value==="rtl"?"ArrowLeft":"ArrowRight"}[l.orientation];y.value&&b.key===v&&(n.onEntryKeyDown(),b.preventDefault(),b.stopPropagation())}function S(b){b&&(n.focusProxyRef.value=Xe(b))}function g(b){const E=document.getElementById(n.contentId),v=b.relatedTarget,w=v===s.value,a=E?.contains(v);(w||!a)&&n.onFocusProxyEnter(w?"start":"end")}return(b,E)=>(c(),R(j,null,[T(e(i),null,{default:h(()=>[T(e(F),O({id:d.value,ref:e(t),disabled:b.disabled,"data-disabled":b.disabled?"":void 0,"data-state":e(de)(y.value),"data-navigation-menu-trigger":"","aria-expanded":y.value,"aria-controls":f.value,"as-child":r.asChild,as:b.as},b.$attrs,{onPointerenter:M,onPointermove:_,onPointerleave:p,onClick:L,onKeydown:o}),{default:h(()=>[D(b.$slots,"default")]),_:3},16,["id","disabled","data-disabled","data-state","aria-expanded","aria-controls","as-child","as"])]),_:3}),y.value?(c(),R(j,{key:0},[T(e(Je),{ref:S,"aria-hidden":"true",tabindex:0,onFocus:g}),e(l).viewport?(c(),R("span",{key:0,"aria-owns":f.value},null,8,jt)):N("v-if",!0)],64)):N("v-if",!0)],64))}}),Gt=Ut,Qt=A({inheritAttrs:!1,__name:"NavigationMenuViewport",props:{forceMount:{type:Boolean,required:!1},align:{type:String,required:!1,default:"center"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(u){const r=u,{forwardRef:l,currentElement:n}=P(),i=Y(),{activeTrigger:t,rootNavigationMenu:s,modelValue:d}=i,f=V(),x=V(),I=B(()=>!!i.modelValue.value);he(n,()=>{i.onViewportChange(n.value)});const y=V();he([d,I],()=>{Be(()=>{n.value&&requestAnimationFrame(()=>{const _=n.value?.querySelector("[data-state=open]");y.value=_})})},{immediate:!0});function M(){if(y.value&&t.value&&s.value){const _=document.documentElement.offsetWidth,p=document.documentElement.offsetHeight,L=s.value.getBoundingClientRect(),o=t.value.getBoundingClientRect(),{offsetWidth:S,offsetHeight:g}=y.value,b=o.left-L.left,E=o.top-L.top;let v=null,w=null;switch(r.align){case"start":v=b,w=E;break;case"end":v=b-S+o.width,w=E-g+o.height;break;default:v=b-S/2+o.width/2,w=E-g/2+o.height/2}const a=10;v+L.left<a&&(v=a-L.left);const m=v+L.left+S;m>_-a&&(v-=m-_+a,v<a-L.left&&(v=a-L.left)),w+L.top<a&&(w=a-L.top);const k=w+L.top+g;k>p-a&&(w-=k-p+a,w<a-L.top&&(w=a-L.top)),v=Math.round(v),w=Math.round(w),x.value={left:v,top:w}}}return re(y,()=>{y.value&&(f.value={width:y.value.offsetWidth,height:y.value.offsetHeight},M())}),re([globalThis.document?.body,s],()=>{M()}),(_,p)=>(c(),C(e(ue),{present:_.forceMount||I.value,"force-mount":!e(i).unmountOnHide.value,onAfterLeave:p[2]||(p[2]=()=>{f.value=void 0,x.value=void 0})},{default:h(({present:L})=>[T(e(F),O(_.$attrs,{ref:e(l),as:_.as,"as-child":_.asChild,"data-state":e(de)(I.value),"data-orientation":e(i).orientation,style:{pointerEvents:!I.value&&e(i).isRootMenu?"none":void 0,"--reka-navigation-menu-viewport-width":f.value?`${f.value?.width}px`:void 0,"--reka-navigation-menu-viewport-height":f.value?`${f.value?.height}px`:void 0,"--reka-navigation-menu-viewport-left":x.value?`${x.value?.left}px`:void 0,"--reka-navigation-menu-viewport-top":x.value?`${x.value?.top}px`:void 0},hidden:!L,onPointerenter:p[0]||(p[0]=o=>e(i).onContentEnter(e(i).modelValue.value)),onPointerleave:p[1]||(p[1]=o=>e(He)(()=>e(i).onContentLeave())(o))}),{default:h(()=>[D(_.$slots,"default")]),_:2},1040,["as","as-child","data-state","data-orientation","style","hidden"])]),_:3},8,["present","force-mount"]))}}),Jt=Qt;const Xt={slots:{root:"relative flex gap-1.5 [&>div]:min-w-0",list:"isolate min-w-0",label:"w-full flex items-center gap-1.5 font-semibold text-xs/5 text-highlighted px-2.5 py-1.5",item:"min-w-0",link:"group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none focus-visible:before:outline-3",linkLeadingIcon:"shrink-0 size-5",linkLeadingAvatar:"shrink-0",linkLeadingAvatarSize:"2xs",linkLeadingChipSize:"sm",linkTrailing:"group ms-auto inline-flex gap-1.5 items-center",linkTrailingBadge:"shrink-0",linkTrailingBadgeSize:"sm",linkTrailingIcon:"size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",linkLabel:"truncate",linkLabelExternalIcon:"inline-block size-3 align-top text-dimmed",childList:"isolate",childLabel:"text-xs text-highlighted",childItem:"",childLink:"group relative size-full flex items-start text-start text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none focus-visible:before:outline-3",childLinkWrapper:"min-w-0",childLinkIcon:"size-5 shrink-0",childLinkLabel:"truncate",childLinkLabelExternalIcon:"inline-block size-3 align-top text-dimmed",childLinkDescription:"text-muted",separator:"px-2 h-px bg-border",viewportWrapper:"absolute top-full start-0 flex w-full",viewport:"relative overflow-hidden bg-default shadow-lg rounded-md ring ring-default h-(--reka-navigation-menu-viewport-height) w-full transition-[width,height,left,right] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] z-1",content:"",indicator:"absolute left-0 data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-2 w-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200",arrow:"relative top-[50%] size-2.5 rotate-45 border border-default bg-default z-1 rounded-xs"},variants:{color:{primary:{link:"before:outline-primary/25",childLink:"before:outline-primary/25"},secondary:{link:"before:outline-secondary/25",childLink:"before:outline-secondary/25"},success:{link:"before:outline-success/25",childLink:"before:outline-success/25"},info:{link:"before:outline-info/25",childLink:"before:outline-info/25"},warning:{link:"before:outline-warning/25",childLink:"before:outline-warning/25"},error:{link:"before:outline-error/25",childLink:"before:outline-error/25"},neutral:{link:"before:outline-inverted/25",childLink:"before:outline-inverted/25"}},highlightColor:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{pill:"",link:""},orientation:{horizontal:{root:"items-center justify-between",list:"flex items-center",item:"py-2",link:"px-2.5 py-1.5 before:inset-x-px before:inset-y-0",childList:"grid p-2",childLink:"px-3 py-2 gap-2 before:inset-x-px before:inset-y-0",childLinkLabel:"font-medium",content:"absolute top-0 start-0 w-full max-h-[70vh] overflow-y-auto"},vertical:{root:"flex-col",link:"flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0",childLabel:"px-1.5 py-0.5",childLink:"p-1.5 gap-1.5 before:inset-y-px before:inset-x-0"}},contentOrientation:{horizontal:{viewportWrapper:"justify-center",content:"data-[motion=from-start]:animate-[enter-from-left_200ms_ease] data-[motion=from-end]:animate-[enter-from-right_200ms_ease] data-[motion=to-start]:animate-[exit-to-left_200ms_ease] data-[motion=to-end]:animate-[exit-to-right_200ms_ease]"},vertical:{viewport:"sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left) rtl:left-auto rtl:right-[calc(100%-var(--reka-navigation-menu-viewport-left)-var(--reka-navigation-menu-viewport-width))]"}},active:{true:{childLink:"before:bg-elevated text-highlighted",childLinkIcon:"text-default"},false:{link:"text-muted",linkLeadingIcon:"text-dimmed",childLink:["hover:before:bg-elevated/50 text-default hover:text-highlighted","transition-colors before:transition-colors"],childLinkIcon:["text-dimmed group-hover:text-default","transition-colors"]}},disabled:{true:{link:"cursor-not-allowed opacity-75"}},highlight:{true:""},level:{true:""},collapsed:{true:""}},compoundVariants:[{orientation:"horizontal",contentOrientation:"horizontal",class:{childList:"grid-cols-2 gap-2"}},{orientation:"horizontal",contentOrientation:"vertical",class:{childList:"gap-1",content:"w-60"}},{orientation:"vertical",collapsed:!1,class:{childList:"ms-5 border-s border-default",childItem:"ps-1.5 -ms-px",content:"data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] data-[state=closed]:overflow-hidden"}},{orientation:"vertical",collapsed:!0,class:{link:"px-1.5",linkLabel:"hidden",linkTrailing:"hidden",content:"shadow-sm rounded-sm min-h-6 p-1"}},{orientation:"horizontal",highlight:!0,class:{link:["after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full","after:transition-colors"]}},{orientation:"vertical",highlight:!0,level:!0,class:{link:["after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full","after:transition-colors"]}},{disabled:!1,active:!1,variant:"pill",class:{link:["hover:text-highlighted hover:before:bg-elevated/50","transition-colors before:transition-colors"],linkLeadingIcon:["group-hover:text-default","transition-colors"]}},{disabled:!1,active:!1,variant:"pill",orientation:"horizontal",class:{link:"data-[state=open]:text-highlighted",linkLeadingIcon:"group-data-[state=open]:text-default"}},{disabled:!1,variant:"pill",highlight:!0,orientation:"horizontal",class:{link:"data-[state=open]:before:bg-elevated/50"}},{disabled:!1,variant:"pill",highlight:!1,active:!1,orientation:"horizontal",class:{link:"data-[state=open]:before:bg-elevated/50"}},{color:"primary",variant:"pill",active:!0,class:{link:"text-primary",linkLeadingIcon:"text-primary group-data-[state=open]:text-primary"}},{color:"secondary",variant:"pill",active:!0,class:{link:"text-secondary",linkLeadingIcon:"text-secondary group-data-[state=open]:text-secondary"}},{color:"success",variant:"pill",active:!0,class:{link:"text-success",linkLeadingIcon:"text-success group-data-[state=open]:text-success"}},{color:"info",variant:"pill",active:!0,class:{link:"text-info",linkLeadingIcon:"text-info group-data-[state=open]:text-info"}},{color:"warning",variant:"pill",active:!0,class:{link:"text-warning",linkLeadingIcon:"text-warning group-data-[state=open]:text-warning"}},{color:"error",variant:"pill",active:!0,class:{link:"text-error",linkLeadingIcon:"text-error group-data-[state=open]:text-error"}},{color:"neutral",variant:"pill",active:!0,class:{link:"text-highlighted",linkLeadingIcon:"text-highlighted group-data-[state=open]:text-highlighted"}},{variant:"pill",active:!0,highlight:!1,class:{link:"before:bg-elevated"}},{variant:"pill",active:!0,highlight:!0,disabled:!1,class:{link:["hover:before:bg-elevated/50","before:transition-colors"]}},{disabled:!1,active:!1,variant:"link",class:{link:["hover:text-highlighted","transition-colors"],linkLeadingIcon:["group-hover:text-default","transition-colors"]}},{disabled:!1,active:!1,variant:"link",orientation:"horizontal",class:{link:"data-[state=open]:text-highlighted",linkLeadingIcon:"group-data-[state=open]:text-default"}},{color:"primary",variant:"link",active:!0,class:{link:"text-primary",linkLeadingIcon:"text-primary group-data-[state=open]:text-primary"}},{color:"secondary",variant:"link",active:!0,class:{link:"text-secondary",linkLeadingIcon:"text-secondary group-data-[state=open]:text-secondary"}},{color:"success",variant:"link",active:!0,class:{link:"text-success",linkLeadingIcon:"text-success group-data-[state=open]:text-success"}},{color:"info",variant:"link",active:!0,class:{link:"text-info",linkLeadingIcon:"text-info group-data-[state=open]:text-info"}},{color:"warning",variant:"link",active:!0,class:{link:"text-warning",linkLeadingIcon:"text-warning group-data-[state=open]:text-warning"}},{color:"error",variant:"link",active:!0,class:{link:"text-error",linkLeadingIcon:"text-error group-data-[state=open]:text-error"}},{color:"neutral",variant:"link",active:!0,class:{link:"text-highlighted",linkLeadingIcon:"text-highlighted group-data-[state=open]:text-highlighted"}},{highlightColor:"primary",highlight:!0,level:!0,active:!0,class:{link:"after:bg-primary"}},{highlightColor:"secondary",highlight:!0,level:!0,active:!0,class:{link:"after:bg-secondary"}},{highlightColor:"success",highlight:!0,level:!0,active:!0,class:{link:"after:bg-success"}},{highlightColor:"info",highlight:!0,level:!0,active:!0,class:{link:"after:bg-info"}},{highlightColor:"warning",highlight:!0,level:!0,active:!0,class:{link:"after:bg-warning"}},{highlightColor:"error",highlight:!0,level:!0,active:!0,class:{link:"after:bg-error"}},{highlightColor:"neutral",highlight:!0,level:!0,active:!0,class:{link:"after:bg-inverted"}}],defaultVariants:{color:"primary",highlightColor:"primary",variant:"pill"}},ta=Object.assign({inheritAttrs:!1},{__name:"UNavigationMenu",props:{as:{type:null,required:!1},type:{type:null,required:!1,default:"multiple"},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},trailingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},items:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},collapsed:{type:Boolean,required:!1},tooltip:{type:[Boolean,Object],required:!1},popover:{type:[Boolean,Object],required:!1},highlight:{type:Boolean,required:!1},highlightColor:{type:null,required:!1},content:{type:Object,required:!1},contentOrientation:{type:null,required:!1,default:"horizontal"},arrow:{type:Boolean,required:!1},valueKey:{type:null,required:!1,default:"value"},labelKey:{type:null,required:!1,default:"label"},class:{type:null,required:!1},ui:{type:Object,required:!1},delayDuration:{type:Number,required:!1,default:0},disableClickTrigger:{type:Boolean,required:!1},disableHoverTrigger:{type:Boolean,required:!1},skipDelayDuration:{type:Number,required:!1},disablePointerLeaveClose:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1},collapsible:{type:Boolean,required:!1,default:!0}},emits:["update:modelValue"],setup(u,{emit:r}){const l=u,n=r,i=Ye(),t=Ze("navigationMenu",l),s=et(),d=Ee(B(()=>({as:t.as,delayDuration:t.delayDuration,skipDelayDuration:t.skipDelayDuration,orientation:t.orientation,disableClickTrigger:t.disableClickTrigger,disableHoverTrigger:t.disableHoverTrigger,disablePointerLeaveClose:t.disablePointerLeaveClose,unmountOnHide:t.unmountOnHide})),n),f=Ee(tt(t,"collapsible","disabled","type","unmountOnHide"),n),x=ve(()=>t.content),I=ve(()=>Oe(typeof t.tooltip=="boolean"?{}:t.tooltip,{...t.orientation==="vertical"&&{delayDuration:0,content:{side:"right"}}})),y=ve(()=>Oe(typeof t.popover=="boolean"?{}:t.popover,{mode:"hover",content:{side:"right",align:"start",alignOffset:2}})),[M,_]=Me(),[p,L]=Me({props:{item:Object,index:Number,level:Number,listIndex:Number}}),o=B(()=>ot({extend:Xt,...s.ui?.navigationMenu||{}})({orientation:t.orientation,contentOrientation:t.orientation==="vertical"?void 0:t.contentOrientation,collapsed:t.collapsed,color:t.color,variant:t.variant,highlight:t.highlight,highlightColor:t.highlightColor||t.color})),S=B(()=>t.items?.length?rt(t.items)?t.items:[t.items]:[]);function g(v,w,a,m){const k=S.value.length>1?`group-${m}-`:"";return J(v,t.valueKey)??(a>0?`${k}item-${a}-${w}`:`${k}item-${w}`)}function b(v,w=0,a=0){const m=v.reduce((k,$,z)=>(($.defaultOpen||$.open)&&k.push(g($,z,w,a)),k),[]);return t.type==="single"?m[0]:m}function E(v,w){w.children?.length&&(t.orientation==="horizontal"?v.preventDefault():t.orientation==="vertical"&&!t.collapsed&&(v.preventDefault(),v.stopPropagation()))}return(v,w)=>(c(),R(j,null,[T(e(M),null,{default:h(({item:a,active:m,index:k})=>[D(v.$slots,a.slot||"item",{item:a,index:k,active:m,ui:o.value},()=>[D(v.$slots,a.slot?`${a.slot}-leading`:"item-leading",{item:a,active:m,index:k,ui:o.value},()=>[a.avatar?(c(),C(at,O({key:0,size:a.ui?.linkLeadingAvatarSize||e(t).ui?.linkLeadingAvatarSize||o.value.linkLeadingAvatarSize()},a.avatar,{"data-slot":"linkLeadingAvatar",class:o.value.linkLeadingAvatar({class:[e(t).ui?.linkLeadingAvatar,a.ui?.linkLeadingAvatar],active:m,disabled:!!a.disabled})}),null,16,["size","class"])):a.icon&&a.chip?(c(),C(nt,O({key:1,size:a.ui?.linkLeadingChipSize||e(t).ui?.linkLeadingChipSize||o.value.linkLeadingChipSize(),inset:""},typeof a.chip=="object"?a.chip:{},{"data-slot":"linkLeadingChip"}),{default:h(()=>[T(W,{name:a.icon,"data-slot":"linkLeadingIcon",class:q(o.value.linkLeadingIcon({class:[e(t).ui?.linkLeadingIcon,a.ui?.linkLeadingIcon],active:m,disabled:!!a.disabled}))},null,8,["name","class"])]),_:2},1040,["size"])):a.icon?(c(),C(W,{key:2,name:a.icon,"data-slot":"linkLeadingIcon",class:q(o.value.linkLeadingIcon({class:[e(t).ui?.linkLeadingIcon,a.ui?.linkLeadingIcon],active:m,disabled:!!a.disabled}))},null,8,["name","class"])):N("",!0)]),e(J)(a,e(t).labelKey)||i[a.slot?`${a.slot}-label`:"item-label"]?(c(),R("span",{key:0,"data-slot":"linkLabel",class:q(o.value.linkLabel({class:[e(t).ui?.linkLabel,a.ui?.linkLabel]}))},[D(v.$slots,a.slot?`${a.slot}-label`:"item-label",{item:a,active:m,index:k},()=>[ce(ee(e(J)(a,e(t).labelKey)),1)]),a.target==="_blank"&&e(t).externalIcon!==!1?(c(),C(W,{key:0,name:typeof e(t).externalIcon=="string"?e(t).externalIcon:e(s).ui.icons.external,"data-slot":"linkLabelExternalIcon",class:q(o.value.linkLabelExternalIcon({class:[e(t).ui?.linkLabelExternalIcon,a.ui?.linkLabelExternalIcon],active:m}))},null,8,["name","class"])):N("",!0)],2)):N("",!0),a.badge||a.badge===0||e(t).orientation==="horizontal"&&(a.children?.length||i[a.slot?`${a.slot}-content`:"item-content"])||e(t).orientation==="vertical"&&a.children?.length||a.trailingIcon||i[a.slot?`${a.slot}-trailing`:"item-trailing"]?(c(),C(oe(e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed?e(Ne):"span"),{key:1,as:e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed?"span":void 0,"data-slot":"linkTrailing",class:q(o.value.linkTrailing({class:[e(t).ui?.linkTrailing,a.ui?.linkTrailing]})),onClick:$=>E($,a)},{default:h(()=>[D(v.$slots,a.slot?`${a.slot}-trailing`:"item-trailing",{item:a,active:m,index:k,ui:o.value},()=>[a.badge||a.badge===0?(c(),C(lt,O({key:0,color:"neutral",variant:"outline",size:a.ui?.linkTrailingBadgeSize||e(t).ui?.linkTrailingBadgeSize||o.value.linkTrailingBadgeSize()},typeof a.badge=="string"||typeof a.badge=="number"?{label:a.badge}:a.badge,{"data-slot":"linkTrailingBadge",class:o.value.linkTrailingBadge({class:[e(t).ui?.linkTrailingBadge,a.ui?.linkTrailingBadge]})}),null,16,["size","class"])):N("",!0),e(t).orientation==="horizontal"&&(a.children?.length||i[a.slot?`${a.slot}-content`:"item-content"])||e(t).orientation==="vertical"&&a.children?.length?(c(),C(W,{key:1,name:a.trailingIcon||e(t).trailingIcon||e(s).ui.icons.chevronDown,"data-slot":"linkTrailingIcon",class:q(o.value.linkTrailingIcon({class:[e(t).ui?.linkTrailingIcon,a.ui?.linkTrailingIcon],active:m}))},null,8,["name","class"])):a.trailingIcon?(c(),C(W,{key:2,name:a.trailingIcon,"data-slot":"linkTrailingIcon",class:q(o.value.linkTrailingIcon({class:[e(t).ui?.linkTrailingIcon,a.ui?.linkTrailingIcon],active:m}))},null,8,["name","class"])):N("",!0)])]),_:2},1032,["as","class","onClick"])):N("",!0)])]),_:3}),T(e(p),null,{default:h(({item:a,index:m,level:k=0,listIndex:$=0})=>[(c(),C(oe(e(t).orientation==="vertical"&&!e(t).collapsed?e(wt):e($t)),O({as:"li"},e(t).orientation==="vertical"&&!e(t).collapsed?{disabled:!!a.disabled}:{},{value:g(a,m,k,$)}),{default:h(()=>[e(t).orientation==="vertical"&&a.type==="label"&&!e(t).collapsed?(c(),R("div",{key:0,"data-slot":"label",class:q(o.value.label({class:[e(t).ui?.label,a.ui?.label,a.class]}))},[T(e(_),{item:a,index:m},null,8,["item","index"])],2)):a.type!=="label"?(c(),C(fe,O({key:1},e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed&&a.type==="trigger"?{}:e(pe)(a),{custom:""}),{default:h(({active:z,...G})=>[(c(),C(oe(e(t).orientation==="horizontal"&&(a.children?.length||i[a.slot?`${a.slot}-content`:"item-content"])?e(Gt):e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed&&!G.href?e(Ne):e(ge)),{"as-child":"",active:z||a.active,disabled:a.disabled,onSelect:a.onSelect},{default:h(()=>[e(t).orientation==="vertical"&&e(t).collapsed&&a.children?.length&&(e(t).popover||a.popover)?(c(),C(it,O({key:0},{...y.value,...typeof a.popover=="boolean"?{}:a.popover||{}},{ui:{content:o.value.content({class:[e(t).ui?.content,a.ui?.content]})}}),{content:h(({close:K})=>[D(v.$slots,a.slot?`${a.slot}-content`:"item-content",{item:a,active:z||a.active,index:m,ui:o.value,close:K},()=>[X("ul",{"data-slot":"childList",class:q(o.value.childList({class:[e(t).ui?.childList,a.ui?.childList]}))},[X("li",{"data-slot":"childLabel",class:q(o.value.childLabel({class:[e(t).ui?.childLabel,a.ui?.childLabel]}))},ee(e(J)(a,e(t).labelKey)),3),(c(!0),R(j,null,ae(a.children,(H,U)=>(c(),R("li",{key:U,"data-slot":"childItem",class:q(o.value.childItem({class:[e(t).ui?.childItem,a.ui?.childItem]}))},[T(fe,O({ref_for:!0},e(pe)(H),{custom:""}),{default:h(({active:Q,...We})=>[T(e(ge),{"as-child":"",active:Q,onSelect:H.onSelect},{default:h(()=>[T(te,O({ref_for:!0},We,{"data-slot":"childLink",class:o.value.childLink({class:[e(t).ui?.childLink,a.ui?.childLink,H.class],active:Q})}),{default:h(()=>[H.icon?(c(),C(W,{key:0,name:H.icon,"data-slot":"childLinkIcon",class:q(o.value.childLinkIcon({class:[e(t).ui?.childLinkIcon,a.ui?.childLinkIcon],active:Q}))},null,8,["name","class"])):N("",!0),X("span",{"data-slot":"childLinkLabel",class:q(o.value.childLinkLabel({class:[e(t).ui?.childLinkLabel,a.ui?.childLinkLabel],active:Q}))},[ce(ee(e(J)(H,e(t).labelKey))+" ",1),H.target==="_blank"&&e(t).externalIcon!==!1?(c(),C(W,{key:0,name:typeof e(t).externalIcon=="string"?e(t).externalIcon:e(s).ui.icons.external,"data-slot":"childLinkLabelExternalIcon",class:q(o.value.childLinkLabelExternalIcon({class:[e(t).ui?.childLinkLabelExternalIcon,a.ui?.childLinkLabelExternalIcon],active:Q}))},null,8,["name","class"])):N("",!0)],2)]),_:2},1040,["class"])]),_:2},1032,["active","onSelect"])]),_:2},1040)],2))),128))],2)])]),default:h(()=>[T(te,O(G,{"data-slot":"link",class:o.value.link({class:[e(t).ui?.link,a.ui?.link,a.class],active:z||a.active,disabled:!!a.disabled,level:k>0})}),{default:h(()=>[T(e(_),{item:a,active:z||a.active,index:m},null,8,["item","active","index"])]),_:2},1040,["class"])]),_:2},1040,["ui"])):e(t).orientation==="vertical"&&e(t).collapsed&&(e(t).tooltip||a.tooltip)||e(t).orientation==="horizontal"&&a.tooltip?(c(),C(ut,O({key:1,text:e(J)(a,e(t).labelKey)},{...I.value,...typeof a.tooltip=="boolean"?{}:a.tooltip||{}}),{default:h(()=>[T(te,O(G,{"data-slot":"link",class:o.value.link({class:[e(t).ui?.link,a.ui?.link,a.class],active:z||a.active,disabled:!!a.disabled,level:k>0})}),{default:h(()=>[T(e(_),{item:a,active:z||a.active,index:m},null,8,["item","active","index"])]),_:2},1040,["class"])]),_:2},1040,["text"])):(c(),C(te,O({key:2},G,{"data-slot":"link",class:o.value.link({class:[e(t).ui?.link,a.ui?.link,a.class],active:z||a.active,disabled:!!a.disabled,level:e(t).orientation==="horizontal"||k>0})}),{default:h(()=>[T(e(_),{item:a,active:z||a.active,index:m},null,8,["item","active","index"])]),_:2},1040,["class"]))]),_:2},1064,["active","disabled","onSelect"])),e(t).orientation==="horizontal"&&(a.children?.length||i[a.slot?`${a.slot}-content`:"item-content"])?(c(),C(e(At),O({key:0},x.value,{"data-slot":"content",class:o.value.content({class:[e(t).ui?.content,a.ui?.content]})}),{default:h(()=>[D(v.$slots,a.slot?`${a.slot}-content`:"item-content",{item:a,active:z||a.active,index:m,ui:o.value},()=>[X("ul",{"data-slot":"childList",class:q(o.value.childList({class:[e(t).ui?.childList,a.ui?.childList]}))},[(c(!0),R(j,null,ae(a.children,(K,H)=>(c(),R("li",{key:H,"data-slot":"childItem",class:q(o.value.childItem({class:[e(t).ui?.childItem,a.ui?.childItem]}))},[T(fe,O({ref_for:!0},e(pe)(K),{custom:""}),{default:h(({active:U,...Q})=>[T(e(ge),{"as-child":"",active:U,onSelect:K.onSelect},{default:h(()=>[T(te,O({ref_for:!0},Q,{"data-slot":"childLink",class:o.value.childLink({class:[e(t).ui?.childLink,a.ui?.childLink,K.class],active:U})}),{default:h(()=>[K.icon?(c(),C(W,{key:0,name:K.icon,"data-slot":"childLinkIcon",class:q(o.value.childLinkIcon({class:[e(t).ui?.childLinkIcon,a.ui?.childLinkIcon],active:U}))},null,8,["name","class"])):N("",!0),X("div",{"data-slot":"childLinkWrapper",class:q(o.value.childLinkWrapper({class:[e(t).ui?.childLinkWrapper,a.ui?.childLinkWrapper]}))},[X("p",{"data-slot":"childLinkLabel",class:q(o.value.childLinkLabel({class:[e(t).ui?.childLinkLabel,a.ui?.childLinkLabel],active:U}))},[ce(ee(e(J)(K,e(t).labelKey))+" ",1),K.target==="_blank"&&e(t).externalIcon!==!1?(c(),C(W,{key:0,name:typeof e(t).externalIcon=="string"?e(t).externalIcon:e(s).ui.icons.external,"data-slot":"childLinkLabelExternalIcon",class:q(o.value.childLinkLabelExternalIcon({class:[e(t).ui?.childLinkLabelExternalIcon,a.ui?.childLinkLabelExternalIcon],active:U}))},null,8,["name","class"])):N("",!0)],2),K.description?(c(),R("p",{key:0,"data-slot":"childLinkDescription",class:q(o.value.childLinkDescription({class:[e(t).ui?.childLinkDescription,a.ui?.childLinkDescription],active:U}))},ee(K.description),3)):N("",!0)],2)]),_:2},1040,["class"])]),_:2},1032,["active","onSelect"])]),_:2},1040)],2))),128))],2)])]),_:2},1040,["class"])):N("",!0)]),_:2},1040)):N("",!0),e(t).orientation==="vertical"&&a.children?.length&&!e(t).collapsed?(c(),C(e(Tt),{key:2,"data-slot":"content",class:q(o.value.content({class:[e(t).ui?.content,a.ui?.content]}))},{default:h(()=>[T(e(De),O({...e(f),defaultValue:b(a.children,k+1,$)},{as:"ul","data-slot":"childList",class:o.value.childList({class:[e(t).ui?.childList,a.ui?.childList]})}),{default:h(()=>[(c(!0),R(j,null,ae(a.children,(z,G)=>(c(),C(e(L),{key:G,item:z,index:G,level:k+1,"list-index":$,"data-slot":"childItem",class:q(o.value.childItem({class:[e(t).ui?.childItem,z.ui?.childItem]}))},null,8,["item","index","level","list-index","class"]))),128))]),_:2},1040,["class"])]),_:2},1032,["class"])):N("",!0)]),_:2},1040,["value"]))]),_:3}),T(e(Nt),O({"data-slot":"root"},{...e(d),...e(t).orientation==="horizontal"?{modelValue:e(t).modelValue,defaultValue:e(t).defaultValue}:{},...v.$attrs},{"data-collapsed":e(t).collapsed,class:o.value.root({class:[e(t).ui?.root,e(t).class]})}),{default:h(()=>[D(v.$slots,"list-leading"),(c(!0),R(j,null,ae(S.value,(a,m)=>(c(),R(j,{key:`list-${m}`},[(c(),C(oe(e(t).orientation==="vertical"?e(De):e(Wt)),O({ref_for:!0},e(t).orientation==="vertical"&&!e(t).collapsed?{...e(f),modelValue:e(t).modelValue,defaultValue:e(t).defaultValue??b(a,0,m)}:{},{as:"ul","data-slot":"list",class:o.value.list({class:e(t).ui?.list})}),{default:h(()=>[(c(!0),R(j,null,ae(a,(k,$)=>(c(),C(e(L),{key:`list-${m}-${$}`,item:k,index:$,"list-index":m,"data-slot":"item",class:q(o.value.item({class:[e(t).ui?.item,k.ui?.item]}))},null,8,["item","index","list-index","class"]))),128))]),_:2},1040,["class"])),e(t).orientation==="vertical"&&m<S.value.length-1?(c(),R("div",{key:0,"data-slot":"separator",class:q(o.value.separator({class:e(t).ui?.separator}))},null,2)):N("",!0)],64))),128)),D(v.$slots,"list-trailing"),e(t).orientation==="horizontal"?(c(),R("div",{key:0,"data-slot":"viewportWrapper",class:q(o.value.viewportWrapper({class:e(t).ui?.viewportWrapper}))},[e(t).arrow?(c(),C(e(Ft),{key:0,"data-slot":"indicator",class:q(o.value.indicator({class:e(t).ui?.indicator}))},{default:h(()=>[X("div",{"data-slot":"arrow",class:q(o.value.arrow({class:e(t).ui?.arrow}))},null,2)]),_:1},8,["class"])):N("",!0),T(e(Jt),{"data-slot":"viewport",class:q(o.value.viewport({class:e(t).ui?.viewport}))},null,8,["class"])],2)):N("",!0)]),_:3},16,["data-collapsed","class"])],64))}});export{ta as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r,o as s,c as l,g as n,U as o,k as i,t,i as c,l as d}from"./
|
|
1
|
+
import{d as r,o as s,c as l,g as n,U as o,k as i,t,i as c,l as d}from"./1QWBzxLM.js";const m={class:"rounded-lg bg-gray-50 dark:bg-gray-900 p-3 min-w-0"},u={class:"text-xs font-medium text-gray-500 uppercase tracking-wider inline-flex items-center gap-1 max-w-full"},g={key:0,class:"text-xs text-gray-400 mt-1"},x=r({__name:"StatTile",props:{label:{},value:{},hint:{},size:{default:"lg"},valueClass:{default:""}},setup(e){return(a,f)=>(s(),l("div",m,[n("p",u,[o(a.$slots,"label",{},()=>[i(t(e.label),1)])]),n("p",{class:c(["mt-0.5 break-words",[e.size==="lg"?"text-xl font-bold":"text-sm font-semibold",e.valueClass]])},[o(a.$slots,"default",{},()=>[i(t(e.value??"—"),1)])],2),e.hint?(s(),l("p",g,t(e.hint),1)):d("",!0)]))}}),h=Object.assign(x,{__name:"StatTile"});export{h as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as n,o as s,c as o,h as c,_ as r,g as l,t as i,U as d,i as m}from"./
|
|
1
|
+
import{d as n,o as s,c as o,h as c,_ as r,g as l,t as i,U as d,i as m}from"./1QWBzxLM.js";const _={class:"text-sm text-red-500"},p=n({__name:"ErrorState",props:{text:{},icon:{default:"i-lucide-circle-alert"},padded:{type:Boolean,default:!0}},setup(e){return(t,u)=>{const a=r;return s(),o("div",{role:"alert",class:m(["flex flex-col items-center justify-center gap-2 text-center",e.padded&&"p-4"])},[c(a,{name:e.icon,class:"size-5 text-red-400"},null,8,["name"]),l("p",_,i(e.text),1),d(t.$slots,"action")],2)}}}),f=Object.assign(p,{__name:"ErrorState"});export{f as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as P}from"./
|
|
1
|
+
import{_ as P}from"./DURme_kn.js";import{_ as M}from"./D-F0Rhjj.js";import{_ as L}from"./bmAf49LT.js";import{d as R,q,C as F,am as U,b as e,e as v,f as i,l as k,r as h,o as a,g as _,c as f,h as s,k as l,t as S,j as H,A as O,F as Q,aI as Y,v as I,y as j,ap as J,_ as E,w as K,B as W}from"./1QWBzxLM.js";import{e as A,a as X}from"./D4mPjHHR.js";import{_ as Z}from"./B-1zt4pp.js";import{a as ee}from"./B82vqOZe.js";import{u as te}from"./CzyCEdYP.js";import{u as ne}from"./CU_2YLhT.js";import"./AbnDY6Zr.js";import"./CHz7LJIX.js";const se={class:"space-y-3"},oe={key:0,class:"flex items-center justify-between gap-3"},ae={key:1,class:"text-sm text-muted"},ie={key:2,class:"flex items-center justify-between gap-3"},le={class:"text-sm flex items-center gap-2"},re={class:"flex items-start justify-between gap-3"},ce={class:"space-y-1 min-w-0"},ue={class:"text-sm font-medium"},de={key:0,class:"text-xs text-muted whitespace-pre-wrap line-clamp-6"},pe={key:1,class:"text-xs text-muted"},me=R({__name:"DesktopUpdateCard",props:{currentVersion:{}},setup(T){const p=q(),b=h(!1),r=h(!1),u=h(!1),x=h(!1),c=h(null),d=h(null);let m=null;F(()=>{b.value=!!U()}),J(()=>{m?.()});async function g(){const n=U();if(!(!n||r.value)){r.value=!0;try{c.value=await n.invoke("desktop_check_update")}catch(t){p.add({title:"Update check failed",description:A(t),color:"error"})}finally{r.value=!1}}}async function V(){const n=U(),t=Y();if(!(!n||u.value)){u.value=!0,d.value={downloaded:0,total:null};try{t&&!m&&(m=await t.listen("piwi:update-progress",({payload:o})=>{d.value=o})),await n.invoke("desktop_install_update"),x.value=!0}catch(o){p.add({title:"Update failed",description:A(o),color:"error"}),d.value=null}finally{u.value=!1}}}async function y(){const n=U();if(n)try{await n.invoke("desktop_restart_app")}catch{}}const w=I(()=>{const n=d.value;return n?.total?Math.min(100,Math.round(n.downloaded/n.total*100)):null});return(n,t)=>{const o=H,D=j,C=E,$=O,B=L;return e(b)?(a(),v(B,{key:0,icon:"i-lucide-arrow-up-circle",title:"Updates"},{subtitle:i(()=>[l(" Updates install from GitHub releases and apply on restart"+S(T.currentVersion?` — you are on v${T.currentVersion}`:"")+". ",1)]),default:i(()=>[_("div",se,[e(c)?e(c).state==="unsupported"?(a(),f("p",ae,[t[3]||(t[3]=l(" This build has no update channel — dev builds and releases made without the update signing key cannot self-update. Grab new versions from the ",-1)),s(D,{to:"https://github.com/piwitests/platform/releases/latest",target:"_blank",rel:"noopener noreferrer",class:"text-primary hover:underline"},{default:i(()=>[...t[2]||(t[2]=[l("latest release",-1)])]),_:1}),t[4]||(t[4]=l(". ",-1))])):e(c).state==="uptodate"?(a(),f("div",ie,[_("p",le,[s(C,{name:"i-lucide-check-circle",class:"size-4 text-success"}),t[5]||(t[5]=l(" You're on the latest version. ",-1))]),s(o,{size:"xs",color:"neutral",variant:"soft",icon:"i-lucide-refresh-cw",loading:e(r),onClick:g},{default:i(()=>[...t[6]||(t[6]=[l(" Check again ",-1)])]),_:1},8,["loading"])])):(a(),f(Q,{key:3},[_("div",re,[_("div",ce,[_("p",ue,"Version "+S(e(c).version)+" is available",1),e(c).notes?(a(),f("p",de,S(e(c).notes),1)):k("",!0)]),e(x)?(a(),v(o,{key:1,size:"xs",color:"success",icon:"i-lucide-rotate-cw",class:"shrink-0",onClick:y},{default:i(()=>[...t[7]||(t[7]=[l(" Restart now ",-1)])]),_:1})):(a(),v(o,{key:0,size:"xs",icon:"i-lucide-download",loading:e(u),class:"shrink-0",onClick:V},{default:i(()=>[l(S(e(u)?"Installing…":"Install update"),1)]),_:1},8,["loading"]))]),e(u)&&e(w)!==null?(a(),v($,{key:0,"model-value":e(w),size:"sm"},null,8,["model-value"])):k("",!0),e(x)?(a(),f("p",pe," The update is installed — it applies the next time the app starts. ")):k("",!0)],64)):(a(),f("div",oe,[t[1]||(t[1]=_("p",{class:"text-sm text-muted"},"Check GitHub for a newer version of the desktop app.",-1)),s(o,{size:"xs",icon:"i-lucide-refresh-cw",loading:e(r),onClick:g},{default:i(()=>[...t[0]||(t[0]=[l("Check for updates",-1)])]),_:1},8,["loading"])]))])]),_:1})):k("",!0)}}}),_e=Object.assign(me,{__name:"DesktopUpdateCard"}),fe={class:"space-y-6"},ve={class:"flex flex-wrap items-center gap-x-6 gap-y-3 text-sm"},Ve=R({__name:"about",async setup(T){let p,b;const r=W(),u=te(),{data:x}=([p,b]=K(()=>ne("/api/version","$PC3uzh76dT")),p=await p,b(),p),c=r.public.appVersion,d=r.public.buildSha,m=r.public.buildTime,g=r.public.nodeVersion,V=r.public.authEnabled,y=I(()=>d?d.slice(0,7):null),w=I(()=>{const n=x.value?.dbBackend;return n==="postgresql"?"PostgreSQL":n==="sqlite"?"SQLite":n??null});return(n,t)=>{const o=P,D=M,C=L,$=_e,B=Z,G=ee,z=j,N=E;return a(),f("div",fe,[s(C,{icon:"i-lucide-info",title:"Application"},{default:i(()=>[s(D,null,{default:i(()=>[s(o,{label:"Version",value:`v${e(c)}`},null,8,["value"]),e(y)?(a(),v(o,{key:0,label:"Build",value:e(y),hint:e(d)},null,8,["value","hint"])):k("",!0),e(m)?(a(),v(o,{key:1,label:"Built",value:("formatRelativeTime"in n?n.formatRelativeTime:e(X))(e(m)),hint:e(m)},null,8,["value","hint"])):k("",!0),s(o,{label:"Node.js",value:e(g)},null,8,["value"]),s(o,{label:"Database",value:e(w)},null,8,["value"]),s(o,{label:"Authentication",value:e(V)?"Enabled":"Disabled"},null,8,["value"])]),_:1})]),_:1}),s($,{"current-version":e(c)},null,8,["current-version"]),e(u)?(a(),v(B,{key:0,icon:"i-lucide-rocket",color:"neutral",variant:"subtle",title:"Connecting the reporter and AI clients",description:"The URL and access token for this local instance, the data location, and background-service control are on the Setup page.",actions:[{label:"Open Setup",to:"/setup",color:"neutral",variant:"solid",size:"xs"}]})):k("",!0),s(C,{icon:"i-lucide-book-open",title:"Resources"},{default:i(()=>[_("div",ve,[s(G,{to:""},{default:i(()=>[...t[0]||(t[0]=[l("Documentation",-1)])]),_:1}),s(z,{to:"/docs",class:"inline-flex items-center gap-1 text-primary hover:underline"},{default:i(()=>[...t[1]||(t[1]=[l(" API reference ",-1)])]),_:1}),s(z,{to:"https://github.com/piwitests/platform",target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1 text-primary hover:underline"},{default:i(()=>[t[2]||(t[2]=l(" GitHub ",-1)),s(N,{name:"i-lucide-external-link",class:"w-3.5 h-3.5 shrink-0"})]),_:1})])]),_:1})])}}});export{Ve as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as b,q as U,c as r,h as t,f as s,o as i,b as l,F as _,g as o,H as $,k as m,D as B,I as V,x as F,j as C,_ as I,r as c}from"./
|
|
1
|
+
import{d as b,q as U,c as r,h as t,f as s,o as i,b as l,F as _,g as o,H as $,k as m,D as B,I as V,x as F,j as C,_ as I,r as c}from"./1QWBzxLM.js";import{_ as N}from"./B-1zt4pp.js";import{_ as S}from"./B4lvHjBe.js";import{_ as E}from"./AbnDY6Zr.js";import"./Bl0xzETD.js";const T={class:"min-h-screen flex items-center justify-center bg-elevated/50"},j={class:"flex items-center gap-2"},q={class:"mt-4 text-center"},P={class:"mt-4 text-center"},R=b({__name:"forgot-password",setup(z){const f=U(),a=c(""),n=c(!1),d=c(!1);async function p(){if(a.value){n.value=!0;try{await $fetch("/api/auth/forgot-password",{method:"POST",body:{email:a.value}}),d.value=!0}catch{f.add({title:"Something went wrong",description:"Please try again.",color:"error"})}finally{n.value=!1}}}return(A,e)=>{const x=I,g=N,u=$,y=V,k=S,v=C,h=E;return i(),r("div",T,[t(h,{class:"w-full max-w-md"},{header:s(()=>[o("div",j,[t(x,{name:"i-lucide-key-round",class:"size-6"}),e[1]||(e[1]=o("h1",{class:"text-2xl font-bold"},"Forgot password",-1))])]),default:s(()=>[l(d)?(i(),r(_,{key:0},[t(g,{color:"success",icon:"i-lucide-mail-check",title:"Check your email",description:"If an account with that email exists, a reset link has been sent."}),o("div",q,[t(u,{to:"/login",class:"text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"},{default:s(()=>[...e[2]||(e[2]=[m(" Back to login ",-1)])]),_:1})])],64)):(i(),r(_,{key:1},[e[5]||(e[5]=o("p",{class:"text-sm text-gray-500 mb-4"}," Enter your email address and we'll send you a link to reset your password. ",-1)),o("form",{class:"space-y-4",onSubmit:B(p,["prevent"])},[t(k,{label:"Email",name:"email",required:""},{default:s(()=>[t(y,{modelValue:l(a),"onUpdate:modelValue":e[0]||(e[0]=w=>F(a)?a.value=w:null),type:"email",placeholder:"you@example.com",autocomplete:"email",disabled:l(n),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),t(v,{type:"submit",block:"",loading:l(n)},{default:s(()=>[...e[3]||(e[3]=[m("Send reset link",-1)])]),_:1},8,["loading"])],32),o("div",P,[t(u,{to:"/login",class:"text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"},{default:s(()=>[...e[4]||(e[4]=[m(" Back to login ",-1)])]),_:1})])],64))]),_:1})])}}});export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as S,o as v,c as h,b as t,F as J,g as x,i as U,U as V,k as l,t as K,h as n,_ as A,e as L,f as a,j as M,l as F,x as R,v as y,r as _,M as T,G as q}from"./
|
|
1
|
+
import{d as S,o as v,c as h,b as t,F as J,g as x,i as U,U as V,k as l,t as K,h as n,_ as A,e as L,f as a,j as M,l as F,x as R,v as y,r as _,M as T,G as q}from"./1QWBzxLM.js";import{_ as G}from"./Dpwj_1H5.js";import{u as H}from"./BOA-I6S9.js";import{a as Q}from"./CU_2YLhT.js";function W(i){let o=i,u=null,j=null;const k=i.lastIndexOf(":");if(k>0){const m=i.slice(k+1);if(/^\d+$/.test(m)){const c=i.slice(0,k),b=c.lastIndexOf(":");if(b>0){const g=c.slice(b+1);/^\d+$/.test(g)?(j=parseInt(m,10),u=parseInt(g,10),o=c.slice(0,b)):(u=parseInt(m,10),o=c)}else u=parseInt(m,10),o=c}}return{filePath:o,line:u,column:j}}const X={class:"group/ide inline-flex items-center gap-1 min-w-0 max-w-full align-middle"},Y=["title","aria-label"],Z={type:"button",class:"shrink-0 inline-flex items-center rounded p-0.5 text-muted cursor-pointer transition-colors hover:bg-elevated/60 hover:text-default","aria-label":"Choose how to open in IDE",title:"Choose how to open"},ee={class:"w-56 p-1 space-y-0.5"},te=S({__name:"OpenInIdeLink",props:{filePath:{},line:{default:null},column:{default:null},location:{},projectKey:{},projectName:{},mono:{type:Boolean,default:!0}},setup(i){const o=i,{openInIde:u,openInVscode:j,openViaJetbrainsUrl:k,openViaJetbrainsHttp:m,resolveAbsPath:c,openSettings:b}=H(),{copy:g}=Q(),P=y(()=>o.filePath?{filePath:o.filePath,line:o.line??null,column:o.column??null}:o.location?W(o.location):{filePath:"",line:null,column:null}),f=y(()=>P.value.filePath),w=y(()=>P.value.line),I=y(()=>w.value?`${f.value}:${w.value}`:f.value),O=y(()=>c(f.value,o.projectKey)),r=y(()=>({filePath:f.value,line:w.value,column:P.value.column,projectKey:o.projectKey??null,projectName:o.projectName??null})),C=_(!1),N=_(!1);function D(){N.value=!0,T(()=>{C.value=!0})}function p($){C.value=!1,$()}return($,e)=>{const z=A,d=M,B=G,E=q;return v(),h("span",X,[t(f)?(v(),h(J,{key:0},[x("button",{type:"button",class:"inline-flex items-center gap-1 min-w-0 max-w-full cursor-pointer text-left",title:`Open ${t(I)} in IDE`,"aria-label":`Open ${t(I)} in IDE`,onClick:e[0]||(e[0]=s=>t(u)(t(r)))},[x("span",{class:U([i.mono?"font-mono":"","truncate underline decoration-dashed decoration-1 underline-offset-2 decoration-gray-400/70 dark:decoration-gray-500/70 transition-colors group-hover/ide:decoration-current"])},[V($.$slots,"default",{},()=>[l(K(t(I)),1)])],2),n(z,{name:"i-lucide-external-link",class:"size-3 shrink-0 opacity-0 transition-opacity group-hover/ide:opacity-100"})],8,Y),t(N)?(v(),L(E,{key:1,open:t(C),"onUpdate:open":e[8]||(e[8]=s=>R(C)?C.value=s:null)},{content:a(()=>[x("div",ee,[e[16]||(e[16]=x("p",{class:"text-xs font-medium text-muted px-2 pt-1 pb-1"},"Open in IDE",-1)),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-wand-sparkles",onClick:e[1]||(e[1]=s=>p(()=>t(u)({...t(r),method:"auto"})))},{default:a(()=>[...e[9]||(e[9]=[l(" Auto (try all) ",-1)])]),_:1}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-code",onClick:e[2]||(e[2]=s=>p(()=>t(j)(t(r))))},{default:a(()=>[...e[10]||(e[10]=[l(" Open in VS Code ",-1)])]),_:1}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-square-code",onClick:e[3]||(e[3]=s=>p(()=>t(k)(t(r))))},{default:a(()=>[...e[11]||(e[11]=[l(" JetBrains (URL) ",-1)])]),_:1}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-server",onClick:e[4]||(e[4]=s=>p(()=>t(m)(t(r))))},{default:a(()=>[...e[12]||(e[12]=[l(" JetBrains (local server) ",-1)])]),_:1}),n(B,{class:"my-1"}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-clipboard",onClick:e[5]||(e[5]=s=>p(()=>t(g)(t(f),{toast:"Path copied"})))},{default:a(()=>[...e[13]||(e[13]=[l(" Copy path ",-1)])]),_:1}),t(O)?(v(),L(d,{key:0,block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-clipboard-check",onClick:e[6]||(e[6]=s=>p(()=>t(g)(t(O),{toast:"Absolute path copied"})))},{default:a(()=>[...e[14]||(e[14]=[l(" Copy absolute path ",-1)])]),_:1})):F("",!0),n(B,{class:"my-1"}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-settings",onClick:e[7]||(e[7]=s=>p(()=>t(b)({projectKey:t(r).projectKey?String(t(r).projectKey):null,projectName:t(r).projectName})))},{default:a(()=>[...e[15]||(e[15]=[l(" Configure… ",-1)])]),_:1})])]),default:a(()=>[x("button",Z,[n(z,{name:"i-lucide-chevron-down",class:"size-3.5"})])]),_:1},8,["open"])):(v(),h("button",{key:0,type:"button",class:"shrink-0 inline-flex items-center rounded p-0.5 text-muted cursor-pointer transition-opacity hover:bg-elevated/60 hover:text-default opacity-100 sm:opacity-0 sm:group-hover/ide:opacity-100 focus-visible:opacity-100","aria-label":"Choose how to open in IDE",title:"Choose how to open",onClick:D},[n(z,{name:"i-lucide-chevron-down",class:"size-3.5"})]))],64)):(v(),h("span",{key:1,class:U([i.mono?"font-mono":"","truncate"])},[V($.$slots,"default",{},()=>[l(K(t(I)),1)])],2))])}}}),ae=Object.assign(te,{__name:"OpenInIdeLink"});export{ae as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as m,c5 as I,ay as y,bd as F,C as g,ad as h,a as C,o as K,e as S,f as i,h as w,b as r,W as R,U as T,v as u,bh as q,c6 as B,M as x,c7 as _}from"./
|
|
1
|
+
import{d as m,c5 as I,ay as y,bd as F,C as g,ad as h,a as C,o as K,e as S,f as i,h as w,b as r,W as R,U as T,v as u,bh as q,c6 as B,M as x,c7 as _}from"./1QWBzxLM.js";var k=m({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(d){const n=d,a=I(),f=y(),l=u(()=>n.tabStopId||f),c=u(()=>a.currentTabStopId.value===l.value),{getItems:p,CollectionItem:v}=F();g(()=>{n.focusable&&a.onFocusableItemAdd()}),h(()=>{n.focusable&&a.onFocusableItemRemove()}),C(()=>n.focusable,(e,t)=>{e!==t&&(e?a.onFocusableItemAdd():a.onFocusableItemRemove())});function b(e){if(e.key==="Tab"&&e.shiftKey){a.onItemShiftTab();return}if(e.target!==e.currentTarget)return;const t=q(e,a.orientation.value,a.dir.value);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!n.allowShiftKey&&e.shiftKey)return;e.preventDefault();let o=[...p().map(s=>s.ref).filter(s=>s.dataset.disabled!=="")];if(t==="last")o.reverse();else if(t==="prev"||t==="next"){t==="prev"&&o.reverse();const s=o.indexOf(e.currentTarget);o=a.loop.value?B(o,s+1):o.slice(s+1)}x(()=>_(o))}}return(e,t)=>(K(),S(r(v),null,{default:i(()=>[w(r(R),{tabindex:c.value?0:-1,"data-orientation":r(a).orientation.value,"data-active":e.active?"":void 0,"data-disabled":e.focusable?void 0:"",as:e.as,"as-child":e.asChild,onMousedown:t[0]||(t[0]=o=>{e.focusable?r(a).onItemFocus(l.value):o.preventDefault()}),onFocus:t[1]||(t[1]=o=>r(a).onItemFocus(l.value)),onKeydown:b},{default:i(()=>[T(e.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),M=k;export{M as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as c,o as n,c as o,F as l,z as p,e as m,f,k as u,t as _,b as t,l as d,B as g,j as h}from"./
|
|
1
|
+
import{d as c,o as n,c as o,F as l,z as p,e as m,f,k as u,t as _,b as t,l as d,B as g,j as h}from"./1QWBzxLM.js";import{C as k,u as b}from"./D4mPjHHR.js";import{f as x}from"./D-c8ZSws.js";const y={key:0,class:"flex flex-wrap gap-1"},B=c({__name:"RunReports",props:{reports:{}},setup(a){const r=g();return(s,R)=>{const i=h;return a.reports?.length?(n(),o("div",y,[(n(!0),o(l,null,p(a.reports,e=>(n(),m(i,{key:`${e.type}-${e.path}`,href:t(b)(e.path,null,t(r).app?.baseURL),icon:("reportIcon"in s?s.reportIcon:t(k))(e.type),title:e.size?t(x)(e.size):e.label,target:"_blank",size:"xs",variant:"outline"},{default:f(()=>[u(_(e.label),1)]),_:2},1032,["href","icon","title"]))),128))])):d("",!0)}}}),U=Object.assign(B,{__name:"RunReports"});export{U as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as h}from"./
|
|
1
|
+
import{v as h}from"./1QWBzxLM.js";function r(s){if(!s.location)return s.title;const o=s.location.match(/^(.*):(\d+):(\d+)$/);return`${o?o[1]:s.location}::${s.title}`}function C(s,o){const c=h(()=>{if(!s.value?.testCases||!o.value?.testCases)return[];const d=new Map;for(const t of s.value.testCases)d.set(r(t),t);const u=[];for(const t of o.value.testCases){const a=d.get(r(t)),l=a?.duration??null,n=t.duration??null;let e=null,f=null;l!==null&&n!==null&&(e=n-l,f=l>0?Math.round((n-l)/l*100):null),u.push({title:t.title,location:t.location??null,statusA:a?.status??null,statusB:t.status,durationA:l,durationB:n,delta:e,percentChange:f})}const i=new Set(o.value.testCases.map(r));for(const t of s.value.testCases)i.has(r(t))||u.push({title:t.title,location:t.location??null,statusA:t.status,statusB:null,durationA:t.duration??null,durationB:null,delta:null,percentChange:null});return u.sort((t,a)=>Math.abs(a.delta??0)-Math.abs(t.delta??0))}),p=h(()=>{let u=0,i=0,t=0,a=0,l=0,n=0;for(const e of c.value)e.statusA==="passed"&&e.statusB==="failed"?a++:e.statusA==="failed"&&e.statusB==="passed"?l++:e.statusA==="failed"&&e.statusB==="failed"&&n++,e.percentChange!==null&&(e.percentChange<-10?u++:e.percentChange>10?i++:t++);return{improved:u,regressed:i,unchanged:t,newFailures:a,recovered:l,stillFailing:n}});return{comparisonData:c,comparisonSummary:p}}export{C as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{am as Z,ab as Q,v as a,r as q,d as ee,K as ue,a as W,o as b,e as T,f as i,g as d,h as s,j as te,k as f,b as t,c as E,t as C,l as U,F as J,_ as de,x as z,I as pe,m as me,L as fe,C as ve,as as he,at as ge}from"./
|
|
1
|
+
import{am as Z,ab as Q,v as a,r as q,d as ee,K as ue,a as W,o as b,e as T,f as i,g as d,h as s,j as te,k as f,b as t,c as E,t as C,l as U,F as J,_ as de,x as z,I as pe,m as me,L as fe,C as ve,as as he,at as ge}from"./1QWBzxLM.js";import{_ as be}from"./BnUQ3i5l.js";import{u as oe,R as le,L as X,b as _e,_ as ke,l as ye}from"./CEPU6VkU.js";import{_ as xe}from"./B-1zt4pp.js";import{_ as we}from"./e-GZmCeP.js";import{_ as je}from"./B4lvHjBe.js";import{_ as Re}from"./CapSEET7.js";import{_ as Ce}from"./BF5qB58w.js";import{_ as Se}from"./CtQMagSz.js";import{u as ne}from"./Bp31ZRcA.js";import{a as Ie}from"./CU_2YLhT.js";import{b as Le}from"./BOA-I6S9.js";function se(v,o){const c=a(()=>[...new Set(Q(o).map(k=>k.filePath).filter(Boolean))]),r=q([]),u=a(()=>c.value.length>0&&r.value.length===c.value.length);async function _(k){const j=Z(),y=Q(v);if(r.value=[],!(!j||!k||y==null||c.value.length===0))try{const L=await j.invoke("desktop_check_local_specs",{projectId:String(y),files:c.value});r.value=L?.missing??[]}catch{}}return{specFiles:c,missingSpecs:r,wrongFolder:u,checkSpecs:_}}function ae(v){const o=q(null),c=a(()=>!!o.value?.exists&&o.value.playwrightCli==null);async function r(){const u=Z(),_=Q(v);if(o.value=null,!(!u||_==null))try{o.value=await u.invoke("desktop_check_local_env",{projectId:String(_)})}catch{}}return{env:o,playwrightMissing:c,checkEnv:r}}const $e={class:"flex items-center gap-2 min-w-0"},Me={class:"space-y-4"},Pe={key:0,class:"space-y-3"},Ee={class:"text-sm text-muted"},Ue={class:"flex items-center justify-between gap-3"},Oe={class:"flex items-center gap-2 min-w-0 text-sm"},Ve={class:"text-xs break-all"},De={class:"grid grid-cols-2 gap-3"},Fe={class:"text-xs"},Ne={class:"text-xs"},Be={class:"text-xs"},Te={key:0},ze={class:"mt-1"},Ae={class:"space-y-1"},He={class:"flex items-center justify-end w-full gap-2"},qe=ee({__name:"DesktopRunLocallyModal",props:fe({projectId:{},projectLabel:{},cases:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(v){const o=v,c=ue(v,"open"),r=oe(),{link:u,busy:_,pickAndLink:k}=ne(()=>o.projectId),{missingSpecs:j,wrongFolder:y,checkSpecs:L}=se(()=>o.projectId,()=>o.cases),{playwrightMissing:G,checkEnv:A}=ae(()=>o.projectId),$=a(()=>!!u.value?.exists),p=a({get:()=>r.getProjectOptions(o.projectId),set:m=>r.saveProjectOptions(o.projectId,m)}),x=a({get:()=>p.value.mode,set:m=>p.value={...p.value,mode:m}}),F=a({get:()=>p.value.runMode,set:m=>p.value={...p.value,runMode:m}}),g=a({get:()=>p.value.trace,set:m=>p.value={...p.value,trace:m}}),O=a({get:()=>p.value.repeatEach,set:m=>p.value={...p.value,repeatEach:m}}),w=le,N=X;W([c,()=>u.value?.path,$],()=>{c.value&&(L($.value),A())});const M=a(()=>_e(o.cases,p.value)),K=a(()=>M.value.map(m=>m.display).join(`
|
|
2
2
|
`));function P(){r.startRun({projectId:o.projectId,projectLabel:o.projectLabel,cases:o.cases}),c.value=!1}return(m,e)=>{const S=de,V=me,B=xe,R=te,H=we,D=je,l=pe,n=Re,I=Ce,Y=Se;return b(),T(Y,{open:c.value,"onUpdate:open":e[6]||(e[6]=h=>c.value=h),ui:{content:"max-w-2xl"}},{header:i(()=>[d("div",$e,[s(S,{name:"i-lucide-monitor-play",class:"size-5 text-primary shrink-0"}),e[7]||(e[7]=d("h2",{class:"text-base font-semibold truncate"},"Run tests locally",-1)),s(V,{color:"neutral",variant:"subtle",size:"sm"},{default:i(()=>[f(C(v.cases.length)+" test"+C(v.cases.length===1?"":"s"),1)]),_:1})])]),body:i(()=>[d("div",Me,[t($)?(b(),E(J,{key:1},[d("div",Ue,[d("div",Oe,[s(S,{name:"i-lucide-folder-check",class:"size-4 text-success shrink-0"}),d("code",Ve,C(t(u)?.path),1)]),s(R,{size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-folder-search",loading:t(_),onClick:t(k)},{default:i(()=>[...e[9]||(e[9]=[f(" Change ",-1)])]),_:1},8,["loading","onClick"])]),d("div",De,[s(D,{label:"Select tests by",name:"mode"},{default:i(()=>[s(H,{modelValue:t(x),"onUpdate:modelValue":e[0]||(e[0]=h=>z(x)?x.value=h:null),items:t(w),class:"w-full"},null,8,["modelValue","items"])]),_:1}),s(D,{label:"Browser",name:"runMode"},{default:i(()=>[s(H,{modelValue:t(F),"onUpdate:modelValue":e[1]||(e[1]=h=>z(F)?F.value=h:null),items:t(N),class:"w-full"},null,8,["modelValue","items"])]),_:1}),s(D,{label:"Repeat each",name:"repeatEach",description:"Run every test N times — flake reproduction."},{default:i(()=>[s(l,{modelValue:t(O),"onUpdate:modelValue":e[2]||(e[2]=h=>z(O)?O.value=h:null),modelModifiers:{number:!0},type:"number",min:"1",max:"1000",class:"w-full"},null,8,["modelValue"])]),_:1}),s(D,{label:"Trace",name:"trace",description:"Force trace recording (--trace=on)."},{default:i(()=>[s(n,{modelValue:t(g),"onUpdate:modelValue":e[3]||(e[3]=h=>z(g)?g.value=h:null)},null,8,["modelValue"])]),_:1})]),t(G)?(b(),T(B,{key:0,color:"warning",variant:"soft",icon:"i-lucide-package-x",title:"No Playwright installation found"},{description:i(()=>[e[10]||(e[10]=f(" Neither ",-1)),d("code",Fe,C(t(u)?.path),1),e[11]||(e[11]=f(" nor its parents hold a ",-1)),e[12]||(e[12]=d("code",{class:"text-xs"},"node_modules",-1)),e[13]||(e[13]=f(" with Playwright. Run your package manager's install in the checkout first — the app executes that folder's own Playwright. ",-1))]),_:1})):U("",!0),t(j).length>0?(b(),T(B,{key:1,color:"warning",variant:"soft",icon:"i-lucide-file-question",title:t(y)?"None of these tests are in the linked folder":"Some tests are not in the linked folder"},{description:i(()=>[d("p",null,[e[14]||(e[14]=f(" Not found under ",-1)),d("code",Ne,C(t(u)?.path),1),e[15]||(e[15]=f(": ",-1)),d("code",Be,C(t(j)[0]),1),t(j).length>1?(b(),E("span",Te," and "+C(t(j).length-1)+" more",1)):U("",!0),e[16]||(e[16]=f(". ",-1))]),d("p",ze,[t(y)?(b(),E(J,{key:0},[f(" This project is probably linked to a different checkout than the one these tests come from. ")],64)):(b(),E(J,{key:1},[f(" Running anyway is fine when your Playwright config puts them elsewhere. ")],64))]),t(y)?(b(),T(R,{key:0,size:"xs",color:"warning",variant:"soft",icon:"i-lucide-folder-search",class:"mt-2",loading:t(_),onClick:t(k)},{default:i(()=>[...e[17]||(e[17]=[f(" Choose the right folder… ",-1)])]),_:1},8,["loading","onClick"])):U("",!0)]),_:1},8,["title"])):U("",!0),d("div",Ae,[e[18]||(e[18]=d("div",{class:"text-xs text-muted"},"Runs in the linked folder",-1)),s(I,{code:t(K),lang:"sh"},null,8,["code"])]),e[19]||(e[19]=d("p",{class:"text-xs text-muted"}," The run streams into the Local runs tray and keeps going while you browse. Results are reported by the folder's own Playwright config — with the Piwi reporter set up, the new run appears in this app automatically. ",-1))],64)):(b(),E("div",Pe,[d("p",Ee," Link "+C(v.projectLabel||"this project")+" to its local checkout — the folder that contains these tests. Piwi runs that folder's own Playwright with the app's bundled Node, so nothing else needs to be installed. ",1),t(u)&&!t(u).exists?(b(),T(B,{key:0,color:"warning",variant:"soft",icon:"i-lucide-folder-x",title:"The linked folder no longer exists",description:t(u).path},null,8,["description"])):U("",!0),s(R,{icon:"i-lucide-folder-plus",loading:t(_),onClick:t(k)},{default:i(()=>[...e[8]||(e[8]=[f("Choose folder…",-1)])]),_:1},8,["loading","onClick"])]))])]),footer:i(()=>[d("div",He,[s(R,{color:"neutral",variant:"ghost",onClick:e[4]||(e[4]=h=>c.value=!1)},{default:i(()=>[...e[20]||(e[20]=[f("Close",-1)])]),_:1}),s(R,{icon:"i-lucide-play",disabled:!t($)||t(M).length===0||t(_),onClick:e[5]||(e[5]=h=>P())},{default:i(()=>[...e[21]||(e[21]=[f("Run",-1)])]),_:1},8,["disabled"])])]),_:1},8,["open"])}}}),Ge=Object.assign(qe,{__name:"DesktopRunLocallyModal"}),Ke={key:0,class:"inline-flex"},Ye={key:0,class:"absolute -top-1 -right-1 size-2 rounded-full bg-warning"},Je=8e3,Qe=ee({__name:"DesktopRunLocallyButton",props:{projectId:{},projectLabel:{},cases:{},label:{},presetOptions:{}},setup(v){const o=v,c=q(!1);ve(()=>{c.value=!!Z()});const r=oe(),{link:u,busy:_,pickAndLink:k,refresh:j}=ne(()=>o.projectId),{missingSpecs:y,wrongFolder:L,checkSpecs:G}=se(()=>o.projectId,()=>o.cases),{playwrightMissing:A,checkEnv:$}=ae(()=>o.projectId),{copy:p}=Ie(),x=q(!1);W(x,l=>{l||j()});const F=a(()=>c.value&&o.projectId!=null&&o.cases.length>0),g=a(()=>!!u.value?.exists),O=a(()=>!g.value||L.value||A.value);W([c,()=>u.value?.path,g],()=>{c.value&&(G(g.value),$())});const w=a(()=>({...r.getProjectOptions(o.projectId??""),...o.presetOptions})),N=a(()=>r.latestForProject(o.projectId)),M=a(()=>N.value?.status==="running"),K=he({interval:1e3}),P=a(()=>{const l=N.value;return!l||!l.finishedAt||l.status!=="passed"&&l.status!=="failed"?null:K.value-l.finishedAt<Je?l:null}),m=a(()=>`${o.cases.length} test${o.cases.length===1?"":"s"}`),e=a(()=>X.find(l=>l.value===w.value.runMode)?.label??"Headless"),S=a(()=>{const l=N.value;if(l&&M.value)return{label:ye(l),color:"info",icon:void 0,tooltip:"A local run is going — view its output"};if(P.value){const n=P.value.status==="passed";return{label:n?"Passed":P.value.exitCode!=null?`Failed (exit ${P.value.exitCode})`:"Failed",color:n?"success":"error",icon:n?"i-lucide-check":"i-lucide-x",tooltip:"View the run output"}}return g.value?{label:o.label??"Run locally",color:"warning",icon:"i-lucide-monitor-play",tooltip:`Run ${m.value} on this machine · ${e.value} · in ${u.value?.path}`}:{label:o.label??"Run locally",color:"warning",icon:"i-lucide-monitor-play",tooltip:"Link this project to its local checkout to run tests here"}});function V(l){o.projectId!=null&&r.startRun({projectId:o.projectId,projectLabel:o.projectLabel,cases:o.cases,options:{...o.presetOptions,...l},persistOptions:o.presetOptions?!1:void 0})}function B(){if(M.value||P.value){r.trayOpen.value=!0;return}if(O.value){x.value=!0;return}V()}function R(l){o.projectId!=null&&r.saveProjectOptions(o.projectId,l)}const H=[1,5,10,20,50,100],D=a(()=>{const l=[];return g.value?L.value?l.push([{type:"label",label:"Tests not found in the linked folder"},{label:"Choose the right folder…",icon:"i-lucide-folder-search",onSelect:()=>{k()}},{label:"Run anyway",icon:"i-lucide-play",onSelect:()=>V()}]):A.value&&l.push([{type:"label",label:"No Playwright found in the linked folder"},{label:"Re-check after installing",icon:"i-lucide-refresh-cw",onSelect:n=>{n.preventDefault(),$()}},{label:"Run anyway",icon:"i-lucide-play",onSelect:()=>V()}]):l.push([{type:"label",label:u.value?"The linked folder is missing":"No folder linked yet"},{label:"Choose folder…",icon:"i-lucide-folder-plus",onSelect:()=>{k()}}]),g.value&&(l.push([{type:"label",label:`Run ${m.value}`},...X.map(n=>({label:n.label,icon:n.icon,type:"checkbox",checked:w.value.runMode===n.value,disabled:M.value,onSelect:()=>V({runMode:n.value})}))]),l.push([{label:"Record trace",icon:"i-lucide-film",type:"checkbox",checked:w.value.trace,onSelect:n=>{n.preventDefault(),R({trace:!w.value.trace})}},{label:`Repeat each (× ${w.value.repeatEach})`,icon:"i-lucide-repeat",children:H.map(n=>({label:`× ${n}`,type:"checkbox",checked:w.value.repeatEach===n,onSelect:I=>{I.preventDefault(),R({repeatEach:n})}}))},{label:"Select tests by",icon:"i-lucide-list-filter",children:le.map(n=>({label:n.label,type:"checkbox",checked:w.value.mode===n.value,onSelect:I=>{I.preventDefault(),R({mode:n.value})}}))}]),l.push([{label:"Run with options…",icon:"i-lucide-sliders-horizontal",onSelect:()=>x.value=!0},{label:"Copy as command",icon:"i-lucide-clipboard",onSelect:()=>{p(Le(o.cases,{mode:w.value.mode}),{toast:"Command copied"})}}])),l.push([{label:r.activeCount.value>0?`Local runs (${r.activeCount.value} active)`:"Local runs",icon:"i-lucide-terminal",onSelect:()=>r.trayOpen.value=!0}]),g.value&&!L.value&&y.value.length>0&&l[l.length-1].unshift({type:"label",label:`${y.value.length} spec${y.value.length===1?"":"s"} not in the linked folder`}),g.value&&l.push([{type:"label",label:u.value.path,class:"font-mono text-[11px] break-all font-normal"},{label:"Change linked folder…",icon:"i-lucide-folder-search",onSelect:()=>{k()}}]),l});return(l,n)=>{const I=te,Y=be,h=ge,ie=ke,ce=Ge;return t(F)?(b(),E("span",Ke,[s(ie,{size:"xs"},{default:i(()=>[s(Y,{text:t(S).tooltip},{default:i(()=>[s(I,{size:"xs",color:t(S).color,variant:"subtle",icon:t(S).icon,loading:t(M),disabled:t(_),onClick:B},{default:i(()=>[f(C(t(S).label),1)]),_:1},8,["color","icon","loading","disabled"])]),_:1},8,["text"]),s(h,{items:t(D),content:{align:"end"},ui:{content:"min-w-56"}},{default:i(()=>[s(I,{size:"xs",color:t(S).color,variant:"subtle",icon:"i-lucide-chevron-down","aria-label":"Run options",class:"relative"},{default:i(()=>[t(O)?(b(),E("span",Ye)):U("",!0)]),_:1},8,["color"])]),_:1},8,["items"])]),_:1}),s(ce,{open:t(x),"onUpdate:open":n[0]||(n[0]=re=>z(x)?x.value=re:null),"project-id":v.projectId,"project-label":v.projectLabel,cases:v.cases},null,8,["open","project-id","project-label","cases"])])):U("",!0)}}}),rt=Object.assign(Qe,{__name:"DesktopRunLocallyButton"});export{rt as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,o as s,c as t,U as o,l as n,g as r}from"./
|
|
1
|
+
import{d as a,o as s,c as t,U as o,l as n,g as r}from"./1QWBzxLM.js";const l={class:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"},c={key:0,class:"flex flex-wrap items-center gap-2 min-w-0"},i={class:"flex flex-wrap items-center gap-2 min-w-0"},m=a({__name:"FilterToolbar",setup(_){return(e,p)=>(s(),t("div",l,[e.$slots.start?(s(),t("div",c,[o(e.$slots,"start")])):n("",!0),r("div",i,[o(e.$slots,"default")])]))}}),f=Object.assign(m,{__name:"FilterToolbar"});export{f as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Pe}from"./
|
|
1
|
+
import{_ as Pe}from"./BuMX-4RF.js";import{_ as ze}from"./OMI0cmZ0.js";import{_ as Le,a as Ue}from"./BS91Og__.js";import{d as Oe,u as Me,q as Ve,w as ee,s as Be,a as qe,c as p,h as c,f,F as D,E as Fe,v as E,o as s,g as l,b as e,t as m,k as h,e as _,G as Ke,z as I,l as y,m as Je,j as He,H as Ye,x as ue,I as Ge,r as C,J as Qe}from"./1QWBzxLM.js";import{_ as Xe}from"./Bx_lfKHl.js";import{_ as We}from"./Dn_-RkxP.js";import{_ as Ze}from"./bmAf49LT.js";import{_ as et}from"./B4lvHjBe.js";import{_ as tt}from"./DoDo3VF2.js";import{_ as nt}from"./B-1zt4pp.js";import{_ as st}from"./BF5qB58w.js";import{_ as it}from"./CtQMagSz.js";import{f as te}from"./D4mPjHHR.js";import{u as ne}from"./CU_2YLhT.js";import"./CiCUZGFZ.js";import"./B82vqOZe.js";import"./CHz7LJIX.js";import"./AbnDY6Zr.js";import"./Bl0xzETD.js";const ot=/^[a-z0-9][a-z0-9-]{0,63}$/,de=25,ce=new Set(["critical","high","medium","low"]),me=new Set(["failureLikelihood","recentFailure","priority","slowest","fastest"]),at={ids:"idArray",tags:"stringArray",anyTags:"stringArray",owner:"stringArray",priority:"priorityArray",feature:"stringArray",files:"stringArray",suitePath:"string",text:"string",quarantined:"boolean",flaky:"boolean",minPassRate:"rate",maxPassRate:"rate",minAvgDurationMs:"nonNegative",maxAvgDurationMs:"nonNegative",lastStatus:"stringArray",failedInLastRuns:"window",neverRun:"boolean"},rt=new Set(["include","exclude","pins","budget","limit"]);function M(g){return typeof g=="object"&&g!==null&&!Array.isArray(g)}function lt(g,o,r){if(!M(g)){r.push(`${o} must be an object`);return}for(const[u,a]of Object.entries(g)){const k=at[u];if(!k){r.push(`${o}: unknown predicate "${u}"`);continue}switch(k){case"stringArray":!Array.isArray(a)||a.some($=>typeof $!="string")?r.push(`${o}.${u} must be an array of strings`):a.length===0&&r.push(`${o}.${u} must not be empty`);break;case"idArray":se(a,`${o}.${u}`,r);break;case"priorityArray":(!Array.isArray(a)||a.some($=>typeof $!="string"||!ce.has($)))&&r.push(`${o}.${u} must be an array of ${[...ce].join(" / ")}`);break;case"string":(typeof a!="string"||a.trim()==="")&&r.push(`${o}.${u} must be a non-empty string`);break;case"boolean":typeof a!="boolean"&&r.push(`${o}.${u} must be a boolean`);break;case"rate":(typeof a!="number"||!Number.isFinite(a)||a<0||a>1)&&r.push(`${o}.${u} must be a number between 0 and 1`);break;case"nonNegative":(typeof a!="number"||!Number.isFinite(a)||a<0)&&r.push(`${o}.${u} must be a non-negative number`);break;case"window":(typeof a!="number"||!Number.isInteger(a)||a<1||a>de)&&r.push(`${o}.${u} must be an integer between 1 and ${de}`);break}}}function se(g,o,r){(!Array.isArray(g)||g.some(u=>typeof u!="number"||!Number.isInteger(u)||u<=0))&&r.push(`${o} must be an array of positive integer ids`)}function ut(g){const o=[];if(!M(g))return{valid:!1,errors:["definition must be an object"]};for(const u of Object.keys(g))rt.has(u)||o.push(`unknown key "${u}"`);const r=g;for(const u of["include","exclude"]){const a=r[u];if(a!==void 0){if(!Array.isArray(a)){o.push(`${u} must be an array of predicate groups`);continue}a.forEach((k,$)=>lt(k,`${u}[${$}]`,o))}}if(r.pins!==void 0)if(!M(r.pins))o.push("pins must be an object");else{for(const u of Object.keys(r.pins))u!=="add"&&u!=="remove"&&o.push(`pins: unknown key "${u}"`);r.pins.add!==void 0&&se(r.pins.add,"pins.add",o),r.pins.remove!==void 0&&se(r.pins.remove,"pins.remove",o)}if(r.budget!==void 0)if(!M(r.budget))o.push("budget must be an object");else{for(const k of Object.keys(r.budget))k!=="maxTotalDurationMs"&&k!=="rankBy"&&o.push(`budget: unknown key "${k}"`);const u=r.budget.maxTotalDurationMs;u!==void 0&&(typeof u!="number"||!Number.isFinite(u)||u<=0)&&o.push("budget.maxTotalDurationMs must be a positive number");const a=r.budget.rankBy;a!==void 0&&(typeof a!="string"||!me.has(a))&&o.push(`budget.rankBy must be one of ${[...me].join(" / ")}`)}return r.limit!==void 0&&(typeof r.limit!="number"||!Number.isInteger(r.limit)||r.limit<1)&&o.push("limit must be a positive integer"),{valid:o.length===0,errors:o}}const dt=[{key:"failed",name:"Currently failing",description:"Tests whose most recent execution failed or timed out.",definition:{include:[{lastStatus:["failed","timedout","timedOut"]}]}},{key:"quarantine-free",name:"Everything but quarantine",description:"The whole suite minus tests under an active quarantine.",definition:{exclude:[{quarantined:!0}]}}];new Map(dt.map(g=>[g.key,g]));const ct={class:"p-4 space-y-4"},mt={key:0,class:"flex flex-wrap items-center gap-x-4 gap-y-1 text-sm mb-3 pb-3 border-b border-gray-200 dark:border-gray-800"},pt={class:"text-gray-600 dark:text-gray-300"},ft={class:"text-warning-600 dark:text-warning-400 cursor-help underline decoration-dotted"},yt={class:"p-3 max-w-sm space-y-1"},_t={class:"text-xs font-mono space-y-0.5"},gt={key:0,class:"text-xs text-gray-400"},vt={key:1,class:"text-gray-500"},kt={key:3,class:"divide-y divide-gray-200 dark:divide-gray-800"},bt={class:"min-w-0 space-y-1"},ht={class:"flex items-center gap-2 flex-wrap"},xt={class:"font-mono text-sm font-medium"},$t={class:"text-sm text-gray-600 dark:text-gray-300"},wt={key:0,class:"text-xs text-gray-500 dark:text-gray-400"},Ct={class:"flex items-center gap-1 shrink-0"},Tt={key:2,class:"space-y-4"},At={key:0,class:"rounded-lg border border-gray-200 dark:border-gray-800 p-3 space-y-2"},St={class:"flex items-center justify-between"},Dt={class:"text-xs text-gray-500"},jt={class:"flex flex-wrap gap-1"},Nt={class:"opacity-60"},It={key:1,class:"divide-y divide-gray-200 dark:divide-gray-800"},Rt={class:"min-w-0 space-y-0.5"},Et={class:"flex items-center gap-2"},Pt={class:"text-xs text-gray-500"},zt={class:"space-y-4"},Lt={class:"grid grid-cols-1 sm:grid-cols-2 gap-3"},Ut={class:"flex flex-wrap gap-1 mb-2"},Ot={class:"rounded-lg border border-gray-200 dark:border-gray-800 p-3 space-y-2"},Mt={class:"flex items-center justify-between text-sm"},Vt={key:0,class:"text-xs text-gray-500"},Bt={class:"flex items-center gap-4 text-sm"},qt={key:0,class:"text-gray-500"},Ft={key:1,class:"text-xs text-gray-500"},Kt={class:"flex justify-end gap-2 w-full"},Jt={key:1,class:"space-y-3"},Ht={class:"flex items-center gap-4 text-sm"},Yt={key:0,class:"text-gray-500"},Gt={key:0},_n=Oe({__name:"selections",async setup(g){let o,r;const a=Me().params.id,k=Ve(),{data:$}=([o,r]=ee(()=>ne(`/api/projects/${a}`,"$q25QkFCInI")),o=await o,r(),o),{data:pe,refresh:ie,status:fe}=([o,r]=ee(()=>ne(`/api/projects/${a}/selections`,"$DmNPh6yFfJ")),o=await o,r(),o);Be(E(()=>({title:`Selections — ${$.value?.label||$.value?.name||"Project"} — Piwi Dashboard`})));const V=E(()=>pe.value?.items??[]),{data:oe,refresh:ae}=([o,r]=ee(()=>ne(`/api/projects/${a}/selections/analytics`,{lazy:!0},"$AnBQIOTkPH")),o=await o,r(),o),j=E(()=>oe.value?.coverage??null),ye=E(()=>new Map((oe.value?.selections??[]).map(i=>[i.key,i])));function T(i){return ye.value.get(i)}function _e(i){const n=T(i)?.drift;return!n||n.countDelta===0?"drifted":`drifted ${n.countDelta>0?"+":""}${n.countDelta}`}function ge(i){const n=T(i);return!n?.drift||!n.lastRun?"":`Resolves to ${n.resolvedCount} test(s) now; its most recent run recorded ${n.lastRun.recordedCount}`}const ve=[{label:"Smoke by tag",definition:{include:[{tags:["smoke"]}]}},{label:"Critical & stable",definition:{include:[{priority:["critical","high"],minPassRate:.9}]}},{label:"Exclude quarantine",definition:{exclude:[{quarantined:!0}]}},{label:"Recently broken",definition:{include:[{failedInLastRuns:5}]}},{label:"Best 5 minutes",definition:{budget:{maxTotalDurationMs:3e5,rankBy:"failureLikelihood"}}}],N=C(!1),B=C(!1),x=C(null),d=Qe({key:"",name:"",description:"",definitionText:`{
|
|
2
2
|
"include": [{ "tags": ["smoke"] }]
|
|
3
3
|
}`}),A=E(()=>{let i;try{i=JSON.parse(d.definitionText)}catch(Y){return{error:`Not valid JSON: ${Y.message}`}}const n=ut(i);return n.valid?{definition:i}:{error:n.errors.join("; ")}}),q=E(()=>{if(!d.key)return"A key is required";if(!ot.test(d.key))return"Lowercase letters, digits and hyphens only"});function ke(){x.value=null,d.key="",d.name="",d.description="",d.definitionText=`{
|
|
4
4
|
"include": [{ "tags": ["smoke"] }]
|