decocms 4.491.2 → 4.491.3
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/{ActiveShapeUtils-O3KzxQKu.js → ActiveShapeUtils-CO9ka_yi.js} +1 -1
- package/dist/client/assets/{AlertCircle-DxGlheNv.js → AlertCircle-C3fpFT5I.js} +1 -1
- package/dist/client/assets/{AreaChart-DAZPqqE4.js → AreaChart-BvjH9pmK.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C5TDkvfy.js → ArrowLeft-C1IFj0Ic.js} +1 -1
- package/dist/client/assets/{ArrowUp-B_1yzk0u.js → ArrowUp-DR-Jhbl1.js} +1 -1
- package/dist/client/assets/{BarChart-BQ3lemjs.js → BarChart-CJ_IiQ71.js} +1 -1
- package/dist/client/assets/{Building02-aupVb9bk.js → Building02-uHT4KVtK.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Cbg52QF6.js → CategoricalChart-zte0bRec.js} +1 -1
- package/dist/client/assets/{CheckCircle-Ck2nYEsD.js → CheckCircle-BKHstO_Q.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-vEYxYM2o.js → ChevronSelectorVertical-DAO6R1Op.js} +1 -1
- package/dist/client/assets/{ChevronUp-CiQJnmx3.js → ChevronUp-CceLPRrE.js} +1 -1
- package/dist/client/assets/{Copy01-CSQiL-8m.js → Copy01-Dx3ZT0bA.js} +1 -1
- package/dist/client/assets/{CreditCard01-Dbsq9vqA.js → CreditCard01-Dko0T335.js} +1 -1
- package/dist/client/assets/{DotsVertical-D5VxjRuG.js → DotsVertical-aHYBPlin.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-C93DPBOn.js → ErrorBarContext-B8QqSSmC.js} +1 -1
- package/dist/client/assets/{Globe04-BYAnRXKE.js → Globe04-BDe-0jS0.js} +1 -1
- package/dist/client/assets/{Image01-CRH49dh2.js → Image01-Cxa392ef.js} +1 -1
- package/dist/client/assets/{Key01-DlUQl2kb.js → Key01-BHiUNW_5.js} +1 -1
- package/dist/client/assets/{Link01-CZ9mTgFL.js → Link01-BRZRc4wX.js} +1 -1
- package/dist/client/assets/{LinkBroken01-aiXtOyEy.js → LinkBroken01-kK_na_OL.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BNOHDQ-X.js → LinkExternal01-CILXo-bC.js} +1 -1
- package/dist/client/assets/{Monitor01-Dibe2H0E.js → Monitor01-Cl4JLYVa.js} +1 -1
- package/dist/client/assets/{Play-JhD_8p9T.js → Play-CzTcIQz_.js} +1 -1
- package/dist/client/assets/{Plus-B-VohzJ4.js → Plus-nldAzVeQ.js} +1 -1
- package/dist/client/assets/{SearchMd-B4A8PIUy.js → SearchMd-BiZNveM1.js} +1 -1
- package/dist/client/assets/{Sector-07CUaZqh.js → Sector-DOgIwKt7.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CZ0mlBHZ.js → ShoppingBag01-o0DdjJD9.js} +1 -1
- package/dist/client/assets/{Sun-aaILGBFQ.js → Sun-BYGxydmh.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CUO4Tr7k.js → SwitchHorizontal01-Bx3d-jDI.js} +1 -1
- package/dist/client/assets/{Tool01-B-ugA2BM.js → Tool01-Blw6F5iV.js} +1 -1
- package/dist/client/assets/{Trash01--ZO2TG0s.js → Trash01-DAoFHSpp.js} +1 -1
- package/dist/client/assets/{Upload01-CNXMP8gQ.js → Upload01-CtKBhqsv.js} +1 -1
- package/dist/client/assets/{User01-DqG0FbTZ.js → User01-Awky2MVQ.js} +1 -1
- package/dist/client/assets/{UserSquare-Dbdn52Lc.js → UserSquare-BMOlWqCu.js} +1 -1
- package/dist/client/assets/{Users01-Co0Q_ns9.js → Users01-D7ZFKC4W.js} +1 -1
- package/dist/client/assets/{X-CGpWJ0hX.js → X-DzPShgV5.js} +1 -1
- package/dist/client/assets/{XAxis-CjFRctRT.js → XAxis-BLZT-vtl.js} +1 -1
- package/dist/client/assets/{XClose-BHLC9coi.js → XClose-DBJ7sD1T.js} +1 -1
- package/dist/client/assets/{ZoomOut-DtT7NZBX.js → ZoomOut-CQckFmS9.js} +1 -1
- package/dist/client/assets/{access-gate-ChYKF6hW.js → access-gate-DEyXiK2N.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Bs6jGGvh.js → add-connection-dialog-Eph5CbUo.js} +1 -1
- package/dist/client/assets/{agent-analytics-BnLptKbu.js → agent-analytics-DSdixv-f.js} +1 -1
- package/dist/client/assets/agent-app-CT6U3s2r.js +1 -0
- package/dist/client/assets/{agent-assets-CRarjbts.js → agent-assets-G93-pOM9.js} +1 -1
- package/dist/client/assets/{agent-automation-33aqaKe4.js → agent-automation-DP6Bv0AB.js} +1 -1
- package/dist/client/assets/{agent-automations-CQKB-t_S.js → agent-automations-YDqRnDcc.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-COzXkalQ.js → agent-connect-sources-CSrFX52j.js} +1 -1
- package/dist/client/assets/agent-deck-D9Bphszm.js +1 -0
- package/dist/client/assets/{agent-e2e-Chyzilo0.js → agent-e2e-k9wCqssu.js} +1 -1
- package/dist/client/assets/{agent-experiments-DHKzrPTl.js → agent-experiments-CPSBbmYr.js} +1 -1
- package/dist/client/assets/{agent-file-rvuSnAm8.js → agent-file-BAkSJWMw.js} +1 -1
- package/dist/client/assets/{agent-hosting-D8LVdRAw.js → agent-hosting-B1Ag0zD8.js} +1 -1
- package/dist/client/assets/{agent-icon-CqZASRJE.js → agent-icon-CnnNyirr.js} +1 -1
- package/dist/client/assets/agent-library-Ch3sHhuh.js +1 -0
- package/dist/client/assets/agent-library-file-Bq6m6SHP.js +1 -0
- package/dist/client/assets/{agent-monitor-BzlCINOe.js → agent-monitor-DyddEd79.js} +1 -1
- package/dist/client/assets/{agent-overview-DUFMWxEU.js → agent-overview-BlP2a40h.js} +1 -1
- package/dist/client/assets/agent-settings-CaxlA04S.js +1 -0
- package/dist/client/assets/{agent-site-editor-Cgd_VIhY.js → agent-site-editor-Dv8qh0xB.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-D0j_GVVh.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-hTgzjtkp.js → agent-site-editor-content-EotWUMUT.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-yX5vZUh0.js → agent-site-editor-preview-DaqE_qX4.js} +3 -3
- package/dist/client/assets/agent-view-UQmbv7nk.js +1 -0
- package/dist/client/assets/{agent-view-guard-WwLdd03P.js → agent-view-guard-Bf5Bn5K4.js} +1 -1
- package/dist/client/assets/{agents-list-Dd_HwOB5.js → agents-list-CJcm3Kq8.js} +1 -1
- package/dist/client/assets/{ai-providers-CJqVOOjj.js → ai-providers-VCM02Z-N.js} +1 -1
- package/dist/client/assets/{alert-C7GKQkEa.js → alert-CGA3Ty0D.js} +1 -1
- package/dist/client/assets/{alert-dialog-D_aRnY2J.js → alert-dialog-kjq4dW3k.js} +1 -1
- package/dist/client/assets/{analytics-sections-B_0ylm-F.js → analytics-sections-Cjkr8Muu.js} +1 -1
- package/dist/client/assets/{api-keys-CTrR4NLT.js → api-keys-BjTJSB_i.js} +1 -1
- package/dist/client/assets/api-keys-BrfzhtIS.js +1 -0
- package/dist/client/assets/app-editor-CJudcxBz.js +1 -0
- package/dist/client/assets/{asset-utils-DPFCQacY.js → asset-utils-Cdgz7yau.js} +1 -1
- package/dist/client/assets/{auth-DK9f1ZTH.js → auth-Cps-90jQ.js} +1 -1
- package/dist/client/assets/{auth-catchall-ymAvaIfq.js → auth-catchall-Batt4Wp1.js} +1 -1
- package/dist/client/assets/{auth-entry-Bipf-3As.js → auth-entry-BUqhj_6T.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BIJktSXr.js → auth-split-layout-lt03dL19.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-JHbhZWlI.js → authenticate-and-persist-oauth-eDHShxj5.js} +1 -1
- package/dist/client/assets/{automation-list-row-DEJdl0i5.js → automation-list-row-C9YrfX3o.js} +1 -1
- package/dist/client/assets/{automation-runs-BvXAH6Zy.js → automation-runs-BZA4OsIt.js} +1 -1
- package/dist/client/assets/{automations-CqeboptP.js → automations-DpWIQ3oV.js} +1 -1
- package/dist/client/assets/{autosend-BV2PsimL.js → autosend-BQ3F90GX.js} +1 -1
- package/dist/client/assets/{avatar-CYsgyDk8.js → avatar-TL9HUab0.js} +1 -1
- package/dist/client/assets/{badge-80v1nRPK.js → badge-CKM84j2S.js} +1 -1
- package/dist/client/assets/{block-document-Cz2P_vpn.js → block-document-w2kAyl6z.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BtM79Kvx.js → blocks-preview-workspace-context-PwUYRK7b.js} +1 -1
- package/dist/client/assets/{blog-schema-STc-KePE.js → blog-schema-Cx6xDQRb.js} +1 -1
- package/dist/client/assets/{board-analytics-Kq5_7Oyo.js → board-analytics-DT3f2AVB.js} +1 -1
- package/dist/client/assets/{buckets-CjScpz_6.js → buckets-AVx7AXso.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CbyMBFhr.js → build-improve-prompt-doc-R0amEUpn.js} +1 -1
- package/dist/client/assets/{calendar-7itqlUGW.js → calendar-DaaBbvOH.js} +1 -1
- package/dist/client/assets/{capability-load-error-BwUoLzKX.js → capability-load-error-BVlvKXjS.js} +1 -1
- package/dist/client/assets/{category-editor-Cad32exX.js → category-editor-B-jccGXu.js} +1 -1
- package/dist/client/assets/{chart-ohHxB0r5.js → chart-DZbYggl3.js} +1 -1
- package/dist/client/assets/{chat-context-BEKkV-Ll.js → chat-context-UMp8QwjT.js} +1 -1
- package/dist/client/assets/{chat-draft-B0NTSRWz.js → chat-draft-CYy-Qv-a.js} +1 -1
- package/dist/client/assets/{checkbox-CvWHs1zK.js → checkbox-B2kVXKBD.js} +1 -1
- package/dist/client/assets/{choose-editor-BwfUJgeg.js → choose-editor-BDo9cuNm.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-BL3WW58c.js → claim-phase-copy-DG8E1-gc.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CYBiu7ru.js → cli-auth-success-DtMJnqjK.js} +1 -1
- package/dist/client/assets/{client-icons-5hQaeIu1.js → client-icons-D3ZaOjXM.js} +1 -1
- package/dist/client/assets/{collapsible-jaPP2OhC.js → collapsible-vN3Y9B-p.js} +1 -1
- package/dist/client/assets/{collection-detail-BBvtaNRJ.js → collection-detail-CBqQPzi0.js} +1 -1
- package/dist/client/assets/{collection-display-button-DVNQgzNC.js → collection-display-button-XaptFv9u.js} +1 -1
- package/dist/client/assets/{collection-search-BMeq1F4t.js → collection-search-BoB9COGX.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B_m86D_K.js → collection-table-wrapper-CxJ6Bp-f.js} +1 -1
- package/dist/client/assets/{collection-tabs-Ba1MLgdh.js → collection-tabs-Cw7XLgNG.js} +1 -1
- package/dist/client/assets/{column-rules-DqbtcnMo.js → column-rules-Bq3eiowV.js} +1 -1
- package/dist/client/assets/{combobox-AP2SQ_RO.js → combobox-PSOtDaya.js} +1 -1
- package/dist/client/assets/{command-Bvxnety0.js → command-Doiz3O29.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BJx9eTFU.js → companion-mcps-section-gXkjR-XD.js} +1 -1
- package/dist/client/assets/{config-JsgNFdSm.js → config-B01oZvpJ.js} +1 -1
- package/dist/client/assets/{connect-Cw4wL4Mo.js → connect-Dn2pI97X.js} +1 -1
- package/dist/client/assets/{connect-layout-C8etZ06x.js → connect-layout-CoxrwG6t.js} +1 -1
- package/dist/client/assets/{connection-CeKZpSJo.js → connection-FKmTBjan.js} +1 -1
- package/dist/client/assets/{connection-card-BBsdybH0.js → connection-card-Cvk5T5vt.js} +1 -1
- package/dist/client/assets/{connection-detail-Zij0KKeD.js → connection-detail-BRdQkO7d.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DTld_nTJ.js → connection-form-helpers-D4Q7rLyt.js} +1 -1
- package/dist/client/assets/{connections-C78U2QWF.js → connections-C8qSBDCe.js} +1 -1
- package/dist/client/assets/{context-D4huQsCX.js → context-Bt7kDQzj.js} +1 -1
- package/dist/client/assets/{context-menu-C5PIf9Ud.js → context-menu-BLhcVqO0.js} +1 -1
- package/dist/client/assets/{core.esm-CFyPPg_k.js → core.esm-DbclD67Y.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BfiRTIkh.js → create-organization-dialog-D-t_ZE2o.js} +1 -1
- package/dist/client/assets/{daily-pulse-CCzRbH3i.js → daily-pulse-DYPs4tl1.js} +1 -1
- package/dist/client/assets/{device-hint-CTUpl3CG.js → device-hint-CbxzMdRC.js} +1 -1
- package/dist/client/assets/{dialog-CaizaKQW.js → dialog-DRpbbWU1.js} +1 -1
- package/dist/client/assets/{discover-BZ1M_pJS.js → discover-3ATGdKP8.js} +1 -1
- package/dist/client/assets/{domain-settings-TcnTgsTU.js → domain-settings-C4-yAgIW.js} +1 -1
- package/dist/client/assets/{drawer-Cn362UbS.js → drawer-CXs6iEYK.js} +1 -1
- package/dist/client/assets/{editor-B-nIGllj.js → editor-CPkkN1Zr.js} +1 -1
- package/dist/client/assets/{empty-state-DfNAbSXk.js → empty-state-D45gZaZ-.js} +1 -1
- package/dist/client/assets/{empty-state-C3-ZBqZ7.js → empty-state-DnQ_qEjI.js} +1 -1
- package/dist/client/assets/{extract-connection-data-WKz3D__i.js → extract-connection-data-Q_j_fmQx.js} +1 -1
- package/dist/client/assets/{feature-gate-CQMKDgiz.js → feature-gate-CFL9eB8c.js} +1 -1
- package/dist/client/assets/{feature-paywall-DnC43PTT.js → feature-paywall-0RYA-1Op.js} +1 -1
- package/dist/client/assets/{file-explorer-BEX4Rc_N.js → file-explorer-Cyg7RguR.js} +1 -1
- package/dist/client/assets/{file-preview-kacuDdK5.js → file-preview-DT-0IR-r.js} +1 -1
- package/dist/client/assets/{file-share-button-BWY-7IZa.js → file-share-button-C8ZBUx_e.js} +1 -1
- package/dist/client/assets/{file-type-icon-CDG1qAi8.js → file-type-icon-Du5QihE_.js} +1 -1
- package/dist/client/assets/flat-project-BpQGs-gN.js +1 -0
- package/dist/client/assets/{folder-icon-Dt1GSdhj.js → folder-icon-DXEgDwxo.js} +1 -1
- package/dist/client/assets/{form-CpErFrQ1.js → form-BBtB5neb.js} +1 -1
- package/dist/client/assets/{general-DfGmywaK.js → general-B3jgLFML.js} +1 -1
- package/dist/client/assets/{home-CND3Dkfc.js → home-DYCk_i5V.js} +1 -1
- package/dist/client/assets/{icon-button-BZdEBEfj.js → icon-button-BiR7Hy07.js} +1 -1
- package/dist/client/assets/{index-BYizWVl-.js → index-BvwJHqHQ.js} +1 -1
- package/dist/client/assets/{index-ikDsOzpt.js → index-C-3lNbMm.js} +1 -1
- package/dist/client/assets/{index-D1cfaJ2t.js → index-CeMEs5dC.js} +1 -1
- package/dist/client/assets/{index-BygP9YwT.js → index-CmC6v99h.js} +3 -3
- package/dist/client/assets/{index-BCgTVQy6.js → index-CoDuotD7.js} +1 -1
- package/dist/client/assets/{index-ClRj6-3N.js → index-Cx0uPPmh.js} +1 -1
- package/dist/client/assets/{index-QSc3eGTu.js → index-D1CuHcEn.js} +1 -1
- package/dist/client/assets/{index-BfjkKzIS.js → index-D8mID9PZ.js} +1 -1
- package/dist/client/assets/{index-W5Uv1gFu.js → index-DWUcsrDk.js} +1 -1
- package/dist/client/assets/{index-D6ZKj0d3.js → index-D_7jfHk6.js} +2 -2
- package/dist/client/assets/{index-CnLkSXZ0.js → index-DltLvtZg.js} +1 -1
- package/dist/client/assets/{index-dB_1XyGB.js → index-KqttCHw1.js} +1 -1
- package/dist/client/assets/{index-CiUGtn_W.js → index-qeM6EfxB.js} +1 -1
- package/dist/client/assets/{index-redirect-BikVIQHZ.js → index-redirect-_9q4bmDQ.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-kLjXQrHB.js → infiniteQueryObserver-DG8sBe4B.js} +1 -1
- package/dist/client/assets/{infra-billing-UCBSl2oy.js → infra-billing-BFh6IlFL.js} +1 -1
- package/dist/client/assets/{input-BR2ZOmYv.js → input-B0doV0os.js} +1 -1
- package/dist/client/assets/{input-CEMJ7uPy.js → input-BQ74PHN6.js} +1 -1
- package/dist/client/assets/{input-DWfiFAhX.js → input-DQp1LVsq.js} +3 -3
- package/dist/client/assets/{integration-icon-BXBLtmJk.js → integration-icon-BM3EOzpn.js} +1 -1
- package/dist/client/assets/{jira-icon-BHqtDmCA.js → jira-icon-C1bLqdEg.js} +1 -1
- package/dist/client/assets/{label-SS4h69R5.js → label-DxOPcXJe.js} +1 -1
- package/dist/client/assets/{layout-C4L4n6Lc.js → layout-bHPl4zx9.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-C7aZ6oEJ.js → legacy-agents-deep-BBjNU_wv.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-hF1zoiVf.js → legacy-main-redirect-z5zSFE1g.js} +1 -1
- package/dist/client/assets/library-CVuXHyjV.js +1 -0
- package/dist/client/assets/{library-tab-l_VVRZXX.js → library-tab-Z6y7ewdW.js} +1 -1
- package/dist/client/assets/{login-CKMvHvtg.js → login-DNhk4MX6.js} +1 -1
- package/dist/client/assets/{markdown-29HM3kkf.js → markdown-6zdu9t3J.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DXGnetCy.js → mcp-app-renderer-D5zA7BfR.js} +1 -1
- package/dist/client/assets/{mcp-oauth-3A9tYRyL.js → mcp-oauth-C5T-IVs8.js} +1 -1
- package/dist/client/assets/{members-BcUrZyS-.js → members-BftWOm2t.js} +1 -1
- package/dist/client/assets/{memory-CGswqj8y.js → memory-C67vpugN.js} +1 -1
- package/dist/client/assets/{mini-report-page-Da7eznro.js → mini-report-page-jD0aWOQw.js} +1 -1
- package/dist/client/assets/{mock-board-DXthXijU.js → mock-board-DX11vRZx.js} +1 -1
- package/dist/client/assets/{monaco-editor-DvydENcY.js → monaco-editor-BfKI4VlA.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C3CaqX-m.js → monitoring-stats-row-DB55KTTw.js} +1 -1
- package/dist/client/assets/{multi-select-DwlQIhXq.js → multi-select-DVylmGoB.js} +1 -1
- package/dist/client/assets/{mustache-Brnm_dXD.js → mustache-D-VzFUJG.js} +1 -1
- package/dist/client/assets/{new-project-dialog-pM62WBis.js → new-project-dialog-CXEwhrv6.js} +1 -1
- package/dist/client/assets/{oauth-callback-BMrgEZxm.js → oauth-callback-Cqdj0zbM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CspcIUB4.js → oauth-callback-ai-provider-Cwy6YGO7.js} +1 -1
- package/dist/client/assets/{onboarding-iQ3xdqhh.js → onboarding-BisuojYF.js} +1 -1
- package/dist/client/assets/{openai-conversation-Bo92iq4Z.js → openai-conversation-BICNFmxp.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Bui3Aln1.js → optimistic-project-sidebar-views-BINKTU3_.js} +1 -1
- package/dist/client/assets/{organization-choice-CHmTDpwe.js → organization-choice-CG-C6xsW.js} +1 -1
- package/dist/client/assets/{orgs-DccGLnZP.js → orgs-DCjydoUZ.js} +1 -1
- package/dist/client/assets/{page-seo-form-CVheom0z.js → page-seo-form-C6V8K2um.js} +1 -1
- package/dist/client/assets/{pair-H2ebpVnC.js → pair-knnOGTuF.js} +1 -1
- package/dist/client/assets/{plan-ladder-D3lWJLFO.js → plan-ladder-DlpzxobM.js} +1 -1
- package/dist/client/assets/{popover-B69wnZ0x.js → popover-C2vJrXky.js} +1 -1
- package/dist/client/assets/{post-calendar-BmLvpLiq.js → post-calendar-3X9xGSKe.js} +1 -1
- package/dist/client/assets/{post-editor-C2IWsxcW.js → post-editor-BS-N2LHp.js} +1 -1
- package/dist/client/assets/{preview-content-dlihu8Yt.js → preview-content-CWMTMNmp.js} +1 -1
- package/dist/client/assets/{preview-dialog-WrHsjHqZ.js → preview-dialog-CmtjgV1o.js} +1 -1
- package/dist/client/assets/{preview-panel-C2DKjThP.js → preview-panel-CaQ4Pbpr.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-CvuFuDIB.js → product-picker-dialog-904WCGJu.js} +1 -1
- package/dist/client/assets/{profile-CkXUOnP1.js → profile-aIUaVWtC.js} +1 -1
- package/dist/client/assets/{project-app-view-4F1NzKg3.js → project-app-view-ChZmhZ13.js} +1 -1
- package/dist/client/assets/{project-feed-Cno5cSVS.js → project-feed-t8IHFF-d.js} +1 -1
- package/dist/client/assets/{project-icon-C0Nw8mPG.js → project-icon-DU1uywdD.js} +1 -1
- package/dist/client/assets/project-reports-BF24m5b-.js +1 -0
- package/dist/client/assets/project-tasks-Wmmy6hRq.js +1 -0
- package/dist/client/assets/{projects-DQhNR69M.js → projects-CxEhyr52.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BpTZWKkI.js → projects-empty-state-BsW_dfGL.js} +1 -1
- package/dist/client/assets/{prompts-CigibTM9.js → prompts-Cad3gM_K.js} +1 -1
- package/dist/client/assets/record-editor-Cu0LbDVm.js +1 -0
- package/dist/client/assets/redirect-editor-B65ggNrM.js +1 -0
- package/dist/client/assets/reports-B3_ASbsZ.js +1 -0
- package/dist/client/assets/{reports-B5U9tB3f.js → reports-CMClJ0_S.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CTVsl5Md.js → reports-onboarding-DzC8BMPj.js} +1 -1
- package/dist/client/assets/{reports-tab-M9rEzg5O.js → reports-tab-flC8aPMq.js} +2 -2
- package/dist/client/assets/{repositories-rhEkEXbS.js → repositories-BRVHvY5X.js} +1 -1
- package/dist/client/assets/{repository-binding-DU5xCC2f.js → repository-binding-DpX8yLri.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DbT-KPfC.js → repository-import-picker-CO5nKRxA.js} +1 -1
- package/dist/client/assets/{repository-picker-CbM65WpS.js → repository-picker-C2HnHK1A.js} +1 -1
- package/dist/client/assets/{require-capability-Dn-PxZ0M.js → require-capability-Do1773Hs.js} +1 -1
- package/dist/client/assets/{required-auth-layout-UMnYz1o3.js → required-auth-layout-CDif9NZC.js} +1 -1
- package/dist/client/assets/{reset-password-Db0Wagvh.js → reset-password-Dh0gWEkU.js} +1 -1
- package/dist/client/assets/{resizable-CMUQk1zK.js → resizable-CIqqPf7O.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-sUoI4LWt.js → resolve-tab-icon-S311kwwr.js} +1 -1
- package/dist/client/assets/{review-settings-CyyTBWak.js → review-settings-C9jJxNAv.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-BloybQa2.js → rich-text-link-control-CMeXviAY.js} +1 -1
- package/dist/client/assets/{roles-BI264iFV.js → roles-BOnFVbcr.js} +1 -1
- package/dist/client/assets/{route-DRK1Yrag.js → route-Bvv7axF1.js} +1 -1
- package/dist/client/assets/{route-6SYGGrOe.js → route-DNZvy3kt.js} +1 -1
- package/dist/client/assets/route-DdkXah7z.js +1 -0
- package/dist/client/assets/{runnable-block-editor-aiNmn7uQ.js → runnable-block-editor-BWSWYcJ-.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-KvsIkNFN.js → sandbox-lifecycle-context-BJE24h7z.js} +1 -1
- package/dist/client/assets/{schema-DBi1obJz.js → schema-D1veJPjJ.js} +1 -1
- package/dist/client/assets/{scroll-area-DrC4kFvC.js → scroll-area-Ce9NeF1s.js} +1 -1
- package/dist/client/assets/{search-input-IgJHEtUf.js → search-input-DpJBHwWo.js} +1 -1
- package/dist/client/assets/{search-toggle-CQpL269o.js → search-toggle-Br3rmrbk.js} +1 -1
- package/dist/client/assets/{secret-picker-1felyUvp.js → secret-picker-B_ADx-sY.js} +1 -1
- package/dist/client/assets/{secrets-B-VUMA_J.js → secrets-t0Aczfol.js} +1 -1
- package/dist/client/assets/{sections-editor-BHfMW6Ts.js → sections-editor-CEBB7XW8.js} +1 -1
- package/dist/client/assets/{select-BimoKSOp.js → select-CZdnCwuC.js} +1 -1
- package/dist/client/assets/{select-model-DuC12JIh.js → select-model-ER05JMp8.js} +1 -1
- package/dist/client/assets/{seo-editor-DmSwADHy.js → seo-editor-DHXJaGsL.js} +1 -1
- package/dist/client/assets/{separator-BDE3I0fn.js → separator-BtrJ5AFz.js} +1 -1
- package/dist/client/assets/{settings-tab-BbBuUb6A.js → settings-tab-CTiWw7bm.js} +1 -1
- package/dist/client/assets/{sheet-BF6gLW4J.js → sheet-Gpaizien.js} +1 -1
- package/dist/client/assets/{shell-layout-_Pn7cxIp.js → shell-layout-B0-NcUCt.js} +1 -1
- package/dist/client/assets/{skills-Cdwff9-N.js → skills-BHEjjAUu.js} +1 -1
- package/dist/client/assets/{slider-FhNC3fVS.js → slider-BpZoep6A.js} +1 -1
- package/dist/client/assets/{sortable.esm-BW2r2TQ5.js → sortable.esm-DyjKGVzh.js} +1 -1
- package/dist/client/assets/{sso-BwV31EHP.js → sso-Dgg4nP6H.js} +1 -1
- package/dist/client/assets/{suggestion-CO1eCyUL.js → suggestion-DmBBrXFD.js} +1 -1
- package/dist/client/assets/{switch-DbiylKGt.js → switch-hSsSQMgC.js} +1 -1
- package/dist/client/assets/{symbol-jxhImUCd.js → symbol-CkeqKRPe.js} +1 -1
- package/dist/client/assets/{synced-repos-BC8M1bWl.js → synced-repos-B1QJsQos.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CASAQt8G.js → tab-icon-glyph-BRREqFJ3.js} +1 -1
- package/dist/client/assets/{table-D0TLPmnq.js → table-Dfov51xE.js} +1 -1
- package/dist/client/assets/{tabs-BwctFHZr.js → tabs-Df848FrP.js} +1 -1
- package/dist/client/assets/{task-board-DFP-fne3.js → task-board-ChFrokIN.js} +1 -1
- package/dist/client/assets/{task-route-BierUG4Q.js → task-route-4t67EvVC.js} +1 -1
- package/dist/client/assets/{task-status-cNdQKcCz.js → task-status-cI-KMHji.js} +1 -1
- package/dist/client/assets/taskboard-analytics-C5y5DQZh.js +1 -0
- package/dist/client/assets/tasks-B6PT7ia3.js +1 -0
- package/dist/client/assets/{tasks-CEP9Drl2.js → tasks-Dcje4OJR.js} +1 -1
- package/dist/client/assets/{textarea-DncV9TJN.js → textarea-DaHaRA0Z.js} +1 -1
- package/dist/client/assets/{thread-analytics-BSQZhWFS.js → thread-analytics-5o8rlytc.js} +1 -1
- package/dist/client/assets/{thread-button-3YyJ_qZE.js → thread-button-DwjwmudD.js} +1 -1
- package/dist/client/assets/{thread-intent-o4o-MA3S.js → thread-intent-Cxso0qKW.js} +1 -1
- package/dist/client/assets/{thread-route-BasyELse.js → thread-route-BcAw7-v0.js} +1 -1
- package/dist/client/assets/{thread-route-CaKdVoOw.js → thread-route-CW2be8Kx.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-C6mBvsIL.js → thread-sheet-body-B6geJ00B.js} +1 -1
- package/dist/client/assets/{time-range-picker-C3YgWELe.js → time-range-picker-Bu58tMJr.js} +1 -1
- package/dist/client/assets/{toggle-group-Be2zaRQe.js → toggle-group-BFX-9eHs.js} +1 -1
- package/dist/client/assets/{tool-namespace-BaO4I7fR.js → tool-namespace-BHB8Go32.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DnfVpnpi.js → toolbar-icon-button-D9aCXzS4.js} +1 -1
- package/dist/client/assets/{tooltip-ud1E4lWe.js → tooltip-BULKkf4A.js} +1 -1
- package/dist/client/assets/{tooltipContext-Bn73mb9f.js → tooltipContext-1NNpJuJd.js} +1 -1
- package/dist/client/assets/{track-D9xSFomP.js → track-CpjpKs1v.js} +1 -1
- package/dist/client/assets/{types-C52Y_JT0.js → types-Blm6OQRg.js} +1 -1
- package/dist/client/assets/{url-slug-DA14zDBr.js → url-slug-d-Er1jOR.js} +1 -1
- package/dist/client/assets/{usage-stats-qYCfmoBc.js → usage-stats-Dqycj-p-.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BLkItyxK.js → use-ai-providers-C1bb7SnA.js} +1 -1
- package/dist/client/assets/{use-automations-wOelP2bP.js → use-automations-zlAoF9SL.js} +1 -1
- package/dist/client/assets/{use-autosave-DwWGqeny.js → use-autosave-DBCPQM6l.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-BXUQI_Uj.js → use-chat-layout-state-DDDFQN6Y.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-0CERUZel.js → use-chat-navigation-BF9opsK8.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Byjn6Ipz.js → use-clock-tick-DGTQe72H.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CJUuykr1.js → use-connect-companion-DcLSyBxl.js} +1 -1
- package/dist/client/assets/{use-connection-BLNfspiw.js → use-connection-5LUEsGlJ.js} +1 -1
- package/dist/client/assets/{use-copy-Dg2-hZvb.js → use-copy-CRIUfo35.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DaSHuVdx.js → use-create-virtual-mcp-DzmQH3J8.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-yEAg4rlf.js → use-date-fns-locale-DIokBBqe.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BbQxm-LP.js → use-debounced-autosave-BRSYFOGW.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DkB41yRZ.js → use-debounced-value-DCB8Le0h.js} +1 -1
- package/dist/client/assets/{use-deco-credits-ODPDFKit.js → use-deco-credits-BgPf-IIH.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C_UyGftl.js → use-decopilot-events-uItZ_pJe.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DtNaJnIN.js → use-delete-connection-BLZ4VLoa.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-LfJmve5n.js → use-deployment-admin-BSf-NdBG.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-i0uoPVJF.js → use-ensure-project-folder-BUpbRP81.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DfCPo5oA.js → use-fast-preview-draft-url-8LcTSnsj.js} +1 -1
- package/dist/client/assets/{use-file-configs-CGY_ert6.js → use-file-configs-By7UB_YZ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-979kKqgG.js → use-infinite-scroll-B02yfFGd.js} +1 -1
- package/dist/client/assets/{use-join-requests-BVEasBlK.js → use-join-requests-Cb1ihQM1.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-H7fQ4i6B.js → use-main-panel-tabs-xXeWrfnF.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D2S8OUYy.js → use-mcp-auth-status-B-gyzfqG.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BhAo2QDs.js → use-mcp-client-MUIIizLf.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DPLwYnKg.js → use-mcp-prompts-C3siW74f.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Bv_07i-f.js → use-mcp-tools-CPLGkZB5.js} +1 -1
- package/dist/client/assets/{use-members-BA82esMl.js → use-members-vjX9lJhj.js} +1 -1
- package/dist/client/assets/{use-mobile-DsXG93j_.js → use-mobile-DF1FX6Xv.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-_Fy5-uKx.js → use-navigate-to-agent-p65xWFDF.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-DZnaAqkX.js +1 -0
- package/dist/client/assets/{use-open-billing-url-CUDSWbJf.js → use-open-billing-url-CqJ0vDkP.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-hM9___IR.js → use-org-auth-client-CuZ7oLTb.js} +1 -1
- package/dist/client/assets/{use-org-fs-Df2-ebn-.js → use-org-fs-DPxqVRhB.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-RpIgueH5.js → use-org-repo-syncs-BG16MD5Q.js} +1 -1
- package/dist/client/assets/{use-org-sso-IZ5t5non.js → use-org-sso-BEGhJLya.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CHRytV-b.js → use-organization-roles-DOROP0yS.js} +1 -1
- package/dist/client/assets/{use-organization-settings-XOD9ESkO.js → use-organization-settings-CB0-LYjl.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-vbXDgGYl.js → use-panel-navigate-C4UE8Qkr.js} +1 -1
- package/dist/client/assets/{use-project-scope-KzlP3xju.js → use-project-scope-BMVXwaQ4.js} +1 -1
- package/dist/client/assets/{use-releases-DMtt37HC.js → use-releases-DO5M1M4y.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-B2l9rZ7n.js → use-reports-diagnostic-C3LmmHKo.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-nw0-bXbS.js → use-sandbox-events-E2bKOQlM.js} +1 -1
- package/dist/client/assets/{use-secrets-DcZKciGM.js → use-secrets-C2sdbGJM.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BSDyoSl7.js → use-section-preview-base-26sYGS0B.js} +1 -1
- package/dist/client/assets/{use-tags-fdcoiGJW.js → use-tags-CFN9IU6i.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DNKYjvsI.js → use-task-board-analytics-BmwRnCgb.js} +1 -1
- package/dist/client/assets/{use-task-board-events-Bsmaoj96.js → use-task-board-events-BDjHMnwS.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-h7cdMLQu.js → use-task-board-item-prs-DY1JtBFR.js} +1 -1
- package/dist/client/assets/{use-task-board-items-D9AUaVNI.js → use-task-board-items-DUgOnZAe.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BhK_QNSv.js → use-task-metadata-BCqsxDXx.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-BNWVClHo.js → use-thread-analytics-DJQ2zz_B.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-714c96C6.js → use-thread-outputs-DfIiLAuO.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-eYXaZ_bo.js +1 -0
- package/dist/client/assets/{useQueries-BAV2VQJS.js → useQueries-DKVO6hGe.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-i_drPWHc.js +1 -0
- package/dist/client/assets/{users-D6p7l9Qo.js → users-DbpeSClG.js} +1 -1
- package/dist/client/assets/{utils-Cp3D7BS-.js → utils-Cxy1EsFU.js} +1 -1
- package/dist/client/assets/{variant-calendar-ClgUoajU.js → variant-calendar-BR3Tvz7m.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-BPr4phd8.js → variant-matcher-override-BD9nzwGm.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-rvdqWR_F.js → view-mode-toggle-CVVPadaN.js} +1 -1
- package/dist/client/assets/{virtual-mcp-y87s1o4x.js → virtual-mcp-CYDFCAA6.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-HwFSe36n.js → watch-sse-pool-BXtoXPGx.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +537 -537
- package/package.json +1 -1
- package/dist/client/assets/agent-app-QHYDv9wm.js +0 -1
- package/dist/client/assets/agent-deck-CFpEgiHW.js +0 -1
- package/dist/client/assets/agent-library-D4uAz-Gm.js +0 -1
- package/dist/client/assets/agent-library-file-Cm-5j5_Q.js +0 -1
- package/dist/client/assets/agent-settings-DHaR6tV_.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BOVBRJg8.js +0 -2
- package/dist/client/assets/agent-view-DhvgMtwi.js +0 -1
- package/dist/client/assets/api-keys-BQyxoF0G.js +0 -1
- package/dist/client/assets/app-editor-CdpSejbG.js +0 -1
- package/dist/client/assets/flat-project-BJHdKc4J.js +0 -1
- package/dist/client/assets/library-BilS1-Q5.js +0 -1
- package/dist/client/assets/project-reports-hao_xuVG.js +0 -1
- package/dist/client/assets/project-tasks-0iRMtR_B.js +0 -1
- package/dist/client/assets/record-editor-D01ICPr8.js +0 -1
- package/dist/client/assets/redirect-editor-BptL49e1.js +0 -1
- package/dist/client/assets/reports-CTOZc-B3.js +0 -1
- package/dist/client/assets/route-Dqvws1eb.js +0 -1
- package/dist/client/assets/taskboard-analytics-yjyawLTO.js +0 -1
- package/dist/client/assets/tasks-C5vDjoxa.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-BEuQmWCf.js +0 -1
- package/dist/client/assets/useInfiniteQuery-jncr8EKF.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-rmy_OGLk.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ap as qt,c as ee,b as te,r as w,j as t,B,a9 as Qt,l as At,X as Pt,t as H,aS as Zt,I as es,F as ts,H as ss,ak as os,ai as as,aj as ns,G as Ee,aJ as is,h as Re,q as Oe,au as rs,aX as ft,aY as ls,ad as cs,aM as qe,n as Je,f as ds}from"./index-D6ZKj0d3.js";import{C as ms}from"./index-ClRj6-3N.js";import{d as Ze,N as us,b as fs,a2 as ps,k as pt,as as xs,T as xt,at as gs,h as hs,M as Fe,au as $t}from"./agent-icon-CqZASRJE.js";import{n as gt}from"./ShoppingBag01-CZ0mlBHZ.js";import{t as et}from"./ChevronUp-CiQJnmx3.js";import{e as js}from"./UserSquare-Dbdn52Lc.js";import{e as tt,b as zt,t as Et}from"./Tool01-B-ugA2BM.js";import{a as ys}from"./Image01-CRH49dh2.js";import{i as bs}from"./SearchMd-B4A8PIUy.js";import{B as Ot}from"./badge-80v1nRPK.js";import{C as Kt}from"./checkbox-CvWHs1zK.js";import{S as st}from"./switch-DbiylKGt.js";import{a as Ft,b as Mt,P as Rt}from"./popover-B69wnZ0x.js";import{a as vs,e as ht,b as Cs,f as Ns,C as Ss,c as ks}from"./command-Bvxnety0.js";import{g as Ts,s as ws}from"./tool-namespace-BaO4I7fR.js";import{u as ot}from"./use-connection-BLNfspiw.js";import{u as Ds}from"./use-mcp-client-BhAo2QDs.js";import{u as _s}from"./use-mcp-tools-Bv_07i-f.js";import{I as Is}from"./integration-icon-BXBLtmJk.js";import{M as As}from"./select-model-DuC12JIh.js";import{u as Ps}from"./use-ai-providers-BLkItyxK.js";import{U as $s,b as zs}from"./build-improve-prompt-doc-CbyMBFhr.js";import{a as ve,c as Es,d as Os}from"./use-automations-wOelP2bP.js";import{b as Ks,a as Fs,f as Ms,t as Rs}from"./chat-context-BEKkV-Ll.js";import{b as Ls,C as Vs,a as Us}from"./collapsible-jaPP2OhC.js";import{I as jt}from"./input-BR2ZOmYv.js";import{b as Ws,T as Bs,a as Gs}from"./tooltip-ud1E4lWe.js";import{a as Hs}from"./shell-layout-_Pn7cxIp.js";import{i as Lt}from"./ArrowLeft-C5TDkvfy.js";import{i as Js}from"./ArrowUp-B_1yzk0u.js";import{s as Xs}from"./Trash01--ZO2TG0s.js";import{s as at}from"./XClose-BHLC9coi.js";import{u as yt}from"./use-debounced-autosave-BbQxm-LP.js";import{T as Ys,a as qs}from"./input-CEMJ7uPy.js";import{u as Qs,a as Zs,J as Vt}from"./jira-icon-BHqtDmCA.js";import{s as eo}from"./Plus-B-VohzJ4.js";import{i as nt}from"./ZoomOut-DtT7NZBX.js";import{l as We,H as to}from"./config-JsgNFdSm.js";import{C as so}from"./task-board-DFP-fne3.js";import{D as it,b as rt,c as lt,d as ct,h as dt,e as mt}from"./dialog-CaizaKQW.js";import{M as Ut}from"./multi-select-DwlQIhXq.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-BimoKSOp.js";import{b as oo,a as ao,T as bt}from"./tabs-BwctFHZr.js";import{a as Xe}from"./Copy01-CSQiL-8m.js";import{M as no}from"./monaco-editor-DvydENcY.js";import{A as vt,a as Ct,b as Nt,c as St,g as kt,d as Tt,e as wt,f as Dt}from"./alert-dialog-D_aRnY2J.js";import{A as io}from"./automation-runs-BvXAH6Zy.js";import{C as ro}from"./collection-tabs-Ba1MLgdh.js";import{a as lo}from"./use-panel-navigate-vbXDgGYl.js";import"./use-mobile-DsXG93j_.js";import"./thread-button-3YyJ_qZE.js";import"./use-chat-layout-state-BXUQI_Uj.js";import"./use-file-configs-CGY_ert6.js";import"./use-organization-settings-XOD9ESkO.js";import"./schema-DBi1obJz.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-DU5xCC2f.js";import"./thread-route-CaKdVoOw.js";import"./thread-intent-o4o-MA3S.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-HwFSe36n.js";import"./slugify-CEUa2lfQ.js";import"./sheet-BF6gLW4J.js";import"./X-CGpWJ0hX.js";import"./toolbar-icon-button-DnfVpnpi.js";import"./resizable-CMUQk1zK.js";import"./icon-button-BZdEBEfj.js";import"./use-project-scope-KzlP3xju.js";import"./AlertCircle-DxGlheNv.js";import"./LinkBroken01-aiXtOyEy.js";import"./Building02-aupVb9bk.js";import"./CheckCircle-Ck2nYEsD.js";import"./ChevronSelectorVertical-vEYxYM2o.js";import"./CreditCard01-Dbsq9vqA.js";import"./DotsVertical-D5VxjRuG.js";import"./Globe04-BYAnRXKE.js";import"./SwitchHorizontal01-CUO4Tr7k.js";import"./Key01-DlUQl2kb.js";import"./Link01-CZ9mTgFL.js";import"./LinkExternal01-BNOHDQ-X.js";import"./Monitor01-Dibe2H0E.js";import"./Sun-aaILGBFQ.js";import"./Play-JhD_8p9T.js";import"./Upload01-CNXMP8gQ.js";import"./User01-DqG0FbTZ.js";import"./Users01-Co0Q_ns9.js";import"./index-CnLkSXZ0.js";import"./auth-DK9f1ZTH.js";import"./drawer-Cn362UbS.js";import"./index-BYizWVl-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CYsgyDk8.js";import"./autosend-BV2PsimL.js";import"./use-decopilot-events-C_UyGftl.js";import"./use-chat-navigation-0CERUZel.js";import"./location-BjlyegC2.js";import"./index-QSc3eGTu.js";import"./use-clock-tick-Byjn6Ipz.js";import"./project-icon-C0Nw8mPG.js";import"./new-project-dialog-pM62WBis.js";import"./label-SS4h69R5.js";import"./repository-import-picker-DbT-KPfC.js";import"./use-navigate-to-agent-_Fy5-uKx.js";import"./repository-picker-CbM65WpS.js";import"./useInfiniteQuery-jncr8EKF.js";import"./infiniteQueryObserver-kLjXQrHB.js";import"./collection-search-BMeq1F4t.js";import"./use-debounced-value-DkB41yRZ.js";import"./required-auth-layout-UMnYz1o3.js";import"./use-org-sso-IZ5t5non.js";import"./suggestion-CO1eCyUL.js";import"./usage-stats-qYCfmoBc.js";import"./form-CpErFrQ1.js";import"./utils-CVEq3hMx.js";import"./markdown-29HM3kkf.js";import"./use-copy-Dg2-hZvb.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-mcp-prompts-DPLwYnKg.js";import"./use-org-fs-Df2-ebn-.js";import"./core.esm-CFyPPg_k.js";import"./index-BdQq_4o_.js";import"./editor-B-nIGllj.js";import"./table-D0TLPmnq.js";import"./empty-state-C3-ZBqZ7.js";import"./use-infinite-scroll-979kKqgG.js";import"./use-members-BA82esMl.js";import"./use-org-auth-client-hM9___IR.js";import"./task-status-cNdQKcCz.js";import"./thread-sheet-body-C6mBvsIL.js";import"./useSuspenseInfiniteQuery-rmy_OGLk.js";import"./pair-H2ebpVnC.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DXGnetCy.js";import"./types-C52Y_JT0.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-thread-outputs-714c96C6.js";import"./file-type-icon-CDG1qAi8.js";const Ye={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:hs},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:Et},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:gs}},co=["fast","smart","thinking"];function mo(r){const e=ee.c(19),{tier:s,onSelect:n}=r,o=te(),[i,c]=w.useState(!1),a=Ye[s].icon;let j;e[0]!==a?(j=t.jsx(a,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=j):j=e[1];const d=Ye[s];let m;e[2]!==o||e[3]!==d.labelKey?(m=o(d.labelKey),e[2]=o,e[3]=d.labelKey,e[4]=m):m=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(et,{size:14,className:"text-muted-foreground"}),e[5]=x):x=e[5];let f;e[6]!==j||e[7]!==m?(f=t.jsx(Ft,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,m,x]})}),e[6]=j,e[7]=m,e[8]=f):f=e[8];let g;e[9]!==n||e[10]!==o||e[11]!==s?(g=co.map(p=>{const l=Ye[p],y=l.icon;return t.jsxs("button",{type:"button",onClick:()=>{n(p),c(!1)},className:At("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-muted"),children:[t.jsx(y,{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:o(l.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:o(l.subtitleKey)})]}),p===s&&t.jsx(Qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=o,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Mt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Rt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function uo(r){const e=ee.c(27),{tier:s,onTierChange:n,override:o,onOverrideChange:i}=r,c=te(),[a,j]=w.useState(o!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==o||e[7]!==c||e[8]!==s||e[9]!==a?(x=a?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(fo,{override:o,onOverrideChange:i})}):t.jsx(mo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=o,e[7]=c,e[8]=s,e[9]=a,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==a?(g=t.jsx(st,{checked:a,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=a,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function fo(r){const e=ee.c(25),{override:s,onOverrideChange:n}=r,o=te(),i=Ps(),c=i[0]?.id??null;let a;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(a=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=a):a=e[3];const[j,d]=w.useState(a);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==o?(l=o("automations.automationConfig.connectAiProviderHint"),e[11]=o,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==o?(u=o("automations.automationConfig.pickModelPlaceholder"),e[15]=o,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Wt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:tt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:Ze},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:ys},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:qt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:us}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:pt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:fs},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:zt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:ps},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:bs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:pt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:xs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:xt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:xt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:gt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:gt}]}],po=Wt.flatMap(r=>r.tools.map(e=>e.name));function xo(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function go(r){const e=ee.c(12),{agentId:s,value:n,onChange:o}=r,i=te();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let a;e[2]!==c?(a=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=a):a=e[3];let j;e[4]!==s||e[5]!==o||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(tt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(ho,{agentId:s,value:n,onChange:o})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=o,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==a||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[a,j]}),e[9]=a,e[10]=j,e[11]=d):d=e[11],d}function _t(r){const e=ee.c(17),{value:s,checked:n,onToggle:o,title:i,description:c,leading:a}=r;let j;e[0]!==n?(j=t.jsx(Kt,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==a?(d=a&&t.jsx("span",{className:"mt-px shrink-0",children:a}),e[2]=a,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==o||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Cs,{value:s,onSelect:o,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=o,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function It(r){const e=ee.c(27),{conn:s,label:n,icon:o,on:i,total:c,onToggle:a}=r,j=te(),d=i===c;let m;e[0]!==o||e[1]!==s?(m=s?t.jsx(Is,{icon:s.icon,name:s.title,size:"2xs"}):o?t.jsx(o,{size:14,className:"text-muted-foreground"}):t.jsx(js,{size:14,className:"text-muted-foreground"}),e[0]=o,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==a?(u=v=>{v.stopPropagation(),a()},e[12]=a,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-[11px] font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function ho(r){const e=ee.c(83),{agentId:s,value:n,onChange:o}=r,i=te(),{org:c}=Pt(),[a,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=_s(x),u=ot();let h,p,l,y,v,N,S,b,T,D,_,k,A;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==o||e[10]!==a||e[11]!==i||e[12]!==n){const Y=new Map(u.map(Co)),G=new Map;for(const I of f?.tools??[]){const E=Ts(I._meta)??"__other__",Z=ws(I.name,E==="__other__"?void 0:E),$=I.title,xe=$&&$!==I.name?$:xo(Z);G.has(E)||G.set(E,{clientId:E,conn:Y.get(E),tools:[]}),G.get(E).tools.push({name:I.name,display:xe,description:I.description})}const V=[...G.values()].sort(vo),J=(f?.tools??[]).map(bo),X=[...po,...J],U=n===null?new Set(X):new Set(n),W=X.every(I=>U.has(I)),P=I=>o(X.every(E=>I.has(E))?null:[...I]),de=I=>{const E=new Set(U);E.has(I)?E.delete(I):E.add(I),P(E)},q=(I,E)=>{const Z=new Set(U);for(const $ of I)E?Z.add($):Z.delete($);P(Z)};y=Rt,A=a,v=j;let Q;e[26]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx(tt,{size:14,className:"text-muted-foreground"}),e[26]=Q):Q=e[26];let ne;e[27]!==W||e[28]!==i?(ne=i(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=i,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(Ot,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[U.size,"/",X.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(et,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ne||e[32]!==ue?(N=t.jsx(Ft,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[Q,ne,ue,me]})}),e[31]=ne,e[32]=ue,e[33]=N):N=e[33],l=Mt,_="p-0 w-80",k="start",p=Ns;let se;e[34]!==i?(se=i("automations.automationConfig.searchToolsPlaceholder"),e[34]=i,e[35]=se):se=e[35],e[36]!==se?(T=t.jsx(Ss,{placeholder:se}),e[36]=se,e[37]=T):T=e[37];const fe=W?i("automations.automationConfig.allToolsEnabled",{count:X.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:U.size,total:X.length});let oe;e[38]!==fe?(oe=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=oe):oe=e[39];let ie;e[40]!==o?(ie=()=>o(null),e[40]=o,e[41]=ie):ie=e[41];let re;e[42]!==i?(re=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=re):re=e[43];let C;e[44]!==W||e[45]!==ie||e[46]!==re?(C=t.jsx("button",{type:"button",onClick:ie,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:re}),e[44]=W,e[45]=ie,e[46]=re,e[47]=C):C=e[47];let M;e[48]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=M):M=e[48];let O;e[49]!==o?(O=()=>o([]),e[49]=o,e[50]=O):O=e[50];const pe=U.size===0;let ae;e[51]!==i?(ae=i("automations.automationConfig.clear"),e[51]=i,e[52]=ae):ae=e[52];let le;e[53]!==O||e[54]!==pe||e[55]!==ae?(le=t.jsx("button",{type:"button",onClick:O,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ae}),e[53]=O,e[54]=pe,e[55]=ae,e[56]=le):le=e[56];let ce;e[57]!==C||e[58]!==le?(ce=t.jsxs("div",{className:"flex items-center gap-2",children:[C,M,le]}),e[57]=C,e[58]=le,e[59]=ce):ce=e[59],e[60]!==oe||e[61]!==ce?(D=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[oe,ce]}),e[60]=oe,e[61]=ce,e[62]=D):D=e[62],h=ks,S="max-h-80",b=g?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(vs,{children:i("automations.automationConfig.noToolsFound")}),Wt.map(I=>{const E=I.tools.map(yo),Z=E.filter($=>U.has($)).length;return t.jsx(ht,{heading:t.jsx(It,{label:i(I.headingKey),icon:I.icon,on:Z,total:E.length,onToggle:()=>q(E,Z!==E.length)}),children:I.tools.map($=>t.jsx(_t,{value:`${i($.titleKey)} ${$.name}`,checked:U.has($.name),onToggle:()=>de($.name),title:i($.titleKey),description:i($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},I.key)}),V.map(I=>{const E=I.tools.map(jo),Z=E.filter($=>U.has($)).length;return t.jsx(ht,{heading:t.jsx(It,{conn:I.conn,on:Z,total:E.length,onToggle:()=>q(E,Z!==E.length)}),children:I.tools.map($=>t.jsx(_t,{value:`${$.display} ${$.name} ${I.conn?.title??""}`,checked:U.has($.name),onToggle:()=>de($.name),title:$.display,description:$.description},$.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=o,e[10]=a,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=D,e[23]=_,e[24]=k,e[25]=A}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],D=e[22],_=e[23],k=e[24],A=e[25];let z;e[63]!==h||e[64]!==S||e[65]!==b?(z=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=z):z=e[66];let K;e[67]!==p||e[68]!==z||e[69]!==T||e[70]!==D?(K=t.jsxs(p,{children:[T,D,z]}),e[67]=p,e[68]=z,e[69]=T,e[70]=D,e[71]=K):K=e[71];let F;e[72]!==l||e[73]!==K||e[74]!==_||e[75]!==k?(F=t.jsx(l,{className:_,align:k,children:K}),e[72]=l,e[73]=K,e[74]=_,e[75]=k,e[76]=F):F=e[76];let L;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==F||e[81]!==A?(L=t.jsxs(y,{open:A,onOpenChange:v,children:[N,F]}),e[77]=y,e[78]=v,e[79]=N,e[80]=F,e[81]=A,e[82]=L):L=e[82],L}function jo(r){return r.name}function yo(r){return r.name}function bo(r){return r.name}function vo(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function Co(r){return[r.id,r]}function Me(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function No(r){if(!r)return"Unknown schedule";const e=r.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 s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(o){const a=parseInt(o[1]??"1");return a%7===0?`Every ${a/7} weeks`:`Every ${a} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const a=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${a}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function So(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function ko(r){const e=r.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 s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return o?{count:parseInt(o[1]),unit:"days"}:null}function To(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const wo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],Qe=so.filter(r=>!to.includes(r)),Bt=["any","earlier","later","statuses"],Do=r=>Qe.some(e=>e===r),_o=r=>Bt.some(e=>e===r);function Io({automationId:r,open:e,onOpenChange:s}){const n=te(),{triggerAdd:o}=ve(),[i,c]=w.useState("in_progress"),[a,j]=w.useState("any"),[d,m]=w.useState([]),x=Qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=a!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await o.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:a==="statuses"?{kind:a,statuses:f}:{kind:a}}),H.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){H.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(it,{open:e,onOpenChange:u,children:t.jsxs(rt,{className:"max-w-md",children:[t.jsxs(lt,{children:[t.jsx(ct,{children:n("automations.columnTransitionDialog.title")}),t.jsx(dt,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:a,onValueChange:l=>{_o(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Bt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),a==="statuses"&&t.jsx(Ut,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(mt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||o.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Gt=["any","earlier","later","statuses"],Ao=r=>Gt.some(e=>e===r);function Po({automationId:r,boardId:e,open:s,onOpenChange:n}){const o=te(),{triggerAdd:i}=ve(),c=Qs(s?e:null),[a,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=a??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),H.success(o("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){H.error(b instanceof Error?b.message:o("automations.addStarterPopover.failedAddStarter"))}},N=b=>o(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(Zt,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:o("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(it,{open:s,onOpenChange:y,children:t.jsxs(rt,{className:"max-w-md",children:[t.jsxs(lt,{children:[t.jsx(ct,{children:o("automations.jiraTransitionDialog.title")}),t.jsx(dt,{children:o("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:o("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:o("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Ut,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:o("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("automations.jiraTransitionDialog.help")})]}),t.jsxs(mt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:o("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:o("automations.jiraTransitionDialog.add")})]})]})})}function $o({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:o,onWebhookCreated:i}){const c=te(),{triggerAdd:a}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=Zs().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await a.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),H.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");H.error(S)}},y=async()=>{try{const v=await a.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):H.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");H.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(es,{open:h,onOpenChange:p,children:[t.jsx(ts,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(eo,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(ss,{align:"end",className:"w-[240px]",children:[t.jsxs(os,{children:[t.jsxs(as,{className:"gap-2.5",children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(ns,{className:"w-[160px]",children:wo.map(v=>t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:a.isPending,children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{p(!1),o?.()},children:[t.jsx(nt,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.event")]}),t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx($t,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Vt,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{y()},disabled:a.isPending,children:[t.jsx(Ze,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Io,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx(Po,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Ht(r){const e=ee.c(39),{open:s,onOpenChange:n,url:o,token:i,title:c,description:a}=r,j=c===void 0?"Webhook ready":c,d=a===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":a,m=te(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(V,J)=>{try{await navigator.clipboard.writeText(V),f(J),H.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{H.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==o?(N=o&&i&&h==="url"?`${o.replace(/\/$/,"")}/${i}`:o??"",e[2]=h,e[3]=i,e[4]=o,e[5]=N):N=e[5];const S=N,b=o&&i?h==="header"?`curl -X POST "${S}" \\
|
|
1
|
+
import{ap as qt,c as ee,b as te,r as w,j as t,B,a9 as Qt,l as At,X as Pt,t as H,aS as Zt,I as es,F as ts,H as ss,ak as os,ai as as,aj as ns,G as Ee,aJ as is,h as Re,q as Oe,au as rs,aX as ft,aY as ls,ad as cs,aM as qe,n as Je,f as ds}from"./index-D_7jfHk6.js";import{C as ms}from"./index-Cx0uPPmh.js";import{d as Ze,N as us,b as fs,a2 as ps,k as pt,as as xs,T as xt,at as gs,h as hs,M as Fe,au as $t}from"./agent-icon-CnnNyirr.js";import{n as gt}from"./ShoppingBag01-o0DdjJD9.js";import{t as et}from"./ChevronUp-CceLPRrE.js";import{e as js}from"./UserSquare-BMOlWqCu.js";import{e as tt,b as zt,t as Et}from"./Tool01-Blw6F5iV.js";import{a as ys}from"./Image01-Cxa392ef.js";import{i as bs}from"./SearchMd-BiZNveM1.js";import{B as Ot}from"./badge-CKM84j2S.js";import{C as Kt}from"./checkbox-B2kVXKBD.js";import{S as st}from"./switch-hSsSQMgC.js";import{a as Ft,b as Mt,P as Rt}from"./popover-C2vJrXky.js";import{a as vs,e as ht,b as Cs,f as Ns,C as Ss,c as ks}from"./command-Doiz3O29.js";import{g as Ts,s as ws}from"./tool-namespace-BHB8Go32.js";import{u as ot}from"./use-connection-5LUEsGlJ.js";import{u as Ds}from"./use-mcp-client-MUIIizLf.js";import{u as _s}from"./use-mcp-tools-CPLGkZB5.js";import{I as Is}from"./integration-icon-BM3EOzpn.js";import{M as As}from"./select-model-ER05JMp8.js";import{u as Ps}from"./use-ai-providers-C1bb7SnA.js";import{U as $s,b as zs}from"./build-improve-prompt-doc-R0amEUpn.js";import{a as ve,c as Es,d as Os}from"./use-automations-zlAoF9SL.js";import{b as Ks,a as Fs,f as Ms,t as Rs}from"./chat-context-UMp8QwjT.js";import{b as Ls,C as Vs,a as Us}from"./collapsible-vN3Y9B-p.js";import{I as jt}from"./input-B0doV0os.js";import{b as Ws,T as Bs,a as Gs}from"./tooltip-BULKkf4A.js";import{a as Hs}from"./shell-layout-B0-NcUCt.js";import{i as Lt}from"./ArrowLeft-C1IFj0Ic.js";import{i as Js}from"./ArrowUp-DR-Jhbl1.js";import{s as Xs}from"./Trash01-DAoFHSpp.js";import{s as at}from"./XClose-DBJ7sD1T.js";import{u as yt}from"./use-debounced-autosave-BRSYFOGW.js";import{T as Ys,a as qs}from"./input-BQ74PHN6.js";import{u as Qs,a as Zs,J as Vt}from"./jira-icon-C1bLqdEg.js";import{s as eo}from"./Plus-nldAzVeQ.js";import{i as nt}from"./ZoomOut-CQckFmS9.js";import{l as We,H as to}from"./config-B01oZvpJ.js";import{C as so}from"./task-board-ChFrokIN.js";import{D as it,b as rt,c as lt,d as ct,h as dt,e as mt}from"./dialog-DRpbbWU1.js";import{M as Ut}from"./multi-select-DVylmGoB.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-CZdnCwuC.js";import{b as oo,a as ao,T as bt}from"./tabs-Df848FrP.js";import{a as Xe}from"./Copy01-Dx3ZT0bA.js";import{M as no}from"./monaco-editor-BfKI4VlA.js";import{A as vt,a as Ct,b as Nt,c as St,g as kt,d as Tt,e as wt,f as Dt}from"./alert-dialog-kjq4dW3k.js";import{A as io}from"./automation-runs-BZA4OsIt.js";import{C as ro}from"./collection-tabs-Cw7XLgNG.js";import{a as lo}from"./use-panel-navigate-C4UE8Qkr.js";import"./use-mobile-DF1FX6Xv.js";import"./thread-button-DwjwmudD.js";import"./use-chat-layout-state-DDDFQN6Y.js";import"./use-file-configs-By7UB_YZ.js";import"./use-organization-settings-CB0-LYjl.js";import"./schema-D1veJPjJ.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-DpX8yLri.js";import"./thread-route-CW2be8Kx.js";import"./thread-intent-Cxso0qKW.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BXtoXPGx.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Gpaizien.js";import"./X-DzPShgV5.js";import"./toolbar-icon-button-D9aCXzS4.js";import"./resizable-CIqqPf7O.js";import"./icon-button-BiR7Hy07.js";import"./use-project-scope-BMVXwaQ4.js";import"./AlertCircle-C3fpFT5I.js";import"./LinkBroken01-kK_na_OL.js";import"./Building02-uHT4KVtK.js";import"./CheckCircle-BKHstO_Q.js";import"./ChevronSelectorVertical-DAO6R1Op.js";import"./CreditCard01-Dko0T335.js";import"./DotsVertical-aHYBPlin.js";import"./Globe04-BDe-0jS0.js";import"./SwitchHorizontal01-Bx3d-jDI.js";import"./Key01-BHiUNW_5.js";import"./Link01-BRZRc4wX.js";import"./LinkExternal01-CILXo-bC.js";import"./Monitor01-Cl4JLYVa.js";import"./Sun-BYGxydmh.js";import"./Play-CzTcIQz_.js";import"./Upload01-CtKBhqsv.js";import"./User01-Awky2MVQ.js";import"./Users01-D7ZFKC4W.js";import"./index-DltLvtZg.js";import"./auth-Cps-90jQ.js";import"./drawer-CXs6iEYK.js";import"./index-BvwJHqHQ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-TL9HUab0.js";import"./autosend-BQ3F90GX.js";import"./use-decopilot-events-uItZ_pJe.js";import"./use-chat-navigation-BF9opsK8.js";import"./location-BjlyegC2.js";import"./index-D1CuHcEn.js";import"./use-clock-tick-DGTQe72H.js";import"./project-icon-DU1uywdD.js";import"./new-project-dialog-CXEwhrv6.js";import"./label-DxOPcXJe.js";import"./repository-import-picker-CO5nKRxA.js";import"./use-navigate-to-agent-p65xWFDF.js";import"./repository-picker-C2HnHK1A.js";import"./useInfiniteQuery-eYXaZ_bo.js";import"./infiniteQueryObserver-DG8sBe4B.js";import"./collection-search-BoB9COGX.js";import"./use-debounced-value-DCB8Le0h.js";import"./required-auth-layout-CDif9NZC.js";import"./use-org-sso-BEGhJLya.js";import"./suggestion-DmBBrXFD.js";import"./usage-stats-Dqycj-p-.js";import"./form-BBtB5neb.js";import"./utils-CVEq3hMx.js";import"./markdown-6zdu9t3J.js";import"./use-copy-CRIUfo35.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-mcp-prompts-C3siW74f.js";import"./use-org-fs-DPxqVRhB.js";import"./core.esm-DbclD67Y.js";import"./index-BdQq_4o_.js";import"./editor-CPkkN1Zr.js";import"./table-Dfov51xE.js";import"./empty-state-DnQ_qEjI.js";import"./use-infinite-scroll-B02yfFGd.js";import"./use-members-vjX9lJhj.js";import"./use-org-auth-client-CuZ7oLTb.js";import"./task-status-cI-KMHji.js";import"./thread-sheet-body-B6geJ00B.js";import"./useSuspenseInfiniteQuery-i_drPWHc.js";import"./pair-knnOGTuF.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D5zA7BfR.js";import"./types-Blm6OQRg.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-thread-outputs-DfIiLAuO.js";import"./file-type-icon-Du5QihE_.js";const Ye={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:hs},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:Et},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:gs}},co=["fast","smart","thinking"];function mo(r){const e=ee.c(19),{tier:s,onSelect:n}=r,o=te(),[i,c]=w.useState(!1),a=Ye[s].icon;let j;e[0]!==a?(j=t.jsx(a,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=j):j=e[1];const d=Ye[s];let m;e[2]!==o||e[3]!==d.labelKey?(m=o(d.labelKey),e[2]=o,e[3]=d.labelKey,e[4]=m):m=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(et,{size:14,className:"text-muted-foreground"}),e[5]=x):x=e[5];let f;e[6]!==j||e[7]!==m?(f=t.jsx(Ft,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,m,x]})}),e[6]=j,e[7]=m,e[8]=f):f=e[8];let g;e[9]!==n||e[10]!==o||e[11]!==s?(g=co.map(p=>{const l=Ye[p],y=l.icon;return t.jsxs("button",{type:"button",onClick:()=>{n(p),c(!1)},className:At("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-muted"),children:[t.jsx(y,{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:o(l.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:o(l.subtitleKey)})]}),p===s&&t.jsx(Qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=o,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Mt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Rt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function uo(r){const e=ee.c(27),{tier:s,onTierChange:n,override:o,onOverrideChange:i}=r,c=te(),[a,j]=w.useState(o!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==o||e[7]!==c||e[8]!==s||e[9]!==a?(x=a?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(fo,{override:o,onOverrideChange:i})}):t.jsx(mo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=o,e[7]=c,e[8]=s,e[9]=a,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==a?(g=t.jsx(st,{checked:a,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=a,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function fo(r){const e=ee.c(25),{override:s,onOverrideChange:n}=r,o=te(),i=Ps(),c=i[0]?.id??null;let a;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(a=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=a):a=e[3];const[j,d]=w.useState(a);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==o?(l=o("automations.automationConfig.connectAiProviderHint"),e[11]=o,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==o?(u=o("automations.automationConfig.pickModelPlaceholder"),e[15]=o,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Wt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:tt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:Ze},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:ys},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:qt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:us}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:pt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:fs},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:zt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:ps},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:bs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:pt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:xs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:xt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:xt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:gt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:gt}]}],po=Wt.flatMap(r=>r.tools.map(e=>e.name));function xo(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function go(r){const e=ee.c(12),{agentId:s,value:n,onChange:o}=r,i=te();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let a;e[2]!==c?(a=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=a):a=e[3];let j;e[4]!==s||e[5]!==o||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(tt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(ho,{agentId:s,value:n,onChange:o})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=o,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==a||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[a,j]}),e[9]=a,e[10]=j,e[11]=d):d=e[11],d}function _t(r){const e=ee.c(17),{value:s,checked:n,onToggle:o,title:i,description:c,leading:a}=r;let j;e[0]!==n?(j=t.jsx(Kt,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==a?(d=a&&t.jsx("span",{className:"mt-px shrink-0",children:a}),e[2]=a,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==o||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Cs,{value:s,onSelect:o,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=o,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function It(r){const e=ee.c(27),{conn:s,label:n,icon:o,on:i,total:c,onToggle:a}=r,j=te(),d=i===c;let m;e[0]!==o||e[1]!==s?(m=s?t.jsx(Is,{icon:s.icon,name:s.title,size:"2xs"}):o?t.jsx(o,{size:14,className:"text-muted-foreground"}):t.jsx(js,{size:14,className:"text-muted-foreground"}),e[0]=o,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==a?(u=v=>{v.stopPropagation(),a()},e[12]=a,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-[11px] font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function ho(r){const e=ee.c(83),{agentId:s,value:n,onChange:o}=r,i=te(),{org:c}=Pt(),[a,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=_s(x),u=ot();let h,p,l,y,v,N,S,b,T,D,_,k,A;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==o||e[10]!==a||e[11]!==i||e[12]!==n){const Y=new Map(u.map(Co)),G=new Map;for(const I of f?.tools??[]){const E=Ts(I._meta)??"__other__",Z=ws(I.name,E==="__other__"?void 0:E),$=I.title,xe=$&&$!==I.name?$:xo(Z);G.has(E)||G.set(E,{clientId:E,conn:Y.get(E),tools:[]}),G.get(E).tools.push({name:I.name,display:xe,description:I.description})}const V=[...G.values()].sort(vo),J=(f?.tools??[]).map(bo),X=[...po,...J],U=n===null?new Set(X):new Set(n),W=X.every(I=>U.has(I)),P=I=>o(X.every(E=>I.has(E))?null:[...I]),de=I=>{const E=new Set(U);E.has(I)?E.delete(I):E.add(I),P(E)},q=(I,E)=>{const Z=new Set(U);for(const $ of I)E?Z.add($):Z.delete($);P(Z)};y=Rt,A=a,v=j;let Q;e[26]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx(tt,{size:14,className:"text-muted-foreground"}),e[26]=Q):Q=e[26];let ne;e[27]!==W||e[28]!==i?(ne=i(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=i,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(Ot,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[U.size,"/",X.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(et,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ne||e[32]!==ue?(N=t.jsx(Ft,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[Q,ne,ue,me]})}),e[31]=ne,e[32]=ue,e[33]=N):N=e[33],l=Mt,_="p-0 w-80",k="start",p=Ns;let se;e[34]!==i?(se=i("automations.automationConfig.searchToolsPlaceholder"),e[34]=i,e[35]=se):se=e[35],e[36]!==se?(T=t.jsx(Ss,{placeholder:se}),e[36]=se,e[37]=T):T=e[37];const fe=W?i("automations.automationConfig.allToolsEnabled",{count:X.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:U.size,total:X.length});let oe;e[38]!==fe?(oe=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=oe):oe=e[39];let ie;e[40]!==o?(ie=()=>o(null),e[40]=o,e[41]=ie):ie=e[41];let re;e[42]!==i?(re=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=re):re=e[43];let C;e[44]!==W||e[45]!==ie||e[46]!==re?(C=t.jsx("button",{type:"button",onClick:ie,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:re}),e[44]=W,e[45]=ie,e[46]=re,e[47]=C):C=e[47];let M;e[48]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=M):M=e[48];let O;e[49]!==o?(O=()=>o([]),e[49]=o,e[50]=O):O=e[50];const pe=U.size===0;let ae;e[51]!==i?(ae=i("automations.automationConfig.clear"),e[51]=i,e[52]=ae):ae=e[52];let le;e[53]!==O||e[54]!==pe||e[55]!==ae?(le=t.jsx("button",{type:"button",onClick:O,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ae}),e[53]=O,e[54]=pe,e[55]=ae,e[56]=le):le=e[56];let ce;e[57]!==C||e[58]!==le?(ce=t.jsxs("div",{className:"flex items-center gap-2",children:[C,M,le]}),e[57]=C,e[58]=le,e[59]=ce):ce=e[59],e[60]!==oe||e[61]!==ce?(D=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[oe,ce]}),e[60]=oe,e[61]=ce,e[62]=D):D=e[62],h=ks,S="max-h-80",b=g?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(vs,{children:i("automations.automationConfig.noToolsFound")}),Wt.map(I=>{const E=I.tools.map(yo),Z=E.filter($=>U.has($)).length;return t.jsx(ht,{heading:t.jsx(It,{label:i(I.headingKey),icon:I.icon,on:Z,total:E.length,onToggle:()=>q(E,Z!==E.length)}),children:I.tools.map($=>t.jsx(_t,{value:`${i($.titleKey)} ${$.name}`,checked:U.has($.name),onToggle:()=>de($.name),title:i($.titleKey),description:i($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},I.key)}),V.map(I=>{const E=I.tools.map(jo),Z=E.filter($=>U.has($)).length;return t.jsx(ht,{heading:t.jsx(It,{conn:I.conn,on:Z,total:E.length,onToggle:()=>q(E,Z!==E.length)}),children:I.tools.map($=>t.jsx(_t,{value:`${$.display} ${$.name} ${I.conn?.title??""}`,checked:U.has($.name),onToggle:()=>de($.name),title:$.display,description:$.description},$.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=o,e[10]=a,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=D,e[23]=_,e[24]=k,e[25]=A}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],D=e[22],_=e[23],k=e[24],A=e[25];let z;e[63]!==h||e[64]!==S||e[65]!==b?(z=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=z):z=e[66];let K;e[67]!==p||e[68]!==z||e[69]!==T||e[70]!==D?(K=t.jsxs(p,{children:[T,D,z]}),e[67]=p,e[68]=z,e[69]=T,e[70]=D,e[71]=K):K=e[71];let F;e[72]!==l||e[73]!==K||e[74]!==_||e[75]!==k?(F=t.jsx(l,{className:_,align:k,children:K}),e[72]=l,e[73]=K,e[74]=_,e[75]=k,e[76]=F):F=e[76];let L;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==F||e[81]!==A?(L=t.jsxs(y,{open:A,onOpenChange:v,children:[N,F]}),e[77]=y,e[78]=v,e[79]=N,e[80]=F,e[81]=A,e[82]=L):L=e[82],L}function jo(r){return r.name}function yo(r){return r.name}function bo(r){return r.name}function vo(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function Co(r){return[r.id,r]}function Me(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function No(r){if(!r)return"Unknown schedule";const e=r.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 s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(o){const a=parseInt(o[1]??"1");return a%7===0?`Every ${a/7} weeks`:`Every ${a} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const a=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${a}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function So(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function ko(r){const e=r.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 s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return o?{count:parseInt(o[1]),unit:"days"}:null}function To(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const wo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],Qe=so.filter(r=>!to.includes(r)),Bt=["any","earlier","later","statuses"],Do=r=>Qe.some(e=>e===r),_o=r=>Bt.some(e=>e===r);function Io({automationId:r,open:e,onOpenChange:s}){const n=te(),{triggerAdd:o}=ve(),[i,c]=w.useState("in_progress"),[a,j]=w.useState("any"),[d,m]=w.useState([]),x=Qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=a!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await o.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:a==="statuses"?{kind:a,statuses:f}:{kind:a}}),H.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){H.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(it,{open:e,onOpenChange:u,children:t.jsxs(rt,{className:"max-w-md",children:[t.jsxs(lt,{children:[t.jsx(ct,{children:n("automations.columnTransitionDialog.title")}),t.jsx(dt,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:a,onValueChange:l=>{_o(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Bt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),a==="statuses"&&t.jsx(Ut,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(mt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||o.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Gt=["any","earlier","later","statuses"],Ao=r=>Gt.some(e=>e===r);function Po({automationId:r,boardId:e,open:s,onOpenChange:n}){const o=te(),{triggerAdd:i}=ve(),c=Qs(s?e:null),[a,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=a??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),H.success(o("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){H.error(b instanceof Error?b.message:o("automations.addStarterPopover.failedAddStarter"))}},N=b=>o(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(Zt,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:o("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(it,{open:s,onOpenChange:y,children:t.jsxs(rt,{className:"max-w-md",children:[t.jsxs(lt,{children:[t.jsx(ct,{children:o("automations.jiraTransitionDialog.title")}),t.jsx(dt,{children:o("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:o("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:o("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Ut,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:o("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("automations.jiraTransitionDialog.help")})]}),t.jsxs(mt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:o("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:o("automations.jiraTransitionDialog.add")})]})]})})}function $o({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:o,onWebhookCreated:i}){const c=te(),{triggerAdd:a}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=Zs().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await a.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),H.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");H.error(S)}},y=async()=>{try{const v=await a.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):H.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");H.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(es,{open:h,onOpenChange:p,children:[t.jsx(ts,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(eo,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(ss,{align:"end",className:"w-[240px]",children:[t.jsxs(os,{children:[t.jsxs(as,{className:"gap-2.5",children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(ns,{className:"w-[160px]",children:wo.map(v=>t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:a.isPending,children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{p(!1),o?.()},children:[t.jsx(nt,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.event")]}),t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx($t,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Vt,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(Ee,{className:"gap-2.5",onSelect:()=>{y()},disabled:a.isPending,children:[t.jsx(Ze,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Io,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx(Po,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Ht(r){const e=ee.c(39),{open:s,onOpenChange:n,url:o,token:i,title:c,description:a}=r,j=c===void 0?"Webhook ready":c,d=a===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":a,m=te(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(V,J)=>{try{await navigator.clipboard.writeText(V),f(J),H.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{H.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==o?(N=o&&i&&h==="url"?`${o.replace(/\/$/,"")}/${i}`:o??"",e[2]=h,e[3]=i,e[4]=o,e[5]=N):N=e[5];const S=N,b=o&&i?h==="header"?`curl -X POST "${S}" \\
|
|
2
2
|
-H "Authorization: Bearer ${i}" \\
|
|
3
3
|
-H "Content-Type: application/json" \\
|
|
4
4
|
-d '{"hello":"world"}'`:`curl -X POST "${S}" \\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,b as O,r as G,j as e,n as m,q as Q,B as V,aM as U}from"./index-
|
|
1
|
+
import{c as S,b as O,r as G,j as e,n as m,q as Q,B as V,aM as U}from"./index-D_7jfHk6.js";import{C as W}from"./index-Cx0uPPmh.js";import{s as X}from"./Plus-nldAzVeQ.js";import{t as Y}from"./agent-icon-CnnNyirr.js";import{i as F}from"./ZoomOut-CQckFmS9.js";import{S as Z}from"./search-input-DpJBHwWo.js";import{E as $}from"./empty-state-DnQ_qEjI.js";import{u as tt,a as et,b as it}from"./use-automations-zlAoF9SL.js";import{a as ot}from"./use-panel-navigate-C4UE8Qkr.js";import{A as st}from"./automation-list-row-C9YrfX3o.js";import{b as rt}from"./thread-route-CW2be8Kx.js";import"./use-mobile-DF1FX6Xv.js";import"./thread-button-DwjwmudD.js";import"./UserSquare-BMOlWqCu.js";import"./Image01-Cxa392ef.js";import"./use-chat-layout-state-DDDFQN6Y.js";import"./use-file-configs-By7UB_YZ.js";import"./use-organization-settings-CB0-LYjl.js";import"./schema-D1veJPjJ.js";import"./task-board-ChFrokIN.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-DpX8yLri.js";import"./use-mcp-client-MUIIizLf.js";import"./auth-Cps-90jQ.js";import"./thread-intent-Cxso0qKW.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BXtoXPGx.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Gpaizien.js";import"./X-DzPShgV5.js";import"./tooltip-BULKkf4A.js";import"./index-D1CuHcEn.js";import"./toolbar-icon-button-D9aCXzS4.js";import"./shell-layout-B0-NcUCt.js";import"./avatar-TL9HUab0.js";import"./User01-Awky2MVQ.js";import"./Building02-uHT4KVtK.js";import"./XClose-DBJ7sD1T.js";import"./use-project-scope-BMVXwaQ4.js";import"./CheckCircle-BKHstO_Q.js";import"./Monitor01-Cl4JLYVa.js";import"./use-clock-tick-DGTQe72H.js";import"./dialog-DRpbbWU1.js";import"./Tool01-Blw6F5iV.js";import"./command-Doiz3O29.js";import"./index-DltLvtZg.js";import"./SearchMd-BiZNveM1.js";import"./integration-icon-BM3EOzpn.js";import"./LinkBroken01-kK_na_OL.js";import"./project-icon-DU1uywdD.js";import"./new-project-dialog-CXEwhrv6.js";import"./ArrowLeft-C1IFj0Ic.js";import"./input-B0doV0os.js";import"./label-DxOPcXJe.js";import"./repository-import-picker-CO5nKRxA.js";import"./use-navigate-to-agent-p65xWFDF.js";import"./repository-picker-C2HnHK1A.js";import"./LinkExternal01-CILXo-bC.js";import"./useInfiniteQuery-eYXaZ_bo.js";import"./infiniteQueryObserver-DG8sBe4B.js";import"./collection-search-BoB9COGX.js";import"./ShoppingBag01-o0DdjJD9.js";import"./use-debounced-value-DCB8Le0h.js";import"./required-auth-layout-CDif9NZC.js";import"./autosend-BQ3F90GX.js";import"./use-org-sso-BEGhJLya.js";import"./resizable-CIqqPf7O.js";import"./icon-button-BiR7Hy07.js";import"./AlertCircle-C3fpFT5I.js";import"./ArrowUp-DR-Jhbl1.js";import"./ChevronUp-CceLPRrE.js";import"./ChevronSelectorVertical-DAO6R1Op.js";import"./Copy01-Dx3ZT0bA.js";import"./CreditCard01-Dko0T335.js";import"./DotsVertical-aHYBPlin.js";import"./Globe04-BDe-0jS0.js";import"./SwitchHorizontal01-Bx3d-jDI.js";import"./Key01-BHiUNW_5.js";import"./Link01-BRZRc4wX.js";import"./Sun-BYGxydmh.js";import"./Play-CzTcIQz_.js";import"./Trash01-DAoFHSpp.js";import"./Upload01-CtKBhqsv.js";import"./Users01-D7ZFKC4W.js";import"./badge-CKM84j2S.js";import"./alert-dialog-kjq4dW3k.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=O(),{openPanel:n}=ot(),{data:M,error:q}=tt(r),b=M===void 0?[]:M,{create:y}=et(),[_,H]=G.useState("");if(q&&nt(q)){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(V,{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 J=_.toLowerCase(),D=b.filter(s=>s.name.toLowerCase().includes(J));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;Q("automation_new_clicked",{virtual_mcp_id:r,existing_count:b.length});const s=await y.mutateAsync(it(r));B(s.id)},K=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(V,{size:"sm",onClick:R,disabled:K,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:H,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(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:!1})}):D.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{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:D.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(U,{}),t[0]=i):i=t[0];let n;return t[1]!==r?(n=e.jsx(G.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 Ge(){const o=S.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{Ge as default};
|
package/dist/client/assets/{agent-connect-sources-COzXkalQ.js → agent-connect-sources-CSrFX52j.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-D_7jfHk6.js";import{C as D}from"./index-Cx0uPPmh.js";import{u as B}from"./use-mcp-client-MUIIizLf.js";import{C as z,a as H}from"./companion-mcps-section-gXkjR-XD.js";import{c as K}from"./use-connect-companion-DcLSyBxl.js";import{C as v,a as X}from"./connect-layout-CoxrwG6t.js";import{p as q}from"./self-tool-result-8OxPN9Nm.js";import{a as G}from"./use-panel-navigate-C4UE8Qkr.js";import"./use-mobile-DF1FX6Xv.js";import"./thread-button-DwjwmudD.js";import"./agent-icon-CnnNyirr.js";import"./AlertCircle-C3fpFT5I.js";import"./Tool01-Blw6F5iV.js";import"./ArrowUp-DR-Jhbl1.js";import"./ArrowLeft-C1IFj0Ic.js";import"./LinkBroken01-kK_na_OL.js";import"./ShoppingBag01-o0DdjJD9.js";import"./ZoomOut-CQckFmS9.js";import"./Building02-uHT4KVtK.js";import"./CheckCircle-BKHstO_Q.js";import"./ChevronUp-CceLPRrE.js";import"./ChevronSelectorVertical-DAO6R1Op.js";import"./UserSquare-BMOlWqCu.js";import"./Copy01-Dx3ZT0bA.js";import"./CreditCard01-Dko0T335.js";import"./DotsVertical-aHYBPlin.js";import"./Image01-Cxa392ef.js";import"./Globe04-BDe-0jS0.js";import"./SwitchHorizontal01-Bx3d-jDI.js";import"./Key01-BHiUNW_5.js";import"./Link01-BRZRc4wX.js";import"./LinkExternal01-CILXo-bC.js";import"./Monitor01-Cl4JLYVa.js";import"./Sun-BYGxydmh.js";import"./Play-CzTcIQz_.js";import"./Plus-nldAzVeQ.js";import"./SearchMd-BiZNveM1.js";import"./Trash01-DAoFHSpp.js";import"./Upload01-CtKBhqsv.js";import"./User01-Awky2MVQ.js";import"./Users01-D7ZFKC4W.js";import"./XClose-DBJ7sD1T.js";import"./X-DzPShgV5.js";import"./use-chat-layout-state-DDDFQN6Y.js";import"./use-file-configs-By7UB_YZ.js";import"./use-organization-settings-CB0-LYjl.js";import"./schema-D1veJPjJ.js";import"./task-board-ChFrokIN.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-DpX8yLri.js";import"./thread-route-CW2be8Kx.js";import"./thread-intent-Cxso0qKW.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BXtoXPGx.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Gpaizien.js";import"./tooltip-BULKkf4A.js";import"./index-D1CuHcEn.js";import"./toolbar-icon-button-D9aCXzS4.js";import"./shell-layout-B0-NcUCt.js";import"./avatar-TL9HUab0.js";import"./use-project-scope-BMVXwaQ4.js";import"./use-clock-tick-DGTQe72H.js";import"./dialog-DRpbbWU1.js";import"./command-Doiz3O29.js";import"./index-DltLvtZg.js";import"./integration-icon-BM3EOzpn.js";import"./project-icon-DU1uywdD.js";import"./new-project-dialog-CXEwhrv6.js";import"./input-B0doV0os.js";import"./label-DxOPcXJe.js";import"./repository-import-picker-CO5nKRxA.js";import"./use-navigate-to-agent-p65xWFDF.js";import"./repository-picker-C2HnHK1A.js";import"./useInfiniteQuery-eYXaZ_bo.js";import"./infiniteQueryObserver-DG8sBe4B.js";import"./collection-search-BoB9COGX.js";import"./use-debounced-value-DCB8Le0h.js";import"./required-auth-layout-CDif9NZC.js";import"./autosend-BQ3F90GX.js";import"./use-org-sso-BEGhJLya.js";import"./resizable-CIqqPf7O.js";import"./icon-button-BiR7Hy07.js";import"./auth-Cps-90jQ.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-BBtB5neb.js";import"./provision-repo-scoped-github-connection-lckxpDHD.js";import"./useQueries-DKVO6hGe.js";import"./authenticate-and-persist-oauth-eDHShxj5.js";import"./mcp-oauth-C5T-IVs8.js";import"./track-CpjpKs1v.js";import"./extract-connection-data-Q_j_fmQx.js";import"./connection-FKmTBjan.js";import"./url-slug-d-Er1jOR.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 zo(){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{zo as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c,j as e,aS as b,u as g}from"./index-D_7jfHk6.js";import{C as j}from"./index-Cx0uPPmh.js";import{F as v,H as S}from"./file-share-button-C8ZBUx_e.js";import{u as k,b as y,e as _}from"./use-org-fs-DPxqVRhB.js";import{S as w}from"./settings-tab-CTiWw7bm.js";import{b as M}from"./thread-route-CW2be8Kx.js";import"./use-mobile-DF1FX6Xv.js";import"./thread-button-DwjwmudD.js";import"./agent-icon-CnnNyirr.js";import"./AlertCircle-C3fpFT5I.js";import"./Tool01-Blw6F5iV.js";import"./ArrowUp-DR-Jhbl1.js";import"./ArrowLeft-C1IFj0Ic.js";import"./LinkBroken01-kK_na_OL.js";import"./ShoppingBag01-o0DdjJD9.js";import"./ZoomOut-CQckFmS9.js";import"./Building02-uHT4KVtK.js";import"./CheckCircle-BKHstO_Q.js";import"./ChevronUp-CceLPRrE.js";import"./ChevronSelectorVertical-DAO6R1Op.js";import"./UserSquare-BMOlWqCu.js";import"./Copy01-Dx3ZT0bA.js";import"./CreditCard01-Dko0T335.js";import"./DotsVertical-aHYBPlin.js";import"./Image01-Cxa392ef.js";import"./Globe04-BDe-0jS0.js";import"./SwitchHorizontal01-Bx3d-jDI.js";import"./Key01-BHiUNW_5.js";import"./Link01-BRZRc4wX.js";import"./LinkExternal01-CILXo-bC.js";import"./Monitor01-Cl4JLYVa.js";import"./Sun-BYGxydmh.js";import"./Play-CzTcIQz_.js";import"./Plus-nldAzVeQ.js";import"./SearchMd-BiZNveM1.js";import"./Trash01-DAoFHSpp.js";import"./Upload01-CtKBhqsv.js";import"./User01-Awky2MVQ.js";import"./Users01-D7ZFKC4W.js";import"./XClose-DBJ7sD1T.js";import"./X-DzPShgV5.js";import"./use-chat-layout-state-DDDFQN6Y.js";import"./use-file-configs-By7UB_YZ.js";import"./use-organization-settings-CB0-LYjl.js";import"./schema-D1veJPjJ.js";import"./task-board-ChFrokIN.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-DpX8yLri.js";import"./use-mcp-client-MUIIizLf.js";import"./auth-Cps-90jQ.js";import"./use-panel-navigate-C4UE8Qkr.js";import"./use-project-scope-BMVXwaQ4.js";import"./thread-intent-Cxso0qKW.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BXtoXPGx.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Gpaizien.js";import"./tooltip-BULKkf4A.js";import"./index-D1CuHcEn.js";import"./toolbar-icon-button-D9aCXzS4.js";import"./shell-layout-B0-NcUCt.js";import"./avatar-TL9HUab0.js";import"./use-clock-tick-DGTQe72H.js";import"./dialog-DRpbbWU1.js";import"./command-Doiz3O29.js";import"./index-DltLvtZg.js";import"./integration-icon-BM3EOzpn.js";import"./project-icon-DU1uywdD.js";import"./new-project-dialog-CXEwhrv6.js";import"./input-B0doV0os.js";import"./label-DxOPcXJe.js";import"./repository-import-picker-CO5nKRxA.js";import"./use-navigate-to-agent-p65xWFDF.js";import"./repository-picker-C2HnHK1A.js";import"./useInfiniteQuery-eYXaZ_bo.js";import"./infiniteQueryObserver-DG8sBe4B.js";import"./collection-search-BoB9COGX.js";import"./use-debounced-value-DCB8Le0h.js";import"./required-auth-layout-CDif9NZC.js";import"./autosend-BQ3F90GX.js";import"./use-org-sso-BEGhJLya.js";import"./resizable-CIqqPf7O.js";import"./icon-button-BiR7Hy07.js";import"./popover-C2vJrXky.js";import"./extract-connection-data-Q_j_fmQx.js";import"./metadata-D72DunRR.js";import"./connection-FKmTBjan.js";import"./url-slug-d-Er1jOR.js";import"./chat-context-UMp8QwjT.js";import"./use-decopilot-events-uItZ_pJe.js";import"./use-ai-providers-C1bb7SnA.js";import"./use-chat-navigation-BF9opsK8.js";import"./location-BjlyegC2.js";import"./build-improve-prompt-doc-R0amEUpn.js";import"./empty-state-DnQ_qEjI.js";import"./use-date-fns-locale-DIokBBqe.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-5LUEsGlJ.js";import"./mcp-oauth-C5T-IVs8.js";import"./alert-dialog-kjq4dW3k.js";import"./textarea-DaHaRA0Z.js";import"./use-debounced-autosave-BRSYFOGW.js";import"./add-connection-dialog-Eph5CbUo.js";import"./connection-card-Cvk5T5vt.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-CXs6iEYK.js";import"./form-BBtB5neb.js";import"./select-CZdnCwuC.js";import"./index-BdQq_4o_.js";import"./connection-form-helpers-D4Q7rLyt.js";import"./authenticate-and-persist-oauth-eDHShxj5.js";import"./collection-tabs-Cw7XLgNG.js";import"./badge-CKM84j2S.js";import"./use-infinite-scroll-B02yfFGd.js";import"./useSuspenseInfiniteQuery-i_drPWHc.js";import"./file-type-icon-Du5QihE_.js";import"./checkbox-B2kVXKBD.js";import"./search-input-DpJBHwWo.js";import"./use-mcp-auth-status-B-gyzfqG.js";import"./types-Blm6OQRg.js";import"./use-mcp-tools-CPLGkZB5.js";import"./use-mcp-prompts-C3siW74f.js";import"./utils-CVEq3hMx.js";import"./switch-hSsSQMgC.js";import"./scroll-area-Ce9NeF1s.js";import"./optimistic-project-sidebar-views-BINKTU3_.js";import"./virtual-mcp-CYDFCAA6.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-B_ADx-sY.js";import"./use-secrets-C2sdbGJM.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const x="home";function P(i){const t=c.c(5),{label:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx(b,{className:"aspect-video w-2/3 max-w-xl"}),t[0]=p):p=t[0];let o;t[1]!==r?(o=r&&e.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=e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 bg-background",children:[p,o]}),t[3]=o,t[4]=m):m=t[4],m}function D(i){const t=c.c(15),{path:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={refetchIntervalWhenAbsent:2e3},t[0]=p):p=t[0];const o=k(x,r,p),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=e.jsx(P,{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=e.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=e.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),p=M(),o="path"in r&&typeof r.path=="string"?r.path:void 0;let m;return i[1]!==o||i[2]!==p?(m=o?e.jsx(D,{path:o},o):e.jsx(w,{virtualMcpId:p}),i[1]=o,i[2]=p,i[3]=m):m=i[3],m}function rr(){const i=c.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(j.Content,{children:e.jsx(C,{})}),i[0]=t):t=i[0],t}export{rr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,b as Ee,m as _e,j as t,aS as $e,l as Ve,K as xe,B as ge,r as pe,Z as _t,d2 as zt,al as ot,X as Et,o as He,e as Ue,t as be}from"./index-D6ZKj0d3.js";import{C as Rt}from"./index-ClRj6-3N.js";import{M as Je,B as We,br as Lt,bs as At,bt as Ft,v as ke,bu as ct,N as Mt}from"./agent-icon-CqZASRJE.js";import{t as dt}from"./ChevronUp-CiQJnmx3.js";import{s as mt}from"./Trash01--ZO2TG0s.js";import{B as te}from"./badge-80v1nRPK.js";import{I as Ut}from"./input-BR2ZOmYv.js";import{L as Be}from"./label-SS4h69R5.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-D_aRnY2J.js";import{b as It,D as qt,c as Vt,d as Ot,e as Kt}from"./dialog-CaizaKQW.js";import{S as nt,b as at,a as rt,d as it,c as Tt}from"./select-BimoKSOp.js";import{e as Xe,a as Ye,b as we,T as W,d as Ze,c as X}from"./table-D0TLPmnq.js";import{E as De}from"./empty-state-DfNAbSXk.js";import{a as Bt}from"./repository-binding-DU5xCC2f.js";import{r as Qt}from"./site-slug-DebpOoQq.js";import{i as Re}from"./CheckCircle-Ck2nYEsD.js";import{n as vt}from"./LinkExternal01-BNOHDQ-X.js";import{i as Ht}from"./Monitor01-Dibe2H0E.js";import{c as Jt}from"./UserSquare-Dbdn52Lc.js";import{C as Wt,a as Xt,b as Yt}from"./collapsible-jaPP2OhC.js";import{T as Zt,a as Gt,c as es,b as ts}from"./tabs-BwctFHZr.js";import{S as ss,d as ls,c as ns,a as as,b as rs}from"./sheet-BF6gLW4J.js";import{S as is}from"./settings-tab-BbBuUb6A.js";import{c as os}from"./use-organization-settings-XOD9ESkO.js";import{b as cs}from"./thread-route-CaKdVoOw.js";import"./use-mobile-DsXG93j_.js";import"./thread-button-3YyJ_qZE.js";import"./Image01-CRH49dh2.js";import"./ZoomOut-DtT7NZBX.js";import"./use-chat-layout-state-BXUQI_Uj.js";import"./use-file-configs-CGY_ert6.js";import"./use-panel-navigate-vbXDgGYl.js";import"./use-project-scope-KzlP3xju.js";import"./thread-intent-o4o-MA3S.js";import"./use-mcp-client-BhAo2QDs.js";import"./auth-DK9f1ZTH.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-HwFSe36n.js";import"./task-board-DFP-fne3.js";import"./schema-DBi1obJz.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-ud1E4lWe.js";import"./index-QSc3eGTu.js";import"./toolbar-icon-button-DnfVpnpi.js";import"./shell-layout-_Pn7cxIp.js";import"./avatar-CYsgyDk8.js";import"./User01-DqG0FbTZ.js";import"./Building02-aupVb9bk.js";import"./XClose-BHLC9coi.js";import"./use-clock-tick-Byjn6Ipz.js";import"./Plus-B-VohzJ4.js";import"./Tool01-B-ugA2BM.js";import"./command-Bvxnety0.js";import"./index-CnLkSXZ0.js";import"./SearchMd-B4A8PIUy.js";import"./integration-icon-BXBLtmJk.js";import"./LinkBroken01-aiXtOyEy.js";import"./project-icon-C0Nw8mPG.js";import"./new-project-dialog-pM62WBis.js";import"./ArrowLeft-C5TDkvfy.js";import"./repository-import-picker-DbT-KPfC.js";import"./use-navigate-to-agent-_Fy5-uKx.js";import"./repository-picker-CbM65WpS.js";import"./useInfiniteQuery-jncr8EKF.js";import"./infiniteQueryObserver-kLjXQrHB.js";import"./collection-search-BMeq1F4t.js";import"./ShoppingBag01-CZ0mlBHZ.js";import"./use-debounced-value-DkB41yRZ.js";import"./required-auth-layout-UMnYz1o3.js";import"./autosend-BV2PsimL.js";import"./use-org-sso-IZ5t5non.js";import"./resizable-CMUQk1zK.js";import"./icon-button-BZdEBEfj.js";import"./AlertCircle-DxGlheNv.js";import"./ArrowUp-B_1yzk0u.js";import"./ChevronSelectorVertical-vEYxYM2o.js";import"./Copy01-CSQiL-8m.js";import"./CreditCard01-Dbsq9vqA.js";import"./DotsVertical-D5VxjRuG.js";import"./Globe04-BYAnRXKE.js";import"./SwitchHorizontal01-CUO4Tr7k.js";import"./Key01-DlUQl2kb.js";import"./Link01-CZ9mTgFL.js";import"./Sun-aaILGBFQ.js";import"./Play-JhD_8p9T.js";import"./Upload01-CNXMP8gQ.js";import"./Users01-Co0Q_ns9.js";import"./X-CGpWJ0hX.js";import"./index-BdQq_4o_.js";import"./extract-connection-data-WKz3D__i.js";import"./metadata-D72DunRR.js";import"./connection-CeKZpSJo.js";import"./url-slug-DA14zDBr.js";import"./chat-context-BEKkV-Ll.js";import"./use-decopilot-events-C_UyGftl.js";import"./use-ai-providers-BLkItyxK.js";import"./use-chat-navigation-0CERUZel.js";import"./location-BjlyegC2.js";import"./build-improve-prompt-doc-CbyMBFhr.js";import"./empty-state-C3-ZBqZ7.js";import"./use-date-fns-locale-yEAg4rlf.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-BLNfspiw.js";import"./mcp-oauth-3A9tYRyL.js";import"./textarea-DncV9TJN.js";import"./use-debounced-autosave-BbQxm-LP.js";import"./add-connection-dialog-Bs6jGGvh.js";import"./connection-card-BBsdybH0.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-Cn362UbS.js";import"./form-CpErFrQ1.js";import"./connection-form-helpers-DTld_nTJ.js";import"./authenticate-and-persist-oauth-JHbhZWlI.js";import"./collection-tabs-Ba1MLgdh.js";import"./use-infinite-scroll-979kKqgG.js";import"./useSuspenseInfiniteQuery-rmy_OGLk.js";import"./file-type-icon-CDG1qAi8.js";import"./use-org-fs-Df2-ebn-.js";import"./checkbox-CvWHs1zK.js";import"./search-input-IgJHEtUf.js";import"./use-mcp-auth-status-D2S8OUYy.js";import"./types-C52Y_JT0.js";import"./use-mcp-tools-Bv_07i-f.js";import"./use-mcp-prompts-DPLwYnKg.js";import"./utils-CVEq3hMx.js";import"./switch-DbiylKGt.js";import"./popover-B69wnZ0x.js";import"./scroll-area-DrC4kFvC.js";import"./optimistic-project-sidebar-views-Bui3Aln1.js";import"./virtual-mcp-y87s1o4x.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-1felyUvp.js";import"./use-secrets-DcZKciGM.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 Qe(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(Ht,{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=Qe(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=Qe(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=Qe(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=He(),[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 Q;e[50]!==I||e[51]!==q||e[52]!==O?(Q=t.jsxs("div",{className:"flex flex-col gap-2",children:[I,q,O]}),e[50]=I,e[51]=q,e[52]=O,e[53]=Q):Q=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]!==Q||e[81]!==ne||e[82]!==ce?(fe=t.jsxs("div",{className:Y,children:[M,Q,ne,ce]}),e[79]=M,e[80]=Q,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 H=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:H,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=He(),[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 Q;e[61]!==c||e[62]!==O?(Q=t.jsx(jt,{open:c,onOpenChange:m,children:O}),e[61]=c,e[62]=O,e[63]=Q):Q=e[63];let se;return e[64]!==C||e[65]!==f||e[66]!==k||e[67]!==z||e[68]!==F||e[69]!==Q?(se=t.jsxs(C,{title:k,count:D,action:z,children:[F,Q]}),e[64]=C,e[65]=f,e[66]=k,e[67]=z,e[68]=F,e[69]=Q,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(Qs)?5e3:!1}function Qs(n){const e=(n.phase??"").toLowerCase();return e===""||e==="running"||e==="pending"}function Hs(n){const e=L.c(107),{virtualMcpId:s}=n,l=Ee(),{org:a}=Et(),i=Bt(s),r=Qt(i),o=!!r,c=r?`/api/${a.slug}/hosting/${encodeURIComponent(r)}`:"",m=He(),[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 H;e[7]!==l?(H=l("mainPanelTabs.e2eTab.noSiteTitle"),e[7]=l,e[8]=H):H=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]!==H||e[12]!==K?(J=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(De,{icon:$,title:H,description:K})}),e[11]=H,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 H;e[15]!==l?(H=l("mainPanelTabs.e2eTab.notConnectedTitle"),e[15]=l,e[16]=H):H=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]!==H||e[20]!==K?(J=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(De,{icon:$,title:H,description:K})}),e[19]=H,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:H=>{H.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 Q=T?.runId??"";let se;e[71]!==l||e[72]!==Q?(se=l("mainPanelTabs.e2eTab.confirmDeleteRun",{runId:Q}),e[71]=l,e[72]=Q,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(Hs,{virtualMcpId:e}):t.jsx(is,{virtualMcpId:e}),n[0]=s.e2e,n[1]=e,n[2]=l):l=n[2],l}function Ca(){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{Ca as default};
|
|
1
|
+
import{c as L,b as Ee,m as _e,j as t,aS as $e,l as Ve,K as xe,B as ge,r as pe,Z as _t,d2 as zt,al as ot,X as Et,o as He,e as Ue,t as be}from"./index-D_7jfHk6.js";import{C as Rt}from"./index-Cx0uPPmh.js";import{M as Je,B as We,br as Lt,bs as At,bt as Ft,v as ke,bu as ct,N as Mt}from"./agent-icon-CnnNyirr.js";import{t as dt}from"./ChevronUp-CceLPRrE.js";import{s as mt}from"./Trash01-DAoFHSpp.js";import{B as te}from"./badge-CKM84j2S.js";import{I as Ut}from"./input-B0doV0os.js";import{L as Be}from"./label-DxOPcXJe.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-kjq4dW3k.js";import{b as It,D as qt,c as Vt,d as Ot,e as Kt}from"./dialog-DRpbbWU1.js";import{S as nt,b as at,a as rt,d as it,c as Tt}from"./select-CZdnCwuC.js";import{e as Xe,a as Ye,b as we,T as W,d as Ze,c as X}from"./table-Dfov51xE.js";import{E as De}from"./empty-state-D45gZaZ-.js";import{a as Bt}from"./repository-binding-DpX8yLri.js";import{r as Qt}from"./site-slug-DebpOoQq.js";import{i as Re}from"./CheckCircle-BKHstO_Q.js";import{n as vt}from"./LinkExternal01-CILXo-bC.js";import{i as Ht}from"./Monitor01-Cl4JLYVa.js";import{c as Jt}from"./UserSquare-BMOlWqCu.js";import{C as Wt,a as Xt,b as Yt}from"./collapsible-vN3Y9B-p.js";import{T as Zt,a as Gt,c as es,b as ts}from"./tabs-Df848FrP.js";import{S as ss,d as ls,c as ns,a as as,b as rs}from"./sheet-Gpaizien.js";import{S as is}from"./settings-tab-CTiWw7bm.js";import{c as os}from"./use-organization-settings-CB0-LYjl.js";import{b as cs}from"./thread-route-CW2be8Kx.js";import"./use-mobile-DF1FX6Xv.js";import"./thread-button-DwjwmudD.js";import"./Image01-Cxa392ef.js";import"./ZoomOut-CQckFmS9.js";import"./use-chat-layout-state-DDDFQN6Y.js";import"./use-file-configs-By7UB_YZ.js";import"./use-panel-navigate-C4UE8Qkr.js";import"./use-project-scope-BMVXwaQ4.js";import"./thread-intent-Cxso0qKW.js";import"./use-mcp-client-MUIIizLf.js";import"./auth-Cps-90jQ.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BXtoXPGx.js";import"./task-board-ChFrokIN.js";import"./schema-D1veJPjJ.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-BULKkf4A.js";import"./index-D1CuHcEn.js";import"./toolbar-icon-button-D9aCXzS4.js";import"./shell-layout-B0-NcUCt.js";import"./avatar-TL9HUab0.js";import"./User01-Awky2MVQ.js";import"./Building02-uHT4KVtK.js";import"./XClose-DBJ7sD1T.js";import"./use-clock-tick-DGTQe72H.js";import"./Plus-nldAzVeQ.js";import"./Tool01-Blw6F5iV.js";import"./command-Doiz3O29.js";import"./index-DltLvtZg.js";import"./SearchMd-BiZNveM1.js";import"./integration-icon-BM3EOzpn.js";import"./LinkBroken01-kK_na_OL.js";import"./project-icon-DU1uywdD.js";import"./new-project-dialog-CXEwhrv6.js";import"./ArrowLeft-C1IFj0Ic.js";import"./repository-import-picker-CO5nKRxA.js";import"./use-navigate-to-agent-p65xWFDF.js";import"./repository-picker-C2HnHK1A.js";import"./useInfiniteQuery-eYXaZ_bo.js";import"./infiniteQueryObserver-DG8sBe4B.js";import"./collection-search-BoB9COGX.js";import"./ShoppingBag01-o0DdjJD9.js";import"./use-debounced-value-DCB8Le0h.js";import"./required-auth-layout-CDif9NZC.js";import"./autosend-BQ3F90GX.js";import"./use-org-sso-BEGhJLya.js";import"./resizable-CIqqPf7O.js";import"./icon-button-BiR7Hy07.js";import"./AlertCircle-C3fpFT5I.js";import"./ArrowUp-DR-Jhbl1.js";import"./ChevronSelectorVertical-DAO6R1Op.js";import"./Copy01-Dx3ZT0bA.js";import"./CreditCard01-Dko0T335.js";import"./DotsVertical-aHYBPlin.js";import"./Globe04-BDe-0jS0.js";import"./SwitchHorizontal01-Bx3d-jDI.js";import"./Key01-BHiUNW_5.js";import"./Link01-BRZRc4wX.js";import"./Sun-BYGxydmh.js";import"./Play-CzTcIQz_.js";import"./Upload01-CtKBhqsv.js";import"./Users01-D7ZFKC4W.js";import"./X-DzPShgV5.js";import"./index-BdQq_4o_.js";import"./extract-connection-data-Q_j_fmQx.js";import"./metadata-D72DunRR.js";import"./connection-FKmTBjan.js";import"./url-slug-d-Er1jOR.js";import"./chat-context-UMp8QwjT.js";import"./use-decopilot-events-uItZ_pJe.js";import"./use-ai-providers-C1bb7SnA.js";import"./use-chat-navigation-BF9opsK8.js";import"./location-BjlyegC2.js";import"./build-improve-prompt-doc-R0amEUpn.js";import"./empty-state-DnQ_qEjI.js";import"./use-date-fns-locale-DIokBBqe.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-5LUEsGlJ.js";import"./mcp-oauth-C5T-IVs8.js";import"./textarea-DaHaRA0Z.js";import"./use-debounced-autosave-BRSYFOGW.js";import"./add-connection-dialog-Eph5CbUo.js";import"./connection-card-Cvk5T5vt.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-CXs6iEYK.js";import"./form-BBtB5neb.js";import"./connection-form-helpers-D4Q7rLyt.js";import"./authenticate-and-persist-oauth-eDHShxj5.js";import"./collection-tabs-Cw7XLgNG.js";import"./use-infinite-scroll-B02yfFGd.js";import"./useSuspenseInfiniteQuery-i_drPWHc.js";import"./file-type-icon-Du5QihE_.js";import"./use-org-fs-DPxqVRhB.js";import"./checkbox-B2kVXKBD.js";import"./search-input-DpJBHwWo.js";import"./use-mcp-auth-status-B-gyzfqG.js";import"./types-Blm6OQRg.js";import"./use-mcp-tools-CPLGkZB5.js";import"./use-mcp-prompts-C3siW74f.js";import"./utils-CVEq3hMx.js";import"./switch-hSsSQMgC.js";import"./popover-C2vJrXky.js";import"./scroll-area-Ce9NeF1s.js";import"./optimistic-project-sidebar-views-BINKTU3_.js";import"./virtual-mcp-CYDFCAA6.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-B_ADx-sY.js";import"./use-secrets-C2sdbGJM.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 Qe(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(Ht,{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=Qe(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=Qe(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=Qe(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=He(),[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 Q;e[50]!==I||e[51]!==q||e[52]!==O?(Q=t.jsxs("div",{className:"flex flex-col gap-2",children:[I,q,O]}),e[50]=I,e[51]=q,e[52]=O,e[53]=Q):Q=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]!==Q||e[81]!==ne||e[82]!==ce?(fe=t.jsxs("div",{className:Y,children:[M,Q,ne,ce]}),e[79]=M,e[80]=Q,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 H=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:H,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=He(),[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 Q;e[61]!==c||e[62]!==O?(Q=t.jsx(jt,{open:c,onOpenChange:m,children:O}),e[61]=c,e[62]=O,e[63]=Q):Q=e[63];let se;return e[64]!==C||e[65]!==f||e[66]!==k||e[67]!==z||e[68]!==F||e[69]!==Q?(se=t.jsxs(C,{title:k,count:D,action:z,children:[F,Q]}),e[64]=C,e[65]=f,e[66]=k,e[67]=z,e[68]=F,e[69]=Q,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(Qs)?5e3:!1}function Qs(n){const e=(n.phase??"").toLowerCase();return e===""||e==="running"||e==="pending"}function Hs(n){const e=L.c(107),{virtualMcpId:s}=n,l=Ee(),{org:a}=Et(),i=Bt(s),r=Qt(i),o=!!r,c=r?`/api/${a.slug}/hosting/${encodeURIComponent(r)}`:"",m=He(),[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 H;e[7]!==l?(H=l("mainPanelTabs.e2eTab.noSiteTitle"),e[7]=l,e[8]=H):H=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]!==H||e[12]!==K?(J=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(De,{icon:$,title:H,description:K})}),e[11]=H,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 H;e[15]!==l?(H=l("mainPanelTabs.e2eTab.notConnectedTitle"),e[15]=l,e[16]=H):H=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]!==H||e[20]!==K?(J=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(De,{icon:$,title:H,description:K})}),e[19]=H,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:H=>{H.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 Q=T?.runId??"";let se;e[71]!==l||e[72]!==Q?(se=l("mainPanelTabs.e2eTab.confirmDeleteRun",{runId:Q}),e[71]=l,e[72]=Q,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(Hs,{virtualMcpId:e}):t.jsx(is,{virtualMcpId:e}),n[0]=s.e2e,n[1]=e,n[2]=l):l=n[2],l}function Ca(){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{Ca as default};
|