decocms 4.323.0 → 4.324.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CbIethWO.js → AlertCircle-D7yJEpgq.js} +1 -1
- package/dist/client/assets/{AreaChart-BQf75cYf.js → AreaChart-pTiDqJfm.js} +1 -1
- package/dist/client/assets/{ArrowLeft-y7fvMHg1.js → ArrowLeft-kchZqGLb.js} +1 -1
- package/dist/client/assets/{ArrowUp-ClH9KzFx.js → ArrowUp-LJmJ9SbQ.js} +1 -1
- package/dist/client/assets/{Check-CViV2AKw.js → Check-BCb75NOo.js} +1 -1
- package/dist/client/assets/{CheckCircle-BceWKyuF.js → CheckCircle-KXeKRm2T.js} +1 -1
- package/dist/client/assets/{ChevronRight-Ub3Wi__5.js → ChevronRight-B_ryg5GC.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DYY47Opi.js → ChevronSelectorVertical-B__WBFpy.js} +1 -1
- package/dist/client/assets/{ChevronUp-BZvKWnmE.js → ChevronUp-BtBRAUrF.js} +1 -1
- package/dist/client/assets/{Copy01-CVNVXHfJ.js → Copy01-SPmDY_8r.js} +1 -1
- package/dist/client/assets/{CreditCard01-CMcaGH-G.js → CreditCard01-BmqSzpTc.js} +1 -1
- package/dist/client/assets/{DotsVertical-CUO5Z4B7.js → DotsVertical-BAD5BS1q.js} +1 -1
- package/dist/client/assets/{Download01-C-8_yc1P.js → Download01-CTjUk84_.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-D5mNZU-_.js → ErrorBarContext-2Rz4kE10.js} +1 -1
- package/dist/client/assets/{Eye-CRgiNYAI.js → Eye-ByeRQY33.js} +1 -1
- package/dist/client/assets/{GitBranch01-Cw03iCHW.js → GitBranch01-B8WKWTuc.js} +1 -1
- package/dist/client/assets/{Globe01-BzEZgPZH.js → Globe01-3s9LajuH.js} +1 -1
- package/dist/client/assets/{HardDrive-BShCW8xo.js → HardDrive-CV5QfxOT.js} +1 -1
- package/dist/client/assets/{Image01-BDqKYCHs.js → Image01-D1_yYrkf.js} +1 -1
- package/dist/client/assets/{Key01-BihM9W_4.js → Key01-Cc18Zeye.js} +1 -1
- package/dist/client/assets/{Link01-Bj9F9FFy.js → Link01-Dc9_ASFt.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B-j6voaz.js → LinkExternal01-uzXW7IXY.js} +1 -1
- package/dist/client/assets/{Monitor01-DJok5Oby.js → Monitor01-yO87KRU-.js} +1 -1
- package/dist/client/assets/{Package-DyPeIzqD.js → Package-D7xjgwIt.js} +1 -1
- package/dist/client/assets/{Palette-Di_3G4BB.js → Palette-Dmwx0ksz.js} +1 -1
- package/dist/client/assets/{Play-C-Ctr0Bg.js → Play-Bz2Mgr6W.js} +1 -1
- package/dist/client/assets/{Plus-Dy3OwbdP.js → Plus-nXRBvt7e.js} +1 -1
- package/dist/client/assets/{SearchMd-GhWQt9H_.js → SearchMd-D2BorPlT.js} +1 -1
- package/dist/client/assets/{Sector-B06pf8NJ.js → Sector-z71RcekZ.js} +1 -1
- package/dist/client/assets/{Settings02-Xf5MNOeS.js → Settings02-C8SHvTch.js} +1 -1
- package/dist/client/assets/{Share07-CkZjV7Y4.js → Share07-C6O72dEE.js} +1 -1
- package/dist/client/assets/{Shield01-AHWHm-DS.js → Shield01-B0y6mJu2.js} +1 -1
- package/dist/client/assets/{Stars01-D65oRIoj.js → Stars01-DFyMkbVK.js} +1 -1
- package/dist/client/assets/{Sun-vk_cPGMJ.js → Sun-CvOy3m0U.js} +1 -1
- package/dist/client/assets/{Tool01-C9Fh4pyK.js → Tool01-eulGN8_s.js} +1 -1
- package/dist/client/assets/{Tool02-CZJjuIxA.js → Tool02-B5KfSuXd.js} +1 -1
- package/dist/client/assets/{Trash01-B-u_-iqS.js → Trash01-DoQMmtz0.js} +1 -1
- package/dist/client/assets/{TrendUp01-D_qxLEW7.js → TrendUp01-DSy5DyIi.js} +1 -1
- package/dist/client/assets/{Upload01-CVk2PCsw.js → Upload01-BK4fslp_.js} +1 -1
- package/dist/client/assets/{User01-CAS_KrTr.js → User01-CIKUl5X8.js} +1 -1
- package/dist/client/assets/{UserSquare-BeyEkA5D.js → UserSquare-BNHKRg2I.js} +1 -1
- package/dist/client/assets/{Users01-ub3QFuz_.js → Users01-UODZM4OS.js} +1 -1
- package/dist/client/assets/{Users03-9eRhfMnl.js → Users03-DdSyigI5.js} +1 -1
- package/dist/client/assets/{XCircle-Bd6dXhOj.js → XCircle-3n-4v86l.js} +1 -1
- package/dist/client/assets/{XClose-auuJ_GRB.js → XClose-CIwe2zcz.js} +1 -1
- package/dist/client/assets/{Zap-b3NblJtQ.js → Zap-bfMUJV1G.js} +1 -1
- package/dist/client/assets/{ZoomOut-BQIO6WB6.js → ZoomOut-C1o7ACr8.js} +1 -1
- package/dist/client/assets/{access-gate-YwNE0EiY.js → access-gate-D0XDOk3i.js} +1 -1
- package/dist/client/assets/{agent-icon-_mOvC4lh.js → agent-icon-CeVY56z8.js} +1 -1
- package/dist/client/assets/{agents-list-BuzhpqLT.js → agents-list--o8ZF8ax.js} +1 -1
- package/dist/client/assets/{ai-providers-tOnDEcsq.js → ai-providers-EiyarJ2g.js} +1 -1
- package/dist/client/assets/{alert-Be1JSz0u.js → alert-CqWSyi16.js} +1 -1
- package/dist/client/assets/{alert-dialog-FC7tFvol.js → alert-dialog-CpPO0Plv.js} +1 -1
- package/dist/client/assets/{analytics-tab-rcgtUzan.js → analytics-tab-BzX_AEfZ.js} +1 -1
- package/dist/client/assets/{api-keys-CTBEYMnC.js → api-keys-BWGze1me.js} +1 -1
- package/dist/client/assets/api-keys-CrS8NYWQ.js +1 -0
- package/dist/client/assets/app-editor-wbQkOOa9.js +1 -0
- package/dist/client/assets/{auth-D6hknNuL.js → auth-BLOOX4WA.js} +1 -1
- package/dist/client/assets/{auth-catchall-B4fYfbHP.js → auth-catchall-CChUrFKS.js} +1 -1
- package/dist/client/assets/{auth-entry-C8j1nXjw.js → auth-entry-DfbwFwb5.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CBxH-91G.js → auth-split-layout-CSlFCHak.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Ca9jI9n9.js → authenticate-and-persist-oauth-7Yo6L4yK.js} +1 -1
- package/dist/client/assets/{automation-list-row-S_f1Oum9.js → automation-list-row-C1wr32-G.js} +1 -1
- package/dist/client/assets/{automation-runs-DTbShgpv.js → automation-runs-BUr4T6Br.js} +1 -1
- package/dist/client/assets/{automations-B754zppB.js → automations-BNbQsI-8.js} +1 -1
- package/dist/client/assets/{avatar-BAJ_UwLY.js → avatar-CUWVL5Wy.js} +1 -1
- package/dist/client/assets/{badge-3ZvX9jce.js → badge-CdPlCLsh.js} +1 -1
- package/dist/client/assets/{block-document-DLV7xODC.js → block-document-BclOwMHB.js} +1 -1
- package/dist/client/assets/{breadcrumb-DHpQRSkO.js → breadcrumb-BwJBpL6v.js} +1 -1
- package/dist/client/assets/{buckets-kBZLIk_3.js → buckets-MHSHEik_.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CcZ-TeGm.js → bulk-category-panel-xghqI257.js} +1 -1
- package/dist/client/assets/{capability-load-error-o4hp9_9S.js → capability-load-error-aPzWsf2S.js} +1 -1
- package/dist/client/assets/{cards-YJY6OImM.js → cards-B4dwk-9T.js} +1 -1
- package/dist/client/assets/category-editor-BoKgRY3J.js +1 -0
- package/dist/client/assets/{cdn-tab-CD1vNcFc.js → cdn-tab-By7QXWSP.js} +1 -1
- package/dist/client/assets/{chart-DuPWPZVO.js → chart-Cv_Vm7pV.js} +1 -1
- package/dist/client/assets/{chat-context-DoE_-ERG.js → chat-context-uOT-cmKK.js} +1 -1
- package/dist/client/assets/{checkbox-DM__T45b.js → checkbox-Bopyju7x.js} +1 -1
- package/dist/client/assets/{choose-editor-Ceh05UP8.js → choose-editor-DFF0A_R2.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DRCsiyHM.js → cli-auth-success-Ce7Elv6X.js} +1 -1
- package/dist/client/assets/{client-icons-CP-8jMQ6.js → client-icons-Cnx1SikW.js} +1 -1
- package/dist/client/assets/collection-detail-CAK4MdGD.js +1 -0
- package/dist/client/assets/{collection-display-button-D7w8XJnR.js → collection-display-button-WaVC4Pht.js} +1 -1
- package/dist/client/assets/{collection-search-jeWHAmV1.js → collection-search-DuNlsoEJ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BEZHi3FT.js → collection-table-wrapper-CUYzZ0NU.js} +1 -1
- package/dist/client/assets/{collection-tabs-BUx5Y6ne.js → collection-tabs-CbH52uar.js} +1 -1
- package/dist/client/assets/command-DplHSBSd.js +1 -0
- package/dist/client/assets/{commerce-onboarding-CKV1VIHd.js → commerce-onboarding-lT-LUHOd.js} +1 -1
- package/dist/client/assets/{connect-DtGLP_di.js → connect-BfuY_EXI.js} +1 -1
- package/dist/client/assets/{connect-layout-CpZLZAi6.js → connect-layout-ufRrjKGg.js} +1 -1
- package/dist/client/assets/{connection-Bpxwt4sD.js → connection-BlDUY6E1.js} +1 -1
- package/dist/client/assets/{connection-card-D0u9_kRo.js → connection-card-BhGsZYCV.js} +1 -1
- package/dist/client/assets/{connection-detail-DKyvL8ps.js → connection-detail-BeHZfvvd.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Blb0GPpJ.js → connection-form-helpers-CdzfFGVw.js} +1 -1
- package/dist/client/assets/{connections-CBNZEeRd.js → connections-D50mab5y.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-HAvzqd5d.js → create-organization-dialog-BD3CZ_40.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BT-eLzU1.js → decopilot-sse-pool-BmdxQro0.js} +1 -1
- package/dist/client/assets/{dialog-_eOGpV_R.js → dialog-BBrJpDR-.js} +1 -1
- package/dist/client/assets/{domain-settings-DeuY7PiW.js → domain-settings-WL9y1m7d.js} +1 -1
- package/dist/client/assets/{drawer-BH5TUdft.js → drawer-NconyKwA.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DAkDKRcv.js → dropdown-menu-DGoZniwf.js} +1 -1
- package/dist/client/assets/e2e-tab-DsqfkUps.js +1 -0
- package/dist/client/assets/{editor-Kqw7F1U3.js → editor-DIYKhLB9.js} +1 -1
- package/dist/client/assets/{empty-state-DTiYxZyX.js → empty-state-0ATyTZ2R.js} +1 -1
- package/dist/client/assets/{empty-state-B5IW3FY0.js → empty-state-f8ZKA-8U.js} +1 -1
- package/dist/client/assets/{extract-connection-data-B0tz2bg7.js → extract-connection-data-B1-XDalI.js} +1 -1
- package/dist/client/assets/file-explorer-DMKF5nr0.js +2 -0
- package/dist/client/assets/{file-type-icon-CqqlGtY8.js → file-type-icon-tKZyWgYW.js} +1 -1
- package/dist/client/assets/{folder-icon-WWKk1P4a.js → folder-icon-D1Eo4Qs7.js} +1 -1
- package/dist/client/assets/{form-DVlwcFzf.js → form-BQVPErMY.js} +1 -1
- package/dist/client/assets/{general-BLb79GyS.js → general-DUpAHj9y.js} +1 -1
- package/dist/client/assets/{github-repo-BpKUwJal.js → github-repo-COLY3wWI.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BvXosldt.js → github-repo-picker-BCBGIrIF.js} +1 -1
- package/dist/client/assets/{hooks-C1zHirdm.js → hooks-BF_HxtnT.js} +1 -1
- package/dist/client/assets/{hosting-tab-WXFSVJlX.js → hosting-tab-ByCaAGn9.js} +1 -1
- package/dist/client/assets/{index-BF5Hkav7.js → index-3LJHN42F.js} +1 -1
- package/dist/client/assets/{index-Ds3rGGA1.js → index-BSQOgNWH.js} +66 -66
- package/dist/client/assets/{index-C-AVMdC1.js → index-Bb80cFlQ.js} +1 -1
- package/dist/client/assets/{index-vvsCvtEs.js → index-C31CQZvU.js} +1 -1
- package/dist/client/assets/{index-B1NfLh28.js → index-DbavEff_.js} +4 -4
- package/dist/client/assets/index-DhKXsKZ0.js +1 -0
- package/dist/client/assets/{index-DbYn9c50.js → index-DnTdTRB2.js} +1 -1
- package/dist/client/assets/{index-ByNRxI-W.js → index-Dt8Rmr2O.js} +1 -1
- package/dist/client/assets/{index-DqFuEMY3.js → index-kf4GNqPf.js} +1 -1
- package/dist/client/assets/index-q97dMpfm.js +1 -0
- package/dist/client/assets/{index-redirect-CL2ti6mP.js → index-redirect-BX83TvVK.js} +1 -1
- package/dist/client/assets/{index-6xuv5IBn.css → index-yssuKkag.css} +1 -1
- package/dist/client/assets/{infra-billing-Bqv_tVB5.js → infra-billing-CbY88KSG.js} +1 -1
- package/dist/client/assets/{input-6kxANu4D.js → input-BPK-8DA5.js} +1 -1
- package/dist/client/assets/{integration-icon-Dw9EWqM9.js → integration-icon-cb8ZtkpN.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CtpRiSXv.js → invite-member-dialog-C5hFXyGY.js} +1 -1
- package/dist/client/assets/{label-W4OZ7SIR.js → label-D9ClAZdf.js} +1 -1
- package/dist/client/assets/{layout-BLJ2rW8z.js → layout--V0mbDn0.js} +1 -1
- package/dist/client/assets/{login-xMe8uq97.js → login-xUXQCdNG.js} +1 -1
- package/dist/client/assets/{markdown-nQrYOrJu.js → markdown-DfRlZnO9.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CH8aXrUS.js → mcp-oauth-_1P6M0ca.js} +1 -1
- package/dist/client/assets/{members-os2LlbCD.js → members-B3VJqWxk.js} +1 -1
- package/dist/client/assets/{monaco-editor-D-OtVr_n.js → monaco-editor-CtSHc59x.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CisDt-Oh.js → monitoring-stats-row-CcsUjBsQ.js} +1 -1
- package/dist/client/assets/{multi-select-CCFiS0YC.js → multi-select-DkzPNiu_.js} +1 -1
- package/dist/client/assets/{oauth-callback-BwNVh8Ay.js → oauth-callback-CtuTIcFF.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-SsrtddQ7.js → oauth-callback-ai-provider-cxtNwB0q.js} +1 -1
- package/dist/client/assets/{onboarding-1pFeUwfe.js → onboarding-Cu-_114a.js} +1 -1
- package/dist/client/assets/org-layout-BgNJcplw.js +1 -0
- package/dist/client/assets/{organization-choice-CKdaBKmF.js → organization-choice-OiMdbhnh.js} +1 -1
- package/dist/client/assets/{orgs-Cm-yPANa.js → orgs-CO0_iThA.js} +1 -1
- package/dist/client/assets/{page-seo-form-CVhe-B9N.js → page-seo-form-D7BO0QTZ.js} +1 -1
- package/dist/client/assets/{popover-CiSRUL8W.js → popover-BdpJ4Hjl.js} +1 -1
- package/dist/client/assets/post-calendar-DEr6lFs1.js +1 -0
- package/dist/client/assets/post-editor-CgvHHk7v.js +1 -0
- package/dist/client/assets/{primitives-BnQfJsjI.js → primitives-CHUWgtWT.js} +1 -1
- package/dist/client/assets/{profile-BuGbWdFA.js → profile-DtnH04zi.js} +1 -1
- package/dist/client/assets/project-app-view-D8sDZWlF.js +1 -0
- package/dist/client/assets/project-icon-DWLDQtlN.js +1 -0
- package/dist/client/assets/{prompts-C3gNSt_0.js → prompts-cAv0Lg3O.js} +1 -1
- package/dist/client/assets/record-editor-cHd8x7rr.js +1 -0
- package/dist/client/assets/redirect-editor-DT_52fGK.js +1 -0
- package/dist/client/assets/registry-Bv_ljj2t.js +2 -0
- package/dist/client/assets/{registry-layout-ChN51H5w.js → registry-layout-WKfndEsC.js} +1 -1
- package/dist/client/assets/{reports-CYciSEvO.js → reports-BW9-Hd9b.js} +1 -1
- package/dist/client/assets/{require-capability-Bzaxi0tw.js → require-capability-DTyN-fnZ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-B5RfO5xE.js → required-auth-layout-DXtyobQw.js} +1 -1
- package/dist/client/assets/{reset-password-c2RD-cMF.js → reset-password-3UpDs895.js} +1 -1
- package/dist/client/assets/{review-settings-CVRC6VQz.js → review-settings-k-G3mBgu.js} +1 -1
- package/dist/client/assets/{roles-CKg_erdA.js → roles-0mtgJvuk.js} +1 -1
- package/dist/client/assets/{schema-BMBwySNw.js → schema-_QfyLVFz.js} +1 -1
- package/dist/client/assets/{scroll-area-D1O9Z5bn.js → scroll-area-BX4xFc-L.js} +1 -1
- package/dist/client/assets/{search-input-HJiyo5_T.js → search-input-BTXLcg73.js} +1 -1
- package/dist/client/assets/{secrets-yGNqTUjE.js → secrets-u7swtnCD.js} +1 -1
- package/dist/client/assets/{sections-editor-nXz1E_RK.js → sections-editor-CjPJD7w9.js} +1 -1
- package/dist/client/assets/{select-KntX1BWy.js → select-BmsI6lk4.js} +1 -1
- package/dist/client/assets/{select-model-D4UnKm_D.js → select-model-CwRvnDe2.js} +1 -1
- package/dist/client/assets/{self-tool-result-Bw-jg1H9.js → self-tool-result-CBOM474B.js} +1 -1
- package/dist/client/assets/seo-editor-Dv9sTK6_.js +1 -0
- package/dist/client/assets/settings-layout-Dwe2d_Nf.js +1 -0
- package/dist/client/assets/settings-sidebar-2-yc4FPC.js +1 -0
- package/dist/client/assets/{shell-controls-y2P0ze9V.js → shell-controls-BTdCn_5T.js} +1 -1
- package/dist/client/assets/shell-layout-ZxnlsGIb.js +1 -0
- package/dist/client/assets/{skill-preview-DDtUylxS.js → skill-preview-B87SElht.js} +1 -1
- package/dist/client/assets/{skills-C02q4DQE.js → skills-C4IU4_fT.js} +1 -1
- package/dist/client/assets/{sso-E35RJK0S.js → sso-D02-M3RV.js} +1 -1
- package/dist/client/assets/{store-DtCD5trg.js → store-Bdvv0rvG.js} +1 -1
- package/dist/client/assets/store-registry-1PsxsHyl.js +2 -0
- package/dist/client/assets/{switch-RffCohYW.js → switch-CWrwsAyw.js} +1 -1
- package/dist/client/assets/{synced-repos-D746RY0r.js → synced-repos-BXxjvd2m.js} +1 -1
- package/dist/client/assets/{table-DHae8Nm6.js → table-Bs2XgWZw.js} +1 -1
- package/dist/client/assets/{tabs-Bw-iT1Tk.js → tabs-BYaP2c8n.js} +1 -1
- package/dist/client/assets/{task-board-Cpu4KbdQ.js → task-board-dsasoVkN.js} +1 -1
- package/dist/client/assets/task-route-DsKWvJMx.js +1 -0
- package/dist/client/assets/{tasks-O7NdYknu.js → tasks-CpN1gEp1.js} +1 -1
- package/dist/client/assets/{textarea-D69PAPp0.js → textarea-DpkRjShy.js} +1 -1
- package/dist/client/assets/{thread-intent-B9RGGbT7.js → thread-intent-CnMwNyR1.js} +1 -1
- package/dist/client/assets/{thread-route-DghMzEvi.js → thread-route-Q8ksE0mc.js} +1 -1
- package/dist/client/assets/{toggle-group-D2J6TMAE.js → toggle-group-C3OETn2P.js} +1 -1
- package/dist/client/assets/{toolbar-CQKJCOWO.js → toolbar-BZa7aOkU.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-D5UWifRH.js → toolbar-icon-button-DLS3lSy-.js} +1 -1
- package/dist/client/assets/{track-CPuXhWGG.js → track-BMqM3uQW.js} +1 -1
- package/dist/client/assets/{types-D9TUiUC5.js → types-B_DqxPqA.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BDymGfsX.js → use-ai-providers-BLyXcea7.js} +1 -1
- package/dist/client/assets/{use-automations-D-er4402.js → use-automations-DejFYCuF.js} +1 -1
- package/dist/client/assets/{use-autosave-BYuOuBAD.js → use-autosave-Ck4MSays.js} +1 -1
- package/dist/client/assets/{use-connection-DjqJprQ0.js → use-connection-CDwYushX.js} +1 -1
- package/dist/client/assets/{use-copy-Cc5MlhjA.js → use-copy-DNngklmi.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BpDoBwW0.js → use-create-virtual-mcp-a2Urn4GD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-ZIgtFc1M.js → use-debounced-autosave-BjpHsqZE.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BSLeeOpX.js → use-debounced-value-DsF3xtnr.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DJzsWHaW.js → use-decopilot-events-DhdekMcp.js} +1 -1
- package/dist/client/assets/{use-delete-connection-ChV1b6nT.js → use-delete-connection-BnP6BYzV.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-De_oldAV.js → use-deployment-admin-CKIM13V2.js} +1 -1
- package/dist/client/assets/{use-destination-route-CG9NdNN9.js → use-destination-route-FVETkHY_.js} +1 -1
- package/dist/client/assets/{use-file-configs-DXL12ksv.js → use-file-configs-C0PBAMT3.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D5DcjHPJ.js → use-infinite-scroll-CzQQ1euK.js} +1 -1
- package/dist/client/assets/{use-join-requests-BwgxmP4k.js → use-join-requests-BoKKnMPW.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BmzTeush.js → use-mcp-auth-status-Ch-Wu1F-.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BsCYwuYG.js → use-mcp-client-DW9-44wA.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-r_b-m13M.js → use-mcp-prompts-WnmvAxxK.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DFUdHDOx.js → use-mcp-tools-BynKAh3n.js} +1 -1
- package/dist/client/assets/{use-members-uyLHU2hg.js → use-members-vgayqB0r.js} +1 -1
- package/dist/client/assets/use-navigate-to-agent-BZ641H8y.js +1 -0
- package/dist/client/assets/{use-org-auth-client-CRXTM1Db.js → use-org-auth-client-DHky33nc.js} +1 -1
- package/dist/client/assets/{use-org-sso-D2ngO8eF.js → use-org-sso-B8tTzKJi.js} +1 -1
- package/dist/client/assets/{use-organization-roles-E5m8U-S7.js → use-organization-roles-DBxlmJaR.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CVRBbGpW.js → use-organization-settings-JBq4qAO4.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Cbxz5kt0.js → use-panel-navigate-BXK_-_Rp.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DDAHT7mn.js → use-registry-connections-K09qmLQp.js} +1 -1
- package/dist/client/assets/{use-secrets-CxYf3QgY.js → use-secrets-9k9DYpBd.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-nwXYuQik.js → use-section-preview-base-B3SNVSby.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BsArCG5q.js → use-status-sounds-Du9yqvYB.js} +1 -1
- package/dist/client/assets/{use-tags-7szl89Un.js → use-tags-CmpUDQKg.js} +1 -1
- package/dist/client/assets/{use-view-mode-BCpG25HS.js → use-view-mode-Dgs5f7ts.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-GrNV8gSX.js → use-virtual-mcp-CLk-HH_5.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Bd5Cr4x9.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-D9jUTedU.js +1 -0
- package/dist/client/assets/{users-t7wRTjGx.js → users-hsV-8-8G.js} +1 -1
- package/dist/client/assets/variant-calendar-D3TQqVRO.js +1 -0
- package/dist/client/assets/{view-mode-toggle-BUL9QJav.js → view-mode-toggle-MKX5cSkK.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/api-keys-JtWtYNuu.js +0 -1
- package/dist/client/assets/app-editor-DQYPxUQA.js +0 -1
- package/dist/client/assets/category-editor-BkGCdnTz.js +0 -1
- package/dist/client/assets/collection-detail-CBcNSBGR.js +0 -1
- package/dist/client/assets/command-DYMcXrYb.js +0 -1
- package/dist/client/assets/e2e-tab-B47B8D6p.js +0 -1
- package/dist/client/assets/file-explorer-D6bSC078.js +0 -2
- package/dist/client/assets/index-BaLSCAcE.js +0 -1
- package/dist/client/assets/index-tE-Tf4Hw.js +0 -1
- package/dist/client/assets/org-layout-ByaNaRAg.js +0 -1
- package/dist/client/assets/post-calendar-BlOmmMBz.js +0 -1
- package/dist/client/assets/post-editor-DDFHZpuO.js +0 -1
- package/dist/client/assets/project-app-view-Cw_plhk8.js +0 -1
- package/dist/client/assets/record-editor-DtUJGWvr.js +0 -1
- package/dist/client/assets/redirect-editor-D0vXfu9N.js +0 -1
- package/dist/client/assets/registry-QzkuDmLd.js +0 -2
- package/dist/client/assets/seo-editor-BMV5Py3q.js +0 -1
- package/dist/client/assets/settings-layout-BxW8PXZR.js +0 -1
- package/dist/client/assets/settings-sidebar-C_XqwVow.js +0 -1
- package/dist/client/assets/shell-layout-CYnXtCwc.js +0 -1
- package/dist/client/assets/store-registry-CMA16J1j.js +0 -2
- package/dist/client/assets/task-route-BF9yN3PC.js +0 -1
- package/dist/client/assets/use-navigate-to-agent-IY8mCF-a.js +0 -1
- package/dist/client/assets/use-project-scope-BPel4oYu.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Ba_5G2Dq.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Day-b8LH.js +0 -1
- package/dist/client/assets/variant-calendar-De-JgJ0u.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o,j as r}from"./index-B1NfLh28.js";import{O as m}from"./api-keys-CTBEYMnC.js";import{R as p}from"./require-capability-Bzaxi0tw.js";import"./AlertCircle-CbIethWO.js";import"./Copy01-CVNVXHfJ.js";import"./Key01-BihM9W_4.js";import"./Plus-Dy3OwbdP.js";import"./Trash01-B-u_-iqS.js";import"./alert-dialog-FC7tFvol.js";import"./dialog-_eOGpV_R.js";import"./input-6kxANu4D.js";import"./label-W4OZ7SIR.js";import"./use-mcp-client-BsCYwuYG.js";import"./constants-DNuUCxmW.js";import"./auth-D6hknNuL.js";import"./access-gate-YwNE0EiY.js";import"./capability-load-error-o4hp9_9S.js";function A(){const t=o.c(1);let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(p,{capability:"api-keys:manage",area:"api-keys",children:r.jsx(m,{})}),t[0]=i):i=t[0],i}export{A as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as jt,b as Bt,r as A,j as o,l as _t,h as wt,t as ht}from"./index-B1NfLh28.js";import{b as At}from"./chat-context-DoE_-ERG.js";import{i as Et}from"./ChevronRight-Ub3Wi__5.js";import{S as Nt}from"./scroll-area-D1O9Z5bn.js";import{u as Rt,A as Tt}from"./use-section-preview-base-nwXYuQik.js";import{n as Ct,r as Kt,c as Pt,d as Ft,e as Ot,g as Ut,h as $t,S as It,i as zt,j as Lt}from"./index-Ds3rGGA1.js";import"./use-panel-navigate-Cbxz5kt0.js";import"./use-destination-route-CG9NdNN9.js";import"./thread-route-DghMzEvi.js";import"./dialog-_eOGpV_R.js";import"./Check-CViV2AKw.js";import"./Copy01-CVNVXHfJ.js";import"./Download01-C-8_yc1P.js";import"./constants-DNuUCxmW.js";import"./thread-intent-B9RGGbT7.js";import"./slugify-CEUa2lfQ.js";import"./hooks-C1zHirdm.js";import"./use-mcp-client-BsCYwuYG.js";import"./auth-D6hknNuL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BT-eLzU1.js";import"./task-board-Cpu4KbdQ.js";import"./schema-BMBwySNw.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-GrNV8gSX.js";import"./use-ai-providers-BDymGfsX.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DJzsWHaW.js";import"./use-organization-settings-CVRBbGpW.js";import"./select-KntX1BWy.js";import"./ChevronUp-BZvKWnmE.js";import"./agent-icon-_mOvC4lh.js";import"./AlertCircle-CbIethWO.js";import"./Tool01-C9Fh4pyK.js";import"./ArrowUp-ClH9KzFx.js";import"./ArrowLeft-y7fvMHg1.js";import"./Tool02-CZJjuIxA.js";import"./XCircle-Bd6dXhOj.js";import"./TrendUp01-D_qxLEW7.js";import"./ZoomOut-BQIO6WB6.js";import"./Users03-9eRhfMnl.js";import"./CheckCircle-BceWKyuF.js";import"./ChevronSelectorVertical-DYY47Opi.js";import"./DotsVertical-CUO5Z4B7.js";import"./UserSquare-BeyEkA5D.js";import"./CreditCard01-CMcaGH-G.js";import"./Settings02-Xf5MNOeS.js";import"./Eye-CRgiNYAI.js";import"./Share07-CkZjV7Y4.js";import"./GitBranch01-Cw03iCHW.js";import"./Globe01-BzEZgPZH.js";import"./XClose-auuJ_GRB.js";import"./HardDrive-BShCW8xo.js";import"./Image01-BDqKYCHs.js";import"./Key01-BihM9W_4.js";import"./Link01-Bj9F9FFy.js";import"./LinkExternal01-B-j6voaz.js";import"./Monitor01-DJok5Oby.js";import"./Sun-vk_cPGMJ.js";import"./Package-DyPeIzqD.js";import"./Palette-Di_3G4BB.js";import"./Play-C-Ctr0Bg.js";import"./Plus-Dy3OwbdP.js";import"./SearchMd-GhWQt9H_.js";import"./Shield01-AHWHm-DS.js";import"./Stars01-D65oRIoj.js";import"./Trash01-B-u_-iqS.js";import"./Upload01-CVk2PCsw.js";import"./User01-CAS_KrTr.js";import"./Users01-ub3QFuz_.js";import"./Zap-b3NblJtQ.js";import"./input-6kxANu4D.js";import"./automation-runs-DTbShgpv.js";import"./useInfiniteQuery-Ba_5G2Dq.js";import"./use-infinite-scroll-D5DcjHPJ.js";import"./use-connection-DjqJprQ0.js";import"./table-DHae8Nm6.js";import"./empty-state-B5IW3FY0.js";import"./use-members-uyLHU2hg.js";import"./use-org-auth-client-CRXTM1Db.js";import"./use-automations-D-er4402.js";import"./useSuspenseInfiniteQuery-Day-b8LH.js";import"./avatar-BAJ_UwLY.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Cc5MlhjA.js";import"./markdown-nQrYOrJu.js";import"./monaco-editor-D-OtVr_n.js";import"./editor-Kqw7F1U3.js";import"./types-D9TUiUC5.js";import"./shell-layout-CYnXtCwc.js";import"./use-project-scope-BPel4oYu.js";import"./github-repo-BpKUwJal.js";import"./command-DYMcXrYb.js";import"./index-C-AVMdC1.js";import"./required-auth-layout-B5RfO5xE.js";import"./use-org-sso-D2ngO8eF.js";import"./integration-icon-Dw9EWqM9.js";import"./use-navigate-to-agent-IY8mCF-a.js";import"./use-mcp-prompts-r_b-m13M.js";import"./form-DVlwcFzf.js";import"./label-W4OZ7SIR.js";import"./file-type-icon-CqqlGtY8.js";import"./drawer-BH5TUdft.js";import"./collection-search-jeWHAmV1.js";import"./use-mcp-tools-DFUdHDOx.js";import"./tabs-Bw-iT1Tk.js";import"./toggle-group-D2J6TMAE.js";import"./task-route-BF9yN3PC.js";import"./toolbar-icon-button-D5UWifRH.js";import"./popover-CiSRUL8W.js";import"./github-repo-picker-BvXosldt.js";import"./use-debounced-value-BSLeeOpX.js";import"./authenticate-and-persist-oauth-Ca9jI9n9.js";import"./mcp-oauth-CH8aXrUS.js";import"./extract-connection-data-B0tz2bg7.js";import"./metadata-dUsYcpuu.js";import"./connection-Bpxwt4sD.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./connection-card-D0u9_kRo.js";import"./use-registry-connections-DDAHT7mn.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-D69PAPp0.js";import"./connection-form-helpers-Blb0GPpJ.js";import"./collection-tabs-BUx5Y6ne.js";import"./badge-3ZvX9jce.js";import"./dropdown-menu-DAkDKRcv.js";import"./get-initials-D-f_fDFw.js";import"./select-model-D4UnKm_D.js";import"./checkbox-DM__T45b.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-WWKk1P4a.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BsArCG5q.js";import"./toolbar-CQKJCOWO.js";import"./use-file-configs-DXL12ksv.js";import"./site-slug-uya6Wp4-.js";import"./skill-preview-DDtUylxS.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-FC7tFvol.js";import"./use-debounced-autosave-ZIgtFc1M.js";import"./search-input-HJiyo5_T.js";import"./use-mcp-auth-status-BmzTeush.js";import"./switch-RffCohYW.js";import"./use-secrets-CxYf3QgY.js";import"./client-icons-CP-8jMQ6.js";import"./connect-layout-CpZLZAi6.js";import"./self-tool-result-Bw-jg1H9.js";import"./track-CPuXhWGG.js";import"./use-tags-7szl89Un.js";import"./breadcrumb-DHpQRSkO.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-S_f1Oum9.js";import"./site-error--i37Vnuw.js";import"./cards-YJY6OImM.js";function Vt(n,t){const s=(n.title||n.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),i=/^[A-Za-z]/.test(s)&&s.length>0?s:"Section",m=Ct(t,i);return{blockKey:m,data:{__resolveType:n.resolveType,name:m}}}function Lr(n){const t=jt.c(79),{orgSlug:s,virtualMcpId:i,branch:m,blockKey:p,block:x,meta:a,decofile:l,title:bt,excludeFields:Z,schemaPending:lt,previewBaseUrl:ct}=n,D=lt===void 0?!1:lt,H=ct===void 0?null:ct,G=At()?.taskId??null,c=Bt();let N;t[0]!==H||t[1]!==i?(N={virtualMcpId:i,sandboxUrl:H},t[0]=H,t[1]=i,t[2]=N):N=t[2];const h=Rt(N),v=typeof x?.__resolveType=="string"?x.__resolveType:"";let R;t[3]!==Z||t[4]!==a||t[5]!==v?(R=Kt(v,a,Z),t[3]=Z,t[4]=a,t[5]=v,t[6]=R):R=t[6];const b=R;let T;t[7]!==b?(T=!!b&&Object.keys(b.properties??{}).length>0,t[7]=b,t[8]=T):T=t[8];const J=T,dt=bt??(x?Pt(p,x,a):p);let C;t[9]!==m||t[10]!==s||t[11]!==i?(C={orgSlug:s,virtualMcpId:i,branch:m},t[9]=m,t[10]=s,t[11]=i,t[12]=C):C=t[12];const{save:S,flush:Q,isPending:W}=Ft(C);let K;t[13]!==m||t[14]!==s||t[15]!==i?(K={orgSlug:s,virtualMcpId:i,branch:m},t[13]=m,t[14]=s,t[15]=i,t[16]=K):K=t[16];const X=Ot(K);let P;t[17]!==S?(P=zt((e,r)=>S(e,r)),t[17]=S,t[18]=P):P=t[18];const Y=P,[vt,St]=A.useState(p),[tt,ut]=A.useState(null),[et,ft]=A.useState(0);let F;t[19]===Symbol.for("react.memo_cache_sentinel")?(F=[],t[19]=F):F=t[19];const[g,xt]=A.useState(F),[ot,d]=A.useState(!1),O=A.useRef(null);vt!==p&&(St(p),ut(null),ft(Mt),xt([]));let U;t[20]!==x?(U=x??{},t[20]=x,t[21]=U):U=t[21];const rt=U;let y;t[22]!==tt?(y=tt??{},t[22]=tt,t[23]=y):y=t[23];let $;t[24]!==rt||t[25]!==y?($={...rt,...y},t[24]=rt,t[25]=y,t[26]=$):$=t[26];const it=$;let I;t[27]!==p||t[28]!==v||t[29]!==S?(I=e=>{const r=e;ut(r),S(p,{...r,__resolveType:v})},t[27]=p,t[28]=v,t[29]=S,t[30]=I):I=t[30];const st=I;let z;t[31]===Symbol.for("react.memo_cache_sentinel")?(z=e=>{xt(e)},t[31]=z):z=t[31];const E=z;let L;t[32]!==l||t[33]!==Q||t[34]!==X||t[35]!==c?(L=async(e,r)=>{try{const{blockKey:u,data:f}=Vt(e,l);await X.mutateAsync({blockKey:u,data:f}),ht.success(c("sandbox.appEditor.createdSection",{name:u})),r({__resolveType:u}),Q()}catch(u){const f=u,kt=f instanceof Error?f.message:c("sandbox.appEditor.failedAddSection");throw ht.error(kt),f}},t[32]=l,t[33]=Q,t[34]=X,t[35]=c,t[36]=L):L=t[36];const k=L;let V;t[37]!==d?(V=e=>{O.current=e.append,d(!0)},t[37]=d,t[38]=V):V=t[38];const mt=V;let q;t[39]!==k||t[40]!==d?(q=async e=>{const r=O.current;if(r)try{await k(e,u=>{r(u),d(!1),O.current=null})}catch{}},t[39]=k,t[40]=d,t[41]=q):q=t[41];const pt=q,at=g.length>0?[dt,...g]:[],gt="flex h-full flex-col",yt="flex h-12 shrink-0 items-center justify-between border-b px-6",nt=at.length>0?o.jsx("nav",{"aria-label":c("sandbox.appEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:at.map((e,r)=>{const u=r===at.length-1,f=Ut(e);return o.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[r>0&&o.jsx(Et,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("button",{type:"button",onClick:()=>{E(r===0?[]:$t(g,r)),ft(qt)},title:f,className:_t("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",u?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:f})]},`${f}-${r}`)})}):o.jsx("span",{className:"text-sm font-medium",children:dt});let j;t[42]!==W?(j=o.jsx(Lt,{isPending:W,isError:!1}),t[42]=W,t[43]=j):j=t[43];let B;t[44]!==nt||t[45]!==j?(B=o.jsxs("div",{className:yt,children:[nt,j]}),t[44]=nt,t[45]=j,t[46]=B):B=t[46];let _;t[47]!==p||t[48]!==m||t[49]!==g||t[50]!==l||t[51]!==it||t[52]!==et||t[53]!==k||t[54]!==E||t[55]!==st||t[56]!==mt||t[57]!==J||t[58]!==a||t[59]!==s||t[60]!==Y||t[61]!==b||t[62]!==D||t[63]!==h||t[64]!==c||t[65]!==G||t[66]!==i?(_=o.jsx(Nt,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl",children:J?o.jsx(It,{schema:b,value:it,onChange:st,basePath:"",breadcrumbPath:g,onBreadcrumbChange:E,decofile:l,meta:a,onSaveReferencedBlock:Y,previewBaseUrl:h,onAddSectionItem:k,onRequestAddSection:mt,sandbox:{orgSlug:s,virtualMcpId:i,branch:m,threadId:G}},`${p}:${et}`):D?o.jsxs("div",{className:"flex flex-col items-center gap-2 py-6 text-center text-xs text-muted-foreground",children:[o.jsx(wt,{className:"size-4"}),c("sandbox.appEditor.loadingSchema")]}):o.jsx("div",{className:"py-6 text-center text-xs text-muted-foreground",children:c("sandbox.appEditor.noEditableSchema")})})})}),t[47]=p,t[48]=m,t[49]=g,t[50]=l,t[51]=it,t[52]=et,t[53]=k,t[54]=E,t[55]=st,t[56]=mt,t[57]=J,t[58]=a,t[59]=s,t[60]=Y,t[61]=b,t[62]=D,t[63]=h,t[64]=c,t[65]=G,t[66]=i,t[67]=_):_=t[67];let w;t[68]!==ot||t[69]!==l||t[70]!==pt||t[71]!==a||t[72]!==h||t[73]!==d?(w=h&&o.jsx(Tt,{open:ot,onOpenChange:e=>{d(e),e||(O.current=null)},meta:a,decofile:l,previewBaseUrl:h,onSelect:e=>{pt(e)}}),t[68]=ot,t[69]=l,t[70]=pt,t[71]=a,t[72]=h,t[73]=d,t[74]=w):w=t[74];let M;return t[75]!==B||t[76]!==_||t[77]!==w?(M=o.jsxs("div",{className:gt,children:[B,_,w]}),t[75]=B,t[76]=_,t[77]=w,t[78]=M):M=t[78],M}function qt(n){return n+1}function Mt(n){return n+1}export{Lr as AppEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as X,r as k,l as Y,j as t,b as Z,B as $,h as _,t as H}from"./index-B1NfLh28.js";import{b as K}from"./chat-context-DoE_-ERG.js";import{i as tt}from"./XCircle-Bd6dXhOj.js";import{i as U}from"./ZoomOut-BQIO6WB6.js";import{n as ot}from"./LinkExternal01-B-j6voaz.js";import{bk as et}from"./agent-icon-_mOvC4lh.js";import{A as rt,a as it,b as st,c as at,d as nt,e as mt,f as lt,g as pt}from"./alert-dialog-FC7tFvol.js";import{I as W}from"./input-6kxANu4D.js";import{L as M}from"./label-W4OZ7SIR.js";import{e as ct,v as dt,w as ut,a5 as gt,j as xt,y as A,H as ft,a6 as ht,z as yt}from"./index-Ds3rGGA1.js";import{c as bt,B as jt,a as vt}from"./block-document-DLV7xODC.js";import{u as Et}from"./use-autosave-BYuOuBAD.js";import{t as Ct}from"./ChevronUp-BZvKWnmE.js";import{al as Nt,am as St,an as wt}from"./automation-runs-DTbShgpv.js";import{s as j,E as kt}from"./primitives-BnQfJsjI.js";import"./use-panel-navigate-Cbxz5kt0.js";import"./use-destination-route-CG9NdNN9.js";import"./thread-route-DghMzEvi.js";import"./dialog-_eOGpV_R.js";import"./Check-CViV2AKw.js";import"./Copy01-CVNVXHfJ.js";import"./Download01-C-8_yc1P.js";import"./constants-DNuUCxmW.js";import"./thread-intent-B9RGGbT7.js";import"./slugify-CEUa2lfQ.js";import"./hooks-C1zHirdm.js";import"./use-mcp-client-BsCYwuYG.js";import"./auth-D6hknNuL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BT-eLzU1.js";import"./task-board-Cpu4KbdQ.js";import"./schema-BMBwySNw.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-GrNV8gSX.js";import"./use-ai-providers-BDymGfsX.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DJzsWHaW.js";import"./use-organization-settings-CVRBbGpW.js";import"./AlertCircle-CbIethWO.js";import"./Tool01-C9Fh4pyK.js";import"./ArrowUp-ClH9KzFx.js";import"./ArrowLeft-y7fvMHg1.js";import"./Tool02-CZJjuIxA.js";import"./TrendUp01-D_qxLEW7.js";import"./Users03-9eRhfMnl.js";import"./CheckCircle-BceWKyuF.js";import"./ChevronRight-Ub3Wi__5.js";import"./ChevronSelectorVertical-DYY47Opi.js";import"./DotsVertical-CUO5Z4B7.js";import"./UserSquare-BeyEkA5D.js";import"./CreditCard01-CMcaGH-G.js";import"./Settings02-Xf5MNOeS.js";import"./Eye-CRgiNYAI.js";import"./Share07-CkZjV7Y4.js";import"./GitBranch01-Cw03iCHW.js";import"./Globe01-BzEZgPZH.js";import"./XClose-auuJ_GRB.js";import"./HardDrive-BShCW8xo.js";import"./Image01-BDqKYCHs.js";import"./Key01-BihM9W_4.js";import"./Link01-Bj9F9FFy.js";import"./Monitor01-DJok5Oby.js";import"./Sun-vk_cPGMJ.js";import"./Package-DyPeIzqD.js";import"./Palette-Di_3G4BB.js";import"./Play-C-Ctr0Bg.js";import"./Plus-Dy3OwbdP.js";import"./SearchMd-GhWQt9H_.js";import"./Shield01-AHWHm-DS.js";import"./Stars01-D65oRIoj.js";import"./Trash01-B-u_-iqS.js";import"./Upload01-CVk2PCsw.js";import"./User01-CAS_KrTr.js";import"./Users01-ub3QFuz_.js";import"./Zap-b3NblJtQ.js";import"./drawer-BH5TUdft.js";import"./collection-search-jeWHAmV1.js";import"./use-mcp-prompts-r_b-m13M.js";import"./shell-layout-CYnXtCwc.js";import"./avatar-BAJ_UwLY.js";import"./use-project-scope-BPel4oYu.js";import"./github-repo-BpKUwJal.js";import"./command-DYMcXrYb.js";import"./index-C-AVMdC1.js";import"./required-auth-layout-B5RfO5xE.js";import"./use-org-sso-D2ngO8eF.js";import"./use-mcp-tools-DFUdHDOx.js";import"./form-DVlwcFzf.js";import"./select-KntX1BWy.js";import"./tabs-Bw-iT1Tk.js";import"./toggle-group-D2J6TMAE.js";import"./task-route-BF9yN3PC.js";import"./toolbar-icon-button-D5UWifRH.js";import"./popover-CiSRUL8W.js";import"./github-repo-picker-BvXosldt.js";import"./use-debounced-value-BSLeeOpX.js";import"./use-connection-DjqJprQ0.js";import"./authenticate-and-persist-oauth-Ca9jI9n9.js";import"./mcp-oauth-CH8aXrUS.js";import"./extract-connection-data-B0tz2bg7.js";import"./metadata-dUsYcpuu.js";import"./connection-Bpxwt4sD.js";import"./use-navigate-to-agent-IY8mCF-a.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./connection-card-D0u9_kRo.js";import"./use-registry-connections-DDAHT7mn.js";import"./useInfiniteQuery-Ba_5G2Dq.js";import"./use-infinite-scroll-D5DcjHPJ.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-Dw9EWqM9.js";import"./textarea-D69PAPp0.js";import"./connection-form-helpers-Blb0GPpJ.js";import"./collection-tabs-BUx5Y6ne.js";import"./badge-3ZvX9jce.js";import"./useSuspenseInfiniteQuery-Day-b8LH.js";import"./dropdown-menu-DAkDKRcv.js";import"./get-initials-D-f_fDFw.js";import"./select-model-D4UnKm_D.js";import"./checkbox-DM__T45b.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-WWKk1P4a.js";import"./question-004-sINsf4GQ.js";import"./use-members-uyLHU2hg.js";import"./use-org-auth-client-CRXTM1Db.js";import"./use-status-sounds-BsArCG5q.js";import"./empty-state-B5IW3FY0.js";import"./toolbar-CQKJCOWO.js";import"./types-D9TUiUC5.js";import"./file-type-icon-CqqlGtY8.js";import"./use-file-configs-DXL12ksv.js";import"./site-slug-uya6Wp4-.js";import"./skill-preview-DDtUylxS.js";import"./markdown-nQrYOrJu.js";import"./editor-Kqw7F1U3.js";import"./pt-BR-CLy76QW2.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-debounced-autosave-ZIgtFc1M.js";import"./scroll-area-D1O9Z5bn.js";import"./search-input-HJiyo5_T.js";import"./use-mcp-auth-status-BmzTeush.js";import"./switch-RffCohYW.js";import"./use-secrets-CxYf3QgY.js";import"./client-icons-CP-8jMQ6.js";import"./format-time-BnbuEtat.js";import"./connect-layout-CpZLZAi6.js";import"./self-tool-result-Bw-jg1H9.js";import"./track-CPuXhWGG.js";import"./use-tags-7szl89Un.js";import"./breadcrumb-DHpQRSkO.js";import"./use-copy-Cc5MlhjA.js";import"./monaco-editor-D-OtVr_n.js";import"./safe-image-url-D5z803Ot.js";import"./use-automations-D-er4402.js";import"./automation-list-row-S_f1Oum9.js";import"./site-error--i37Vnuw.js";import"./cards-YJY6OImM.js";import"./table-DHae8Nm6.js";function Pt(h){const o=X.c(18),{icon:d,title:n,defaultOpen:v,children:u}=h,P=v===void 0?!1:v,[g,D]=k.useState(P);let m;o[0]!==d?(m=t.jsx(d,{size:15}),o[0]=d,o[1]=m):m=o[1];let r;o[2]!==n?(r=t.jsx("span",{className:"flex-1 text-left",children:n}),o[2]=n,o[3]=r):r=o[3];const y=g&&"rotate-180";let s;o[4]!==y?(s=Y("transition-transform",y),o[4]=y,o[5]=s):s=o[5];let l;o[6]!==s?(l=t.jsx(Ct,{size:15,className:s}),o[6]=s,o[7]=l):l=o[7];let p;o[8]!==m||o[9]!==r||o[10]!==l?(p=t.jsx(Nt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[m,r,l]})}),o[8]=m,o[9]=r,o[10]=l,o[11]=p):p=o[11];let i;o[12]!==u?(i=t.jsx(St,{className:"px-2 pt-4",children:u}),o[12]=u,o[13]=i):i=o[13];let x;return o[14]!==g||o[15]!==p||o[16]!==i?(x=t.jsxs(wt,{open:g,onOpenChange:D,className:"mt-4",children:[p,i]}),o[14]=g,o[15]=p,o[16]=i,o[17]=x):x=o[17],x}function kr({orgSlug:h,virtualMcpId:o,branch:d,blockKey:n,block:v,decofile:u,meta:P,onManagePosts:g,onOpenPost:D,previewBaseUrl:m}){const r=Z(),y=K()?.taskId??null,s=ct({orgSlug:h,virtualMcpId:o,branch:d}),l=dt({orgSlug:h,virtualMcpId:o,branch:d}),p=ut(v,"categories"),[i,x,q]=Et(p,e=>{s.mutate({blockKey:n,data:A(n,"categories",e)})}),E=(e,w)=>x({...i,[e]:w}),z=bt({decofile:u,category:i,previewBaseUrl:m,draftPointer:l}),a=j(i.slug),[B,b]=k.useState(a),[c,C]=k.useState(null),[N,T]=k.useState(!1),F=a?gt(u).filter(e=>e.categorySlugs.includes(a)):[],S=F.length,G=e=>E("slug",e),J=async(e,w)=>{const V=j(i.name);T(!0);try{let f=0;for(const{key:R,payload:I}of ft(u,"posts")){const L=ht(I,e,{name:V,slug:w});L!==I&&(await s.mutateAsync({blockKey:R,data:A(R,"posts",yt(L))}),f+=1)}const O={...i,slug:w};await s.mutateAsync({blockKey:n,data:A(n,"categories",O)}),q(O),H.success(f>0?r("sandbox.categoryEditor.renameSuccessWithPosts",{count:String(f)}):r("sandbox.categoryEditor.renameSuccessNoPosts")),C(null)}catch(f){b(e),C(null),H.error(f instanceof Error?f.message:r("sandbox.categoryEditor.renameFailed"))}finally{T(!1)}},Q=()=>{const e=B.trim();if(e===a){B!==e&&b(e);return}if(!e){b(a);return}if(S===0){G(e);return}C({oldSlug:a,newSlug:e,count:S})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:j(i.name)||r("sandbox.categoryEditor.untitledCategory")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(xt,{isPending:s.isPending,isError:s.isError}),z&&t.jsxs($,{type:"button",variant:"outline",size:"sm",title:r("sandbox.categoryEditor.previewTooltip"),onClick:()=>window.open(z,"_blank","noopener,noreferrer"),children:[t.jsx(ot,{size:14}),r("sandbox.categoryEditor.seeCategoryPreview")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(kt,{value:j(i.name),onChange:e=>E("name",e),placeholder:r("sandbox.categoryEditor.categoryNamePlaceholder"),className:"py-1 text-3xl font-bold text-foreground"}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(M,{htmlFor:"category-slug",children:r("sandbox.categoryEditor.slugLabel")}),t.jsx(W,{id:"category-slug",value:B,onChange:e=>b(e.target.value),onBlur:Q,placeholder:r("sandbox.categoryEditor.slugPlaceholder"),className:"h-10"})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(M,{htmlFor:"category-description",children:r("sandbox.categoryEditor.descriptionLabel")}),t.jsx(W,{id:"category-description",value:j(i.description),onChange:e=>E("description",e.target.value),placeholder:r("sandbox.categoryEditor.descriptionPlaceholder"),className:"h-10"})]}),t.jsx(Pt,{icon:et,title:r("sandbox.categoryEditor.contentTitle"),defaultOpen:!0,children:t.jsx(jt,{value:vt(i.sections),onChange:e=>E("sections",e),meta:P,sandboxRef:{orgSlug:h,virtualMcpId:o,branch:d,threadId:y},emptyMessage:r("sandbox.categoryEditor.noContentEmpty")})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(U,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:r("sandbox.categoryEditor.postsInCategory",{count:String(S)})})]}),t.jsxs($,{type:"button",variant:"outline",size:"sm",disabled:!a,title:r(a?"sandbox.categoryEditor.pickPostsTooltip":"sandbox.categoryEditor.setSlugTooltip"),onClick:()=>g(a),children:[r("sandbox.categoryEditor.addPostsButton"),t.jsx(tt,{size:14})]})]}),S>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:F.map(e=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>D(e.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer",children:[t.jsx(U,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:e.title||r("sandbox.categoryEditor.untitledPost")}),e.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:e.slug})]})]})},e.key))})]})]})})]}),t.jsx(rt,{open:!!c,onOpenChange:e=>{e||N||(b(a),C(null))},children:t.jsxs(it,{children:[t.jsxs(st,{children:[t.jsx(at,{children:r("sandbox.categoryEditor.renameDialogTitle")}),t.jsx(nt,{children:c?r("sandbox.categoryEditor.renameDialogDescription",{oldSlug:c.oldSlug,newSlug:c.newSlug,count:String(c.count)}):null})]}),t.jsxs(mt,{children:[t.jsx(lt,{disabled:N,children:r("sandbox.categoryEditor.cancelButton")}),t.jsx(pt,{onClick:e=>{e.preventDefault(),c&&J(c.oldSlug,c.newSlug)},disabled:N,children:N?t.jsxs(t.Fragment,{children:[t.jsx(_,{className:"size-3.5"}),r("sandbox.categoryEditor.renamingLabel")]}):r("sandbox.categoryEditor.renameActionButton")})]})]})})]})}export{kr as CategoryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,j as t,B as W,h as X,ae as Ye,ag as ie,b as K,E as De,r as D,W as xe,c8 as Ge,c9 as Ee,ar as Xe,u as Ze,L as te,a3 as et,a4 as Se,a1 as ye,a2 as we,t as tt,f as fe,ca as Oe}from"./index-B1NfLh28.js";import{E as Re}from"./empty-state-B5IW3FY0.js";import{u as he}from"./use-mcp-client-BsCYwuYG.js";import{d as re,F as st,a as ae,b as ce}from"./form-DVlwcFzf.js";import{I as ue}from"./input-6kxANu4D.js";import{T as pe}from"./textarea-D69PAPp0.js";import{a as ot,b as nt,V as ge,O as lt,M as it}from"./index-ByNRxI-W.js";import{aU as rt,T as at,aV as ct,az as dt,al as mt,am as ut,aW as pt,v as Ce}from"./agent-icon-_mOvC4lh.js";import{g as xt,M as ft,a as Ie}from"./types-D9TUiUC5.js";import{A as ht,a as gt,b as jt}from"./alert-Be1JSz0u.js";import{S as Te,a as $e,b as Pe,c as ke,d as de}from"./select-KntX1BWy.js";import{B as Fe,a as Me,b as Y,c as se,d as oe,e as ze}from"./breadcrumb-DHpQRSkO.js";import{i as bt}from"./AlertCircle-CbIethWO.js";import{a as Nt}from"./Copy01-CVNVXHfJ.js";import{i as vt}from"./Play-C-Ctr0Bg.js";import{g as St}from"./connection-slug-CITJ0kGN.js";import{u as yt,T as wt}from"./use-mcp-auth-status-BmzTeush.js";import{a as Be,u as Le}from"./use-connection-DjqJprQ0.js";import{a as Ct}from"./use-mcp-tools-DFUdHDOx.js";import{M as It,c as Tt}from"./monaco-editor-D-OtVr_n.js";import{I as Ae}from"./integration-icon-Dw9EWqM9.js";import{k as $t,q as Pt}from"./chat-context-DoE_-ERG.js";import{u as kt}from"./shell-layout-CYnXtCwc.js";import{E as At}from"./empty-state-DTiYxZyX.js";import{n as Dt}from"./Tool02-CZJjuIxA.js";import"./constants-DNuUCxmW.js";import"./auth-D6hknNuL.js";import"./label-W4OZ7SIR.js";import"./Key01-BihM9W_4.js";import"./extract-connection-data-B0tz2bg7.js";import"./metadata-dUsYcpuu.js";import"./connection-Bpxwt4sD.js";import"./use-registry-connections-DDAHT7mn.js";import"./use-organization-settings-CVRBbGpW.js";import"./schema-BMBwySNw.js";import"./task-board-Cpu4KbdQ.js";import"./Plus-Dy3OwbdP.js";import"./index-DqFuEMY3.js";import"./index-vvsCvtEs.js";import"./index-C-AVMdC1.js";import"./popover-CiSRUL8W.js";import"./use-virtual-mcp-GrNV8gSX.js";import"./Check-CViV2AKw.js";import"./SearchMd-GhWQt9H_.js";import"./Users03-9eRhfMnl.js";import"./use-create-virtual-mcp-BpDoBwW0.js";import"./use-navigate-to-agent-IY8mCF-a.js";import"./use-destination-route-CG9NdNN9.js";import"./hooks-C1zHirdm.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BT-eLzU1.js";import"./thread-intent-B9RGGbT7.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BpKUwJal.js";import"./Tool01-C9Fh4pyK.js";import"./ArrowUp-ClH9KzFx.js";import"./ArrowLeft-y7fvMHg1.js";import"./XCircle-Bd6dXhOj.js";import"./TrendUp01-D_qxLEW7.js";import"./ZoomOut-BQIO6WB6.js";import"./CheckCircle-BceWKyuF.js";import"./ChevronUp-BZvKWnmE.js";import"./ChevronRight-Ub3Wi__5.js";import"./ChevronSelectorVertical-DYY47Opi.js";import"./DotsVertical-CUO5Z4B7.js";import"./UserSquare-BeyEkA5D.js";import"./CreditCard01-CMcaGH-G.js";import"./Download01-C-8_yc1P.js";import"./Settings02-Xf5MNOeS.js";import"./Eye-CRgiNYAI.js";import"./Share07-CkZjV7Y4.js";import"./GitBranch01-Cw03iCHW.js";import"./Globe01-BzEZgPZH.js";import"./XClose-auuJ_GRB.js";import"./HardDrive-BShCW8xo.js";import"./Image01-BDqKYCHs.js";import"./Link01-Bj9F9FFy.js";import"./LinkExternal01-B-j6voaz.js";import"./Monitor01-DJok5Oby.js";import"./Sun-vk_cPGMJ.js";import"./Package-DyPeIzqD.js";import"./Palette-Di_3G4BB.js";import"./Shield01-AHWHm-DS.js";import"./Stars01-D65oRIoj.js";import"./Trash01-B-u_-iqS.js";import"./Upload01-CVk2PCsw.js";import"./User01-CAS_KrTr.js";import"./Users01-ub3QFuz_.js";import"./Zap-b3NblJtQ.js";import"./badge-3ZvX9jce.js";import"./mcp-oauth-CH8aXrUS.js";import"./editor-Kqw7F1U3.js";import"./use-panel-navigate-Cbxz5kt0.js";import"./thread-route-DghMzEvi.js";import"./dialog-_eOGpV_R.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-BDymGfsX.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DJzsWHaW.js";import"./avatar-BAJ_UwLY.js";import"./use-project-scope-BPel4oYu.js";import"./command-DYMcXrYb.js";import"./required-auth-layout-B5RfO5xE.js";import"./use-org-sso-D2ngO8eF.js";function Et(s){const e=L.c(15),{onSave:r,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:u}=s,c=a===void 0?"Save":a,n=u===void 0?"Undo":u;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14}),e[0]=x):x=e[0];let g;e[1]!==i||e[2]!==o||e[3]!==n?(g=t.jsxs(W,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":n,children:[x,n]}),e[1]=i,e[2]=o,e[3]=n,e[4]=g):g=e[4];let m;e[5]!==i?(m=i?t.jsx(X,{className:"size-3.5"}):t.jsx(at,{size:14}),e[5]=i,e[6]=m):m=e[6];let f;e[7]!==i||e[8]!==r||e[9]!==c||e[10]!==m?(f=t.jsxs(W,{variant:"default",size:"sm",onClick:r,disabled:i,"aria-label":c,children:[m,c]}),e[7]=i,e[8]=r,e[9]=c,e[10]=m,e[11]=f):f=e[11];let p;return e[12]!==g||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[g,f]}),e[12]=g,e[13]=f,e[14]=p):p=e[14],p}Ye({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ot(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),r=e>=0?s[e+1]:void 0;return r?decodeURIComponent(r):void 0}function Rt(s){const e=L.c(43),{form:r}=s,o=K();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=w=>{const{field:b}=w;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(ce,{children:t.jsx(ue,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let u;e[6]!==r.control||e[7]!==a?(u=t.jsx(re,{control:r.control,name:"title",render:a}),e[6]=r.control,e[7]=a,e[8]=u):u=e[8];let c;e[9]!==o?(c=w=>{const{field:b}=w;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(ce,{children:t.jsx(ue,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=c):c=e[10];let n;e[11]!==r.control||e[12]!==c?(n=t.jsx(re,{control:r.control,name:"description",render:c}),e[11]=r.control,e[12]=c,e[13]=n):n=e[13];let x;e[14]!==u||e[15]!==n?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u,n]}),e[14]=u,e[15]=n,e[16]=x):x=e[16];let g;e[17]!==i||e[18]!==x?(g=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=g):g=e[19];let m;e[20]!==o?(m=o("details.prompt.message"),e[20]=o,e[21]=m):m=e[21];let f;e[22]!==m?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[22]=m,e[23]=f):f=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=w=>{const{field:b}=w;return t.jsx(ae,{children:t.jsx(ce,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=o,e[29]=N):N=e[29];let S;e[30]!==r.control||e[31]!==N?(S=t.jsx(re,{control:r.control,name:"body",render:N}),e[30]=r.control,e[31]=N,e[32]=S):S=e[32];let $;e[33]!==f||e[34]!==j||e[35]!==S?($=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,j,S]}),e[33]=f,e[34]=j,e[35]=S,e[36]=$):$=e[36];let y;e[37]!==$||e[38]!==g?(y=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[g,$]}),e[37]=$,e[38]=g,e[39]=y):y=e[39];let P;return e[40]!==r||e[41]!==y?(P=t.jsx(st,{...r,children:y}),e[40]=r,e[41]=y,e[42]=P):P=e[42],P}function Ft(s){const e=L.c(42),{providerId:r,promptId:o}=s,l=K(),{org:i}=xe(),a=r||null;let u;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(u={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=u):u=e[3];const c=he(u),n=Ge(r,"PROMPT",o,c),x=Ee(r,"PROMPT",c),g=x.update.isPending;let m;e[4]!==n?(m=n?{title:n.title,description:n.description??null,body:me(n)}:void 0,e[4]=n,e[5]=m):m=e[5];let f;e[6]!==m?(f={values:m},e[6]=m,e[7]=f):f=e[7];const p=Xe(f);let j;e[8]!==p||e[9]!==n?(j=()=>{n&&p.reset({title:n.title,description:n.description??null,body:me(n)})},e[8]=p,e[9]=n,e[10]=j):j=e[10];const N=j;let S;e[11]!==x.update||e[12]!==p||e[13]!==o?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:o,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:me(I)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=S):S=e[14];const $=S;if(!n){let C;e[15]!==l?(C=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=C):C=e[16];let I;e[17]!==l?(I=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=I):I=e[18];let O;return e[19]!==C||e[20]!==I?(O=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Re,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=O):O=e[21],O}let y;e[22]!==n.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[22]=n.title,e[23]=y):y=e[23];let P;e[24]!==n.description?(P=n.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:n.description})]}):null,e[24]=n.description,e[25]=P):P=e[25];let w;e[26]!==y||e[27]!==P?(w=t.jsx(nt,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,P]})}),e[26]=y,e[27]=P,e[28]=w):w=e[28];let b;e[29]!==$?(b=()=>{$()},e[29]=$,e[30]=b):b=e[30];let k;e[31]!==p.formState.isDirty||e[32]!==g||e[33]!==N||e[34]!==b?(k=t.jsx(ot,{children:t.jsx(Et,{onSave:b,onUndo:N,isDirty:p.formState.isDirty,isSaving:g})}),e[31]=p.formState.isDirty,e[32]=g,e[33]=N,e[34]=b,e[35]=k):k=e[35];let A;e[36]!==p?(A=t.jsx("div",{className:"h-full",children:t.jsx(Rt,{form:p})}),e[36]=p,e[37]=A):A=e[37];let E;return e[38]!==k||e[39]!==A||e[40]!==w?(E=t.jsxs(ge,{children:[w,k,A]}),e[38]=k,e[39]=A,e[40]=w,e[41]=E):E=e[41],E}function Mt(s){const e=L.c(10),{itemId:r}=s,o=K();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ot(),e[0]=l):l=e[0];const i=l;if(!i){let u;e[1]!==o?(u=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=u):u=e[2];let c;e[3]!==o?(c=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=c):c=e[4];let n;return e[5]!==u||e[6]!==c?(n=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Re,{title:u,description:c})}),e[5]=u,e[6]=c,e[7]=n):n=e[7],n}let a;return e[8]!==r?(a=t.jsx(De,{children:t.jsx(D.Suspense,{fallback:null,children:t.jsx(Ft,{providerId:i,promptId:r})})}),e[8]=r,e[9]=a):a=e[9],a}const zt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Bt(s){const e=L.c(12),{toolName:r,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,u=K();let c;e[0]!==o?(c={connectionId:o},e[0]=o,e[1]=c):c=e[1];const n=yt(c);if(!n.isAuthenticated){let m;return e[2]!==n.supportsOAuth||e[3]!==a||e[4]!==u?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:n.supportsOAuth?t.jsx(lt,{onAuthenticate:()=>a(),buttonText:u("details.tool.goBackToAuthenticate")}):t.jsx(it,{hasReadme:!1})}),e[2]=n.supportsOAuth,e[3]=a,e[4]=u,e[5]=m):m=e[5],m}const x=`${o}:${r}`;let g;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==r?(g=t.jsx(Lt,{toolName:r,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=r,e[11]=g):g=e[11],g}function Lt({toolName:s,connectionId:e,siblings:r,onSelectInstance:o}){const l=K(),{replayId:i}=Ze({strict:!1}),a=(()=>{if(!i)return null;const d=`replay-${i}`,h=sessionStorage.getItem(d);if(!h)return null;sessionStorage.removeItem(d);try{return JSON.parse(h)}catch{return null}})(),u=(()=>{if(!a)return null;const d={};for(const[h,T]of Object.entries(a))T!==null&&typeof T=="object"?d[h]=JSON.stringify(T,null,2):d[h]=T;return d})(),[c,n]=D.useState(u??{}),[x,g]=D.useState(a?JSON.stringify(a,null,2):"{}"),[m,f]=D.useState(null),[p,j]=D.useState(null),[N,S]=D.useState(null),[$,y]=D.useState(null),[P,w]=D.useState(!1),[b,k]=D.useState(null),{org:A}=xe(),E=Be(e),C=$t(),I=Pt(),{openSidePanel:O}=kt(),U=`${e}:${s}`,F=he({connectionId:e,orgId:A.id,orgSlug:A.slug}),V=Ct({client:F}),v=V.data?.tools?.find(d=>d.name===s),R=xt(v?._meta),J=d=>{if(!C)return;const h=Tt(d.content);h.content.length>0&&(O(),C.sendMessage({tiptapDoc:h}))},[M,z]=D.useState("json"),[q,Q]=D.useState(!1);R&&!q&&(z("ui"),Q(!0));const _=v?.inputSchema?.properties,je=_?Object.keys(_):[],G=je.length>0,Z={};if(G&&v?.inputSchema?.properties)for(const d of je)Z[d]=v.inputSchema.required?.includes(d)?"":void 0;const ne=d=>Object.prototype.hasOwnProperty.call(c,d),Ue=async()=>{w(!0),y(null),f(null),j(null),S(null),k(null);const d=performance.now();try{if(!F)throw new Error("MCP client is not available");const h=G?{...Z,...c}:(()=>{const B=x.trim();if(!B)return{};const H=JSON.parse(B);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();G&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([B,H])=>{if((H.type==="object"||H.type==="array")&&typeof h[B]=="string")try{h[B]=JSON.parse(h[B])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof h[B]=="string"&&h[B]!==""){const ve=Number(h[B]);Number.isNaN(ve)||(h[B]=ve)}});const T=await F.callTool({name:s,arguments:h}),ee=T.structuredContent??T,We=performance.now(),Ke=Math.round(We-d);f(ee),j(T),S(h);const Qe=JSON.stringify(ee),Ne=new TextEncoder().encode(Qe).length;k({duration:`${Ke}ms`,bytes:`${Ne} bytes`,tokens:`~${Math.ceil(Ne/4)} tokens`,cost:"$0.0000"})}catch(h){const T=h instanceof Error?h.message:String(h);y(T||"Unknown error occurred");const ee=performance.now();k({duration:`${Math.round(ee-d)}ms`})}finally{w(!1)}},le=(d,h)=>{n(T=>({...T,[d]:h}))},Ve=()=>{f(null),j(null),S(null),y(null),k(null)},_e=v?.name??zt(s),Je=t.jsx(Fe,{children:t.jsxs(Me,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:A.slug},children:l("details.tool.connections")})})}),t.jsx(oe,{}),E&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:A.slug,appSlug:St(E)},search:{tab:"tools"},children:E.title})})}),t.jsx(oe,{})]}),t.jsx(Y,{children:t.jsx(ze,{children:_e})})]})}),be=r.length>1&&t.jsxs(Te,{value:e,onValueChange:o,children:[t.jsx($e,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(Pe,{})}),t.jsx(ke,{children:r.map(d=>t.jsx(de,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),qe=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:l("details.tool.parameters")}),v?.inputSchema?.required&&v.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:G&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([d,h])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[d,v.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(d)?c[d]??"":Z[d]??"",onChange:T=>le(d,T.target.value),placeholder:l("details.tool.enterAsJson",{key:d}),rows:3}):h.type==="boolean"?t.jsxs(Te,{value:ne(d)?String(c[d]??""):"",onValueChange:T=>le(d,T==="true"),children:[t.jsx($e,{children:t.jsx(Pe,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs(ke,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(d)?c[d]??"":Z[d]??"",onChange:T=>le(d,T.target.value),placeholder:l("details.tool.enter",{key:d})})]},d)):v?.inputSchema&&!G?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:d=>g(d.target.value),placeholder:l("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(W,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(ct,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(W,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ue,children:[t.jsx(vt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),He=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(dt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),R&&t.jsx(et,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Se,{children:[t.jsx(ye,{asChild:!0,children:t.jsx(W,{size:"icon",variant:M==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>z("ui"),children:t.jsx(pt,{size:14})})}),t.jsx(we,{children:l("details.tool.interactiveView")})]}),t.jsxs(Se,{children:[t.jsx(ye,{asChild:!0,children:t.jsx(W,{size:"icon",variant:M==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>z("json"),children:t.jsx(Ce,{size:14})})}),t.jsx(we,{children:l("details.tool.jsonView")})]})]})})]})]}),$&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(ht,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(bt,{className:"h-4 w-4"}),t.jsx(gt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(jt,{className:"text-xs text-destructive",children:$})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:R&&M==="ui"&&F?t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(X,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(ft,{resourceURI:R,toolInfo:v?{tool:v}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:Ie.view.minHeight,maxHeight:Ie.view.maxHeight,client:F,onMessage:J,onUpdateModelContext:d=>I?.setAppContext(U,d),onTeardown:()=>I?.clearAppContext(U),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(It,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(W,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(m,null,2)),tt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(Nt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(Ce,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(ge,{breadcrumb:Je,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ae,{icon:E?.icon||null,name:E?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[V.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):V.isLoading?t.jsx(X,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:V.isSuccess?"ready":V.isLoading?"connecting":"error"})]}),t.jsx(wt,{annotations:v?.annotations,_meta:v?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:be})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:v?.description||"No description available"})]}),r.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:l("details.tool.instance")}),be]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:qe}),He]})})]})})}function Ut(s){const e=L.c(20),{itemId:r,siblings:o,onBack:l}=s,i=K(),[a,u]=D.useState(o[0]?.id??"");let c;e[0]!==a||e[1]!==o?(c=o.find(f=>f.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=c):c=e[2];const n=c;if(!Be(n||void 0)||!n){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let j;e[7]!==i?(j=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=j):j=e[8];let N;e[9]!==j?(N=t.jsx("p",{className:"text-sm text-muted-foreground",children:j}),e[9]=j,e[10]=N):N=e[10];let S;return e[11]!==p||e[12]!==N?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[p,N]})}),e[11]=p,e[12]=N,e[13]=S):S=e[13],S}let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),e[14]=g):g=e[14];let m;return e[15]!==n||e[16]!==l||e[17]!==o||e[18]!==r?(m=t.jsx(D.Suspense,{fallback:g,children:t.jsx(Bt,{toolName:r,connectionId:n,siblings:o,onSelectInstance:u,onBack:l})}),e[15]=n,e[16]=l,e[17]=o,e[18]=r,e[19]=m):m=e[19],m}const Vt={prompt:Mt};function _t(){const s=L.c(9),e=Oe();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=fe(r),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Le(i);let u;s[3]!==e.history?(u=()=>{e.history.back()},s[3]=e.history,s[4]=u):u=s[4];const c=u,n=Jt;let x;return s[5]!==c||s[6]!==l||s[7]!==a?(x=t.jsx(Ut,{itemId:l,siblings:a,onBack:c,onUpdate:n}),s[5]=c,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Jt(s){return Promise.resolve()}function qt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Ht(){const s=L.c(52),e=Oe();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=fe(r),l=K(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let u;s[1]!==e.history?(u=()=>{e.history.back()},s[1]=e.history,s[2]=u):u=s[2];const c=u,{org:n}=xe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const m=Le(x)[0]??null,f=m?.id??"",p=f||"no-connection",j=f??null;let N;s[5]!==n.id||s[6]!==n.slug||s[7]!==j?(N={connectionId:j,orgId:n.id,orgSlug:n.slug},s[5]=n.id,s[6]=n.slug,s[7]=j,s[8]=N):N=s[8];const S=he(N),$=Ee(p,i,S);let y;s[9]!==$||s[10]!==a?(y=async _=>{a&&await $.update.mutateAsync({id:a,data:_})},s[9]=$,s[10]=a,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const b=w,k=b&&Vt[b];let A;s[14]!==i?(A=qt(i),s[14]=i,s[15]=A):A=s[15];const E=A;let C;s[16]!==n.slug?(C=t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:n.slug},children:"Connections"})})}),s[16]=n.slug,s[17]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(oe,{}),s[18]=I):I=s[18];let O;s[19]!==i||s[20]!==m||s[21]!==n.slug||s[22]!==o.appSlug?(O=m&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:o.appSlug},search:{tab:i},children:m.title})})}),t.jsx(oe,{})]}),s[19]=i,s[20]=m,s[21]=n.slug,s[22]=o.appSlug,s[23]=O):O=s[23];let U;s[24]!==E?(U=t.jsx(Y,{children:t.jsx(ze,{children:E})}),s[24]=E,s[25]=U):U=s[25];let F;s[26]!==O||s[27]!==U||s[28]!==C?(F=t.jsx(Fe,{children:t.jsxs(Me,{children:[C,I,O,U]})}),s[26]=O,s[27]=U,s[28]=C,s[29]=F):F=s[29];const V=F;if(k){let _;return s[30]!==k||s[31]!==c||s[32]!==P||s[33]!==a?(_=t.jsx(k,{itemId:a,onBack:c,onUpdate:P}),s[30]=k,s[31]=c,s[32]=P,s[33]=a,s[34]=_):_=s[34],_}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Dt,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let R;s[36]!==l?(R=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=R):R=s[37];let J;s[38]!==l?(J=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=J):J=s[39];let M;s[40]!==l?(M=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=M):M=s[41];let z;s[42]!==c||s[43]!==M?(z={onClick:c,children:M},s[42]=c,s[43]=M,s[44]=z):z=s[44];let q;s[45]!==R||s[46]!==J||s[47]!==z?(q=t.jsx(At,{icon:v,title:R,description:J,buttonProps:z}),s[45]=R,s[46]=J,s[47]=z,s[48]=q):q=s[48];let Q;return s[49]!==V||s[50]!==q?(Q=t.jsx(ge,{breadcrumb:V,children:q}),s[49]=V,s[50]=q,s[51]=Q):Q=s[51],Q}function Wt(){const s=L.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const r=fe(e);if(decodeURIComponent(r.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_t,{}),s[1]=a):a=s[1],a}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Ht,{}),s[2]=i):i=s[2],i}function Ho(){const s=L.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(De,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Wt,{})})}),s[0]=e):e=s[0],e}export{Ho as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as d,l as i,j as n}from"./index-B1NfLh28.js";import{_ as m}from"./index-C-AVMdC1.js";import{D as j,d as b,h as w,c as y,b as C}from"./dialog-_eOGpV_R.js";import{i as D}from"./SearchMd-GhWQt9H_.js";function $(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function G(a){const e=d.c(28);let t,s,o,l,r,h,_;e[0]!==a?({title:h,description:_,children:t,className:s,filter:o,shouldFilter:r,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r,e[6]=h,e[7]=_):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5],h=e[6],_=e[7]);const k=h===void 0?"Command Palette":h,N=_===void 0?"Search for a command to run...":_;let c;e[8]!==k?(c=n.jsx(b,{children:k}),e[8]=k,e[9]=c):c=e[9];let p;e[10]!==N?(p=n.jsx(w,{children:N}),e[10]=N,e[11]=p):p=e[11];let u;e[12]!==c||e[13]!==p?(u=n.jsxs(y,{className:"sr-only",children:[c,p]}),e[12]=c,e[13]=p,e[14]=u):u=e[14];let f;e[15]!==s?(f=i("overflow-hidden p-0",s),e[15]=s,e[16]=f):f=e[16];let x;e[17]!==t||e[18]!==o||e[19]!==r?(x=n.jsx($,{filter:o,shouldFilter:r,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[17]=t,e[18]=o,e[19]=r,e[20]=x):x=e[20];let g;e[21]!==f||e[22]!==x?(g=n.jsx(C,{className:f,closeButtonClassName:"hidden",children:x}),e[21]=f,e[22]=x,e[23]=g):g=e[23];let v;return e[24]!==l||e[25]!==u||e[26]!==g?(v=n.jsxs(j,{...l,children:[u,g]}),e[24]=l,e[25]=u,e[26]=g,e[27]=v):v=e[27],v}function L(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function R(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function F(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function P(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{$ as C,L as a,R as b,B as c,P as d,F as e,G as f,H as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as U,b as Ee,m as ze,j as t,b6 as $e,l as Ve,K as xe,bj as $t,c5 as Dt,bi as zt,bk as _t,bl as Et,B as ge,r as pe,C as Rt,W as Lt,n as He,e as Ae,t as be}from"./index-B1NfLh28.js";import{f as ke}from"./TrendUp01-D_qxLEW7.js";import{t as it}from"./ChevronUp-BZvKWnmE.js";import{i as ot}from"./ChevronRight-Ub3Wi__5.js";import{az as Je,bd as Ft,be as Ut,bf as Mt,bg as ct,a7 as At}from"./agent-icon-_mOvC4lh.js";import{s as dt}from"./Trash01-B-u_-iqS.js";import{B as te}from"./badge-3ZvX9jce.js";import{I as It}from"./input-6kxANu4D.js";import{L as Be}from"./label-W4OZ7SIR.js";import{c as mt,d as ut,b as ft,f as xt,g as pt,e as ht,a as bt,A as gt}from"./alert-dialog-FC7tFvol.js";import{b as qt,D as Vt,c as Ot,d as Kt,e as Bt}from"./dialog-_eOGpV_R.js";import{S as lt,a as nt,b as at,c as rt,d as jt}from"./select-KntX1BWy.js";import{c as We,e as Ye,a as we,d as W,b as Ge,T as Y}from"./table-DHae8Nm6.js";import{E as De}from"./empty-state-DTiYxZyX.js";import{u as Qt}from"./use-virtual-mcp-GrNV8gSX.js";import{r as Ht}from"./site-slug-uya6Wp4-.js";import{i as Re}from"./CheckCircle-BceWKyuF.js";import{a as Jt}from"./DotsVertical-CUO5Z4B7.js";import{n as Tt}from"./LinkExternal01-B-j6voaz.js";import{i as Wt}from"./Monitor01-DJok5Oby.js";import{b as Yt}from"./UserSquare-BeyEkA5D.js";import{a as Xe}from"./XCircle-Bd6dXhOj.js";import{al as Gt,am as Xt,an as Zt}from"./automation-runs-DTbShgpv.js";import{b as es,c as ts,T as ss,a as ls}from"./tabs-Bw-iT1Tk.js";import"./AlertCircle-CbIethWO.js";import"./Tool01-C9Fh4pyK.js";import"./ArrowUp-ClH9KzFx.js";import"./ArrowLeft-y7fvMHg1.js";import"./Tool02-CZJjuIxA.js";import"./ZoomOut-BQIO6WB6.js";import"./Users03-9eRhfMnl.js";import"./Check-CViV2AKw.js";import"./ChevronSelectorVertical-DYY47Opi.js";import"./Copy01-CVNVXHfJ.js";import"./CreditCard01-CMcaGH-G.js";import"./Download01-C-8_yc1P.js";import"./Settings02-Xf5MNOeS.js";import"./Eye-CRgiNYAI.js";import"./Share07-CkZjV7Y4.js";import"./GitBranch01-Cw03iCHW.js";import"./Globe01-BzEZgPZH.js";import"./XClose-auuJ_GRB.js";import"./HardDrive-BShCW8xo.js";import"./Image01-BDqKYCHs.js";import"./Key01-BihM9W_4.js";import"./Link01-Bj9F9FFy.js";import"./Sun-vk_cPGMJ.js";import"./Package-DyPeIzqD.js";import"./Palette-Di_3G4BB.js";import"./Play-C-Ctr0Bg.js";import"./Plus-Dy3OwbdP.js";import"./SearchMd-GhWQt9H_.js";import"./Shield01-AHWHm-DS.js";import"./Stars01-D65oRIoj.js";import"./Upload01-CVk2PCsw.js";import"./User01-CAS_KrTr.js";import"./Users01-ub3QFuz_.js";import"./Zap-b3NblJtQ.js";import"./use-mcp-client-BsCYwuYG.js";import"./constants-DNuUCxmW.js";import"./auth-D6hknNuL.js";import"./useInfiniteQuery-Ba_5G2Dq.js";import"./use-infinite-scroll-D5DcjHPJ.js";import"./use-connection-DjqJprQ0.js";import"./empty-state-B5IW3FY0.js";import"./use-members-uyLHU2hg.js";import"./use-org-auth-client-CRXTM1Db.js";import"./use-automations-D-er4402.js";import"./useSuspenseInfiniteQuery-Day-b8LH.js";import"./avatar-BAJ_UwLY.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Cc5MlhjA.js";import"./markdown-nQrYOrJu.js";import"./use-panel-navigate-Cbxz5kt0.js";import"./use-destination-route-CG9NdNN9.js";import"./hooks-C1zHirdm.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BT-eLzU1.js";import"./task-board-Cpu4KbdQ.js";import"./schema-BMBwySNw.js";import"./chat-context-DoE_-ERG.js";import"./thread-route-DghMzEvi.js";import"./thread-intent-B9RGGbT7.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-BDymGfsX.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DJzsWHaW.js";import"./use-organization-settings-CVRBbGpW.js";import"./monaco-editor-D-OtVr_n.js";import"./editor-Kqw7F1U3.js";import"./types-D9TUiUC5.js";import"./shell-layout-CYnXtCwc.js";import"./use-project-scope-BPel4oYu.js";import"./github-repo-BpKUwJal.js";import"./command-DYMcXrYb.js";import"./index-C-AVMdC1.js";import"./required-auth-layout-B5RfO5xE.js";import"./use-org-sso-D2ngO8eF.js";import"./integration-icon-Dw9EWqM9.js";import"./use-navigate-to-agent-IY8mCF-a.js";import"./use-mcp-prompts-r_b-m13M.js";import"./form-DVlwcFzf.js";import"./file-type-icon-CqqlGtY8.js";function ns(a){const e=a instanceof Error?a.message.toLowerCase():"";return e.includes("unauthorized")||e.includes("401")}async function as(a){const e=await fetch(a),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 Error(l)}return s}function Le(a){return a==null||!Number.isFinite(a)?"—":a>=1e3?`${(a/1e3).toFixed(a>=1e4?0:1)}s`:`${Math.round(a)}ms`}function Ze(a){const e=(a??"").toLowerCase();return e==="pass"||e==="passed"||e==="ok"||e==="success"}function Se(a){const e=(a??"").toLowerCase();return e==="fail"||e==="failed"||e==="error"}function vt(a){const e=(a??"").toLowerCase();return e==="skip"||e==="skipped"}function Qe(a,e){return a.viewport&&a.viewport.trim()?a.viewport:`viewport-${e}`}function et(a){const e=U.c(12),{status:s,t:l}=a;if(Se(s)){let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Xe,{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(Ze(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 n=s??"—";let i;return e[10]!==n?(i=t.jsx(te,{variant:"secondary",children:n}),e[10]=n,e[11]=i):i=e[11],i}function rs(a){const e=U.c(4),{status:s}=a;if(Ze(s)){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Re,{className:"size-4 shrink-0 text-success"}),e[0]=n):n=e[0],n}if(Se(s)){let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Xe,{className:"size-4 shrink-0 text-destructive"}),e[1]=n):n=e[1],n}if(vt(s)){let n;return e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Mt,{className:"size-4 shrink-0 text-muted-foreground"}),e[2]=n):n=e[2],n}let l;return e[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Jt,{className:"size-4 shrink-0 text-muted-foreground/60"}),e[3]=l):l=e[3],l}function is(a){return Ze(a)?"bg-success":Se(a)?"bg-destructive":vt(a)?"bg-muted-foreground/40":"bg-muted-foreground/25"}function os(a){const e=U.c(4),{steps:s}=a;if(s.length===0)return null;let l;e[0]!==s?(l=s.map(cs),e[0]=s,e[1]=l):l=e[1];let n;return e[2]!==l?(n=t.jsx("div",{className:"flex flex-wrap items-center gap-1",children:l}),e[2]=l,e[3]=n):n=e[3],n}function cs(a,e){return t.jsx("span",{title:a.name??`step ${e+1}`,className:Ve("size-1.5 rounded-full",is(a.status))},e)}const ds=[{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 Nt(a){const e=U.c(7),{vitals:s}=a;let l,n,i;if(e[0]!==s){i=Symbol.for("react.early_return_sentinel");e:{const o=ds.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",n=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]=n,e[3]=i}else l=e[1],n=e[2],i=e[3];if(i!==Symbol.for("react.early_return_sentinel"))return i;let r;return e[4]!==l||e[5]!==n?(r=t.jsx("div",{className:l,children:n}),e[4]=l,e[5]=n,e[6]=r):r=e[6],r}function Ue(a){const e=U.c(17),{icon:s,label:l,badge:n,defaultOpen:i,children:r}=a,o=i===void 0?!1:i,[c,m]=pe.useState(o);let d;e[0]!==c?(d=c?t.jsx(it,{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]!==n?(T=n!=null&&t.jsx("span",{className:"ml-auto",children:n}),e[4]=n,e[5]=T):T=e[5];let p;e[6]!==s||e[7]!==d||e[8]!==u||e[9]!==T?(p=t.jsxs(Gt,{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(Zt,{open:c,onOpenChange:m,children:[p,f]}),e[13]=c,e[14]=p,e[15]=f,e[16]=x):x=e[16],x}function ms(a){const e=U.c(51),{step:s,index:l,t:n}=a;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(rs,{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]!==n?(u=s.name??s.actionDescription??`${n("mainPanelTabs.e2eTab.steps")} ${l+1}`,e[9]=l,e[10]=s.actionDescription,e[11]=s.name,e[12]=n,e[13]=u):u=e[13];let T;e[14]!==s.critical||e[15]!==n?(T=s.critical&&t.jsx(te,{variant:"warning",className:"ml-2 align-middle",children:n("mainPanelTabs.e2eTab.critical")}),e[14]=s.critical,e[15]=n,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(Ut,{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]!==n?(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(Rt,{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:n("mainPanelTabs.e2eTab.missingSelector",{slug:s.errorDetail.slug})}),s.errorDetail.expected&&t.jsx("span",{className:"break-words text-destructive/80",children:n("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]=n,e[36]=g):g=e[36];let b;e[37]!==l||e[38]!==s.name||e[39]!==s.screenshotUrl||e[40]!==n?(b=s.screenshotUrl&&t.jsx("a",{href:s.screenshotUrl,target:"_blank",rel:"noreferrer",className:"mt-1 w-fit","aria-label":n("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]=n,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 us(a){const e=U.c(8),{entries:s,t:l}=a;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 n;e[4]!==s?(n=s.map(fs),e[4]=s,e[5]=n):n=e[5];let i;return e[6]!==n?(i=t.jsx("div",{className:"flex max-h-72 flex-col overflow-y-auto rounded-lg border border-border",children:n}),e[6]=n,e[7]=i):i=e[7],i}function fs(a,e){const s=(a.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:a.text})},e)}function xs(a){const e=U.c(8),{entries:s,t:l}=a;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 n;e[4]!==s?(n=s.map(ps),e[4]=s,e[5]=n):n=e[5];let i;return e[6]!==n?(i=t.jsx("div",{className:"flex max-h-72 flex-col overflow-y-auto rounded-lg border border-border",children:n}),e[6]=n,e[7]=i):i=e[7],i}function ps(a,e){const s=(a.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:a.status??"—"}),t.jsx("span",{className:"w-10 shrink-0 text-muted-foreground/70",children:a.method}),t.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/70",children:a.url}),a.resourceType&&t.jsx("span",{className:"shrink-0 text-muted-foreground/50",children:a.resourceType})]},e)}function hs(a){const e=U.c(57),{run:s,page:l,t:n}=a;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(gs),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(bs),e[8]=d,e[9]=p):p=e[9];const f=p;let x;e[10]!==s.verdict||e[11]!==n?(x=t.jsx(et,{status:s.verdict,t:n}),e[10]=s.verdict,e[11]=n,e[12]=x):x=e[12];let v;e[13]!==s.funnelVerdict||e[14]!==s.verdict||e[15]!==n?(v=s.funnelVerdict&&s.funnelVerdict!==s.verdict&&t.jsxs("span",{children:[n("mainPanelTabs.e2eTab.funnel"),":"," ",t.jsx("span",{className:"font-medium text-foreground",children:s.funnelVerdict})]}),e[13]=s.funnelVerdict,e[14]=s.verdict,e[15]=n,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(os,{steps:r}),e[26]=r,e[27]=g):g=e[27];let b;e[28]!==l||e[29]!==n?(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:n("mainPanelTabs.e2eTab.vitals")}),t.jsx(Nt,{vitals:l.vitals})]}),e[28]=l,e[29]=n,e[30]=b):b=e[30];let N;e[31]!==c||e[32]!==r||e[33]!==n?(N=r.length>0&&t.jsx(Ue,{defaultOpen:!0,icon:t.jsx(Re,{className:"size-4 text-muted-foreground"}),label:n("mainPanelTabs.e2eTab.steps"),badge:c>0?t.jsx(te,{variant:"destructive",children:n("mainPanelTabs.e2eTab.failCount",{count:String(c)})}):t.jsx(te,{variant:"secondary",children:n("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,_)=>t.jsx(ms,{step:D,index:_,t:n},_))})}),e[31]=c,e[32]=r,e[33]=n,e[34]=N):N=e[34];let j;e[35]!==d||e[36]!==f||e[37]!==n?(j=d.length>0&&t.jsx(Ue,{icon:t.jsx(Yt,{className:"size-4 text-muted-foreground"}),label:n("mainPanelTabs.e2eTab.console"),badge:t.jsx(te,{variant:f?"destructive":"secondary",children:d.length}),children:t.jsx(us,{entries:d,t:n})}),e[35]=d,e[36]=f,e[37]=n,e[38]=j):j=e[38];let w;e[39]!==T||e[40]!==n?(w=T.length>0&&t.jsx(Ue,{icon:t.jsx(Wt,{className:"size-4 text-muted-foreground"}),label:n("mainPanelTabs.e2eTab.network"),badge:t.jsx(te,{variant:"secondary",children:T.length}),children:t.jsx(xs,{entries:T,t:n})}),e[39]=T,e[40]=n,e[41]=w):w=e[41];let S;e[42]!==s.videoUrl||e[43]!==n?(S=s.videoUrl&&t.jsx(Ue,{icon:t.jsx(Ft,{className:"size-4 text-muted-foreground"}),label:n("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]=n,e[44]=S):S=e[44];let C;e[45]!==s.traceUrl||e[46]!==n?(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(Tt,{className:"size-4"}),n("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:n("mainPanelTabs.e2eTab.downloadTrace")})]}),e[45]=s.traceUrl,e[46]=n,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 bs(a){return(a.type??"").toLowerCase()==="error"}function gs(a){return Se(a.status)}function yt(a){const e=U.c(7),{artifacts:s,t:l}=a;let n;if(e[0]!==s||e[1]!==l){const i=s.filter(Ts),r=s.filter(js);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],n=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(Tt,{className:"size-3 text-muted-foreground"})]},`${m.name??"artifact"}-${d}`))})]})]}),e[0]=s,e[1]=l,e[2]=n}else n=e[2];return n}function js(a){return!/\.png$/i.test(a.name??"")}function Ts(a){return/\.png$/i.test(a.name??"")}function vs(a){const e=U.c(9),{checks:s,artifacts:l,t:n}=a;let i;e[0]!==s||e[1]!==n?(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:n("mainPanelTabs.e2eTab.checksTitle")}),t.jsx("div",{className:"rounded-lg border border-border",children:t.jsxs(We,{children:[t.jsx(Ye,{children:t.jsxs(we,{children:[t.jsx(W,{children:n("mainPanelTabs.e2eTab.colCheck")}),t.jsx(W,{children:n("mainPanelTabs.e2eTab.colStatus")}),t.jsx(W,{children:n("mainPanelTabs.e2eTab.colViewport")}),t.jsx(W,{className:"text-right",children:n("mainPanelTabs.e2eTab.colDuration")})]})}),t.jsx(Ge,{children:s.map((c,m)=>t.jsxs(we,{children:[t.jsx(Y,{className:"text-xs text-foreground",children:c.name??"—"}),t.jsx(Y,{children:t.jsx(et,{status:c.status,t:n})}),t.jsx(Y,{className:"font-mono text-xs text-muted-foreground",children:c.viewport??"—"}),t.jsx(Y,{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:n("mainPanelTabs.e2eTab.noReport")}),e[0]=s,e[1]=n,e[2]=i):i=e[2];let r;e[3]!==l||e[4]!==n?(r=t.jsx(yt,{artifacts:l,t:n}),e[3]=l,e[4]=n,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 Ns(a){const e=U.c(46),{data:s,t:l}=a,n=s.report??null;let i;e[0]!==n?.runs?(i=n?.runs??[],e[0]=n?.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]!==n?.pages){u=new Map;for(const h of n?.pages??[])h.viewport&&!u.has(h.viewport)&&u.set(h.viewport,h);e[6]=n?.pages,e[7]=u}else u=e[7];const T=r[0];if(n&&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(es,{value:D,variant:"underline",className:"gap-1.5",children:[Se(C.verdict)?t.jsx(Xe,{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(ts,{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(ss,{value:D,children:t.jsx(hs,{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(ls,{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(yt,{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]!==n?.pages?(p=(n?.pages??[]).find(ys)?.vitals,e[34]=n?.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(Nt,{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(vs,{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 ys(a){return a.vitals}function Ps(a){const e=U.c(50),{base:s,orgSlug:l,site:n,run:i,onOpenChange:r}=a,o=Ee(),c=i?.runId??"",m=i!=null;let d;e[0]!==l||e[1]!==c||e[2]!==n?(d=xe.e2eRun(l,n,c),e[0]=l,e[1]=c,e[2]=n,e[3]=d):d=e[3];let u;e[4]!==s||e[5]!==c?(u=()=>as(`${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=ze(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($t,{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(Dt,{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 _;e[33]!==D||e[34]!==j?(_=t.jsxs(zt,{className:"border-b border-border",children:[j,D]}),e[33]=D,e[34]=j,e[35]=_):_=e[35];let F;e[36]!==x||e[37]!==f.error||e[38]!==f.isLoading||e[39]!==o?(F=ns(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(Ns,{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 L;e[43]!==_||e[44]!==R?(L=t.jsxs(_t,{side:"right",className:"w-full gap-0 p-0 sm:max-w-2xl",children:[_,R]}),e[43]=_,e[44]=R,e[45]=L):L=e[45];let E;return e[46]!==r||e[47]!==m||e[48]!==L?(E=t.jsx(Et,{open:m,onOpenChange:r,children:L}),e[46]=r,e[47]=m,e[48]=L,e[49]=E):E=e[49],E}const Me="once",ws=[{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 Ss(a){const e=U.c(16),{phase:s,t:l}=a,n=(s??"").toLowerCase();if(n==="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(n==="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(n==="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 _e(a,e){if(Array.isArray(a))return a;if(a&&typeof a=="object"){const s=a[e];if(Array.isArray(s))return s}return[]}function Pt(a){const e=(a??"").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 Cs(a,e){const s=Pt(a);return s==="success"?e("mainPanelTabs.e2eTab.statusPassed"):s==="destructive"?e("mainPanelTabs.e2eTab.statusFailed"):s==="warning"?e("mainPanelTabs.e2eTab.statusRunning"):a??"—"}function ks(a,e){const s=[],l=a.summary?.exitCode;typeof l=="number"&&s.push(e("mainPanelTabs.e2eTab.summaryExitCode",{code:String(l)}));const n=a.summary?.fileCount;return typeof n=="number"&&s.push(e("mainPanelTabs.e2eTab.summaryFiles",{count:String(n)})),s.length>0?s.join(" · "):"—"}function wt(a){if(!a)return"—";const e=new Date(a).getTime();if(Number.isNaN(e))return"—";const s=Math.round((Date.now()-e)/1e3),l=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),n=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[i,r]of n)if(Math.abs(s)>=r)return l.format(-Math.round(s/r),i);return l.format(-s,"second")}function $s(a){const e=a instanceof Error?a.message.toLowerCase():"";return e.includes("unauthorized")||e.includes("401")}function Oe(a){return a instanceof Error?a.message:String(a)}async function Ie(a){const e=await fetch(a),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 Error(l)}return s}async function qe(a,e,s){const l=await fetch(a,{method:e,headers:s!==void 0?{"Content-Type":"application/json"}:{},body:s!==void 0?JSON.stringify(s):void 0}),n=await l.json().catch(()=>({}));if(!l.ok){const i=n&&typeof n=="object"&&"error"in n?String(n.error):`request failed (${l.status})`;throw new Error(i)}return n}function St(a){const e=U.c(15),{title:s,count:l,action:n,children:i}=a;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]!==n?(c=n?t.jsx("div",{className:"ml-auto",children:n}):null,e[4]=n,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 Ct(a){const e=U.c(3),{cols:s}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[0,1,2],e[0]=l):l=e[0];let n;return e[1]!==s?(n=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(Ds)},i))}),e[1]=s,e[2]=n):n=e[2],n}function Ds(a,e){return t.jsx($e,{className:"h-4 flex-1"},e)}function kt(a){const e=U.c(2),{children:s}=a;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 zs(a){const e=U.c(117),{base:s,orgSlug:l,site:n}=a,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]!==n?(x=xe.e2eTypes(l,n),e[0]=l,e[1]=n,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=ze(y),P=_e(h.data,"items");let g;e[9]!==s?(g=me=>{const tt=me.schedule===Me?"":me.schedule,st=me.url.trim();return qe(`${s}/e2e/runs`,"POST",{command:me.command,...tt?{schedule:tt}:{},...st?{url:st}:{}})},e[9]=s,e[10]=g):g=e[10];let b;e[11]!==l||e[12]!==r||e[13]!==n||e[14]!==i?(b=()=>{r.invalidateQueries({queryKey:xe.e2eRuns(l,n)}),r.invalidateQueries({queryKey:xe.e2eChecks(l,n)}),be.success(i("mainPanelTabs.e2eTab.toastRunQueued")),c(!1),d(""),T(Me),f("")},e[11]=l,e[12]=r,e[13]=n,e[14]=i,e[15]=b):b=e[15];let N;e[16]!==g||e[17]!==b?(N={mutationFn:g,onSuccess:b,onError:Es},e[16]=g,e[17]=b,e[18]=N):N=e[18];const j=Ae(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 _;e[25]!==D?(_=t.jsxs(ge,{size:"sm",onClick:C,children:[k,D]}),e[25]=D,e[26]=_):_=e[26];const F=Vt,R=qt,L="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(Ot,{children:t.jsx(Kt,{children:E})}),e[29]=E,e[30]=B):B=e[30];const G="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 A;e[35]!==i?(A=i("mainPanelTabs.e2eTab.targetUrl"),e[35]=i,e[36]=A):A=e[36];let I;e[37]!==A?(I=t.jsx(Be,{htmlFor:"e2e-url",children:A}),e[37]=A,e[38]=I):I=e[38];let X;e[39]!==i?(X=i("mainPanelTabs.e2eTab.targetUrlPlaceholder"),e[39]=i,e[40]=X):X=e[40];let Z;e[41]===Symbol.for("react.memo_cache_sentinel")?(Z=me=>f(me.target.value),e[41]=Z):Z=e[41];let q;e[42]!==j.isPending||e[43]!==X||e[44]!==p?(q=t.jsx(It,{id:"e2e-url",type:"url",inputMode:"url",placeholder:X,value:p,onChange:Z,className:"font-mono text-xs",disabled:j.isPending}),e[42]=j.isPending,e[43]=X,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 z;e[54]!==i?(z=i("mainPanelTabs.e2eTab.selectType"),e[54]=i,e[55]=z):z=e[55];let ee;e[56]!==z?(ee=t.jsx(Be,{children:z}),e[56]=z,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(lt,{value:m,onValueChange:d,children:[t.jsx(nt,{className:"w-full",children:t.jsx(at,{placeholder:i("mainPanelTabs.e2eTab.selectTypePlaceholder")})}),t.jsx(rt,{children:P.map(_s)})]});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(nt,{className:"w-full",children:t.jsx(at,{})}),e[68]=ue):ue=e[68];let re;e[69]!==i?(re=ws.map(me=>t.jsx(jt,{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(rt,{children:re}),e[71]=re,e[72]=ie):ie=e[72];let oe;e[73]!==u||e[74]!==ie?(oe=t.jsxs(lt,{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:G,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(Bt,{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:L,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 Fe;return e[114]!==_||e[115]!==Pe?(Fe=t.jsxs(t.Fragment,{children:[_,Pe]}),e[114]=_,e[115]=Pe,e[116]=Fe):Fe=e[116],Fe}function _s(a){return t.jsx(jt,{value:a.id,textValue:a.label??a.id,children:t.jsx("span",{className:"text-sm",children:a.label??a.id})},a.id)}function Es(a){return be.error(Oe(a))}function Rs(){const a=U.c(17),e=Ee(),[s,l]=pe.useState(!1);let n;a[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>l(Ls),a[0]=n):n=a[0];let i;a[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(At,{className:"size-4 text-muted-foreground"}),a[1]=i):i=a[1];let r;a[2]!==e?(r=e("mainPanelTabs.e2eTab.helpTitle"),a[2]=e,a[3]=r):r=a[3];let o;a[4]!==r?(o=t.jsx("span",{className:"text-sm font-medium text-foreground",children:r}),a[4]=r,a[5]=o):o=a[5];let c;a[6]!==s?(c=s?t.jsx(it,{className:"ml-auto size-4 text-muted-foreground"}):t.jsx(ot,{className:"ml-auto size-4 text-muted-foreground"}),a[6]=s,a[7]=c):c=a[7];let m;a[8]!==o||a[9]!==c?(m=t.jsxs("button",{type:"button",onClick:n,className:"flex w-full items-center gap-2 px-4 py-3 text-left",children:[i,o,c]}),a[8]=o,a[9]=c,a[10]=m):m=a[10];let d;a[11]!==s||a[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")})]}),a[11]=s,a[12]=e,a[13]=d):d=a[13];let u;return a[14]!==m||a[15]!==d?(u=t.jsxs("div",{className:"rounded-xl border border-border bg-card",children:[m,d]}),a[14]=m,a[15]=d,a[16]=u):u=a[16],u}function Ls(a){return!a}function Fs(a){const e=U.c(71),{base:s,orgSlug:l,site:n,enabled:i}=a,r=Ee(),o=He(),[c,m]=pe.useState(!1);let d;e[0]!==l||e[1]!==n?(d=xe.e2eChecks(l,n),e[0]=l,e[1]=n,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:As},e[5]=i,e[6]=d,e[7]=u,e[8]=T):T=e[8];const p=ze(T),f=_e(p.data,"items");let x;e[9]!==l||e[10]!==o||e[11]!==n?(x=()=>{o.invalidateQueries({queryKey:xe.e2eChecks(l,n)}),o.invalidateQueries({queryKey:xe.e2eRuns(l,n)})},e[9]=l,e[10]=o,e[11]=n,e[12]=x):x=e[12];const v=x;let y;e[13]!==s?(y=z=>qe(`${s}/e2e/runs`,"POST",{command:z}),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:Ms},e[18]=y,e[19]=h,e[20]=P):P=e[20];const g=Ae(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:Us},e[26]=b,e[27]=N,e[28]=j):j=e[28];const w=Ae(j),S=g.isPending||w.isPending,C=St;let k;e[29]!==r?(k=r("mainPanelTabs.e2eTab.checksSection"),e[29]=r,e[30]=k):k=e[30];const D=f.length,_=f.length>0?t.jsxs(ge,{size:"sm",variant:"ghost",className:"text-destructive hover:text-destructive",onClick:()=>m(!0),disabled:S,children:[t.jsx(dt,{className:"size-4"}),r("mainPanelTabs.e2eTab.deleteAllChecks")]}):null,F=p.isLoading?t.jsx(Ct,{cols:6}):p.error?t.jsx(kt,{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(We,{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(Ge,{children:f.map((z,ee)=>t.jsxs(we,{children:[t.jsx(Y,{children:t.jsx(Ss,{phase:z.phase,t:r})}),t.jsx(Y,{className:"font-mono text-xs text-muted-foreground",children:z.command??"—"}),t.jsx(Y,{className:"font-mono text-xs text-muted-foreground",children:z.schedule?z.schedule:"—"}),t.jsx(Y,{className:"max-w-[220px] truncate font-mono text-xs text-muted-foreground",children:z.url??"—"}),t.jsx(Y,{className:"text-xs text-muted-foreground whitespace-nowrap",children:wt(z.updatedAt)}),t.jsx(Y,{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:()=>z.command&&g.mutate(z.command),disabled:S||!z.command,children:t.jsx(ct,{className:"size-4"})})})]},`${z.subject??n}-${z.command??""}-${ee}`))})]});let R;e[31]!==r?(R=r("mainPanelTabs.e2eTab.confirmDeleteCheckTitle"),e[31]=r,e[32]=R):R=e[32];let L;e[33]!==R?(L=t.jsx(mt,{children:R}),e[33]=R,e[34]=L):L=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(ut,{children:E}),e[37]=E,e[38]=B):B=e[38];let G;e[39]!==L||e[40]!==B?(G=t.jsxs(ft,{children:[L,B]}),e[39]=L,e[40]=B,e[41]=G):G=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 A;e[44]!==w.isPending||e[45]!==M?(A=t.jsx(xt,{disabled:de,children:M}),e[44]=w.isPending,e[45]=M,e[46]=A):A=e[46];let I;e[47]!==w?(I=z=>{z.preventDefault(),w.mutate()},e[47]=w,e[48]=I):I=e[48];const X=w.isPending;let Z;e[49]!==r?(Z=r("mainPanelTabs.e2eTab.delete"),e[49]=r,e[50]=Z):Z=e[50];let q;e[51]!==w.isPending||e[52]!==I||e[53]!==Z?(q=t.jsx(pt,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:I,disabled:X,children:Z}),e[51]=w.isPending,e[52]=I,e[53]=Z,e[54]=q):q=e[54];let V;e[55]!==A||e[56]!==q?(V=t.jsxs(ht,{children:[A,q]}),e[55]=A,e[56]=q,e[57]=V):V=e[57];let O;e[58]!==G||e[59]!==V?(O=t.jsxs(bt,{children:[G,V]}),e[58]=G,e[59]=V,e[60]=O):O=e[60];let Q;e[61]!==c||e[62]!==O?(Q=t.jsx(gt,{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]!==_||e[68]!==F||e[69]!==Q?(se=t.jsxs(C,{title:k,count:D,action:_,children:[F,Q]}),e[64]=C,e[65]=f,e[66]=k,e[67]=_,e[68]=F,e[69]=Q,e[70]=se):se=e[70],se}function Us(a){return be.error(Oe(a))}function Ms(a){return be.error(Oe(a))}function As(a){return _e(a.state.data,"items").some(Is)?5e3:!1}function Is(a){const e=(a.phase??"").toLowerCase();return e===""||e==="running"||e==="pending"}function Vn(a){const e=U.c(107),{virtualMcpId:s}=a,l=Ee(),{org:n}=Lt(),i=Qt(s),r=Ht(i),o=!!r,c=r?`/api/${n.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=ze({queryKey:xe.e2eChecks(n.slug,r??""),queryFn:f,enabled:o,retry:!1,staleTime:15e3}),v=_e(x.data,"items").some(Vs);let y;e[2]!==c?(y=()=>Ie(`${c}/e2e/runs`),e[2]=c,e[3]=y):y=e[3];const h=ze({queryKey:xe.e2eRuns(n.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=Ae({mutationFn:P,onSuccess:()=>{m.invalidateQueries({queryKey:xe.e2eRuns(n.slug,r??"")}),be.success(l("mainPanelTabs.e2eTab.toastRunDeleted")),p(null)},onError:qs});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($s(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=_e(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 _;e[29]!==D||e[30]!==C?(_=t.jsxs("div",{className:"flex flex-col gap-1",children:[C,D]}),e[29]=D,e[30]=C,e[31]=_):_=e[31];let F;e[32]!==c||e[33]!==n.slug||e[34]!==r?(F=t.jsx(zs,{base:c,orgSlug:n.slug,site:r}),e[32]=c,e[33]=n.slug,e[34]=r,e[35]=F):F=e[35];let R;e[36]!==_||e[37]!==F?(R=t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[_,F]}),e[36]=_,e[37]=F,e[38]=R):R=e[38];let L;e[39]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(Rs,{}),e[39]=L):L=e[39];let E;e[40]!==c||e[41]!==o||e[42]!==n.slug||e[43]!==r?(E=t.jsx(Fs,{base:c,orgSlug:n.slug,site:r,enabled:o}),e[40]=c,e[41]=o,e[42]=n.slug,e[43]=r,e[44]=E):E=e[44];const B=St;let G;e[45]!==l?(G=l("mainPanelTabs.e2eTab.runs"),e[45]=l,e[46]=G):G=e[46];const de=h.isLoading?t.jsx(Ct,{cols:5}):h.error?t.jsx(kt,{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(We,{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(Ge,{children:b.map($=>t.jsxs(we,{className:"cursor-pointer",onClick:()=>u($),children:[t.jsx(Y,{className:"font-mono text-xs",children:$.runId}),t.jsx(Y,{children:t.jsx(te,{variant:Pt($.status),children:Cs($.status,l)})}),t.jsx(Y,{className:"font-mono text-xs text-muted-foreground",children:$.summary?.command??"—"}),t.jsx(Y,{className:"text-xs text-muted-foreground whitespace-nowrap",children:wt($.startedAt)}),t.jsx(Y,{className:"text-xs text-muted-foreground whitespace-nowrap tabular-nums",children:ks($,l)}),t.jsx(Y,{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(dt,{className:"size-4"})})})]},$.runId))})]});let M;e[47]!==B||e[48]!==b||e[49]!==G||e[50]!==de?(M=t.jsx(B,{title:G,count:b.length,children:de}),e[47]=B,e[48]=b,e[49]=G,e[50]=de,e[51]=M):M=e[51];let A;e[52]!==R||e[53]!==L||e[54]!==E||e[55]!==M?(A=t.jsxs("div",{className:j,children:[R,L,E,M]}),e[52]=R,e[53]=L,e[54]=E,e[55]=M,e[56]=A):A=e[56];let I;e[57]!==u?(I=$=>{$||u(null)},e[57]=u,e[58]=I):I=e[58];let X;e[59]!==c||e[60]!==n.slug||e[61]!==d||e[62]!==r||e[63]!==I?(X=t.jsx(Ps,{base:c,orgSlug:n.slug,site:r,run:d,onOpenChange:I}),e[59]=c,e[60]=n.slug,e[61]=d,e[62]=r,e[63]=I,e[64]=X):X=e[64];const Z=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(mt,{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 z;e[74]!==se?(z=t.jsx(ut,{children:se}),e[74]=se,e[75]=z):z=e[75];let ee;e[76]!==O||e[77]!==z?(ee=t.jsxs(ft,{children:[O,z]}),e[76]=O,e[77]=z,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(xt,{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(pt,{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(ht,{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(bt,{children:[ee,ie]}),e[96]=ee,e[97]=ie,e[98]=oe):oe=e[98];let ce;e[99]!==Z||e[100]!==q||e[101]!==oe?(ce=t.jsx(gt,{open:Z,onOpenChange:q,children:oe}),e[99]=Z,e[100]=q,e[101]=oe,e[102]=ce):ce=e[102];let fe;return e[103]!==A||e[104]!==X||e[105]!==ce?(fe=t.jsxs("div",{className:N,children:[A,X,ce]}),e[103]=A,e[104]=X,e[105]=ce,e[106]=fe):fe=e[106],fe}function qs(a){return be.error(Oe(a))}function Vs(a){const e=(a.phase??"").toLowerCase();return e===""||e==="running"||e==="pending"}export{Vn as E2eTab};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as se,b as Te,r as d,j as r,h as pe,B as Re,fl as en,bo as tn,bu as ge,fm as nn,fn as rn,fo as on,fp as sn,cM as an,fq as ln,fr as dt,bq as cn,fs as dn,ft as un,fu as fn,fv as pn,fw as mn,fx as xn,fy as hn,fz as gn,fA as bn,l as le,n as yn,t as te,a4 as tt,a1 as nt,a2 as rt,K as ot}from"./index-B1NfLh28.js";import{aa as vn,bi as Cn,bj as wn}from"./agent-icon-_mOvC4lh.js";import{s as Nn}from"./XClose-auuJ_GRB.js";import{S as jn}from"./scroll-area-D1O9Z5bn.js";import{a as En}from"./chat-context-DoE_-ERG.js";import{F as Sn}from"./editor-Kqw7F1U3.js";import{u as Dn}from"./shell-layout-CYnXtCwc.js";import{s as je,a as st,f as Mn,b as Rn}from"./index-Ds3rGGA1.js";import{d as Tn,h as Pn,c as Fn,e as kn,b as An,D as Ln}from"./dialog-_eOGpV_R.js";import{I as at}from"./input-6kxANu4D.js";import{c as On,d as In,b as Kn,f as zn,g as $n,e as _n,a as Gn,A as Bn}from"./alert-dialog-FC7tFvol.js";import{t as Vn}from"./ChevronUp-BZvKWnmE.js";import{i as qn}from"./ChevronRight-Ub3Wi__5.js";import{i as Un}from"./Share07-CkZjV7Y4.js";import{i as Hn,E as Wn,e as Oe,h as Qn,j as Xn,k as Yn,l as Jn,t as re,m as Ee,n as Ie,o as Se,g as Ke,p as ze,q as Zn,s as er,v as tr,r as $e,u as De,w as _e,x as nr,y as rr,z as or,A as sr}from"./skill-preview-DDtUylxS.js";import"./AlertCircle-CbIethWO.js";import"./Tool01-C9Fh4pyK.js";import"./ArrowUp-ClH9KzFx.js";import"./ArrowLeft-y7fvMHg1.js";import"./Tool02-CZJjuIxA.js";import"./XCircle-Bd6dXhOj.js";import"./TrendUp01-D_qxLEW7.js";import"./ZoomOut-BQIO6WB6.js";import"./Users03-9eRhfMnl.js";import"./CheckCircle-BceWKyuF.js";import"./Check-CViV2AKw.js";import"./ChevronSelectorVertical-DYY47Opi.js";import"./DotsVertical-CUO5Z4B7.js";import"./UserSquare-BeyEkA5D.js";import"./Copy01-CVNVXHfJ.js";import"./CreditCard01-CMcaGH-G.js";import"./Download01-C-8_yc1P.js";import"./Settings02-Xf5MNOeS.js";import"./Eye-CRgiNYAI.js";import"./GitBranch01-Cw03iCHW.js";import"./Globe01-BzEZgPZH.js";import"./HardDrive-BShCW8xo.js";import"./Image01-BDqKYCHs.js";import"./Key01-BihM9W_4.js";import"./Link01-Bj9F9FFy.js";import"./LinkExternal01-B-j6voaz.js";import"./Monitor01-DJok5Oby.js";import"./Sun-vk_cPGMJ.js";import"./Package-DyPeIzqD.js";import"./Palette-Di_3G4BB.js";import"./Play-C-Ctr0Bg.js";import"./Plus-Dy3OwbdP.js";import"./SearchMd-GhWQt9H_.js";import"./Shield01-AHWHm-DS.js";import"./Stars01-D65oRIoj.js";import"./Trash01-B-u_-iqS.js";import"./Upload01-CVk2PCsw.js";import"./User01-CAS_KrTr.js";import"./Users01-ub3QFuz_.js";import"./Zap-b3NblJtQ.js";import"./select-KntX1BWy.js";import"./use-panel-navigate-Cbxz5kt0.js";import"./use-destination-route-CG9NdNN9.js";import"./thread-route-DghMzEvi.js";import"./constants-DNuUCxmW.js";import"./thread-intent-B9RGGbT7.js";import"./slugify-CEUa2lfQ.js";import"./hooks-C1zHirdm.js";import"./use-mcp-client-BsCYwuYG.js";import"./auth-D6hknNuL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BT-eLzU1.js";import"./task-board-Cpu4KbdQ.js";import"./schema-BMBwySNw.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-GrNV8gSX.js";import"./use-ai-providers-BDymGfsX.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DJzsWHaW.js";import"./use-organization-settings-CVRBbGpW.js";import"./avatar-BAJ_UwLY.js";import"./use-project-scope-BPel4oYu.js";import"./github-repo-BpKUwJal.js";import"./command-DYMcXrYb.js";import"./index-C-AVMdC1.js";import"./required-auth-layout-B5RfO5xE.js";import"./use-org-sso-D2ngO8eF.js";import"./automation-runs-DTbShgpv.js";import"./useInfiniteQuery-Ba_5G2Dq.js";import"./use-infinite-scroll-D5DcjHPJ.js";import"./use-connection-DjqJprQ0.js";import"./table-DHae8Nm6.js";import"./empty-state-B5IW3FY0.js";import"./use-members-uyLHU2hg.js";import"./use-org-auth-client-CRXTM1Db.js";import"./use-automations-D-er4402.js";import"./useSuspenseInfiniteQuery-Day-b8LH.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Cc5MlhjA.js";import"./markdown-nQrYOrJu.js";import"./monaco-editor-D-OtVr_n.js";import"./types-D9TUiUC5.js";import"./integration-icon-Dw9EWqM9.js";import"./use-navigate-to-agent-IY8mCF-a.js";import"./use-mcp-prompts-r_b-m13M.js";import"./form-DVlwcFzf.js";import"./label-W4OZ7SIR.js";import"./file-type-icon-CqqlGtY8.js";import"./drawer-BH5TUdft.js";import"./collection-search-jeWHAmV1.js";import"./use-mcp-tools-DFUdHDOx.js";import"./tabs-Bw-iT1Tk.js";import"./toggle-group-D2J6TMAE.js";import"./task-route-BF9yN3PC.js";import"./toolbar-icon-button-D5UWifRH.js";import"./popover-CiSRUL8W.js";import"./github-repo-picker-BvXosldt.js";import"./use-debounced-value-BSLeeOpX.js";import"./authenticate-and-persist-oauth-Ca9jI9n9.js";import"./mcp-oauth-CH8aXrUS.js";import"./extract-connection-data-B0tz2bg7.js";import"./metadata-dUsYcpuu.js";import"./connection-Bpxwt4sD.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./connection-card-D0u9_kRo.js";import"./use-registry-connections-DDAHT7mn.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-D69PAPp0.js";import"./connection-form-helpers-Blb0GPpJ.js";import"./collection-tabs-BUx5Y6ne.js";import"./badge-3ZvX9jce.js";import"./dropdown-menu-DAkDKRcv.js";import"./get-initials-D-f_fDFw.js";import"./select-model-D4UnKm_D.js";import"./checkbox-DM__T45b.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-WWKk1P4a.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BsArCG5q.js";import"./toolbar-CQKJCOWO.js";import"./use-file-configs-DXL12ksv.js";import"./site-slug-uya6Wp4-.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-ZIgtFc1M.js";import"./search-input-HJiyo5_T.js";import"./use-mcp-auth-status-BmzTeush.js";import"./switch-RffCohYW.js";import"./use-secrets-CxYf3QgY.js";import"./client-icons-CP-8jMQ6.js";import"./connect-layout-CpZLZAi6.js";import"./self-tool-result-Bw-jg1H9.js";import"./track-CPuXhWGG.js";import"./use-tags-7szl89Un.js";import"./breadcrumb-DHpQRSkO.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-S_f1Oum9.js";import"./site-error--i37Vnuw.js";import"./cards-YJY6OImM.js";const ar={"new-file":{titleKey:"sandbox.fileExplorerNameDialog.newFileTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFileDescription",submitKey:"sandbox.fileExplorerNameDialog.newFileSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFilePlaceholder"},"new-folder":{titleKey:"sandbox.fileExplorerNameDialog.newFolderTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFolderDescription",submitKey:"sandbox.fileExplorerNameDialog.newFolderSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFolderPlaceholder"},rename:{titleKey:"sandbox.fileExplorerNameDialog.renameTitle",descriptionKey:"sandbox.fileExplorerNameDialog.renameDescription",submitKey:"sandbox.fileExplorerNameDialog.renameSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.renamePlaceholder"}};function ir(a){const e=se.c(71),{open:s,mode:i,initialName:l,parentLabel:m,isPending:y,onSubmit:u,onOpenChange:b}=a,E=l===void 0?"":l,h=y===void 0?!1:y,x=Te(),[f,O]=d.useState(E),[X,I]=d.useState(s),C=ar[i];s!==X&&(I(s),s&&O(E));let g;e[0]!==h||e[1]!==b?(g=Q=>{!Q&&!h&&b(!1)},e[0]=h,e[1]=b,e[2]=g):g=e[2];const R=g;let z;e[3]!==h||e[4]!==f||e[5]!==u?(z=async Q=>{Q.preventDefault();const ne=f.trim();!ne||h||await u(ne)},e[3]=h,e[4]=f,e[5]=u,e[6]=z):z=e[6];const L=z;let T;e[7]!==C.titleKey||e[8]!==x?(T=x(C.titleKey),e[7]=C.titleKey,e[8]=x,e[9]=T):T=e[9];let P;e[10]!==T?(P=r.jsx(Tn,{children:T}),e[10]=T,e[11]=P):P=e[11];let D;e[12]!==C.descriptionKey||e[13]!==x?(D=x(C.descriptionKey),e[12]=C.descriptionKey,e[13]=x,e[14]=D):D=e[14];let S;e[15]!==D?(S=r.jsx(Pn,{children:D}),e[15]=D,e[16]=S):S=e[16];let N;e[17]!==P||e[18]!==S?(N=r.jsxs(Fn,{children:[P,S]}),e[17]=P,e[18]=S,e[19]=N):N=e[19];let M;e[20]!==m||e[21]!==x?(M=m&&r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:x("sandbox.fileExplorerNameDialog.location")}),r.jsx(at,{value:m,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[20]=m,e[21]=x,e[22]=M):M=e[22];let j;e[23]!==x?(j=x("sandbox.fileExplorerNameDialog.name"),e[23]=x,e[24]=j):j=e[24];let k;e[25]!==j?(k=r.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:j}),e[25]=j,e[26]=k):k=e[26];let U;e[27]===Symbol.for("react.memo_cache_sentinel")?(U=Q=>O(Q.target.value),e[27]=U):U=e[27];let $;e[28]!==C.placeholderKey||e[29]!==x?($=x(C.placeholderKey),e[28]=C.placeholderKey,e[29]=x,e[30]=$):$=e[30];let Y;e[31]!==h||e[32]!==f||e[33]!==$?(Y=r.jsx(at,{id:"file-explorer-name",value:f,onChange:U,placeholder:$,autoFocus:!0,disabled:h}),e[31]=h,e[32]=f,e[33]=$,e[34]=Y):Y=e[34];let J;e[35]!==k||e[36]!==Y?(J=r.jsxs("div",{className:"space-y-1.5",children:[k,Y]}),e[35]=k,e[36]=Y,e[37]=J):J=e[37];let ee;e[38]!==M||e[39]!==J?(ee=r.jsxs("div",{className:"space-y-4 py-4",children:[M,J]}),e[38]=M,e[39]=J,e[40]=ee):ee=e[40];let _;e[41]!==b?(_=()=>b(!1),e[41]=b,e[42]=_):_=e[42];let A;e[43]!==x?(A=x("sandbox.fileExplorerNameDialog.cancel"),e[43]=x,e[44]=A):A=e[44];let H;e[45]!==h||e[46]!==_||e[47]!==A?(H=r.jsx(Re,{type:"button",variant:"outline",onClick:_,disabled:h,children:A}),e[45]=h,e[46]=_,e[47]=A,e[48]=H):H=e[48];let K;e[49]!==h||e[50]!==f?(K=!f.trim()||h,e[49]=h,e[50]=f,e[51]=K):K=e[51];let W;e[52]!==C.submitKey||e[53]!==h||e[54]!==x?(W=h?r.jsxs(r.Fragment,{children:[r.jsx(pe,{className:"size-3.5"}),x("sandbox.fileExplorerNameDialog.saving")]}):x(C.submitKey),e[52]=C.submitKey,e[53]=h,e[54]=x,e[55]=W):W=e[55];let G;e[56]!==K||e[57]!==W?(G=r.jsx(Re,{type:"submit",disabled:K,children:W}),e[56]=K,e[57]=W,e[58]=G):G=e[58];let F;e[59]!==H||e[60]!==G?(F=r.jsxs(kn,{children:[H,G]}),e[59]=H,e[60]=G,e[61]=F):F=e[61];let B;e[62]!==L||e[63]!==ee||e[64]!==F||e[65]!==N?(B=r.jsx(An,{className:"sm:max-w-md",children:r.jsxs("form",{onSubmit:L,children:[N,ee,F]})}),e[62]=L,e[63]=ee,e[64]=F,e[65]=N,e[66]=B):B=e[66];let V;return e[67]!==R||e[68]!==s||e[69]!==B?(V=r.jsx(Ln,{open:s,onOpenChange:R,children:B}),e[67]=R,e[68]=s,e[69]=B,e[70]=V):V=e[70],V}function lr(a){const e=se.c(47),{deleteTarget:s,deleteDirtyPaths:i,fsActionPending:l,onOpenChange:m,onConfirm:y}=a,u=Te(),b=s?.kind==="directory",E=s!==null,h=b?"sandbox.fileExplorerDeleteDialog.titleFolder":"sandbox.fileExplorerDeleteDialog.titleFile";let x;e[0]!==u||e[1]!==h?(x=u(h),e[0]=u,e[1]=h,e[2]=x):x=e[2];let f;e[3]!==x?(f=r.jsx(On,{children:x}),e[3]=x,e[4]=f):f=e[4];let O;e[5]!==u?(O=u("sandbox.fileExplorerDeleteDialog.description"),e[5]=u,e[6]=O):O=e[6];const X=s?.name;let I;e[7]!==X?(I=r.jsx("span",{className:"font-mono",children:X}),e[7]=X,e[8]=I):I=e[8];let C;e[9]!==b||e[10]!==u?(C=b?u("sandbox.fileExplorerDeleteDialog.folderSuffix"):".",e[9]=b,e[10]=u,e[11]=C):C=e[11];let g;e[12]!==i.length||e[13]!==u?(g=i.length>0&&r.jsxs(r.Fragment,{children:[" ",i.length===1?u("sandbox.fileExplorerDeleteDialog.unsavedChangesOne"):u("sandbox.fileExplorerDeleteDialog.unsavedChangesMany",{count:i.length})]}),e[12]=i.length,e[13]=u,e[14]=g):g=e[14];let R;e[15]!==O||e[16]!==I||e[17]!==C||e[18]!==g?(R=r.jsxs(In,{children:[O," ",I,C,g]}),e[15]=O,e[16]=I,e[17]=C,e[18]=g,e[19]=R):R=e[19];let z;e[20]!==R||e[21]!==f?(z=r.jsxs(Kn,{children:[f,R]}),e[20]=R,e[21]=f,e[22]=z):z=e[22];let L;e[23]!==u?(L=u("sandbox.fileExplorerDeleteDialog.cancel"),e[23]=u,e[24]=L):L=e[24];let T;e[25]!==l||e[26]!==L?(T=r.jsx(zn,{disabled:l,children:L}),e[25]=l,e[26]=L,e[27]=T):T=e[27];const P=l||!s;let D;e[28]!==s||e[29]!==y?(D=U=>{U.preventDefault(),s&&y(s)},e[28]=s,e[29]=y,e[30]=D):D=e[30];let S;e[31]!==u?(S=u("sandbox.fileExplorerDeleteDialog.delete"),e[31]=u,e[32]=S):S=e[32];let N;e[33]!==P||e[34]!==D||e[35]!==S?(N=r.jsx($n,{disabled:P,onClick:D,children:S}),e[33]=P,e[34]=D,e[35]=S,e[36]=N):N=e[36];let M;e[37]!==T||e[38]!==N?(M=r.jsxs(_n,{children:[T,N]}),e[37]=T,e[38]=N,e[39]=M):M=e[39];let j;e[40]!==z||e[41]!==M?(j=r.jsxs(Gn,{children:[z,M]}),e[40]=z,e[41]=M,e[42]=j):j=e[42];let k;return e[43]!==m||e[44]!==E||e[45]!==j?(k=r.jsx(Bn,{open:E,onOpenChange:m,children:j}),e[43]=m,e[44]=E,e[45]=j,e[46]=k):k=e[46],k}var Ge="ContextMenu",[cr]=cn(Ge,[dt]),Z=dt(),[dr,ut]=cr(Ge),ft=a=>{const{__scopeContextMenu:e,children:s,onOpenChange:i,dir:l,modal:m=!0}=a,[y,u]=d.useState(!1),b=Z(e),E=an(i),h=d.useCallback(x=>{u(x),E(x)},[E]);return r.jsx(dr,{scope:e,open:y,onOpenChange:h,modal:m,children:r.jsx(ln,{...b,dir:l,open:y,onOpenChange:h,modal:m,children:s})})};ft.displayName=Ge;var pt="ContextMenuTrigger",mt=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,disabled:i=!1,...l}=a,m=ut(pt,s),y=Z(s),u=d.useRef({x:0,y:0}),b=d.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...u.current})}),E=d.useRef(0),h=d.useCallback(()=>window.clearTimeout(E.current),[]),x=f=>{u.current={x:f.clientX,y:f.clientY},m.onOpenChange(!0)};return d.useEffect(()=>h,[h]),d.useEffect(()=>{i&&h()},[i,h]),r.jsxs(r.Fragment,{children:[r.jsx(en,{...y,virtualRef:b}),r.jsx(tn.span,{"data-state":m.open?"open":"closed","data-disabled":i?"":void 0,...l,ref:e,style:{WebkitTouchCallout:"none",...a.style},onContextMenu:i?a.onContextMenu:ge(a.onContextMenu,f=>{h(),x(f),f.preventDefault()}),onPointerDown:i?a.onPointerDown:ge(a.onPointerDown,Me(f=>{h(),E.current=window.setTimeout(()=>x(f),700)})),onPointerMove:i?a.onPointerMove:ge(a.onPointerMove,Me(h)),onPointerCancel:i?a.onPointerCancel:ge(a.onPointerCancel,Me(h)),onPointerUp:i?a.onPointerUp:ge(a.onPointerUp,Me(h))})]})});mt.displayName=pt;var ur="ContextMenuPortal",xt=a=>{const{__scopeContextMenu:e,...s}=a,i=Z(e);return r.jsx(on,{...i,...s})};xt.displayName=ur;var ht="ContextMenuContent",gt=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=ut(ht,s),m=Z(s),y=d.useRef(!1);return r.jsx(sn,{...m,...i,ref:e,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:u=>{a.onCloseAutoFocus?.(u),!u.defaultPrevented&&y.current&&u.preventDefault(),y.current=!1},onInteractOutside:u=>{a.onInteractOutside?.(u),!u.defaultPrevented&&!l.modal&&(y.current=!0)},style:{...a.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gt.displayName=ht;var fr="ContextMenuGroup",pr=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(dn,{...l,...i,ref:e})});pr.displayName=fr;var mr="ContextMenuLabel",xr=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(un,{...l,...i,ref:e})});xr.displayName=mr;var hr="ContextMenuItem",bt=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(nn,{...l,...i,ref:e})});bt.displayName=hr;var gr="ContextMenuCheckboxItem",br=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(fn,{...l,...i,ref:e})});br.displayName=gr;var yr="ContextMenuRadioGroup",vr=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(pn,{...l,...i,ref:e})});vr.displayName=yr;var Cr="ContextMenuRadioItem",wr=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(mn,{...l,...i,ref:e})});wr.displayName=Cr;var Nr="ContextMenuItemIndicator",jr=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(xn,{...l,...i,ref:e})});jr.displayName=Nr;var Er="ContextMenuSeparator",yt=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(rn,{...l,...i,ref:e})});yt.displayName=Er;var Sr="ContextMenuArrow",Dr=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(hn,{...l,...i,ref:e})});Dr.displayName=Sr;var Mr="ContextMenuSubTrigger",Rr=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(gn,{...l,...i,ref:e})});Rr.displayName=Mr;var Tr="ContextMenuSubContent",Pr=d.forwardRef((a,e)=>{const{__scopeContextMenu:s,...i}=a,l=Z(s);return r.jsx(bn,{...l,...i,ref:e,style:{...a.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pr.displayName=Tr;function Me(a){return e=>e.pointerType!=="mouse"?a(e):void 0}var Fr=ft,kr=mt,Ar=xt,Lr=gt,Or=bt,Ir=yt;function Kr(a){const e=se.c(4);let s;e[0]!==a?({...s}=a,e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==s?(i=r.jsx(Fr,{"data-slot":"context-menu",...s}),e[2]=s,e[3]=i):i=e[3],i}function zr(a){const e=se.c(4);let s;e[0]!==a?({...s}=a,e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==s?(i=r.jsx(kr,{"data-slot":"context-menu-trigger",...s}),e[2]=s,e[3]=i):i=e[3],i}function $r(a){const e=se.c(8);let s,i;e[0]!==a?({className:s,...i}=a,e[0]=a,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=le("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",s),e[3]=s,e[4]=l):l=e[4];let m;return e[5]!==i||e[6]!==l?(m=r.jsx(Ar,{children:r.jsx(Lr,{"data-slot":"context-menu-content",translate:"no",className:l,...i})}),e[5]=i,e[6]=l,e[7]=m):m=e[7],m}function fe(a){const e=se.c(12);let s,i,l,m;e[0]!==a?({className:s,inset:i,variant:m,...l}=a,e[0]=a,e[1]=s,e[2]=i,e[3]=l,e[4]=m):(s=e[1],i=e[2],l=e[3],m=e[4]);const y=m===void 0?"default":m;let u;e[5]!==s?(u=le("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),e[5]=s,e[6]=u):u=e[6];let b;return e[7]!==i||e[8]!==l||e[9]!==u||e[10]!==y?(b=r.jsx(Or,{"data-slot":"context-menu-item","data-inset":i,"data-variant":y,className:u,...l}),e[7]=i,e[8]=l,e[9]=u,e[10]=y,e[11]=b):b=e[11],b}function it(a){const e=se.c(8);let s,i;e[0]!==a?({className:s,...i}=a,e[0]=a,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=le("bg-border -mx-1 my-1 h-px",s),e[3]=s,e[4]=l):l=e[4];let m;return e[5]!==i||e[6]!==l?(m=r.jsx(Ir,{"data-slot":"context-menu-separator",className:l,...i}),e[5]=i,e[6]=l,e[7]=m):m=e[7],m}const _r="#d9a441";function Gr(a){const e=se.c(63),{node:s,depth:i,isExpanded:l,isSelected:m,isLoading:y,fileVisual:u,onOpen:b,onSelect:E,onNewFile:h,onNewFolder:x,onCopyPath:f,onCopyRelativePath:O,onRename:X,onDelete:I}=a,C=y===void 0?!1:y,g=Te(),R=s.kind==="directory",{Icon:z,color:L}=u,T=m&&"bg-accent";let P;e[0]!==T?(P=le("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",T),e[0]=T,e[1]=P):P=e[1];const D=`${i*14+8}px`;let S;e[2]!==D?(S={paddingLeft:D},e[2]=D,e[3]=S):S=e[3];let N;e[4]!==b||e[5]!==E?(N=()=>{E(),b()},e[4]=b,e[5]=E,e[6]=N):N=e[6];let M;e[7]!==z||e[8]!==L||e[9]!==R||e[10]!==l||e[11]!==C?(M=R?r.jsxs(r.Fragment,{children:[C?r.jsx(pe,{className:"size-3.5 shrink-0 text-muted-foreground"}):l?r.jsx(Vn,{size:14,className:"shrink-0 text-muted-foreground"}):r.jsx(qn,{size:14,className:"shrink-0 text-muted-foreground"}),r.jsx(Un,{size:16,className:"shrink-0",style:{color:_r}})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"w-3.5 shrink-0"}),r.jsx(z,{size:16,className:"shrink-0",style:{color:L}})]}),e[7]=z,e[8]=L,e[9]=R,e[10]=l,e[11]=C,e[12]=M):M=e[12];let j;e[13]!==s.name?(j=r.jsx("span",{className:"truncate",children:s.name}),e[13]=s.name,e[14]=j):j=e[14];let k;e[15]!==P||e[16]!==S||e[17]!==N||e[18]!==M||e[19]!==j?(k=r.jsx(zr,{asChild:!0,children:r.jsxs("button",{type:"button",className:P,style:S,onClick:N,children:[M,j]})}),e[15]=P,e[16]=S,e[17]=N,e[18]=M,e[19]=j,e[20]=k):k=e[20];let U;e[21]!==g?(U=g("sandbox.fileTreeRow.newFile"),e[21]=g,e[22]=U):U=e[22];let $;e[23]!==h||e[24]!==U?($=r.jsx(fe,{onSelect:h,children:U}),e[23]=h,e[24]=U,e[25]=$):$=e[25];let Y;e[26]!==g?(Y=g("sandbox.fileTreeRow.newFolder"),e[26]=g,e[27]=Y):Y=e[27];let J;e[28]!==x||e[29]!==Y?(J=r.jsx(fe,{onSelect:x,children:Y}),e[28]=x,e[29]=Y,e[30]=J):J=e[30];let ee;e[31]===Symbol.for("react.memo_cache_sentinel")?(ee=r.jsx(it,{}),e[31]=ee):ee=e[31];let _;e[32]!==g?(_=g("sandbox.fileTreeRow.copyPath"),e[32]=g,e[33]=_):_=e[33];let A;e[34]!==f||e[35]!==_?(A=r.jsx(fe,{onSelect:f,children:_}),e[34]=f,e[35]=_,e[36]=A):A=e[36];let H;e[37]!==g?(H=g("sandbox.fileTreeRow.copyRelativePath"),e[37]=g,e[38]=H):H=e[38];let K;e[39]!==O||e[40]!==H?(K=r.jsx(fe,{onSelect:O,children:H}),e[39]=O,e[40]=H,e[41]=K):K=e[41];let W;e[42]===Symbol.for("react.memo_cache_sentinel")?(W=r.jsx(it,{}),e[42]=W):W=e[42];let G;e[43]!==g?(G=g("sandbox.fileTreeRow.rename"),e[43]=g,e[44]=G):G=e[44];let F;e[45]!==X||e[46]!==G?(F=r.jsx(fe,{onSelect:X,children:G}),e[45]=X,e[46]=G,e[47]=F):F=e[47];let B;e[48]!==g?(B=g("sandbox.fileTreeRow.delete"),e[48]=g,e[49]=B):B=e[49];let V;e[50]!==I||e[51]!==B?(V=r.jsx(fe,{variant:"destructive",onSelect:I,children:B}),e[50]=I,e[51]=B,e[52]=V):V=e[52];let Q;e[53]!==$||e[54]!==J||e[55]!==A||e[56]!==K||e[57]!==F||e[58]!==V?(Q=r.jsxs($r,{className:"w-52",children:[$,J,ee,A,K,W,F,V]}),e[53]=$,e[54]=J,e[55]=A,e[56]=K,e[57]=F,e[58]=V,e[59]=Q):Q=e[59];let ne;return e[60]!==Q||e[61]!==k?(ne=r.jsxs(Kr,{children:[k,Q]}),e[60]=Q,e[61]=k,e[62]=ne):ne=e[62],ne}const lt=200,Br=2,Vr=250,ct=200;function qr(a,e){return Rn(a,e)}function Ur(a){const e=se.c(9),{text:s,query:i}=a;let l,m,y;if(e[0]!==i||e[1]!==s){const{leadingEllipsis:b,segments:E}=Zn(s,i);l="truncate font-mono text-muted-foreground",m=b&&r.jsx("span",{className:"text-muted-foreground/50",children:"…"}),y=E.map(Hr),e[0]=i,e[1]=s,e[2]=l,e[3]=m,e[4]=y}else l=e[2],m=e[3],y=e[4];let u;return e[5]!==l||e[6]!==m||e[7]!==y?(u=r.jsxs("span",{className:l,children:[m,y]}),e[5]=l,e[6]=m,e[7]=y,e[8]=u):u=e[8],u}function Hr(a,e){return a.match?r.jsx("span",{className:"rounded-[2px] bg-primary/20 text-foreground",children:a.text},e):r.jsx("span",{children:a.text},e)}function Ba({orgSlug:a,virtualMcpId:e,branch:s,threadId:i,openPath:l}){const m={orgSlug:a,virtualMcpId:e,branch:s,threadId:i},[y,u]=d.useState({files:[],directories:[],truncated:!1}),{files:b,directories:E}=y,[h,x]=d.useState(new Set),[f,O]=d.useState(null),[X,I]=d.useState(null),[C,g]=d.useState([]),[R,z]=d.useState(""),[L,T]=d.useState(null),[P,D]=d.useState(null),[S,N]=d.useState(!1),[M,j]=d.useState(!1),[k,U]=d.useState(!1),[$,Y]=d.useState(!1),[,J]=d.useState(new Set),[ee,_]=d.useState(new Set),A=d.useRef(0),H=d.useRef(null),K=d.useRef(new Set),W=d.useRef(new Map),G=d.useRef(null),F=d.useRef(0),B=d.useRef(null),V=d.useRef(null),Q=d.useRef(null);function ne(t){J(n=>{const o=typeof t=="function"?t(n):t;return K.current=o,o})}const[me,de]=d.useState(new Map),Pe=d.useRef(null),[ae,be]=d.useState(null),{sendMessage:vt}=En(),{openSidePanel:Ct}=Dn(),ye=yn(),[q,oe]=d.useState(null),[Fe,ke]=d.useState(null),[ve,Ce]=d.useState(!1);async function ie(t,n){const o=await fetch(qr(m,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!o.ok){const c=await o.json().catch(()=>({}));throw new Error(c.error??`Request failed (${o.status})`)}return o.json()}async function we(){ye.invalidateQueries({queryKey:st(m)})}function Be(t,n,o){navigator.clipboard.writeText(o).then(()=>te.success(t("sandbox.fileExplorer.textCopied",{label:n})),()=>te.error(t("sandbox.fileExplorer.failedToCopyText",{label:n.toLowerCase()})))}function wt(t){const n=or(t);if(!n)return;const o=`${a}/${e}/${s}`;ye.setQueryData(ot.decofile(o),c=>{if(!c)return c;const{[n]:p,...v}=c;return v}),ye.invalidateQueries({queryKey:ot.liveMeta(a,e,s)})}function Nt(t){const n=t.kind==="file"?[t.path]:b.filter(o=>o.startsWith(".deco/blocks/")).map(o=>Ee(o)).filter(o=>o===t.path||o.startsWith(`${t.path}/`));for(const o of n)wt(o)}function jt(t){const n=Ee(t);return C.filter(o=>{if(o!==n&&!o.startsWith(`${n}/`))return!1;const c=me.get(o);return!!(c?.loaded&&c.editorValue!==c.savedContent)})}function Ve(t){g(n=>n.map(o=>t(o)).filter(o=>o!==null)),O(n=>n&&t(n)),de(n=>{const o=new Map;for(const[c,p]of n){const v=t(c);v&&o.set(v,p)}return o}),I(n=>{if(!n)return n;const o=t(n.path);return o?o===n.path?n:{...n,path:o,name:o.split("/").pop()??o}:null})}function Et(t){const n=Ee(t);I(o=>o&&(o.path===n||o.path.startsWith(`${n}/`)?null:o)),Ve(o=>o===n||o.startsWith(`${n}/`)?null:o)}async function St(t,n){if(!q)return;const o=De(q.parentDir,n);if(_e(o,b,E))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("write",{path:re(o),content:""}),await xe(),await we(),oe(null),he(o)}async function Dt(t,n){if(!q)return;const o=De(q.parentDir,n);if(_e(o,b,E))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));const c=re(o);await ie("mkdir",{path:c}),u(p=>({...p,directories:p.directories.includes(c)?p.directories:[...p.directories,c]})),await xe(),await we(),oe(null),x(p=>{const v=new Set(p);for(const ce of ze(o))v.add(ce);return v.add(o),v}),I({name:n,path:o,kind:"directory",children:[]})}async function Mt(t,n){if(!q)return;const o=q.node.path,c=Se(o),p=De(c,n);if(p===o){oe(null);return}if(_e(p,b,E))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("rename",{from:re(o),to:re(p)}),Ve(v=>v===o?p:v.startsWith(`${o}/`)?De(p,v.slice(o.length+1)):v),await xe(),await we(),oe(null)}async function Rt(t,n){Ce(!0);try{await ie("unlink",{path:re(n.path),recursive:n.kind==="directory"}),Nt(n),Et(n.path),await xe(),await we(),ke(null),te.success(t("sandbox.fileExplorer.fileDeleted",{name:n.name}))}catch(o){te.error(o instanceof Error?o.message:t("sandbox.fileExplorer.deleteFailed"))}finally{Ce(!1)}}async function Tt(t,n){const o=tr(n);if(o){te.error(o);return}Ce(!0);try{q?.mode==="new-file"?(await St(t,n),te.success(t("sandbox.fileExplorer.fileCreated",{name:n}))):q?.mode==="new-folder"?(await Dt(t,n),te.success(t("sandbox.fileExplorer.folderCreated",{name:n}))):q?.mode==="rename"&&(await Mt(t,n),te.success(t("sandbox.fileExplorer.renamedTo",{name:n})))}catch(c){te.error(c instanceof Error?c.message:t("sandbox.fileExplorer.operationFailed"))}finally{Ce(!1)}}const qe=d.useRef(!1);qe.current||(qe.current=!0,H.current=xe());const[Pt,Ft]=d.useState(null),w=Te();if(l&&l!==Pt){Ft(l);const t=l;queueMicrotask(()=>{Hn(t)&&he(t)})}async function Ae(t){const n=await ie("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Ue(t,n,o){if(o!==A.current)return!1;let c=!1;return u(p=>{const v=n?sr(p.files,p.directories,t,p.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return c=!!v.truncated,{files:v.files,directories:v.directories,truncated:c}}),c&&te.warning(w("sandbox.fileExplorer.fileListTruncated")),c}async function kt(t){const n=W.current.get(t);if(n)return n;const o=A.current,c=(async()=>{const p=await Ae({pattern:"**/*",path:re(t),limit:Oe}),v=Ue(p,!0,o);return!v&&o===A.current&&ne(ce=>{const Ne=new Set(ce);return Ne.add(t),Ne}),v})();W.current.set(t,c);try{return await c}finally{W.current.delete(t)}}async function He(t){if(!$e(t,K.current))return!1;_(n=>new Set(n).add(t));try{return await kt(t)}finally{_(n=>{const o=new Set(n);return o.delete(t),o})}}async function At(t,n){const o=new Set(K.current);for(const c of ze(n)){if(!$e(c,o))continue;if(await He(c))throw new Error(t("sandbox.fileExplorer.folderListingTruncated"));o.add(c)}}async function xe(){const t=++A.current;B.current=null,V.current=null,W.current.clear(),U(!0),ne(new Set),x(new Set),_(new Set);try{const n=await Ae({pattern:"**/*",limit:Oe,maxDepth:Wn});Ue(n,!1,t),Y(!0)}catch{$&&te.error(w("sandbox.fileExplorer.failedToRefreshFileTree"))}finally{U(!1)}}async function We(t){if(!me.get(t)?.loaded){de(o=>{const c=new Map(o);return c.set(t,{savedContent:"",editorValue:"",loaded:!1}),c});try{const o=await ie("read",{path:re(t),full:!0}),c=er(o.content??"");de(p=>{const v=new Map(p);return v.set(t,{savedContent:c,editorValue:c,loaded:!0}),v})}catch{}}}function Lt(){F.current++,T(null),D(null),N(!1),j(!1)}async function Ot(){const t=A.current,n=B.current;if(n&&n.generation===t)return n.files;const o=V.current;if(o&&o.generation===t)return o.promise;const c=(async()=>{const p=await Ae({pattern:"**/*",limit:Oe});return A.current===t&&(B.current={generation:t,files:p.files}),p.files})();V.current={generation:t,promise:c};try{return await c}finally{V.current?.generation===t&&(V.current=null)}}async function It(t,n){try{const o=await Ot();if(n!==F.current)return;T(nr(o,t,ct))}catch{if(n!==F.current)return;T([])}}async function Kt(t,n){N(!0);try{const o=await ie("grep",{pattern:t,output_mode:"content",ignore_case:!0,fixed_strings:!0,limit:lt});if(n!==F.current)return;D(rr(o.results??"")),j((o.matchCount??0)>=lt)}catch{if(n!==F.current)return;D([]),j(!1)}finally{n===F.current&&N(!1)}}function zt(t){const n=t.trim(),o=++F.current;It(n,o),n.length<Br?(D(null),N(!1),j(!1)):Kt(n,o)}function $t(t){if(z(t),G.current&&clearTimeout(G.current),!t.trim()){Lt();return}G.current=setTimeout(()=>{zt(t)},Vr)}function Qe(t){const n=Q.current;if(!n||n.path!==f)return;Q.current=null;const o=Math.max(1,n.line);t.revealLineInCenter(o),t.setPosition({lineNumber:o,column:1}),t.focus()}function _t(t){Q.current={path:t.path,line:t.line};const n=f===t.path&&me.get(t.path)?.loaded;he(t.path),n&&Pe.current&&Qe(Pe.current)}async function Gt(t,n){try{await ie("write",{path:re(t),content:n}),je("file saved via sandbox /write",{path:t}),ye.invalidateQueries({queryKey:st(m)});try{const o=await Mn(m);je("git status after save",o)}catch(o){je("git status after save failed",{path:t,error:o instanceof Error?o.message:String(o)})}de(o=>{const c=new Map(o),p=c.get(t);return p&&c.set(t,{...p,savedContent:n}),c})}catch(o){je("file save failed",{path:t,error:o instanceof Error?o.message:String(o)})}}function Bt(t){O(t),I({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),be(null),C.includes(t)||g(n=>[...n,t]),We(t)}function Vt(t){g(n=>{const o=n.filter(c=>c!==t);return f===t&&O(o[o.length-1]??null),o}),de(n=>{const o=new Map(n);return o.delete(t),o})}function Xe(t){x(n=>{const o=new Set(n);return o.has(t)?o.delete(t):o.add(t),o})}async function qt(t){if($e(t,K.current))try{if(await He(t))return}catch(n){te.error(n instanceof Error?n.message:w("sandbox.fileExplorer.failedToLoadFolder"));return}Xe(t)}async function Ut(t,n){if(n){Xe(t);return}await qt(t)}async function Ht(t){await H.current,await At(w,t);const n=ze(t);x(o=>{const c=new Set(o);for(const p of n)c.add(p);return c}),Bt(t)}function he(t){Ht(t).catch(n=>{te.error(n instanceof Error?n.message:w("sandbox.fileExplorer.failedToOpenFile"))})}function Wt(){return X?.kind==="directory"?X.path:X?.kind==="file"?Se(X.path):f?Se(f):"/"}function Ye(t){const n=Wt();oe({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const Qt=Qn(b,E),Je=Xn(Qt,h),Le=L?.length??0,Ze=Yn(P??[]),et=P?.length??0,ue=f?me.get(f):null,Xt=ue?.loaded&&ue.editorValue!==ue.savedContent,Yt=Fe?jt(Fe.path):[],Jt=(t,n)=>{Pe.current=t,Qe(t),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!f)return;const o=t.getValue();await Gt(f,o)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const o=t.getSelection(),c=t.getModel();if(!o||!c||!f)return;const p=c.getValueInRange(o);be({filePath:f,lineStart:o.startLineNumber,lineEnd:o.endLineNumber,selectedCode:p})})};function Zt(t){if(!ae)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${ae.filePath}\``,`**Lines:** ${ae.lineStart}–${ae.lineEnd}`];if(ae.selectedCode){const o=Ke(ae.filePath),c=ae.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+o,c,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),Ct(),vt({parts:[{type:"text",text:n.join(`
|
|
2
|
-
`)}]}),be(null)}return k&&!$?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(pe,{className:"size-5 text-muted-foreground"})}):r.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[r.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[r.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[r.jsxs("div",{className:"relative min-w-0 flex-1",children:[r.jsx(vn,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),r.jsx("input",{type:"text",value:R,onChange:t=>$t(t.target.value),placeholder:w("sandbox.fileExplorer.searchFilesPlaceholder"),"aria-label":w("sandbox.fileExplorer.searchFilesLabel"),className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus:ring-1 focus:ring-ring"})]}),r.jsxs(tt,{children:[r.jsx(nt,{asChild:!0,children:r.jsx(Re,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":w("sandbox.fileExplorer.newFileLabel"),onClick:()=>Ye("new-file"),children:r.jsx(Cn,{size:14})})}),r.jsx(rt,{side:"bottom",children:w("sandbox.fileExplorer.newFile")})]}),r.jsxs(tt,{children:[r.jsx(nt,{asChild:!0,children:r.jsx(Re,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":w("sandbox.fileExplorer.newFolderLabel"),onClick:()=>Ye("new-folder"),children:r.jsx(wn,{size:14})})}),r.jsx(rt,{side:"bottom",children:w("sandbox.fileExplorer.newFolder")})]})]}),r.jsx(jn,{className:"flex-1",children:r.jsxs("div",{className:"py-1",children:[!R&&Je.map(t=>{const{node:n,depth:o}=t,c=n.kind==="directory",p=h.has(n.path),v=X?.path===n.path,ce=Jn(n.path,n.kind),Ne=c&&ee.has(n.path);return r.jsx(Gr,{node:n,depth:o,isExpanded:p,isSelected:v,isLoading:Ne,fileVisual:Ie(n.name),onSelect:()=>I(n),onOpen:()=>{c?Ut(n.path,p):he(n.path)},onNewFile:()=>oe({mode:"new-file",node:n,parentDir:ce}),onNewFolder:()=>oe({mode:"new-folder",node:n,parentDir:ce}),onCopyPath:()=>Be(w,"Path",Ee(n.path)),onCopyRelativePath:()=>Be(w,"Relative path",re(n.path)),onRename:()=>oe({mode:"rename",node:n,parentDir:ce}),onDelete:()=>ke(n)},n.path)}),!R&&$&&Je.length===0&&r.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:w("sandbox.fileExplorer.noFilesFound")}),R&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[r.jsx("span",{children:w("sandbox.fileExplorer.files")}),Le>0&&r.jsxs("span",{className:"normal-case tracking-normal text-muted-foreground/70",children:[Le,Le>=ct?"+":""]})]}),L!==null&&L.length===0&&r.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:w("sandbox.fileExplorer.noFileNamesMatch")}),L?.map(t=>{const n=t.split("/").pop()??t,o=Se(t),{Icon:c,color:p}=Ie(n),v=f===t;return r.jsxs("button",{type:"button",onClick:()=>he(t),title:t,className:le("flex w-full items-center gap-1.5 px-3 py-1 text-left text-xs hover:bg-accent",v&&"bg-accent"),children:[r.jsx(c,{size:14,className:le("shrink-0",p)}),r.jsx("span",{className:"max-w-40 shrink-0 truncate",children:n}),o!=="/"&&r.jsx("span",{className:"truncate text-muted-foreground/60",children:o})]},t)})]}),R&&r.jsxs("div",{className:"mt-1 border-t pt-1",children:[r.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[r.jsx("span",{children:w("sandbox.fileExplorer.inFiles")}),et>0&&r.jsxs("span",{className:"text-muted-foreground/70 normal-case tracking-normal",children:[et,M?"+":""]}),S&&r.jsx(pe,{className:"size-[10px]"})]}),!S&&P!==null&&Ze.length===0&&r.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:w("sandbox.fileExplorer.noMatchesInFileContents")}),Ze.map(t=>{const n=t.path.split("/").pop()??t.path,{Icon:o,color:c}=Ie(n);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 text-xs text-muted-foreground",children:[r.jsx(o,{size:14,className:le("shrink-0",c)}),r.jsx("span",{className:"truncate",children:n}),r.jsx("span",{className:"text-muted-foreground/60",children:t.matches.length})]}),t.matches.map(p=>r.jsxs("button",{type:"button",onClick:()=>_t(p),title:`${t.path}:${p.line}`,className:"flex w-full items-baseline gap-2 pl-8 pr-3 py-0.5 text-left text-xs hover:bg-accent",children:[r.jsx("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:p.line}),r.jsx(Ur,{text:p.text,query:R})]},`${t.path}:${p.line}`))]},t.path)})]})]})})]}),r.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[C.length>0&&r.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:C.map(t=>{const n=me.get(t),o=n?.loaded&&n.editorValue!==n.savedContent,c=f===t,p=t.split("/").pop()??t;return r.jsxs("div",{className:le("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",c?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{O(t),We(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":c,children:[r.jsx("span",{className:"truncate max-w-32",children:p}),o&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),r.jsx("button",{type:"button",className:"ml-1 rounded p-0.5 hover:bg-accent-foreground/10",onClick:v=>{v.stopPropagation(),Vt(t)},children:r.jsx(Nn,{size:12})})]},t)})}),ae&&r.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:r.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl border border-border bg-background/95 px-3 py-1.5 shadow-lg backdrop-blur",onSubmit:t=>{t.preventDefault();const o=t.currentTarget.elements.namedItem("askAiInput");o.value.trim()&&Zt(o.value)},children:[r.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:w("sandbox.fileExplorer.askTheAiPlaceholder"),className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&be(null)}}),r.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-foreground text-background transition-opacity",title:w("sandbox.fileExplorer.send"),children:r.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[r.jsx("title",{children:w("sandbox.fileExplorer.send")}),r.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),r.jsx("div",{className:"flex-1 overflow-hidden",children:f&&ue?.loaded?r.jsx(Sn,{language:Ke(f),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:ue.editorValue,path:f,onChange:t=>{const n=f;n&&de(o=>{const c=new Map(o),p=c.get(n);return p&&c.set(n,{...p,editorValue:t??""}),c})},onMount:Jt,loading:r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(pe,{className:"size-5 text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},f):f&&!ue?.loaded?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(pe,{className:"size-5 text-muted-foreground"})}):r.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:w("sandbox.fileExplorer.selectFileToEdit")})}),f&&r.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-[11px] text-muted-foreground shrink-0",children:[r.jsx("span",{className:"truncate",children:f}),r.jsxs("span",{children:[w(Xt?"sandbox.fileExplorer.modified":"sandbox.fileExplorer.saved")," ","· ",Ke(f)]})]})]}),r.jsx(ir,{open:q!==null,mode:q?.mode??"new-file",initialName:q?.mode==="rename"?q.node.name:"",parentLabel:q&&q.mode!=="rename"?q.parentDir==="/"?"/":re(q.parentDir):void 0,isPending:ve,onSubmit:t=>Tt(w,t),onOpenChange:t=>{!t&&!ve&&oe(null)}}),r.jsx(lr,{deleteTarget:Fe,deleteDirtyPaths:Yt,fsActionPending:ve,onOpenChange:t=>{!t&&!ve&&ke(null)},onConfirm:t=>{Rt(w,t)}})]})}export{Ba as FileExplorer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as E,d as U,W as N,b as w,J as k,j as o,B as R,r as y,E as P,X as z,x as F,K as L,e as O,o as _,I as A,u as B,Y,O as H}from"./index-B1NfLh28.js";import{C as K,p as j,s as W,a as V,n as G}from"./self-tool-result-Bw-jg1H9.js";import{f as Q,d as $,D as q,g as J}from"./dialog-_eOGpV_R.js";import{c as X,C as Z,a as ee}from"./connect-layout-CpZLZAi6.js";import{u as te}from"./use-mcp-client-BsCYwuYG.js";import{W as T,S as oe}from"./constants-DNuUCxmW.js";import{i as D}from"./XCircle-Bd6dXhOj.js";import{u as re}from"./use-organization-settings-CVRBbGpW.js";import{a as ie}from"./index-tE-Tf4Hw.js";import{C as ne}from"./chat-context-DoE_-ERG.js";import{T as ae}from"./hooks-C1zHirdm.js";import{T as S}from"./toolbar-CQKJCOWO.js";import{S as se,M as me}from"./shell-controls-y2P0ze9V.js";import"./integration-icon-Dw9EWqM9.js";import"./Tool02-CZJjuIxA.js";import"./agent-icon-_mOvC4lh.js";import"./AlertCircle-CbIethWO.js";import"./Tool01-C9Fh4pyK.js";import"./ArrowUp-ClH9KzFx.js";import"./ArrowLeft-y7fvMHg1.js";import"./TrendUp01-D_qxLEW7.js";import"./ZoomOut-BQIO6WB6.js";import"./Users03-9eRhfMnl.js";import"./CheckCircle-BceWKyuF.js";import"./Check-CViV2AKw.js";import"./ChevronUp-BZvKWnmE.js";import"./ChevronRight-Ub3Wi__5.js";import"./ChevronSelectorVertical-DYY47Opi.js";import"./DotsVertical-CUO5Z4B7.js";import"./UserSquare-BeyEkA5D.js";import"./Copy01-CVNVXHfJ.js";import"./CreditCard01-CMcaGH-G.js";import"./Download01-C-8_yc1P.js";import"./Settings02-Xf5MNOeS.js";import"./Eye-CRgiNYAI.js";import"./Share07-CkZjV7Y4.js";import"./GitBranch01-Cw03iCHW.js";import"./Globe01-BzEZgPZH.js";import"./XClose-auuJ_GRB.js";import"./HardDrive-BShCW8xo.js";import"./Image01-BDqKYCHs.js";import"./Key01-BihM9W_4.js";import"./Link01-Bj9F9FFy.js";import"./LinkExternal01-B-j6voaz.js";import"./Monitor01-DJok5Oby.js";import"./Sun-vk_cPGMJ.js";import"./Package-DyPeIzqD.js";import"./Palette-Di_3G4BB.js";import"./Play-C-Ctr0Bg.js";import"./Plus-Dy3OwbdP.js";import"./SearchMd-GhWQt9H_.js";import"./Shield01-AHWHm-DS.js";import"./Stars01-D65oRIoj.js";import"./Trash01-B-u_-iqS.js";import"./Upload01-CVk2PCsw.js";import"./User01-CAS_KrTr.js";import"./Users01-ub3QFuz_.js";import"./Zap-b3NblJtQ.js";import"./extract-connection-data-B0tz2bg7.js";import"./metadata-dUsYcpuu.js";import"./connection-Bpxwt4sD.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./form-DVlwcFzf.js";import"./label-W4OZ7SIR.js";import"./input-6kxANu4D.js";import"./use-debounced-value-BSLeeOpX.js";import"./authenticate-and-persist-oauth-Ca9jI9n9.js";import"./mcp-oauth-CH8aXrUS.js";import"./auth-D6hknNuL.js";import"./track-CPuXhWGG.js";import"./use-destination-route-CG9NdNN9.js";import"./schema-BMBwySNw.js";import"./task-board-Cpu4KbdQ.js";import"./task-route-BF9yN3PC.js";import"./thread-route-DghMzEvi.js";import"./use-virtual-mcp-GrNV8gSX.js";import"./github-repo-BpKUwJal.js";import"./toolbar-icon-button-D5UWifRH.js";import"./popover-CiSRUL8W.js";import"./drawer-BH5TUdft.js";import"./github-repo-picker-BvXosldt.js";import"./collection-search-jeWHAmV1.js";import"./use-connection-DjqJprQ0.js";import"./use-mcp-tools-DFUdHDOx.js";import"./use-navigate-to-agent-IY8mCF-a.js";import"./thread-intent-B9RGGbT7.js";import"./slugify-CEUa2lfQ.js";import"./use-project-scope-BPel4oYu.js";import"./shell-layout-CYnXtCwc.js";import"./avatar-BAJ_UwLY.js";import"./use-panel-navigate-Cbxz5kt0.js";import"./command-DYMcXrYb.js";import"./index-C-AVMdC1.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-B5RfO5xE.js";import"./use-org-sso-D2ngO8eF.js";import"./connection-card-D0u9_kRo.js";import"./use-registry-connections-DDAHT7mn.js";import"./useInfiniteQuery-Ba_5G2Dq.js";import"./use-infinite-scroll-D5DcjHPJ.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./connection-slug-CITJ0kGN.js";import"./select-KntX1BWy.js";import"./textarea-D69PAPp0.js";import"./connection-form-helpers-Blb0GPpJ.js";import"./collection-tabs-BUx5Y6ne.js";import"./badge-3ZvX9jce.js";import"./useSuspenseInfiniteQuery-Day-b8LH.js";import"./use-ai-providers-BDymGfsX.js";import"./decopilot-sse-pool-BT-eLzU1.js";import"./use-decopilot-events-DJzsWHaW.js";import"./dropdown-menu-DAkDKRcv.js";import"./get-initials-D-f_fDFw.js";import"./use-deployment-admin-De_oldAV.js";import"./invite-member-dialog-CtpRiSXv.js";import"./use-org-auth-client-CRXTM1Db.js";import"./use-organization-roles-E5m8U-S7.js";import"./settings-sidebar-C_XqwVow.js";import"./create-organization-dialog-HAvzqd5d.js";import"./alert-dialog-FC7tFvol.js";import"./use-join-requests-BwgxmP4k.js";import"./scroll-area-D1O9Z5bn.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-file-configs-DXL12ksv.js";import"./site-slug-uya6Wp4-.js";import"./location-oTTXFrSF.js";function le(t){const e=E.c(21),{siteUrl:c}=t,n=U(),{org:u}=N(),a=w();let h;e[0]!==n||e[1]!==u?(h=()=>{localStorage.setItem(k.sidebarOpen(),JSON.stringify(!1));const x=X(u,T.COMMERCE_DISCOVERY(u.id));n({...x,search:{...x.search,sidepanel:!1}})},e[0]=n,e[1]=u,e[2]=h):h=e[2];const p=h;let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(Q,{className:"bg-black/15 backdrop-blur-sm"}),e[3]=C):C=e[3];let s;e[4]!==a?(s=a("routes.commerceOnboarding.connectModal.dialogTitle"),e[4]=a,e[5]=s):s=e[5];let r;e[6]!==s?(r=o.jsx($,{className:"sr-only",children:s}),e[6]=s,e[7]=r):r=e[7];let m;e[8]!==p||e[9]!==a?(m=()=>o.jsxs("div",{className:"grid gap-4 p-6",children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:a("routes.commerceOnboarding.connectModal.loadError")}),o.jsxs(R,{type:"button",size:"xl",className:"w-full",onClick:p,children:[a("routes.commerceOnboarding.connectModal.continueButton"),o.jsx(D,{size:18})]})]}),e[8]=p,e[9]=a,e[10]=m):m=e[10];let d;e[11]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(K,{}),e[11]=d):d=e[11];let i;e[12]!==p||e[13]!==c?(i=o.jsx(y.Suspense,{fallback:d,children:o.jsx(ue,{siteUrlFromUrl:c,onComplete:p})}),e[12]=p,e[13]=c,e[14]=i):i=e[14];let l;e[15]!==m||e[16]!==i?(l=o.jsx(P,{fallback:m,children:i}),e[15]=m,e[16]=i,e[17]=l):l=e[17];let b;return e[18]!==r||e[19]!==l?(b=o.jsx(q,{open:!0,children:o.jsxs(J,{children:[C,o.jsxs(z,{"data-slot":"commerce-connect-modal",onEscapeKeyDown:de,onPointerDownOutside:pe,onInteractOutside:ce,className:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex h-[calc(100dvh-1rem)] w-full max-w-[calc(100%-1rem)] translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-2xl border p-0 shadow-md duration-200 sm:max-w-lg md:h-auto md:max-h-[calc(100dvh-2rem)] lg:max-h-[calc(100dvh-4rem)] lg:max-w-5xl",children:[r,l]})]})}),e[18]=r,e[19]=l,e[20]=b):b=e[20],b}function ce(t){return t.preventDefault()}function pe(t){return t.preventDefault()}function de(t){return t.preventDefault()}function ue({siteUrlFromUrl:t,onComplete:e}){const c=w(),{org:n}=N(),u=T.COMMERCE_DISCOVERY(n.id),a=te({connectionId:oe,orgId:n.id,orgSlug:n.slug}),p=F({queryKey:L.commerceDiscoveryConnection(n.id,u),queryFn:async()=>{const f=await a.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:u}});return j(f)},retry:!1}).data.item,C=typeof p?.metadata?.siteUrl=="string"?p.metadata.siteUrl:void 0,s=t||C,r=W(s),[m,d]=y.useState(!0),[i,l]=y.useState(null),b=O({mutationFn:async f=>j(await a.callTool({name:"COMMERCE_DISCOVERY_SETUP",arguments:{siteUrl:f}})),retry:!1}),x=O({mutationFn:async f=>j(await a.callTool({name:"COMMERCE_DISCOVERY_RUN",arguments:{siteUrl:f}})),retry:!1}),v=async()=>{l(null),_("commerce_onboarding_open_report_clicked",{domain:r??void 0,organization_id:n.id});const f=s?G(s):null;if(f?.ok)try{let g=await x.mutateAsync(f.value);if(g.triggered||(_("commerce_onboarding_run_reclaim",{domain:r??void 0,organization_id:n.id,reason:g.reason??"not_upgraded"}),await b.mutateAsync(f.value),g=await x.mutateAsync(f.value)),!g.triggered){_("commerce_onboarding_run_failed",{domain:r??void 0,organization_id:n.id,error:g.reason??"not_triggered"}),l(c("routes.commerceOnboarding.connectModal.couldNotGenerateReport"));return}}catch(g){_("commerce_onboarding_run_failed",{domain:r??void 0,organization_id:n.id,error:g instanceof Error?g.message:String(g)}),l(c("routes.commerceOnboarding.connectModal.somethingWentWrong"));return}e()},I=re("demo_mode"),M=m||I;return o.jsx(Z,{siteHost:r,footer:o.jsxs(o.Fragment,{children:[i?o.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:i}):null,o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"min-w-0 flex-1",children:o.jsx(ee,{ready:M,pending:x.isPending,label:x.isPending?c("routes.commerceOnboarding.connectModal.openingReport"):c("routes.commerceOnboarding.connectModal.viewDiagnostic"),onClick:()=>{v()},children:o.jsx(D,{size:18})})}),M?null:o.jsx(R,{type:"button",variant:"secondary",size:"lg",className:"h-auto min-h-12 shrink-0 rounded-lg py-3 text-base font-medium leading-tight",disabled:x.isPending,onClick:()=>{v()},children:c("routes.commerceOnboarding.connectModal.skip")})]})]}),children:o.jsx(V,{org:n,cdConnectionId:u,siteUrl:s,onReadinessChange:d})})}function zo(){const t=E.c(14),e=A();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},t[0]=c):c=t[0];const{connect:n,siteUrl:u}=B(c),a=n==="1",h=e;let p;t[1]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(S.Header,{className:"grid-cols-1 px-1",children:o.jsxs("div",{className:"flex w-full min-w-0 items-center gap-1",children:[o.jsx(se,{}),o.jsx(S.TogglesSlot,{}),o.jsx(S.TabsSlot,{className:"shrink-0"}),o.jsx(S.CenterSlot,{}),o.jsx(S.RightSlot,{})]})}),t[1]=p):p=t[1];const s=h&&p;let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:o.jsx(Y,{children:o.jsx(H,{})})}),t[2]=r):r=t[2];let m;t[3]!==s?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[s,r]}),t[3]=s,t[4]=m):m=t[4];let d;t[5]!==e?(d=e&&o.jsx(me,{renderSidebar:fe}),t[5]=e,t[6]=d):d=t[6];let i;t[7]!==u||t[8]!==a?(i=a&&o.jsx(le,{siteUrl:u}),t[7]=u,t[8]=a,t[9]=i):i=t[9];let l;return t[10]!==m||t[11]!==d||t[12]!==i?(l=o.jsx(ae,{children:o.jsx(S.Provider,{children:o.jsxs(ne,{children:[m,d,i]})})}),t[10]=m,t[11]=d,t[12]=i,t[13]=l):l=t[13],l}function fe(t){const{onClose:e}=t;return o.jsx("div",{className:"flex h-full",children:o.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:o.jsx(ie,{onClose:e})})})}export{zo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as k,d as _e,W as R,o as F,Z as Je,b as $,a as le,v as ht,I as bt,r as D,j as o,t as Xe,l as O,_ as ae,$ as gt,a0 as jt,a1 as vt,a2 as yt,a3 as Nt,a4 as St,a5 as M,a6 as z,a7 as Ze,n as kt,e as _t,K as Ct,B as At,a8 as Oe,a9 as Ke,aa as It,m as Pt,ab as $t,L as wt,E as Tt}from"./index-B1NfLh28.js";import{u as Mt,t as et,S as Ot,A as zt,m as Dt,a as Rt,i as Ft,b as Et,c as Bt,d as tt,e as Lt}from"./task-route-BF9yN3PC.js";import{u as Ce,r as ze,D as w,a as Kt}from"./use-destination-route-CG9NdNN9.js";import{u as Ae,L as re,a as Ie,b as st,p as qt}from"./use-project-scope-BPel4oYu.js";import{u as Qt,i as Ut,a as qe,D as Ht}from"./thread-route-DghMzEvi.js";import{P as ot,a as Re,b as nt}from"./popover-CiSRUL8W.js";import{D as Vt,a as Gt,b as Wt}from"./drawer-BH5TUdft.js";import{A as ke}from"./avatar-BAJ_UwLY.js";import{a as Yt}from"./Copy01-CVNVXHfJ.js";import{n as Jt}from"./Download01-C-8_yc1P.js";import{t as Xt,i as Zt,a as es,b as ts,c as ss,n as Fe,d as it,e as os,f as ns,g as is,h as as,j as rs,A as ls}from"./agent-icon-_mOvC4lh.js";import{i as cs}from"./Globe01-BzEZgPZH.js";import{n as ds}from"./LinkExternal01-B-j6voaz.js";import{h as Qe}from"./TrendUp01-D_qxLEW7.js";import{i as at}from"./Monitor01-DJok5Oby.js";import{n as ms,a as fs}from"./Sun-vk_cPGMJ.js";import{a as rt}from"./Settings02-Xf5MNOeS.js";import{i as us}from"./Shield01-AHWHm-DS.js";import{b as ps}from"./Users03-9eRhfMnl.js";import{u as xs}from"./use-deployment-admin-De_oldAV.js";import{u as hs}from"./use-is-desktop-app-BNujXJc_.js";import{I as lt}from"./invite-member-dialog-CtpRiSXv.js";import{a as bs}from"./use-organization-settings-CVRBbGpW.js";import{u as Ee,S as Pe,a as gs,b as ct,c as js,d as vs,e as ys,f as Ns,g as Ss}from"./settings-sidebar-C_XqwVow.js";import{S as ks}from"./scroll-area-D1O9Z5bn.js";import{u as _s}from"./useInfiniteQuery-Ba_5G2Dq.js";import{n as Cs}from"./decopilot-sse-pool-BT-eLzU1.js";import{i as As}from"./ChevronRight-Ub3Wi__5.js";import{g as Is}from"./get-initials-D-f_fDFw.js";import{a as Ps}from"./format-time-BnbuEtat.js";import{i as $s}from"./Share07-CkZjV7Y4.js";import{u as Be}from"./use-navigate-to-agent-IY8mCF-a.js";import{c as ws}from"./XClose-auuJ_GRB.js";import{a as Ts}from"./Image01-BDqKYCHs.js";import{u as Ms}from"./use-panel-navigate-Cbxz5kt0.js";import{u as Os}from"./use-file-configs-DXL12ksv.js";import{r as zs}from"./site-slug-uya6Wp4-.js";import{i as Ds}from"./shell-layout-CYnXtCwc.js";function Rs(){const t=k.c(6),e=_e(),{org:s}=R(),{setScope:i}=Ae(),n=Qt(),r=Ce();let a;return t[0]!==r||t[1]!==e||t[2]!==s||t[3]!==n||t[4]!==i?(a=()=>{const l=n!==void 0?"route_resolves_scope":ze(r,null)?null:"route_needs_scope",c=l!==null;if(F("scope_cleared",{relocated:c,reason:l}),!c){i(null);return}e({to:w.home,params:{org:s.slug},search:{virtualmcpid:void 0}})},t[0]=r,t[1]=e,t[2]=s,t[3]=n,t[4]=i,t[5]=a):a=t[5],a}function Fs(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},t[0]=e):e=t[0],!!Je(e)}function ie(t){const e=k.c(26),{item:s,onClose:i}=t;let n;e[0]!==s.className?(n=O("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",s.className),e[0]=s.className,e[1]=n):n=e[1];const r=n;if(s.href){const f=s.external?"_blank":void 0,m=s.external?"noopener noreferrer":void 0;let u;e[2]!==s.icon?(u=o.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[2]=s.icon,e[3]=u):u=e[3];let x;e[4]!==s.label?(x=o.jsx("span",{className:"flex-1",children:s.label}),e[4]=s.label,e[5]=x):x=e[5];let h;return e[6]!==r||e[7]!==s.href||e[8]!==i||e[9]!==f||e[10]!==m||e[11]!==u||e[12]!==x?(h=o.jsxs("a",{href:s.href,target:f,rel:m,className:r,onClick:i,children:[u,x]}),e[6]=r,e[7]=s.href,e[8]=i,e[9]=f,e[10]=m,e[11]=u,e[12]=x,e[13]=h):h=e[13],h}let a;e[14]!==s||e[15]!==i?(a=()=>{s.onClick?.(),i()},e[14]=s,e[15]=i,e[16]=a):a=e[16];let l;e[17]!==s.icon?(l=o.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.icon}),e[17]=s.icon,e[18]=l):l=e[18];let c;e[19]!==s.label?(c=o.jsx("span",{className:"flex-1",children:s.label}),e[19]=s.label,e[20]=c):c=e[20];let d;return e[21]!==r||e[22]!==a||e[23]!==l||e[24]!==c?(d=o.jsxs("button",{type:"button",onClick:a,className:r,children:[l,c]}),e[21]=r,e[22]=a,e[23]=l,e[24]=c,e[25]=d):d=e[25],d}function Es(){const t=k.c(4),e=$();let s;t[0]!==e?(s=e("common.accountPopover.impersonating"),t[0]=e,t[1]=s):s=t[1];let i;return t[2]!==s?(i=o.jsx("span",{className:"shrink-0 inline-flex items-center rounded-full bg-warning/10 px-2 py-0.5 text-[10px] font-medium text-warning",children:s}),t[2]=s,t[3]=i):i=t[3],i}function Ue(t){const e=k.c(38),{user:s,userImage:i,isImpersonating:n,isMobile:r}=t,a=$(),l=r?"py-4 border-b border-border":"py-3 mx-1 mt-1";let c;e[0]!==l?(c=O("flex items-center gap-3 px-4",l),e[0]=l,e[1]=c):c=e[1];const d=s?.name??"U";let f;e[2]!==d||e[3]!==i?(f=o.jsx(ke,{url:i,fallback:d,shape:"circle",size:"sm",className:"shrink-0"}),e[2]=d,e[3]=i,e[4]=f):f=e[4];let m;e[5]!==a||e[6]!==s?.name?(m=s?.name??a("common.accountPopover.defaultUserName"),e[5]=a,e[6]=s?.name,e[7]=m):m=e[7];let u;e[8]!==m?(u=o.jsx("p",{className:"text-sm font-medium truncate",children:m}),e[8]=m,e[9]=u):u=e[9];let x;e[10]!==n?(x=n&&o.jsx(Es,{}),e[10]=n,e[11]=x):x=e[11];let h;e[12]!==u||e[13]!==x?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[u,x]}),e[12]=u,e[13]=x,e[14]=h):h=e[14];const g=s?.email;let p;e[15]!==g?(p=o.jsx("p",{className:"text-xs text-muted-foreground truncate",children:g}),e[15]=g,e[16]=p):p=e[16];let b;e[17]!==p||e[18]!==h?(b=o.jsxs("div",{className:"flex-1 min-w-0",children:[h,p]}),e[17]=p,e[18]=h,e[19]=b):b=e[19];let j;e[20]!==a||e[21]!==s?(j=()=>{s?.id&&navigator.clipboard.writeText(s.id).then(()=>{Xe.success(a("common.accountPopover.userIdCopied"))})},e[20]=a,e[21]=s,e[22]=j):j=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=o.jsx(Yt,{size:14}),e[23]=y):y=e[23];let v;e[24]!==j?(v=o.jsx(vt,{asChild:!0,children:o.jsx("button",{type:"button",tabIndex:-1,onClick:j,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:y})}),e[24]=j,e[25]=v):v=e[25];let N;e[26]!==a?(N=a("common.accountPopover.copyUserId"),e[26]=a,e[27]=N):N=e[27];let S;e[28]!==N?(S=o.jsx(yt,{side:"right",children:o.jsx("p",{className:"text-xs",children:N})}),e[28]=N,e[29]=S):S=e[29];let _;e[30]!==v||e[31]!==S?(_=o.jsx(Nt,{delayDuration:300,children:o.jsxs(St,{children:[v,S]})}),e[30]=v,e[31]=S,e[32]=_):_=e[32];let C;return e[33]!==b||e[34]!==_||e[35]!==c||e[36]!==f?(C=o.jsxs("div",{className:c,children:[f,b,_]}),e[33]=b,e[34]=_,e[35]=c,e[36]=f,e[37]=C):C=e[37],C}function He(t){const e=k.c(35),{themeOptions:s,preferences:i,setPreferences:n,isMobile:r}=t,a=$(),l=r?"size-8":"size-7",c=r?"px-3 py-3":"px-2 py-1.5";let d;e[0]!==c?(d=O("flex items-center justify-between border-t border-border/50",c),e[0]=c,e[1]=d):d=e[1];let f;if(e[2]!==l||e[3]!==i.theme||e[4]!==n||e[5]!==s){let N;e[7]!==l||e[8]!==i.theme||e[9]!==n?(N=S=>{const{value:_,icon:C,label:A}=S;return o.jsx("button",{type:"button","aria-label":A,onClick:()=>n(I=>({...I,theme:_})),className:O(l,"rounded-md flex items-center justify-center transition-colors",i.theme===_?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:C},_)},e[7]=l,e[8]=i.theme,e[9]=n,e[10]=N):N=e[10],f=s.map(N),e[2]=l,e[3]=i.theme,e[4]=n,e[5]=s,e[6]=f}else f=e[6];let m;e[11]!==f?(m=o.jsx("div",{className:"flex items-center gap-0.5",children:f}),e[11]=f,e[12]=m):m=e[12];let u;e[13]!==i.enableSounds||e[14]!==a?(u=i.enableSounds?a("common.accountPopover.disableSounds"):a("common.accountPopover.enableSounds"),e[13]=i.enableSounds,e[14]=a,e[15]=u):u=e[15];let x;e[16]!==n?(x=()=>n(Bs),e[16]=n,e[17]=x):x=e[17];const h=i.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let g;e[18]!==l||e[19]!==h?(g=O(l,"rounded-md flex items-center justify-center transition-colors",h),e[18]=l,e[19]=h,e[20]=g):g=e[20];let p;e[21]!==i.enableSounds?(p=i.enableSounds?o.jsx(es,{size:14}):o.jsx(ts,{size:14}),e[21]=i.enableSounds,e[22]=p):p=e[22];let b;e[23]!==u||e[24]!==x||e[25]!==g||e[26]!==p?(b=o.jsx("button",{type:"button","aria-label":u,onClick:x,className:g,children:p}),e[23]=u,e[24]=x,e[25]=g,e[26]=p,e[27]=b):b=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.323.0"]}),e[28]=j):j=e[28];let y;e[29]!==b?(y=o.jsxs("div",{className:"flex items-center gap-2",children:[b,j]}),e[29]=b,e[30]=y):y=e[30];let v;return e[31]!==y||e[32]!==d||e[33]!==m?(v=o.jsxs("div",{className:d,children:[m,y]}),e[31]=y,e[32]=d,e[33]=m,e[34]=v):v=e[34],v}function Bs(t){return{...t,enableSounds:!t.enableSounds}}function Ve(t){const e=k.c(54),{user:s,userImage:i,menuItems:n,signOutItem:r,stopImpersonatingItem:a,isImpersonating:l,themeOptions:c,preferences:d,setPreferences:f,close:m,isMobile:u}=t;if(u){let v;e[0]!==l||e[1]!==s||e[2]!==i?(v=o.jsx(Ue,{user:s,userImage:i,isImpersonating:l,isMobile:!0}),e[0]=l,e[1]=s,e[2]=i,e[3]=v):v=e[3];let N;if(e[4]!==m||e[5]!==n){let P;e[7]!==m?(P=T=>o.jsx(ie,{item:T,onClose:m},T.key),e[7]=m,e[8]=P):P=e[8],N=n.map(P),e[4]=m,e[5]=n,e[6]=N}else N=e[6];let S;e[9]!==m||e[10]!==a?(S=a&&o.jsx(ie,{item:a,onClose:m}),e[9]=m,e[10]=a,e[11]=S):S=e[11];let _;e[12]!==m||e[13]!==r?(_=o.jsx(ie,{item:r,onClose:m}),e[12]=m,e[13]=r,e[14]=_):_=e[14];let C;e[15]!==N||e[16]!==S||e[17]!==_?(C=o.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:o.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[N,S,_]})}),e[15]=N,e[16]=S,e[17]=_,e[18]=C):C=e[18];let A;e[19]!==d||e[20]!==f||e[21]!==c?(A=o.jsx(He,{themeOptions:c,preferences:d,setPreferences:f,isMobile:!0}),e[19]=d,e[20]=f,e[21]=c,e[22]=A):A=e[22];let I;return e[23]!==v||e[24]!==C||e[25]!==A?(I=o.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,C,A]}),e[23]=v,e[24]=C,e[25]=A,e[26]=I):I=e[26],I}let x;e[27]!==l||e[28]!==s||e[29]!==i?(x=o.jsx(Ue,{user:s,userImage:i,isImpersonating:l,isMobile:!1}),e[27]=l,e[28]=s,e[29]=i,e[30]=x):x=e[30];let h;if(e[31]!==m||e[32]!==n){let v;e[34]!==m?(v=N=>o.jsx(ie,{item:N,onClose:m},N.key),e[34]=m,e[35]=v):v=e[35],h=n.map(v),e[31]=m,e[32]=n,e[33]=h}else h=e[33];let g;e[36]!==m||e[37]!==a?(g=a&&o.jsx(ie,{item:a,onClose:m}),e[36]=m,e[37]=a,e[38]=g):g=e[38];let p;e[39]!==m||e[40]!==r?(p=o.jsx(ie,{item:r,onClose:m}),e[39]=m,e[40]=r,e[41]=p):p=e[41];let b;e[42]!==h||e[43]!==g||e[44]!==p?(b=o.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[h,g,p]}),e[42]=h,e[43]=g,e[44]=p,e[45]=b):b=e[45];let j;e[46]!==d||e[47]!==f||e[48]!==c?(j=o.jsx(He,{themeOptions:c,preferences:d,setPreferences:f,isMobile:!1}),e[46]=d,e[47]=f,e[48]=c,e[49]=j):j=e[49];let y;return e[50]!==x||e[51]!==b||e[52]!==j?(y=o.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:o.jsxs("div",{className:"flex flex-col",children:[x,b,j]})}),e[50]=x,e[51]=b,e[52]=j,e[53]=y):y=e[53],y}function De(){const t=k.c(107),e=$(),{data:s}=le.useSession(),{org:i}=R(),n=_e();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org",shouldThrow:!1},t[0]=r):r=t[0];const l=Je(r)?.params.org,[c,d]=ht(),f=bt(),{isAdmin:m}=xs(),u=hs(),[x,h]=D.useState(!1),[g,p]=D.useState(!1),b=s?.user,j=b?.image,y=!!s?.session?.impersonatedBy;let v;t[1]===Symbol.for("react.memo_cache_sentinel")?(v=()=>h(!1),t[1]=v):v=t[1];const N=v;let S;t[2]!==e?(S=e("common.accountPopover.preferences"),t[2]=e,t[3]=S):S=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(rt,{size:16}),t[4]=_):_=t[4];let C;t[5]!==n||t[6]!==l?(C=()=>{n({to:"/$org/settings/profile",params:{org:l??""}})},t[5]=n,t[6]=l,t[7]=C):C=t[7];let A;t[8]!==S||t[9]!==C?(A={key:"preferences",label:S,icon:_,onClick:C},t[8]=S,t[9]=C,t[10]=A):A=t[10];let I;t[11]!==i||t[12]!==n?(I=i?[{key:"connect-clients",label:"Connect to Agents",icon:o.jsx(ds,{size:16}),onClick:()=>{n({to:"/$org/settings/connect",params:{org:i.slug}})}}]:[],t[11]=i,t[12]=n,t[13]=I):I=t[13];let P;t[14]!==u||t[15]!==e?(P=(Ut()||qe())&&!u?[{key:"install-desktop-app",label:qe()?e("downloadApp.installOnLinux"):e("downloadApp.installOnMac"),icon:o.jsx(Jt,{size:16}),onClick:()=>p(!0)}]:[],t[14]=u,t[15]=e,t[16]=P):P=t[16];let T;t[17]!==e?(T=e("common.accountPopover.termsOfUse"),t[17]=e,t[18]=T):T=t[18];let E;t[19]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(Zt,{size:16}),t[19]=E):E=t[19];let B;t[20]!==T?(B={key:"terms",label:T,icon:E,href:"https://www.decocms.com/terms-of-use",external:!0},t[20]=T,t[21]=B):B=t[21];let L;t[22]!==e?(L=e("common.accountPopover.privacyPolicy"),t[22]=e,t[23]=L):L=t[23];let ce;t[24]===Symbol.for("react.memo_cache_sentinel")?(ce=o.jsx(us,{size:16}),t[24]=ce):ce=t[24];let K;t[25]!==L?(K={key:"privacy",label:L,icon:ce,href:"https://www.decocms.com/privacy-policy",external:!0},t[25]=L,t[26]=K):K=t[26];let q;t[27]!==e?(q=e("common.accountPopover.githubRepo"),t[27]=e,t[28]=q):q=t[28];let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=o.jsx(gt,{className:"w-4 h-4"}),t[29]=de):de=t[29];let Q;t[30]!==q?(Q={key:"github",label:q,icon:de,href:"https://github.com/decocms/studio",external:!0},t[30]=q,t[31]=Q):Q=t[31];let U;t[32]!==e?(U=e("common.accountPopover.community"),t[32]=e,t[33]=U):U=t[33];let me;t[34]===Symbol.for("react.memo_cache_sentinel")?(me=o.jsx(ps,{size:16}),t[34]=me):me=t[34];let H;t[35]!==U?(H={key:"community",label:U,icon:me,href:"https://decocms.com/discord",external:!0},t[35]=U,t[36]=H):H=t[36];let V;t[37]!==e?(V=e("common.accountPopover.homepage"),t[37]=e,t[38]=V):V=t[38];let fe;t[39]===Symbol.for("react.memo_cache_sentinel")?(fe=o.jsx(cs,{size:16}),t[39]=fe):fe=t[39];let G;t[40]!==V?(G={key:"homepage",label:V,icon:fe,href:"https://decocms.com",external:!0},t[40]=V,t[41]=G):G=t[41];let W;t[42]!==m||t[43]!==n||t[44]!==e?(W=m?[{key:"admin-dashboard",label:e("common.accountPopover.adminDashboard"),icon:o.jsx(Xt,{size:16}),onClick:()=>n({to:"/_admin"}),className:"text-warning"}]:[],t[42]=m,t[43]=n,t[44]=e,t[45]=W):W=t[45];let ue;t[46]!==B||t[47]!==K||t[48]!==Q||t[49]!==H||t[50]!==G||t[51]!==W||t[52]!==A||t[53]!==I||t[54]!==P?(ue=[A,...I,...P,B,K,Q,H,G,...W],t[46]=B,t[47]=K,t[48]=Q,t[49]=H,t[50]=G,t[51]=W,t[52]=A,t[53]=I,t[54]=P,t[55]=ue):ue=t[55];const $e=ue;let Y;t[56]!==e?(Y=e("common.accountPopover.signOut"),t[56]=e,t[57]=Y):Y=t[57];let pe;t[58]===Symbol.for("react.memo_cache_sentinel")?(pe=o.jsx(Qe,{size:16}),t[58]=pe):pe=t[58];let xe;t[59]!==Y?(xe={key:"logout",label:Y,icon:pe,onClick:Ks},t[59]=Y,t[60]=xe):xe=t[60];const we=xe;let he;t[61]!==y||t[62]!==e?(he=y?{key:"stop-impersonating",label:e("common.accountPopover.stopImpersonation"),icon:o.jsx(Qe,{size:16}),onClick:async()=>{const{error:Le}=await le.admin.stopImpersonating();if(Le){Xe.error(Le.message||e("common.accountPopover.failedToStopImpersonation"));return}window.location.href="/"},className:"text-warning"}:null,t[61]=y,t[62]=e,t[63]=he):he=t[63];const Te=he;let be;t[64]===Symbol.for("react.memo_cache_sentinel")?(be=o.jsx(ms,{size:14}),t[64]=be):be=t[64];let J;t[65]!==e?(J=e("common.accountPopover.lightTheme"),t[65]=e,t[66]=J):J=t[66];let X;t[67]!==J?(X={value:"light",icon:be,label:J},t[67]=J,t[68]=X):X=t[68];let ge;t[69]===Symbol.for("react.memo_cache_sentinel")?(ge=o.jsx(fs,{size:14}),t[69]=ge):ge=t[69];let Z;t[70]!==e?(Z=e("common.accountPopover.darkTheme"),t[70]=e,t[71]=Z):Z=t[71];let ee;t[72]!==Z?(ee={value:"dark",icon:ge,label:Z},t[72]=Z,t[73]=ee):ee=t[73];let je;t[74]===Symbol.for("react.memo_cache_sentinel")?(je=o.jsx(at,{size:14}),t[74]=je):je=t[74];let te;t[75]!==e?(te=e("common.accountPopover.systemTheme"),t[75]=e,t[76]=te):te=t[76];let se;t[77]!==te?(se={value:"system",icon:je,label:te},t[77]=te,t[78]=se):se=t[78];let ve;t[79]!==X||t[80]!==ee||t[81]!==se?(ve=[X,ee,se],t[79]=X,t[80]=ee,t[81]=se,t[82]=ve):ve=t[82];const Me=ve;let ye;t[83]!==y||t[84]!==f||t[85]!==$e||t[86]!==c||t[87]!==d||t[88]!==we||t[89]!==Te||t[90]!==Me||t[91]!==b||t[92]!==j?(ye={user:b,userImage:j,menuItems:$e,signOutItem:we,stopImpersonatingItem:Te,isImpersonating:y,themeOptions:Me,preferences:c,setPreferences:d,close:N,isMobile:f},t[83]=y,t[84]=f,t[85]=$e,t[86]=c,t[87]=d,t[88]=we,t[89]=Te,t[90]=Me,t[91]=b,t[92]=j,t[93]=ye):ye=t[93];const Ne=ye;let oe;t[94]!==y||t[95]!==f||t[96]!==x||t[97]!==Ne||t[98]!==e||t[99]!==b?.name||t[100]!==j?(oe=f?o.jsxs(Vt,{open:x,onOpenChange:h,direction:"bottom",children:[o.jsxs("button",{type:"button",onClick:()=>h(!0),className:O("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",y&&"border-2 border-dashed border-warning"),children:[o.jsx(ke,{url:j,fallback:b?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),o.jsx("span",{className:"truncate",children:b?.name??e("common.accountPopover.defaultAccountLabel")})]}),o.jsxs(Gt,{className:"h-[80dvh] p-0",children:[o.jsx(Wt,{className:"sr-only",children:e("common.accountPopover.account")}),o.jsx(Ve,{...Ne})]})]}):o.jsxs(ot,{open:x,onOpenChange:h,children:[o.jsx(Re,{asChild:!0,children:o.jsxs(ae,{"data-tour":re.account,tooltip:b?.name??e("common.accountPopover.defaultAccountLabel"),className:O("rounded-md",y&&"border-2 border-dashed border-warning"),children:[o.jsx(ke,{url:j,fallback:b?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),o.jsx("span",{className:"truncate",children:b?.name??e("common.accountPopover.defaultAccountLabel")})]})}),o.jsx(nt,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:Ls,children:o.jsx(Ve,{...Ne})})]}),t[94]=y,t[95]=f,t[96]=x,t[97]=Ne,t[98]=e,t[99]=b?.name,t[100]=j,t[101]=oe):oe=t[101];let ne;t[102]!==g?(ne=o.jsx(Ht,{open:g,onOpenChange:p}),t[102]=g,t[103]=ne):ne=t[103];let Se;return t[104]!==oe||t[105]!==ne?(Se=o.jsxs(o.Fragment,{children:[oe,ne]}),t[104]=oe,t[105]=ne,t[106]=Se):Se=t[106],Se}function Ls(t){return t.preventDefault()}function Ks(){F("signed_out",{source:"account_popover"}),jt(),le.signOut()}class qs extends D.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,s){}render(){return this.state.hasError?null:this.props.children}}function Qs(t){return t<=1?"text-destructive":t<=5?"text-warning":"text-foreground/70"}function Us(){const t=k.c(17),e=_e(),{org:s}=R(),{hasDecoKey:i,balanceDollars:n}=Mt();if(!i)return null;let r;t[0]!==n?(r=n!=null?`Credits: $${n.toFixed(2)}`:"Credits",t[0]=n,t[1]=r):r=t[1];let a;t[2]!==n?(a=O(n!=null&&Qs(n)),t[2]=n,t[3]=a):a=t[3];let l;t[4]!==e||t[5]!==s.slug?(l=()=>e({to:"/$org/settings/ai-providers",params:{org:s.slug}}),t[4]=e,t[5]=s.slug,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(ss,{}),t[7]=c):c=t[7];let d;t[8]!==n?(d=n!=null?`$${n.toFixed(2)}`:"Credits",t[8]=n,t[9]=d):d=t[9];let f;t[10]!==d?(f=o.jsx("span",{children:d}),t[10]=d,t[11]=f):f=t[11];let m;return t[12]!==r||t[13]!==a||t[14]!==l||t[15]!==f?(m=o.jsx(M,{children:o.jsx(z,{children:o.jsxs(ae,{tooltip:r,className:a,onClick:l,children:[c,f]})})}),t[12]=r,t[13]=a,t[14]=l,t[15]=f,t[16]=m):m=t[16],m}function Ge(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(qs,{children:o.jsx(D.Suspense,{fallback:null,children:o.jsx(Us,{})})}),t[0]=e):e=t[0],e}const Hs=6e4;function Vs(t,e){return t.call("NOTIFICATION_LIST",e?{cursor:e}:{})}function Gs(t,e){if(!t)return t;const s=e?new Set(e):null;let i=0;const n=t.pages.map(a=>{const l=a.notifications.filter(c=>s&&!s.has(c.id)?!0:(i++,!1));return{...a,notifications:l}}),r=s?Math.max(0,(t.pages[0]?.unreadCount??0)-i):0;return{...t,pages:n.map(a=>({...a,unreadCount:r}))}}function Ws(t,e){const s=k.c(4),{data:i}=le.useSession(),n=i?.user?.id;let r;s[0]!==e||s[1]!==t||s[2]!==n?(r=a=>!t||!n?Xs:Cs.subscribe(t,c=>{try{if(JSON.parse(c.data).subject!==n)return}catch{return}e(),a()},e),s[0]=e,s[1]=t,s[2]=n,s[3]=r):r=s[3],D.useSyncExternalStore(r,Js,Ys)}function Ys(){return 0}function Js(){return 0}function Xs(){}function dt(){const t=k.c(37),{locator:e,org:s}=R(),i=Ze(),n=kt();let r;t[0]!==e?(r=Ct.notifications(e),t[0]=e,t[1]=r):r=t[1];const a=r;let l;t[2]!==i?(l=C=>{const{pageParam:A}=C;return Vs(i,A)},t[2]=i,t[3]=l):l=t[3];let c;t[4]!==a||t[5]!==l?(c={queryKey:a,queryFn:l,initialPageParam:void 0,getNextPageParam:to,refetchInterval:Hs},t[4]=a,t[5]=l,t[6]=c):c=t[6];const d=_s(c);let f;t[7]!==n||t[8]!==a?(f=()=>n.invalidateQueries({queryKey:a,refetchType:"active"}),t[7]=n,t[8]=a,t[9]=f):f=t[9],Ws(s.slug,f);let m;t[10]!==i?(m=C=>i.call("NOTIFICATION_MARK_READ",C?{ids:C}:{}),t[10]=i,t[11]=m):m=t[11];let u,x;t[12]!==n||t[13]!==a?(u=async C=>{await n.cancelQueries({queryKey:a}),n.setQueryData(a,A=>Gs(A,C))},x=()=>n.invalidateQueries({queryKey:a}),t[12]=n,t[13]=a,t[14]=u,t[15]=x):(u=t[14],x=t[15]);let h;t[16]!==m||t[17]!==u||t[18]!==x?(h={mutationFn:m,onMutate:u,onSettled:x},t[16]=m,t[17]=u,t[18]=x,t[19]=h):h=t[19];const g=_t(h);let p;t[20]!==d.data?.pages?(p=d.data?.pages??[],t[20]=d.data?.pages,t[21]=p):p=t[21];const b=p;let j;t[22]!==b?(j=b.flatMap(Zs),t[22]=b,t[23]=j):j=t[23];const y=b[0]?.unreadCount??0;let v;t[24]!==d?(v=()=>{d.hasNextPage&&!d.isFetchingNextPage&&d.fetchNextPage()},t[24]=d,t[25]=v):v=t[25];let N,S;t[26]!==g?(N=()=>g.mutate(null),S=C=>g.mutate([C]),t[26]=g,t[27]=N,t[28]=S):(N=t[27],S=t[28]);let _;return t[29]!==d.hasNextPage||t[30]!==d.isFetchingNextPage||t[31]!==y||t[32]!==v||t[33]!==N||t[34]!==S||t[35]!==j?(_={updates:j,redDotCount:y,hasMore:d.hasNextPage,isFetchingMore:d.isFetchingNextPage,fetchMore:v,markAllRead:N,markRead:S},t[29]=d.hasNextPage,t[30]=d.isFetchingNextPage,t[31]=y,t[32]=v,t[33]=N,t[34]=S,t[35]=j,t[36]=_):_=t[36],_}function Zs(t){return t.notifications.map(eo)}function eo(t){return{id:t.id,taskBoardItemId:t.taskBoardItemId,taskTitle:t.taskTitle,taskKeySeq:t.taskKeySeq,action:t.type,actorName:t.actorName,actorImage:t.actorImage,occurredAt:t.createdAt}}function to(t){return t.nextCursor??void 0}function so(t,e){switch(t.action){case"commented":return e("sidebar.inbox.actionCommented");case"mentioned":return e("sidebar.inbox.actionMentioned");case"created":return e("sidebar.inbox.actionCreated");case"status_changed":return e("sidebar.inbox.actionStatusChanged");case"assignee_changed":return e("sidebar.inbox.actionAssigneeChanged");case"review_requested":return e("sidebar.inbox.actionReviewRequested");case"review_approved":return e("sidebar.inbox.actionReviewApproved");case"review_changes_requested":return e("sidebar.inbox.actionReviewChangesRequested");case"merge_failed":return e("sidebar.inbox.actionMergeFailed");default:{const s=t.action;return String(s)}}}function oo(t){const e=k.c(28),{update:s,orgSlug:i,onSelect:n}=t,r=$();let a;e[0]!==i||e[1]!==s.taskKeySeq?(a=et(i,s.taskKeySeq),e[0]=i,e[1]=s.taskKeySeq,e[2]=a):a=e[2];const l=a,c=!s.actorName;let d;e[3]!==c||e[4]!==s.actorImage||e[5]!==s.actorName?(d=c?o.jsx(Ot,{size:24,className:"shrink-0"}):o.jsx(ke,{url:s.actorImage??void 0,fallback:Is(s.actorName??void 0),shape:"circle",size:"xs",className:"shrink-0"}),e[3]=c,e[4]=s.actorImage,e[5]=s.actorName,e[6]=d):d=e[6];const f=l?`${l} · `:"";let m;e[7]!==f||e[8]!==s.taskTitle?(m=o.jsxs("p",{className:"truncate text-xs text-muted-foreground",children:[f,s.taskTitle]}),e[7]=f,e[8]=s.taskTitle,e[9]=m):m=e[9];let u;e[10]!==r||e[11]!==s?(u=so(s,r),e[10]=r,e[11]=s,e[12]=u):u=e[12];let x;e[13]!==u?(x=o.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:u}),e[13]=u,e[14]=x):x=e[14];let h;e[15]!==m||e[16]!==x?(h=o.jsxs("div",{className:"min-w-0 flex-1",children:[m,x]}),e[15]=m,e[16]=x,e[17]=h):h=e[17];let g;e[18]!==s.occurredAt?(g=Ps(new Date(s.occurredAt)),e[18]=s.occurredAt,e[19]=g):g=e[19];let p;e[20]!==g?(p=o.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:g}),e[20]=g,e[21]=p):p=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx(As,{size:16,className:"shrink-0 text-muted-foreground"}),e[22]=b):b=e[22];let j;return e[23]!==n||e[24]!==d||e[25]!==h||e[26]!==p?(j=o.jsxs("button",{type:"button",onClick:n,className:"flex w-full items-center gap-3 border-b border-border px-4 py-3 text-left transition-colors last:border-0 hover:bg-muted/25",children:[d,h,p,b]}),e[23]=n,e[24]=d,e[25]=h,e[26]=p,e[27]=j):j=e[27],j}function no(t){const e=k.c(2),{onReach:s}=t;let i;return e[0]!==s?(i=o.jsx("div",{className:"h-8 shrink-0",ref:n=>{if(!n)return;const r=new IntersectionObserver(a=>{a.some(io)&&s()});return r.observe(n),()=>r.disconnect()}}),e[0]=s,e[1]=i):i=e[1],i}function io(t){return t.isIntersecting}function ao(t){const e=k.c(23),{onClose:s}=t,i=$(),n=_e(),{org:r}=R(),{updates:a,markAllRead:l,markRead:c,hasMore:d,fetchMore:f}=dt();let m;e[0]!==i?(m=i("sidebar.inbox.title"),e[0]=i,e[1]=m):m=e[1];let u;e[2]!==m?(u=o.jsx("h3",{className:"text-sm font-medium",children:m}),e[2]=m,e[3]=u):u=e[3];let x;e[4]!==l||e[5]!==i||e[6]!==a.length?(x=a.length>0&&o.jsx(At,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs text-muted-foreground",onClick:l,children:i("sidebar.inbox.markAllRead")}),e[4]=l,e[5]=i,e[6]=a.length,e[7]=x):x=e[7];let h;e[8]!==u||e[9]!==x?(h=o.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-border px-4 py-3",children:[u,x]}),e[8]=u,e[9]=x,e[10]=h):h=e[10];let g;e[11]!==f||e[12]!==d||e[13]!==c||e[14]!==n||e[15]!==s||e[16]!==r||e[17]!==i||e[18]!==a?(g=a.length===0?o.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 py-10 text-center",children:[o.jsx(Fe,{size:24,className:"text-muted-foreground/50"}),o.jsx("p",{className:"text-sm font-medium text-foreground",children:i("sidebar.inbox.emptyTitle")}),o.jsx("p",{className:"text-xs text-muted-foreground",children:i("sidebar.inbox.emptyBody")})]}):o.jsxs(ks,{className:"min-h-0 flex-1",children:[a.map(b=>{const j=et(r.slug,b.taskKeySeq);return o.jsx(oo,{update:b,orgSlug:r.slug,onSelect:()=>{c(b.id),s(),j&&n({to:"/$org/tasks/{-$taskKey}",params:{org:r.slug,taskKey:j}})}},b.id)}),d&&o.jsx(no,{onReach:f})]}),e[11]=f,e[12]=d,e[13]=c,e[14]=n,e[15]=s,e[16]=r,e[17]=i,e[18]=a,e[19]=g):g=e[19];let p;return e[20]!==h||e[21]!==g?(p=o.jsxs(o.Fragment,{children:[h,g]}),e[20]=h,e[21]=g,e[22]=p):p=e[22],p}function mt(){const t=k.c(1),{redDotCount:e}=dt();if(e===0)return null;let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("span",{className:"pointer-events-none absolute top-1 right-1 size-2 rounded-full bg-destructive"}),t[0]=s):s=t[0],s}function ft(t){const e=k.c(11),{open:s,onOpenChange:i,side:n,children:r}=t;let a;e[0]!==i||e[1]!==s?(a=s&&o.jsx(ao,{onClose:()=>i(!1)}),e[0]=i,e[1]=s,e[2]=a):a=e[2];let l;e[3]!==n||e[4]!==a?(l=o.jsx(nt,{side:n,align:"end",sideOffset:12,collisionPadding:16,className:"flex max-h-[min(650px,calc(100dvh-4rem))] w-[min(400px,calc(100vw-2rem))] flex-col p-0",children:a}),e[3]=n,e[4]=a,e[5]=l):l=e[5];let c;return e[6]!==r||e[7]!==i||e[8]!==s||e[9]!==l?(c=o.jsxs(ot,{open:s,onOpenChange:i,children:[r,l]}),e[6]=r,e[7]=i,e[8]=s,e[9]=l,e[10]=c):c=e[10],c}function ut(){const t=k.c(9),e=$(),[s,i]=D.useState(!1);let n;t[0]!==e?(n=e("sidebar.inbox.title"),t[0]=e,t[1]=n):n=t[1];let r,a;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Fe,{size:15}),a=o.jsx(mt,{}),t[2]=r,t[3]=a):(r=t[2],a=t[3]);let l;t[4]!==n?(l=o.jsx(Re,{asChild:!0,children:o.jsxs("button",{type:"button","aria-label":n,className:"relative flex size-7 shrink-0 items-center justify-center rounded-md text-sidebar-foreground/60 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[r,a]})}),t[4]=n,t[5]=l):l=t[5];let c;return t[6]!==s||t[7]!==l?(c=o.jsx(ft,{open:s,onOpenChange:i,side:"top",children:l}),t[6]=s,t[7]=l,t[8]=c):c=t[8],c}function ro(){const t=k.c(15),e=$(),[s,i]=D.useState(!1),n=Ee();let r;t[0]!==n||t[1]!==e?(r=n?e("sidebar.inbox.title"):void 0,t[0]=n,t[1]=e,t[2]=r):r=t[2];let a,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(Fe,{}),l=o.jsx(mt,{}),t[3]=a,t[4]=l):(a=t[3],l=t[4]);let c;t[5]!==e?(c=e("sidebar.inbox.title"),t[5]=e,t[6]=c):c=t[6];let d;t[7]!==c?(d=o.jsx("span",{className:"truncate",children:c}),t[7]=c,t[8]=d):d=t[8];let f;t[9]!==r||t[10]!==d?(f=o.jsx(Re,{asChild:!0,children:o.jsxs(ae,{tooltip:r,className:"relative",children:[a,l,d]})}),t[9]=r,t[10]=d,t[11]=f):f=t[11];let m;return t[12]!==s||t[13]!==f?(m=o.jsx(ft,{open:s,onOpenChange:i,side:"right",children:f}),t[12]=s,t[13]=f,t[14]=m):m=t[14],m}function We(){const t=k.c(29),e=$(),[s,i]=D.useState(!1);let n;t[0]!==e?(n=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=n):n=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(it,{}),t[2]=r):r=t[2];let a;t[3]!==e?(a=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=a):a=t[4];let l;t[5]!==a?(l=o.jsx("span",{children:a}),t[5]=a,t[6]=l):l=t[6];let c;t[7]!==n||t[8]!==l?(c=o.jsx(z,{children:o.jsx(lt,{trigger:o.jsxs(ae,{tooltip:n,children:[r,l]})})}),t[7]=n,t[8]=l,t[9]=c):c=t[9];let d;t[10]!==e?(d=e("sidebar.sidebarFooter.addConnection"),t[10]=e,t[11]=d):d=t[11];let f,m;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=()=>i(!0),m=o.jsx(os,{}),t[12]=f,t[13]=m):(f=t[12],m=t[13]);let u;t[14]!==e?(u=e("sidebar.sidebarFooter.addConnection"),t[14]=e,t[15]=u):u=t[15];let x;t[16]!==u?(x=o.jsx("span",{children:u}),t[16]=u,t[17]=x):x=t[17];let h;t[18]!==d||t[19]!==x?(h=o.jsx(z,{children:o.jsxs(ae,{tooltip:d,onClick:f,children:[m,x]})}),t[18]=d,t[19]=x,t[20]=h):h=t[20];let g;t[21]!==h||t[22]!==c?(g=o.jsxs(M,{className:"gap-0.5",children:[c,h]}),t[21]=h,t[22]=c,t[23]=g):g=t[23];let p;t[24]!==s?(p=s&&o.jsx(zt,{open:s,onOpenChange:i,mode:"browse"}),t[24]=s,t[25]=p):p=t[25];let b;return t[26]!==g||t[27]!==p?(b=o.jsxs(o.Fragment,{children:[g,p]}),t[26]=g,t[27]=p,t[28]=b):b=t[28],b}function Ye(){const t=k.c(10),e=$();let s;t[0]!==e?(s=e("sidebar.sidebarFooter.inviteMembers"),t[0]=e,t[1]=s):s=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(it,{}),t[2]=i):i=t[2];let n;t[3]!==e?(n=e("sidebar.sidebarFooter.inviteMembers"),t[3]=e,t[4]=n):n=t[4];let r;t[5]!==n?(r=o.jsx("span",{children:n}),t[5]=n,t[6]=r):r=t[6];let a;return t[7]!==s||t[8]!==r?(a=o.jsx(M,{className:"gap-0.5",children:o.jsx(z,{children:o.jsx(lt,{trigger:o.jsxs(ae,{tooltip:s,children:[i,r]})})})}),t[7]=s,t[8]=r,t[9]=a):a=t[9],a}function lo(){const t=k.c(17),e=Ee(),s=bs(),i=!s;if(e){let c;t[0]!==i?(c=i&&o.jsx(Ge,{}),t[0]=i,t[1]=c):c=t[1];let d;t[2]!==s?(d=s?o.jsx(Ye,{}):o.jsx(We,{}),t[2]=s,t[3]=d):d=t[3];let f;t[4]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(z,{children:o.jsx(ro,{})}),t[4]=f):f=t[4];let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsxs(M,{children:[f,o.jsx(z,{children:o.jsx(De,{})})]}),t[5]=m):m=t[5];let u;return t[6]!==c||t[7]!==d?(u=o.jsxs(Oe,{className:"px-2 pb-3 gap-1",children:[c,d,m]}),t[6]=c,t[7]=d,t[8]=u):u=t[8],u}let n;t[9]!==i?(n=i&&o.jsx(Ge,{}),t[9]=i,t[10]=n):n=t[10];let r;t[11]!==s?(r=s?o.jsx(Ye,{}):o.jsx(We,{}),t[11]=s,t[12]=r):r=t[12];let a;t[13]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(M,{className:"gap-0.5",children:o.jsx(z,{children:o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("div",{className:"flex-1 min-w-0",children:o.jsx(De,{})}),o.jsx(ut,{})]})})}),t[13]=a):a=t[13];let l;return t[14]!==n||t[15]!==r?(l=o.jsxs(Oe,{className:"px-2 pb-3 gap-0.5",children:[n,r,a]}),t[14]=n,t[15]=r,t[16]=l):l=t[16],l}function co(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Oe,{className:"px-2 pb-3",children:o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("div",{className:"flex-1 min-w-0",children:o.jsx(M,{children:o.jsx(z,{children:o.jsx(De,{})})})}),o.jsx(ut,{})]})}),t[0]=e):e=t[0],e}const mo="settings",fo=["overview","reports","board","files"];function uo(t,e){return!t||!e?!1:!st(e.metadata)}function po(){const t=k.c(9),e=$(),{org:s}=R(),i=Ce(),n=Ie(),{project:r}=Ae();let a;t[0]!==r||t[1]!==n?(a=uo(n,r),t[0]=r,t[1]=n,t[2]=a):a=t[2];const l=a;let c;if(t[3]!==l||t[4]!==i||t[5]!==s||t[6]!==n||t[7]!==e){const d={overview:l?null:{key:"overview",label:e("sidebar.navDestinations.home"),icon:o.jsx(as,{size:16}),isActive:i===w.home||i===w.orgIndex,trackAs:"overview",link:{to:w.home,params:{org:s.slug}}},reports:ze(w.reports,n)&&!l?{key:"reports",label:e("sidebar.navDestinations.reports"),icon:o.jsx(is,{size:16}),isActive:i===w.reports,trackAs:"reports",link:{to:w.reports,params:{org:s.slug}}}:null,board:l?null:{key:"board",label:e("sidebar.navDestinations.tasks"),icon:o.jsx(ns,{size:16}),isActive:i===w.tasks,trackAs:"board",dataTour:re.tasks,link:{to:w.tasks,params:{org:s.slug,taskKey:void 0}}},files:ze(w.library,n)?{key:"files",label:e("sidebar.navDestinations.library"),icon:o.jsx($s,{size:16}),isActive:i===w.library,trackAs:"files",link:{to:w.library,params:{org:s.slug}}}:null};c=fo.map(f=>d[f]).filter(xo),t[3]=l,t[4]=i,t[5]=s,t[6]=n,t[7]=e,t[8]=c}else c=t[8];return c}function xo(t){return t!==null}function ho(t){const e=k.c(7),{onNavigate:s}=t,i=po();let n;if(e[0]!==i||e[1]!==s){let a;e[3]!==s?(a=l=>o.jsx(Pe,{icon:l.icon,label:l.label,dataTour:l.dataTour,isActive:l.isActive,link:l.link,onSelect:()=>{F("nav_destination_clicked",{destination:l.trackAs}),s?.()}},l.key),e[3]=s,e[4]=a):a=e[4],n=i.map(a),e[0]=i,e[1]=s,e[2]=n}else n=e[2];let r;return e[5]!==n?(r=o.jsx(M,{className:"gap-1",children:n}),e[5]=n,e[6]=r):r=e[6],r}function bo(t){const e=k.c(18),{onNavigate:s}=t,i=$(),{org:n}=R(),r=Ie(),a=Be(),l=Ce(),c=Kt();let d;e[0]!==c||e[1]!==l?(d=l.startsWith("/$org/settings")||l===w.agents&&c==="settings",e[0]=c,e[1]=l,e[2]=d):d=e[2];const f=d;let m;e[3]!==i?(m=i("sidebar.navDestinations.settings"),e[3]=i,e[4]=m):m=e[4];const u=m;let x;e[5]!==n||e[6]!==r?(x=r?void 0:{to:"/$org/settings",params:{org:n.slug}},e[5]=n,e[6]=r,e[7]=x):x=e[7];const h=x;let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(rt,{size:16}),e[8]=g):g=e[8];let p;e[9]!==a||e[10]!==s||e[11]!==r?(p=()=>{F("nav_destination_clicked",{destination:mo,target:r?"project":"org"}),r&&a(r,{panel:"settings"}),s?.()},e[9]=a,e[10]=s,e[11]=r,e[12]=p):p=e[12];let b;return e[13]!==f||e[14]!==u||e[15]!==h||e[16]!==p?(b=o.jsx(M,{className:"gap-1",children:o.jsx(Pe,{dataTour:re.settings,icon:g,label:u,isActive:f,link:h,onSelect:p})}),e[13]=f,e[14]=u,e[15]=h,e[16]=p,e[17]=b):b=e[17],b}function go(t,e){const s=new Set(e);return s.size===0?t:t.filter(i=>s.has(i.connectionId))}function jo(t){const e=t.metadata?.ui;return Array.isArray(e?.pinnedViews)?e.pinnedViews.filter(s=>!!s&&typeof s=="object"&&typeof s.connectionId=="string"&&typeof s.toolName=="string"):[]}function vo(t){const e=k.c(14),{onNavigate:s}=t,i=$(),{project:n}=Ae(),r=Os(),a=Be(),l=Ce(),c=Ms();if(!n)return null;let d;e[0]!==n.metadata?(d=st(n.metadata),e[0]=n.metadata,e[1]=d):d=e[1];const f=d;let m;e[2]!==r.data?.configs||e[3]!==n?(m=Dt(r.data?.configs??[],zs(n)),e[2]=r.data?.configs,e[3]=n,e[4]=m):m=e[4];const u=!!m;let x;if(e[5]!==c||e[6]!==u||e[7]!==f||e[8]!==l||e[9]!==a||e[10]!==s||e[11]!==n||e[12]!==i){const h=[];f&&h.push({key:"site-editor",label:i("sidebar.projectNav.siteEditor"),icon:o.jsx(at,{size:16}),panel:"site-editor",isActive:ko,dataTour:re.siteEditor}),u&&h.push({key:"assets",label:i("common.mainPanelTabs.assets"),icon:o.jsx(Ts,{size:16}),panel:"assets",isActive:So});for(const p of go(jo(n),(n.connections??[]).map(No)))p.toolName!=="fetch_assets"&&h.push({key:`pinned:${p.connectionId}:${p.toolName}`,label:p.label||p.toolName,icon:p.icon?o.jsx("img",{src:p.icon,alt:"",className:"size-4 rounded-[3px]"}):o.jsx(ws,{size:16}),panel:Ke(p.connectionId,p.toolName),isActive:b=>b===Ke(p.connectionId,p.toolName)});h.push({key:"automations",label:i("sidebar.projectNav.automations"),icon:o.jsx(rs,{size:16}),panel:"automations",isActive:yo,dataTour:re.automations});const g=l===w.agents;x=o.jsx(M,{className:"gap-1",children:h.map(p=>o.jsx(Pe,{icon:p.icon,label:p.label,dataTour:p.dataTour,isActive:g&&p.isActive(c),onSelect:()=>{F("project_nav_clicked",{surface:p.key}),a(n.id,{panel:p.panel}),s?.()}},p.key))}),e[5]=c,e[6]=u,e[7]=f,e[8]=l,e[9]=a,e[10]=s,e[11]=n,e[12]=i,e[13]=x}else x=e[13];return x}function yo(t){return t==="automations"||It(t)!==null}function No(t){return t.connection_id}function So(t){return t==="assets"}function ko(t){return!!t&&Ds(t)}const _o=3;function Co(t,e){return t.status==="archived"||t.status==="done"?!1:e&&t.assigneeId===e?!0:Ft(t)||Et(t)}function Ao(t,e,s){const i=new Map(t.map(a=>[a.id,a])),n=new Map;for(const a of t){const l=qt(a);l&&n.set(l.toLowerCase(),a.id)}const r=new Map;for(const a of e){if(!Co(a,s))continue;const c=a.threads.find(f=>f.virtualMcpId&&i.has(f.virtualMcpId))?.virtualMcpId??n.get(a.repo?.toLowerCase()??"");if(!c)continue;const d=r.get(c);d?d.push(a):r.set(c,[a])}for(const[a,l]of r)l.sort((c,d)=>(d.updatedAt??"").localeCompare(c.updatedAt??"")),r.set(a,l.slice(0,_o));return r}function Io(t){const e=k.c(21),{task:s,orgSlug:i,isLast:n,onNavigate:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("span",{"aria-hidden":"true",className:"absolute top-0 left-4 h-1/2 w-3 rounded-bl-lg border-b border-l border-sidebar-border"}),e[0]=a):a=e[0];let l;e[1]!==n?(l=!n&&o.jsx("span",{"aria-hidden":"true",className:"absolute top-1/2 bottom-0 left-4 border-l border-sidebar-border"}),e[1]=n,e[2]=l):l=e[2];let c;e[3]!==i||e[4]!==s?(c=Rt(i,s),e[3]=i,e[4]=s,e[5]=c):c=e[5];let d;e[6]!==i||e[7]!==c?(d={org:i,taskKey:c},e[6]=i,e[7]=c,e[8]=d):d=e[8];let f;e[9]!==r||e[10]!==s.status?(f=()=>{F("sidebar_attention_task_clicked",{status:s.status}),r?.()},e[9]=r,e[10]=s.status,e[11]=f):f=e[11];let m;e[12]!==s.title?(m=o.jsx("span",{className:"truncate",children:s.title}),e[12]=s.title,e[13]=m):m=e[13];let u;e[14]!==d||e[15]!==f||e[16]!==m?(u=o.jsx(wt,{to:"/$org/tasks/{-$taskKey}",params:d,onClick:f,className:"flex h-8 items-center rounded-lg pr-2 pl-9 text-sm text-sidebar-foreground/70 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",children:m}),e[14]=d,e[15]=f,e[16]=m,e[17]=u):u=e[17];let x;return e[18]!==l||e[19]!==u?(x=o.jsxs("li",{className:"relative",children:[a,l,u]}),e[18]=l,e[19]=u,e[20]=x):x=e[20],x}function Po(t){const e=k.c(35),{onNavigate:s}=t,i=$(),n=Ee(),{org:r,locator:a}=R(),l=Ze(),{projects:c}=Ae(),d=Ie(),f=Be(),{data:m}=le.useSession();let u;e[0]!==a||e[1]!==l?(u=Bt(a,l),e[0]=a,e[1]=l,e[2]=u):u=e[2];const x=!n&&!d;let h;e[3]!==u||e[4]!==x?(h={...u,enabled:x},e[3]=u,e[4]=x,e[5]=h):h=e[5];const{data:g}=Pt(h);if(d||c.length===0)return null;let p,b,j,y,v,N;if(e[6]!==n||e[7]!==g?.items||e[8]!==f||e[9]!==s||e[10]!==r||e[11]!==c||e[12]!==d||e[13]!==m?.user?.id||e[14]!==i){const C=Ao(c,g?.items??[],m?.user?.id),A=n&&"pt-3";e[21]!==A?(y=O("flex flex-col gap-1",A),e[21]=A,e[22]=y):y=e[22],v=re.projects,e[23]!==n||e[24]!==i?(N=!n&&o.jsx("p",{className:"px-2 pt-5 pb-0.5 text-xs font-medium text-muted-foreground/60",children:i("sidebar.projects.heading")}),e[23]=n,e[24]=i,e[25]=N):N=e[25],p=M,b="gap-1",j=c.map(I=>{const P=C.get(I.id)??[];return o.jsx(Pe,{icon:o.jsx(ls,{icon:I.icon,name:I.title,size:"2xs",className:"size-4 shrink-0"}),label:I.title,isActive:I.id===d,onSelect:()=>{F("sidebar_project_clicked"),f(I.id,{panel:$t(I.metadata?.ui?.layout)}),s?.()},children:!n&&P.length>0&&o.jsx("ul",{className:"flex flex-col",children:P.map((T,E)=>o.jsx(Io,{task:T,orgSlug:r.slug,isLast:E===P.length-1,onNavigate:s},T.id))})},I.id)}),e[6]=n,e[7]=g?.items,e[8]=f,e[9]=s,e[10]=r,e[11]=c,e[12]=d,e[13]=m?.user?.id,e[14]=i,e[15]=p,e[16]=b,e[17]=j,e[18]=y,e[19]=v,e[20]=N}else p=e[15],b=e[16],j=e[17],y=e[18],v=e[19],N=e[20];let S;e[26]!==p||e[27]!==b||e[28]!==j?(S=o.jsx(p,{className:b,children:j}),e[26]=p,e[27]=b,e[28]=j,e[29]=S):S=e[29];let _;return e[30]!==y||e[31]!==v||e[32]!==N||e[33]!==S?(_=o.jsxs("div",{className:y,"data-tour":v,children:[N,S]}),e[30]=y,e[31]=v,e[32]=N,e[33]=S,e[34]=_):_=e[34],_}function $o(t){const e=k.c(5),{onClose:s}=t;let i;e[0]!==s?(i=o.jsx(Lt,{onNavigate:s}),e[0]=s,e[1]=i):i=e[1];let n;return e[2]!==s||e[3]!==i?(n=o.jsx(Ns,{onClose:s,children:i}),e[2]=s,e[3]=i,e[4]=n):n=e[4],n}function pt(t){const e=k.c(8),{onNavigate:s}=t,i=$(),n=Ie(),r=Rs();if(!n)return null;let a;e[0]!==i?(a=i("sidebar.scope.allProjects"),e[0]=i,e[1]=a):a=e[1];let l;e[2]!==r||e[3]!==s?(l=()=>{r(),s?.()},e[2]=r,e[3]=s,e[4]=l):l=e[4];let c;return e[5]!==a||e[6]!==l?(c=o.jsx(Ss,{label:a,onSelect:l}),e[5]=a,e[6]=l,e[7]=c):c=e[7],c}function xt(t){const e=k.c(2),{onNavigate:s}=t;let i;return e[0]!==s?(i=o.jsx(Tt,{children:o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx(ho,{onNavigate:s}),o.jsx(vo,{onNavigate:s}),o.jsx(bo,{onNavigate:s}),o.jsx(Po,{onNavigate:s})]})}),e[0]=s,e[1]=i):i=e[1],i}function hn(){const t=k.c(3),e=Fs();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(gs,{}),t[0]=s):s=t[0];let i;return t[1]!==e?(i=o.jsx(tt,{children:o.jsx(ct,{header:s,back:e?o.jsx(ys,{}):o.jsx(pt,{}),body:e?o.jsx(vs,{}):o.jsx(xt,{}),footer:e?o.jsx(js,{}):o.jsx(lo,{})})}),t[1]=e,t[2]=i):i=t[2],i}function bn(t){const e=k.c(9),{onClose:s}=t;let i,n,r;e[0]!==s?(i=o.jsx($o,{onClose:s}),n=o.jsx(pt,{onNavigate:s}),r=o.jsx(xt,{onNavigate:s}),e[0]=s,e[1]=i,e[2]=n,e[3]=r):(i=e[1],n=e[2],r=e[3]);let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(co,{}),e[4]=a):a=e[4];let l;return e[5]!==i||e[6]!==n||e[7]!==r?(l=o.jsx(tt,{children:o.jsx(ct,{sheet:!0,header:i,back:n,body:r,footer:a})}),e[5]=i,e[6]=n,e[7]=r,e[8]=l):l=e[8],l}export{hn as S,bn as a};
|