decocms 4.422.3 → 4.424.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CVtZx7OF.js → AlertCircle-W5I8YW4R.js} +1 -1
- package/dist/client/assets/{AreaChart-BhhKa5WC.js → AreaChart-DGWCvfZx.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BCkbM4b4.js → ArrowLeft-CoetlmPD.js} +1 -1
- package/dist/client/assets/{ArrowRight-BBBInn6h.js → ArrowRight-B6-T90AD.js} +1 -1
- package/dist/client/assets/{ArrowUp-DA3O9Q_5.js → ArrowUp-Bd_AtNgp.js} +1 -1
- package/dist/client/assets/{CartesianChart-Dz5ej5Gk.js → CartesianChart-uPbdCEcC.js} +1 -1
- package/dist/client/assets/{Check-FcxjuFt6.js → Check-0QivlcNy.js} +1 -1
- package/dist/client/assets/{CheckCircle-BO45x9RP.js → CheckCircle-D_bJsyQG.js} +1 -1
- package/dist/client/assets/{ChevronUp-CFC5Ebq0.js → ChevronUp-CzhJ7suW.js} +1 -1
- package/dist/client/assets/{Copy01-C6Pi2Z_V.js → Copy01-Dqk5v2W3.js} +1 -1
- package/dist/client/assets/{CreditCard01-C5pPfXKY.js → CreditCard01-HKMBsj25.js} +1 -1
- package/dist/client/assets/{DotsVertical-BLLrg_XP.js → DotsVertical-Dt97OOeo.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-KVNuaRbI.js → ErrorBarContext-CBQsrfDW.js} +1 -1
- package/dist/client/assets/{Image01-B1u2Kql2.js → Image01-H-e_GJje.js} +1 -1
- package/dist/client/assets/{Key01-ClN_3drg.js → Key01-DS1cuydn.js} +1 -1
- package/dist/client/assets/{Line-CZINWoIp.js → Line-BC5yC-2J.js} +1 -1
- package/dist/client/assets/{Link01-Vtq2lkbp.js → Link01-Dgt626sr.js} +1 -1
- package/dist/client/assets/{LinkExternal01-F44g-br4.js → LinkExternal01-Dlk0nKfP.js} +1 -1
- package/dist/client/assets/{Monitor01-DzDXiiSe.js → Monitor01-DHA0hU52.js} +1 -1
- package/dist/client/assets/{Palette-mWfzFBxF.js → Palette-Cz5AUPN9.js} +1 -1
- package/dist/client/assets/{Plus-KRmPLJ6h.js → Plus-G6ow2MLm.js} +1 -1
- package/dist/client/assets/{SearchMd-V0a6RI0u.js → SearchMd-BVf9Tbqw.js} +1 -1
- package/dist/client/assets/{Sector-DOnsMWPN.js → Sector-CCB9pQmC.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CgMyE5tG.js → ShoppingBag01-B8MyeZ-e.js} +1 -1
- package/dist/client/assets/{Sun-BsSXClq1.js → Sun-C4sxcfO_.js} +1 -1
- package/dist/client/assets/{Tool01-DAEtx7Sx.js → Tool01-DcMZ63HP.js} +1 -1
- package/dist/client/assets/{Trash01-Cakv0Q_K.js → Trash01-BO0o39cY.js} +1 -1
- package/dist/client/assets/{Upload01-CTQz1wiD.js → Upload01-CefHvaCG.js} +1 -1
- package/dist/client/assets/{User01-P9l9chQ8.js → User01-DU_G2Tq0.js} +1 -1
- package/dist/client/assets/{UserSquare-C8CLmWk7.js → UserSquare-Bu4-Qdjg.js} +1 -1
- package/dist/client/assets/{Users01-CNwYnNBC.js → Users01-CJcsigwj.js} +1 -1
- package/dist/client/assets/{X-CKGbxNhB.js → X-h03RFcZk.js} +1 -1
- package/dist/client/assets/{XAxis-BtS9K8bJ.js → XAxis-Bf0SUwAM.js} +1 -1
- package/dist/client/assets/{XClose-YtRhiE3L.js → XClose-ZLANuUvR.js} +1 -1
- package/dist/client/assets/{ZoomOut-C-nvVeIw.js → ZoomOut-CXHZqqpc.js} +1 -1
- package/dist/client/assets/{access-gate-D2ZebaFO.js → access-gate-BLDo8Aw2.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-4toRZZCj.js → add-connection-dialog-DjSYjFta.js} +1 -1
- package/dist/client/assets/{agent-analytics-BcI4DPVo.js → agent-analytics-70k3BSgX.js} +1 -1
- package/dist/client/assets/agent-app-BB46jwce.js +1 -0
- package/dist/client/assets/agent-assets-C9j1IDga.js +1 -0
- package/dist/client/assets/{agent-automation-BJHlaGQQ.js → agent-automation-CHEUWrV_.js} +1 -1
- package/dist/client/assets/{agent-automations-CesK4r4W.js → agent-automations-DwZxOrYF.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CCZJyALU.js → agent-connect-sources-BoEc8W_Z.js} +1 -1
- package/dist/client/assets/agent-deck-BCdndO00.js +1 -0
- package/dist/client/assets/{agent-e2e-DuBrWECi.js → agent-e2e-JVy9xPHj.js} +1 -1
- package/dist/client/assets/{agent-experiments-vLmcxuue.js → agent-experiments-DLGXfsdx.js} +1 -1
- package/dist/client/assets/{agent-file-BjwSU2v3.js → agent-file-BuuborHb.js} +1 -1
- package/dist/client/assets/{agent-git-CFegXvbB.js → agent-git-CG5kj-J1.js} +2 -2
- package/dist/client/assets/{agent-hosting-Bg7A-Ube.js → agent-hosting-CNdcuotN.js} +1 -1
- package/dist/client/assets/{agent-icon-BwVu9Y1n.js → agent-icon-DDAJOUrn.js} +1 -1
- package/dist/client/assets/agent-library-CcQpvJEl.js +1 -0
- package/dist/client/assets/agent-library-file-Be4fArBD.js +1 -0
- package/dist/client/assets/{agent-monitor-dV--q695.js → agent-monitor-cEwREPy0.js} +1 -1
- package/dist/client/assets/agent-overview-cW8UrQF-.js +1 -0
- package/dist/client/assets/agent-settings-kfmE-2zX.js +1 -0
- package/dist/client/assets/{agent-site-editor-DVoJkMOH.js → agent-site-editor-BuNbNXkv.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-CkwJqiLb.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-DyztC_34.js → agent-site-editor-content-oPYgPIfi.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-iKb4i4S0.js → agent-site-editor-preview-Bxl_-tPb.js} +3 -3
- package/dist/client/assets/agent-view-DT8sSuJX.js +1 -0
- package/dist/client/assets/{agent-view-guard-CczFiEQW.js → agent-view-guard-D4EnQ5d7.js} +1 -1
- package/dist/client/assets/{agents-list-Cx-MnAIR.js → agents-list-R6iiUOej.js} +1 -1
- package/dist/client/assets/{ai-providers-aCtxSLrJ.js → ai-providers-DVMyBDdf.js} +1 -1
- package/dist/client/assets/{alert-BMhd1qkv.js → alert-BVj25ral.js} +1 -1
- package/dist/client/assets/{alert-dialog-BIKJBSWY.js → alert-dialog-DXkQ7Ca0.js} +1 -1
- package/dist/client/assets/{analytics-sections-B9AYAPpL.js → analytics-sections-CEwi2MoN.js} +1 -1
- package/dist/client/assets/api-keys-AMpiS3-n.js +1 -0
- package/dist/client/assets/{api-keys-BiSnsj4I.js → api-keys-DPDO886h.js} +1 -1
- package/dist/client/assets/app-editor-CIRWkgt2.js +1 -0
- package/dist/client/assets/{asset-utils-DJ6ftbPl.js → asset-utils-C56r94ca.js} +1 -1
- package/dist/client/assets/{auth-Dy0n9IyK.js → auth-DuH2btxq.js} +1 -1
- package/dist/client/assets/{auth-catchall-CjRy2Hgy.js → auth-catchall-r6Y7hrlb.js} +1 -1
- package/dist/client/assets/{auth-entry-C3yDP8t5.js → auth-entry-COrrSbBo.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DyTMFK4R.js → auth-split-layout-C0oZmhWD.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B-9NlA8S.js → authenticate-and-persist-oauth-BZiJV3dt.js} +1 -1
- package/dist/client/assets/{automation-list-row-BcGgpCA_.js → automation-list-row-oFre_e8d.js} +1 -1
- package/dist/client/assets/{automation-runs-CjxY4TUG.js → automation-runs-BSPiyJjC.js} +1 -1
- package/dist/client/assets/{automations-UCKOjbB9.js → automations-zO3RBGsC.js} +1 -1
- package/dist/client/assets/{autosend-VbZkWu24.js → autosend-BiXCJJ84.js} +1 -1
- package/dist/client/assets/{avatar-CRdtD8pR.js → avatar-DmQG-hQB.js} +1 -1
- package/dist/client/assets/{badge-bFS7pJ24.js → badge-D1Fgp4NK.js} +1 -1
- package/dist/client/assets/{block-document-B_MVuzvl.js → block-document-CrAEa19g.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CKUsc--e.js → blocks-preview-workspace-context-LbzgW_1a.js} +1 -1
- package/dist/client/assets/{buckets-DH_9H2lm.js → buckets-CH-hYTCu.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-B2nzL_xr.js → build-improve-prompt-doc-oWqRrUfD.js} +1 -1
- package/dist/client/assets/{calendar-ehgWJLe7.js → calendar-CvykGNfM.js} +1 -1
- package/dist/client/assets/{capability-load-error-DjYRR0Ds.js → capability-load-error-CuhfXfl5.js} +1 -1
- package/dist/client/assets/category-editor-DvRcX5Gw.js +1 -0
- package/dist/client/assets/{chart-S-xxRWdH.js → chart-C0rHs96w.js} +1 -1
- package/dist/client/assets/{chat-context-DgElWmma.js → chat-context-BMOjz7_x.js} +1 -1
- package/dist/client/assets/{chat-draft-Dm7KATsP.js → chat-draft-zI7t52AM.js} +1 -1
- package/dist/client/assets/{checkbox-DY0rH-TX.js → checkbox-Ds1JdOtW.js} +1 -1
- package/dist/client/assets/{choose-editor-BIPaWgYh.js → choose-editor-BHEehicM.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-CUWSS9Lf.js → claim-phase-copy-CASFunLC.js} +1 -1
- package/dist/client/assets/{cli-auth-success-5WpzIU3O.js → cli-auth-success-D1KoZWdX.js} +1 -1
- package/dist/client/assets/{client-icons-MslZBuS6.js → client-icons-arblMDWm.js} +1 -1
- package/dist/client/assets/{collapsible-CHNqG-q-.js → collapsible-r5oFTjOB.js} +1 -1
- package/dist/client/assets/{collection-detail-PSCqQ-Ir.js → collection-detail-DIs6KPm0.js} +1 -1
- package/dist/client/assets/{collection-display-button-CZEgfpX9.js → collection-display-button-BwXsY4DM.js} +1 -1
- package/dist/client/assets/{collection-search-BnXIXF-r.js → collection-search-BR1v6pag.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-8Z-CE056.js → collection-table-wrapper-CwlBRmeg.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bky3kPsU.js → collection-tabs-BSnxiqyy.js} +1 -1
- package/dist/client/assets/{combobox-CVLqBXTa.js → combobox-BENbjv3g.js} +1 -1
- package/dist/client/assets/{command-CGF9V6Vl.js → command-CbmtoCAJ.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DXACuT5k.js → companion-mcps-section-D9meIYfU.js} +1 -1
- package/dist/client/assets/{companions-core-BnuxEm_5.js → companions-core-DzyeM-yJ.js} +1 -1
- package/dist/client/assets/config-Dfwg9rbN.js +1 -0
- package/dist/client/assets/{connect-CT9ioKHl.js → connect-D1gy-Ek_.js} +1 -1
- package/dist/client/assets/{connect-layout-BOxr1i7G.js → connect-layout-j9llzw1P.js} +1 -1
- package/dist/client/assets/{connection-0cqQcMBd.js → connection-BPXrZQ_h.js} +1 -1
- package/dist/client/assets/{connection-card-CVXElGSe.js → connection-card-B8synrRX.js} +1 -1
- package/dist/client/assets/{connection-detail-hNgr8XT5.js → connection-detail-CdxYZLjB.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-ktc30XoJ.js → connection-form-helpers-BzQl_S_0.js} +1 -1
- package/dist/client/assets/{connections-DmEMDA2h.js → connections-BMQ-xp8s.js} +1 -1
- package/dist/client/assets/context-aGmXQddL.js +1 -0
- package/dist/client/assets/{create-organization-dialog-PFEV7FIE.js → create-organization-dialog-D7L0MOtY.js} +1 -1
- package/dist/client/assets/{decopilot-B7MHJNrn.js → decopilot-ebwmRraL.js} +1 -1
- package/dist/client/assets/{dialog-jyWPb2tC.js → dialog-BlQDNCRy.js} +1 -1
- package/dist/client/assets/{discover-DKjnWS0t.js → discover-C5OhZJdS.js} +1 -1
- package/dist/client/assets/{domain-settings-Dg0qQkrr.js → domain-settings-G76mSgbT.js} +1 -1
- package/dist/client/assets/{download-app-dialog-C5cTfPYs.js → download-app-dialog-CQqbCbsr.js} +1 -1
- package/dist/client/assets/{drawer-CxXWX_ie.js → drawer-BFdQcz5_.js} +1 -1
- package/dist/client/assets/{editor-DOUtwOEV.js → editor-DGMJNrc9.js} +1 -1
- package/dist/client/assets/{empty-state-pG1Fwit8.js → empty-state-B_enrvzQ.js} +1 -1
- package/dist/client/assets/{empty-state-CcOT7JmW.js → empty-state-D06HpvIU.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D5OmU01k.js → extract-connection-data-Dl3xTxEv.js} +1 -1
- package/dist/client/assets/{feature-gate-D_-FZKAB.js → feature-gate-BQjczuAb.js} +1 -1
- package/dist/client/assets/{feature-paywall-BptzLvdT.js → feature-paywall-XjonqNQ8.js} +1 -1
- package/dist/client/assets/{file-explorer-t_EBQrR9.js → file-explorer-Co6ouRcg.js} +1 -1
- package/dist/client/assets/{file-preview-CETzBHJs.js → file-preview-BxZRIdap.js} +1 -1
- package/dist/client/assets/{file-share-button-CSpaHWIA.js → file-share-button-Bzftjj6b.js} +1 -1
- package/dist/client/assets/{file-type-icon-DOStMe7n.js → file-type-icon-BhoTKsUI.js} +1 -1
- package/dist/client/assets/flat-project-D8ikNxfo.js +1 -0
- package/dist/client/assets/{folder-icon-Jx8GrJQl.js → folder-icon-BY0UCKLo.js} +1 -1
- package/dist/client/assets/{form-cnyZOBcC.js → form-UBiksyOk.js} +1 -1
- package/dist/client/assets/{gateway-client-IjNlqnM5.js → gateway-client-C3vqmG_f.js} +1 -1
- package/dist/client/assets/{general-CqUUipBz.js → general-Cf-Vk2t0.js} +1 -1
- package/dist/client/assets/github-repo-scope-ByTYKy_L.js +1 -0
- package/dist/client/assets/home-Dk-H-Rgh.js +1 -0
- package/dist/client/assets/{index-4_tDDtww.js → index-B2gHFpgf.js} +1 -1
- package/dist/client/assets/{index-CAk57bVW.js → index-B4tV0XER.js} +1 -1
- package/dist/client/assets/{index-DYUG2RXM.js → index-BSjhOv-9.js} +1 -1
- package/dist/client/assets/{index-Dd54RIq4.js → index-BVU6INgi.js} +1 -1
- package/dist/client/assets/{index-DwDe_p-O.js → index-ChG1bJU2.js} +3 -3
- package/dist/client/assets/{index-b8fp8LDt.js → index-D3nJxkUH.js} +2 -2
- package/dist/client/assets/{index-eyrB46Vy.js → index-D7rY859O.js} +1 -1
- package/dist/client/assets/{index-BdZDESUI.js → index-DdFsa5v8.js} +1 -1
- package/dist/client/assets/{index-D40dM9_G.js → index-DeLPC3i4.js} +1 -1
- package/dist/client/assets/{index-rpTqXmHS.js → index-DoX5CV5K.js} +1 -1
- package/dist/client/assets/{index-OnxdjRP9.js → index-I6oftDSE.js} +1 -1
- package/dist/client/assets/{index-C39MmaGO.js → index-MerUDJD5.js} +1 -1
- package/dist/client/assets/{index-DYOIplpK.js → index-U5GEJv8d.js} +1 -1
- package/dist/client/assets/{index-DcP5acbo.js → index-nY5F47m3.js} +1 -1
- package/dist/client/assets/{index-redirect-7mEnGUFH.js → index-redirect-DlxdGFcS.js} +1 -1
- package/dist/client/assets/{index-BOY7zOPH.js → index-xblBxAa1.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-gIFPF-Q5.js → infiniteQueryObserver-Pwh-FfBK.js} +1 -1
- package/dist/client/assets/{infra-billing-BA22s6Vk.js → infra-billing-Bi-_75B4.js} +1 -1
- package/dist/client/assets/input-CDSjYLmI.js +17 -0
- package/dist/client/assets/{input-Dhqv4uND.js → input-DooV2Ahl.js} +1 -1
- package/dist/client/assets/{input-DDkZ4YtM.js → input-HiahbJv4.js} +1 -1
- package/dist/client/assets/{integration-icon-BqF75Sx2.js → integration-icon-_VlEmGlM.js} +1 -1
- package/dist/client/assets/{label-CD-3KHsU.js → label-E-Ho38zd.js} +1 -1
- package/dist/client/assets/{last-preview-page-CES2mhUS.js → last-preview-page-0TGtdrIv.js} +1 -1
- package/dist/client/assets/{layout-zn8XiMmQ.js → layout-CQsFF7KX.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CRrvqgvY.js → legacy-agents-deep-Ch9eIyOV.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C5owTiPN.js → legacy-main-redirect-BJLgPBDm.js} +1 -1
- package/dist/client/assets/library-DO_7On4W.js +1 -0
- package/dist/client/assets/{library-tab-LDdmtC3E.js → library-tab-BgrUBzhp.js} +1 -1
- package/dist/client/assets/{login-CzZNFZzZ.js → login-DlP_p-JF.js} +1 -1
- package/dist/client/assets/{markdown-C2wmhZNE.js → markdown-DkTG3TBB.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Bfgic9Y6.js → mcp-app-renderer-BFl5mLWM.js} +1 -1
- package/dist/client/assets/{mcp-oauth-btOLn9Vw.js → mcp-oauth-DyAthDLR.js} +1 -1
- package/dist/client/assets/{members-BjeV4aYZ.js → members-P3seQhum.js} +1 -1
- package/dist/client/assets/{message-templates-37PCcMuN.js → message-templates-C2kkzy11.js} +1 -1
- package/dist/client/assets/{mini-report-page-Cpy1UAyy.js → mini-report-page-D1BdHCur.js} +1 -1
- package/dist/client/assets/{mock-board-BVug8wD7.js → mock-board-P8FZ2bOw.js} +1 -1
- package/dist/client/assets/{monaco-editor-l78K65MA.js → monaco-editor-BUUz_0FG.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bb0H1Rix.js → monitoring-stats-row-1HHAYUXJ.js} +1 -1
- package/dist/client/assets/{multi-select-RaNmnU24.js → multi-select-BDELP8fE.js} +1 -1
- package/dist/client/assets/{mustache-DqgZNsks.js → mustache-CHNfIA4V.js} +1 -1
- package/dist/client/assets/{new-project-dialog-1J2k2mif.js → new-project-dialog-N9VofWxP.js} +1 -1
- package/dist/client/assets/{oauth-callback-W8QHmpa4.js → oauth-callback-BD3H-bPv.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-KD5D3EIS.js → oauth-callback-ai-provider-BbtxCuYl.js} +1 -1
- package/dist/client/assets/{onboarding-cHYr2QVc.js → onboarding-DMvoy6kf.js} +1 -1
- package/dist/client/assets/openai-conversation-DdYcY-b3.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-CkEUPeDa.js → optimistic-project-sidebar-views-B-4bxO4K.js} +1 -1
- package/dist/client/assets/{org-file-open-context-De0SRuVZ.js → org-file-open-context-BDq_L8L7.js} +1 -1
- package/dist/client/assets/{organization-choice-X7ttK6bk.js → organization-choice-LLnKA7aE.js} +1 -1
- package/dist/client/assets/{orgs-xczr9FEW.js → orgs-DZrtLRMd.js} +1 -1
- package/dist/client/assets/{page-seo-form-B_DGL-5l.js → page-seo-form-B40KntW2.js} +1 -1
- package/dist/client/assets/{pair-De735f7F.js → pair-DyRvnZ7H.js} +1 -1
- package/dist/client/assets/{plan-ladder-DOpWTd4w.js → plan-ladder-owjkPam2.js} +1 -1
- package/dist/client/assets/{popover-CrMowaoE.js → popover-D5x-U1ly.js} +1 -1
- package/dist/client/assets/post-calendar-BS93P3AR.js +1 -0
- package/dist/client/assets/{post-editor-DqTAcHZP.js → post-editor-CI-v3BtQ.js} +2 -2
- package/dist/client/assets/{preview-content-DG2TyiDA.js → preview-content-DZ1s59io.js} +1 -1
- package/dist/client/assets/{preview-dialog-CGk8g9sa.js → preview-dialog-BvBDQ6-F.js} +1 -1
- package/dist/client/assets/{profile-DtU4frmg.js → profile-zJAbFxBo.js} +1 -1
- package/dist/client/assets/{project-app-view-Dzxt7FUO.js → project-app-view-Tr091BAq.js} +1 -1
- package/dist/client/assets/{project-feed-i3l9B4EK.js → project-feed-T6AOqdke.js} +1 -1
- package/dist/client/assets/{project-icon-DsbzSgwK.js → project-icon-CrY94bRz.js} +1 -1
- package/dist/client/assets/project-reports--aiovqKr.js +1 -0
- package/dist/client/assets/project-tasks-D4mpTO-l.js +1 -0
- package/dist/client/assets/{projects-Dx-XXRrs.js → projects-6zOOaYlg.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DO7zF9CF.js → projects-empty-state-CHr6cea0.js} +1 -1
- package/dist/client/assets/{prompts-CiuEgK_n.js → prompts-DTj5RRPQ.js} +1 -1
- package/dist/client/assets/{provision-repo-scoped-github-connection-B6zdkC6p.js → provision-repo-scoped-github-connection-lckxpDHD.js} +1 -1
- package/dist/client/assets/record-editor-C4EAuYpF.js +1 -0
- package/dist/client/assets/{redirect-editor-oGDYVob4.js → redirect-editor-f_vC2I6T.js} +1 -1
- package/dist/client/assets/reports-BxpzxB2a.js +1 -0
- package/dist/client/assets/{reports-DUKjGsub.js → reports-CPa8K8oW.js} +1 -1
- package/dist/client/assets/{reports-onboarding-Cn1Pt5RV.js → reports-onboarding-Xlvqj4mR.js} +1 -1
- package/dist/client/assets/{reports-tab-DVHMgSaX.js → reports-tab-XCfr2YZx.js} +2 -2
- package/dist/client/assets/{repositories-DdIRhlQT.js → repositories-u36u5fvZ.js} +1 -1
- package/dist/client/assets/{repository-binding-55R_NO8O.js → repository-binding-DFSnpl0R.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CWfeZJ7D.js → repository-import-picker-CxV4PkyQ.js} +1 -1
- package/dist/client/assets/{repository-picker-CuBjKX0n.js → repository-picker-BlqOm-MJ.js} +1 -1
- package/dist/client/assets/{require-capability-D-8Ab_Tx.js → require-capability-aOpAWwSZ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-JHtblyUI.js → required-auth-layout-DRvuCpsR.js} +1 -1
- package/dist/client/assets/{reset-password-B-zxfe28.js → reset-password-OZJEyJoO.js} +1 -1
- package/dist/client/assets/{resizable-CKFWp7Oe.js → resizable-BcGXSTm5.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-rlvTUfeF.js → resolve-tab-icon-3pvjCLcw.js} +1 -1
- package/dist/client/assets/{review-settings-OjIn4a5N.js → review-settings-BnUb27bw.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-B2vsYy1E.js → rich-text-link-control-NyqSQM2C.js} +1 -1
- package/dist/client/assets/{roles-BEFxXVjZ.js → roles-DTTAdaz-.js} +1 -1
- package/dist/client/assets/route-DDBWMUh7.js +1 -0
- package/dist/client/assets/route-NvLIaPVf.js +1 -0
- package/dist/client/assets/route-mNBWRJSg.js +1 -0
- package/dist/client/assets/{runnable-block-editor-DX7F5x5Z.js → runnable-block-editor-DB7algvI.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-3b2Ggym7.js → sandbox-lifecycle-context-CHzoAJUW.js} +1 -1
- package/dist/client/assets/{schema-NHiqAi8o.js → schema-B6UkojL_.js} +1 -1
- package/dist/client/assets/{scroll-area-COFydPyl.js → scroll-area-ogl0f4_L.js} +1 -1
- package/dist/client/assets/{search-input-DtchHiLr.js → search-input-CDUTIy-8.js} +1 -1
- package/dist/client/assets/{search-toggle-fuY2-Hrd.js → search-toggle-BR54cRkc.js} +1 -1
- package/dist/client/assets/{secret-picker-53Y713pM.js → secret-picker-Ts_Mwr3P.js} +1 -1
- package/dist/client/assets/{secrets-B55lT9Jq.js → secrets-DbCSDEef.js} +1 -1
- package/dist/client/assets/{sections-editor-BQGJ5syj.js → sections-editor-Jh5n4hi9.js} +1 -1
- package/dist/client/assets/{select-CMOLfTUd.js → select-Cm7yNA4g.js} +1 -1
- package/dist/client/assets/{select-model-D3yjsL9p.js → select-model-uQ9U5iwI.js} +1 -1
- package/dist/client/assets/{seo-editor-BHnzEyxm.js → seo-editor-BpIuxylh.js} +1 -1
- package/dist/client/assets/{separator-Hq7O1iJL.js → separator-Cy2PS5xR.js} +1 -1
- package/dist/client/assets/{settings-tab-CZGv2Tk2.js → settings-tab-DiBpt4oT.js} +1 -1
- package/dist/client/assets/{sheet-C50lnPyk.js → sheet-Cl5ZHtDF.js} +1 -1
- package/dist/client/assets/{shell-layout-CdyVKBx2.js → shell-layout-DhbvX157.js} +1 -1
- package/dist/client/assets/{skills-D-nKBqvh.js → skills-6QdP0zY0.js} +1 -1
- package/dist/client/assets/{sso-B0rQBNs2.js → sso-DFRimBF2.js} +1 -1
- package/dist/client/assets/{suggestion-C9LFtFjS.js → suggestion-Cqv2HV7s.js} +1 -1
- package/dist/client/assets/{switch-BDTLPd_5.js → switch-Dpy0BGGT.js} +1 -1
- package/dist/client/assets/{synced-repos-DtyQovA-.js → synced-repos-DYAkVU2g.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-D06mui8p.js → tab-icon-glyph-K-cyMNmt.js} +1 -1
- package/dist/client/assets/{table-DEMhEl9n.js → table-CpzSd0oU.js} +1 -1
- package/dist/client/assets/{tabs-BcDaFfJS.js → tabs-0Iyv-61_.js} +1 -1
- package/dist/client/assets/{task-board-Qc5P6Y-B.js → task-board-DH3h4Dr1.js} +1 -1
- package/dist/client/assets/{task-route-BDuG5mFb.js → task-route-BMfCybOO.js} +1 -1
- package/dist/client/assets/{task-status-gBMnpCuT.js → task-status-BOy5az7q.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CHiAQUS0.js → taskboard-analytics-U1rpV7E1.js} +1 -1
- package/dist/client/assets/tasks-CLq4vM6Z.js +1 -0
- package/dist/client/assets/{tasks-DbomCk4g.js → tasks-DGOCLVZE.js} +1 -1
- package/dist/client/assets/{textarea-DCQxd4Ep.js → textarea-Cs-kg39J.js} +1 -1
- package/dist/client/assets/{thread-analytics-CpoE5ieH.js → thread-analytics-speufZIm.js} +1 -1
- package/dist/client/assets/{thread-button-ehR7Dlp_.js → thread-button-DEB6CyTi.js} +1 -1
- package/dist/client/assets/{thread-intent-CRqPosFZ.js → thread-intent-BE88qyQp.js} +1 -1
- package/dist/client/assets/{thread-route-BrcWXGFH.js → thread-route-BE5sprLz.js} +1 -1
- package/dist/client/assets/{thread-route-CwwNa7rG.js → thread-route-C05ythGW.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CCzVo7LK.js → thread-sheet-body-DGSNqAOF.js} +1 -1
- package/dist/client/assets/{toggle-group-JvUFZ5EE.js → toggle-group-CKSuaauJ.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-B6sD_AsQ.js → toolbar-icon-button-Ddj8hi06.js} +1 -1
- package/dist/client/assets/{tooltip-Bi7JdvkB.js → tooltip-DNXq5NQC.js} +1 -1
- package/dist/client/assets/{track-v0KVSx34.js → track-CI_8TlzP.js} +1 -1
- package/dist/client/assets/{types-C6rRSCQU.js → types-Ulhrp9MO.js} +1 -1
- package/dist/client/assets/{usage-stats-CuEYS-wZ.js → usage-stats-B7tcUIq5.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BtMw9gwm.js → use-ai-providers-JF8SqOOF.js} +1 -1
- package/dist/client/assets/{use-automations-C8zovgC-.js → use-automations-DncSznpz.js} +1 -1
- package/dist/client/assets/{use-autosave-B-NujlgN.js → use-autosave-szR_Fq5G.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-CN6yuxIZ.js → use-chat-layout-state-DCpMMZxe.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CEePh-_4.js → use-connect-companion-BwqO7EA3.js} +1 -1
- package/dist/client/assets/{use-connection-Dow_xwpS.js → use-connection-CTvqDLuq.js} +1 -1
- package/dist/client/assets/{use-copy-COrhGZKC.js → use-copy-dcKlKJsJ.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B140hp4e.js → use-create-virtual-mcp-BN2MIpEF.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-xhHRXAbX.js → use-date-fns-locale-4HWrSHoc.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Djt-umpU.js → use-debounced-autosave-B7fupUso.js} +1 -1
- package/dist/client/assets/{use-debounced-value-B8lQINn7.js → use-debounced-value-CKP9u9KG.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B8qqCrVJ.js → use-deco-credits-CPG4hYFb.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CveMqPsg.js → use-decopilot-events-qHiW0p1_.js} +1 -1
- package/dist/client/assets/{use-delete-connection-SeG3ePOh.js → use-delete-connection-Dikm5L9q.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BUnxG0jx.js → use-deployment-admin-Uie2dm_n.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Caoiz4Wa.js → use-fast-preview-draft-url-BVSZda3a.js} +1 -1
- package/dist/client/assets/{use-file-configs-D3-24XdK.js → use-file-configs-CmJk79gx.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D7ld_EUt.js → use-infinite-scroll-M4Ifk0Id.js} +1 -1
- package/dist/client/assets/{use-join-requests-Bp-z6Voq.js → use-join-requests-Cr5OMhWY.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-Hokx6WHS.js → use-main-panel-tabs-7sM45K_r.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CmbIVFHS.js → use-mcp-auth-status-B7Q0d1M3.js} +1 -1
- package/dist/client/assets/{use-mcp-client-D71dVc6F.js → use-mcp-client-D1zolVZP.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-5J9nyt1f.js → use-mcp-prompts-CXqK-JUB.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CotgwWio.js → use-mcp-tools-ULbfd_2A.js} +1 -1
- package/dist/client/assets/{use-members-DpznZCfa.js → use-members-DjceQbih.js} +1 -1
- package/dist/client/assets/{use-mobile-gFkCJFqu.js → use-mobile-C1Sz5IA3.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CKGWZY5B.js → use-navigate-to-agent-B9IjIXwZ.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-CHpkRyd-.js +1 -0
- package/dist/client/assets/{use-open-billing-url-PTsUxw4z.js → use-open-billing-url-BSxg2hZU.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CV7Jx-D7.js → use-org-auth-client-BV5jhMTD.js} +1 -1
- package/dist/client/assets/{use-org-fs-BA8EDTNB.js → use-org-fs-DHsvLMfF.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BzITnjia.js → use-org-repo-syncs-SMTrpIVP.js} +1 -1
- package/dist/client/assets/{use-org-sso-4TSO8HVM.js → use-org-sso-BGCHYImg.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BX_jzStw.js → use-organization-roles-D7ha2DPC.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DHUs001C.js → use-organization-settings-BGBvwg83.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-D3FhRJpf.js → use-panel-navigate-Bq9qA6eC.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-Bm3KpKbG.js → use-project-native-view-presence-CeFV8LVU.js} +1 -1
- package/dist/client/assets/{use-project-scope-B0nCeJeZ.js → use-project-scope-ehoEOmYH.js} +1 -1
- package/dist/client/assets/{use-releases-BHojzkRf.js → use-releases-B9YGzuro.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-ClFQn1-r.js → use-reports-diagnostic-DtaZsId7.js} +1 -1
- package/dist/client/assets/{use-secrets-CLdLiqbt.js → use-secrets-BqFBRaqm.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-D1HQsXgu.js → use-section-preview-base-FXPbqdPo.js} +1 -1
- package/dist/client/assets/{use-session-runtime-D4ohi0Ue.js → use-session-runtime-1Gf3T1af.js} +1 -1
- package/dist/client/assets/{use-tags-Ct_zjiKI.js → use-tags-4YottFB8.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DMpZjl1x.js → use-task-board-analytics-CIlckJwW.js} +1 -1
- package/dist/client/assets/use-task-board-events-CELlAVyW.js +1 -0
- package/dist/client/assets/{use-task-metadata-C8cu9VOd.js → use-task-metadata-Cg7nHx5b.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DyiU89Jz.js → use-thread-analytics-Bx20tJ_r.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-D6266alc.js → use-thread-outputs-DObw1ANa.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BESYkBal.js +1 -0
- package/dist/client/assets/{useQueries-BTLfD8PB.js → useQueries-DxOGLKaK.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DyzaeZcm.js +1 -0
- package/dist/client/assets/{users-zGePYZ2o.js → users-BACPtv5c.js} +1 -1
- package/dist/client/assets/{utils-BIme68Ov.js → utils-C0CULGC9.js} +1 -1
- package/dist/client/assets/variant-calendar-CrJlfHFb.js +1 -0
- package/dist/client/assets/{variant-matcher-override-BQVeN4Ol.js → variant-matcher-override-BisIppm1.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BzJ8plfm.js → view-mode-toggle-CWajLBUH.js} +1 -1
- package/dist/client/assets/{virtual-mcp-D0krbeEv.js → virtual-mcp-C8NRJMm1.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +9 -7
- package/dist/server/server.js +9 -7
- package/package.json +1 -1
- package/dist/client/assets/agent-app-CDw9NPar.js +0 -1
- package/dist/client/assets/agent-assets-oonhj5GS.js +0 -1
- package/dist/client/assets/agent-deck-BQTunqEK.js +0 -1
- package/dist/client/assets/agent-library-CmLN_5gu.js +0 -1
- package/dist/client/assets/agent-library-file-exMsSt_M.js +0 -1
- package/dist/client/assets/agent-overview-CKjEypvF.js +0 -1
- package/dist/client/assets/agent-settings-j2_eVJKl.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DDFejzkU.js +0 -2
- package/dist/client/assets/agent-view-CBFrWHB9.js +0 -1
- package/dist/client/assets/api-keys-B9-V0bqA.js +0 -1
- package/dist/client/assets/app-editor-DSMfMFFh.js +0 -1
- package/dist/client/assets/category-editor-C7ndb-3d.js +0 -1
- package/dist/client/assets/config-HRkFT4Cj.js +0 -1
- package/dist/client/assets/context-CP59lD4S.js +0 -1
- package/dist/client/assets/flat-project-B7sqVExw.js +0 -1
- package/dist/client/assets/github-repo-scope-C8GSbvaz.js +0 -1
- package/dist/client/assets/home-RbvSpTmv.js +0 -1
- package/dist/client/assets/input-Ch2ik4AP.js +0 -16
- package/dist/client/assets/library-BZeSnq8u.js +0 -1
- package/dist/client/assets/openai-conversation-BIn1UYeU.js +0 -3
- package/dist/client/assets/post-calendar-BWaqiPVX.js +0 -1
- package/dist/client/assets/project-reports-B2OszKpU.js +0 -1
- package/dist/client/assets/project-tasks-BDPijl-K.js +0 -1
- package/dist/client/assets/record-editor-DfoUR1C9.js +0 -1
- package/dist/client/assets/reports-fyqF0S5-.js +0 -1
- package/dist/client/assets/route-BuhReajl.js +0 -1
- package/dist/client/assets/route-CBVJ52nh.js +0 -1
- package/dist/client/assets/route-v5ayl4uV.js +0 -1
- package/dist/client/assets/tasks-4RXJBJM9.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-_HCBNSrv.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CzSAJb3p.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bpkp3-ow.js +0 -1
- package/dist/client/assets/variant-calendar-B6xlCfDG.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ai as It,c as ce,b as me,r as D,j as t,B as Q,l as $t,X as gt,I as At,F as Pt,H as zt,aR as Et,aS as Kt,aT as Ft,G as Ae,t as oe,aE as Ot,h as _e,q as Se,an as Mt,aU as Ye,aV as Rt,ac as Lt,n as Ue,aH as ht,f as Ut}from"./index-b8fp8LDt.js";import{C as Wt}from"./index-BdZDESUI.js";import{b as Ge,I as Vt,a as Gt,_ as Ht,l as Ze,ao as Bt,N as et,ap as Xt,f as Jt,H as Te}from"./agent-icon-BwVu9Y1n.js";import{n as tt}from"./ShoppingBag01-CgMyE5tG.js";import{i as qt}from"./Check-FcxjuFt6.js";import{t as He}from"./ChevronUp-CFC5Ebq0.js";import{d as Qt}from"./UserSquare-C8CLmWk7.js";import{f as Be,b as jt,t as yt}from"./Tool01-DAEtx7Sx.js";import{a as Yt}from"./Image01-B1u2Kql2.js";import{i as Zt}from"./SearchMd-V0a6RI0u.js";import{B as es}from"./badge-bFS7pJ24.js";import{C as bt}from"./checkbox-DY0rH-TX.js";import{S as vt}from"./switch-BDTLPd_5.js";import{a as Ct,b as Nt,P as St}from"./popover-CrMowaoE.js";import{a as ts,e as st,b as ss,f as os,C as ns,c as as}from"./command-CGF9V6Vl.js";import{g as is,s as rs}from"./gateway-client-IjNlqnM5.js";import{u as Xe}from"./use-connection-Dow_xwpS.js";import{u as ls}from"./use-mcp-client-D71dVc6F.js";import{u as cs}from"./use-mcp-tools-CotgwWio.js";import{I as ds}from"./integration-icon-BqF75Sx2.js";import{M as ms}from"./select-model-D3yjsL9p.js";import{u as us}from"./use-ai-providers-BtMw9gwm.js";import{U as fs,b as ps}from"./build-improve-prompt-doc-B2nzL_xr.js";import{a as Fe,c as xs,d as gs}from"./use-automations-C8zovgC-.js";import{b as hs,a as js,t as ys,g as bs}from"./chat-context-DgElWmma.js";import{b as vs,C as Cs,a as Ns}from"./collapsible-CHNqG-q-.js";import{I as ot}from"./input-Dhqv4uND.js";import{b as Ss,T as ks,a as Ts}from"./tooltip-Bi7JdvkB.js";import{a as ws}from"./shell-layout-CdyVKBx2.js";import{i as kt}from"./ArrowLeft-BCkbM4b4.js";import{i as _s}from"./ArrowUp-DA3O9Q_5.js";import{s as Ds}from"./Trash01-Cakv0Q_K.js";import{s as Je}from"./XClose-YtRhiE3L.js";import{u as nt}from"./use-debounced-autosave-Djt-umpU.js";import{T as Is,a as $s}from"./input-DDkZ4YtM.js";import{s as As}from"./Plus-KRmPLJ6h.js";import{i as qe}from"./ZoomOut-C-nvVeIw.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-jyWPb2tC.js";import{b as Ms,a as Rs,T as at}from"./tabs-BcDaFfJS.js";import{a as We}from"./Copy01-C6Pi2Z_V.js";import{M as Ls}from"./monaco-editor-l78K65MA.js";import{A as it,a as rt,b as lt,c as ct,g as dt,d as mt,e as ut,f as ft}from"./alert-dialog-BIKJBSWY.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-CMOLfTUd.js";import{A as Us}from"./automation-runs-CjxY4TUG.js";import{C as Ws}from"./collection-tabs-Bky3kPsU.js";import{a as Vs}from"./use-panel-navigate-D3FhRJpf.js";import"./use-mobile-gFkCJFqu.js";import"./thread-button-ehR7Dlp_.js";import"./use-chat-layout-state-CN6yuxIZ.js";import"./thread-route-CwwNa7rG.js";import"./thread-intent-CRqPosFZ.js";import"./backoff-8mStPHYB.js";import"./task-board-Qc5P6Y-B.js";import"./schema-NHiqAi8o.js";import"./slugify-CEUa2lfQ.js";import"./use-project-scope-B0nCeJeZ.js";import"./repository-binding-55R_NO8O.js";import"./sheet-C50lnPyk.js";import"./X-CKGbxNhB.js";import"./toolbar-icon-button-B6sD_AsQ.js";import"./resizable-CKFWp7Oe.js";import"./AlertCircle-CVtZx7OF.js";import"./ArrowRight-BBBInn6h.js";import"./Palette-mWfzFBxF.js";import"./CheckCircle-BO45x9RP.js";import"./CreditCard01-C5pPfXKY.js";import"./DotsVertical-BLLrg_XP.js";import"./Key01-ClN_3drg.js";import"./Link01-Vtq2lkbp.js";import"./LinkExternal01-F44g-br4.js";import"./Monitor01-DzDXiiSe.js";import"./Sun-BsSXClq1.js";import"./Upload01-CTQz1wiD.js";import"./User01-P9l9chQ8.js";import"./Users01-CNwYnNBC.js";import"./index-OnxdjRP9.js";import"./auth-Dy0n9IyK.js";import"./drawer-CxXWX_ie.js";import"./decopilot-B7MHJNrn.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CRdtD8pR.js";import"./download-app-dialog-C5cTfPYs.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-DcP5acbo.js";import"./autosend-VbZkWu24.js";import"./use-decopilot-events-CveMqPsg.js";import"./location-DBePU4bz.js";import"./use-organization-settings-DHUs001C.js";import"./index-rpTqXmHS.js";import"./project-icon-DsbzSgwK.js";import"./new-project-dialog-1J2k2mif.js";import"./label-CD-3KHsU.js";import"./repository-import-picker-CWfeZJ7D.js";import"./use-navigate-to-agent-CKGWZY5B.js";import"./repository-picker-CuBjKX0n.js";import"./useInfiniteQuery-CzSAJb3p.js";import"./infiniteQueryObserver-gIFPF-Q5.js";import"./collection-search-BnXIXF-r.js";import"./use-debounced-value-B8lQINn7.js";import"./required-auth-layout-JHtblyUI.js";import"./use-org-sso-4TSO8HVM.js";import"./suggestion-C9LFtFjS.js";import"./index-DYUG2RXM.js";import"./form-cnyZOBcC.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-De0SRuVZ.js";import"./use-mcp-prompts-5J9nyt1f.js";import"./use-org-fs-BA8EDTNB.js";import"./editor-DOUtwOEV.js";import"./table-DEMhEl9n.js";import"./empty-state-pG1Fwit8.js";import"./use-infinite-scroll-D7ld_EUt.js";import"./use-members-DpznZCfa.js";import"./use-org-auth-client-CV7Jx-D7.js";import"./task-status-gBMnpCuT.js";import"./thread-sheet-body-CCzVo7LK.js";import"./useSuspenseInfiniteQuery-Bpkp3-ow.js";import"./pair-De735f7F.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-COrhGZKC.js";import"./usage-stats-CuEYS-wZ.js";import"./markdown-C2wmhZNE.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Bfgic9Y6.js";import"./types-C6rRSCQU.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-thread-outputs-D6266alc.js";import"./file-type-icon-DOStMe7n.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Jt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Xt}},Gs=["fast","smart","thinking"];function Hs(a){const e=ce.c(19),{tier:o,onSelect:i}=a,n=me(),[s,l]=D.useState(!1),r=Ve[o].icon;let j;e[0]!==r?(j=t.jsx(r,{size:14,className:"text-muted-foreground"}),e[0]=r,e[1]=j):j=e[1];const u=Ve[o];let c;e[2]!==n||e[3]!==u.labelKey?(c=n(u.labelKey),e[2]=n,e[3]=u.labelKey,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(He,{size:14,className:"text-muted-foreground"}),e[5]=f):f=e[5];let g;e[6]!==j||e[7]!==c?(g=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,c,f]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Gs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:$t("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-muted"),children:[t.jsx(b,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:n(x.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:n(x.subtitleKey)})]}),m===o&&t.jsx(qt,{size:14,className:"text-foreground mt-0.5"})]},m)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let d;e[13]!==h?(d=t.jsx(Nt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:h})}),e[13]=h,e[14]=d):d=e[14];let p;return e[15]!==s||e[16]!==g||e[17]!==d?(p=t.jsxs(St,{open:s,onOpenChange:l,children:[g,d]}),e[15]=s,e[16]=g,e[17]=d,e[18]=p):p=e[18],p}function Bs(a){const e=ce.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=me(),[r,j]=D.useState(n!==null);let u;e[0]!==l?(u=l("automations.automationConfig.modelLabel"),e[0]=l,e[1]=u):u=e[1];let c;e[2]!==u?(c=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:u}),e[2]=u,e[3]=c):c=e[3];let f;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(f=r?t.jsx(D.Suspense,{fallback:t.jsx(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:l("automations.automationConfig.loadingModels")}),children:t.jsx(Xs,{override:n,onOverrideChange:s})}):t.jsx(Hs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=f):f=e[10];let g;e[11]!==s?(g=b=>{j(b),b||s(null)},e[11]=s,e[12]=g):g=e[12];let h;e[13]!==g||e[14]!==r?(h=t.jsx(vt,{checked:r,onCheckedChange:g,className:"cursor-pointer"}),e[13]=g,e[14]=r,e[15]=h):h=e[15];let d;e[16]!==l?(d=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=d):d=e[17];let p;e[18]!==h||e[19]!==d?(p=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,d]}),e[18]=h,e[19]=d,e[20]=p):p=e[20];let m;e[21]!==f||e[22]!==p?(m=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f,p]}),e[21]=f,e[22]=p,e[23]=m):m=e[23];let x;return e[24]!==c||e[25]!==m?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,m]}),e[24]=c,e[25]=m,e[26]=x):x=e[26],x}function Xs(a){const e=ce.c(25),{override:o,onOverrideChange:i}=a,n=me(),s=us(),l=s[0]?.id??null;let r;e[0]!==l||e[1]!==s||e[2]!==o?.credentialId?(r=s.some(x=>x.id===o?.credentialId)?o?.credentialId??null:l,e[0]=l,e[1]=s,e[2]=o?.credentialId,e[3]=r):r=e[3];const[j,u]=D.useState(r);let c;e[4]!==j||e[5]!==l||e[6]!==s?(c=s.some(x=>x.id===j)?j:l,e[4]=j,e[5]=l,e[6]=s,e[7]=c):c=e[7];const f=c;let g;e[8]!==s||e[9]!==o?(g=o&&s.some(x=>x.id===o.credentialId)?{modelId:o.modelId,title:o.title||o.modelId,keyId:o.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=s,e[9]=o,e[10]=g):g=e[10];const h=g;if(s.length===0){let x;e[11]!==n?(x=n("automations.automationConfig.connectAiProviderHint"),e[11]=n,e[12]=x):x=e[12];let b;return e[13]!==x?(b=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:x}),e[13]=x,e[14]=b):b=e[14],b}let d;e[15]!==n?(d=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=d):d=e[16];let p;e[17]!==f||e[18]!==i?(p=x=>{const b=x.keyId??f??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=f,e[18]=i,e[19]=p):p=e[19];let m;return e[20]!==f||e[21]!==h||e[22]!==d||e[23]!==p?(m=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(ms,{variant:"bordered",placeholder:d,model:h,credentialId:f,onCredentialChange:u,onModelChange:p})}),e[20]=f,e[21]=h,e[22]=d,e[23]=p,e[24]=m):m=e[24],m}const Tt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:Be,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:Ge},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:Yt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:It},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Vt}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:Ze,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Gt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Ht},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Zt},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:Ze},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Bt}]},{key:"context",headingKey:"automations.automationConfig.context",icon:et,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:et},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:tt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:tt}]}],Js=Tt.flatMap(a=>a.tools.map(e=>e.name));function qs(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function Qs(a){const e=ce.c(12),{agentId:o,value:i,onChange:n}=a,s=me();let l;e[0]!==s?(l=s("automations.automationConfig.toolsLabel"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==l?(r=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:l}),e[2]=l,e[3]=r):r=e[3];let j;e[4]!==o||e[5]!==n||e[6]!==s||e[7]!==i?(j=o?t.jsx(D.Suspense,{fallback:t.jsxs(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(Be,{size:14}),s("automations.automationConfig.loadingTools")]}),children:t.jsx(Ys,{agentId:o,value:i,onChange:n})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:s("automations.automationConfig.pickAgentFirst")}),e[4]=o,e[5]=n,e[6]=s,e[7]=i,e[8]=j):j=e[8];let u;return e[9]!==r||e[10]!==j?(u=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,j]}),e[9]=r,e[10]=j,e[11]=u):u=e[11],u}function pt(a){const e=ce.c(17),{value:o,checked:i,onToggle:n,title:s,description:l,leading:r}=a;let j;e[0]!==i?(j=t.jsx(bt,{checked:i,className:"pointer-events-none mt-0.5"}),e[0]=i,e[1]=j):j=e[1];let u;e[2]!==r?(u=r&&t.jsx("span",{className:"mt-px shrink-0",children:r}),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==s?(c=t.jsx("span",{className:"truncate text-sm leading-tight",children:s}),e[4]=s,e[5]=c):c=e[5];let f;e[6]!==l?(f=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=f):f=e[7];let g;e[8]!==c||e[9]!==f?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,f]}),e[8]=c,e[9]=f,e[10]=g):g=e[10];let h;return e[11]!==n||e[12]!==j||e[13]!==u||e[14]!==g||e[15]!==o?(h=t.jsxs(ss,{value:o,onSelect:n,className:"items-start gap-2.5 py-2",children:[j,u,g]}),e[11]=n,e[12]=j,e[13]=u,e[14]=g,e[15]=o,e[16]=h):h=e[16],h}function xt(a){const e=ce.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=me(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(ds,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Qt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==o?.title||e[4]!==i||e[5]!==j?(f=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=f):f=e[6];let g;e[7]!==f?(g=t.jsx("span",{className:"truncate",children:f}),e[7]=f,e[8]=g):g=e[8];let h;e[9]!==s||e[10]!==l?(h=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[s,"/",l]}),e[9]=s,e[10]=l,e[11]=h):h=e[11];let d;e[12]!==r?(d=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=d):d=e[13];let p;e[14]!==u||e[15]!==j?(p=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=p):p=e[16];let m;e[17]!==d||e[18]!==p?(m=t.jsx("button",{type:"button",onClick:d,className:"text-[11px] font-medium text-primary hover:underline",children:p}),e[17]=d,e[18]=p,e[19]=m):m=e[19];let x;e[20]!==h||e[21]!==m?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,m]}),e[20]=h,e[21]=m,e[22]=x):x=e[22];let b;return e[23]!==c||e[24]!==g||e[25]!==x?(b=t.jsxs("div",{className:"flex items-center gap-2",children:[c,g,x]}),e[23]=c,e[24]=g,e[25]=x,e[26]=b):b=e[26],b}function Ys(a){const e=ce.c(83),{agentId:o,value:i,onChange:n}=a,s=me(),{org:l}=gt(),[r,j]=D.useState(!1);let u;e[0]!==o||e[1]!==l.id||e[2]!==l.slug?(u={connectionId:o,orgId:l.id,orgSlug:l.slug},e[0]=o,e[1]=l.id,e[2]=l.slug,e[3]=u):u=e[3];const c=ls(u);let f;e[4]!==c?(f={client:c},e[4]=c,e[5]=f):f=e[5];const{data:g,isLoading:h}=cs(f),d=Xe();let p,m,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==d||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const B=new Map(d.map(oo)),H=new Map;for(const T of g?.tools??[]){const A=is(T._meta)??"__other__",q=rs(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:qs(q);H.has(A)||H.set(A,{clientId:A,conn:B.get(A),tools:[]}),H.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...H.values()].sort(so),X=(g?.tools??[]).map(to),G=[...Js,...X],L=i===null?new Set(G):new Set(i),W=G.every(T=>L.has(T)),I=T=>n(G.every(A=>T.has(A))?null:[...T]),Y=T=>{const A=new Set(L);A.has(T)?A.delete(T):A.add(T),I(A)},Z=(T,A)=>{const q=new Set(L);for(const $ of T)A?q.add($):q.delete($);I(q)};b=St,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[26]=J):J=e[26];let ne;e[27]!==W||e[28]!==s?(ne=s(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=s,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(es,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",G.length]});let de;e[30]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(He,{size:14,className:"text-muted-foreground"}),e[30]=de):de=e[30],e[31]!==ne||e[32]!==ue?(w=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[J,ne,ue,de]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",m=os;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(ns,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const fe=W?s("automations.automationConfig.allToolsEnabled",{count:G.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:G.length});let te;e[38]!==fe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=te):te=e[39];let ae;e[40]!==n?(ae=()=>n(null),e[40]=n,e[41]=ae):ae=e[41];let ie;e[42]!==s?(ie=s("automations.automationConfig.selectAll"),e[42]=s,e[43]=ie):ie=e[43];let y;e[44]!==W||e[45]!==ae||e[46]!==ie?(y=t.jsx("button",{type:"button",onClick:ae,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ie}),e[44]=W,e[45]=ae,e[46]=ie,e[47]=y):y=e[47];let O;e[48]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=O):O=e[48];let P;e[49]!==n?(P=()=>n([]),e[49]=n,e[50]=P):P=e[50];const pe=L.size===0;let se;e[51]!==s?(se=s("automations.automationConfig.clear"),e[51]=s,e[52]=se):se=e[52];let re;e[53]!==P||e[54]!==pe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:se}),e[53]=P,e[54]=pe,e[55]=se,e[56]=re):re=e[56];let le;e[57]!==y||e[58]!==re?(le=t.jsxs("div",{className:"flex items-center gap-2",children:[y,O,re]}),e[57]=y,e[58]=re,e[59]=le):le=e[59],e[60]!==te||e[61]!==le?(v=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[te,le]}),e[60]=te,e[61]=le,e[62]=v):v=e[62],p=as,N="max-h-80",z=h?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:s("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(ts,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(eo),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{label:s(T.headingKey),icon:T.icon,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${s($.titleKey)} ${$.name}`,checked:L.has($.name),onToggle:()=>Y($.name),title:s($.titleKey),description:s($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},T.key)}),V.map(T=>{const A=T.tools.map(Zs),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{conn:T.conn,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=d,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=p,e[14]=m,e[15]=x,e[16]=b,e[17]=C,e[18]=w,e[19]=N,e[20]=z,e[21]=_,e[22]=v,e[23]=S,e[24]=k,e[25]=E}else p=e[13],m=e[14],x=e[15],b=e[16],C=e[17],w=e[18],N=e[19],z=e[20],_=e[21],v=e[22],S=e[23],k=e[24],E=e[25];let F;e[63]!==p||e[64]!==N||e[65]!==z?(F=t.jsx(p,{className:N,children:z}),e[63]=p,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==m||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(m,{children:[_,v,F]}),e[67]=m,e[68]=F,e[69]=_,e[70]=v,e[71]=K):K=e[71];let R;e[72]!==x||e[73]!==K||e[74]!==S||e[75]!==k?(R=t.jsx(x,{className:S,align:k,children:K}),e[72]=x,e[73]=K,e[74]=S,e[75]=k,e[76]=R):R=e[76];let U;return e[77]!==b||e[78]!==C||e[79]!==w||e[80]!==R||e[81]!==E?(U=t.jsxs(b,{open:E,onOpenChange:C,children:[w,R]}),e[77]=b,e[78]=C,e[79]=w,e[80]=R,e[81]=E,e[82]=U):U=e[82],U}function Zs(a){return a.name}function eo(a){return a.name}function to(a){return a.name}function so(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function oo(a){return[a.id,a]}function we(a){const e=a.trim().split(/\s+/);return e.length!==5?!1:e.every(o=>/^[\d*/,-]+$/.test(o))}function no(a){if(!a)return"Unknown schedule";const e=a.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return`Every ${o[1]} minutes`;const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return`Every ${i[1]} hours`;const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(n){const r=parseInt(n[1]??"1");return r%7===0?`Every ${r/7} weeks`:`Every ${r} days`}const s=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(s){const r=(s[2]??"0").padStart(2,"0"),j=(s[1]??"0").padStart(2,"0");return`Every day at ${r}:${j} UTC`}const l=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(l){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(l[3]??"0")]??"day",u=(l[2]??"0").padStart(2,"0"),c=(l[1]??"0").padStart(2,"0");return`Every ${j} at ${u}:${c} UTC`}return a}function ao(a,e){const o=Math.max(1,a);switch(e){case"minutes":return o===1?"* * * * *":`*/${o} * * * *`;case"hours":return o===1?"0 * * * *":`0 */${o} * * *`;case"days":return o===1?"0 0 * * *":`0 0 */${o} * *`;case"weeks":return o===1?"0 0 * * 1":`0 0 */${o*7} * *`}}function io(a){const e=a.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return{count:parseInt(o[1]),unit:"minutes"};const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return{count:parseInt(i[1]),unit:"hours"};const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return n?{count:parseInt(n[1]),unit:"days"}:null}function ro(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const lo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function co({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=me(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,f=d=>{o?o(d):u(d)},g=async d=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:d}),oe.success(l("automations.addStarterPopover.starterAdded")),f(!1)}catch(p){const m=p instanceof Error?p.message:l("automations.addStarterPopover.failedAddStarter");oe.error(m)}},h=async()=>{try{const d=await r.mutateAsync({automation_id:a,type:"webhook"});f(!1),d.webhook?s?.(d.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(d){const p=d instanceof Error?d.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(p)}};return t.jsxs(At,{open:c,onOpenChange:f,children:[t.jsx(Pt,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(zt,{align:"end",className:"w-[200px]",children:[t.jsxs(Et,{children:[t.jsxs(Kt,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx(Ft,{className:"w-[160px]",children:lo.map(d=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(d.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:d.label})]},d.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),i?.()},children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.customCron")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),n?.()},children:[t.jsx(qe,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.event")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{h()},disabled:r.isPending,children:[t.jsx(Ge,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.webhook")]})]})]})}function wt(a){const e=ce.c(39),{open:o,onOpenChange:i,url:n,token:s,title:l,description:r}=a,j=l===void 0?"Webhook ready":l,u=r===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":r,c=me(),[f,g]=D.useState(null),[h,d]=D.useState("curl"),[p,m]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,X)=>{try{await navigator.clipboard.writeText(V),g(X),oe.success(c("automations.webhookSecretDialog.copied")),setTimeout(()=>g(null),1500)}catch{oe.error(c("automations.webhookSecretDialog.failedCopy"))}},e[0]=c,e[1]=b):b=e[1];const C=b;let w;e[2]!==p||e[3]!==s||e[4]!==n?(w=n&&s&&p==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=p,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?p==="header"?`curl -X POST "${N}" \\
|
|
1
|
+
import{ai as It,c as ce,b as me,r as D,j as t,B as Q,l as $t,X as gt,I as At,F as Pt,H as zt,aR as Et,aS as Kt,aT as Ft,G as Ae,t as oe,aE as Ot,h as _e,q as Se,an as Mt,aU as Ye,aV as Rt,ac as Lt,n as Ue,aH as ht,f as Ut}from"./index-D3nJxkUH.js";import{C as Wt}from"./index-DdFsa5v8.js";import{b as Ge,I as Vt,a as Gt,_ as Ht,l as Ze,ao as Bt,N as et,ap as Xt,f as Jt,H as Te}from"./agent-icon-DDAJOUrn.js";import{n as tt}from"./ShoppingBag01-B8MyeZ-e.js";import{i as qt}from"./Check-0QivlcNy.js";import{t as He}from"./ChevronUp-CzhJ7suW.js";import{d as Qt}from"./UserSquare-Bu4-Qdjg.js";import{f as Be,b as jt,t as yt}from"./Tool01-DcMZ63HP.js";import{a as Yt}from"./Image01-H-e_GJje.js";import{i as Zt}from"./SearchMd-BVf9Tbqw.js";import{B as es}from"./badge-D1Fgp4NK.js";import{C as bt}from"./checkbox-Ds1JdOtW.js";import{S as vt}from"./switch-Dpy0BGGT.js";import{a as Ct,b as Nt,P as St}from"./popover-D5x-U1ly.js";import{a as ts,e as st,b as ss,f as os,C as ns,c as as}from"./command-CbmtoCAJ.js";import{g as is,s as rs}from"./gateway-client-C3vqmG_f.js";import{u as Xe}from"./use-connection-CTvqDLuq.js";import{u as ls}from"./use-mcp-client-D1zolVZP.js";import{u as cs}from"./use-mcp-tools-ULbfd_2A.js";import{I as ds}from"./integration-icon-_VlEmGlM.js";import{M as ms}from"./select-model-uQ9U5iwI.js";import{u as us}from"./use-ai-providers-JF8SqOOF.js";import{U as fs,b as ps}from"./build-improve-prompt-doc-oWqRrUfD.js";import{a as Fe,c as xs,d as gs}from"./use-automations-DncSznpz.js";import{b as hs,a as js,t as ys,g as bs}from"./chat-context-BMOjz7_x.js";import{b as vs,C as Cs,a as Ns}from"./collapsible-r5oFTjOB.js";import{I as ot}from"./input-DooV2Ahl.js";import{b as Ss,T as ks,a as Ts}from"./tooltip-DNXq5NQC.js";import{a as ws}from"./shell-layout-DhbvX157.js";import{i as kt}from"./ArrowLeft-CoetlmPD.js";import{i as _s}from"./ArrowUp-Bd_AtNgp.js";import{s as Ds}from"./Trash01-BO0o39cY.js";import{s as Je}from"./XClose-ZLANuUvR.js";import{u as nt}from"./use-debounced-autosave-B7fupUso.js";import{T as Is,a as $s}from"./input-HiahbJv4.js";import{s as As}from"./Plus-G6ow2MLm.js";import{i as qe}from"./ZoomOut-CXHZqqpc.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-BlQDNCRy.js";import{b as Ms,a as Rs,T as at}from"./tabs-0Iyv-61_.js";import{a as We}from"./Copy01-Dqk5v2W3.js";import{M as Ls}from"./monaco-editor-BUUz_0FG.js";import{A as it,a as rt,b as lt,c as ct,g as dt,d as mt,e as ut,f as ft}from"./alert-dialog-DXkQ7Ca0.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-Cm7yNA4g.js";import{A as Us}from"./automation-runs-BSPiyJjC.js";import{C as Ws}from"./collection-tabs-BSnxiqyy.js";import{a as Vs}from"./use-panel-navigate-Bq9qA6eC.js";import"./use-mobile-C1Sz5IA3.js";import"./thread-button-DEB6CyTi.js";import"./use-chat-layout-state-DCpMMZxe.js";import"./thread-route-C05ythGW.js";import"./thread-intent-BE88qyQp.js";import"./backoff-8mStPHYB.js";import"./task-board-DH3h4Dr1.js";import"./schema-B6UkojL_.js";import"./slugify-CEUa2lfQ.js";import"./use-project-scope-ehoEOmYH.js";import"./repository-binding-DFSnpl0R.js";import"./sheet-Cl5ZHtDF.js";import"./X-h03RFcZk.js";import"./toolbar-icon-button-Ddj8hi06.js";import"./resizable-BcGXSTm5.js";import"./AlertCircle-W5I8YW4R.js";import"./ArrowRight-B6-T90AD.js";import"./Palette-Cz5AUPN9.js";import"./CheckCircle-D_bJsyQG.js";import"./CreditCard01-HKMBsj25.js";import"./DotsVertical-Dt97OOeo.js";import"./Key01-DS1cuydn.js";import"./Link01-Dgt626sr.js";import"./LinkExternal01-Dlk0nKfP.js";import"./Monitor01-DHA0hU52.js";import"./Sun-C4sxcfO_.js";import"./Upload01-CefHvaCG.js";import"./User01-DU_G2Tq0.js";import"./Users01-CJcsigwj.js";import"./index-I6oftDSE.js";import"./auth-DuH2btxq.js";import"./drawer-BFdQcz5_.js";import"./decopilot-ebwmRraL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-DmQG-hQB.js";import"./download-app-dialog-CQqbCbsr.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-nY5F47m3.js";import"./autosend-BiXCJJ84.js";import"./use-decopilot-events-qHiW0p1_.js";import"./location-DBePU4bz.js";import"./use-organization-settings-BGBvwg83.js";import"./index-DoX5CV5K.js";import"./project-icon-CrY94bRz.js";import"./new-project-dialog-N9VofWxP.js";import"./label-E-Ho38zd.js";import"./repository-import-picker-CxV4PkyQ.js";import"./use-navigate-to-agent-B9IjIXwZ.js";import"./repository-picker-BlqOm-MJ.js";import"./useInfiniteQuery-BESYkBal.js";import"./infiniteQueryObserver-Pwh-FfBK.js";import"./collection-search-BR1v6pag.js";import"./use-debounced-value-CKP9u9KG.js";import"./required-auth-layout-DRvuCpsR.js";import"./use-org-sso-BGCHYImg.js";import"./suggestion-Cqv2HV7s.js";import"./index-BSjhOv-9.js";import"./form-UBiksyOk.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-BDq_L8L7.js";import"./use-mcp-prompts-CXqK-JUB.js";import"./use-org-fs-DHsvLMfF.js";import"./editor-DGMJNrc9.js";import"./table-CpzSd0oU.js";import"./empty-state-B_enrvzQ.js";import"./use-infinite-scroll-M4Ifk0Id.js";import"./use-members-DjceQbih.js";import"./use-org-auth-client-BV5jhMTD.js";import"./task-status-BOy5az7q.js";import"./thread-sheet-body-DGSNqAOF.js";import"./useSuspenseInfiniteQuery-DyzaeZcm.js";import"./pair-DyRvnZ7H.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-dcKlKJsJ.js";import"./usage-stats-B7tcUIq5.js";import"./markdown-DkTG3TBB.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BFl5mLWM.js";import"./types-Ulhrp9MO.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-thread-outputs-DObw1ANa.js";import"./file-type-icon-BhoTKsUI.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Jt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Xt}},Gs=["fast","smart","thinking"];function Hs(a){const e=ce.c(19),{tier:o,onSelect:i}=a,n=me(),[s,l]=D.useState(!1),r=Ve[o].icon;let j;e[0]!==r?(j=t.jsx(r,{size:14,className:"text-muted-foreground"}),e[0]=r,e[1]=j):j=e[1];const u=Ve[o];let c;e[2]!==n||e[3]!==u.labelKey?(c=n(u.labelKey),e[2]=n,e[3]=u.labelKey,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(He,{size:14,className:"text-muted-foreground"}),e[5]=f):f=e[5];let g;e[6]!==j||e[7]!==c?(g=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,c,f]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Gs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:$t("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-muted"),children:[t.jsx(b,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:n(x.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:n(x.subtitleKey)})]}),m===o&&t.jsx(qt,{size:14,className:"text-foreground mt-0.5"})]},m)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let d;e[13]!==h?(d=t.jsx(Nt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:h})}),e[13]=h,e[14]=d):d=e[14];let p;return e[15]!==s||e[16]!==g||e[17]!==d?(p=t.jsxs(St,{open:s,onOpenChange:l,children:[g,d]}),e[15]=s,e[16]=g,e[17]=d,e[18]=p):p=e[18],p}function Bs(a){const e=ce.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=me(),[r,j]=D.useState(n!==null);let u;e[0]!==l?(u=l("automations.automationConfig.modelLabel"),e[0]=l,e[1]=u):u=e[1];let c;e[2]!==u?(c=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:u}),e[2]=u,e[3]=c):c=e[3];let f;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(f=r?t.jsx(D.Suspense,{fallback:t.jsx(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:l("automations.automationConfig.loadingModels")}),children:t.jsx(Xs,{override:n,onOverrideChange:s})}):t.jsx(Hs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=f):f=e[10];let g;e[11]!==s?(g=b=>{j(b),b||s(null)},e[11]=s,e[12]=g):g=e[12];let h;e[13]!==g||e[14]!==r?(h=t.jsx(vt,{checked:r,onCheckedChange:g,className:"cursor-pointer"}),e[13]=g,e[14]=r,e[15]=h):h=e[15];let d;e[16]!==l?(d=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=d):d=e[17];let p;e[18]!==h||e[19]!==d?(p=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,d]}),e[18]=h,e[19]=d,e[20]=p):p=e[20];let m;e[21]!==f||e[22]!==p?(m=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f,p]}),e[21]=f,e[22]=p,e[23]=m):m=e[23];let x;return e[24]!==c||e[25]!==m?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,m]}),e[24]=c,e[25]=m,e[26]=x):x=e[26],x}function Xs(a){const e=ce.c(25),{override:o,onOverrideChange:i}=a,n=me(),s=us(),l=s[0]?.id??null;let r;e[0]!==l||e[1]!==s||e[2]!==o?.credentialId?(r=s.some(x=>x.id===o?.credentialId)?o?.credentialId??null:l,e[0]=l,e[1]=s,e[2]=o?.credentialId,e[3]=r):r=e[3];const[j,u]=D.useState(r);let c;e[4]!==j||e[5]!==l||e[6]!==s?(c=s.some(x=>x.id===j)?j:l,e[4]=j,e[5]=l,e[6]=s,e[7]=c):c=e[7];const f=c;let g;e[8]!==s||e[9]!==o?(g=o&&s.some(x=>x.id===o.credentialId)?{modelId:o.modelId,title:o.title||o.modelId,keyId:o.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=s,e[9]=o,e[10]=g):g=e[10];const h=g;if(s.length===0){let x;e[11]!==n?(x=n("automations.automationConfig.connectAiProviderHint"),e[11]=n,e[12]=x):x=e[12];let b;return e[13]!==x?(b=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:x}),e[13]=x,e[14]=b):b=e[14],b}let d;e[15]!==n?(d=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=d):d=e[16];let p;e[17]!==f||e[18]!==i?(p=x=>{const b=x.keyId??f??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=f,e[18]=i,e[19]=p):p=e[19];let m;return e[20]!==f||e[21]!==h||e[22]!==d||e[23]!==p?(m=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(ms,{variant:"bordered",placeholder:d,model:h,credentialId:f,onCredentialChange:u,onModelChange:p})}),e[20]=f,e[21]=h,e[22]=d,e[23]=p,e[24]=m):m=e[24],m}const Tt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:Be,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:Ge},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:Yt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:It},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Vt}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:Ze,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Gt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Ht},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Zt},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:Ze},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Bt}]},{key:"context",headingKey:"automations.automationConfig.context",icon:et,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:et},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:tt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:tt}]}],Js=Tt.flatMap(a=>a.tools.map(e=>e.name));function qs(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function Qs(a){const e=ce.c(12),{agentId:o,value:i,onChange:n}=a,s=me();let l;e[0]!==s?(l=s("automations.automationConfig.toolsLabel"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==l?(r=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:l}),e[2]=l,e[3]=r):r=e[3];let j;e[4]!==o||e[5]!==n||e[6]!==s||e[7]!==i?(j=o?t.jsx(D.Suspense,{fallback:t.jsxs(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(Be,{size:14}),s("automations.automationConfig.loadingTools")]}),children:t.jsx(Ys,{agentId:o,value:i,onChange:n})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:s("automations.automationConfig.pickAgentFirst")}),e[4]=o,e[5]=n,e[6]=s,e[7]=i,e[8]=j):j=e[8];let u;return e[9]!==r||e[10]!==j?(u=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,j]}),e[9]=r,e[10]=j,e[11]=u):u=e[11],u}function pt(a){const e=ce.c(17),{value:o,checked:i,onToggle:n,title:s,description:l,leading:r}=a;let j;e[0]!==i?(j=t.jsx(bt,{checked:i,className:"pointer-events-none mt-0.5"}),e[0]=i,e[1]=j):j=e[1];let u;e[2]!==r?(u=r&&t.jsx("span",{className:"mt-px shrink-0",children:r}),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==s?(c=t.jsx("span",{className:"truncate text-sm leading-tight",children:s}),e[4]=s,e[5]=c):c=e[5];let f;e[6]!==l?(f=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=f):f=e[7];let g;e[8]!==c||e[9]!==f?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,f]}),e[8]=c,e[9]=f,e[10]=g):g=e[10];let h;return e[11]!==n||e[12]!==j||e[13]!==u||e[14]!==g||e[15]!==o?(h=t.jsxs(ss,{value:o,onSelect:n,className:"items-start gap-2.5 py-2",children:[j,u,g]}),e[11]=n,e[12]=j,e[13]=u,e[14]=g,e[15]=o,e[16]=h):h=e[16],h}function xt(a){const e=ce.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=me(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(ds,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Qt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==o?.title||e[4]!==i||e[5]!==j?(f=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=f):f=e[6];let g;e[7]!==f?(g=t.jsx("span",{className:"truncate",children:f}),e[7]=f,e[8]=g):g=e[8];let h;e[9]!==s||e[10]!==l?(h=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[s,"/",l]}),e[9]=s,e[10]=l,e[11]=h):h=e[11];let d;e[12]!==r?(d=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=d):d=e[13];let p;e[14]!==u||e[15]!==j?(p=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=p):p=e[16];let m;e[17]!==d||e[18]!==p?(m=t.jsx("button",{type:"button",onClick:d,className:"text-[11px] font-medium text-primary hover:underline",children:p}),e[17]=d,e[18]=p,e[19]=m):m=e[19];let x;e[20]!==h||e[21]!==m?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,m]}),e[20]=h,e[21]=m,e[22]=x):x=e[22];let b;return e[23]!==c||e[24]!==g||e[25]!==x?(b=t.jsxs("div",{className:"flex items-center gap-2",children:[c,g,x]}),e[23]=c,e[24]=g,e[25]=x,e[26]=b):b=e[26],b}function Ys(a){const e=ce.c(83),{agentId:o,value:i,onChange:n}=a,s=me(),{org:l}=gt(),[r,j]=D.useState(!1);let u;e[0]!==o||e[1]!==l.id||e[2]!==l.slug?(u={connectionId:o,orgId:l.id,orgSlug:l.slug},e[0]=o,e[1]=l.id,e[2]=l.slug,e[3]=u):u=e[3];const c=ls(u);let f;e[4]!==c?(f={client:c},e[4]=c,e[5]=f):f=e[5];const{data:g,isLoading:h}=cs(f),d=Xe();let p,m,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==d||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const B=new Map(d.map(oo)),H=new Map;for(const T of g?.tools??[]){const A=is(T._meta)??"__other__",q=rs(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:qs(q);H.has(A)||H.set(A,{clientId:A,conn:B.get(A),tools:[]}),H.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...H.values()].sort(so),X=(g?.tools??[]).map(to),G=[...Js,...X],L=i===null?new Set(G):new Set(i),W=G.every(T=>L.has(T)),I=T=>n(G.every(A=>T.has(A))?null:[...T]),Y=T=>{const A=new Set(L);A.has(T)?A.delete(T):A.add(T),I(A)},Z=(T,A)=>{const q=new Set(L);for(const $ of T)A?q.add($):q.delete($);I(q)};b=St,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[26]=J):J=e[26];let ne;e[27]!==W||e[28]!==s?(ne=s(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=s,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(es,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",G.length]});let de;e[30]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(He,{size:14,className:"text-muted-foreground"}),e[30]=de):de=e[30],e[31]!==ne||e[32]!==ue?(w=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[J,ne,ue,de]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",m=os;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(ns,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const fe=W?s("automations.automationConfig.allToolsEnabled",{count:G.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:G.length});let te;e[38]!==fe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=te):te=e[39];let ae;e[40]!==n?(ae=()=>n(null),e[40]=n,e[41]=ae):ae=e[41];let ie;e[42]!==s?(ie=s("automations.automationConfig.selectAll"),e[42]=s,e[43]=ie):ie=e[43];let y;e[44]!==W||e[45]!==ae||e[46]!==ie?(y=t.jsx("button",{type:"button",onClick:ae,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ie}),e[44]=W,e[45]=ae,e[46]=ie,e[47]=y):y=e[47];let O;e[48]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=O):O=e[48];let P;e[49]!==n?(P=()=>n([]),e[49]=n,e[50]=P):P=e[50];const pe=L.size===0;let se;e[51]!==s?(se=s("automations.automationConfig.clear"),e[51]=s,e[52]=se):se=e[52];let re;e[53]!==P||e[54]!==pe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:se}),e[53]=P,e[54]=pe,e[55]=se,e[56]=re):re=e[56];let le;e[57]!==y||e[58]!==re?(le=t.jsxs("div",{className:"flex items-center gap-2",children:[y,O,re]}),e[57]=y,e[58]=re,e[59]=le):le=e[59],e[60]!==te||e[61]!==le?(v=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[te,le]}),e[60]=te,e[61]=le,e[62]=v):v=e[62],p=as,N="max-h-80",z=h?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:s("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(ts,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(eo),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{label:s(T.headingKey),icon:T.icon,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${s($.titleKey)} ${$.name}`,checked:L.has($.name),onToggle:()=>Y($.name),title:s($.titleKey),description:s($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},T.key)}),V.map(T=>{const A=T.tools.map(Zs),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{conn:T.conn,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=d,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=p,e[14]=m,e[15]=x,e[16]=b,e[17]=C,e[18]=w,e[19]=N,e[20]=z,e[21]=_,e[22]=v,e[23]=S,e[24]=k,e[25]=E}else p=e[13],m=e[14],x=e[15],b=e[16],C=e[17],w=e[18],N=e[19],z=e[20],_=e[21],v=e[22],S=e[23],k=e[24],E=e[25];let F;e[63]!==p||e[64]!==N||e[65]!==z?(F=t.jsx(p,{className:N,children:z}),e[63]=p,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==m||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(m,{children:[_,v,F]}),e[67]=m,e[68]=F,e[69]=_,e[70]=v,e[71]=K):K=e[71];let R;e[72]!==x||e[73]!==K||e[74]!==S||e[75]!==k?(R=t.jsx(x,{className:S,align:k,children:K}),e[72]=x,e[73]=K,e[74]=S,e[75]=k,e[76]=R):R=e[76];let U;return e[77]!==b||e[78]!==C||e[79]!==w||e[80]!==R||e[81]!==E?(U=t.jsxs(b,{open:E,onOpenChange:C,children:[w,R]}),e[77]=b,e[78]=C,e[79]=w,e[80]=R,e[81]=E,e[82]=U):U=e[82],U}function Zs(a){return a.name}function eo(a){return a.name}function to(a){return a.name}function so(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function oo(a){return[a.id,a]}function we(a){const e=a.trim().split(/\s+/);return e.length!==5?!1:e.every(o=>/^[\d*/,-]+$/.test(o))}function no(a){if(!a)return"Unknown schedule";const e=a.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return`Every ${o[1]} minutes`;const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return`Every ${i[1]} hours`;const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(n){const r=parseInt(n[1]??"1");return r%7===0?`Every ${r/7} weeks`:`Every ${r} days`}const s=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(s){const r=(s[2]??"0").padStart(2,"0"),j=(s[1]??"0").padStart(2,"0");return`Every day at ${r}:${j} UTC`}const l=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(l){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(l[3]??"0")]??"day",u=(l[2]??"0").padStart(2,"0"),c=(l[1]??"0").padStart(2,"0");return`Every ${j} at ${u}:${c} UTC`}return a}function ao(a,e){const o=Math.max(1,a);switch(e){case"minutes":return o===1?"* * * * *":`*/${o} * * * *`;case"hours":return o===1?"0 * * * *":`0 */${o} * * *`;case"days":return o===1?"0 0 * * *":`0 0 */${o} * *`;case"weeks":return o===1?"0 0 * * 1":`0 0 */${o*7} * *`}}function io(a){const e=a.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return{count:parseInt(o[1]),unit:"minutes"};const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return{count:parseInt(i[1]),unit:"hours"};const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return n?{count:parseInt(n[1]),unit:"days"}:null}function ro(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const lo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function co({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=me(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,f=d=>{o?o(d):u(d)},g=async d=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:d}),oe.success(l("automations.addStarterPopover.starterAdded")),f(!1)}catch(p){const m=p instanceof Error?p.message:l("automations.addStarterPopover.failedAddStarter");oe.error(m)}},h=async()=>{try{const d=await r.mutateAsync({automation_id:a,type:"webhook"});f(!1),d.webhook?s?.(d.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(d){const p=d instanceof Error?d.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(p)}};return t.jsxs(At,{open:c,onOpenChange:f,children:[t.jsx(Pt,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(zt,{align:"end",className:"w-[200px]",children:[t.jsxs(Et,{children:[t.jsxs(Kt,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx(Ft,{className:"w-[160px]",children:lo.map(d=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(d.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:d.label})]},d.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),i?.()},children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.customCron")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),n?.()},children:[t.jsx(qe,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.event")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{h()},disabled:r.isPending,children:[t.jsx(Ge,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.webhook")]})]})]})}function wt(a){const e=ce.c(39),{open:o,onOpenChange:i,url:n,token:s,title:l,description:r}=a,j=l===void 0?"Webhook ready":l,u=r===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":r,c=me(),[f,g]=D.useState(null),[h,d]=D.useState("curl"),[p,m]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,X)=>{try{await navigator.clipboard.writeText(V),g(X),oe.success(c("automations.webhookSecretDialog.copied")),setTimeout(()=>g(null),1500)}catch{oe.error(c("automations.webhookSecretDialog.failedCopy"))}},e[0]=c,e[1]=b):b=e[1];const C=b;let w;e[2]!==p||e[3]!==s||e[4]!==n?(w=n&&s&&p==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=p,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?p==="header"?`curl -X POST "${N}" \\
|
|
2
2
|
-H "Authorization: Bearer ${s}" \\
|
|
3
3
|
-H "Content-Type: application/json" \\
|
|
4
4
|
-d '{"hello":"world"}'`:`curl -X POST "${N}" \\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,b as K,r as W,j as e,n as m,q as O,B as H,aH as Q}from"./index-
|
|
1
|
+
import{c as S,b as K,r as W,j as e,n as m,q as O,B as H,aH as Q}from"./index-D3nJxkUH.js";import{C as U}from"./index-DdFsa5v8.js";import{s as X}from"./Plus-G6ow2MLm.js";import{W as Y}from"./agent-icon-DDAJOUrn.js";import{i as V}from"./ZoomOut-CXHZqqpc.js";import{S as Z}from"./search-input-CDUTIy-8.js";import{E as $}from"./empty-state-B_enrvzQ.js";import{u as tt,a as et,b as it}from"./use-automations-DncSznpz.js";import{a as ot}from"./use-panel-navigate-Bq9qA6eC.js";import{A as st}from"./automation-list-row-oFre_e8d.js";import{b as rt}from"./thread-route-C05ythGW.js";import"./use-mobile-C1Sz5IA3.js";import"./thread-button-DEB6CyTi.js";import"./UserSquare-Bu4-Qdjg.js";import"./Image01-H-e_GJje.js";import"./use-chat-layout-state-DCpMMZxe.js";import"./thread-intent-BE88qyQp.js";import"./use-mcp-client-D1zolVZP.js";import"./auth-DuH2btxq.js";import"./backoff-8mStPHYB.js";import"./task-board-DH3h4Dr1.js";import"./schema-B6UkojL_.js";import"./slugify-CEUa2lfQ.js";import"./use-project-scope-ehoEOmYH.js";import"./repository-binding-DFSnpl0R.js";import"./sheet-Cl5ZHtDF.js";import"./X-h03RFcZk.js";import"./tooltip-DNXq5NQC.js";import"./index-DoX5CV5K.js";import"./toolbar-icon-button-Ddj8hi06.js";import"./shell-layout-DhbvX157.js";import"./avatar-DmQG-hQB.js";import"./User01-DU_G2Tq0.js";import"./Palette-Cz5AUPN9.js";import"./XClose-ZLANuUvR.js";import"./download-app-dialog-CQqbCbsr.js";import"./dialog-BlQDNCRy.js";import"./Check-0QivlcNy.js";import"./Copy01-Dqk5v2W3.js";import"./CheckCircle-D_bJsyQG.js";import"./Monitor01-DHA0hU52.js";import"./Tool01-DcMZ63HP.js";import"./command-CbmtoCAJ.js";import"./index-I6oftDSE.js";import"./SearchMd-BVf9Tbqw.js";import"./integration-icon-_VlEmGlM.js";import"./project-icon-CrY94bRz.js";import"./new-project-dialog-N9VofWxP.js";import"./ArrowLeft-CoetlmPD.js";import"./input-DooV2Ahl.js";import"./label-E-Ho38zd.js";import"./repository-import-picker-CxV4PkyQ.js";import"./use-navigate-to-agent-B9IjIXwZ.js";import"./repository-picker-BlqOm-MJ.js";import"./LinkExternal01-Dlk0nKfP.js";import"./useInfiniteQuery-BESYkBal.js";import"./infiniteQueryObserver-Pwh-FfBK.js";import"./collection-search-BR1v6pag.js";import"./ShoppingBag01-B8MyeZ-e.js";import"./use-debounced-value-CKP9u9KG.js";import"./use-organization-settings-BGBvwg83.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DRvuCpsR.js";import"./autosend-BiXCJJ84.js";import"./use-org-sso-BGCHYImg.js";import"./resizable-BcGXSTm5.js";import"./AlertCircle-W5I8YW4R.js";import"./ArrowUp-Bd_AtNgp.js";import"./ArrowRight-B6-T90AD.js";import"./ChevronUp-CzhJ7suW.js";import"./CreditCard01-HKMBsj25.js";import"./DotsVertical-Dt97OOeo.js";import"./Key01-DS1cuydn.js";import"./Link01-Dgt626sr.js";import"./Sun-C4sxcfO_.js";import"./Trash01-BO0o39cY.js";import"./Upload01-CefHvaCG.js";import"./Users01-CJcsigwj.js";import"./alert-dialog-DXkQ7Ca0.js";function nt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function mt(o){const t=S.c(45),{virtualMcpId:r}=o,i=K(),{openPanel:n}=ot(),{data:q,error:D}=tt(r),b=q===void 0?[]:q,{create:y}=et(),[_,F]=W.useState("");if(D&&nt(D)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==n?(j=()=>n("settings"),t[5]=n,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(H,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let N;return t[12]!==x||t[13]!==h||t[14]!==C?(N=e.jsx(m,{children:e.jsx(m.Content,{children:e.jsx(m.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=N):N=t[15],N}const G=_.toLowerCase(),M=b.filter(s=>s.name.toLowerCase().includes(G));let w;t[16]!==n?(w=s=>n(`automation:${s}`),t[16]=n,t[17]=w):w=t[17];const B=w,R=async()=>{if(y.isPending)return;O("automation_new_clicked",{virtual_mcp_id:r,existing_count:b.length});const s=await y.mutateAsync(it(r));B(s.id)},J=y.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(X,{size:14}),t[18]=A):A=t[18];let a;t[19]!==i?(a=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=a):a=t[20];let L;t[21]!==y.isPending||t[22]!==R||t[23]!==a?(L=e.jsxs(H,{size:"sm",onClick:R,disabled:J,children:[A,a]}),t[21]=y.isPending,t[22]=R,t[23]=a,t[24]=L):L=t[24];const P=L,T=m,E=m,k=m;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==P||t[28]!==l?(c=e.jsx(m.Title,{actions:P,children:l}),t[27]=P,t[28]=l,t[29]=c):c=t[29];const z=b.length>0&&e.jsx(Z,{value:_,onChange:F,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[30]!==z?(p=e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:z}),t[30]=z,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const I=b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(V,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:!1})}):M.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(V,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:M.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==E.Content?(f=e.jsx(E.Content,{children:d}),t[39]=d,t[40]=E.Content,t[41]=f):f=t[41];let v;return t[42]!==T||t[43]!==f?(v=e.jsx(T,{children:f}),t[42]=T,t[43]=f,t[44]=v):v=t[44],v}function at(o){const t=S.c(3),{virtualMcpId:r}=o;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(Q,{}),t[0]=i):i=t[0];let n;return t[1]!==r?(n=e.jsx(W.Suspense,{fallback:i,children:e.jsx(mt,{virtualMcpId:r})}),t[1]=r,t[2]=n):n=t[2],n}function lt(){const o=S.c(2),t=rt();let r;return o[0]!==t?(r=e.jsx(at,{virtualMcpId:t}),o[0]=t,o[1]=r):r=o[1],r}function Ie(){const o=S.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(U.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{Ie as default};
|
package/dist/client/assets/{agent-connect-sources-CCZJyALU.js → agent-connect-sources-BoEc8W_Z.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,j as i,r as _,E as F,b as w,X as L,W as U,z as W,e as $}from"./index-
|
|
1
|
+
import{c as M,j as i,r as _,E as F,b as w,X as L,W as U,z as W,e as $}from"./index-D3nJxkUH.js";import{C as D}from"./index-DdFsa5v8.js";import{u as B}from"./use-mcp-client-D1zolVZP.js";import{C as z,a as H}from"./companion-mcps-section-D9meIYfU.js";import{c as K}from"./use-connect-companion-BwqO7EA3.js";import{C as v,a as X}from"./connect-layout-j9llzw1P.js";import{p as q}from"./self-tool-result-8OxPN9Nm.js";import{a as G}from"./use-panel-navigate-Bq9qA6eC.js";import"./use-mobile-C1Sz5IA3.js";import"./thread-button-DEB6CyTi.js";import"./agent-icon-DDAJOUrn.js";import"./AlertCircle-W5I8YW4R.js";import"./Tool01-DcMZ63HP.js";import"./ArrowUp-Bd_AtNgp.js";import"./ArrowLeft-CoetlmPD.js";import"./ArrowRight-B6-T90AD.js";import"./ShoppingBag01-B8MyeZ-e.js";import"./ZoomOut-CXHZqqpc.js";import"./Palette-Cz5AUPN9.js";import"./CheckCircle-D_bJsyQG.js";import"./Check-0QivlcNy.js";import"./ChevronUp-CzhJ7suW.js";import"./UserSquare-Bu4-Qdjg.js";import"./Copy01-Dqk5v2W3.js";import"./CreditCard01-HKMBsj25.js";import"./DotsVertical-Dt97OOeo.js";import"./Image01-H-e_GJje.js";import"./XClose-ZLANuUvR.js";import"./Key01-DS1cuydn.js";import"./Link01-Dgt626sr.js";import"./LinkExternal01-Dlk0nKfP.js";import"./Monitor01-DHA0hU52.js";import"./Sun-C4sxcfO_.js";import"./Plus-G6ow2MLm.js";import"./SearchMd-BVf9Tbqw.js";import"./Trash01-BO0o39cY.js";import"./Upload01-CefHvaCG.js";import"./User01-DU_G2Tq0.js";import"./Users01-CJcsigwj.js";import"./X-h03RFcZk.js";import"./use-chat-layout-state-DCpMMZxe.js";import"./thread-route-C05ythGW.js";import"./thread-intent-BE88qyQp.js";import"./backoff-8mStPHYB.js";import"./task-board-DH3h4Dr1.js";import"./schema-B6UkojL_.js";import"./slugify-CEUa2lfQ.js";import"./use-project-scope-ehoEOmYH.js";import"./repository-binding-DFSnpl0R.js";import"./sheet-Cl5ZHtDF.js";import"./tooltip-DNXq5NQC.js";import"./index-DoX5CV5K.js";import"./toolbar-icon-button-Ddj8hi06.js";import"./shell-layout-DhbvX157.js";import"./avatar-DmQG-hQB.js";import"./download-app-dialog-CQqbCbsr.js";import"./dialog-BlQDNCRy.js";import"./command-CbmtoCAJ.js";import"./index-I6oftDSE.js";import"./integration-icon-_VlEmGlM.js";import"./project-icon-CrY94bRz.js";import"./new-project-dialog-N9VofWxP.js";import"./input-DooV2Ahl.js";import"./label-E-Ho38zd.js";import"./repository-import-picker-CxV4PkyQ.js";import"./use-navigate-to-agent-B9IjIXwZ.js";import"./repository-picker-BlqOm-MJ.js";import"./useInfiniteQuery-BESYkBal.js";import"./infiniteQueryObserver-Pwh-FfBK.js";import"./collection-search-BR1v6pag.js";import"./use-debounced-value-CKP9u9KG.js";import"./use-organization-settings-BGBvwg83.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DRvuCpsR.js";import"./autosend-BiXCJJ84.js";import"./use-org-sso-BGCHYImg.js";import"./resizable-BcGXSTm5.js";import"./auth-DuH2btxq.js";import"./site-url-en5df9c-.js";import"./companions-core-DzyeM-yJ.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-ByTYKy_L.js";import"./form-UBiksyOk.js";import"./provision-repo-scoped-github-connection-lckxpDHD.js";import"./useQueries-DxOGLKaK.js";import"./authenticate-and-persist-oauth-BZiJV3dt.js";import"./mcp-oauth-DyAthDLR.js";import"./track-CI_8TlzP.js";import"./extract-connection-data-Dl3xTxEv.js";import"./connection-BPXrZQ_h.js";function J(o){const t=M.c(7),{onClose:l}=o,n=w();let r;t[0]!==n?(r=n("routes.reportsOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let e;t[2]!==r?(e=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=e):e=t[3];let s;return t[4]!==l||t[5]!==e?(s=i.jsx(v,{onClose:l,footer:null,children:e}),t[4]=l,t[5]=e,t[6]=s):s=t[6],s}function Q(){const o=M.c(10),{closePanel:t}=G();let l;o[0]!==t?(l=()=>t(),o[0]=t,o[1]=l):l=o[1];const n=l;let r;o[2]!==n?(r=()=>i.jsx(J,{onClose:n}),o[2]=n,o[3]=r):r=o[3];let e;o[4]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(z,{}),o[4]=e):e=o[4];let s;o[5]!==n?(s=i.jsx(_.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:e}),children:i.jsx(V,{onDone:n,onClose:n})}),o[5]=n,o[6]=s):s=o[6];let m;return o[7]!==r||o[8]!==s?(m=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:i.jsx(F,{fallback:r,children:s})}),o[7]=r,o[8]=s,o[9]=m):m=o[9],m}function V(o){const t=M.c(46),{onDone:l,onClose:n}=o,r=w(),{org:e}=L();let s;t[0]!==e.id?(s=U.REPORTS(e.id),t[0]=e.id,t[1]=s):s=t[1];const m=s;let b;t[2]!==e.id||t[3]!==e.slug?(b={connectionId:W,orgId:e.id,orgSlug:e.slug},t[2]=e.id,t[3]=e.slug,t[4]=b):b=t[4];const a=B(b);let P;t[5]!==m||t[6]!==e||t[7]!==a?(P={selfClient:a,org:e,cdConnectionId:m},t[5]=m,t[6]=e,t[7]=a,t[8]=P):P=t[8];const c=K(P),[I,k]=_.useState(!1),[R,N]=_.useState(null);let y;t[9]!==a?(y={mutationFn:async A=>q(await a.callTool({name:"REPORTS_RUN",arguments:{siteUrl:A}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const p=$(y);let E;t[11]!==l||t[12]!==p||t[13]!==c||t[14]!==r?(E=async()=>{if(N(null),c)try{await p.mutateAsync(c)}catch{N(r("routes.reportsOnboarding.connectModal.somethingWentWrong"));return}l()},t[11]=l,t[12]=p,t[13]=c,t[14]=r,t[15]=E):E=t[15];const O=E;let u;t[16]!==R?(u=R?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:R}):null,t[16]=R,t[17]=u):u=t[17];let f;t[18]!==p.isPending||t[19]!==r?(f=p.isPending?r("routes.reportsOnboarding.connectSourcesTab.refreshing"):r("routes.reportsOnboarding.connectSourcesTab.refresh"),t[18]=p.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==O?(d=()=>{O()},t[21]=O,t[22]=d):d=t[22];let x;t[23]!==I||t[24]!==p.isPending||t[25]!==f||t[26]!==d?(x=i.jsx(X,{ready:I,pending:p.isPending,label:f,onClick:d}),t[23]=I,t[24]=p.isPending,t[25]=f,t[26]=d,t[27]=x):x=t[27];let g;t[28]!==u||t[29]!==x?(g=i.jsxs(i.Fragment,{children:[u,x]}),t[28]=u,t[29]=x,t[30]=g):g=t[30];let C;t[31]!==r?(C=r("routes.reportsOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=C):C=t[32];let h;t[33]!==C?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:C}),t[33]=C,t[34]=h):h=t[34];let S;t[35]!==m||t[36]!==e||t[37]!==c?(S=i.jsx(H,{org:e,cdConnectionId:m,siteUrl:c,onReadinessChange:k}),t[35]=m,t[36]=e,t[37]=c,t[38]=S):S=t[38];let j;t[39]!==h||t[40]!==S?(j=i.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 overflow-y-auto",children:[h,S]}),t[39]=h,t[40]=S,t[41]=j):j=t[41];let T;return t[42]!==n||t[43]!==g||t[44]!==j?(T=i.jsx(v,{onClose:n,footer:g,children:j}),t[42]=n,t[43]=g,t[44]=j,t[45]=T):T=t[45],T}function Ao(){const o=M.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D.Content,{children:i.jsx(Q,{})}),o[0]=t):t=o[0],t}export{Ao as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c,j as p,aP as b,u as g}from"./index-D3nJxkUH.js";import{C as j}from"./index-DdFsa5v8.js";import{F as v,H as S}from"./file-share-button-Bzftjj6b.js";import{u as k,b as y,e as _}from"./use-org-fs-DHsvLMfF.js";import{S as P}from"./settings-tab-DiBpt4oT.js";import{b as w}from"./thread-route-C05ythGW.js";import"./use-mobile-C1Sz5IA3.js";import"./thread-button-DEB6CyTi.js";import"./agent-icon-DDAJOUrn.js";import"./AlertCircle-W5I8YW4R.js";import"./Tool01-DcMZ63HP.js";import"./ArrowUp-Bd_AtNgp.js";import"./ArrowLeft-CoetlmPD.js";import"./ArrowRight-B6-T90AD.js";import"./ShoppingBag01-B8MyeZ-e.js";import"./ZoomOut-CXHZqqpc.js";import"./Palette-Cz5AUPN9.js";import"./CheckCircle-D_bJsyQG.js";import"./Check-0QivlcNy.js";import"./ChevronUp-CzhJ7suW.js";import"./UserSquare-Bu4-Qdjg.js";import"./Copy01-Dqk5v2W3.js";import"./CreditCard01-HKMBsj25.js";import"./DotsVertical-Dt97OOeo.js";import"./Image01-H-e_GJje.js";import"./XClose-ZLANuUvR.js";import"./Key01-DS1cuydn.js";import"./Link01-Dgt626sr.js";import"./LinkExternal01-Dlk0nKfP.js";import"./Monitor01-DHA0hU52.js";import"./Sun-C4sxcfO_.js";import"./Plus-G6ow2MLm.js";import"./SearchMd-BVf9Tbqw.js";import"./Trash01-BO0o39cY.js";import"./Upload01-CefHvaCG.js";import"./User01-DU_G2Tq0.js";import"./Users01-CJcsigwj.js";import"./X-h03RFcZk.js";import"./use-chat-layout-state-DCpMMZxe.js";import"./use-panel-navigate-Bq9qA6eC.js";import"./use-project-scope-ehoEOmYH.js";import"./repository-binding-DFSnpl0R.js";import"./use-mcp-client-D1zolVZP.js";import"./auth-DuH2btxq.js";import"./thread-intent-BE88qyQp.js";import"./backoff-8mStPHYB.js";import"./task-board-DH3h4Dr1.js";import"./schema-B6UkojL_.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Cl5ZHtDF.js";import"./tooltip-DNXq5NQC.js";import"./index-DoX5CV5K.js";import"./toolbar-icon-button-Ddj8hi06.js";import"./shell-layout-DhbvX157.js";import"./avatar-DmQG-hQB.js";import"./download-app-dialog-CQqbCbsr.js";import"./dialog-BlQDNCRy.js";import"./command-CbmtoCAJ.js";import"./index-I6oftDSE.js";import"./integration-icon-_VlEmGlM.js";import"./project-icon-CrY94bRz.js";import"./new-project-dialog-N9VofWxP.js";import"./input-DooV2Ahl.js";import"./label-E-Ho38zd.js";import"./repository-import-picker-CxV4PkyQ.js";import"./use-navigate-to-agent-B9IjIXwZ.js";import"./repository-picker-BlqOm-MJ.js";import"./useInfiniteQuery-BESYkBal.js";import"./infiniteQueryObserver-Pwh-FfBK.js";import"./collection-search-BR1v6pag.js";import"./use-debounced-value-CKP9u9KG.js";import"./use-organization-settings-BGBvwg83.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DRvuCpsR.js";import"./autosend-BiXCJJ84.js";import"./use-org-sso-BGCHYImg.js";import"./resizable-BcGXSTm5.js";import"./popover-D5x-U1ly.js";import"./extract-connection-data-Dl3xTxEv.js";import"./metadata-D72DunRR.js";import"./connection-BPXrZQ_h.js";import"./chat-context-BMOjz7_x.js";import"./use-decopilot-events-qHiW0p1_.js";import"./use-ai-providers-JF8SqOOF.js";import"./location-DBePU4bz.js";import"./build-improve-prompt-doc-oWqRrUfD.js";import"./empty-state-B_enrvzQ.js";import"./use-date-fns-locale-4HWrSHoc.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-CTvqDLuq.js";import"./mcp-oauth-DyAthDLR.js";import"./alert-dialog-DXkQ7Ca0.js";import"./textarea-Cs-kg39J.js";import"./use-debounced-autosave-B7fupUso.js";import"./add-connection-dialog-DjSYjFta.js";import"./connection-card-B8synrRX.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-BFdQcz5_.js";import"./form-UBiksyOk.js";import"./select-Cm7yNA4g.js";import"./connection-form-helpers-BzQl_S_0.js";import"./authenticate-and-persist-oauth-BZiJV3dt.js";import"./collection-tabs-BSnxiqyy.js";import"./badge-D1Fgp4NK.js";import"./use-infinite-scroll-M4Ifk0Id.js";import"./useSuspenseInfiniteQuery-DyzaeZcm.js";import"./file-type-icon-BhoTKsUI.js";import"./checkbox-Ds1JdOtW.js";import"./search-input-CDUTIy-8.js";import"./use-mcp-auth-status-B7Q0d1M3.js";import"./types-Ulhrp9MO.js";import"./use-mcp-tools-ULbfd_2A.js";import"./use-mcp-prompts-CXqK-JUB.js";import"./utils-CVEq3hMx.js";import"./switch-Dpy0BGGT.js";import"./scroll-area-ogl0f4_L.js";import"./use-project-native-view-presence-CeFV8LVU.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-CmJk79gx.js";import"./site-slug-DebpOoQq.js";import"./optimistic-project-sidebar-views-B-4bxO4K.js";import"./virtual-mcp-C8NRJMm1.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-Ts_Mwr3P.js";import"./use-secrets-BqFBRaqm.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const x="home";function M(i){const t=c.c(5),{label:r}=i;let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=p.jsx(b,{className:"aspect-video w-2/3 max-w-xl"}),t[0]=e):e=t[0];let o;t[1]!==r?(o=r&&p.jsx("p",{className:"text-xs text-muted-foreground",children:r}),t[1]=r,t[2]=o):o=t[2];let m;return t[3]!==o?(m=p.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 bg-background",children:[e,o]}),t[3]=o,t[4]=m):m=t[4],m}function D(i){const t=c.c(15),{path:r}=i;let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={refetchIntervalWhenAbsent:2e3},t[0]=e):e=t[0];const o=k(x,r,e),m=y(x)(r);if(o.isPending||!o.data){const h=!o.isPending&&!o.data?"Waiting for the deck to sync…":void 0;let l;return t[1]!==h?(l=p.jsx(M,{label:h}),t[1]=h,t[2]=l):l=t[2],l}let s;t[3]!==o.data?(s=_(o.data),t[3]=o.data,t[4]=s):s=t[4];const f=o.data.shareMode??"private",u=o.data.effectivePublic??!1,d=window.location.origin+m;let a;t[5]!==r||t[6]!==f||t[7]!==u||t[8]!==d?(a=p.jsx(v,{volume:x,path:r,shareMode:f,effectivePublic:u,url:d}),t[5]=r,t[6]=f,t[7]=u,t[8]=d,t[9]=a):a=t[9];let n;return t[10]!==r||t[11]!==m||t[12]!==s||t[13]!==a?(n=p.jsx(S,{readUrl:m,marker:s,title:r,savePath:r,trailing:a}),t[10]=r,t[11]=m,t[12]=s,t[13]=a,t[14]=n):n=t[14],n}function C(){const i=c.c(4);let t;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},i[0]=t):t=i[0];const r=g(t),e=w(),o="path"in r&&typeof r.path=="string"?r.path:void 0;let m;return i[1]!==o||i[2]!==e?(m=o?p.jsx(D,{path:o},o):p.jsx(P,{virtualMcpId:e}),i[1]=o,i[2]=e,i[3]=m):m=i[3],m}function Qo(){const i=c.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=p.jsx(j.Content,{children:p.jsx(C,{})}),i[0]=t):t=i[0],t}export{Qo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,b as Ee,m as _e,j as t,aP as $e,l as Ve,K as xe,B as ge,r as pe,Z as _t,d2 as zt,af as ot,X as Et,o as Qe,e as Ue,t as be}from"./index-b8fp8LDt.js";import{C as Rt}from"./index-BdZDESUI.js";import{H as Je,v as We,bo as Lt,bp as At,bq as Ft,q as ke,br as ct,I as Mt}from"./agent-icon-BwVu9Y1n.js";import{t as dt}from"./ChevronUp-CFC5Ebq0.js";import{s as mt}from"./Trash01-Cakv0Q_K.js";import{B as te}from"./badge-bFS7pJ24.js";import{I as Ut}from"./input-Dhqv4uND.js";import{L as Be}from"./label-CD-3KHsU.js";import{A as ut,a as ft,b as xt,c as pt,g as ht,d as bt,e as gt,f as jt}from"./alert-dialog-BIKJBSWY.js";import{b as It,D as qt,c as Vt,d as Ot,e as Kt}from"./dialog-jyWPb2tC.js";import{S as nt,b as at,a as rt,d as it,c as Tt}from"./select-CMOLfTUd.js";import{e as Xe,a as Ye,b as we,T as W,d as Ze,c as X}from"./table-DEMhEl9n.js";import{E as De}from"./empty-state-CcOT7JmW.js";import{a as Bt}from"./repository-binding-55R_NO8O.js";import{r as Ht}from"./site-slug-DebpOoQq.js";import{i as Re}from"./CheckCircle-BO45x9RP.js";import{n as vt}from"./LinkExternal01-F44g-br4.js";import{i as Qt}from"./Monitor01-DzDXiiSe.js";import{c as Jt}from"./UserSquare-C8CLmWk7.js";import{C as Wt,a as Xt,b as Yt}from"./collapsible-CHNqG-q-.js";import{T as Zt,a as Gt,c as es,b as ts}from"./tabs-BcDaFfJS.js";import{S as ss,d as ls,c as ns,a as as,b as rs}from"./sheet-C50lnPyk.js";import{S as is}from"./settings-tab-CZGv2Tk2.js";import{b as os}from"./use-organization-settings-DHUs001C.js";import{b as cs}from"./thread-route-CwwNa7rG.js";import"./use-mobile-gFkCJFqu.js";import"./thread-button-ehR7Dlp_.js";import"./Image01-B1u2Kql2.js";import"./ZoomOut-C-nvVeIw.js";import"./use-chat-layout-state-CN6yuxIZ.js";import"./use-panel-navigate-D3FhRJpf.js";import"./use-project-scope-B0nCeJeZ.js";import"./thread-intent-CRqPosFZ.js";import"./use-mcp-client-D71dVc6F.js";import"./auth-Dy0n9IyK.js";import"./backoff-8mStPHYB.js";import"./task-board-Qc5P6Y-B.js";import"./schema-NHiqAi8o.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-Bi7JdvkB.js";import"./index-rpTqXmHS.js";import"./toolbar-icon-button-B6sD_AsQ.js";import"./shell-layout-CdyVKBx2.js";import"./avatar-CRdtD8pR.js";import"./User01-P9l9chQ8.js";import"./Palette-mWfzFBxF.js";import"./XClose-YtRhiE3L.js";import"./download-app-dialog-C5cTfPYs.js";import"./Check-FcxjuFt6.js";import"./Copy01-C6Pi2Z_V.js";import"./Plus-KRmPLJ6h.js";import"./Tool01-DAEtx7Sx.js";import"./command-CGF9V6Vl.js";import"./index-OnxdjRP9.js";import"./SearchMd-V0a6RI0u.js";import"./integration-icon-BqF75Sx2.js";import"./project-icon-DsbzSgwK.js";import"./new-project-dialog-1J2k2mif.js";import"./ArrowLeft-BCkbM4b4.js";import"./repository-import-picker-CWfeZJ7D.js";import"./use-navigate-to-agent-CKGWZY5B.js";import"./repository-picker-CuBjKX0n.js";import"./useInfiniteQuery-CzSAJb3p.js";import"./infiniteQueryObserver-gIFPF-Q5.js";import"./collection-search-BnXIXF-r.js";import"./ShoppingBag01-CgMyE5tG.js";import"./use-debounced-value-B8lQINn7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-JHtblyUI.js";import"./autosend-VbZkWu24.js";import"./use-org-sso-4TSO8HVM.js";import"./resizable-CKFWp7Oe.js";import"./AlertCircle-CVtZx7OF.js";import"./ArrowUp-DA3O9Q_5.js";import"./ArrowRight-BBBInn6h.js";import"./CreditCard01-C5pPfXKY.js";import"./DotsVertical-BLLrg_XP.js";import"./Key01-ClN_3drg.js";import"./Link01-Vtq2lkbp.js";import"./Sun-BsSXClq1.js";import"./Upload01-CTQz1wiD.js";import"./Users01-CNwYnNBC.js";import"./X-CKGbxNhB.js";import"./extract-connection-data-D5OmU01k.js";import"./metadata-D72DunRR.js";import"./connection-0cqQcMBd.js";import"./chat-context-DgElWmma.js";import"./use-decopilot-events-CveMqPsg.js";import"./use-ai-providers-BtMw9gwm.js";import"./location-DBePU4bz.js";import"./build-improve-prompt-doc-B2nzL_xr.js";import"./empty-state-pG1Fwit8.js";import"./use-date-fns-locale-xhHRXAbX.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-Dow_xwpS.js";import"./mcp-oauth-btOLn9Vw.js";import"./textarea-DCQxd4Ep.js";import"./use-debounced-autosave-Djt-umpU.js";import"./add-connection-dialog-4toRZZCj.js";import"./connection-card-CVXElGSe.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-CxXWX_ie.js";import"./form-cnyZOBcC.js";import"./connection-form-helpers-ktc30XoJ.js";import"./authenticate-and-persist-oauth-B-9NlA8S.js";import"./collection-tabs-Bky3kPsU.js";import"./use-infinite-scroll-D7ld_EUt.js";import"./useSuspenseInfiniteQuery-Bpkp3-ow.js";import"./file-type-icon-DOStMe7n.js";import"./use-org-fs-BA8EDTNB.js";import"./checkbox-DY0rH-TX.js";import"./search-input-DtchHiLr.js";import"./use-mcp-auth-status-CmbIVFHS.js";import"./types-C6rRSCQU.js";import"./use-mcp-tools-CotgwWio.js";import"./use-mcp-prompts-5J9nyt1f.js";import"./utils-CVEq3hMx.js";import"./switch-BDTLPd_5.js";import"./popover-CrMowaoE.js";import"./scroll-area-COFydPyl.js";import"./use-project-native-view-presence-Bm3KpKbG.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-D3-24XdK.js";import"./optimistic-project-sidebar-views-CkEUPeDa.js";import"./virtual-mcp-D0krbeEv.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-53Y713pM.js";import"./use-secrets-CLdLiqbt.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";let Nt=class extends Error{constructor(e,s){super(e),this.status=s}status};function ds(n){return n instanceof Nt&&n.status===401}async function ms(n){const e=await fetch(n),s=await e.json().catch(()=>({}));if(!e.ok){const l=s&&typeof s=="object"&&"error"in s?String(s.error):`request failed (${e.status})`;throw new Nt(l,e.status)}return s}function Le(n){return n==null||!Number.isFinite(n)?"—":n>=1e3?`${(n/1e3).toFixed(n>=1e4?0:1)}s`:`${Math.round(n)}ms`}function Ge(n){const e=(n??"").toLowerCase();return e==="pass"||e==="passed"||e==="ok"||e==="success"}function Se(n){const e=(n??"").toLowerCase();return e==="fail"||e==="failed"||e==="error"}function yt(n){const e=(n??"").toLowerCase();return e==="skip"||e==="skipped"}function He(n,e){return n.viewport&&n.viewport.trim()?n.viewport:`viewport-${e}`}function et(n){const e=L.c(12),{status:s,t:l}=n;if(Se(s)){let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(We,{className:"size-3"}),e[0]=r):r=e[0];let o;e[1]!==l?(o=l("mainPanelTabs.e2eTab.statusFailed"),e[1]=l,e[2]=o):o=e[2];let c;return e[3]!==o?(c=t.jsxs(te,{variant:"destructive",children:[r,o]}),e[3]=o,e[4]=c):c=e[4],c}if(Ge(s)){let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Re,{className:"size-3"}),e[5]=r):r=e[5];let o;e[6]!==l?(o=l("mainPanelTabs.e2eTab.statusPassed"),e[6]=l,e[7]=o):o=e[7];let c;return e[8]!==o?(c=t.jsxs(te,{variant:"success",children:[r,o]}),e[8]=o,e[9]=c):c=e[9],c}const a=s??"—";let i;return e[10]!==a?(i=t.jsx(te,{variant:"secondary",children:a}),e[10]=a,e[11]=i):i=e[11],i}function us(n){const e=L.c(4),{status:s}=n;if(Ge(s)){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Re,{className:"size-4 shrink-0 text-success"}),e[0]=a):a=e[0],a}if(Se(s)){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(We,{className:"size-4 shrink-0 text-destructive"}),e[1]=a):a=e[1],a}if(yt(s)){let a;return e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Ft,{className:"size-4 shrink-0 text-muted-foreground"}),e[2]=a):a=e[2],a}let l;return e[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(zt,{className:"size-4 shrink-0 text-muted-foreground/60"}),e[3]=l):l=e[3],l}function fs(n){return Ge(n)?"bg-success":Se(n)?"bg-destructive":yt(n)?"bg-muted-foreground/40":"bg-muted-foreground/25"}function xs(n){const e=L.c(4),{steps:s}=n;if(s.length===0)return null;let l;e[0]!==s?(l=s.map(ps),e[0]=s,e[1]=l):l=e[1];let a;return e[2]!==l?(a=t.jsx("div",{className:"flex flex-wrap items-center gap-1",children:l}),e[2]=l,e[3]=a):a=e[3],a}function ps(n,e){return t.jsx("span",{title:n.name??`step ${e+1}`,className:Ve("size-1.5 rounded-full",fs(n.status))},e)}const hs=[{key:"lcp",label:"LCP",good:2500,poor:4e3,unit:"ms"},{key:"inp",label:"INP",good:200,poor:500,unit:"ms"},{key:"cls",label:"CLS",good:.1,poor:.25,unit:"cls"},{key:"fcp",label:"FCP",good:1800,poor:3e3,unit:"ms"},{key:"ttfb",label:"TTFB",good:800,poor:1800,unit:"ms"}];function Pt(n){const e=L.c(7),{vitals:s}=n;let l,a,i;if(e[0]!==s){i=Symbol.for("react.early_return_sentinel");e:{const o=hs.filter(c=>{const{key:m}=c,d=s[m];return d!=null&&Number.isFinite(d)});if(o.length===0){i=null;break e}l="grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-5",a=o.map(c=>{const{key:m,label:d,good:u,poor:T,unit:p}=c,f=s[m],x=f<=u?"text-success":f<=T?"text-warning":"text-destructive",v=p==="cls"?f.toFixed(3):Le(f);return t.jsxs("div",{className:"flex flex-col gap-1 rounded-lg border border-border bg-muted/30 px-3 py-2",children:[t.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:d}),t.jsx("span",{className:Ve("font-mono text-sm font-semibold tabular-nums",x),children:v})]},m)})}e[0]=s,e[1]=l,e[2]=a,e[3]=i}else l=e[1],a=e[2],i=e[3];if(i!==Symbol.for("react.early_return_sentinel"))return i;let r;return e[4]!==l||e[5]!==a?(r=t.jsx("div",{className:l,children:a}),e[4]=l,e[5]=a,e[6]=r):r=e[6],r}function Fe(n){const e=L.c(17),{icon:s,label:l,badge:a,defaultOpen:i,children:r}=n,o=i===void 0?!1:i,[c,m]=pe.useState(o);let d;e[0]!==c?(d=c?t.jsx(dt,{className:"size-4 text-muted-foreground"}):t.jsx(ot,{className:"size-4 text-muted-foreground"}),e[0]=c,e[1]=d):d=e[1];let u;e[2]!==l?(u=t.jsx("span",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=u):u=e[3];let T;e[4]!==a?(T=a!=null&&t.jsx("span",{className:"ml-auto",children:a}),e[4]=a,e[5]=T):T=e[5];let p;e[6]!==s||e[7]!==d||e[8]!==u||e[9]!==T?(p=t.jsxs(Wt,{className:"flex w-full items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-left hover:bg-muted/40",children:[d,s,u,T]}),e[6]=s,e[7]=d,e[8]=u,e[9]=T,e[10]=p):p=e[10];let f;e[11]!==r?(f=t.jsx(Xt,{className:"pt-2",children:r}),e[11]=r,e[12]=f):f=e[12];let x;return e[13]!==c||e[14]!==p||e[15]!==f?(x=t.jsxs(Yt,{open:c,onOpenChange:m,children:[p,f]}),e[13]=c,e[14]=p,e[15]=f,e[16]=x):x=e[16],x}function bs(n){const e=L.c(51),{step:s,index:l,t:a}=n;let i;e[0]!==s.status?(i=Se(s.status),e[0]=s.status,e[1]=i):i=e[1];const r=i;let o;e[2]!==s.status?(o=t.jsx(us,{status:s.status}),e[2]=s.status,e[3]=o):o=e[3];const c=s.step??l+1;let m;e[4]!==c?(m=t.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/60 tabular-nums",children:c}),e[4]=c,e[5]=m):m=e[5];let d;e[6]!==o||e[7]!==m?(d=t.jsxs("div",{className:"flex flex-col items-center gap-1",children:[o,m]}),e[6]=o,e[7]=m,e[8]=d):d=e[8];let u;e[9]!==l||e[10]!==s.actionDescription||e[11]!==s.name||e[12]!==a?(u=s.name??s.actionDescription??`${a("mainPanelTabs.e2eTab.steps")} ${l+1}`,e[9]=l,e[10]=s.actionDescription,e[11]=s.name,e[12]=a,e[13]=u):u=e[13];let T;e[14]!==s.critical||e[15]!==a?(T=s.critical&&t.jsx(te,{variant:"warning",className:"ml-2 align-middle",children:a("mainPanelTabs.e2eTab.critical")}),e[14]=s.critical,e[15]=a,e[16]=T):T=e[16];let p;e[17]!==u||e[18]!==T?(p=t.jsxs("span",{className:"truncate text-sm font-medium text-foreground",children:[u,T]}),e[17]=u,e[18]=T,e[19]=p):p=e[19];let f;e[20]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Je,{className:"size-3"}),e[20]=f):f=e[20];let x;e[21]!==s.durationMs?(x=Le(s.durationMs),e[21]=s.durationMs,e[22]=x):x=e[22];let v;e[23]!==x?(v=t.jsxs("span",{className:"flex shrink-0 items-center gap-1 font-mono text-[11px] text-muted-foreground tabular-nums",children:[f,x]}),e[23]=x,e[24]=v):v=e[24];let y;e[25]!==v||e[26]!==p?(y=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p,v]}),e[25]=v,e[26]=p,e[27]=y):y=e[27];let h;e[28]!==s.actionDescription||e[29]!==s.name?(h=s.actionDescription&&s.actionDescription!==s.name&&t.jsx("p",{className:"text-xs text-muted-foreground",children:s.actionDescription}),e[28]=s.actionDescription,e[29]=s.name,e[30]=h):h=e[30];let P;e[31]!==s.usedSelector?(P=s.usedSelector&&t.jsxs("code",{className:"flex w-fit items-center gap-1 rounded bg-muted px-1.5 py-0.5 font-mono text-[11px] text-foreground/70",children:[t.jsx(At,{className:"size-3 text-muted-foreground"}),s.usedSelector]}),e[31]=s.usedSelector,e[32]=P):P=e[32];let g;e[33]!==r||e[34]!==s.errorDetail||e[35]!==a?(g=r&&s.errorDetail&&t.jsxs("div",{className:"flex items-start gap-1.5 rounded-lg bg-destructive/10 px-2.5 py-2 text-xs text-destructive",children:[t.jsx(_t,{className:"mt-0.5 size-3.5 shrink-0"}),t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[s.errorDetail.slug&&t.jsx("span",{className:"break-words",children:a("mainPanelTabs.e2eTab.missingSelector",{slug:s.errorDetail.slug})}),s.errorDetail.expected&&t.jsx("span",{className:"break-words text-destructive/80",children:a("mainPanelTabs.e2eTab.expected",{value:s.errorDetail.expected})}),s.errorDetail.suggestion&&t.jsx("span",{className:"break-words text-destructive/80",children:s.errorDetail.suggestion})]})]}),e[33]=r,e[34]=s.errorDetail,e[35]=a,e[36]=g):g=e[36];let b;e[37]!==l||e[38]!==s.name||e[39]!==s.screenshotUrl||e[40]!==a?(b=s.screenshotUrl&&t.jsx("a",{href:s.screenshotUrl,target:"_blank",rel:"noreferrer",className:"mt-1 w-fit","aria-label":a("mainPanelTabs.e2eTab.viewScreenshot"),children:t.jsx("img",{src:s.screenshotUrl,alt:s.name??`step ${l+1}`,loading:"lazy",className:"max-h-44 rounded-lg border border-border"})}),e[37]=l,e[38]=s.name,e[39]=s.screenshotUrl,e[40]=a,e[41]=b):b=e[41];let N;e[42]!==y||e[43]!==h||e[44]!==P||e[45]!==g||e[46]!==b?(N=t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[y,h,P,g,b]}),e[42]=y,e[43]=h,e[44]=P,e[45]=g,e[46]=b,e[47]=N):N=e[47];let j;return e[48]!==N||e[49]!==d?(j=t.jsxs("li",{className:"flex gap-3 py-2.5",children:[d,N]}),e[48]=N,e[49]=d,e[50]=j):j=e[50],j}function gs(n){const e=L.c(8),{entries:s,t:l}=n;if(s.length===0){let r;e[0]!==l?(r=l("mainPanelTabs.e2eTab.noConsole"),e[0]=l,e[1]=r):r=e[1];let o;return e[2]!==r?(o=t.jsx("p",{className:"px-3 py-2 text-xs text-muted-foreground",children:r}),e[2]=r,e[3]=o):o=e[3],o}let a;e[4]!==s?(a=s.map(js),e[4]=s,e[5]=a):a=e[5];let i;return e[6]!==a?(i=t.jsx("div",{className:"flex max-h-72 flex-col overflow-y-auto rounded-lg border border-border",children:a}),e[6]=a,e[7]=i):i=e[7],i}function js(n,e){const s=(n.type??"").toLowerCase(),l=s==="error"?"text-destructive":s==="warning"||s==="warn"?"text-warning":"text-foreground/70";return t.jsx("div",{className:"border-b border-border/60 px-2.5 py-1.5 font-mono text-[11px] last:border-b-0",children:t.jsx("span",{className:Ve("break-words",l),children:n.text})},e)}function Ts(n){const e=L.c(8),{entries:s,t:l}=n;if(s.length===0){let r;e[0]!==l?(r=l("mainPanelTabs.e2eTab.noNetwork"),e[0]=l,e[1]=r):r=e[1];let o;return e[2]!==r?(o=t.jsx("p",{className:"px-3 py-2 text-xs text-muted-foreground",children:r}),e[2]=r,e[3]=o):o=e[3],o}let a;e[4]!==s?(a=s.map(vs),e[4]=s,e[5]=a):a=e[5];let i;return e[6]!==a?(i=t.jsx("div",{className:"flex max-h-72 flex-col overflow-y-auto rounded-lg border border-border",children:a}),e[6]=a,e[7]=i):i=e[7],i}function vs(n,e){const s=(n.status??0)>=400;return t.jsxs("div",{className:"flex items-center gap-2 border-b border-border/60 px-2.5 py-1.5 font-mono text-[11px] last:border-b-0",children:[t.jsx("span",{className:Ve("tabular-nums",s?"text-destructive":"text-muted-foreground"),children:n.status??"—"}),t.jsx("span",{className:"w-10 shrink-0 text-muted-foreground/70",children:n.method}),t.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/70",children:n.url}),n.resourceType&&t.jsx("span",{className:"shrink-0 text-muted-foreground/50",children:n.resourceType})]},e)}function Ns(n){const e=L.c(57),{run:s,page:l,t:a}=n;let i;e[0]!==s.steps?(i=s.steps??[],e[0]=s.steps,e[1]=i):i=e[1];const r=i;let o;e[2]!==r?(o=r.filter(Ps),e[2]=r,e[3]=o):o=e[3];const c=o.length;let m;e[4]!==s.console?(m=s.console??[],e[4]=s.console,e[5]=m):m=e[5];const d=m;let u;e[6]!==s.network?(u=s.network??[],e[6]=s.network,e[7]=u):u=e[7];const T=u;let p;e[8]!==d?(p=d.some(ys),e[8]=d,e[9]=p):p=e[9];const f=p;let x;e[10]!==s.verdict||e[11]!==a?(x=t.jsx(et,{status:s.verdict,t:a}),e[10]=s.verdict,e[11]=a,e[12]=x):x=e[12];let v;e[13]!==s.funnelVerdict||e[14]!==s.verdict||e[15]!==a?(v=s.funnelVerdict&&s.funnelVerdict!==s.verdict&&t.jsxs("span",{children:[a("mainPanelTabs.e2eTab.funnel"),":"," ",t.jsx("span",{className:"font-medium text-foreground",children:s.funnelVerdict})]}),e[13]=s.funnelVerdict,e[14]=s.verdict,e[15]=a,e[16]=v):v=e[16];let y;e[17]!==s.durationMs?(y=s.durationMs!=null&&t.jsxs("span",{className:"flex items-center gap-1 tabular-nums",children:[t.jsx(Je,{className:"size-3"}),Le(s.durationMs)]}),e[17]=s.durationMs,e[18]=y):y=e[18];let h;e[19]!==l?(h=l?.status!=null&&t.jsxs(te,{variant:l.status<400?"secondary":"destructive",children:["HTTP ",l.status]}),e[19]=l,e[20]=h):h=e[20];let P;e[21]!==x||e[22]!==v||e[23]!==y||e[24]!==h?(P=t.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-muted-foreground",children:[x,v,y,h]}),e[21]=x,e[22]=v,e[23]=y,e[24]=h,e[25]=P):P=e[25];let g;e[26]!==r?(g=r.length>0&&t.jsx(xs,{steps:r}),e[26]=r,e[27]=g):g=e[27];let b;e[28]!==l||e[29]!==a?(b=l?.vitals&&t.jsxs("section",{className:"flex flex-col gap-2",children:[t.jsx("h4",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:a("mainPanelTabs.e2eTab.vitals")}),t.jsx(Pt,{vitals:l.vitals})]}),e[28]=l,e[29]=a,e[30]=b):b=e[30];let N;e[31]!==c||e[32]!==r||e[33]!==a?(N=r.length>0&&t.jsx(Fe,{defaultOpen:!0,icon:t.jsx(Re,{className:"size-4 text-muted-foreground"}),label:a("mainPanelTabs.e2eTab.steps"),badge:c>0?t.jsx(te,{variant:"destructive",children:a("mainPanelTabs.e2eTab.failCount",{count:String(c)})}):t.jsx(te,{variant:"secondary",children:a("mainPanelTabs.e2eTab.stepsCount",{count:String(r.length)})}),children:t.jsx("ol",{className:"divide-y divide-border/60 rounded-lg border border-border px-3",children:r.map((D,z)=>t.jsx(bs,{step:D,index:z,t:a},z))})}),e[31]=c,e[32]=r,e[33]=a,e[34]=N):N=e[34];let j;e[35]!==d||e[36]!==f||e[37]!==a?(j=d.length>0&&t.jsx(Fe,{icon:t.jsx(Jt,{className:"size-4 text-muted-foreground"}),label:a("mainPanelTabs.e2eTab.console"),badge:t.jsx(te,{variant:f?"destructive":"secondary",children:d.length}),children:t.jsx(gs,{entries:d,t:a})}),e[35]=d,e[36]=f,e[37]=a,e[38]=j):j=e[38];let w;e[39]!==T||e[40]!==a?(w=T.length>0&&t.jsx(Fe,{icon:t.jsx(Qt,{className:"size-4 text-muted-foreground"}),label:a("mainPanelTabs.e2eTab.network"),badge:t.jsx(te,{variant:"secondary",children:T.length}),children:t.jsx(Ts,{entries:T,t:a})}),e[39]=T,e[40]=a,e[41]=w):w=e[41];let S;e[42]!==s.videoUrl||e[43]!==a?(S=s.videoUrl&&t.jsx(Fe,{icon:t.jsx(Lt,{className:"size-4 text-muted-foreground"}),label:a("mainPanelTabs.e2eTab.video"),children:t.jsx("video",{controls:!0,src:s.videoUrl,className:"max-h-80 w-full rounded-lg border border-border"})}),e[42]=s.videoUrl,e[43]=a,e[44]=S):S=e[44];let C;e[45]!==s.traceUrl||e[46]!==a?(C=s.traceUrl&&t.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[t.jsx(ge,{size:"sm",variant:"secondary",asChild:!0,children:t.jsxs("a",{href:`https://trace.playwright.dev/?trace=${encodeURIComponent(s.traceUrl)}`,target:"_blank",rel:"noreferrer",children:[t.jsx(vt,{className:"size-4"}),a("mainPanelTabs.e2eTab.openTrace")]})}),t.jsx("a",{href:s.traceUrl,target:"_blank",rel:"noreferrer",className:"text-xs text-muted-foreground hover:text-foreground hover:underline",children:a("mainPanelTabs.e2eTab.downloadTrace")})]}),e[45]=s.traceUrl,e[46]=a,e[47]=C):C=e[47];let k;return e[48]!==P||e[49]!==g||e[50]!==b||e[51]!==N||e[52]!==j||e[53]!==w||e[54]!==S||e[55]!==C?(k=t.jsxs("div",{className:"flex flex-col gap-4 pt-4",children:[P,g,b,N,j,w,S,C]}),e[48]=P,e[49]=g,e[50]=b,e[51]=N,e[52]=j,e[53]=w,e[54]=S,e[55]=C,e[56]=k):k=e[56],k}function ys(n){return(n.type??"").toLowerCase()==="error"}function Ps(n){return Se(n.status)}function wt(n){const e=L.c(7),{artifacts:s,t:l}=n;let a;if(e[0]!==s||e[1]!==l){const i=s.filter(Ss),r=s.filter(ws);let o;e[3]!==l?(o=l("mainPanelTabs.e2eTab.artifacts"),e[3]=l,e[4]=o):o=e[4];let c;e[5]!==o?(c=t.jsx("h4",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:o}),e[5]=o,e[6]=c):c=e[6],a=t.jsxs("section",{className:"flex flex-col gap-2",children:[c,s.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:l("mainPanelTabs.e2eTab.noArtifacts")}):t.jsxs("div",{className:"flex flex-col gap-2",children:[i.length>0&&t.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:i.map((m,d)=>t.jsx("a",{href:m.url,target:"_blank",rel:"noreferrer","aria-label":m.name??l("mainPanelTabs.e2eTab.viewScreenshot"),children:t.jsx("img",{src:m.url,alt:m.name??"screenshot",loading:"lazy",className:"w-full rounded-lg border border-border"})},`${m.name??"img"}-${d}`))}),r.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((m,d)=>t.jsxs("a",{href:m.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-border px-2.5 py-1 font-mono text-[11px] text-foreground/80 hover:bg-muted/40",children:[m.name??l("mainPanelTabs.e2eTab.openArtifact"),t.jsx(vt,{className:"size-3 text-muted-foreground"})]},`${m.name??"artifact"}-${d}`))})]})]}),e[0]=s,e[1]=l,e[2]=a}else a=e[2];return a}function ws(n){return!/\.png$/i.test(n.name??"")}function Ss(n){return/\.png$/i.test(n.name??"")}function Cs(n){const e=L.c(9),{checks:s,artifacts:l,t:a}=n;let i;e[0]!==s||e[1]!==a?(i=s.length>0?t.jsxs("section",{className:"flex flex-col gap-2",children:[t.jsx("h4",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:a("mainPanelTabs.e2eTab.checksTitle")}),t.jsx("div",{className:"rounded-lg border border-border",children:t.jsxs(Xe,{children:[t.jsx(Ye,{children:t.jsxs(we,{children:[t.jsx(W,{children:a("mainPanelTabs.e2eTab.colCheck")}),t.jsx(W,{children:a("mainPanelTabs.e2eTab.colStatus")}),t.jsx(W,{children:a("mainPanelTabs.e2eTab.colViewport")}),t.jsx(W,{className:"text-right",children:a("mainPanelTabs.e2eTab.colDuration")})]})}),t.jsx(Ze,{children:s.map((c,m)=>t.jsxs(we,{children:[t.jsx(X,{className:"text-xs text-foreground",children:c.name??"—"}),t.jsx(X,{children:t.jsx(et,{status:c.status,t:a})}),t.jsx(X,{className:"font-mono text-xs text-muted-foreground",children:c.viewport??"—"}),t.jsx(X,{className:"text-right font-mono text-xs text-muted-foreground tabular-nums",children:Le(c.durationMs)})]},`${c.name??"check"}-${m}`))})]})})]}):t.jsx("p",{className:"text-sm text-muted-foreground",children:a("mainPanelTabs.e2eTab.noReport")}),e[0]=s,e[1]=a,e[2]=i):i=e[2];let r;e[3]!==l||e[4]!==a?(r=t.jsx(wt,{artifacts:l,t:a}),e[3]=l,e[4]=a,e[5]=r):r=e[5];let o;return e[6]!==i||e[7]!==r?(o=t.jsxs("div",{className:"flex flex-col gap-5",children:[i,r]}),e[6]=i,e[7]=r,e[8]=o):o=e[8],o}function ks(n){const e=L.c(46),{data:s,t:l}=n,a=s.report??null;let i;e[0]!==a?.runs?(i=a?.runs??[],e[0]=a?.runs,e[1]=i):i=e[1];const r=i;let o;e[2]!==s.checks?(o=s.checks??[],e[2]=s.checks,e[3]=o):o=e[3];const c=o;let m;e[4]!==s.artifacts?(m=s.artifacts??[],e[4]=s.artifacts,e[5]=m):m=e[5];const d=m;let u;if(e[6]!==a?.pages){u=new Map;for(const h of a?.pages??[])h.viewport&&!u.has(h.viewport)&&u.set(h.viewport,h);e[6]=a?.pages,e[7]=u}else u=e[7];const T=r[0];if(a&&T){let h;e[8]!==T?(h=He(T,0),e[8]=T,e[9]=h):h=e[9];let P;if(e[10]!==r||e[11]!==l){let S;e[13]!==l?(S=(C,k)=>{const D=He(C,k);return t.jsxs(Zt,{value:D,variant:"underline",className:"gap-1.5",children:[Se(C.verdict)?t.jsx(We,{className:"size-3.5 text-destructive"}):t.jsx(Re,{className:"size-3.5 text-success"}),C.viewport??`${l("mainPanelTabs.e2eTab.viewport")} ${k+1}`]},D)},e[13]=l,e[14]=S):S=e[14],P=r.map(S),e[10]=r,e[11]=l,e[12]=P}else P=e[12];let g;e[15]!==P?(g=t.jsx(Gt,{variant:"underline",className:"flex-wrap",children:P}),e[15]=P,e[16]=g):g=e[16];let b;if(e[17]!==u||e[18]!==r||e[19]!==l){let S;e[21]!==u||e[22]!==l?(S=(C,k)=>{const D=He(C,k);return t.jsx(es,{value:D,children:t.jsx(Ns,{run:C,page:C.viewport?u.get(C.viewport):void 0,t:l})},D)},e[21]=u,e[22]=l,e[23]=S):S=e[23],b=r.map(S),e[17]=u,e[18]=r,e[19]=l,e[20]=b}else b=e[20];let N;e[24]!==h||e[25]!==g||e[26]!==b?(N=t.jsxs(ts,{variant:"underline",defaultValue:h,children:[g,b]}),e[24]=h,e[25]=g,e[26]=b,e[27]=N):N=e[27];let j;e[28]!==d||e[29]!==l?(j=d.length>0&&t.jsx(wt,{artifacts:d,t:l}),e[28]=d,e[29]=l,e[30]=j):j=e[30];let w;return e[31]!==N||e[32]!==j?(w=t.jsxs("div",{className:"flex flex-col gap-5",children:[N,j]}),e[31]=N,e[32]=j,e[33]=w):w=e[33],w}let p;e[34]!==a?.pages?(p=(a?.pages??[]).find($s)?.vitals,e[34]=a?.pages,e[35]=p):p=e[35];const f=p;let x;e[36]!==f||e[37]!==l?(x=f&&t.jsxs("section",{className:"flex flex-col gap-2",children:[t.jsx("h4",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:l("mainPanelTabs.e2eTab.vitals")}),t.jsx(Pt,{vitals:f})]}),e[36]=f,e[37]=l,e[38]=x):x=e[38];let v;e[39]!==d||e[40]!==c||e[41]!==l?(v=t.jsx(Cs,{checks:c,artifacts:d,t:l}),e[39]=d,e[40]=c,e[41]=l,e[42]=v):v=e[42];let y;return e[43]!==x||e[44]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-5",children:[x,v]}),e[43]=x,e[44]=v,e[45]=y):y=e[45],y}function $s(n){return n.vitals}function Ds(n){const e=L.c(50),{base:s,orgSlug:l,site:a,run:i,onOpenChange:r}=n,o=Ee(),c=i?.runId??"",m=i!=null;let d;e[0]!==l||e[1]!==c||e[2]!==a?(d=xe.e2eRun(l,a,c),e[0]=l,e[1]=c,e[2]=a,e[3]=d):d=e[3];let u;e[4]!==s||e[5]!==c?(u=()=>ms(`${s}/e2e/runs/${encodeURIComponent(c)}`),e[4]=s,e[5]=c,e[6]=u):u=e[6];const T=m&&!!c;let p;e[7]!==d||e[8]!==u||e[9]!==T?(p={queryKey:d,queryFn:u,enabled:T,retry:!1,staleTime:0,gcTime:0,refetchOnMount:"always"},e[7]=d,e[8]=u,e[9]=T,e[10]=p):p=e[10];const f=_e(p),x=f.data,v=x?.status??i?.status??null,y=i?.summary?.command??null,h=i?.summary?.url??null,P=x?.report?.totalDurationMs??null,g=x?.report?.platform??null;let b;e[11]!==o||e[12]!==v?(b=t.jsx(et,{status:v,t:o}),e[11]=o,e[12]=v,e[13]=b):b=e[13];let N;e[14]!==c?(N=t.jsx(ss,{className:"font-mono text-sm text-foreground",children:c}),e[14]=c,e[15]=N):N=e[15];let j;e[16]!==b||e[17]!==N?(j=t.jsxs("div",{className:"flex items-center gap-2",children:[b,N]}),e[16]=b,e[17]=N,e[18]=j):j=e[18];let w;e[19]!==y||e[20]!==o?(w=y&&t.jsxs("span",{children:[o("mainPanelTabs.e2eTab.command")," ",t.jsx("span",{className:"font-medium text-foreground",children:y})]}),e[19]=y,e[20]=o,e[21]=w):w=e[21];let S;e[22]!==g?(S=g&&t.jsx("span",{className:"font-medium text-foreground/70",children:g}),e[22]=g,e[23]=S):S=e[23];let C;e[24]!==P?(C=P!=null&&t.jsxs("span",{className:"flex items-center gap-1 tabular-nums",children:[t.jsx(Je,{className:"size-3"}),Le(P)]}),e[24]=P,e[25]=C):C=e[25];let k;e[26]!==h?(k=h&&t.jsx("a",{href:h,target:"_blank",rel:"noreferrer",className:"truncate font-mono text-foreground/70 hover:underline",children:h.replace(/^https?:\/\//,"")}),e[26]=h,e[27]=k):k=e[27];let D;e[28]!==C||e[29]!==k||e[30]!==w||e[31]!==S?(D=t.jsx(ls,{asChild:!0,children:t.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[w,S,C,k]})}),e[28]=C,e[29]=k,e[30]=w,e[31]=S,e[32]=D):D=e[32];let z;e[33]!==D||e[34]!==j?(z=t.jsxs(ns,{className:"border-b border-border",children:[j,D]}),e[33]=D,e[34]=j,e[35]=z):z=e[35];let F;e[36]!==x||e[37]!==f.error||e[38]!==f.isLoading||e[39]!==o?(F=ds(f.error)?t.jsx(De,{icon:t.jsx(Re,{className:"size-5"}),title:o("mainPanelTabs.e2eTab.notConnectedTitle"),description:o("mainPanelTabs.e2eTab.notConnectedDescription")}):f.isLoading?t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx($e,{className:"h-9 w-full"}),t.jsx($e,{className:"h-24 w-full"}),t.jsx($e,{className:"h-40 w-full"})]}):f.error?t.jsx("p",{className:"text-sm text-muted-foreground",children:o("mainPanelTabs.e2eTab.detailError")}):x?t.jsx(ks,{data:x,t:o}):null,e[36]=x,e[37]=f.error,e[38]=f.isLoading,e[39]=o,e[40]=F):F=e[40];let R;e[41]!==F?(R=t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto p-4",children:F}),e[41]=F,e[42]=R):R=e[42];let A;e[43]!==z||e[44]!==R?(A=t.jsxs(as,{side:"right",className:"w-full gap-0 p-0 sm:max-w-2xl",children:[z,R]}),e[43]=z,e[44]=R,e[45]=A):A=e[45];let E;return e[46]!==r||e[47]!==m||e[48]!==A?(E=t.jsx(rs,{open:m,onOpenChange:r,children:A}),e[46]=r,e[47]=m,e[48]=A,e[49]=E):E=e[49],E}const Me="once",_s=[{value:Me,labelKey:"mainPanelTabs.e2eTab.scheduleOnce"},{value:"0 * * * *",labelKey:"mainPanelTabs.e2eTab.scheduleHourly"},{value:"0 8 * * *",labelKey:"mainPanelTabs.e2eTab.scheduleDaily"},{value:"0 8 * * 1",labelKey:"mainPanelTabs.e2eTab.scheduleWeekly"}];function zs(n){const e=L.c(16),{phase:s,t:l}=n,a=(s??"").toLowerCase();if(a==="running"){let o;e[0]!==l?(o=l("mainPanelTabs.e2eTab.statusRunning"),e[0]=l,e[1]=o):o=e[1];let c;return e[2]!==o?(c=t.jsx(te,{variant:"warning",children:o}),e[2]=o,e[3]=c):c=e[3],c}if(a==="succeeded"){let o;e[4]!==l?(o=l("mainPanelTabs.e2eTab.phaseRan"),e[4]=l,e[5]=o):o=e[5];let c;return e[6]!==o?(c=t.jsx(te,{variant:"secondary",children:o}),e[6]=o,e[7]=c):c=e[7],c}if(a==="failed"){let o;e[8]!==l?(o=l("mainPanelTabs.e2eTab.phaseErrored"),e[8]=l,e[9]=o):o=e[9];let c;return e[10]!==o?(c=t.jsx(te,{variant:"destructive",children:o}),e[10]=o,e[11]=c):c=e[11],c}let i;e[12]!==l?(i=l("mainPanelTabs.e2eTab.phasePending"),e[12]=l,e[13]=i):i=e[13];let r;return e[14]!==i?(r=t.jsx(te,{variant:"secondary",children:i}),e[14]=i,e[15]=r):r=e[15],r}function ze(n,e){if(Array.isArray(n))return n;if(n&&typeof n=="object"){const s=n[e];if(Array.isArray(s))return s}return[]}function St(n){const e=(n??"").toLowerCase();return e.includes("pass")||e.includes("success")||e.includes("ok")?"success":e.includes("fail")||e.includes("error")?"destructive":e.includes("run")||e.includes("pend")||e.includes("progress")?"warning":"secondary"}function Es(n,e){const s=St(n);return s==="success"?e("mainPanelTabs.e2eTab.statusPassed"):s==="destructive"?e("mainPanelTabs.e2eTab.statusFailed"):s==="warning"?e("mainPanelTabs.e2eTab.statusRunning"):n??"—"}function Rs(n,e){const s=[],l=n.summary?.exitCode;typeof l=="number"&&s.push(e("mainPanelTabs.e2eTab.summaryExitCode",{code:String(l)}));const a=n.summary?.fileCount;return typeof a=="number"&&s.push(e("mainPanelTabs.e2eTab.summaryFiles",{count:String(a)})),s.length>0?s.join(" · "):"—"}function Ct(n){if(!n)return"—";const e=new Date(n).getTime();if(Number.isNaN(e))return"—";const s=Math.round((Date.now()-e)/1e3),l=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),a=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[i,r]of a)if(Math.abs(s)>=r)return l.format(-Math.round(s/r),i);return l.format(-s,"second")}class tt extends Error{constructor(e,s){super(e),this.status=s}status}function Ls(n){return n instanceof tt&&n.status===401}function Oe(n){return n instanceof Error?n.message:String(n)}async function Ie(n){const e=await fetch(n),s=await e.json().catch(()=>({}));if(!e.ok){const l=s&&typeof s=="object"&&"error"in s?String(s.error):`request failed (${e.status})`;throw new tt(l,e.status)}return s}async function qe(n,e,s){const l=await fetch(n,{method:e,headers:s!==void 0?{"Content-Type":"application/json"}:{},body:s!==void 0?JSON.stringify(s):void 0}),a=await l.json().catch(()=>({}));if(!l.ok){const i=a&&typeof a=="object"&&"error"in a?String(a.error):`request failed (${l.status})`;throw new tt(i,l.status)}return a}function kt(n){const e=L.c(15),{title:s,count:l,action:a,children:i}=n;let r;e[0]!==s?(r=t.jsx("h3",{className:"text-sm font-medium text-foreground",children:s}),e[0]=s,e[1]=r):r=e[1];let o;e[2]!==l?(o=typeof l=="number"&&l>0&&t.jsx(te,{variant:"secondary",className:"tabular-nums",children:l}),e[2]=l,e[3]=o):o=e[3];let c;e[4]!==a?(c=a?t.jsx("div",{className:"ml-auto",children:a}):null,e[4]=a,e[5]=c):c=e[5];let m;e[6]!==r||e[7]!==o||e[8]!==c?(m=t.jsxs("header",{className:"flex items-center gap-2 px-4 py-3 border-b border-border",children:[r,o,c]}),e[6]=r,e[7]=o,e[8]=c,e[9]=m):m=e[9];let d;e[10]!==i?(d=t.jsx("div",{className:"p-2",children:i}),e[10]=i,e[11]=d):d=e[11];let u;return e[12]!==m||e[13]!==d?(u=t.jsxs("section",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[m,d]}),e[12]=m,e[13]=d,e[14]=u):u=e[14],u}function $t(n){const e=L.c(3),{cols:s}=n;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[0,1,2],e[0]=l):l=e[0];let a;return e[1]!==s?(a=t.jsx("div",{className:"flex flex-col gap-2 p-2",children:l.map(i=>t.jsx("div",{className:"flex gap-3",children:Array.from({length:s}).map(As)},i))}),e[1]=s,e[2]=a):a=e[2],a}function As(n,e){return t.jsx($e,{className:"h-4 flex-1"},e)}function Dt(n){const e=L.c(2),{children:s}=n;let l;return e[0]!==s?(l=t.jsx("div",{className:"px-3 py-6 text-sm text-muted-foreground",children:s}),e[0]=s,e[1]=l):l=e[1],l}function Fs(n){const e=L.c(117),{base:s,orgSlug:l,site:a}=n,i=Ee(),r=Qe(),[o,c]=pe.useState(!1),[m,d]=pe.useState(""),[u,T]=pe.useState(Me),[p,f]=pe.useState("");let x;e[0]!==l||e[1]!==a?(x=xe.e2eTypes(l,a),e[0]=l,e[1]=a,e[2]=x):x=e[2];let v;e[3]!==s?(v=()=>Ie(`${s}/e2e/types`),e[3]=s,e[4]=v):v=e[4];let y;e[5]!==o||e[6]!==x||e[7]!==v?(y={queryKey:x,queryFn:v,enabled:o,retry:!1,staleTime:6e4},e[5]=o,e[6]=x,e[7]=v,e[8]=y):y=e[8];const h=_e(y),P=ze(h.data,"items");let g;e[9]!==s?(g=me=>{const st=me.schedule===Me?"":me.schedule,lt=me.url.trim();return qe(`${s}/e2e/runs`,"POST",{command:me.command,...st?{schedule:st}:{},...lt?{url:lt}:{}})},e[9]=s,e[10]=g):g=e[10];let b;e[11]!==l||e[12]!==r||e[13]!==a||e[14]!==i?(b=()=>{r.invalidateQueries({queryKey:xe.e2eRuns(l,a)}),r.invalidateQueries({queryKey:xe.e2eChecks(l,a)}),be.success(i("mainPanelTabs.e2eTab.toastRunQueued")),c(!1),d(""),T(Me),f("")},e[11]=l,e[12]=r,e[13]=a,e[14]=i,e[15]=b):b=e[15];let N;e[16]!==g||e[17]!==b?(N={mutationFn:g,onSuccess:b,onError:Us},e[16]=g,e[17]=b,e[18]=N):N=e[18];const j=Ue(N);let w;e[19]!==m?(w=me=>me.id===m,e[19]=m,e[20]=w):w=e[20];const S=P.find(w);let C,k;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=()=>c(!0),k=t.jsx(ct,{className:"size-4"}),e[21]=C,e[22]=k):(C=e[21],k=e[22]);let D;e[23]!==i?(D=i("mainPanelTabs.e2eTab.runTest"),e[23]=i,e[24]=D):D=e[24];let z;e[25]!==D?(z=t.jsxs(ge,{size:"sm",onClick:C,children:[k,D]}),e[25]=D,e[26]=z):z=e[26];const F=qt,R=It,A="sm:max-w-md";let E;e[27]!==i?(E=i("mainPanelTabs.e2eTab.runTestTitle"),e[27]=i,e[28]=E):E=e[28];let B;e[29]!==E?(B=t.jsx(Vt,{children:t.jsx(Ot,{children:E})}),e[29]=E,e[30]=B):B=e[30];const Y="flex flex-col gap-3";let de;e[31]!==i?(de=i("mainPanelTabs.e2eTab.runTestDescription"),e[31]=i,e[32]=de):de=e[32];let M;e[33]!==de?(M=t.jsx("p",{className:"text-sm text-muted-foreground",children:de}),e[33]=de,e[34]=M):M=e[34];let U;e[35]!==i?(U=i("mainPanelTabs.e2eTab.targetUrl"),e[35]=i,e[36]=U):U=e[36];let I;e[37]!==U?(I=t.jsx(Be,{htmlFor:"e2e-url",children:U}),e[37]=U,e[38]=I):I=e[38];let Z;e[39]!==i?(Z=i("mainPanelTabs.e2eTab.targetUrlPlaceholder"),e[39]=i,e[40]=Z):Z=e[40];let G;e[41]===Symbol.for("react.memo_cache_sentinel")?(G=me=>f(me.target.value),e[41]=G):G=e[41];let q;e[42]!==j.isPending||e[43]!==Z||e[44]!==p?(q=t.jsx(Ut,{id:"e2e-url",type:"url",inputMode:"url",placeholder:Z,value:p,onChange:G,className:"font-mono text-xs",disabled:j.isPending}),e[42]=j.isPending,e[43]=Z,e[44]=p,e[45]=q):q=e[45];let V;e[46]!==i?(V=i("mainPanelTabs.e2eTab.targetUrlHint"),e[46]=i,e[47]=V):V=e[47];let O;e[48]!==V?(O=t.jsx("p",{className:"text-xs text-muted-foreground",children:V}),e[48]=V,e[49]=O):O=e[49];let H;e[50]!==I||e[51]!==q||e[52]!==O?(H=t.jsxs("div",{className:"flex flex-col gap-2",children:[I,q,O]}),e[50]=I,e[51]=q,e[52]=O,e[53]=H):H=e[53];const se="flex flex-col gap-2";let _;e[54]!==i?(_=i("mainPanelTabs.e2eTab.selectType"),e[54]=i,e[55]=_):_=e[55];let ee;e[56]!==_?(ee=t.jsx(Be,{children:_}),e[56]=_,e[57]=ee):ee=e[57];const Ce=h.isLoading?t.jsx($e,{className:"h-9 w-full"}):h.error?t.jsx("p",{className:"text-xs text-destructive",children:i("mainPanelTabs.e2eTab.typesError")}):P.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:i("mainPanelTabs.e2eTab.noTypes")}):t.jsxs(nt,{value:m,onValueChange:d,children:[t.jsx(at,{className:"w-full",children:t.jsx(rt,{placeholder:i("mainPanelTabs.e2eTab.selectTypePlaceholder")})}),t.jsx(it,{children:P.map(Ms)})]});let le;e[58]!==S?(le=S?.description&&t.jsx("p",{className:"text-xs text-muted-foreground",children:S.description}),e[58]=S,e[59]=le):le=e[59];let ne;e[60]!==ee||e[61]!==Ce||e[62]!==le?(ne=t.jsxs("div",{className:se,children:[ee,Ce,le]}),e[60]=ee,e[61]=Ce,e[62]=le,e[63]=ne):ne=e[63];let ae;e[64]!==i?(ae=i("mainPanelTabs.e2eTab.scheduleLabel"),e[64]=i,e[65]=ae):ae=e[65];let he;e[66]!==ae?(he=t.jsx(Be,{children:ae}),e[66]=ae,e[67]=he):he=e[67];let ue;e[68]===Symbol.for("react.memo_cache_sentinel")?(ue=t.jsx(at,{className:"w-full",children:t.jsx(rt,{})}),e[68]=ue):ue=e[68];let re;e[69]!==i?(re=_s.map(me=>t.jsx(Tt,{value:me.value,children:i(me.labelKey)},me.value||"once")),e[69]=i,e[70]=re):re=e[70];let ie;e[71]!==re?(ie=t.jsx(it,{children:re}),e[71]=re,e[72]=ie):ie=e[72];let oe;e[73]!==u||e[74]!==ie?(oe=t.jsxs(nt,{value:u,onValueChange:T,children:[ue,ie]}),e[73]=u,e[74]=ie,e[75]=oe):oe=e[75];let ce;e[76]!==he||e[77]!==oe?(ce=t.jsxs("div",{className:"flex flex-col gap-2",children:[he,oe]}),e[76]=he,e[77]=oe,e[78]=ce):ce=e[78];let fe;e[79]!==M||e[80]!==H||e[81]!==ne||e[82]!==ce?(fe=t.jsxs("div",{className:Y,children:[M,H,ne,ce]}),e[79]=M,e[80]=H,e[81]=ne,e[82]=ce,e[83]=fe):fe=e[83];let $;e[84]===Symbol.for("react.memo_cache_sentinel")?($=()=>c(!1),e[84]=$):$=e[84];const Q=j.isPending;let K;e[85]!==i?(K=i("mainPanelTabs.e2eTab.cancel"),e[85]=i,e[86]=K):K=e[86];let J;e[87]!==j.isPending||e[88]!==K?(J=t.jsx(ge,{variant:"outline",type:"button",onClick:$,disabled:Q,children:K}),e[87]=j.isPending,e[88]=K,e[89]=J):J=e[89];let je;e[90]!==m||e[91]!==j||e[92]!==u||e[93]!==p?(je=()=>m&&j.mutate({command:m,schedule:u,url:p}),e[90]=m,e[91]=j,e[92]=u,e[93]=p,e[94]=je):je=e[94];const Ke=!m||j.isPending;let Te;e[95]!==j.isPending||e[96]!==i?(Te=j.isPending?i("mainPanelTabs.e2eTab.running"):i("mainPanelTabs.e2eTab.runConfirm"),e[95]=j.isPending,e[96]=i,e[97]=Te):Te=e[97];let ve;e[98]!==je||e[99]!==Ke||e[100]!==Te?(ve=t.jsx(ge,{type:"button",onClick:je,disabled:Ke,children:Te}),e[98]=je,e[99]=Ke,e[100]=Te,e[101]=ve):ve=e[101];let Ne;e[102]!==J||e[103]!==ve?(Ne=t.jsxs(Kt,{children:[J,ve]}),e[102]=J,e[103]=ve,e[104]=Ne):Ne=e[104];let ye;e[105]!==R||e[106]!==B||e[107]!==fe||e[108]!==Ne?(ye=t.jsxs(R,{className:A,children:[B,fe,Ne]}),e[105]=R,e[106]=B,e[107]=fe,e[108]=Ne,e[109]=ye):ye=e[109];let Pe;e[110]!==F||e[111]!==o||e[112]!==ye?(Pe=t.jsx(F,{open:o,onOpenChange:c,children:ye}),e[110]=F,e[111]=o,e[112]=ye,e[113]=Pe):Pe=e[113];let Ae;return e[114]!==z||e[115]!==Pe?(Ae=t.jsxs(t.Fragment,{children:[z,Pe]}),e[114]=z,e[115]=Pe,e[116]=Ae):Ae=e[116],Ae}function Ms(n){return t.jsx(Tt,{value:n.id,textValue:n.label??n.id,children:t.jsx("span",{className:"text-sm",children:n.label??n.id})},n.id)}function Us(n){return be.error(Oe(n))}function Is(){const n=L.c(17),e=Ee(),[s,l]=pe.useState(!1);let a;n[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>l(qs),n[0]=a):a=n[0];let i;n[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Mt,{className:"size-4 text-muted-foreground"}),n[1]=i):i=n[1];let r;n[2]!==e?(r=e("mainPanelTabs.e2eTab.helpTitle"),n[2]=e,n[3]=r):r=n[3];let o;n[4]!==r?(o=t.jsx("span",{className:"text-sm font-medium text-foreground",children:r}),n[4]=r,n[5]=o):o=n[5];let c;n[6]!==s?(c=s?t.jsx(dt,{className:"ml-auto size-4 text-muted-foreground"}):t.jsx(ot,{className:"ml-auto size-4 text-muted-foreground"}),n[6]=s,n[7]=c):c=n[7];let m;n[8]!==o||n[9]!==c?(m=t.jsxs("button",{type:"button",onClick:a,className:"flex w-full items-center gap-2 px-4 py-3 text-left",children:[i,o,c]}),n[8]=o,n[9]=c,n[10]=m):m=n[10];let d;n[11]!==s||n[12]!==e?(d=s&&t.jsxs("div",{className:"flex flex-col gap-2 border-t border-border px-4 py-3 text-sm text-muted-foreground",children:[t.jsx("p",{children:e("mainPanelTabs.e2eTab.helpIntro")}),t.jsx("p",{children:e("mainPanelTabs.e2eTab.helpTypes")}),t.jsx("p",{children:e("mainPanelTabs.e2eTab.helpRun")}),t.jsx("p",{children:e("mainPanelTabs.e2eTab.helpResults")})]}),n[11]=s,n[12]=e,n[13]=d):d=n[13];let u;return n[14]!==m||n[15]!==d?(u=t.jsxs("div",{className:"rounded-xl border border-border bg-card",children:[m,d]}),n[14]=m,n[15]=d,n[16]=u):u=n[16],u}function qs(n){return!n}function Vs(n){const e=L.c(71),{base:s,orgSlug:l,site:a,enabled:i}=n,r=Ee(),o=Qe(),[c,m]=pe.useState(!1);let d;e[0]!==l||e[1]!==a?(d=xe.e2eChecks(l,a),e[0]=l,e[1]=a,e[2]=d):d=e[2];let u;e[3]!==s?(u=()=>Ie(`${s}/e2e/checks`),e[3]=s,e[4]=u):u=e[4];let T;e[5]!==i||e[6]!==d||e[7]!==u?(T={queryKey:d,queryFn:u,enabled:i,retry:!1,staleTime:15e3,refetchInterval:Bs},e[5]=i,e[6]=d,e[7]=u,e[8]=T):T=e[8];const p=_e(T),f=ze(p.data,"items");let x;e[9]!==l||e[10]!==o||e[11]!==a?(x=()=>{o.invalidateQueries({queryKey:xe.e2eChecks(l,a)}),o.invalidateQueries({queryKey:xe.e2eRuns(l,a)})},e[9]=l,e[10]=o,e[11]=a,e[12]=x):x=e[12];const v=x;let y;e[13]!==s?(y=_=>qe(`${s}/e2e/runs`,"POST",{command:_}),e[13]=s,e[14]=y):y=e[14];let h;e[15]!==v||e[16]!==r?(h=()=>{v(),be.success(r("mainPanelTabs.e2eTab.toastRunQueued"))},e[15]=v,e[16]=r,e[17]=h):h=e[17];let P;e[18]!==y||e[19]!==h?(P={mutationFn:y,onSuccess:h,onError:Ks},e[18]=y,e[19]=h,e[20]=P):P=e[20];const g=Ue(P);let b;e[21]!==s?(b=()=>qe(`${s}/e2e/checks`,"DELETE"),e[21]=s,e[22]=b):b=e[22];let N;e[23]!==v||e[24]!==r?(N=()=>{v(),be.success(r("mainPanelTabs.e2eTab.toastCheckDeleted")),m(!1)},e[23]=v,e[24]=r,e[25]=N):N=e[25];let j;e[26]!==b||e[27]!==N?(j={mutationFn:b,onSuccess:N,onError:Os},e[26]=b,e[27]=N,e[28]=j):j=e[28];const w=Ue(j),S=g.isPending||w.isPending,C=kt;let k;e[29]!==r?(k=r("mainPanelTabs.e2eTab.checksSection"),e[29]=r,e[30]=k):k=e[30];const D=f.length,z=f.length>0?t.jsxs(ge,{size:"sm",variant:"ghost",className:"text-destructive hover:text-destructive",onClick:()=>m(!0),disabled:S,children:[t.jsx(mt,{className:"size-4"}),r("mainPanelTabs.e2eTab.deleteAllChecks")]}):null,F=p.isLoading?t.jsx($t,{cols:6}):p.error?t.jsx(Dt,{children:r("mainPanelTabs.e2eTab.checksError")}):f.length===0?t.jsx(De,{icon:t.jsx(ke,{className:"size-5"}),title:r("mainPanelTabs.e2eTab.noChecks")}):t.jsxs(Xe,{children:[t.jsx(Ye,{children:t.jsxs(we,{children:[t.jsx(W,{children:r("mainPanelTabs.e2eTab.colStatus")}),t.jsx(W,{children:r("mainPanelTabs.e2eTab.colCommand")}),t.jsx(W,{children:r("mainPanelTabs.e2eTab.colSchedule")}),t.jsx(W,{children:r("mainPanelTabs.e2eTab.url")}),t.jsx(W,{children:r("mainPanelTabs.e2eTab.colUpdated")}),t.jsx(W,{className:"w-[1%]"})]})}),t.jsx(Ze,{children:f.map((_,ee)=>t.jsxs(we,{children:[t.jsx(X,{children:t.jsx(zs,{phase:_.phase,t:r})}),t.jsx(X,{className:"font-mono text-xs text-muted-foreground",children:_.command??"—"}),t.jsx(X,{className:"font-mono text-xs text-muted-foreground",children:_.schedule?_.schedule:"—"}),t.jsx(X,{className:"max-w-[220px] truncate font-mono text-xs text-muted-foreground",children:_.url??"—"}),t.jsx(X,{className:"text-xs text-muted-foreground whitespace-nowrap",children:Ct(_.updatedAt)}),t.jsx(X,{className:"text-right align-middle whitespace-nowrap",children:t.jsx(ge,{size:"icon-sm",variant:"ghost","aria-label":r("mainPanelTabs.e2eTab.rerun"),title:r("mainPanelTabs.e2eTab.rerun"),onClick:()=>_.command&&g.mutate(_.command),disabled:S||!_.command,children:t.jsx(ct,{className:"size-4"})})})]},`${_.subject??a}-${_.command??""}-${ee}`))})]});let R;e[31]!==r?(R=r("mainPanelTabs.e2eTab.confirmDeleteCheckTitle"),e[31]=r,e[32]=R):R=e[32];let A;e[33]!==R?(A=t.jsx(ut,{children:R}),e[33]=R,e[34]=A):A=e[34];let E;e[35]!==r?(E=r("mainPanelTabs.e2eTab.confirmDeleteCheck"),e[35]=r,e[36]=E):E=e[36];let B;e[37]!==E?(B=t.jsx(ft,{children:E}),e[37]=E,e[38]=B):B=e[38];let Y;e[39]!==A||e[40]!==B?(Y=t.jsxs(xt,{children:[A,B]}),e[39]=A,e[40]=B,e[41]=Y):Y=e[41];const de=w.isPending;let M;e[42]!==r?(M=r("mainPanelTabs.e2eTab.cancel"),e[42]=r,e[43]=M):M=e[43];let U;e[44]!==w.isPending||e[45]!==M?(U=t.jsx(pt,{disabled:de,children:M}),e[44]=w.isPending,e[45]=M,e[46]=U):U=e[46];let I;e[47]!==w?(I=_=>{_.preventDefault(),w.mutate()},e[47]=w,e[48]=I):I=e[48];const Z=w.isPending;let G;e[49]!==r?(G=r("mainPanelTabs.e2eTab.delete"),e[49]=r,e[50]=G):G=e[50];let q;e[51]!==w.isPending||e[52]!==I||e[53]!==G?(q=t.jsx(ht,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:I,disabled:Z,children:G}),e[51]=w.isPending,e[52]=I,e[53]=G,e[54]=q):q=e[54];let V;e[55]!==U||e[56]!==q?(V=t.jsxs(bt,{children:[U,q]}),e[55]=U,e[56]=q,e[57]=V):V=e[57];let O;e[58]!==Y||e[59]!==V?(O=t.jsxs(gt,{children:[Y,V]}),e[58]=Y,e[59]=V,e[60]=O):O=e[60];let H;e[61]!==c||e[62]!==O?(H=t.jsx(jt,{open:c,onOpenChange:m,children:O}),e[61]=c,e[62]=O,e[63]=H):H=e[63];let se;return e[64]!==C||e[65]!==f||e[66]!==k||e[67]!==z||e[68]!==F||e[69]!==H?(se=t.jsxs(C,{title:k,count:D,action:z,children:[F,H]}),e[64]=C,e[65]=f,e[66]=k,e[67]=z,e[68]=F,e[69]=H,e[70]=se):se=e[70],se}function Os(n){return be.error(Oe(n))}function Ks(n){return be.error(Oe(n))}function Bs(n){return ze(n.state.data,"items").some(Hs)?5e3:!1}function Hs(n){const e=(n.phase??"").toLowerCase();return e===""||e==="running"||e==="pending"}function Qs(n){const e=L.c(107),{virtualMcpId:s}=n,l=Ee(),{org:a}=Et(),i=Bt(s),r=Ht(i),o=!!r,c=r?`/api/${a.slug}/hosting/${encodeURIComponent(r)}`:"",m=Qe(),[d,u]=pe.useState(null),[T,p]=pe.useState(null);let f;e[0]!==c?(f=()=>Ie(`${c}/e2e/checks`),e[0]=c,e[1]=f):f=e[1];const x=_e({queryKey:xe.e2eChecks(a.slug,r??""),queryFn:f,enabled:o,retry:!1,staleTime:15e3}),v=ze(x.data,"items").some(Ws);let y;e[2]!==c?(y=()=>Ie(`${c}/e2e/runs`),e[2]=c,e[3]=y):y=e[3];const h=_e({queryKey:xe.e2eRuns(a.slug,r??""),queryFn:y,enabled:o,retry:!1,staleTime:3e4,refetchInterval:v?5e3:!1});let P;e[4]!==c?(P=$=>qe(`${c}/e2e/runs/${encodeURIComponent($)}`,"DELETE"),e[4]=c,e[5]=P):P=e[5];const g=Ue({mutationFn:P,onSuccess:()=>{m.invalidateQueries({queryKey:xe.e2eRuns(a.slug,r??"")}),be.success(l("mainPanelTabs.e2eTab.toastRunDeleted")),p(null)},onError:Js});if(!r){let $;e[6]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ke,{className:"size-5"}),e[6]=$):$=e[6];let Q;e[7]!==l?(Q=l("mainPanelTabs.e2eTab.noSiteTitle"),e[7]=l,e[8]=Q):Q=e[8];let K;e[9]!==l?(K=l("mainPanelTabs.e2eTab.noSiteDescription"),e[9]=l,e[10]=K):K=e[10];let J;return e[11]!==Q||e[12]!==K?(J=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(De,{icon:$,title:Q,description:K})}),e[11]=Q,e[12]=K,e[13]=J):J=e[13],J}if(Ls(h.error)){let $;e[14]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ke,{className:"size-5"}),e[14]=$):$=e[14];let Q;e[15]!==l?(Q=l("mainPanelTabs.e2eTab.notConnectedTitle"),e[15]=l,e[16]=Q):Q=e[16];let K;e[17]!==l?(K=l("mainPanelTabs.e2eTab.notConnectedDescription"),e[17]=l,e[18]=K):K=e[18];let J;return e[19]!==Q||e[20]!==K?(J=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(De,{icon:$,title:Q,description:K})}),e[19]=Q,e[20]=K,e[21]=J):J=e[21],J}const b=ze(h.data,"items"),N="h-full min-h-0 overflow-y-auto",j="mx-auto flex max-w-4xl flex-col gap-6 p-6";let w;e[22]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(ke,{className:"size-[18px] text-muted-foreground"}),e[22]=w):w=e[22];let S;e[23]!==l?(S=l("mainPanelTabs.e2eTab.title"),e[23]=l,e[24]=S):S=e[24];let C;e[25]!==S?(C=t.jsxs("div",{className:"flex items-center gap-2",children:[w,t.jsx("h2",{className:"text-base font-semibold text-foreground",children:S})]}),e[25]=S,e[26]=C):C=e[26];const k=l("mainPanelTabs.e2eTab.subtitle",{site:r});let D;e[27]!==k?(D=t.jsx("p",{className:"text-sm text-muted-foreground",children:k}),e[27]=k,e[28]=D):D=e[28];let z;e[29]!==D||e[30]!==C?(z=t.jsxs("div",{className:"flex flex-col gap-1",children:[C,D]}),e[29]=D,e[30]=C,e[31]=z):z=e[31];let F;e[32]!==c||e[33]!==a.slug||e[34]!==r?(F=t.jsx(Fs,{base:c,orgSlug:a.slug,site:r}),e[32]=c,e[33]=a.slug,e[34]=r,e[35]=F):F=e[35];let R;e[36]!==z||e[37]!==F?(R=t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[z,F]}),e[36]=z,e[37]=F,e[38]=R):R=e[38];let A;e[39]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(Is,{}),e[39]=A):A=e[39];let E;e[40]!==c||e[41]!==o||e[42]!==a.slug||e[43]!==r?(E=t.jsx(Vs,{base:c,orgSlug:a.slug,site:r,enabled:o}),e[40]=c,e[41]=o,e[42]=a.slug,e[43]=r,e[44]=E):E=e[44];const B=kt;let Y;e[45]!==l?(Y=l("mainPanelTabs.e2eTab.runs"),e[45]=l,e[46]=Y):Y=e[46];const de=h.isLoading?t.jsx($t,{cols:5}):h.error?t.jsx(Dt,{children:l("mainPanelTabs.e2eTab.runsError")}):b.length===0?t.jsx(De,{icon:t.jsx(ke,{className:"size-5"}),title:l("mainPanelTabs.e2eTab.noRuns")}):t.jsxs(Xe,{children:[t.jsx(Ye,{children:t.jsxs(we,{children:[t.jsx(W,{children:l("mainPanelTabs.e2eTab.colRun")}),t.jsx(W,{children:l("mainPanelTabs.e2eTab.colStatus")}),t.jsx(W,{children:l("mainPanelTabs.e2eTab.colCommand")}),t.jsx(W,{children:l("mainPanelTabs.e2eTab.colStarted")}),t.jsx(W,{children:l("mainPanelTabs.e2eTab.colSummary")}),t.jsx(W,{className:"w-[1%]"})]})}),t.jsx(Ze,{children:b.map($=>t.jsxs(we,{className:"cursor-pointer",onClick:()=>u($),children:[t.jsx(X,{className:"font-mono text-xs",children:$.runId}),t.jsx(X,{children:t.jsx(te,{variant:St($.status),children:Es($.status,l)})}),t.jsx(X,{className:"font-mono text-xs text-muted-foreground",children:$.summary?.command??"—"}),t.jsx(X,{className:"text-xs text-muted-foreground whitespace-nowrap",children:Ct($.startedAt)}),t.jsx(X,{className:"text-xs text-muted-foreground whitespace-nowrap tabular-nums",children:Rs($,l)}),t.jsx(X,{className:"text-right align-middle",children:t.jsx(ge,{size:"icon-sm",variant:"ghost","aria-label":l("mainPanelTabs.e2eTab.deleteRun"),onClick:Q=>{Q.stopPropagation(),p($)},disabled:g.isPending,children:t.jsx(mt,{className:"size-4"})})})]},$.runId))})]});let M;e[47]!==B||e[48]!==b||e[49]!==Y||e[50]!==de?(M=t.jsx(B,{title:Y,count:b.length,children:de}),e[47]=B,e[48]=b,e[49]=Y,e[50]=de,e[51]=M):M=e[51];let U;e[52]!==R||e[53]!==A||e[54]!==E||e[55]!==M?(U=t.jsxs("div",{className:j,children:[R,A,E,M]}),e[52]=R,e[53]=A,e[54]=E,e[55]=M,e[56]=U):U=e[56];let I;e[57]!==u?(I=$=>{$||u(null)},e[57]=u,e[58]=I):I=e[58];let Z;e[59]!==c||e[60]!==a.slug||e[61]!==d||e[62]!==r||e[63]!==I?(Z=t.jsx(Ds,{base:c,orgSlug:a.slug,site:r,run:d,onOpenChange:I}),e[59]=c,e[60]=a.slug,e[61]=d,e[62]=r,e[63]=I,e[64]=Z):Z=e[64];const G=T!=null;let q;e[65]!==p?(q=$=>{$||p(null)},e[65]=p,e[66]=q):q=e[66];let V;e[67]!==l?(V=l("mainPanelTabs.e2eTab.confirmDeleteRunTitle"),e[67]=l,e[68]=V):V=e[68];let O;e[69]!==V?(O=t.jsx(ut,{children:V}),e[69]=V,e[70]=O):O=e[70];const H=T?.runId??"";let se;e[71]!==l||e[72]!==H?(se=l("mainPanelTabs.e2eTab.confirmDeleteRun",{runId:H}),e[71]=l,e[72]=H,e[73]=se):se=e[73];let _;e[74]!==se?(_=t.jsx(ft,{children:se}),e[74]=se,e[75]=_):_=e[75];let ee;e[76]!==O||e[77]!==_?(ee=t.jsxs(xt,{children:[O,_]}),e[76]=O,e[77]=_,e[78]=ee):ee=e[78];const Ce=g.isPending;let le;e[79]!==l?(le=l("mainPanelTabs.e2eTab.cancel"),e[79]=l,e[80]=le):le=e[80];let ne;e[81]!==g.isPending||e[82]!==le?(ne=t.jsx(pt,{disabled:Ce,children:le}),e[81]=g.isPending,e[82]=le,e[83]=ne):ne=e[83];let ae;e[84]!==g||e[85]!==T?(ae=$=>{$.preventDefault(),T&&g.mutate(T.runId)},e[84]=g,e[85]=T,e[86]=ae):ae=e[86];const he=g.isPending;let ue;e[87]!==l?(ue=l("mainPanelTabs.e2eTab.delete"),e[87]=l,e[88]=ue):ue=e[88];let re;e[89]!==g.isPending||e[90]!==ae||e[91]!==ue?(re=t.jsx(ht,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:ae,disabled:he,children:ue}),e[89]=g.isPending,e[90]=ae,e[91]=ue,e[92]=re):re=e[92];let ie;e[93]!==ne||e[94]!==re?(ie=t.jsxs(bt,{children:[ne,re]}),e[93]=ne,e[94]=re,e[95]=ie):ie=e[95];let oe;e[96]!==ee||e[97]!==ie?(oe=t.jsxs(gt,{children:[ee,ie]}),e[96]=ee,e[97]=ie,e[98]=oe):oe=e[98];let ce;e[99]!==G||e[100]!==q||e[101]!==oe?(ce=t.jsx(jt,{open:G,onOpenChange:q,children:oe}),e[99]=G,e[100]=q,e[101]=oe,e[102]=ce):ce=e[102];let fe;return e[103]!==U||e[104]!==Z||e[105]!==ce?(fe=t.jsxs("div",{className:N,children:[U,Z,ce]}),e[103]=U,e[104]=Z,e[105]=ce,e[106]=fe):fe=e[106],fe}function Js(n){return be.error(Oe(n))}function Ws(n){const e=(n.phase??"").toLowerCase();return e===""||e==="running"||e==="pending"}function Xs(){const n=L.c(3),e=cs(),s=os();let l;return n[0]!==s.e2e||n[1]!==e?(l=s.e2e?t.jsx(Qs,{virtualMcpId:e}):t.jsx(is,{virtualMcpId:e}),n[0]=s.e2e,n[1]=e,n[2]=l):l=n[2],l}function va(){const n=L.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Rt.Content,{children:t.jsx(Xs,{})}),n[0]=e):e=n[0],e}export{va as default};
|
|
1
|
+
import{c as L,b as Ee,m as _e,j as t,aP as $e,l as Ve,K as xe,B as ge,r as pe,Z as _t,d2 as zt,af as ot,X as Et,o as Qe,e as Ue,t as be}from"./index-D3nJxkUH.js";import{C as Rt}from"./index-DdFsa5v8.js";import{H as Je,v as We,bo as Lt,bp as At,bq as Ft,q as ke,br as ct,I as Mt}from"./agent-icon-DDAJOUrn.js";import{t as dt}from"./ChevronUp-CzhJ7suW.js";import{s as mt}from"./Trash01-BO0o39cY.js";import{B as te}from"./badge-D1Fgp4NK.js";import{I as Ut}from"./input-DooV2Ahl.js";import{L as Be}from"./label-E-Ho38zd.js";import{A as ut,a as ft,b as xt,c as pt,g as ht,d as bt,e as gt,f as jt}from"./alert-dialog-DXkQ7Ca0.js";import{b as It,D as qt,c as Vt,d as Ot,e as Kt}from"./dialog-BlQDNCRy.js";import{S as nt,b as at,a as rt,d as it,c as Tt}from"./select-Cm7yNA4g.js";import{e as Xe,a as Ye,b as we,T as W,d as Ze,c as X}from"./table-CpzSd0oU.js";import{E as De}from"./empty-state-D06HpvIU.js";import{a as Bt}from"./repository-binding-DFSnpl0R.js";import{r as Ht}from"./site-slug-DebpOoQq.js";import{i as Re}from"./CheckCircle-D_bJsyQG.js";import{n as vt}from"./LinkExternal01-Dlk0nKfP.js";import{i as Qt}from"./Monitor01-DHA0hU52.js";import{c as Jt}from"./UserSquare-Bu4-Qdjg.js";import{C as Wt,a as Xt,b as Yt}from"./collapsible-r5oFTjOB.js";import{T as Zt,a as Gt,c as es,b as ts}from"./tabs-0Iyv-61_.js";import{S as ss,d as ls,c as ns,a as as,b as rs}from"./sheet-Cl5ZHtDF.js";import{S as is}from"./settings-tab-DiBpt4oT.js";import{b as os}from"./use-organization-settings-BGBvwg83.js";import{b as cs}from"./thread-route-C05ythGW.js";import"./use-mobile-C1Sz5IA3.js";import"./thread-button-DEB6CyTi.js";import"./Image01-H-e_GJje.js";import"./ZoomOut-CXHZqqpc.js";import"./use-chat-layout-state-DCpMMZxe.js";import"./use-panel-navigate-Bq9qA6eC.js";import"./use-project-scope-ehoEOmYH.js";import"./thread-intent-BE88qyQp.js";import"./use-mcp-client-D1zolVZP.js";import"./auth-DuH2btxq.js";import"./backoff-8mStPHYB.js";import"./task-board-DH3h4Dr1.js";import"./schema-B6UkojL_.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-DNXq5NQC.js";import"./index-DoX5CV5K.js";import"./toolbar-icon-button-Ddj8hi06.js";import"./shell-layout-DhbvX157.js";import"./avatar-DmQG-hQB.js";import"./User01-DU_G2Tq0.js";import"./Palette-Cz5AUPN9.js";import"./XClose-ZLANuUvR.js";import"./download-app-dialog-CQqbCbsr.js";import"./Check-0QivlcNy.js";import"./Copy01-Dqk5v2W3.js";import"./Plus-G6ow2MLm.js";import"./Tool01-DcMZ63HP.js";import"./command-CbmtoCAJ.js";import"./index-I6oftDSE.js";import"./SearchMd-BVf9Tbqw.js";import"./integration-icon-_VlEmGlM.js";import"./project-icon-CrY94bRz.js";import"./new-project-dialog-N9VofWxP.js";import"./ArrowLeft-CoetlmPD.js";import"./repository-import-picker-CxV4PkyQ.js";import"./use-navigate-to-agent-B9IjIXwZ.js";import"./repository-picker-BlqOm-MJ.js";import"./useInfiniteQuery-BESYkBal.js";import"./infiniteQueryObserver-Pwh-FfBK.js";import"./collection-search-BR1v6pag.js";import"./ShoppingBag01-B8MyeZ-e.js";import"./use-debounced-value-CKP9u9KG.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DRvuCpsR.js";import"./autosend-BiXCJJ84.js";import"./use-org-sso-BGCHYImg.js";import"./resizable-BcGXSTm5.js";import"./AlertCircle-W5I8YW4R.js";import"./ArrowUp-Bd_AtNgp.js";import"./ArrowRight-B6-T90AD.js";import"./CreditCard01-HKMBsj25.js";import"./DotsVertical-Dt97OOeo.js";import"./Key01-DS1cuydn.js";import"./Link01-Dgt626sr.js";import"./Sun-C4sxcfO_.js";import"./Upload01-CefHvaCG.js";import"./Users01-CJcsigwj.js";import"./X-h03RFcZk.js";import"./extract-connection-data-Dl3xTxEv.js";import"./metadata-D72DunRR.js";import"./connection-BPXrZQ_h.js";import"./chat-context-BMOjz7_x.js";import"./use-decopilot-events-qHiW0p1_.js";import"./use-ai-providers-JF8SqOOF.js";import"./location-DBePU4bz.js";import"./build-improve-prompt-doc-oWqRrUfD.js";import"./empty-state-B_enrvzQ.js";import"./use-date-fns-locale-4HWrSHoc.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-CTvqDLuq.js";import"./mcp-oauth-DyAthDLR.js";import"./textarea-Cs-kg39J.js";import"./use-debounced-autosave-B7fupUso.js";import"./add-connection-dialog-DjSYjFta.js";import"./connection-card-B8synrRX.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-BFdQcz5_.js";import"./form-UBiksyOk.js";import"./connection-form-helpers-BzQl_S_0.js";import"./authenticate-and-persist-oauth-BZiJV3dt.js";import"./collection-tabs-BSnxiqyy.js";import"./use-infinite-scroll-M4Ifk0Id.js";import"./useSuspenseInfiniteQuery-DyzaeZcm.js";import"./file-type-icon-BhoTKsUI.js";import"./use-org-fs-DHsvLMfF.js";import"./checkbox-Ds1JdOtW.js";import"./search-input-CDUTIy-8.js";import"./use-mcp-auth-status-B7Q0d1M3.js";import"./types-Ulhrp9MO.js";import"./use-mcp-tools-ULbfd_2A.js";import"./use-mcp-prompts-CXqK-JUB.js";import"./utils-CVEq3hMx.js";import"./switch-Dpy0BGGT.js";import"./popover-D5x-U1ly.js";import"./scroll-area-ogl0f4_L.js";import"./use-project-native-view-presence-CeFV8LVU.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-CmJk79gx.js";import"./optimistic-project-sidebar-views-B-4bxO4K.js";import"./virtual-mcp-C8NRJMm1.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-Ts_Mwr3P.js";import"./use-secrets-BqFBRaqm.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";let Nt=class extends Error{constructor(e,s){super(e),this.status=s}status};function ds(n){return n instanceof Nt&&n.status===401}async function ms(n){const e=await fetch(n),s=await e.json().catch(()=>({}));if(!e.ok){const l=s&&typeof s=="object"&&"error"in s?String(s.error):`request failed (${e.status})`;throw new Nt(l,e.status)}return s}function Le(n){return n==null||!Number.isFinite(n)?"—":n>=1e3?`${(n/1e3).toFixed(n>=1e4?0:1)}s`:`${Math.round(n)}ms`}function Ge(n){const e=(n??"").toLowerCase();return e==="pass"||e==="passed"||e==="ok"||e==="success"}function Se(n){const e=(n??"").toLowerCase();return e==="fail"||e==="failed"||e==="error"}function yt(n){const e=(n??"").toLowerCase();return e==="skip"||e==="skipped"}function He(n,e){return n.viewport&&n.viewport.trim()?n.viewport:`viewport-${e}`}function et(n){const e=L.c(12),{status:s,t:l}=n;if(Se(s)){let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(We,{className:"size-3"}),e[0]=r):r=e[0];let o;e[1]!==l?(o=l("mainPanelTabs.e2eTab.statusFailed"),e[1]=l,e[2]=o):o=e[2];let c;return e[3]!==o?(c=t.jsxs(te,{variant:"destructive",children:[r,o]}),e[3]=o,e[4]=c):c=e[4],c}if(Ge(s)){let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Re,{className:"size-3"}),e[5]=r):r=e[5];let o;e[6]!==l?(o=l("mainPanelTabs.e2eTab.statusPassed"),e[6]=l,e[7]=o):o=e[7];let c;return e[8]!==o?(c=t.jsxs(te,{variant:"success",children:[r,o]}),e[8]=o,e[9]=c):c=e[9],c}const a=s??"—";let i;return e[10]!==a?(i=t.jsx(te,{variant:"secondary",children:a}),e[10]=a,e[11]=i):i=e[11],i}function us(n){const e=L.c(4),{status:s}=n;if(Ge(s)){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Re,{className:"size-4 shrink-0 text-success"}),e[0]=a):a=e[0],a}if(Se(s)){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(We,{className:"size-4 shrink-0 text-destructive"}),e[1]=a):a=e[1],a}if(yt(s)){let a;return e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Ft,{className:"size-4 shrink-0 text-muted-foreground"}),e[2]=a):a=e[2],a}let l;return e[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(zt,{className:"size-4 shrink-0 text-muted-foreground/60"}),e[3]=l):l=e[3],l}function fs(n){return Ge(n)?"bg-success":Se(n)?"bg-destructive":yt(n)?"bg-muted-foreground/40":"bg-muted-foreground/25"}function xs(n){const e=L.c(4),{steps:s}=n;if(s.length===0)return null;let l;e[0]!==s?(l=s.map(ps),e[0]=s,e[1]=l):l=e[1];let a;return e[2]!==l?(a=t.jsx("div",{className:"flex flex-wrap items-center gap-1",children:l}),e[2]=l,e[3]=a):a=e[3],a}function ps(n,e){return t.jsx("span",{title:n.name??`step ${e+1}`,className:Ve("size-1.5 rounded-full",fs(n.status))},e)}const hs=[{key:"lcp",label:"LCP",good:2500,poor:4e3,unit:"ms"},{key:"inp",label:"INP",good:200,poor:500,unit:"ms"},{key:"cls",label:"CLS",good:.1,poor:.25,unit:"cls"},{key:"fcp",label:"FCP",good:1800,poor:3e3,unit:"ms"},{key:"ttfb",label:"TTFB",good:800,poor:1800,unit:"ms"}];function Pt(n){const e=L.c(7),{vitals:s}=n;let l,a,i;if(e[0]!==s){i=Symbol.for("react.early_return_sentinel");e:{const o=hs.filter(c=>{const{key:m}=c,d=s[m];return d!=null&&Number.isFinite(d)});if(o.length===0){i=null;break e}l="grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-5",a=o.map(c=>{const{key:m,label:d,good:u,poor:T,unit:p}=c,f=s[m],x=f<=u?"text-success":f<=T?"text-warning":"text-destructive",v=p==="cls"?f.toFixed(3):Le(f);return t.jsxs("div",{className:"flex flex-col gap-1 rounded-lg border border-border bg-muted/30 px-3 py-2",children:[t.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:d}),t.jsx("span",{className:Ve("font-mono text-sm font-semibold tabular-nums",x),children:v})]},m)})}e[0]=s,e[1]=l,e[2]=a,e[3]=i}else l=e[1],a=e[2],i=e[3];if(i!==Symbol.for("react.early_return_sentinel"))return i;let r;return e[4]!==l||e[5]!==a?(r=t.jsx("div",{className:l,children:a}),e[4]=l,e[5]=a,e[6]=r):r=e[6],r}function Fe(n){const e=L.c(17),{icon:s,label:l,badge:a,defaultOpen:i,children:r}=n,o=i===void 0?!1:i,[c,m]=pe.useState(o);let d;e[0]!==c?(d=c?t.jsx(dt,{className:"size-4 text-muted-foreground"}):t.jsx(ot,{className:"size-4 text-muted-foreground"}),e[0]=c,e[1]=d):d=e[1];let u;e[2]!==l?(u=t.jsx("span",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=u):u=e[3];let T;e[4]!==a?(T=a!=null&&t.jsx("span",{className:"ml-auto",children:a}),e[4]=a,e[5]=T):T=e[5];let p;e[6]!==s||e[7]!==d||e[8]!==u||e[9]!==T?(p=t.jsxs(Wt,{className:"flex w-full items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-left hover:bg-muted/40",children:[d,s,u,T]}),e[6]=s,e[7]=d,e[8]=u,e[9]=T,e[10]=p):p=e[10];let f;e[11]!==r?(f=t.jsx(Xt,{className:"pt-2",children:r}),e[11]=r,e[12]=f):f=e[12];let x;return e[13]!==c||e[14]!==p||e[15]!==f?(x=t.jsxs(Yt,{open:c,onOpenChange:m,children:[p,f]}),e[13]=c,e[14]=p,e[15]=f,e[16]=x):x=e[16],x}function bs(n){const e=L.c(51),{step:s,index:l,t:a}=n;let i;e[0]!==s.status?(i=Se(s.status),e[0]=s.status,e[1]=i):i=e[1];const r=i;let o;e[2]!==s.status?(o=t.jsx(us,{status:s.status}),e[2]=s.status,e[3]=o):o=e[3];const c=s.step??l+1;let m;e[4]!==c?(m=t.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/60 tabular-nums",children:c}),e[4]=c,e[5]=m):m=e[5];let d;e[6]!==o||e[7]!==m?(d=t.jsxs("div",{className:"flex flex-col items-center gap-1",children:[o,m]}),e[6]=o,e[7]=m,e[8]=d):d=e[8];let u;e[9]!==l||e[10]!==s.actionDescription||e[11]!==s.name||e[12]!==a?(u=s.name??s.actionDescription??`${a("mainPanelTabs.e2eTab.steps")} ${l+1}`,e[9]=l,e[10]=s.actionDescription,e[11]=s.name,e[12]=a,e[13]=u):u=e[13];let T;e[14]!==s.critical||e[15]!==a?(T=s.critical&&t.jsx(te,{variant:"warning",className:"ml-2 align-middle",children:a("mainPanelTabs.e2eTab.critical")}),e[14]=s.critical,e[15]=a,e[16]=T):T=e[16];let p;e[17]!==u||e[18]!==T?(p=t.jsxs("span",{className:"truncate text-sm font-medium text-foreground",children:[u,T]}),e[17]=u,e[18]=T,e[19]=p):p=e[19];let f;e[20]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Je,{className:"size-3"}),e[20]=f):f=e[20];let x;e[21]!==s.durationMs?(x=Le(s.durationMs),e[21]=s.durationMs,e[22]=x):x=e[22];let v;e[23]!==x?(v=t.jsxs("span",{className:"flex shrink-0 items-center gap-1 font-mono text-[11px] text-muted-foreground tabular-nums",children:[f,x]}),e[23]=x,e[24]=v):v=e[24];let y;e[25]!==v||e[26]!==p?(y=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p,v]}),e[25]=v,e[26]=p,e[27]=y):y=e[27];let h;e[28]!==s.actionDescription||e[29]!==s.name?(h=s.actionDescription&&s.actionDescription!==s.name&&t.jsx("p",{className:"text-xs text-muted-foreground",children:s.actionDescription}),e[28]=s.actionDescription,e[29]=s.name,e[30]=h):h=e[30];let P;e[31]!==s.usedSelector?(P=s.usedSelector&&t.jsxs("code",{className:"flex w-fit items-center gap-1 rounded bg-muted px-1.5 py-0.5 font-mono text-[11px] text-foreground/70",children:[t.jsx(At,{className:"size-3 text-muted-foreground"}),s.usedSelector]}),e[31]=s.usedSelector,e[32]=P):P=e[32];let g;e[33]!==r||e[34]!==s.errorDetail||e[35]!==a?(g=r&&s.errorDetail&&t.jsxs("div",{className:"flex items-start gap-1.5 rounded-lg bg-destructive/10 px-2.5 py-2 text-xs text-destructive",children:[t.jsx(_t,{className:"mt-0.5 size-3.5 shrink-0"}),t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[s.errorDetail.slug&&t.jsx("span",{className:"break-words",children:a("mainPanelTabs.e2eTab.missingSelector",{slug:s.errorDetail.slug})}),s.errorDetail.expected&&t.jsx("span",{className:"break-words text-destructive/80",children:a("mainPanelTabs.e2eTab.expected",{value:s.errorDetail.expected})}),s.errorDetail.suggestion&&t.jsx("span",{className:"break-words text-destructive/80",children:s.errorDetail.suggestion})]})]}),e[33]=r,e[34]=s.errorDetail,e[35]=a,e[36]=g):g=e[36];let b;e[37]!==l||e[38]!==s.name||e[39]!==s.screenshotUrl||e[40]!==a?(b=s.screenshotUrl&&t.jsx("a",{href:s.screenshotUrl,target:"_blank",rel:"noreferrer",className:"mt-1 w-fit","aria-label":a("mainPanelTabs.e2eTab.viewScreenshot"),children:t.jsx("img",{src:s.screenshotUrl,alt:s.name??`step ${l+1}`,loading:"lazy",className:"max-h-44 rounded-lg border border-border"})}),e[37]=l,e[38]=s.name,e[39]=s.screenshotUrl,e[40]=a,e[41]=b):b=e[41];let N;e[42]!==y||e[43]!==h||e[44]!==P||e[45]!==g||e[46]!==b?(N=t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[y,h,P,g,b]}),e[42]=y,e[43]=h,e[44]=P,e[45]=g,e[46]=b,e[47]=N):N=e[47];let j;return e[48]!==N||e[49]!==d?(j=t.jsxs("li",{className:"flex gap-3 py-2.5",children:[d,N]}),e[48]=N,e[49]=d,e[50]=j):j=e[50],j}function gs(n){const e=L.c(8),{entries:s,t:l}=n;if(s.length===0){let r;e[0]!==l?(r=l("mainPanelTabs.e2eTab.noConsole"),e[0]=l,e[1]=r):r=e[1];let o;return e[2]!==r?(o=t.jsx("p",{className:"px-3 py-2 text-xs text-muted-foreground",children:r}),e[2]=r,e[3]=o):o=e[3],o}let a;e[4]!==s?(a=s.map(js),e[4]=s,e[5]=a):a=e[5];let i;return e[6]!==a?(i=t.jsx("div",{className:"flex max-h-72 flex-col overflow-y-auto rounded-lg border border-border",children:a}),e[6]=a,e[7]=i):i=e[7],i}function js(n,e){const s=(n.type??"").toLowerCase(),l=s==="error"?"text-destructive":s==="warning"||s==="warn"?"text-warning":"text-foreground/70";return t.jsx("div",{className:"border-b border-border/60 px-2.5 py-1.5 font-mono text-[11px] last:border-b-0",children:t.jsx("span",{className:Ve("break-words",l),children:n.text})},e)}function Ts(n){const e=L.c(8),{entries:s,t:l}=n;if(s.length===0){let r;e[0]!==l?(r=l("mainPanelTabs.e2eTab.noNetwork"),e[0]=l,e[1]=r):r=e[1];let o;return e[2]!==r?(o=t.jsx("p",{className:"px-3 py-2 text-xs text-muted-foreground",children:r}),e[2]=r,e[3]=o):o=e[3],o}let a;e[4]!==s?(a=s.map(vs),e[4]=s,e[5]=a):a=e[5];let i;return e[6]!==a?(i=t.jsx("div",{className:"flex max-h-72 flex-col overflow-y-auto rounded-lg border border-border",children:a}),e[6]=a,e[7]=i):i=e[7],i}function vs(n,e){const s=(n.status??0)>=400;return t.jsxs("div",{className:"flex items-center gap-2 border-b border-border/60 px-2.5 py-1.5 font-mono text-[11px] last:border-b-0",children:[t.jsx("span",{className:Ve("tabular-nums",s?"text-destructive":"text-muted-foreground"),children:n.status??"—"}),t.jsx("span",{className:"w-10 shrink-0 text-muted-foreground/70",children:n.method}),t.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/70",children:n.url}),n.resourceType&&t.jsx("span",{className:"shrink-0 text-muted-foreground/50",children:n.resourceType})]},e)}function Ns(n){const e=L.c(57),{run:s,page:l,t:a}=n;let i;e[0]!==s.steps?(i=s.steps??[],e[0]=s.steps,e[1]=i):i=e[1];const r=i;let o;e[2]!==r?(o=r.filter(Ps),e[2]=r,e[3]=o):o=e[3];const c=o.length;let m;e[4]!==s.console?(m=s.console??[],e[4]=s.console,e[5]=m):m=e[5];const d=m;let u;e[6]!==s.network?(u=s.network??[],e[6]=s.network,e[7]=u):u=e[7];const T=u;let p;e[8]!==d?(p=d.some(ys),e[8]=d,e[9]=p):p=e[9];const f=p;let x;e[10]!==s.verdict||e[11]!==a?(x=t.jsx(et,{status:s.verdict,t:a}),e[10]=s.verdict,e[11]=a,e[12]=x):x=e[12];let v;e[13]!==s.funnelVerdict||e[14]!==s.verdict||e[15]!==a?(v=s.funnelVerdict&&s.funnelVerdict!==s.verdict&&t.jsxs("span",{children:[a("mainPanelTabs.e2eTab.funnel"),":"," ",t.jsx("span",{className:"font-medium text-foreground",children:s.funnelVerdict})]}),e[13]=s.funnelVerdict,e[14]=s.verdict,e[15]=a,e[16]=v):v=e[16];let y;e[17]!==s.durationMs?(y=s.durationMs!=null&&t.jsxs("span",{className:"flex items-center gap-1 tabular-nums",children:[t.jsx(Je,{className:"size-3"}),Le(s.durationMs)]}),e[17]=s.durationMs,e[18]=y):y=e[18];let h;e[19]!==l?(h=l?.status!=null&&t.jsxs(te,{variant:l.status<400?"secondary":"destructive",children:["HTTP ",l.status]}),e[19]=l,e[20]=h):h=e[20];let P;e[21]!==x||e[22]!==v||e[23]!==y||e[24]!==h?(P=t.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-muted-foreground",children:[x,v,y,h]}),e[21]=x,e[22]=v,e[23]=y,e[24]=h,e[25]=P):P=e[25];let g;e[26]!==r?(g=r.length>0&&t.jsx(xs,{steps:r}),e[26]=r,e[27]=g):g=e[27];let b;e[28]!==l||e[29]!==a?(b=l?.vitals&&t.jsxs("section",{className:"flex flex-col gap-2",children:[t.jsx("h4",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:a("mainPanelTabs.e2eTab.vitals")}),t.jsx(Pt,{vitals:l.vitals})]}),e[28]=l,e[29]=a,e[30]=b):b=e[30];let N;e[31]!==c||e[32]!==r||e[33]!==a?(N=r.length>0&&t.jsx(Fe,{defaultOpen:!0,icon:t.jsx(Re,{className:"size-4 text-muted-foreground"}),label:a("mainPanelTabs.e2eTab.steps"),badge:c>0?t.jsx(te,{variant:"destructive",children:a("mainPanelTabs.e2eTab.failCount",{count:String(c)})}):t.jsx(te,{variant:"secondary",children:a("mainPanelTabs.e2eTab.stepsCount",{count:String(r.length)})}),children:t.jsx("ol",{className:"divide-y divide-border/60 rounded-lg border border-border px-3",children:r.map((D,z)=>t.jsx(bs,{step:D,index:z,t:a},z))})}),e[31]=c,e[32]=r,e[33]=a,e[34]=N):N=e[34];let j;e[35]!==d||e[36]!==f||e[37]!==a?(j=d.length>0&&t.jsx(Fe,{icon:t.jsx(Jt,{className:"size-4 text-muted-foreground"}),label:a("mainPanelTabs.e2eTab.console"),badge:t.jsx(te,{variant:f?"destructive":"secondary",children:d.length}),children:t.jsx(gs,{entries:d,t:a})}),e[35]=d,e[36]=f,e[37]=a,e[38]=j):j=e[38];let w;e[39]!==T||e[40]!==a?(w=T.length>0&&t.jsx(Fe,{icon:t.jsx(Qt,{className:"size-4 text-muted-foreground"}),label:a("mainPanelTabs.e2eTab.network"),badge:t.jsx(te,{variant:"secondary",children:T.length}),children:t.jsx(Ts,{entries:T,t:a})}),e[39]=T,e[40]=a,e[41]=w):w=e[41];let S;e[42]!==s.videoUrl||e[43]!==a?(S=s.videoUrl&&t.jsx(Fe,{icon:t.jsx(Lt,{className:"size-4 text-muted-foreground"}),label:a("mainPanelTabs.e2eTab.video"),children:t.jsx("video",{controls:!0,src:s.videoUrl,className:"max-h-80 w-full rounded-lg border border-border"})}),e[42]=s.videoUrl,e[43]=a,e[44]=S):S=e[44];let C;e[45]!==s.traceUrl||e[46]!==a?(C=s.traceUrl&&t.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[t.jsx(ge,{size:"sm",variant:"secondary",asChild:!0,children:t.jsxs("a",{href:`https://trace.playwright.dev/?trace=${encodeURIComponent(s.traceUrl)}`,target:"_blank",rel:"noreferrer",children:[t.jsx(vt,{className:"size-4"}),a("mainPanelTabs.e2eTab.openTrace")]})}),t.jsx("a",{href:s.traceUrl,target:"_blank",rel:"noreferrer",className:"text-xs text-muted-foreground hover:text-foreground hover:underline",children:a("mainPanelTabs.e2eTab.downloadTrace")})]}),e[45]=s.traceUrl,e[46]=a,e[47]=C):C=e[47];let k;return e[48]!==P||e[49]!==g||e[50]!==b||e[51]!==N||e[52]!==j||e[53]!==w||e[54]!==S||e[55]!==C?(k=t.jsxs("div",{className:"flex flex-col gap-4 pt-4",children:[P,g,b,N,j,w,S,C]}),e[48]=P,e[49]=g,e[50]=b,e[51]=N,e[52]=j,e[53]=w,e[54]=S,e[55]=C,e[56]=k):k=e[56],k}function ys(n){return(n.type??"").toLowerCase()==="error"}function Ps(n){return Se(n.status)}function wt(n){const e=L.c(7),{artifacts:s,t:l}=n;let a;if(e[0]!==s||e[1]!==l){const i=s.filter(Ss),r=s.filter(ws);let o;e[3]!==l?(o=l("mainPanelTabs.e2eTab.artifacts"),e[3]=l,e[4]=o):o=e[4];let c;e[5]!==o?(c=t.jsx("h4",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:o}),e[5]=o,e[6]=c):c=e[6],a=t.jsxs("section",{className:"flex flex-col gap-2",children:[c,s.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:l("mainPanelTabs.e2eTab.noArtifacts")}):t.jsxs("div",{className:"flex flex-col gap-2",children:[i.length>0&&t.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:i.map((m,d)=>t.jsx("a",{href:m.url,target:"_blank",rel:"noreferrer","aria-label":m.name??l("mainPanelTabs.e2eTab.viewScreenshot"),children:t.jsx("img",{src:m.url,alt:m.name??"screenshot",loading:"lazy",className:"w-full rounded-lg border border-border"})},`${m.name??"img"}-${d}`))}),r.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((m,d)=>t.jsxs("a",{href:m.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-border px-2.5 py-1 font-mono text-[11px] text-foreground/80 hover:bg-muted/40",children:[m.name??l("mainPanelTabs.e2eTab.openArtifact"),t.jsx(vt,{className:"size-3 text-muted-foreground"})]},`${m.name??"artifact"}-${d}`))})]})]}),e[0]=s,e[1]=l,e[2]=a}else a=e[2];return a}function ws(n){return!/\.png$/i.test(n.name??"")}function Ss(n){return/\.png$/i.test(n.name??"")}function Cs(n){const e=L.c(9),{checks:s,artifacts:l,t:a}=n;let i;e[0]!==s||e[1]!==a?(i=s.length>0?t.jsxs("section",{className:"flex flex-col gap-2",children:[t.jsx("h4",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:a("mainPanelTabs.e2eTab.checksTitle")}),t.jsx("div",{className:"rounded-lg border border-border",children:t.jsxs(Xe,{children:[t.jsx(Ye,{children:t.jsxs(we,{children:[t.jsx(W,{children:a("mainPanelTabs.e2eTab.colCheck")}),t.jsx(W,{children:a("mainPanelTabs.e2eTab.colStatus")}),t.jsx(W,{children:a("mainPanelTabs.e2eTab.colViewport")}),t.jsx(W,{className:"text-right",children:a("mainPanelTabs.e2eTab.colDuration")})]})}),t.jsx(Ze,{children:s.map((c,m)=>t.jsxs(we,{children:[t.jsx(X,{className:"text-xs text-foreground",children:c.name??"—"}),t.jsx(X,{children:t.jsx(et,{status:c.status,t:a})}),t.jsx(X,{className:"font-mono text-xs text-muted-foreground",children:c.viewport??"—"}),t.jsx(X,{className:"text-right font-mono text-xs text-muted-foreground tabular-nums",children:Le(c.durationMs)})]},`${c.name??"check"}-${m}`))})]})})]}):t.jsx("p",{className:"text-sm text-muted-foreground",children:a("mainPanelTabs.e2eTab.noReport")}),e[0]=s,e[1]=a,e[2]=i):i=e[2];let r;e[3]!==l||e[4]!==a?(r=t.jsx(wt,{artifacts:l,t:a}),e[3]=l,e[4]=a,e[5]=r):r=e[5];let o;return e[6]!==i||e[7]!==r?(o=t.jsxs("div",{className:"flex flex-col gap-5",children:[i,r]}),e[6]=i,e[7]=r,e[8]=o):o=e[8],o}function ks(n){const e=L.c(46),{data:s,t:l}=n,a=s.report??null;let i;e[0]!==a?.runs?(i=a?.runs??[],e[0]=a?.runs,e[1]=i):i=e[1];const r=i;let o;e[2]!==s.checks?(o=s.checks??[],e[2]=s.checks,e[3]=o):o=e[3];const c=o;let m;e[4]!==s.artifacts?(m=s.artifacts??[],e[4]=s.artifacts,e[5]=m):m=e[5];const d=m;let u;if(e[6]!==a?.pages){u=new Map;for(const h of a?.pages??[])h.viewport&&!u.has(h.viewport)&&u.set(h.viewport,h);e[6]=a?.pages,e[7]=u}else u=e[7];const T=r[0];if(a&&T){let h;e[8]!==T?(h=He(T,0),e[8]=T,e[9]=h):h=e[9];let P;if(e[10]!==r||e[11]!==l){let S;e[13]!==l?(S=(C,k)=>{const D=He(C,k);return t.jsxs(Zt,{value:D,variant:"underline",className:"gap-1.5",children:[Se(C.verdict)?t.jsx(We,{className:"size-3.5 text-destructive"}):t.jsx(Re,{className:"size-3.5 text-success"}),C.viewport??`${l("mainPanelTabs.e2eTab.viewport")} ${k+1}`]},D)},e[13]=l,e[14]=S):S=e[14],P=r.map(S),e[10]=r,e[11]=l,e[12]=P}else P=e[12];let g;e[15]!==P?(g=t.jsx(Gt,{variant:"underline",className:"flex-wrap",children:P}),e[15]=P,e[16]=g):g=e[16];let b;if(e[17]!==u||e[18]!==r||e[19]!==l){let S;e[21]!==u||e[22]!==l?(S=(C,k)=>{const D=He(C,k);return t.jsx(es,{value:D,children:t.jsx(Ns,{run:C,page:C.viewport?u.get(C.viewport):void 0,t:l})},D)},e[21]=u,e[22]=l,e[23]=S):S=e[23],b=r.map(S),e[17]=u,e[18]=r,e[19]=l,e[20]=b}else b=e[20];let N;e[24]!==h||e[25]!==g||e[26]!==b?(N=t.jsxs(ts,{variant:"underline",defaultValue:h,children:[g,b]}),e[24]=h,e[25]=g,e[26]=b,e[27]=N):N=e[27];let j;e[28]!==d||e[29]!==l?(j=d.length>0&&t.jsx(wt,{artifacts:d,t:l}),e[28]=d,e[29]=l,e[30]=j):j=e[30];let w;return e[31]!==N||e[32]!==j?(w=t.jsxs("div",{className:"flex flex-col gap-5",children:[N,j]}),e[31]=N,e[32]=j,e[33]=w):w=e[33],w}let p;e[34]!==a?.pages?(p=(a?.pages??[]).find($s)?.vitals,e[34]=a?.pages,e[35]=p):p=e[35];const f=p;let x;e[36]!==f||e[37]!==l?(x=f&&t.jsxs("section",{className:"flex flex-col gap-2",children:[t.jsx("h4",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:l("mainPanelTabs.e2eTab.vitals")}),t.jsx(Pt,{vitals:f})]}),e[36]=f,e[37]=l,e[38]=x):x=e[38];let v;e[39]!==d||e[40]!==c||e[41]!==l?(v=t.jsx(Cs,{checks:c,artifacts:d,t:l}),e[39]=d,e[40]=c,e[41]=l,e[42]=v):v=e[42];let y;return e[43]!==x||e[44]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-5",children:[x,v]}),e[43]=x,e[44]=v,e[45]=y):y=e[45],y}function $s(n){return n.vitals}function Ds(n){const e=L.c(50),{base:s,orgSlug:l,site:a,run:i,onOpenChange:r}=n,o=Ee(),c=i?.runId??"",m=i!=null;let d;e[0]!==l||e[1]!==c||e[2]!==a?(d=xe.e2eRun(l,a,c),e[0]=l,e[1]=c,e[2]=a,e[3]=d):d=e[3];let u;e[4]!==s||e[5]!==c?(u=()=>ms(`${s}/e2e/runs/${encodeURIComponent(c)}`),e[4]=s,e[5]=c,e[6]=u):u=e[6];const T=m&&!!c;let p;e[7]!==d||e[8]!==u||e[9]!==T?(p={queryKey:d,queryFn:u,enabled:T,retry:!1,staleTime:0,gcTime:0,refetchOnMount:"always"},e[7]=d,e[8]=u,e[9]=T,e[10]=p):p=e[10];const f=_e(p),x=f.data,v=x?.status??i?.status??null,y=i?.summary?.command??null,h=i?.summary?.url??null,P=x?.report?.totalDurationMs??null,g=x?.report?.platform??null;let b;e[11]!==o||e[12]!==v?(b=t.jsx(et,{status:v,t:o}),e[11]=o,e[12]=v,e[13]=b):b=e[13];let N;e[14]!==c?(N=t.jsx(ss,{className:"font-mono text-sm text-foreground",children:c}),e[14]=c,e[15]=N):N=e[15];let j;e[16]!==b||e[17]!==N?(j=t.jsxs("div",{className:"flex items-center gap-2",children:[b,N]}),e[16]=b,e[17]=N,e[18]=j):j=e[18];let w;e[19]!==y||e[20]!==o?(w=y&&t.jsxs("span",{children:[o("mainPanelTabs.e2eTab.command")," ",t.jsx("span",{className:"font-medium text-foreground",children:y})]}),e[19]=y,e[20]=o,e[21]=w):w=e[21];let S;e[22]!==g?(S=g&&t.jsx("span",{className:"font-medium text-foreground/70",children:g}),e[22]=g,e[23]=S):S=e[23];let C;e[24]!==P?(C=P!=null&&t.jsxs("span",{className:"flex items-center gap-1 tabular-nums",children:[t.jsx(Je,{className:"size-3"}),Le(P)]}),e[24]=P,e[25]=C):C=e[25];let k;e[26]!==h?(k=h&&t.jsx("a",{href:h,target:"_blank",rel:"noreferrer",className:"truncate font-mono text-foreground/70 hover:underline",children:h.replace(/^https?:\/\//,"")}),e[26]=h,e[27]=k):k=e[27];let D;e[28]!==C||e[29]!==k||e[30]!==w||e[31]!==S?(D=t.jsx(ls,{asChild:!0,children:t.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[w,S,C,k]})}),e[28]=C,e[29]=k,e[30]=w,e[31]=S,e[32]=D):D=e[32];let z;e[33]!==D||e[34]!==j?(z=t.jsxs(ns,{className:"border-b border-border",children:[j,D]}),e[33]=D,e[34]=j,e[35]=z):z=e[35];let F;e[36]!==x||e[37]!==f.error||e[38]!==f.isLoading||e[39]!==o?(F=ds(f.error)?t.jsx(De,{icon:t.jsx(Re,{className:"size-5"}),title:o("mainPanelTabs.e2eTab.notConnectedTitle"),description:o("mainPanelTabs.e2eTab.notConnectedDescription")}):f.isLoading?t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx($e,{className:"h-9 w-full"}),t.jsx($e,{className:"h-24 w-full"}),t.jsx($e,{className:"h-40 w-full"})]}):f.error?t.jsx("p",{className:"text-sm text-muted-foreground",children:o("mainPanelTabs.e2eTab.detailError")}):x?t.jsx(ks,{data:x,t:o}):null,e[36]=x,e[37]=f.error,e[38]=f.isLoading,e[39]=o,e[40]=F):F=e[40];let R;e[41]!==F?(R=t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto p-4",children:F}),e[41]=F,e[42]=R):R=e[42];let A;e[43]!==z||e[44]!==R?(A=t.jsxs(as,{side:"right",className:"w-full gap-0 p-0 sm:max-w-2xl",children:[z,R]}),e[43]=z,e[44]=R,e[45]=A):A=e[45];let E;return e[46]!==r||e[47]!==m||e[48]!==A?(E=t.jsx(rs,{open:m,onOpenChange:r,children:A}),e[46]=r,e[47]=m,e[48]=A,e[49]=E):E=e[49],E}const Me="once",_s=[{value:Me,labelKey:"mainPanelTabs.e2eTab.scheduleOnce"},{value:"0 * * * *",labelKey:"mainPanelTabs.e2eTab.scheduleHourly"},{value:"0 8 * * *",labelKey:"mainPanelTabs.e2eTab.scheduleDaily"},{value:"0 8 * * 1",labelKey:"mainPanelTabs.e2eTab.scheduleWeekly"}];function zs(n){const e=L.c(16),{phase:s,t:l}=n,a=(s??"").toLowerCase();if(a==="running"){let o;e[0]!==l?(o=l("mainPanelTabs.e2eTab.statusRunning"),e[0]=l,e[1]=o):o=e[1];let c;return e[2]!==o?(c=t.jsx(te,{variant:"warning",children:o}),e[2]=o,e[3]=c):c=e[3],c}if(a==="succeeded"){let o;e[4]!==l?(o=l("mainPanelTabs.e2eTab.phaseRan"),e[4]=l,e[5]=o):o=e[5];let c;return e[6]!==o?(c=t.jsx(te,{variant:"secondary",children:o}),e[6]=o,e[7]=c):c=e[7],c}if(a==="failed"){let o;e[8]!==l?(o=l("mainPanelTabs.e2eTab.phaseErrored"),e[8]=l,e[9]=o):o=e[9];let c;return e[10]!==o?(c=t.jsx(te,{variant:"destructive",children:o}),e[10]=o,e[11]=c):c=e[11],c}let i;e[12]!==l?(i=l("mainPanelTabs.e2eTab.phasePending"),e[12]=l,e[13]=i):i=e[13];let r;return e[14]!==i?(r=t.jsx(te,{variant:"secondary",children:i}),e[14]=i,e[15]=r):r=e[15],r}function ze(n,e){if(Array.isArray(n))return n;if(n&&typeof n=="object"){const s=n[e];if(Array.isArray(s))return s}return[]}function St(n){const e=(n??"").toLowerCase();return e.includes("pass")||e.includes("success")||e.includes("ok")?"success":e.includes("fail")||e.includes("error")?"destructive":e.includes("run")||e.includes("pend")||e.includes("progress")?"warning":"secondary"}function Es(n,e){const s=St(n);return s==="success"?e("mainPanelTabs.e2eTab.statusPassed"):s==="destructive"?e("mainPanelTabs.e2eTab.statusFailed"):s==="warning"?e("mainPanelTabs.e2eTab.statusRunning"):n??"—"}function Rs(n,e){const s=[],l=n.summary?.exitCode;typeof l=="number"&&s.push(e("mainPanelTabs.e2eTab.summaryExitCode",{code:String(l)}));const a=n.summary?.fileCount;return typeof a=="number"&&s.push(e("mainPanelTabs.e2eTab.summaryFiles",{count:String(a)})),s.length>0?s.join(" · "):"—"}function Ct(n){if(!n)return"—";const e=new Date(n).getTime();if(Number.isNaN(e))return"—";const s=Math.round((Date.now()-e)/1e3),l=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),a=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[i,r]of a)if(Math.abs(s)>=r)return l.format(-Math.round(s/r),i);return l.format(-s,"second")}class tt extends Error{constructor(e,s){super(e),this.status=s}status}function Ls(n){return n instanceof tt&&n.status===401}function Oe(n){return n instanceof Error?n.message:String(n)}async function Ie(n){const e=await fetch(n),s=await e.json().catch(()=>({}));if(!e.ok){const l=s&&typeof s=="object"&&"error"in s?String(s.error):`request failed (${e.status})`;throw new tt(l,e.status)}return s}async function qe(n,e,s){const l=await fetch(n,{method:e,headers:s!==void 0?{"Content-Type":"application/json"}:{},body:s!==void 0?JSON.stringify(s):void 0}),a=await l.json().catch(()=>({}));if(!l.ok){const i=a&&typeof a=="object"&&"error"in a?String(a.error):`request failed (${l.status})`;throw new tt(i,l.status)}return a}function kt(n){const e=L.c(15),{title:s,count:l,action:a,children:i}=n;let r;e[0]!==s?(r=t.jsx("h3",{className:"text-sm font-medium text-foreground",children:s}),e[0]=s,e[1]=r):r=e[1];let o;e[2]!==l?(o=typeof l=="number"&&l>0&&t.jsx(te,{variant:"secondary",className:"tabular-nums",children:l}),e[2]=l,e[3]=o):o=e[3];let c;e[4]!==a?(c=a?t.jsx("div",{className:"ml-auto",children:a}):null,e[4]=a,e[5]=c):c=e[5];let m;e[6]!==r||e[7]!==o||e[8]!==c?(m=t.jsxs("header",{className:"flex items-center gap-2 px-4 py-3 border-b border-border",children:[r,o,c]}),e[6]=r,e[7]=o,e[8]=c,e[9]=m):m=e[9];let d;e[10]!==i?(d=t.jsx("div",{className:"p-2",children:i}),e[10]=i,e[11]=d):d=e[11];let u;return e[12]!==m||e[13]!==d?(u=t.jsxs("section",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[m,d]}),e[12]=m,e[13]=d,e[14]=u):u=e[14],u}function $t(n){const e=L.c(3),{cols:s}=n;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[0,1,2],e[0]=l):l=e[0];let a;return e[1]!==s?(a=t.jsx("div",{className:"flex flex-col gap-2 p-2",children:l.map(i=>t.jsx("div",{className:"flex gap-3",children:Array.from({length:s}).map(As)},i))}),e[1]=s,e[2]=a):a=e[2],a}function As(n,e){return t.jsx($e,{className:"h-4 flex-1"},e)}function Dt(n){const e=L.c(2),{children:s}=n;let l;return e[0]!==s?(l=t.jsx("div",{className:"px-3 py-6 text-sm text-muted-foreground",children:s}),e[0]=s,e[1]=l):l=e[1],l}function Fs(n){const e=L.c(117),{base:s,orgSlug:l,site:a}=n,i=Ee(),r=Qe(),[o,c]=pe.useState(!1),[m,d]=pe.useState(""),[u,T]=pe.useState(Me),[p,f]=pe.useState("");let x;e[0]!==l||e[1]!==a?(x=xe.e2eTypes(l,a),e[0]=l,e[1]=a,e[2]=x):x=e[2];let v;e[3]!==s?(v=()=>Ie(`${s}/e2e/types`),e[3]=s,e[4]=v):v=e[4];let y;e[5]!==o||e[6]!==x||e[7]!==v?(y={queryKey:x,queryFn:v,enabled:o,retry:!1,staleTime:6e4},e[5]=o,e[6]=x,e[7]=v,e[8]=y):y=e[8];const h=_e(y),P=ze(h.data,"items");let g;e[9]!==s?(g=me=>{const st=me.schedule===Me?"":me.schedule,lt=me.url.trim();return qe(`${s}/e2e/runs`,"POST",{command:me.command,...st?{schedule:st}:{},...lt?{url:lt}:{}})},e[9]=s,e[10]=g):g=e[10];let b;e[11]!==l||e[12]!==r||e[13]!==a||e[14]!==i?(b=()=>{r.invalidateQueries({queryKey:xe.e2eRuns(l,a)}),r.invalidateQueries({queryKey:xe.e2eChecks(l,a)}),be.success(i("mainPanelTabs.e2eTab.toastRunQueued")),c(!1),d(""),T(Me),f("")},e[11]=l,e[12]=r,e[13]=a,e[14]=i,e[15]=b):b=e[15];let N;e[16]!==g||e[17]!==b?(N={mutationFn:g,onSuccess:b,onError:Us},e[16]=g,e[17]=b,e[18]=N):N=e[18];const j=Ue(N);let w;e[19]!==m?(w=me=>me.id===m,e[19]=m,e[20]=w):w=e[20];const S=P.find(w);let C,k;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=()=>c(!0),k=t.jsx(ct,{className:"size-4"}),e[21]=C,e[22]=k):(C=e[21],k=e[22]);let D;e[23]!==i?(D=i("mainPanelTabs.e2eTab.runTest"),e[23]=i,e[24]=D):D=e[24];let z;e[25]!==D?(z=t.jsxs(ge,{size:"sm",onClick:C,children:[k,D]}),e[25]=D,e[26]=z):z=e[26];const F=qt,R=It,A="sm:max-w-md";let E;e[27]!==i?(E=i("mainPanelTabs.e2eTab.runTestTitle"),e[27]=i,e[28]=E):E=e[28];let B;e[29]!==E?(B=t.jsx(Vt,{children:t.jsx(Ot,{children:E})}),e[29]=E,e[30]=B):B=e[30];const Y="flex flex-col gap-3";let de;e[31]!==i?(de=i("mainPanelTabs.e2eTab.runTestDescription"),e[31]=i,e[32]=de):de=e[32];let M;e[33]!==de?(M=t.jsx("p",{className:"text-sm text-muted-foreground",children:de}),e[33]=de,e[34]=M):M=e[34];let U;e[35]!==i?(U=i("mainPanelTabs.e2eTab.targetUrl"),e[35]=i,e[36]=U):U=e[36];let I;e[37]!==U?(I=t.jsx(Be,{htmlFor:"e2e-url",children:U}),e[37]=U,e[38]=I):I=e[38];let Z;e[39]!==i?(Z=i("mainPanelTabs.e2eTab.targetUrlPlaceholder"),e[39]=i,e[40]=Z):Z=e[40];let G;e[41]===Symbol.for("react.memo_cache_sentinel")?(G=me=>f(me.target.value),e[41]=G):G=e[41];let q;e[42]!==j.isPending||e[43]!==Z||e[44]!==p?(q=t.jsx(Ut,{id:"e2e-url",type:"url",inputMode:"url",placeholder:Z,value:p,onChange:G,className:"font-mono text-xs",disabled:j.isPending}),e[42]=j.isPending,e[43]=Z,e[44]=p,e[45]=q):q=e[45];let V;e[46]!==i?(V=i("mainPanelTabs.e2eTab.targetUrlHint"),e[46]=i,e[47]=V):V=e[47];let O;e[48]!==V?(O=t.jsx("p",{className:"text-xs text-muted-foreground",children:V}),e[48]=V,e[49]=O):O=e[49];let H;e[50]!==I||e[51]!==q||e[52]!==O?(H=t.jsxs("div",{className:"flex flex-col gap-2",children:[I,q,O]}),e[50]=I,e[51]=q,e[52]=O,e[53]=H):H=e[53];const se="flex flex-col gap-2";let _;e[54]!==i?(_=i("mainPanelTabs.e2eTab.selectType"),e[54]=i,e[55]=_):_=e[55];let ee;e[56]!==_?(ee=t.jsx(Be,{children:_}),e[56]=_,e[57]=ee):ee=e[57];const Ce=h.isLoading?t.jsx($e,{className:"h-9 w-full"}):h.error?t.jsx("p",{className:"text-xs text-destructive",children:i("mainPanelTabs.e2eTab.typesError")}):P.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:i("mainPanelTabs.e2eTab.noTypes")}):t.jsxs(nt,{value:m,onValueChange:d,children:[t.jsx(at,{className:"w-full",children:t.jsx(rt,{placeholder:i("mainPanelTabs.e2eTab.selectTypePlaceholder")})}),t.jsx(it,{children:P.map(Ms)})]});let le;e[58]!==S?(le=S?.description&&t.jsx("p",{className:"text-xs text-muted-foreground",children:S.description}),e[58]=S,e[59]=le):le=e[59];let ne;e[60]!==ee||e[61]!==Ce||e[62]!==le?(ne=t.jsxs("div",{className:se,children:[ee,Ce,le]}),e[60]=ee,e[61]=Ce,e[62]=le,e[63]=ne):ne=e[63];let ae;e[64]!==i?(ae=i("mainPanelTabs.e2eTab.scheduleLabel"),e[64]=i,e[65]=ae):ae=e[65];let he;e[66]!==ae?(he=t.jsx(Be,{children:ae}),e[66]=ae,e[67]=he):he=e[67];let ue;e[68]===Symbol.for("react.memo_cache_sentinel")?(ue=t.jsx(at,{className:"w-full",children:t.jsx(rt,{})}),e[68]=ue):ue=e[68];let re;e[69]!==i?(re=_s.map(me=>t.jsx(Tt,{value:me.value,children:i(me.labelKey)},me.value||"once")),e[69]=i,e[70]=re):re=e[70];let ie;e[71]!==re?(ie=t.jsx(it,{children:re}),e[71]=re,e[72]=ie):ie=e[72];let oe;e[73]!==u||e[74]!==ie?(oe=t.jsxs(nt,{value:u,onValueChange:T,children:[ue,ie]}),e[73]=u,e[74]=ie,e[75]=oe):oe=e[75];let ce;e[76]!==he||e[77]!==oe?(ce=t.jsxs("div",{className:"flex flex-col gap-2",children:[he,oe]}),e[76]=he,e[77]=oe,e[78]=ce):ce=e[78];let fe;e[79]!==M||e[80]!==H||e[81]!==ne||e[82]!==ce?(fe=t.jsxs("div",{className:Y,children:[M,H,ne,ce]}),e[79]=M,e[80]=H,e[81]=ne,e[82]=ce,e[83]=fe):fe=e[83];let $;e[84]===Symbol.for("react.memo_cache_sentinel")?($=()=>c(!1),e[84]=$):$=e[84];const Q=j.isPending;let K;e[85]!==i?(K=i("mainPanelTabs.e2eTab.cancel"),e[85]=i,e[86]=K):K=e[86];let J;e[87]!==j.isPending||e[88]!==K?(J=t.jsx(ge,{variant:"outline",type:"button",onClick:$,disabled:Q,children:K}),e[87]=j.isPending,e[88]=K,e[89]=J):J=e[89];let je;e[90]!==m||e[91]!==j||e[92]!==u||e[93]!==p?(je=()=>m&&j.mutate({command:m,schedule:u,url:p}),e[90]=m,e[91]=j,e[92]=u,e[93]=p,e[94]=je):je=e[94];const Ke=!m||j.isPending;let Te;e[95]!==j.isPending||e[96]!==i?(Te=j.isPending?i("mainPanelTabs.e2eTab.running"):i("mainPanelTabs.e2eTab.runConfirm"),e[95]=j.isPending,e[96]=i,e[97]=Te):Te=e[97];let ve;e[98]!==je||e[99]!==Ke||e[100]!==Te?(ve=t.jsx(ge,{type:"button",onClick:je,disabled:Ke,children:Te}),e[98]=je,e[99]=Ke,e[100]=Te,e[101]=ve):ve=e[101];let Ne;e[102]!==J||e[103]!==ve?(Ne=t.jsxs(Kt,{children:[J,ve]}),e[102]=J,e[103]=ve,e[104]=Ne):Ne=e[104];let ye;e[105]!==R||e[106]!==B||e[107]!==fe||e[108]!==Ne?(ye=t.jsxs(R,{className:A,children:[B,fe,Ne]}),e[105]=R,e[106]=B,e[107]=fe,e[108]=Ne,e[109]=ye):ye=e[109];let Pe;e[110]!==F||e[111]!==o||e[112]!==ye?(Pe=t.jsx(F,{open:o,onOpenChange:c,children:ye}),e[110]=F,e[111]=o,e[112]=ye,e[113]=Pe):Pe=e[113];let Ae;return e[114]!==z||e[115]!==Pe?(Ae=t.jsxs(t.Fragment,{children:[z,Pe]}),e[114]=z,e[115]=Pe,e[116]=Ae):Ae=e[116],Ae}function Ms(n){return t.jsx(Tt,{value:n.id,textValue:n.label??n.id,children:t.jsx("span",{className:"text-sm",children:n.label??n.id})},n.id)}function Us(n){return be.error(Oe(n))}function Is(){const n=L.c(17),e=Ee(),[s,l]=pe.useState(!1);let a;n[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>l(qs),n[0]=a):a=n[0];let i;n[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Mt,{className:"size-4 text-muted-foreground"}),n[1]=i):i=n[1];let r;n[2]!==e?(r=e("mainPanelTabs.e2eTab.helpTitle"),n[2]=e,n[3]=r):r=n[3];let o;n[4]!==r?(o=t.jsx("span",{className:"text-sm font-medium text-foreground",children:r}),n[4]=r,n[5]=o):o=n[5];let c;n[6]!==s?(c=s?t.jsx(dt,{className:"ml-auto size-4 text-muted-foreground"}):t.jsx(ot,{className:"ml-auto size-4 text-muted-foreground"}),n[6]=s,n[7]=c):c=n[7];let m;n[8]!==o||n[9]!==c?(m=t.jsxs("button",{type:"button",onClick:a,className:"flex w-full items-center gap-2 px-4 py-3 text-left",children:[i,o,c]}),n[8]=o,n[9]=c,n[10]=m):m=n[10];let d;n[11]!==s||n[12]!==e?(d=s&&t.jsxs("div",{className:"flex flex-col gap-2 border-t border-border px-4 py-3 text-sm text-muted-foreground",children:[t.jsx("p",{children:e("mainPanelTabs.e2eTab.helpIntro")}),t.jsx("p",{children:e("mainPanelTabs.e2eTab.helpTypes")}),t.jsx("p",{children:e("mainPanelTabs.e2eTab.helpRun")}),t.jsx("p",{children:e("mainPanelTabs.e2eTab.helpResults")})]}),n[11]=s,n[12]=e,n[13]=d):d=n[13];let u;return n[14]!==m||n[15]!==d?(u=t.jsxs("div",{className:"rounded-xl border border-border bg-card",children:[m,d]}),n[14]=m,n[15]=d,n[16]=u):u=n[16],u}function qs(n){return!n}function Vs(n){const e=L.c(71),{base:s,orgSlug:l,site:a,enabled:i}=n,r=Ee(),o=Qe(),[c,m]=pe.useState(!1);let d;e[0]!==l||e[1]!==a?(d=xe.e2eChecks(l,a),e[0]=l,e[1]=a,e[2]=d):d=e[2];let u;e[3]!==s?(u=()=>Ie(`${s}/e2e/checks`),e[3]=s,e[4]=u):u=e[4];let T;e[5]!==i||e[6]!==d||e[7]!==u?(T={queryKey:d,queryFn:u,enabled:i,retry:!1,staleTime:15e3,refetchInterval:Bs},e[5]=i,e[6]=d,e[7]=u,e[8]=T):T=e[8];const p=_e(T),f=ze(p.data,"items");let x;e[9]!==l||e[10]!==o||e[11]!==a?(x=()=>{o.invalidateQueries({queryKey:xe.e2eChecks(l,a)}),o.invalidateQueries({queryKey:xe.e2eRuns(l,a)})},e[9]=l,e[10]=o,e[11]=a,e[12]=x):x=e[12];const v=x;let y;e[13]!==s?(y=_=>qe(`${s}/e2e/runs`,"POST",{command:_}),e[13]=s,e[14]=y):y=e[14];let h;e[15]!==v||e[16]!==r?(h=()=>{v(),be.success(r("mainPanelTabs.e2eTab.toastRunQueued"))},e[15]=v,e[16]=r,e[17]=h):h=e[17];let P;e[18]!==y||e[19]!==h?(P={mutationFn:y,onSuccess:h,onError:Ks},e[18]=y,e[19]=h,e[20]=P):P=e[20];const g=Ue(P);let b;e[21]!==s?(b=()=>qe(`${s}/e2e/checks`,"DELETE"),e[21]=s,e[22]=b):b=e[22];let N;e[23]!==v||e[24]!==r?(N=()=>{v(),be.success(r("mainPanelTabs.e2eTab.toastCheckDeleted")),m(!1)},e[23]=v,e[24]=r,e[25]=N):N=e[25];let j;e[26]!==b||e[27]!==N?(j={mutationFn:b,onSuccess:N,onError:Os},e[26]=b,e[27]=N,e[28]=j):j=e[28];const w=Ue(j),S=g.isPending||w.isPending,C=kt;let k;e[29]!==r?(k=r("mainPanelTabs.e2eTab.checksSection"),e[29]=r,e[30]=k):k=e[30];const D=f.length,z=f.length>0?t.jsxs(ge,{size:"sm",variant:"ghost",className:"text-destructive hover:text-destructive",onClick:()=>m(!0),disabled:S,children:[t.jsx(mt,{className:"size-4"}),r("mainPanelTabs.e2eTab.deleteAllChecks")]}):null,F=p.isLoading?t.jsx($t,{cols:6}):p.error?t.jsx(Dt,{children:r("mainPanelTabs.e2eTab.checksError")}):f.length===0?t.jsx(De,{icon:t.jsx(ke,{className:"size-5"}),title:r("mainPanelTabs.e2eTab.noChecks")}):t.jsxs(Xe,{children:[t.jsx(Ye,{children:t.jsxs(we,{children:[t.jsx(W,{children:r("mainPanelTabs.e2eTab.colStatus")}),t.jsx(W,{children:r("mainPanelTabs.e2eTab.colCommand")}),t.jsx(W,{children:r("mainPanelTabs.e2eTab.colSchedule")}),t.jsx(W,{children:r("mainPanelTabs.e2eTab.url")}),t.jsx(W,{children:r("mainPanelTabs.e2eTab.colUpdated")}),t.jsx(W,{className:"w-[1%]"})]})}),t.jsx(Ze,{children:f.map((_,ee)=>t.jsxs(we,{children:[t.jsx(X,{children:t.jsx(zs,{phase:_.phase,t:r})}),t.jsx(X,{className:"font-mono text-xs text-muted-foreground",children:_.command??"—"}),t.jsx(X,{className:"font-mono text-xs text-muted-foreground",children:_.schedule?_.schedule:"—"}),t.jsx(X,{className:"max-w-[220px] truncate font-mono text-xs text-muted-foreground",children:_.url??"—"}),t.jsx(X,{className:"text-xs text-muted-foreground whitespace-nowrap",children:Ct(_.updatedAt)}),t.jsx(X,{className:"text-right align-middle whitespace-nowrap",children:t.jsx(ge,{size:"icon-sm",variant:"ghost","aria-label":r("mainPanelTabs.e2eTab.rerun"),title:r("mainPanelTabs.e2eTab.rerun"),onClick:()=>_.command&&g.mutate(_.command),disabled:S||!_.command,children:t.jsx(ct,{className:"size-4"})})})]},`${_.subject??a}-${_.command??""}-${ee}`))})]});let R;e[31]!==r?(R=r("mainPanelTabs.e2eTab.confirmDeleteCheckTitle"),e[31]=r,e[32]=R):R=e[32];let A;e[33]!==R?(A=t.jsx(ut,{children:R}),e[33]=R,e[34]=A):A=e[34];let E;e[35]!==r?(E=r("mainPanelTabs.e2eTab.confirmDeleteCheck"),e[35]=r,e[36]=E):E=e[36];let B;e[37]!==E?(B=t.jsx(ft,{children:E}),e[37]=E,e[38]=B):B=e[38];let Y;e[39]!==A||e[40]!==B?(Y=t.jsxs(xt,{children:[A,B]}),e[39]=A,e[40]=B,e[41]=Y):Y=e[41];const de=w.isPending;let M;e[42]!==r?(M=r("mainPanelTabs.e2eTab.cancel"),e[42]=r,e[43]=M):M=e[43];let U;e[44]!==w.isPending||e[45]!==M?(U=t.jsx(pt,{disabled:de,children:M}),e[44]=w.isPending,e[45]=M,e[46]=U):U=e[46];let I;e[47]!==w?(I=_=>{_.preventDefault(),w.mutate()},e[47]=w,e[48]=I):I=e[48];const Z=w.isPending;let G;e[49]!==r?(G=r("mainPanelTabs.e2eTab.delete"),e[49]=r,e[50]=G):G=e[50];let q;e[51]!==w.isPending||e[52]!==I||e[53]!==G?(q=t.jsx(ht,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:I,disabled:Z,children:G}),e[51]=w.isPending,e[52]=I,e[53]=G,e[54]=q):q=e[54];let V;e[55]!==U||e[56]!==q?(V=t.jsxs(bt,{children:[U,q]}),e[55]=U,e[56]=q,e[57]=V):V=e[57];let O;e[58]!==Y||e[59]!==V?(O=t.jsxs(gt,{children:[Y,V]}),e[58]=Y,e[59]=V,e[60]=O):O=e[60];let H;e[61]!==c||e[62]!==O?(H=t.jsx(jt,{open:c,onOpenChange:m,children:O}),e[61]=c,e[62]=O,e[63]=H):H=e[63];let se;return e[64]!==C||e[65]!==f||e[66]!==k||e[67]!==z||e[68]!==F||e[69]!==H?(se=t.jsxs(C,{title:k,count:D,action:z,children:[F,H]}),e[64]=C,e[65]=f,e[66]=k,e[67]=z,e[68]=F,e[69]=H,e[70]=se):se=e[70],se}function Os(n){return be.error(Oe(n))}function Ks(n){return be.error(Oe(n))}function Bs(n){return ze(n.state.data,"items").some(Hs)?5e3:!1}function Hs(n){const e=(n.phase??"").toLowerCase();return e===""||e==="running"||e==="pending"}function Qs(n){const e=L.c(107),{virtualMcpId:s}=n,l=Ee(),{org:a}=Et(),i=Bt(s),r=Ht(i),o=!!r,c=r?`/api/${a.slug}/hosting/${encodeURIComponent(r)}`:"",m=Qe(),[d,u]=pe.useState(null),[T,p]=pe.useState(null);let f;e[0]!==c?(f=()=>Ie(`${c}/e2e/checks`),e[0]=c,e[1]=f):f=e[1];const x=_e({queryKey:xe.e2eChecks(a.slug,r??""),queryFn:f,enabled:o,retry:!1,staleTime:15e3}),v=ze(x.data,"items").some(Ws);let y;e[2]!==c?(y=()=>Ie(`${c}/e2e/runs`),e[2]=c,e[3]=y):y=e[3];const h=_e({queryKey:xe.e2eRuns(a.slug,r??""),queryFn:y,enabled:o,retry:!1,staleTime:3e4,refetchInterval:v?5e3:!1});let P;e[4]!==c?(P=$=>qe(`${c}/e2e/runs/${encodeURIComponent($)}`,"DELETE"),e[4]=c,e[5]=P):P=e[5];const g=Ue({mutationFn:P,onSuccess:()=>{m.invalidateQueries({queryKey:xe.e2eRuns(a.slug,r??"")}),be.success(l("mainPanelTabs.e2eTab.toastRunDeleted")),p(null)},onError:Js});if(!r){let $;e[6]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ke,{className:"size-5"}),e[6]=$):$=e[6];let Q;e[7]!==l?(Q=l("mainPanelTabs.e2eTab.noSiteTitle"),e[7]=l,e[8]=Q):Q=e[8];let K;e[9]!==l?(K=l("mainPanelTabs.e2eTab.noSiteDescription"),e[9]=l,e[10]=K):K=e[10];let J;return e[11]!==Q||e[12]!==K?(J=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(De,{icon:$,title:Q,description:K})}),e[11]=Q,e[12]=K,e[13]=J):J=e[13],J}if(Ls(h.error)){let $;e[14]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ke,{className:"size-5"}),e[14]=$):$=e[14];let Q;e[15]!==l?(Q=l("mainPanelTabs.e2eTab.notConnectedTitle"),e[15]=l,e[16]=Q):Q=e[16];let K;e[17]!==l?(K=l("mainPanelTabs.e2eTab.notConnectedDescription"),e[17]=l,e[18]=K):K=e[18];let J;return e[19]!==Q||e[20]!==K?(J=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(De,{icon:$,title:Q,description:K})}),e[19]=Q,e[20]=K,e[21]=J):J=e[21],J}const b=ze(h.data,"items"),N="h-full min-h-0 overflow-y-auto",j="mx-auto flex max-w-4xl flex-col gap-6 p-6";let w;e[22]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(ke,{className:"size-[18px] text-muted-foreground"}),e[22]=w):w=e[22];let S;e[23]!==l?(S=l("mainPanelTabs.e2eTab.title"),e[23]=l,e[24]=S):S=e[24];let C;e[25]!==S?(C=t.jsxs("div",{className:"flex items-center gap-2",children:[w,t.jsx("h2",{className:"text-base font-semibold text-foreground",children:S})]}),e[25]=S,e[26]=C):C=e[26];const k=l("mainPanelTabs.e2eTab.subtitle",{site:r});let D;e[27]!==k?(D=t.jsx("p",{className:"text-sm text-muted-foreground",children:k}),e[27]=k,e[28]=D):D=e[28];let z;e[29]!==D||e[30]!==C?(z=t.jsxs("div",{className:"flex flex-col gap-1",children:[C,D]}),e[29]=D,e[30]=C,e[31]=z):z=e[31];let F;e[32]!==c||e[33]!==a.slug||e[34]!==r?(F=t.jsx(Fs,{base:c,orgSlug:a.slug,site:r}),e[32]=c,e[33]=a.slug,e[34]=r,e[35]=F):F=e[35];let R;e[36]!==z||e[37]!==F?(R=t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[z,F]}),e[36]=z,e[37]=F,e[38]=R):R=e[38];let A;e[39]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(Is,{}),e[39]=A):A=e[39];let E;e[40]!==c||e[41]!==o||e[42]!==a.slug||e[43]!==r?(E=t.jsx(Vs,{base:c,orgSlug:a.slug,site:r,enabled:o}),e[40]=c,e[41]=o,e[42]=a.slug,e[43]=r,e[44]=E):E=e[44];const B=kt;let Y;e[45]!==l?(Y=l("mainPanelTabs.e2eTab.runs"),e[45]=l,e[46]=Y):Y=e[46];const de=h.isLoading?t.jsx($t,{cols:5}):h.error?t.jsx(Dt,{children:l("mainPanelTabs.e2eTab.runsError")}):b.length===0?t.jsx(De,{icon:t.jsx(ke,{className:"size-5"}),title:l("mainPanelTabs.e2eTab.noRuns")}):t.jsxs(Xe,{children:[t.jsx(Ye,{children:t.jsxs(we,{children:[t.jsx(W,{children:l("mainPanelTabs.e2eTab.colRun")}),t.jsx(W,{children:l("mainPanelTabs.e2eTab.colStatus")}),t.jsx(W,{children:l("mainPanelTabs.e2eTab.colCommand")}),t.jsx(W,{children:l("mainPanelTabs.e2eTab.colStarted")}),t.jsx(W,{children:l("mainPanelTabs.e2eTab.colSummary")}),t.jsx(W,{className:"w-[1%]"})]})}),t.jsx(Ze,{children:b.map($=>t.jsxs(we,{className:"cursor-pointer",onClick:()=>u($),children:[t.jsx(X,{className:"font-mono text-xs",children:$.runId}),t.jsx(X,{children:t.jsx(te,{variant:St($.status),children:Es($.status,l)})}),t.jsx(X,{className:"font-mono text-xs text-muted-foreground",children:$.summary?.command??"—"}),t.jsx(X,{className:"text-xs text-muted-foreground whitespace-nowrap",children:Ct($.startedAt)}),t.jsx(X,{className:"text-xs text-muted-foreground whitespace-nowrap tabular-nums",children:Rs($,l)}),t.jsx(X,{className:"text-right align-middle",children:t.jsx(ge,{size:"icon-sm",variant:"ghost","aria-label":l("mainPanelTabs.e2eTab.deleteRun"),onClick:Q=>{Q.stopPropagation(),p($)},disabled:g.isPending,children:t.jsx(mt,{className:"size-4"})})})]},$.runId))})]});let M;e[47]!==B||e[48]!==b||e[49]!==Y||e[50]!==de?(M=t.jsx(B,{title:Y,count:b.length,children:de}),e[47]=B,e[48]=b,e[49]=Y,e[50]=de,e[51]=M):M=e[51];let U;e[52]!==R||e[53]!==A||e[54]!==E||e[55]!==M?(U=t.jsxs("div",{className:j,children:[R,A,E,M]}),e[52]=R,e[53]=A,e[54]=E,e[55]=M,e[56]=U):U=e[56];let I;e[57]!==u?(I=$=>{$||u(null)},e[57]=u,e[58]=I):I=e[58];let Z;e[59]!==c||e[60]!==a.slug||e[61]!==d||e[62]!==r||e[63]!==I?(Z=t.jsx(Ds,{base:c,orgSlug:a.slug,site:r,run:d,onOpenChange:I}),e[59]=c,e[60]=a.slug,e[61]=d,e[62]=r,e[63]=I,e[64]=Z):Z=e[64];const G=T!=null;let q;e[65]!==p?(q=$=>{$||p(null)},e[65]=p,e[66]=q):q=e[66];let V;e[67]!==l?(V=l("mainPanelTabs.e2eTab.confirmDeleteRunTitle"),e[67]=l,e[68]=V):V=e[68];let O;e[69]!==V?(O=t.jsx(ut,{children:V}),e[69]=V,e[70]=O):O=e[70];const H=T?.runId??"";let se;e[71]!==l||e[72]!==H?(se=l("mainPanelTabs.e2eTab.confirmDeleteRun",{runId:H}),e[71]=l,e[72]=H,e[73]=se):se=e[73];let _;e[74]!==se?(_=t.jsx(ft,{children:se}),e[74]=se,e[75]=_):_=e[75];let ee;e[76]!==O||e[77]!==_?(ee=t.jsxs(xt,{children:[O,_]}),e[76]=O,e[77]=_,e[78]=ee):ee=e[78];const Ce=g.isPending;let le;e[79]!==l?(le=l("mainPanelTabs.e2eTab.cancel"),e[79]=l,e[80]=le):le=e[80];let ne;e[81]!==g.isPending||e[82]!==le?(ne=t.jsx(pt,{disabled:Ce,children:le}),e[81]=g.isPending,e[82]=le,e[83]=ne):ne=e[83];let ae;e[84]!==g||e[85]!==T?(ae=$=>{$.preventDefault(),T&&g.mutate(T.runId)},e[84]=g,e[85]=T,e[86]=ae):ae=e[86];const he=g.isPending;let ue;e[87]!==l?(ue=l("mainPanelTabs.e2eTab.delete"),e[87]=l,e[88]=ue):ue=e[88];let re;e[89]!==g.isPending||e[90]!==ae||e[91]!==ue?(re=t.jsx(ht,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:ae,disabled:he,children:ue}),e[89]=g.isPending,e[90]=ae,e[91]=ue,e[92]=re):re=e[92];let ie;e[93]!==ne||e[94]!==re?(ie=t.jsxs(bt,{children:[ne,re]}),e[93]=ne,e[94]=re,e[95]=ie):ie=e[95];let oe;e[96]!==ee||e[97]!==ie?(oe=t.jsxs(gt,{children:[ee,ie]}),e[96]=ee,e[97]=ie,e[98]=oe):oe=e[98];let ce;e[99]!==G||e[100]!==q||e[101]!==oe?(ce=t.jsx(jt,{open:G,onOpenChange:q,children:oe}),e[99]=G,e[100]=q,e[101]=oe,e[102]=ce):ce=e[102];let fe;return e[103]!==U||e[104]!==Z||e[105]!==ce?(fe=t.jsxs("div",{className:N,children:[U,Z,ce]}),e[103]=U,e[104]=Z,e[105]=ce,e[106]=fe):fe=e[106],fe}function Js(n){return be.error(Oe(n))}function Ws(n){const e=(n.phase??"").toLowerCase();return e===""||e==="running"||e==="pending"}function Xs(){const n=L.c(3),e=cs(),s=os();let l;return n[0]!==s.e2e||n[1]!==e?(l=s.e2e?t.jsx(Qs,{virtualMcpId:e}):t.jsx(is,{virtualMcpId:e}),n[0]=s.e2e,n[1]=e,n[2]=l):l=n[2],l}function va(){const n=L.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Rt.Content,{children:t.jsx(Xs,{})}),n[0]=e):e=n[0],e}export{va as default};
|