decocms 4.403.0 → 4.403.2
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-BxsvjprR.js → AlertCircle-C_kXzQ78.js} +1 -1
- package/dist/client/assets/{AreaChart-BXuWJn9c.js → AreaChart-sdUzs9E4.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C98PG333.js → ArrowLeft-D9zUA1bK.js} +1 -1
- package/dist/client/assets/{ArrowRight-CK7-YvUr.js → ArrowRight-rURPX3xn.js} +1 -1
- package/dist/client/assets/{ArrowUp-DPWXMpl2.js → ArrowUp-BLNkLM3C.js} +1 -1
- package/dist/client/assets/{CartesianChart-DD9gGd-G.js → CartesianChart-D8uFyT0_.js} +1 -1
- package/dist/client/assets/{Check-Blxq8j59.js → Check-dAUWsLQD.js} +1 -1
- package/dist/client/assets/{CheckCircle-DS--6hmh.js → CheckCircle-aUhmD8ev.js} +1 -1
- package/dist/client/assets/{ChevronUp-CRNjHjTK.js → ChevronUp-B5OBs3oS.js} +1 -1
- package/dist/client/assets/{Copy01-DmLSY0Qf.js → Copy01-EJ-9UYr1.js} +1 -1
- package/dist/client/assets/{CreditCard01-C6GC8NM-.js → CreditCard01-B_NVIZ6G.js} +1 -1
- package/dist/client/assets/{DotsVertical-B2eyM1bc.js → DotsVertical-y8JWapab.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CYai77oS.js → ErrorBarContext-Xbqw0Kib.js} +1 -1
- package/dist/client/assets/{Eye-DDS_VF-Y.js → Eye-C-l2H4jg.js} +1 -1
- package/dist/client/assets/{Globe04-95dd8QSP.js → Globe04-BTfSqDHg.js} +1 -1
- package/dist/client/assets/{Image01-C1vTsGg9.js → Image01-UbYmmJNe.js} +1 -1
- package/dist/client/assets/{Key01-CfEGZMt9.js → Key01-DA2msxlD.js} +1 -1
- package/dist/client/assets/{LayoutLeft-xPkXxcb6.js → LayoutLeft-DDgCcOGN.js} +1 -1
- package/dist/client/assets/{Line-C67AfCyw.js → Line-CcMJZ7N6.js} +1 -1
- package/dist/client/assets/{Link01-CvcI1eLv.js → Link01-bVuJNEJQ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DH3oN4WK.js → LinkExternal01-BDWkknIJ.js} +1 -1
- package/dist/client/assets/{Monitor01-B9ABYuV_.js → Monitor01-BEy0ymst.js} +1 -1
- package/dist/client/assets/{Palette-DJJWQUTk.js → Palette-CjHZIrhs.js} +1 -1
- package/dist/client/assets/{Plus-GxHWJNZK.js → Plus-DbvfPvv9.js} +1 -1
- package/dist/client/assets/{SearchMd-QgF27GDM.js → SearchMd-CWmq_58m.js} +1 -1
- package/dist/client/assets/{Sector-BNV9jqXa.js → Sector-D6-3qRoD.js} +1 -1
- package/dist/client/assets/{Share07-DV5DThxW.js → Share07-B4qSsTX4.js} +1 -1
- package/dist/client/assets/{Sun-C3em9BZW.js → Sun-C_pUsRb6.js} +1 -1
- package/dist/client/assets/{Tool01-BCsmpwCz.js → Tool01-CbkB_UGt.js} +1 -1
- package/dist/client/assets/{Trash01-BgJo-uHb.js → Trash01-DcygqQWZ.js} +1 -1
- package/dist/client/assets/{Upload01-BNcthBU9.js → Upload01-DBrbIQNO.js} +1 -1
- package/dist/client/assets/{User01-DvYjRkyx.js → User01-BJCr-vTS.js} +1 -1
- package/dist/client/assets/{UserSquare-DKTJMzlh.js → UserSquare-DejD_xtx.js} +1 -1
- package/dist/client/assets/{Users01-DqJ21DOW.js → Users01-BSE9ab3Q.js} +1 -1
- package/dist/client/assets/{X-tomqNIg1.js → X-BjRn5g3c.js} +1 -1
- package/dist/client/assets/{XClose-DKTON5RG.js → XClose-CmxLmC_O.js} +1 -1
- package/dist/client/assets/{Zap-DMCGUdZC.js → Zap-DgTcmlaw.js} +1 -1
- package/dist/client/assets/{ZoomOut-CvfOKBlv.js → ZoomOut-B1L62w9D.js} +1 -1
- package/dist/client/assets/{access-gate-DsBjN_k-.js → access-gate-DKH0kUwV.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DGaBiFHb.js → add-connection-dialog-CXvu0sln.js} +1 -1
- package/dist/client/assets/{agent-analytics-n1UGPVtK.js → agent-analytics-CDyLGFSg.js} +1 -1
- package/dist/client/assets/agent-app-Ckeg466q.js +1 -0
- package/dist/client/assets/agent-assets-6WzmlXYC.js +1 -0
- package/dist/client/assets/{agent-automation-DBbEhZPF.js → agent-automation-KzOj_h6i.js} +1 -1
- package/dist/client/assets/{agent-automations-B8ZFE67t.js → agent-automations-BPFZMO8E.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-Dj71XW9T.js → agent-connect-sources-CzuY9o17.js} +1 -1
- package/dist/client/assets/agent-deck-X4JcoTgo.js +1 -0
- package/dist/client/assets/{agent-e2e-DfXNlhc3.js → agent-e2e-DazbrdT6.js} +1 -1
- package/dist/client/assets/{agent-experiments-BJWBqxLp.js → agent-experiments-Bcpw1zd2.js} +1 -1
- package/dist/client/assets/{agent-file-BBipxVNI.js → agent-file-G9IVTmKu.js} +1 -1
- package/dist/client/assets/{agent-git-Z2sLlW-j.js → agent-git-C3rcuDex.js} +2 -2
- package/dist/client/assets/{agent-hosting-D8WZlGjj.js → agent-hosting-C15fwpgd.js} +1 -1
- package/dist/client/assets/{agent-icon-CP9iXRWW.js → agent-icon-FM5Xd0VK.js} +1 -1
- package/dist/client/assets/agent-library-file-DEFMiuHo.js +1 -0
- package/dist/client/assets/{agent-monitor-CnK_AfrL.js → agent-monitor-BU9ggQ7r.js} +1 -1
- package/dist/client/assets/{agent-overview-8y0eYIH6.js → agent-overview-CYjNUptk.js} +1 -1
- package/dist/client/assets/agent-settings-DMWRPhJZ.js +1 -0
- package/dist/client/assets/{agent-site-editor-CQcbIrSJ.js → agent-site-editor-WkSiPa5-.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-cjWKET3w.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-BlZJF4Kt.js → agent-site-editor-content-DABMSGR0.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-B2myVBRe.js → agent-site-editor-preview-CrnEsqDx.js} +3 -3
- package/dist/client/assets/agent-view-BKmddyZw.js +1 -0
- package/dist/client/assets/{agent-view-guard-CR5g29BH.js → agent-view-guard--QhU9w-7.js} +1 -1
- package/dist/client/assets/{agents-list-Bn6kIacr.js → agents-list-tZ6ag2vD.js} +1 -1
- package/dist/client/assets/{ai-providers-DIo8QsY4.js → ai-providers-B0SmqGS2.js} +1 -1
- package/dist/client/assets/{alert-xdPy5Dnu.js → alert-CY9y5kov.js} +1 -1
- package/dist/client/assets/{alert-dialog-B5hf3Zq6.js → alert-dialog-crlActG5.js} +1 -1
- package/dist/client/assets/{analytics-sections-MCA0egKf.js → analytics-sections-CW1SSmlY.js} +1 -1
- package/dist/client/assets/api-keys-BG_ML2jm.js +1 -0
- package/dist/client/assets/{api-keys-k6o9_ZVL.js → api-keys-CJwF_ag6.js} +1 -1
- package/dist/client/assets/app-editor-B6-1AIx6.js +1 -0
- package/dist/client/assets/{asset-utils-DHewT25o.js → asset-utils-CHRBnkqM.js} +1 -1
- package/dist/client/assets/{auth-pb03Kzig.js → auth-BHw2Kds9.js} +1 -1
- package/dist/client/assets/{auth-catchall-DrFinUIn.js → auth-catchall-D-dlIY9A.js} +1 -1
- package/dist/client/assets/{auth-entry-Ceu5j70S.js → auth-entry-CSvHYg3Y.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Bt9Pa3Bg.js → auth-split-layout-CicPpTBH.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-ByuGS_gG.js → authenticate-and-persist-oauth-CekjxRMV.js} +1 -1
- package/dist/client/assets/{automation-list-row-CH-bg8ai.js → automation-list-row-CyE8OxsN.js} +1 -1
- package/dist/client/assets/{automation-runs-C1MhxQwE.js → automation-runs-0MzQ9_TE.js} +1 -1
- package/dist/client/assets/{automations-D4d9Yr8A.js → automations-BW3aEjye.js} +1 -1
- package/dist/client/assets/{autosend-DxvfLrdl.js → autosend-BQf55oa2.js} +1 -1
- package/dist/client/assets/{avatar-D9bHXtJ-.js → avatar-CDCcPNVu.js} +1 -1
- package/dist/client/assets/{badge-DXHGQv94.js → badge-BYQb3KZf.js} +1 -1
- package/dist/client/assets/{block-document-Cjfk5S2Y.js → block-document-Dq-YxMg6.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-D339Nq0O.js → blocks-preview-workspace-context-Drdkcek_.js} +1 -1
- package/dist/client/assets/{buckets-8xQyeFnA.js → buckets-D5hiLOzS.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-D2Ll2Rce.js → build-improve-prompt-doc-CQerhNO3.js} +1 -1
- package/dist/client/assets/{calendar-Wk2YDk5Q.js → calendar-25oFX8Nv.js} +1 -1
- package/dist/client/assets/{capability-load-error-QLFmZqWG.js → capability-load-error-DSGNrwqn.js} +1 -1
- package/dist/client/assets/{cards-c3aviZef.js → cards-VWdOgaGr.js} +1 -1
- package/dist/client/assets/category-editor-BdndGp4t.js +1 -0
- package/dist/client/assets/{chart-DKqJHT22.js → chart-BjBVJYiA.js} +1 -1
- package/dist/client/assets/{chat-context-zkHg9OWQ.js → chat-context-PGwkOHvf.js} +1 -1
- package/dist/client/assets/{chat-draft-DSG5ngj7.js → chat-draft-CC4dDsJa.js} +1 -1
- package/dist/client/assets/{checkbox-K4FR-PUT.js → checkbox-CTPSwm_S.js} +1 -1
- package/dist/client/assets/{choose-editor-BXV7Je4x.js → choose-editor-CVHmuTge.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-pJF6tq00.js → claim-phase-copy-DCU_RXjB.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Cl8P0ld7.js → cli-auth-success-B8c4OoEo.js} +1 -1
- package/dist/client/assets/{client-icons-Q4X702lN.js → client-icons-D9T3t2Bp.js} +1 -1
- package/dist/client/assets/{collapsible-C198MfkN.js → collapsible-Df_t1rGz.js} +1 -1
- package/dist/client/assets/{collection-detail-j8tNEP48.js → collection-detail-HLKs6GCt.js} +1 -1
- package/dist/client/assets/{collection-display-button-HO4jLV8w.js → collection-display-button-DLhpOBwe.js} +1 -1
- package/dist/client/assets/{collection-search-DIxBrmSt.js → collection-search-DjoVYez-.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Be87XQmm.js → collection-table-wrapper-Bogz2zyz.js} +1 -1
- package/dist/client/assets/{collection-tabs-BAPv5IF9.js → collection-tabs-CECmjidp.js} +1 -1
- package/dist/client/assets/{combobox-BVFjv7zx.js → combobox-DWT2Nd1E.js} +1 -1
- package/dist/client/assets/{command-CfliK-Cc.js → command-BL0zkwSH.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BbAoBFxb.js → companion-mcps-section-BLvEkA3R.js} +1 -1
- package/dist/client/assets/{connect-BA0xuDG1.js → connect-Ki0wTZT8.js} +1 -1
- package/dist/client/assets/{connect-layout-BdvXARBl.js → connect-layout-BY1cRYP7.js} +1 -1
- package/dist/client/assets/{connection-vEOaKzQz.js → connection-B1P297GR.js} +1 -1
- package/dist/client/assets/{connection-card-DvPe_M7v.js → connection-card-Da1ylTxs.js} +1 -1
- package/dist/client/assets/{connection-detail-DwqbKjaA.js → connection-detail-B-cHSvBP.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DplEqD9m.js → connection-form-helpers-15mQKEqB.js} +1 -1
- package/dist/client/assets/{connections-DP3rfITi.js → connections-DNxEAIRb.js} +1 -1
- package/dist/client/assets/context-CNtid5FS.js +1 -0
- package/dist/client/assets/{create-organization-dialog-CIJFPZj1.js → create-organization-dialog-dYVdXxQM.js} +1 -1
- package/dist/client/assets/{decofile-api-W5b1cAOf.js → decofile-api-QNgwZ2nW.js} +1 -1
- package/dist/client/assets/{decopilot-TYyHvkDT.js → decopilot-BOK6nkuf.js} +1 -1
- package/dist/client/assets/{dialog-D_eZEQVv.js → dialog-CENFdapR.js} +1 -1
- package/dist/client/assets/{discover-B9q6xfGX.js → discover-CjtL2zWe.js} +1 -1
- package/dist/client/assets/{domain-settings-DNUorrft.js → domain-settings-BflzrGO_.js} +1 -1
- package/dist/client/assets/{download-app-dialog-Cg2Fsige.js → download-app-dialog-DpTycVG6.js} +1 -1
- package/dist/client/assets/{drawer-BbjSV6aw.js → drawer-DjQmNq13.js} +1 -1
- package/dist/client/assets/{editor-z3_N_jkd.js → editor-DAgmGL3f.js} +1 -1
- package/dist/client/assets/{empty-state-DdD7u29c.js → empty-state-C_HcuHU6.js} +1 -1
- package/dist/client/assets/{empty-state-CDIBHplc.js → empty-state-D7Th7GXw.js} +1 -1
- package/dist/client/assets/{extract-connection-data-IvHnTVAw.js → extract-connection-data-Vz2TdjlJ.js} +1 -1
- package/dist/client/assets/{feature-gate-BWDpzS9z.js → feature-gate-Cz7xEoGI.js} +1 -1
- package/dist/client/assets/{feature-paywall-BMHKK3Z9.js → feature-paywall-D3MVv8tA.js} +1 -1
- package/dist/client/assets/{file-explorer-D27HdHX3.js → file-explorer-B_xgdusU.js} +1 -1
- package/dist/client/assets/{file-preview-8F3P6Bl5.js → file-preview-Byy1ZOrf.js} +1 -1
- package/dist/client/assets/{file-share-button-DyElnx8z.js → file-share-button-CALFcbRE.js} +1 -1
- package/dist/client/assets/{file-type-icon-ClDaqk3f.js → file-type-icon-Bdeu7ywm.js} +1 -1
- package/dist/client/assets/{folder-icon-D04YRFhU.js → folder-icon-DvoUup1J.js} +1 -1
- package/dist/client/assets/{form-C7tLG-xD.js → form-B1Wwlzkj.js} +1 -1
- package/dist/client/assets/{gateway-client-BS6ihzBm.js → gateway-client-D9enDJRc.js} +1 -1
- package/dist/client/assets/{general-B2rNnykE.js → general-DLysl035.js} +1 -1
- package/dist/client/assets/{github-icon-CfU12Xim.js → github-icon-YMvGSlq2.js} +1 -1
- package/dist/client/assets/{home-i2aU9Ufv.js → home-C8mI5nGx.js} +1 -1
- package/dist/client/assets/{hooks-BdWJM6ej.js → hooks-CNOYV2r_.js} +1 -1
- package/dist/client/assets/{icon-button-DAJ4484y.js → icon-button-UU5k-Lwl.js} +1 -1
- package/dist/client/assets/{index-DBxyNE8f.js → index-0m514agX.js} +1 -1
- package/dist/client/assets/{index-CFR2L-q4.js → index-4DjKHdvg.js} +1 -1
- package/dist/client/assets/{index-DZwO8JK7.js → index-B2CN3127.js} +1 -1
- package/dist/client/assets/{index-Hk82ozwG.js → index-B56UxQlQ.js} +1 -1
- package/dist/client/assets/{index-D6rGE1Dy.js → index-B5ThEMVv.js} +1 -1
- package/dist/client/assets/{index-_sXoF1Et.js → index-BF84lJVg.js} +1 -1
- package/dist/client/assets/{index-Cc2tAO7N.js → index-BTzPon2g.js} +1 -1
- package/dist/client/assets/{index-CS_ks7u-.js → index-BolBI6We.js} +1 -1
- package/dist/client/assets/{index-3i5Lrx2p.js → index-C-8MMckq.js} +1 -1
- package/dist/client/assets/{index-DnYPqGbF.js → index-CgyS8r2N.js} +1 -1
- package/dist/client/assets/{index-B_jqJjWZ.js → index-DENKcYcS.js} +2 -2
- package/dist/client/assets/{index-Chkg10uz.js → index-FFwf6GxR.js} +1 -1
- package/dist/client/assets/{index-E9kwMDzy.js → index-dgt2x4f0.js} +1 -1
- package/dist/client/assets/{index-DwgW_YLd.js → index-lKRc-B2A.js} +1 -1
- package/dist/client/assets/{index-redirect-B6SWpWIS.js → index-redirect-Dut_a5dF.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DSiFdm1_.js → infiniteQueryObserver-C7Uln0XD.js} +1 -1
- package/dist/client/assets/{infra-billing-4kvUQS8R.js → infra-billing-Dx8uz0-w.js} +1 -1
- package/dist/client/assets/{input-D3d-YnPi.js → input-Bk2HB5O3.js} +1 -1
- package/dist/client/assets/{input-CPX_K4na.js → input-DogQHywC.js} +1 -1
- package/dist/client/assets/{input-CUqzZQqX.js → input-tXT-Wox5.js} +1 -1
- package/dist/client/assets/{integration-icon-DG8pRbj-.js → integration-icon-_5MBRgr_.js} +1 -1
- package/dist/client/assets/{label-B42WVwom.js → label-Cs0k-m6j.js} +1 -1
- package/dist/client/assets/{last-preview-page-VDeNxgNa.js → last-preview-page-CenVYwZ4.js} +1 -1
- package/dist/client/assets/{layout-Cg9QXreU.js → layout-DBGRja19.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BQwnmlAz.js → legacy-agents-deep-uMl26xvK.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DPq1EZZB.js → legacy-main-redirect-CXuFuPpb.js} +1 -1
- package/dist/client/assets/{library-C5v9Lai5.js → library-DoG5Ie0E.js} +1 -1
- package/dist/client/assets/{login-CQeYUvND.js → login-Wpdw88ZW.js} +1 -1
- package/dist/client/assets/{markdown-7es2nAha.js → markdown-C9jYeYSi.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DhZPltbk.js → mcp-app-renderer-Daw_I7q9.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Ckxkgwom.js → mcp-oauth-DS1qelEc.js} +1 -1
- package/dist/client/assets/{members-BwpS2FJg.js → members--qvirtrr.js} +1 -1
- package/dist/client/assets/{message-templates-B94eek_d.js → message-templates-DBH9vX_2.js} +1 -1
- package/dist/client/assets/{mini-report-page-CsRp8RBX.js → mini-report-page-3br6bU9c.js} +1 -1
- package/dist/client/assets/{mock-board-CDJcm5pO.js → mock-board-Cf_QAn39.js} +3 -3
- package/dist/client/assets/{monaco-editor-CVsFBD0x.js → monaco-editor-CNayaK1F.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-ByyxXINL.js → monitoring-stats-row-DFU6tS6O.js} +1 -1
- package/dist/client/assets/{multi-select-Dz5xTYyG.js → multi-select-CDztR0_p.js} +1 -1
- package/dist/client/assets/{mustache-CP6S3NLE.js → mustache-Ct1WViP7.js} +1 -1
- package/dist/client/assets/{oauth-callback-Doz3uO24.js → oauth-callback-DtAPqnFu.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BNo5jLbk.js → oauth-callback-ai-provider-C6aEQlcO.js} +1 -1
- package/dist/client/assets/{onboarding-CFbudetK.js → onboarding-DJDE1VnW.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BZFYBphr.js → optimistic-project-sidebar-views-DlzXAEvt.js} +1 -1
- package/dist/client/assets/{org-file-open-context-BUYeSnyZ.js → org-file-open-context-DRCDkoQb.js} +1 -1
- package/dist/client/assets/{organization-choice-D785n-oL.js → organization-choice-BE49gcbV.js} +1 -1
- package/dist/client/assets/{orgs-BYiTsfBK.js → orgs-CeRtpGah.js} +1 -1
- package/dist/client/assets/{page-seo-form-DLdbZSvc.js → page-seo-form-D5kh1HRh.js} +1 -1
- package/dist/client/assets/{pair-Cntzz70t.js → pair-B6Hin7e9.js} +7 -7
- package/dist/client/assets/{plan-ladder-CgZjoFq0.js → plan-ladder-Csr6UBjE.js} +1 -1
- package/dist/client/assets/{popover-D7TbzVGm.js → popover-Cl4cyHKi.js} +1 -1
- package/dist/client/assets/post-calendar-QJM7RYAN.js +1 -0
- package/dist/client/assets/{post-editor-C_EE2ywm.js → post-editor-CYhn95Yv.js} +2 -2
- package/dist/client/assets/{preview-content-BHvFZwTL.js → preview-content-DBjQBZrG.js} +1 -1
- package/dist/client/assets/{preview-dialog-LK5goGiO.js → preview-dialog-Dn_pIRa1.js} +1 -1
- package/dist/client/assets/{profile-C8Ekz_R3.js → profile-CQx-TmeJ.js} +1 -1
- package/dist/client/assets/{project-app-view-w895ELfV.js → project-app-view-jFnYk3eE.js} +1 -1
- package/dist/client/assets/{project-feed-BIeMuQsl.js → project-feed-D75nxQcp.js} +1 -1
- package/dist/client/assets/{project-icon-KCkwxFCZ.js → project-icon-BuqbUr-x.js} +1 -1
- package/dist/client/assets/project-reports-DWm-uWJR.js +1 -0
- package/dist/client/assets/project-tasks-Duc6LSI_.js +1 -0
- package/dist/client/assets/{prompts-ndmFBjqL.js → prompts-B5rwZV4c.js} +1 -1
- package/dist/client/assets/record-editor-C-E7zbTM.js +1 -0
- package/dist/client/assets/{redirect-editor-CguLDdkl.js → redirect-editor-B84TNvjI.js} +1 -1
- package/dist/client/assets/{reports-DlVcHkUD.js → reports-D-yZ-Wc2.js} +2 -2
- package/dist/client/assets/{reports-aVRaDDaG.css → reports-Dl0n8WK0.css} +1 -1
- package/dist/client/assets/{reports-onboarding-Ds5SahYM.js → reports-onboarding-DGhv8XIz.js} +1 -1
- package/dist/client/assets/{reports-tab-DC6c1sVj.js → reports-tab-BVMgFUe2.js} +2 -2
- package/dist/client/assets/reports-v7crByHk.js +1 -0
- package/dist/client/assets/{repositories-CUfjI4El.js → repositories-DiGHrL7S.js} +1 -1
- package/dist/client/assets/{repository-import-picker-OZgXFfxq.js → repository-import-picker-CWcaqZRA.js} +1 -1
- package/dist/client/assets/{repository-picker-Cuj06eQZ.js → repository-picker-CRivKzj4.js} +1 -1
- package/dist/client/assets/{require-capability-naAuPznp.js → require-capability-C7u7jp1-.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BuQC1B0R.js → required-auth-layout-CwdBIPoJ.js} +1 -1
- package/dist/client/assets/{reset-password-C-TuQEuk.js → reset-password-BHgwES8v.js} +1 -1
- package/dist/client/assets/{resizable-BSTHeCGD.js → resizable-DIEei5Nc.js} +1 -1
- package/dist/client/assets/resolve-tab-icon-BUARGywX.js +1 -0
- package/dist/client/assets/{review-settings-DPAP3K_X.js → review-settings-zEeQ7BQa.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-DSqyN-4h.js → rich-text-link-control-DMdnHqKK.js} +1 -1
- package/dist/client/assets/{roles-p5A3Dtl6.js → roles-fEn4faea.js} +1 -1
- package/dist/client/assets/route-BjIc1ieH.js +1 -0
- package/dist/client/assets/{route-DBh4p0P2.js → route-DvW7i0hq.js} +1 -1
- package/dist/client/assets/route-bTDvHjba.js +1 -0
- package/dist/client/assets/{route-page-header-DqB3P7Mp.js → route-page-header-Xg5aJJ8E.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-CgZ8SmOe.js → runnable-block-editor-DkZlr_sK.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-D9wQaDsx.js → sandbox-lifecycle-context-BDoJSb72.js} +1 -1
- package/dist/client/assets/{schema-B6bqanRf.js → schema--kermd7v.js} +1 -1
- package/dist/client/assets/{scroll-area-bbynZh9-.js → scroll-area-BixZeGr6.js} +1 -1
- package/dist/client/assets/{search-input-Btpivanp.js → search-input-CtJ3GoHi.js} +1 -1
- package/dist/client/assets/{search-toggle-CPZhZrMT.js → search-toggle-T2SJkj_f.js} +1 -1
- package/dist/client/assets/{secret-picker-AWBv6wFY.js → secret-picker-CgBKoFOW.js} +1 -1
- package/dist/client/assets/{secrets-Dj_h5xgB.js → secrets-BZ-0w0FL.js} +1 -1
- package/dist/client/assets/{sections-editor-DHlfw38F.js → sections-editor-N3f4thFM.js} +1 -1
- package/dist/client/assets/{select-jSjoqSVI.js → select-h9MChHy3.js} +1 -1
- package/dist/client/assets/{select-model-xbu3VazG.js → select-model-D1s0B-4a.js} +1 -1
- package/dist/client/assets/{seo-editor-cQIPvPvE.js → seo-editor-CVXbGA0g.js} +1 -1
- package/dist/client/assets/{separator-CzwHfLvM.js → separator-CaMo_8bZ.js} +1 -1
- package/dist/client/assets/{settings-tab-CeOX7aTs.js → settings-tab-Cx5LuXK6.js} +1 -1
- package/dist/client/assets/{sheet-D_ZIeH1i.js → sheet-Dw1ItaI1.js} +1 -1
- package/dist/client/assets/{shell-layout-5RFwQBw2.js → shell-layout-hfd-Rsky.js} +1 -1
- package/dist/client/assets/{skill-preview-CNoU4Qye.js → skill-preview-kh6jk1N1.js} +1 -1
- package/dist/client/assets/{skills-BJkniNrS.js → skills-BQXTPxai.js} +1 -1
- package/dist/client/assets/{sso-B9hnmDuf.js → sso-DFThiQv2.js} +1 -1
- package/dist/client/assets/{suggestion-U-2vYvOO.js → suggestion-C-l_m-Iq.js} +1 -1
- package/dist/client/assets/{switch-CxeV46Qg.js → switch-DDOTcJub.js} +1 -1
- package/dist/client/assets/{synced-repos-21EGZfBM.js → synced-repos-BiEf25CV.js} +1 -1
- package/dist/client/assets/tab-icon-glyph-CCDSTXNA.js +1 -0
- package/dist/client/assets/{table-C-Py-wTW.js → table-B9DVZyKq.js} +1 -1
- package/dist/client/assets/{tabs-C3x66yHR.js → tabs-C_iZ_d9V.js} +1 -1
- package/dist/client/assets/{task-board-DfS5a_U6.js → task-board-BobaVaho.js} +1 -1
- package/dist/client/assets/{task-route-D4Lm7oMd.js → task-route-Dnr518OS.js} +1 -1
- package/dist/client/assets/{task-status-BVsZxsbL.js → task-status-D3uvwn5F.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BPvIiWmk.js → taskboard-analytics-CiuUL9ZA.js} +1 -1
- package/dist/client/assets/tasks-CIUu0GeD.js +1 -0
- package/dist/client/assets/{tasks-DiyaPFMr.js → tasks-t-DjWmHg.js} +1 -1
- package/dist/client/assets/{textarea-BWwZU_t6.js → textarea-DFxboHvf.js} +1 -1
- package/dist/client/assets/{thread-analytics-DUYI7gXn.js → thread-analytics-CWflQv2z.js} +1 -1
- package/dist/client/assets/{thread-button-C_OQPTk1.js → thread-button-PSWdIC9E.js} +1 -1
- package/dist/client/assets/{thread-intent-E5sYh_tC.js → thread-intent-Dt8gew3X.js} +1 -1
- package/dist/client/assets/{thread-route-BZ26YLl1.js → thread-route-D-8nn5UF.js} +1 -1
- package/dist/client/assets/{thread-route-BDTLcWS1.js → thread-route-RSNRkwvI.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CsPcwFou.js → thread-sheet-body-CH_NXDCT.js} +1 -1
- package/dist/client/assets/{toggle-group-Br61F69t.js → toggle-group-DlVPleht.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DAWIeeny.js → toolbar-icon-button-1g38Z4nR.js} +1 -1
- package/dist/client/assets/{tooltip-MGIMGAoz.js → tooltip-DIRtUFAS.js} +1 -1
- package/dist/client/assets/{track-DRMUb5wX.js → track-BakI9k8V.js} +1 -1
- package/dist/client/assets/{types-BobDzo_S.js → types-D6O0nIDe.js} +1 -1
- package/dist/client/assets/{usage-stats-CtwYJCDG.js → usage-stats-DXttBGal.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D3QOmX-C.js → use-ai-providers-CDQwEgy1.js} +1 -1
- package/dist/client/assets/{use-automations-cNW48WkH.js → use-automations-DreCy0ml.js} +1 -1
- package/dist/client/assets/{use-autosave-VCuxTv0J.js → use-autosave-DxbcFucd.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BuSwVwXM.js → use-connect-companion-CEulwd_N.js} +1 -1
- package/dist/client/assets/{use-connection-BhRHLAsr.js → use-connection-B1oChjwE.js} +1 -1
- package/dist/client/assets/{use-copy-BF-mjGgx.js → use-copy-C2Dqd69S.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DwVcqONE.js → use-create-virtual-mcp-CvskdWa9.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DCvnbugy.js → use-date-fns-locale-D-_20LiT.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-jBJVBJsX.js → use-debounced-autosave-DOvdbxcW.js} +1 -1
- package/dist/client/assets/{use-debounced-value-I_7zwW8J.js → use-debounced-value-ftnFbUev.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Doeu9LgP.js → use-deco-credits-Ca9AZth-.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BnXMCuEf.js → use-decopilot-events-BZXzIc0_.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CvMWFyh1.js → use-delete-connection-CXR2Hk99.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BetxU96z.js → use-deployment-admin-BIt-gPh7.js} +1 -1
- package/dist/client/assets/{use-entitlements-CObs1qD4.js → use-entitlements-CkDkMj8V.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url--bVRoyz9.js → use-fast-preview-draft-url-Dzb173Hu.js} +1 -1
- package/dist/client/assets/{use-file-configs-DigsDSAK.js → use-file-configs-DcNK_YN2.js} +1 -1
- package/dist/client/assets/{use-in-settings-kPZjTMQr.js → use-in-settings-C437t0IU.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-R-FVBBxh.js → use-infinite-scroll-DUw2cdzz.js} +1 -1
- package/dist/client/assets/{use-join-requests-BUHZc4Mq.js → use-join-requests-CAnj2bpz.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-CZ5Ai-Nm.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-ermcBJaV.js → use-mcp-auth-status-ClDyNzTM.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BdNrVAJP.js → use-mcp-client-CU_FCTCe.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-1Ewo80b8.js → use-mcp-prompts-BXny2QK-.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Cu0xFgEP.js → use-mcp-tools-oFgxTj8x.js} +1 -1
- package/dist/client/assets/{use-members-hbcweNuZ.js → use-members-i7C6Z140.js} +1 -1
- package/dist/client/assets/{use-mobile-beNLxD1C.js → use-mobile-Cbvk9fOz.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C6DjZGwr.js → use-navigate-to-agent-DyTF0Lyf.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-y3R__MyB.js → use-open-billing-url-_aC1zwHG.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Cn5VVAMk.js → use-org-auth-client-CfKmGrN8.js} +1 -1
- package/dist/client/assets/{use-org-fs-iJQRZ_Y8.js → use-org-fs-d-BnDdhq.js} +1 -1
- package/dist/client/assets/{use-org-sso-DUkP7wB6.js → use-org-sso-ZTjMpX5r.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B_L60GhE.js → use-organization-roles-DZlg8Hfp.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DkOGSUvX.js → use-organization-settings-CMA9ND7U.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-rE0Chr-2.js → use-panel-navigate-BWxDL_y0.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-1YdimLRn.js → use-project-native-view-presence-B0diskSL.js} +1 -1
- package/dist/client/assets/{use-project-scope-P0x76zE6.js → use-project-scope-D9Fk-jYc.js} +1 -1
- package/dist/client/assets/{use-releases-B1QdX0n3.js → use-releases-BayG0lgk.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-rG5xwYUZ.js → use-reports-diagnostic-DUPyvMba.js} +1 -1
- package/dist/client/assets/{use-route-default-main-D9XS7l59.js → use-route-default-main-BiN9W2_-.js} +1 -1
- package/dist/client/assets/{use-secrets-omlZfkaj.js → use-secrets-BAZmLm_N.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-D8Bv__bX.js → use-section-preview-base-C5zOiMA7.js} +1 -1
- package/dist/client/assets/{use-session-runtime-DdWkBfbN.js → use-session-runtime-D80yRYIq.js} +1 -1
- package/dist/client/assets/{use-tags-CTTUJ_N1.js → use-tags-BDgIyx9p.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CnU57ib7.js → use-task-board-analytics-D5ljpbmD.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DDYUL_Qx.js → use-task-metadata-eDRjASCy.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-Dr_m25eO.js → use-thread-analytics-DUillNwT.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DM_M_g6a.js → use-thread-outputs-CYRX7vXz.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DfNb-iFO.js → use-virtual-mcp-DxRgkAmH.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-laZpEz7Z.js +1 -0
- package/dist/client/assets/{useQueries-o0vNhPOA.js → useQueries-C35tOi1p.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CHytIa74.js +1 -0
- package/dist/client/assets/{users-DoJNHPyq.js → users-Bvd481dh.js} +1 -1
- package/dist/client/assets/{utils-YiROKHsB.js → utils-DaLEeIqN.js} +1 -1
- package/dist/client/assets/variant-calendar-Yxx1thM6.js +1 -0
- package/dist/client/assets/{variant-matcher-override-Dw_V_0pd.js → variant-matcher-override-Bd04-QVj.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BzLcGe3J.js → view-mode-toggle-CQjVVvAT.js} +1 -1
- package/dist/client/assets/{virtual-mcp-VXYym_wm.js → virtual-mcp-D5GtCHWU.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-ucQZeOf-.js +0 -1
- package/dist/client/assets/agent-assets-DRURWRvp.js +0 -1
- package/dist/client/assets/agent-deck-96Di6sOJ.js +0 -1
- package/dist/client/assets/agent-library-file-BlvILtIR.js +0 -1
- package/dist/client/assets/agent-settings-CeWV6MPi.js +0 -1
- package/dist/client/assets/agent-site-editor-code-orvWD6S7.js +0 -2
- package/dist/client/assets/agent-view-BhpD7HoJ.js +0 -1
- package/dist/client/assets/api-keys-BB-GxSyT.js +0 -1
- package/dist/client/assets/app-editor-BYBxWW6P.js +0 -1
- package/dist/client/assets/category-editor-zXprfyEx.js +0 -1
- package/dist/client/assets/context-BN_AZdQK.js +0 -1
- package/dist/client/assets/post-calendar-C1z8ltmP.js +0 -1
- package/dist/client/assets/project-reports-Cl2HONmy.js +0 -1
- package/dist/client/assets/project-tasks-BIMrLh_c.js +0 -1
- package/dist/client/assets/record-editor-DjlSkTMR.js +0 -1
- package/dist/client/assets/reports-D5LirKe3.js +0 -1
- package/dist/client/assets/route-CKMOQ40u.js +0 -1
- package/dist/client/assets/route-CpKC5KjI.js +0 -1
- package/dist/client/assets/tasks-DcFwVI3V.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-DQnZor4-.js +0 -1
- package/dist/client/assets/useInfiniteQuery-U5kS7Aw3.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BGK64Vi3.js +0 -1
- package/dist/client/assets/variant-calendar-h0YzSol5.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,j as i}from"./index-B_jqJjWZ.js";import{ChatLayout as p}from"./index-D6rGE1Dy.js";import{S as e}from"./settings-tab-CeOX7aTs.js";import{b as n}from"./thread-route-BDTLcWS1.js";import"./use-mobile-beNLxD1C.js";import"./thread-button-C_OQPTk1.js";import"./use-in-settings-kPZjTMQr.js";import"./sheet-D_ZIeH1i.js";import"./X-tomqNIg1.js";import"./tooltip-MGIMGAoz.js";import"./index-CS_ks7u-.js";import"./use-panel-navigate-rE0Chr-2.js";import"./use-project-scope-P0x76zE6.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-D9XS7l59.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./agent-icon-CP9iXRWW.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./Check-Blxq8j59.js";import"./ChevronUp-CRNjHjTK.js";import"./UserSquare-DKTJMzlh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./Share07-DV5DThxW.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./Zap-DMCGUdZC.js";import"./toolbar-icon-button-DAWIeeny.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./download-app-dialog-Cg2Fsige.js";import"./dialog-D_eZEQVv.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BuQC1B0R.js";import"./autosend-DxvfLrdl.js";import"./use-org-sso-DUkP7wB6.js";import"./resizable-BSTHeCGD.js";import"./route-page-header-DqB3P7Mp.js";import"./extract-connection-data-IvHnTVAw.js";import"./metadata-D72DunRR.js";import"./connection-vEOaKzQz.js";import"./chat-context-zkHg9OWQ.js";import"./thread-intent-E5sYh_tC.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-CObs1qD4.js";import"./use-ai-providers-D3QOmX-C.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BnXMCuEf.js";import"./use-organization-settings-DkOGSUvX.js";import"./build-improve-prompt-doc-D2Ll2Rce.js";import"./empty-state-DdD7u29c.js";import"./use-date-fns-locale-DCvnbugy.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-BhRHLAsr.js";import"./mcp-oauth-Ckxkgwom.js";import"./alert-dialog-B5hf3Zq6.js";import"./textarea-BWwZU_t6.js";import"./use-debounced-autosave-jBJVBJsX.js";import"./add-connection-dialog-DGaBiFHb.js";import"./collection-search-DIxBrmSt.js";import"./connection-card-DvPe_M7v.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-BbjSV6aw.js";import"./form-C7tLG-xD.js";import"./label-B42WVwom.js";import"./input-CUqzZQqX.js";import"./select-jSjoqSVI.js";import"./connection-form-helpers-DplEqD9m.js";import"./authenticate-and-persist-oauth-ByuGS_gG.js";import"./collection-tabs-BAPv5IF9.js";import"./badge-DXHGQv94.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./file-type-icon-ClDaqk3f.js";import"./use-org-fs-iJQRZ_Y8.js";import"./checkbox-K4FR-PUT.js";import"./search-input-Btpivanp.js";import"./use-mcp-auth-status-ermcBJaV.js";import"./types-BobDzo_S.js";import"./use-mcp-tools-Cu0xFgEP.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./utils-CVEq3hMx.js";import"./switch-CxeV46Qg.js";import"./popover-D7TbzVGm.js";import"./scroll-area-bbynZh9-.js";import"./use-project-native-view-presence-1YdimLRn.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DigsDSAK.js";import"./site-slug-DebpOoQq.js";import"./optimistic-project-sidebar-views-BZFYBphr.js";import"./virtual-mcp-VXYym_wm.js";import"./repository-import-picker-OZgXFfxq.js";import"./use-navigate-to-agent-C6DjZGwr.js";import"./repository-picker-Cuj06eQZ.js";import"./github-icon-CfU12Xim.js";import"./use-debounced-value-I_7zwW8J.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-AWBv6wFY.js";import"./use-secrets-omlZfkaj.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";function s(){const t=m.c(2),o=n();let r;return t[0]!==o?(r=i.jsx(e,{virtualMcpId:o}),t[0]=o,t[1]=r):r=t[1],r}function zo(){const t=m.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(p.Content,{children:i.jsx(s,{})}),t[0]=o):o=t[0],o}export{zo as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/file-explorer-D27HdHX3.js","assets/index-B_jqJjWZ.js","assets/index-DFsKuQKl.css","assets/agent-icon-CP9iXRWW.js","assets/AlertCircle-BxsvjprR.js","assets/Tool01-BCsmpwCz.js","assets/ArrowUp-DPWXMpl2.js","assets/ArrowLeft-C98PG333.js","assets/ArrowRight-CK7-YvUr.js","assets/ZoomOut-CvfOKBlv.js","assets/Globe04-95dd8QSP.js","assets/CheckCircle-DS--6hmh.js","assets/Check-Blxq8j59.js","assets/ChevronUp-CRNjHjTK.js","assets/UserSquare-DKTJMzlh.js","assets/Copy01-DmLSY0Qf.js","assets/CreditCard01-C6GC8NM-.js","assets/DotsVertical-B2eyM1bc.js","assets/Eye-DDS_VF-Y.js","assets/Share07-DV5DThxW.js","assets/XClose-DKTON5RG.js","assets/Image01-C1vTsGg9.js","assets/Key01-CfEGZMt9.js","assets/LayoutLeft-xPkXxcb6.js","assets/Link01-CvcI1eLv.js","assets/LinkExternal01-DH3oN4WK.js","assets/Monitor01-B9ABYuV_.js","assets/Sun-C3em9BZW.js","assets/Palette-DJJWQUTk.js","assets/Plus-GxHWJNZK.js","assets/SearchMd-QgF27GDM.js","assets/Trash01-BgJo-uHb.js","assets/Upload01-BNcthBU9.js","assets/User01-DvYjRkyx.js","assets/Users01-DqJ21DOW.js","assets/X-tomqNIg1.js","assets/Zap-DMCGUdZC.js","assets/scroll-area-bbynZh9-.js","assets/select-jSjoqSVI.js","assets/index-CS_ks7u-.js","assets/tooltip-MGIMGAoz.js","assets/chat-context-zkHg9OWQ.js","assets/use-panel-navigate-rE0Chr-2.js","assets/thread-route-BDTLcWS1.js","assets/use-project-scope-P0x76zE6.js","assets/use-virtual-mcp-DfNb-iFO.js","assets/use-mcp-client-BdNrVAJP.js","assets/auth-pb03Kzig.js","assets/github-repo-BknN0SVI.js","assets/autosend-DxvfLrdl.js","assets/thread-intent-E5sYh_tC.js","assets/slugify-CEUa2lfQ.js","assets/hooks-BdWJM6ej.js","assets/backoff-8mStPHYB.js","assets/task-board-DfS5a_U6.js","assets/schema-B6bqanRf.js","assets/use-is-desktop-app-BNujXJc_.js","assets/use-entitlements-CObs1qD4.js","assets/use-ai-providers-D3QOmX-C.js","assets/location-oTTXFrSF.js","assets/use-decopilot-events-BnXMCuEf.js","assets/use-organization-settings-DkOGSUvX.js","assets/editor-z3_N_jkd.js","assets/shell-layout-5RFwQBw2.js","assets/avatar-D9bHXtJ-.js","assets/download-app-dialog-Cg2Fsige.js","assets/dialog-D_eZEQVv.js","assets/command-CfliK-Cc.js","assets/index-DwgW_YLd.js","assets/integration-icon-DG8pRbj-.js","assets/project-icon-KCkwxFCZ.js","assets/required-auth-layout-BuQC1B0R.js","assets/use-org-sso-DUkP7wB6.js","assets/shell-layout-CE2Eihra.css","assets/save-changes-debug-nBi-n9eV.js","assets/sandbox-git-api-B1R0585s.js","assets/sandbox-url-D3mC8qhT.js","assets/input-CUqzZQqX.js","assets/alert-dialog-B5hf3Zq6.js","assets/utils-YiROKHsB.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as _,m as w,K as P,b as F,X as R,j as p,r as k,aF as A,h as N,u as q}from"./index-B_jqJjWZ.js";import{A as C}from"./agent-view-guard-CR5g29BH.js";import{F as B}from"./feature-gate-BWDpzS9z.js";import{b as K}from"./chat-context-zkHg9OWQ.js";import{d as M,c as $}from"./sandbox-lifecycle-context-D9wQaDsx.js";import{b as z}from"./sandbox-url-D3mC8qhT.js";import{E as G}from"./empty-state-DdD7u29c.js";import{u as L}from"./use-is-desktop-app-BNujXJc_.js";import"./use-main-panel-tabs-DQnZor4-.js";import"./use-route-default-main-D9XS7l59.js";import"./Share07-DV5DThxW.js";import"./Monitor01-B9ABYuV_.js";import"./use-connection-BhRHLAsr.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./use-mcp-tools-Cu0xFgEP.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./types-BobDzo_S.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-P0x76zE6.js";import"./github-repo-BknN0SVI.js";import"./index-DnYPqGbF.js";import"./ArrowUp-DPWXMpl2.js";import"./gateway-client-BS6ihzBm.js";import"./tooltip-MGIMGAoz.js";import"./index-CS_ks7u-.js";import"./dialog-D_eZEQVv.js";import"./X-tomqNIg1.js";import"./drawer-BbjSV6aw.js";import"./collection-search-DIxBrmSt.js";import"./SearchMd-QgF27GDM.js";import"./use-mobile-beNLxD1C.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./index-CFR2L-q4.js";import"./form-C7tLG-xD.js";import"./label-B42WVwom.js";import"./input-CUqzZQqX.js";import"./org-file-open-context-BUYeSnyZ.js";import"./use-panel-navigate-rE0Chr-2.js";import"./thread-route-BDTLcWS1.js";import"./input-CPX_K4na.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./User01-DvYjRkyx.js";import"./Globe04-95dd8QSP.js";import"./UserSquare-DKTJMzlh.js";import"./agent-icon-CP9iXRWW.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./CheckCircle-DS--6hmh.js";import"./Check-Blxq8j59.js";import"./ChevronUp-CRNjHjTK.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./Users01-DqJ21DOW.js";import"./Zap-DMCGUdZC.js";import"./download-app-dialog-Cg2Fsige.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./required-auth-layout-BuQC1B0R.js";import"./autosend-DxvfLrdl.js";import"./use-org-sso-DUkP7wB6.js";import"./chat-draft-DSG5ngj7.js";import"./use-session-runtime-DdWkBfbN.js";import"./thread-intent-E5sYh_tC.js";import"./slugify-CEUa2lfQ.js";import"./select-jSjoqSVI.js";import"./usage-stats-CtwYJCDG.js";import"./use-copy-BF-mjGgx.js";import"./markdown-7es2nAha.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-entitlements-CObs1qD4.js";import"./tabs-C3x66yHR.js";import"./use-deco-credits-Doeu9LgP.js";import"./use-ai-providers-D3QOmX-C.js";import"./toggle-group-Br61F69t.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-y3R__MyB.js";import"./decopilot-TYyHvkDT.js";import"./checkbox-K4FR-PUT.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-D7TbzVGm.js";import"./use-organization-settings-DkOGSUvX.js";import"./index-_sXoF1Et.js";import"./input-D3d-YnPi.js";import"./suggestion-U-2vYvOO.js";import"./use-org-fs-iJQRZ_Y8.js";import"./question-004-sINsf4GQ.js";import"./use-members-hbcweNuZ.js";import"./use-org-auth-client-Cn5VVAMk.js";import"./feature-paywall-BMHKK3Z9.js";import"./plan-ladder-CgZjoFq0.js";import"./add-connection-dialog-DGaBiFHb.js";import"./extract-connection-data-IvHnTVAw.js";import"./metadata-D72DunRR.js";import"./connection-vEOaKzQz.js";import"./connection-card-DvPe_M7v.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-BWwZU_t6.js";import"./connection-form-helpers-DplEqD9m.js";import"./authenticate-and-persist-oauth-ByuGS_gG.js";import"./mcp-oauth-Ckxkgwom.js";import"./collection-tabs-BAPv5IF9.js";import"./badge-DXHGQv94.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./pair-Cntzz70t.js";import"./collapsible-C198MfkN.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DhZPltbk.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-D_ZIeH1i.js";import"./use-navigate-to-agent-C6DjZGwr.js";import"./use-thread-outputs-DM_M_g6a.js";import"./file-type-icon-ClDaqk3f.js";import"./use-task-metadata-DDYUL_Qx.js";import"./use-project-native-view-presence-1YdimLRn.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DigsDSAK.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-VXYym_wm.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BnXMCuEf.js";import"./sandbox-start-errors-BK_aDCyt.js";function V(e){const t=_.c(14),{orgSlug:m,virtualMcpId:i,branch:o,threadId:r,enabled:b}=e,s=b===void 0?!0:b;let l;t[0]!==o||t[1]!==m||t[2]!==r||t[3]!==i?(l=P.sandboxRepoDir(m,i,o,r),t[0]=o,t[1]=m,t[2]=r,t[3]=i,t[4]=l):l=t[4];let n;t[5]!==o||t[6]!==m||t[7]!==r||t[8]!==i?(n=async()=>{const h=z({orgSlug:m,virtualMcpId:i,branch:o,threadId:r},"config"),c=await fetch(h);return c.ok?(await c.json()).repoDir??null:null},t[5]=o,t[6]=m,t[7]=r,t[8]=i,t[9]=n):n=t[9];let a;return t[10]!==s||t[11]!==l||t[12]!==n?(a={queryKey:l,queryFn:n,enabled:s,staleTime:1/0},t[10]=s,t[11]=l,t[12]=n,t[13]=a):a=t[13],w(a).data??null}const O=k.lazy(()=>A(()=>import("./file-explorer-D27HdHX3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79])).then(e=>({default:e.FileExplorer})));function Q(e){const t=_.c(26),{openPath:m}=e,i=F(),{org:o}=R(),{currentBranch:r,taskId:b,virtualMcpId:s}=K(),l=L(),n=M(),a=$();n.vmEntry,a.lifecycle.phase;const D=l,h=s??"",c=r??"",g=b??null,E=D;let y;t[0]!==o.slug||t[1]!==h||t[2]!==c||t[3]!==g||t[4]!==E?(y={orgSlug:o.slug,virtualMcpId:h,branch:c,threadId:g,enabled:E},t[0]=o.slug,t[1]=h,t[2]=c,t[3]=g,t[4]=E,t[5]=y):y=t[5],V(y);const I=null;if(!s||!r){let d;t[6]!==i?(d=i("mainPanelTabs.codeTab.noSandboxToBrowse"),t[6]=i,t[7]=d):d=t[7];let x;t[8]!==i?(x=i("mainPanelTabs.codeTab.noSandboxToBrowseDescription"),t[8]=i,t[9]=x):x=t[9];let j;return t[10]!==d||t[11]!==x?(j=p.jsx(G,{className:"h-full",title:d,description:x}),t[10]=d,t[11]=x,t[12]=j):j=t[12],j}let u;t[13]!==I||t[14]!==i?(u=I,t[13]=I,t[14]=i,t[15]=u):u=t[15];let S;t[16]===Symbol.for("react.memo_cache_sentinel")?(S=p.jsx("div",{className:"h-full flex items-center justify-center",children:p.jsx(N,{className:"size-5 text-muted-foreground"})}),t[16]=S):S=t[16];const T=b??null;let f;t[17]!==r||t[18]!==m||t[19]!==o.slug||t[20]!==T||t[21]!==s?(f=p.jsx("div",{className:"flex-1 relative overflow-hidden bg-background",children:p.jsx(k.Suspense,{fallback:S,children:p.jsx(O,{orgSlug:o.slug,virtualMcpId:s,branch:r,threadId:T,openPath:m})})}),t[17]=r,t[18]=m,t[19]=o.slug,t[20]=T,t[21]=s,t[22]=f):f=t[22];let v;return t[23]!==u||t[24]!==f?(v=p.jsxs("div",{className:"flex flex-col w-full h-full",children:[u,f]}),t[23]=u,t[24]=f,t[25]=v):v=t[25],v}function qr(){const e=_.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const m=q(t),o=("file"in m&&typeof m.file=="string"?m.file:void 0)??null;let r;return e[1]!==o?(r=p.jsx(C,{tabId:"code",children:p.jsx(B,{feature:"cms",children:p.jsx(Q,{openPath:o})})}),e[1]=o,e[2]=r):r=e[2],r}export{qr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as s,j as e,M as l}from"./index-B_jqJjWZ.js";import{ChatLayout as u}from"./index-D6rGE1Dy.js";import{AppViewContent as c}from"./project-app-view-w895ELfV.js";import{S as d}from"./settings-tab-CeOX7aTs.js";import{a as f}from"./use-virtual-mcp-DfNb-iFO.js";import"./use-mobile-beNLxD1C.js";import"./thread-button-C_OQPTk1.js";import"./use-in-settings-kPZjTMQr.js";import"./sheet-D_ZIeH1i.js";import"./X-tomqNIg1.js";import"./tooltip-MGIMGAoz.js";import"./index-CS_ks7u-.js";import"./thread-route-BDTLcWS1.js";import"./use-panel-navigate-rE0Chr-2.js";import"./use-project-scope-P0x76zE6.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-D9XS7l59.js";import"./hooks-BdWJM6ej.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./agent-icon-CP9iXRWW.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./Check-Blxq8j59.js";import"./ChevronUp-CRNjHjTK.js";import"./UserSquare-DKTJMzlh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./Share07-DV5DThxW.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./Zap-DMCGUdZC.js";import"./toolbar-icon-button-DAWIeeny.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./download-app-dialog-Cg2Fsige.js";import"./dialog-D_eZEQVv.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BuQC1B0R.js";import"./autosend-DxvfLrdl.js";import"./use-org-sso-DUkP7wB6.js";import"./resizable-BSTHeCGD.js";import"./route-page-header-DqB3P7Mp.js";import"./gateway-client-BS6ihzBm.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-tools-Cu0xFgEP.js";import"./sandbox-lifecycle-context-D9wQaDsx.js";import"./use-session-runtime-DdWkBfbN.js";import"./thread-intent-E5sYh_tC.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-zkHg9OWQ.js";import"./use-entitlements-CObs1qD4.js";import"./use-ai-providers-D3QOmX-C.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BnXMCuEf.js";import"./use-organization-settings-DkOGSUvX.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DhZPltbk.js";import"./types-BobDzo_S.js";import"./site-url-en5df9c-.js";import"./use-connect-companion-BuSwVwXM.js";import"./companions-core-BnuxEm_5.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C8GSbvaz.js";import"./form-C7tLG-xD.js";import"./label-B42WVwom.js";import"./input-CUqzZQqX.js";import"./use-debounced-value-I_7zwW8J.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./useQueries-o0vNhPOA.js";import"./authenticate-and-persist-oauth-ByuGS_gG.js";import"./mcp-oauth-Ckxkgwom.js";import"./track-DRMUb5wX.js";import"./extract-connection-data-IvHnTVAw.js";import"./connection-vEOaKzQz.js";import"./build-improve-prompt-doc-D2Ll2Rce.js";import"./empty-state-DdD7u29c.js";import"./use-date-fns-locale-DCvnbugy.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-BhRHLAsr.js";import"./alert-dialog-B5hf3Zq6.js";import"./textarea-BWwZU_t6.js";import"./use-debounced-autosave-jBJVBJsX.js";import"./add-connection-dialog-DGaBiFHb.js";import"./collection-search-DIxBrmSt.js";import"./connection-card-DvPe_M7v.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-BbjSV6aw.js";import"./select-jSjoqSVI.js";import"./connection-form-helpers-DplEqD9m.js";import"./collection-tabs-BAPv5IF9.js";import"./badge-DXHGQv94.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./file-type-icon-ClDaqk3f.js";import"./use-org-fs-iJQRZ_Y8.js";import"./checkbox-K4FR-PUT.js";import"./search-input-Btpivanp.js";import"./use-mcp-auth-status-ermcBJaV.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./utils-CVEq3hMx.js";import"./switch-CxeV46Qg.js";import"./popover-D7TbzVGm.js";import"./scroll-area-bbynZh9-.js";import"./use-project-native-view-presence-1YdimLRn.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DigsDSAK.js";import"./site-slug-DebpOoQq.js";import"./optimistic-project-sidebar-views-BZFYBphr.js";import"./virtual-mcp-VXYym_wm.js";import"./repository-import-picker-OZgXFfxq.js";import"./use-navigate-to-agent-C6DjZGwr.js";import"./repository-picker-Cuj06eQZ.js";import"./github-icon-CfU12Xim.js";import"./secret-picker-AWBv6wFY.js";import"./use-secrets-omlZfkaj.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const g=l("/shell/$org/org-shell/agent-shell/projects/$agentId/views/$viewId");function w(){const t=s.c(7),{agentId:o,viewId:i}=g.useParams(),a=f(o);let m;t[0]!==a?.metadata?.ui?.layout?.tabs||t[1]!==i?(m=a?.metadata?.ui?.layout?.tabs?.find(n=>n.id===i),t[0]=a?.metadata?.ui?.layout?.tabs,t[1]=i,t[2]=m):m=t[2];const r=m;let p;return t[3]!==o||t[4]!==r||t[5]!==i?(p=r?e.jsx(c,{connectionId:r.view.appId,toolName:r.id,args:r.view.args},i):e.jsx(d,{virtualMcpId:o}),t[3]=o,t[4]=r,t[5]=i,t[6]=p):p=t[6],p}function ei(){const t=s.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(u.Content,{children:e.jsx(w,{})}),t[0]=o):o=t[0],o}export{ei as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o,j as r}from"./index-B_jqJjWZ.js";import{O as m}from"./api-keys-k6o9_ZVL.js";import{R as p}from"./require-capability-naAuPznp.js";import"./AlertCircle-BxsvjprR.js";import"./Copy01-DmLSY0Qf.js";import"./Key01-CfEGZMt9.js";import"./Plus-GxHWJNZK.js";import"./Trash01-BgJo-uHb.js";import"./alert-dialog-B5hf3Zq6.js";import"./dialog-D_eZEQVv.js";import"./X-tomqNIg1.js";import"./input-CUqzZQqX.js";import"./label-B42WVwom.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./access-gate-DsBjN_k-.js";import"./capability-load-error-QLFmZqWG.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,ak as _t,l as wt,h as At,t as ht}from"./index-B_jqJjWZ.js";import{u as Et}from"./chat-context-zkHg9OWQ.js";import{S as Nt}from"./scroll-area-bbynZh9-.js";import{u as Rt,A as Tt}from"./use-section-preview-base-D8Bv__bX.js";import{o as Ct}from"./claim-phase-copy-pJF6tq00.js";import{j as Kt,u as Pt,x as Ft,aZ as Ot,y as Ut,d as $t,a_ as It}from"./runnable-block-editor-CgZ8SmOe.js";import{n as zt,r as Lt}from"./agent-site-editor-content-BlZJF4Kt.js";import"./use-panel-navigate-rE0Chr-2.js";import"./thread-route-BDTLcWS1.js";import"./use-project-scope-P0x76zE6.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./github-repo-BknN0SVI.js";import"./autosend-DxvfLrdl.js";import"./thread-intent-E5sYh_tC.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CObs1qD4.js";import"./use-ai-providers-D3QOmX-C.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BnXMCuEf.js";import"./use-organization-settings-DkOGSUvX.js";import"./select-jSjoqSVI.js";import"./index-CS_ks7u-.js";import"./Check-Blxq8j59.js";import"./ChevronUp-CRNjHjTK.js";import"./UserSquare-DKTJMzlh.js";import"./Share07-DV5DThxW.js";import"./agent-icon-CP9iXRWW.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./X-tomqNIg1.js";import"./Zap-DMCGUdZC.js";import"./dialog-D_eZEQVv.js";import"./input-CUqzZQqX.js";import"./section-preview-url-Csj0_ZDg.js";import"./use-session-runtime-DdWkBfbN.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-Cntzz70t.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-C198MfkN.js";import"./use-copy-BF-mjGgx.js";import"./usage-stats-CtwYJCDG.js";import"./markdown-7es2nAha.js";import"./org-file-open-context-BUYeSnyZ.js";import"./use-mobile-beNLxD1C.js";import"./tooltip-MGIMGAoz.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./download-app-dialog-Cg2Fsige.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./required-auth-layout-BuQC1B0R.js";import"./use-org-sso-DUkP7wB6.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DhZPltbk.js";import"./types-BobDzo_S.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-BS6ihzBm.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./sheet-D_ZIeH1i.js";import"./use-connection-BhRHLAsr.js";import"./use-navigate-to-agent-C6DjZGwr.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./index-CFR2L-q4.js";import"./form-C7tLG-xD.js";import"./label-B42WVwom.js";import"./use-thread-outputs-DM_M_g6a.js";import"./file-type-icon-ClDaqk3f.js";import"./popover-D7TbzVGm.js";import"./utils-YiROKHsB.js";import"./monaco-editor-CVsFBD0x.js";import"./editor-z3_N_jkd.js";import"./calendar-Wk2YDk5Q.js";import"./textarea-BWwZU_t6.js";import"./rich-text-link-control-DSqyN-4h.js";import"./switch-CxeV46Qg.js";import"./combobox-BVFjv7zx.js";import"./alert-dialog-B5hf3Zq6.js";import"./sandbox-url-D3mC8qhT.js";import"./search-input-Btpivanp.js";import"./tabs-C3x66yHR.js";import"./use-debounced-value-I_7zwW8J.js";import"./use-file-configs-DigsDSAK.js";import"./asset-utils-DHewT25o.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-Br61F69t.js";import"./decofile-api-W5b1cAOf.js";import"./sandbox-git-api-B1R0585s.js";import"./agent-view-guard-CR5g29BH.js";import"./use-main-panel-tabs-DQnZor4-.js";import"./use-route-default-main-D9XS7l59.js";import"./use-mcp-tools-Cu0xFgEP.js";import"./index-DnYPqGbF.js";import"./drawer-BbjSV6aw.js";import"./collection-search-DIxBrmSt.js";import"./input-CPX_K4na.js";import"./chat-draft-DSG5ngj7.js";import"./use-deco-credits-Doeu9LgP.js";import"./use-open-billing-url-y3R__MyB.js";import"./decopilot-TYyHvkDT.js";import"./checkbox-K4FR-PUT.js";import"./ai-providers-logos-DD3qZ33J.js";import"./index-_sXoF1Et.js";import"./input-D3d-YnPi.js";import"./suggestion-U-2vYvOO.js";import"./use-org-fs-iJQRZ_Y8.js";import"./question-004-sINsf4GQ.js";import"./use-members-hbcweNuZ.js";import"./use-org-auth-client-Cn5VVAMk.js";import"./feature-paywall-BMHKK3Z9.js";import"./plan-ladder-CgZjoFq0.js";import"./add-connection-dialog-DGaBiFHb.js";import"./extract-connection-data-IvHnTVAw.js";import"./metadata-D72DunRR.js";import"./connection-vEOaKzQz.js";import"./connection-card-DvPe_M7v.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-DplEqD9m.js";import"./authenticate-and-persist-oauth-ByuGS_gG.js";import"./mcp-oauth-Ckxkgwom.js";import"./collection-tabs-BAPv5IF9.js";import"./badge-DXHGQv94.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./sandbox-lifecycle-context-D9wQaDsx.js";import"./use-task-metadata-DDYUL_Qx.js";import"./use-project-native-view-presence-1YdimLRn.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-VXYym_wm.js";import"./feature-gate-BWDpzS9z.js";import"./mustache-CP6S3NLE.js";import"./empty-state-CDIBHplc.js";import"./empty-state-DdD7u29c.js";import"./github-icon-CfU12Xim.js";import"./repository-import-picker-OZgXFfxq.js";import"./repository-picker-Cuj06eQZ.js";function Vt(n,t){const m=(n.title||n.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),i=/^[A-Za-z]/.test(m)&&m.length>0?m:"Section",s=zt(t,i);return{blockKey:s,data:{__resolveType:n.resolveType,name:s}}}function ri(n){const t=jt.c(79),{orgSlug:m,virtualMcpId:i,branch:s,blockKey:p,block:x,meta:a,decofile:l,title:bt,excludeFields:M,schemaPending:lt,previewBaseUrl:ct}=n,D=lt===void 0?!1:lt,H=ct===void 0?null:ct,G=Et()?.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]!==M||t[4]!==a||t[5]!==v?(R=Lt(v,a,M),t[3]=M,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?Ct(p,x,a):p);let C;t[9]!==s||t[10]!==m||t[11]!==i?(C={orgSlug:m,virtualMcpId:i,branch:s},t[9]=s,t[10]=m,t[11]=i,t[12]=C):C=t[12];const{save:S,flush:Q,isPending:W}=Kt(C);let K;t[13]!==s||t[14]!==m||t[15]!==i?(K={orgSlug:m,virtualMcpId:i,branch:s},t[13]=s,t[14]=m,t[15]=i,t[16]=K):K=t[16];const X=Pt(K);let P;t[17]!==S?(P=$t((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(Zt),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 mt=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 st=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=Ft(e);return o.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[r>0&&o.jsx(_t,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("button",{type:"button",onClick:()=>{E(r===0?[]:Ot(g,r)),ft(qt)},title:f,className:wt("min-w-0 truncate rounded-lg 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(It,{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]!==s||t[49]!==g||t[50]!==l||t[51]!==it||t[52]!==et||t[53]!==k||t[54]!==E||t[55]!==mt||t[56]!==st||t[57]!==J||t[58]!==a||t[59]!==m||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(Ut,{schema:b,value:it,onChange:mt,basePath:"",breadcrumbPath:g,onBreadcrumbChange:E,decofile:l,meta:a,onSaveReferencedBlock:Y,previewBaseUrl:h,onAddSectionItem:k,onRequestAddSection:st,sandbox:{orgSlug:m,virtualMcpId:i,branch:s,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(At,{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]=s,t[49]=g,t[50]=l,t[51]=it,t[52]=et,t[53]=k,t[54]=E,t[55]=mt,t[56]=st,t[57]=J,t[58]=a,t[59]=m,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 Z;return t[75]!==B||t[76]!==_||t[77]!==w?(Z=o.jsxs("div",{className:gt,children:[B,_,w]}),t[75]=B,t[76]=_,t[77]=w,t[78]=Z):Z=t[78],Z}function qt(n){return n+1}function Zt(n){return n+1}export{ri 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 U}from"./index-B_jqJjWZ.js";import{u as K}from"./chat-context-zkHg9OWQ.js";import{i as tt}from"./ArrowRight-CK7-YvUr.js";import{i as W}from"./ZoomOut-CvfOKBlv.js";import{n as ot}from"./LinkExternal01-DH3oN4WK.js";import{a0 as et}from"./agent-icon-CP9iXRWW.js";import{f as rt,e as it,b as st,A as at,a as nt,d as mt,c as lt,g as pt}from"./alert-dialog-B5hf3Zq6.js";import{I as q}from"./input-CUqzZQqX.js";import{L as H}from"./label-B42WVwom.js";import{g as ct,q as A,s as j,l as dt,E as ut,f as gt,O as xt,c as ft}from"./agent-site-editor-content-BlZJF4Kt.js";import{d as ht,B as yt,c as bt}from"./block-document-Cjfk5S2Y.js";import{u as jt,a_ as vt}from"./runnable-block-editor-CgZ8SmOe.js";import{a as Et}from"./use-fast-preview-draft-url--bVRoyz9.js";import{u as Ct}from"./use-autosave-VCuxTv0J.js";import{t as Nt}from"./ChevronUp-CRNjHjTK.js";import{C as St,a as wt,b as kt}from"./collapsible-C198MfkN.js";import"./use-panel-navigate-rE0Chr-2.js";import"./thread-route-BDTLcWS1.js";import"./use-project-scope-P0x76zE6.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./github-repo-BknN0SVI.js";import"./autosend-DxvfLrdl.js";import"./thread-intent-E5sYh_tC.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CObs1qD4.js";import"./use-ai-providers-D3QOmX-C.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BnXMCuEf.js";import"./use-organization-settings-DkOGSUvX.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./Check-Blxq8j59.js";import"./UserSquare-DKTJMzlh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./Share07-DV5DThxW.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./X-tomqNIg1.js";import"./Zap-DMCGUdZC.js";import"./agent-view-guard-CR5g29BH.js";import"./use-main-panel-tabs-DQnZor4-.js";import"./use-route-default-main-D9XS7l59.js";import"./use-connection-BhRHLAsr.js";import"./use-mcp-tools-Cu0xFgEP.js";import"./types-BobDzo_S.js";import"./utils-CVEq3hMx.js";import"./index-DnYPqGbF.js";import"./gateway-client-BS6ihzBm.js";import"./tooltip-MGIMGAoz.js";import"./index-CS_ks7u-.js";import"./dialog-D_eZEQVv.js";import"./drawer-BbjSV6aw.js";import"./collection-search-DIxBrmSt.js";import"./use-mobile-beNLxD1C.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./index-CFR2L-q4.js";import"./form-C7tLG-xD.js";import"./org-file-open-context-BUYeSnyZ.js";import"./input-CPX_K4na.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./download-app-dialog-Cg2Fsige.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./required-auth-layout-BuQC1B0R.js";import"./use-org-sso-DUkP7wB6.js";import"./chat-draft-DSG5ngj7.js";import"./use-session-runtime-DdWkBfbN.js";import"./select-jSjoqSVI.js";import"./usage-stats-CtwYJCDG.js";import"./use-copy-BF-mjGgx.js";import"./markdown-7es2nAha.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-C3x66yHR.js";import"./use-deco-credits-Doeu9LgP.js";import"./toggle-group-Br61F69t.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-y3R__MyB.js";import"./decopilot-TYyHvkDT.js";import"./checkbox-K4FR-PUT.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-D7TbzVGm.js";import"./index-_sXoF1Et.js";import"./input-D3d-YnPi.js";import"./suggestion-U-2vYvOO.js";import"./use-org-fs-iJQRZ_Y8.js";import"./question-004-sINsf4GQ.js";import"./use-members-hbcweNuZ.js";import"./use-org-auth-client-Cn5VVAMk.js";import"./feature-paywall-BMHKK3Z9.js";import"./plan-ladder-CgZjoFq0.js";import"./add-connection-dialog-DGaBiFHb.js";import"./extract-connection-data-IvHnTVAw.js";import"./metadata-D72DunRR.js";import"./connection-vEOaKzQz.js";import"./connection-card-DvPe_M7v.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-BWwZU_t6.js";import"./connection-form-helpers-DplEqD9m.js";import"./authenticate-and-persist-oauth-ByuGS_gG.js";import"./mcp-oauth-Ckxkgwom.js";import"./collection-tabs-BAPv5IF9.js";import"./badge-DXHGQv94.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./pair-Cntzz70t.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DhZPltbk.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-D_ZIeH1i.js";import"./use-navigate-to-agent-C6DjZGwr.js";import"./use-thread-outputs-DM_M_g6a.js";import"./file-type-icon-ClDaqk3f.js";import"./sandbox-lifecycle-context-D9wQaDsx.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-DDYUL_Qx.js";import"./use-project-native-view-presence-1YdimLRn.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DigsDSAK.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-VXYym_wm.js";import"./feature-gate-BWDpzS9z.js";import"./scroll-area-bbynZh9-.js";import"./claim-phase-copy-pJF6tq00.js";import"./mustache-CP6S3NLE.js";import"./decofile-api-W5b1cAOf.js";import"./sandbox-git-api-B1R0585s.js";import"./utils-YiROKHsB.js";import"./monaco-editor-CVsFBD0x.js";import"./editor-z3_N_jkd.js";import"./empty-state-CDIBHplc.js";import"./rich-text-link-control-DSqyN-4h.js";import"./empty-state-DdD7u29c.js";import"./github-icon-CfU12Xim.js";import"./repository-import-picker-OZgXFfxq.js";import"./repository-picker-Cuj06eQZ.js";import"./use-debounced-value-I_7zwW8J.js";import"./section-preview-url-Csj0_ZDg.js";import"./index-Cc2tAO7N.js";import"./calendar-Wk2YDk5Q.js";import"./switch-CxeV46Qg.js";import"./combobox-BVFjv7zx.js";import"./search-input-Btpivanp.js";import"./asset-utils-DHewT25o.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(Nt,{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(St,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg 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(wt,{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(kt,{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 Mr({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=jt({orgSlug:h,virtualMcpId:o,branch:d}),l=Et({orgSlug:h,virtualMcpId:o,branch:d}),p=ct(v,"categories"),[i,x,M]=Ct(p,e=>{s.mutate({blockKey:n,data:A(n,"categories",e)})},{isSaving:s.isPending}),E=(e,w)=>x({...i,[e]:w}),T=ht({decofile:u,category:i,previewBaseUrl:m,draftPointer:l}),a=j(i.slug),[B,b]=k.useState(a),[c,C]=k.useState(null),[N,z]=k.useState(!1),O=a?dt(u).filter(e=>e.categorySlugs.includes(a)):[],S=O.length,G=e=>E("slug",e),J=async(e,w)=>{const V=j(i.name);z(!0);try{let f=0;for(const{key:R,payload:I}of gt(u,"posts")){const L=xt(I,e,{name:V,slug:w});L!==I&&(await s.mutateAsync({blockKey:R,data:A(R,"posts",ft(L))}),f+=1)}const F={...i,slug:w};await s.mutateAsync({blockKey:n,data:A(n,"categories",F)}),M(F),U.success(f>0?r("sandbox.categoryEditor.renameSuccessWithPosts",{count:String(f)}):r("sandbox.categoryEditor.renameSuccessNoPosts")),C(null)}catch(f){b(e),C(null),U.error(f instanceof Error?f.message:r("sandbox.categoryEditor.renameFailed"))}finally{z(!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(vt,{isPending:s.isPending,isError:s.isError}),T&&t.jsxs($,{type:"button",variant:"outline",size:"sm",title:r("sandbox.categoryEditor.previewTooltip"),onClick:()=>window.open(T,"_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(ut,{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(H,{htmlFor:"category-slug",children:r("sandbox.categoryEditor.slugLabel")}),t.jsx(q,{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(H,{htmlFor:"category-description",children:r("sandbox.categoryEditor.descriptionLabel")}),t.jsx(q,{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(yt,{value:bt(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(W,{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:O.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(W,{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{Mr as CategoryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as X,a3 as Ne,r as L,j as t,B as U,l as Q,c as _,t as z,ak as ne}from"./index-B_jqJjWZ.js";import{t as re}from"./ChevronUp-CRNjHjTK.js";import{Z as se,R as Z}from"./agent-icon-CP9iXRWW.js";import{I as ee}from"./input-CUqzZQqX.js";import{L as V}from"./label-B42WVwom.js";import{T as Te}from"./textarea-BWwZU_t6.js";import{P as Re,a as Le,b as Fe}from"./popover-D7TbzVGm.js";import{u as Ke}from"./use-ai-providers-D3QOmX-C.js";import{e as ke}from"./index-E9kwMDzy.js";import{u as ie,a_ as Be}from"./runnable-block-editor-CgZ8SmOe.js";import{u as Ce}from"./mustache-CP6S3NLE.js";import{e as ze}from"./claim-phase-copy-pJF6tq00.js";import{u as oe}from"./use-autosave-VCuxTv0J.js";import{RecordEditor as De}from"./record-editor-DjlSkTMR.js";import{CategoryEditor as Oe}from"./category-editor-zXprfyEx.js";import{B as ae,t as xe,v as H,w as He,x as $e,y as Ie,s as S,z as G,C as Ge,D as _e,G as Me,R as le,H as We,A as de,J as ue,K as Ye,L as be,M as Ue,q as Ve,N as Xe}from"./agent-site-editor-content-BlZJF4Kt.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./Check-Blxq8j59.js";import"./UserSquare-DKTJMzlh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./Share07-DV5DThxW.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./X-tomqNIg1.js";import"./Zap-DMCGUdZC.js";import"./index-CFR2L-q4.js";import"./gateway-client-BS6ihzBm.js";import"./dialog-D_eZEQVv.js";import"./form-C7tLG-xD.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-BUYeSnyZ.js";import"./use-mobile-beNLxD1C.js";import"./use-panel-navigate-rE0Chr-2.js";import"./thread-route-BDTLcWS1.js";import"./use-project-scope-P0x76zE6.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./github-repo-BknN0SVI.js";import"./tooltip-MGIMGAoz.js";import"./index-CS_ks7u-.js";import"./suggestion-U-2vYvOO.js";import"./index-Cc2tAO7N.js";import"./rich-text-link-control-DSqyN-4h.js";import"./markdown-7es2nAha.js";import"./avatar-D9bHXtJ-.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./get-initials-D-f_fDFw.js";import"./use-org-auth-client-Cn5VVAMk.js";import"./use-org-fs-iJQRZ_Y8.js";import"./use-session-runtime-DdWkBfbN.js";import"./thread-intent-E5sYh_tC.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-zkHg9OWQ.js";import"./autosend-DxvfLrdl.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CObs1qD4.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BnXMCuEf.js";import"./use-organization-settings-DkOGSUvX.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-Cntzz70t.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-C198MfkN.js";import"./use-copy-BF-mjGgx.js";import"./usage-stats-CtwYJCDG.js";import"./shell-layout-5RFwQBw2.js";import"./download-app-dialog-Cg2Fsige.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./required-auth-layout-BuQC1B0R.js";import"./use-org-sso-DUkP7wB6.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DhZPltbk.js";import"./types-BobDzo_S.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./sheet-D_ZIeH1i.js";import"./use-connection-BhRHLAsr.js";import"./use-navigate-to-agent-C6DjZGwr.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./use-thread-outputs-DM_M_g6a.js";import"./file-type-icon-ClDaqk3f.js";import"./utils-YiROKHsB.js";import"./scroll-area-bbynZh9-.js";import"./select-jSjoqSVI.js";import"./monaco-editor-CVsFBD0x.js";import"./editor-z3_N_jkd.js";import"./calendar-Wk2YDk5Q.js";import"./switch-CxeV46Qg.js";import"./combobox-BVFjv7zx.js";import"./alert-dialog-B5hf3Zq6.js";import"./sandbox-url-D3mC8qhT.js";import"./search-input-Btpivanp.js";import"./tabs-C3x66yHR.js";import"./use-debounced-value-I_7zwW8J.js";import"./use-file-configs-DigsDSAK.js";import"./asset-utils-DHewT25o.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-Br61F69t.js";import"./decofile-api-W5b1cAOf.js";import"./sandbox-git-api-B1R0585s.js";import"./agent-view-guard-CR5g29BH.js";import"./use-main-panel-tabs-DQnZor4-.js";import"./use-route-default-main-D9XS7l59.js";import"./use-mcp-tools-Cu0xFgEP.js";import"./index-DnYPqGbF.js";import"./drawer-BbjSV6aw.js";import"./collection-search-DIxBrmSt.js";import"./input-CPX_K4na.js";import"./chat-draft-DSG5ngj7.js";import"./use-deco-credits-Doeu9LgP.js";import"./use-open-billing-url-y3R__MyB.js";import"./decopilot-TYyHvkDT.js";import"./checkbox-K4FR-PUT.js";import"./ai-providers-logos-DD3qZ33J.js";import"./index-_sXoF1Et.js";import"./input-D3d-YnPi.js";import"./question-004-sINsf4GQ.js";import"./use-members-hbcweNuZ.js";import"./feature-paywall-BMHKK3Z9.js";import"./plan-ladder-CgZjoFq0.js";import"./add-connection-dialog-DGaBiFHb.js";import"./extract-connection-data-IvHnTVAw.js";import"./metadata-D72DunRR.js";import"./connection-vEOaKzQz.js";import"./connection-card-DvPe_M7v.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-DplEqD9m.js";import"./authenticate-and-persist-oauth-ByuGS_gG.js";import"./mcp-oauth-Ckxkgwom.js";import"./collection-tabs-BAPv5IF9.js";import"./badge-DXHGQv94.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./sandbox-lifecycle-context-D9wQaDsx.js";import"./use-task-metadata-DDYUL_Qx.js";import"./use-project-native-view-presence-1YdimLRn.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-VXYym_wm.js";import"./feature-gate-BWDpzS9z.js";import"./empty-state-CDIBHplc.js";import"./empty-state-DdD7u29c.js";import"./github-icon-CfU12Xim.js";import"./repository-import-picker-OZgXFfxq.js";import"./repository-picker-Cuj06eQZ.js";import"./block-document-Cjfk5S2Y.js";import"./section-preview-url-Csj0_ZDg.js";import"./use-fast-preview-draft-url--bVRoyz9.js";const qe={},Je={},Ze=["description","tone","targetAudience"],Qe=["values","dos","avoid","competitors"],et=[{id:"basics",label:"sandbox.blogBrand.tabBasics"},{id:"dos",label:"sandbox.blogBrand.tabDos"},{id:"guardrails",label:"sandbox.blogBrand.tabGuardrails"},{id:"extra",label:"sandbox.blogBrand.tabExtra"}],ge="sandbox.blogBrand.phaseReading",he="sandbox.formats.phaseReading",fe="sandbox.pillars.phaseReading";function tt(B,e){return{name:B("sandbox.formats.starterName"),value:e.length?B("sandbox.formats.starterBody",{sections:e.map(o=>`@${o}`).join(", ")}):B("sandbox.formats.starterBodyNoSections")}}function ka({orgSlug:B,virtualMcpId:e,branch:o,decofile:r,meta:d,onOpenPost:a,onManageCategoryPosts:u}){const p=r[ae],s=X(),m=Ne(),x=ie({orgSlug:B,virtualMcpId:e,branch:o}),b=Ke().length>0,[i,j]=oe(p??qe,n=>{x.mutate({blockKey:ae,data:n})}),v=(n,g)=>j({...i,[n]:g}),P=r[xe],[E,A]=oe(P??Je,n=>x.mutate({blockKey:xe,data:n})),y=H(E.formats),f=n=>A({...E,formats:n}),c=He(d),N=c.map(n=>n.name),w={items:c,hint:s("sandbox.formats.mentionHint"),emptyLabel:s("sandbox.formats.mentionEmpty")},[C,l]=L.useState(!1),[h,k]=L.useState(he),[F,O]=L.useState(!1),[$,I]=L.useState(ge),[q,me]=L.useState(0),[D,M]=L.useState("brand"),[ce,Pe]=L.useState("basics"),W=$e(r,ze(r).map(n=>n.key)),we=async()=>{if(W.length===0)return;O(!0),I(ge);const n=[setTimeout(()=>I("sandbox.blogBrand.phaseInferring"),4e3),setTimeout(()=>I("sandbox.blogBrand.phaseSearching"),15e3)];try{const g=await m.call("BLOG_BRAND_EXTRACT",{blocks:W}),T={...i},R=[];!S(T.companyName)&&g.companyName&&(T.companyName=g.companyName,R.push("companyName")),!S(T.language)&&g.language&&(T.language=g.language,R.push("language"));for(const K of Ze)!S(T[K])&&g[K]&&(T[K]=g[K],R.push(K));for(const K of Qe)G(H(T[K])).length===0&&g[K]?.length&&(T[K]=g[K],R.push(K));j(T),me(K=>K+1),z.success(R.length>0?s("sandbox.blogBrand.extractFilled",{count:String(R.length)}):s("sandbox.blogBrand.extractNothingEmpty")),g.searchedCompetitors&&g.competitors.length===0&&z.info(s("sandbox.blogBrand.noCompetitorsFound"))}catch(g){z.error(g instanceof Error?g.message:s("sandbox.blogBrand.extractFailed"))}finally{for(const g of n)clearTimeout(g);O(!1)}},pe=n=>{const g=new Set(y.map(R=>ue(R.name))),T=n.filter(R=>R.name.trim()&&!g.has(ue(R.name)));return T.length===0?0:(f([...y,...T]),me(R=>R+1),T.length)},Se=()=>{if(pe([tt(s,Ge(N))])===0){z.info(s("sandbox.formats.noNewFormats"));return}z.success(s("sandbox.formats.starterAdded"))},Ee=async()=>{l(!0),k(he);const n=setTimeout(()=>k("sandbox.formats.phaseWriting"),6e3);try{const g=await m.call("BLOG_FORMAT_SUGGEST",{brand:{companyName:S(i.companyName),description:S(i.description),language:S(i.language),tone:S(i.tone),targetAudience:S(i.targetAudience),dos:G(H(i.dos)),avoid:G(H(i.avoid))},sections:c,postStructures:_e(r).map(R=>({title:R.title,sections:R.sections}))}),T=pe(g.formats);if(T===0){z.info(s("sandbox.formats.noNewFormats"));return}z.success(s("sandbox.formats.suggested",{count:String(T)}))}catch(g){z.error(g instanceof Error?g.message:s("sandbox.formats.suggestFailed"))}finally{clearTimeout(n),l(!1)}},J=(n,g)=>t.jsx(je,{rules:H(i[n]),onChange:T=>v(n,T),revision:q,idPrefix:n,...g}),Ae=()=>{switch(ce){case"basics":return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[t.jsx(ye,{id:"brand-company-name",label:s("sandbox.blogBrand.companyNameLabel"),value:S(i.companyName),onChange:n=>v("companyName",n)}),t.jsx(ye,{id:"brand-language",label:s("sandbox.blogBrand.languageLabel"),placeholder:"pt-BR",value:S(i.language),onChange:n=>v("language",n)})]}),t.jsx(te,{id:"brand-description",label:s("sandbox.blogBrand.descriptionLabel"),value:S(i.description),onChange:n=>v("description",n)}),t.jsx(te,{id:"brand-tone",label:s("sandbox.blogBrand.toneLabel"),hint:s("sandbox.blogBrand.toneHint"),value:S(i.tone),onChange:n=>v("tone",n),rows:5}),t.jsx(te,{id:"brand-audience",label:s("sandbox.blogBrand.audienceLabel"),value:S(i.targetAudience),onChange:n=>v("targetAudience",n)})]});case"dos":return t.jsxs("div",{className:"space-y-3",children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:s("sandbox.blogBrand.dosHint")}),J("dos",{add:s("sandbox.blogBrand.addDo"),namePlaceholder:s("sandbox.blogBrand.dosNamePlaceholder"),bodyPlaceholder:s("sandbox.blogBrand.dosBodyPlaceholder")})]});case"guardrails":return t.jsxs("div",{className:"space-y-3",children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:s("sandbox.blogBrand.dontsHint")}),J("avoid",{add:s("sandbox.blogBrand.addDont"),namePlaceholder:s("sandbox.blogBrand.dontsNamePlaceholder"),bodyPlaceholder:s("sandbox.blogBrand.dontsBodyPlaceholder")})]});case"extra":return t.jsxs("div",{className:"space-y-8",children:[t.jsxs("section",{className:"space-y-2",children:[t.jsx(V,{children:s("sandbox.blogBrand.valuesLabel")}),J("values",{add:s("sandbox.blogBrand.addValue"),namePlaceholder:s("sandbox.blogBrand.valuesNamePlaceholder"),bodyPlaceholder:s("sandbox.blogBrand.valuesBodyPlaceholder")})]}),t.jsxs("section",{className:"space-y-2",children:[t.jsx(V,{children:s("sandbox.blogBrand.competitorsLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("sandbox.blogBrand.competitorsHint")}),J("competitors",{add:s("sandbox.blogBrand.addCompetitor"),namePlaceholder:s("sandbox.blogBrand.competitorsNamePlaceholder"),bodyPlaceholder:s("sandbox.blogBrand.competitorsBodyPlaceholder")})]})]})}};return t.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[t.jsxs("div",{className:"flex shrink-0 items-start justify-between gap-4 px-8 pt-6",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx("h2",{className:"text-lg font-semibold",children:s("sandbox.blogContext.title")}),t.jsx("p",{className:"text-sm text-muted-foreground",children:s("sandbox.blogContext.subtitle")})]}),t.jsx(Be,{isPending:x.isPending,isError:x.isError})]}),t.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b px-8",children:[t.jsxs("div",{className:"flex gap-1",children:[t.jsx(Y,{active:D==="brand",onClick:()=>M("brand"),children:s("sandbox.blogContext.tabBrand")}),t.jsx(Y,{active:D==="formats",onClick:()=>M("formats"),children:s("sandbox.blogContext.tabFormats")}),t.jsx(Y,{active:D==="pillars",onClick:()=>M("pillars"),children:s("sandbox.blogContext.tabPillars")}),t.jsx(Y,{active:D==="authors",onClick:()=>M("authors"),children:s("sandbox.blogContext.tabAuthors")}),t.jsx(Y,{active:D==="categories",onClick:()=>M("categories"),children:s("sandbox.blogContext.tabCategories")})]}),D==="brand"&&t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[F&&t.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground","aria-live":"polite",role:"status",children:[t.jsx(se,{size:12,className:"shrink-0 animate-spin"}),t.jsx("span",{className:"truncate",children:s($)})]}),t.jsxs(U,{type:"button",variant:"outline",size:"sm",className:"my-2 shrink-0",disabled:F||W.length===0||!b,title:b?W.length>0?s("sandbox.blogBrand.extractHint",{count:String(W.length)}):s("sandbox.blogBrand.extractNoContent"):s("sandbox.autonomous.noAiProvider"),onClick:()=>{we()},children:[t.jsx(Z,{size:14}),s("sandbox.blogBrand.extractButton")]})]}),D==="formats"&&t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[C&&t.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground","aria-live":"polite",role:"status",children:[t.jsx(se,{size:12,className:"shrink-0 animate-spin"}),t.jsx("span",{className:"truncate",children:s(h)})]}),t.jsx(U,{type:"button",variant:"ghost",size:"sm",className:"my-2 shrink-0",title:s("sandbox.formats.starterHint"),onClick:Se,children:s("sandbox.formats.starterButton")}),t.jsxs(U,{type:"button",variant:"outline",size:"sm",className:"my-2 shrink-0",disabled:C||!b,title:s(b?"sandbox.formats.suggestHint":"sandbox.autonomous.noAiProvider"),onClick:()=>{Ee()},children:[t.jsx(Z,{size:14}),s("sandbox.formats.suggestButton")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:D==="authors"?t.jsx(ve,{kind:"authors",orgSlug:B,virtualMcpId:e,branch:o,decofile:r,hint:s("sandbox.blogContext.authorsHint"),addLabel:s("sandbox.blogContext.addAuthor"),emptyLabel:s("sandbox.blogContext.authorsEmpty"),renderEditor:n=>t.jsx(De,{orgSlug:B,virtualMcpId:e,branch:o,kind:"authors",blockKey:n,block:r[n]},`author:${n}`)}):D==="categories"?t.jsx(ve,{kind:"categories",orgSlug:B,virtualMcpId:e,branch:o,decofile:r,hint:s("sandbox.blogContext.categoriesHint"),addLabel:s("sandbox.blogContext.addCategory"),emptyLabel:s("sandbox.blogContext.categoriesEmpty"),renderEditor:n=>t.jsx(Oe,{orgSlug:B,virtualMcpId:e,branch:o,blockKey:n,block:r[n],decofile:r,meta:d,onManagePosts:g=>u?.(g),onOpenPost:g=>a?.(g)},`category:${n}`)}):D==="pillars"?t.jsx(st,{orgSlug:B,virtualMcpId:e,branch:o,decofile:r,hasAi:b}):D==="formats"?t.jsxs("div",{className:"min-w-0 max-w-3xl space-y-3 px-8 py-6",children:[t.jsx("p",{className:"text-xs text-muted-foreground",children:s("sandbox.formats.hint")}),t.jsx(je,{rules:y,onChange:f,revision:q,idPrefix:"format",add:s("sandbox.formats.add"),namePlaceholder:s("sandbox.formats.namePlaceholder"),bodyPlaceholder:s("sandbox.formats.bodyPlaceholder"),mentions:w,citationWarning:n=>{const g=Ie(n,N);return g.length===0?null:s("sandbox.formats.unknownCitations",{names:g.map(T=>`@${T}`).join(", ")})}})]}):t.jsxs("div",{className:"grid grid-cols-[240px_1fr] gap-8 px-8 py-6",children:[t.jsx("nav",{className:"sticky top-0 h-fit space-y-0.5 rounded-xl border bg-card p-1.5",children:et.map(n=>t.jsx("button",{type:"button",onClick:()=>Pe(n.id),className:Q("w-full rounded-lg px-2.5 py-2 text-left text-sm transition-colors cursor-pointer",ce===n.id?"bg-muted font-medium text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:s(n.label)},n.id))}),t.jsx("div",{className:"min-w-0 max-w-3xl",children:Ae()})]})})]})}function Y(B){const e=_.c(6),{active:o,onClick:r,children:d}=B,a=o?"border-foreground font-medium text-foreground":"border-transparent text-muted-foreground hover:text-foreground";let u;e[0]!==a?(u=Q("-mb-px border-b-2 px-3 py-3 text-sm transition-colors cursor-pointer",a),e[0]=a,e[1]=u):u=e[1];let p;return e[2]!==d||e[3]!==r||e[4]!==u?(p=t.jsx("button",{type:"button",onClick:r,className:u,children:d}),e[2]=d,e[3]=r,e[4]=u,e[5]=p):p=e[5],p}function ye(B){const e=_.c(13),{id:o,label:r,value:d,onChange:a,placeholder:u}=B;let p;e[0]!==o||e[1]!==r?(p=t.jsx(V,{htmlFor:o,children:r}),e[0]=o,e[1]=r,e[2]=p):p=e[2];let s;e[3]!==a?(s=b=>a(b.target.value),e[3]=a,e[4]=s):s=e[4];let m;e[5]!==o||e[6]!==u||e[7]!==s||e[8]!==d?(m=t.jsx(ee,{id:o,value:d,placeholder:u,onChange:s,className:"h-10"}),e[5]=o,e[6]=u,e[7]=s,e[8]=d,e[9]=m):m=e[9];let x;return e[10]!==p||e[11]!==m?(x=t.jsxs("div",{className:"space-y-2",children:[p,m]}),e[10]=p,e[11]=m,e[12]=x):x=e[12],x}function te(B){const e=_.c(16),{id:o,label:r,hint:d,value:a,onChange:u,rows:p}=B,s=p===void 0?3:p;let m;e[0]!==o||e[1]!==r?(m=t.jsx(V,{htmlFor:o,children:r}),e[0]=o,e[1]=r,e[2]=m):m=e[2];let x;e[3]!==d?(x=d&&t.jsx("p",{className:"text-xs text-muted-foreground",children:d}),e[3]=d,e[4]=x):x=e[4];let b;e[5]!==u?(b=v=>u(v.target.value),e[5]=u,e[6]=b):b=e[6];let i;e[7]!==o||e[8]!==s||e[9]!==b||e[10]!==a?(i=t.jsx(Te,{id:o,value:a,rows:s,onChange:b}),e[7]=o,e[8]=s,e[9]=b,e[10]=a,e[11]=i):i=e[11];let j;return e[12]!==m||e[13]!==x||e[14]!==i?(j=t.jsxs("div",{className:"space-y-2",children:[m,x,i]}),e[12]=m,e[13]=x,e[14]=i,e[15]=j):j=e[15],j}function je(B){const e=_.c(40),{rules:o,onChange:r,revision:d,idPrefix:a,add:u,namePlaceholder:p,bodyPlaceholder:s,mentions:m,citationWarning:x}=B,b=X(),[i,j]=L.useState(null);let v;e[0]!==r||e[1]!==o?(v=(C,l)=>r(o.map((h,k)=>k===C?{...h,...l}:h)),e[0]=r,e[1]=o,e[2]=v):v=e[2];const P=v;let E;e[3]!==r||e[4]!==o?(E=C=>{r(o.filter((l,h)=>h!==C)),j(l=>l===null||l<C?l:null)},e[3]=r,e[4]=o,e[5]=E):E=e[5];const A=E;let y;if(e[6]!==s||e[7]!==x||e[8]!==a||e[9]!==m||e[10]!==p||e[11]!==i||e[12]!==A||e[13]!==P||e[14]!==d||e[15]!==o||e[16]!==b){let C;e[18]!==s||e[19]!==x||e[20]!==a||e[21]!==m||e[22]!==p||e[23]!==i||e[24]!==A||e[25]!==P||e[26]!==d||e[27]!==b?(C=(l,h)=>{const k=i===h,F=k?x?.(l.value):null;return t.jsxs("li",{className:"group/item bg-card",children:[t.jsxs("div",{className:"flex items-center gap-1 pr-2",children:[t.jsxs("button",{type:"button",onClick:()=>j(k?null:h),"aria-expanded":k,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors hover:bg-muted/50",children:[k?t.jsx(re,{size:14,className:"shrink-0"}):t.jsx(ne,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:Q("truncate",!l.name&&"text-muted-foreground"),children:l.name||b("sandbox.blogBrand.untitledRule")})]}),t.jsx(le,{label:b("sandbox.blogBrand.removeItem"),onClick:()=>A(h)})]}),k&&t.jsxs("div",{className:"space-y-3 border-t bg-background px-3 py-3",children:[t.jsx(ee,{value:l.name,placeholder:p,onChange:O=>P(h,{name:O.target.value}),className:"h-9 font-medium"}),t.jsx(ke,{defaultValue:l.value,placeholder:s,attachments:!1,mentions:m,onChange:O=>P(h,{value:O})},`${a}-${h}-${d}`),F&&t.jsx("p",{className:"text-xs text-warning",children:F})]})]},h)},e[18]=s,e[19]=x,e[20]=a,e[21]=m,e[22]=p,e[23]=i,e[24]=A,e[25]=P,e[26]=d,e[27]=b,e[28]=C):C=e[28],y=o.map(C),e[6]=s,e[7]=x,e[8]=a,e[9]=m,e[10]=p,e[11]=i,e[12]=A,e[13]=P,e[14]=d,e[15]=o,e[16]=b,e[17]=y}else y=e[17];let f;e[29]!==y?(f=t.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:y}),e[29]=y,e[30]=f):f=e[30];let c;e[31]!==r||e[32]!==o?(c=()=>{r([...o,{name:"",value:""}]),j(o.length)},e[31]=r,e[32]=o,e[33]=c):c=e[33];let N;e[34]!==u||e[35]!==c?(N=t.jsx(de,{label:u,onClick:c}),e[34]=u,e[35]=c,e[36]=N):N=e[36];let w;return e[37]!==f||e[38]!==N?(w=t.jsxs("div",{className:"space-y-2",children:[f,N]}),e[37]=f,e[38]=N,e[39]=w):w=e[39],w}function st({orgSlug:B,virtualMcpId:e,branch:o,decofile:r,hasAi:d}){const a=X(),u=Ne(),p=ie({orgSlug:B,virtualMcpId:e,branch:o}),s=Ce({orgSlug:B,virtualMcpId:e,branch:o}),[m,x]=L.useState(null),[b,i]=L.useState(""),[j,v]=L.useState(!1),[P,E]=L.useState(!1),[A,y]=L.useState(fe),f=We(r),c=r[ae]??{},N=!!(S(c.companyName)||S(c.description)),w=()=>{const l=be();p.mutate({blockKey:l,data:{title:"",body:"",createdAt:new Date().toISOString()}}),x(l)},C=async()=>{E(!0),y(fe);const l=setTimeout(()=>y("sandbox.pillars.phaseWriting"),4e3);try{const h=await u.call("BLOG_PILLAR_SUGGEST",{brand:{companyName:S(c.companyName),description:S(c.description),language:S(c.language),tone:S(c.tone),targetAudience:S(c.targetAudience),values:G(H(c.values)),dos:G(H(c.dos)),avoid:G(H(c.avoid))},existingPillars:f.map($=>$.title).filter(Boolean),guidance:b.trim()||void 0}),k=Ye(f.map($=>$.title),h.pillars);if(k.length===0){z.info(a("sandbox.pillars.noNew"));return}const F=Date.now();let O=0;for(const[$,I]of k.entries())try{await p.mutateAsync({blockKey:be(),data:{title:I.title,body:I.body,createdAt:new Date(F-$).toISOString()}}),O++}catch(q){console.warn("[pillars] could not save a suggested pillar",q)}if(O===0){z.error(a("sandbox.pillars.suggestFailed"));return}z.success(a("sandbox.pillars.suggested",{count:String(O)}))}catch(h){z.error(h instanceof Error?h.message:a("sandbox.pillars.suggestFailed"))}finally{clearTimeout(l),E(!1)}};return t.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3 px-8 pb-3 pt-4",children:[t.jsx("p",{className:"max-w-xl text-xs text-muted-foreground",children:a("sandbox.pillars.hint")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[P&&t.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground","aria-live":"polite",role:"status",children:[t.jsx(se,{size:12,className:"shrink-0 animate-spin"}),t.jsx("span",{className:"truncate",children:a(A)})]}),t.jsxs(Re,{open:j,onOpenChange:v,children:[t.jsx(Le,{asChild:!0,children:t.jsxs(U,{type:"button",variant:"outline",size:"sm",className:"shrink-0",disabled:P||!N||!d,title:a(d?N?"sandbox.pillars.suggestHint":"sandbox.pillars.suggestNoBrand":"sandbox.autonomous.noAiProvider"),children:[t.jsx(Z,{size:14}),a("sandbox.pillars.suggest")]})}),t.jsxs(Fe,{align:"end",className:"w-80 space-y-3",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx(V,{htmlFor:"pillar-guidance",children:a("sandbox.pillars.guidanceLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("sandbox.pillars.guidanceHint")})]}),t.jsx(ee,{id:"pillar-guidance",value:b,onChange:l=>i(l.target.value),placeholder:a("sandbox.pillars.guidancePlaceholder"),onKeyDown:l=>{l.key==="Enter"&&(l.preventDefault(),v(!1),C())},className:"h-9"}),t.jsxs(U,{type:"button",size:"sm",className:"w-full",onClick:()=>{v(!1),C()},children:[t.jsx(Z,{size:14}),a("sandbox.pillars.suggest")]})]})]}),t.jsx(Be,{isPending:p.isPending||s.isPending,isError:p.isError||s.isError})]})]}),t.jsxs("div",{className:"min-w-0 flex-1 space-y-3 overflow-y-auto px-8 pb-6",children:[f.length===0?t.jsx("p",{className:"text-sm text-muted-foreground",children:a("sandbox.pillars.empty")}):t.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:f.map(l=>t.jsx(ot,{blockKey:l.key,block:r[l.key],open:m===l.key,onToggle:()=>x(h=>h===l.key?null:l.key),onRemove:()=>{s.mutate({blockKey:l.key}),x(h=>h===l.key?null:h)},onSave:h=>p.mutate({blockKey:l.key,data:h})},l.key))}),t.jsx(de,{label:a("sandbox.pillars.add"),onClick:w})]})]})}function ot(B){const e=_.c(35),{blockKey:o,block:r,open:d,onToggle:a,onRemove:u,onSave:p}=B,s=X(),[m,x]=oe(r,p);let b;e[0]!==m.title?(b=S(m.title),e[0]=m.title,e[1]=b):b=e[1];const i=b;let j;e[2]!==d?(j=d?t.jsx(re,{size:14,className:"shrink-0"}):t.jsx(ne,{size:14,className:"shrink-0 text-muted-foreground"}),e[2]=d,e[3]=j):j=e[3];const v=!i&&"text-muted-foreground";let P;e[4]!==v?(P=Q("truncate",v),e[4]=v,e[5]=P):P=e[5];let E;e[6]!==s||e[7]!==i?(E=i||s("sandbox.pillars.untitled"),e[6]=s,e[7]=i,e[8]=E):E=e[8];let A;e[9]!==P||e[10]!==E?(A=t.jsx("span",{className:P,children:E}),e[9]=P,e[10]=E,e[11]=A):A=e[11];let y;e[12]!==a||e[13]!==d||e[14]!==j||e[15]!==A?(y=t.jsxs("button",{type:"button",onClick:a,"aria-expanded":d,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors hover:bg-muted/50",children:[j,A]}),e[12]=a,e[13]=d,e[14]=j,e[15]=A,e[16]=y):y=e[16];let f;e[17]!==s?(f=s("sandbox.pillars.remove"),e[17]=s,e[18]=f):f=e[18];let c;e[19]!==u||e[20]!==f?(c=t.jsx(le,{label:f,onClick:u}),e[19]=u,e[20]=f,e[21]=c):c=e[21];let N;e[22]!==y||e[23]!==c?(N=t.jsxs("div",{className:"flex items-center gap-1 pr-2",children:[y,c]}),e[22]=y,e[23]=c,e[24]=N):N=e[24];let w;e[25]!==o||e[26]!==m||e[27]!==d||e[28]!==x||e[29]!==s||e[30]!==i?(w=d&&t.jsxs("div",{className:"space-y-3 border-t bg-background px-3 py-3",children:[t.jsx(ee,{value:i,placeholder:s("sandbox.pillars.namePlaceholder"),onChange:l=>x({...m,title:l.target.value}),className:"h-9 font-medium"}),t.jsx(ke,{defaultValue:S(m.body),placeholder:s("sandbox.pillars.bodyPlaceholder"),attachments:!1,onChange:l=>x({...m,body:l})},o)]}),e[25]=o,e[26]=m,e[27]=d,e[28]=x,e[29]=s,e[30]=i,e[31]=w):w=e[31];let C;return e[32]!==N||e[33]!==w?(C=t.jsxs("li",{className:"group/item bg-card",children:[N,w]}),e[32]=N,e[33]=w,e[34]=C):C=e[34],C}function ve(B){const e=_.c(35),{kind:o,orgSlug:r,virtualMcpId:d,branch:a,decofile:u,hint:p,addLabel:s,emptyLabel:m,renderEditor:x}=B,b=X();let i;e[0]!==a||e[1]!==r||e[2]!==d?(i={orgSlug:r,virtualMcpId:d,branch:a},e[0]=a,e[1]=r,e[2]=d,e[3]=i):i=e[3];const j=ie(i);let v;e[4]!==a||e[5]!==r||e[6]!==d?(v={orgSlug:r,virtualMcpId:d,branch:a},e[4]=a,e[5]=r,e[6]=d,e[7]=v):v=e[7];const P=Ce(v),[E,A]=L.useState(null);let y,f,c,N;if(e[8]!==u||e[9]!==P||e[10]!==m||e[11]!==p||e[12]!==o||e[13]!==E||e[14]!==x||e[15]!==j||e[16]!==b){const l=Me(u)[o];let h;e[21]!==u||e[22]!==o||e[23]!==j?(h=()=>{const k=Ue(u,o);j.mutate({blockKey:k,data:Ve(k,o,Xe(o))}),A(k)},e[21]=u,e[22]=o,e[23]=j,e[24]=h):h=e[24],y=h,f="min-w-0 max-w-3xl space-y-3 px-8 py-6",e[25]!==p?(c=t.jsx("p",{className:"text-xs text-muted-foreground",children:p}),e[25]=p,e[26]=c):c=e[26],N=l.length===0?t.jsx("p",{className:"text-sm text-muted-foreground",children:m}):t.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:l.map(k=>{const F=E===k.key;return t.jsxs("li",{className:"group/item bg-card",children:[t.jsxs("div",{className:"flex items-center gap-1 pr-2",children:[t.jsxs("button",{type:"button",onClick:()=>A(F?null:k.key),"aria-expanded":F,className:"flex min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors hover:bg-muted/50",children:[F?t.jsx(re,{size:14,className:"shrink-0"}):t.jsx(ne,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"truncate",children:k.label}),k.subtitle&&t.jsx("span",{className:"truncate text-xs text-muted-foreground",children:k.subtitle})]}),t.jsx(le,{label:b("sandbox.blogContext.removeEntry"),onClick:()=>{P.mutate({blockKey:k.key}),F&&A(null)}})]}),F&&t.jsx("div",{className:"border-t bg-background px-4 py-4",children:x(k.key)})]},k.key)})}),e[8]=u,e[9]=P,e[10]=m,e[11]=p,e[12]=o,e[13]=E,e[14]=x,e[15]=j,e[16]=b,e[17]=y,e[18]=f,e[19]=c,e[20]=N}else y=e[17],f=e[18],c=e[19],N=e[20];let w;e[27]!==y||e[28]!==s?(w=t.jsx(de,{label:s,onClick:y}),e[27]=y,e[28]=s,e[29]=w):w=e[29];let C;return e[30]!==f||e[31]!==c||e[32]!==N||e[33]!==w?(C=t.jsxs("div",{className:f,children:[c,N,w]}),e[30]=f,e[31]=c,e[32]=N,e[33]=w,e[34]=C):C=e[34],C}export{ka as BlogContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as nt,b as ct,r as ft,x as wt,l as Y,j as e,B as at,ak as Tt}from"./index-B_jqJjWZ.js";import{i as zt}from"./AlertCircle-BxsvjprR.js";import{T as _t,r as At}from"./agent-icon-CP9iXRWW.js";import{s as Et}from"./Plus-GxHWJNZK.js";import{a as Pt,b as $t,A as Lt}from"./alert-xdPy5Dnu.js";import{S as Mt}from"./scroll-area-bbynZh9-.js";import{d as Ut,Z as It,l as Ht,U as Ot,V as Rt,_ as Bt,S as bt,X as ht,$ as Ft}from"./agent-site-editor-content-BlZJF4Kt.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./Check-Blxq8j59.js";import"./ChevronUp-CRNjHjTK.js";import"./UserSquare-DKTJMzlh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./Share07-DV5DThxW.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./X-tomqNIg1.js";import"./Zap-DMCGUdZC.js";import"./select-jSjoqSVI.js";import"./index-CS_ks7u-.js";import"./agent-view-guard-CR5g29BH.js";import"./use-main-panel-tabs-DQnZor4-.js";import"./use-route-default-main-D9XS7l59.js";import"./use-connection-BhRHLAsr.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./use-mcp-tools-Cu0xFgEP.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./types-BobDzo_S.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-P0x76zE6.js";import"./github-repo-BknN0SVI.js";import"./index-DnYPqGbF.js";import"./chat-context-zkHg9OWQ.js";import"./use-panel-navigate-rE0Chr-2.js";import"./thread-route-BDTLcWS1.js";import"./autosend-DxvfLrdl.js";import"./thread-intent-E5sYh_tC.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CObs1qD4.js";import"./use-ai-providers-D3QOmX-C.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BnXMCuEf.js";import"./use-organization-settings-DkOGSUvX.js";import"./gateway-client-BS6ihzBm.js";import"./tooltip-MGIMGAoz.js";import"./dialog-D_eZEQVv.js";import"./drawer-BbjSV6aw.js";import"./collection-search-DIxBrmSt.js";import"./use-mobile-beNLxD1C.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./index-CFR2L-q4.js";import"./form-C7tLG-xD.js";import"./label-B42WVwom.js";import"./input-CUqzZQqX.js";import"./org-file-open-context-BUYeSnyZ.js";import"./input-CPX_K4na.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./download-app-dialog-Cg2Fsige.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./required-auth-layout-BuQC1B0R.js";import"./use-org-sso-DUkP7wB6.js";import"./chat-draft-DSG5ngj7.js";import"./use-session-runtime-DdWkBfbN.js";import"./usage-stats-CtwYJCDG.js";import"./use-copy-BF-mjGgx.js";import"./markdown-7es2nAha.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-C3x66yHR.js";import"./use-deco-credits-Doeu9LgP.js";import"./toggle-group-Br61F69t.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-y3R__MyB.js";import"./decopilot-TYyHvkDT.js";import"./checkbox-K4FR-PUT.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-D7TbzVGm.js";import"./index-_sXoF1Et.js";import"./input-D3d-YnPi.js";import"./suggestion-U-2vYvOO.js";import"./use-org-fs-iJQRZ_Y8.js";import"./question-004-sINsf4GQ.js";import"./use-members-hbcweNuZ.js";import"./use-org-auth-client-Cn5VVAMk.js";import"./feature-paywall-BMHKK3Z9.js";import"./plan-ladder-CgZjoFq0.js";import"./add-connection-dialog-DGaBiFHb.js";import"./extract-connection-data-IvHnTVAw.js";import"./metadata-D72DunRR.js";import"./connection-vEOaKzQz.js";import"./connection-card-DvPe_M7v.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-BWwZU_t6.js";import"./connection-form-helpers-DplEqD9m.js";import"./authenticate-and-persist-oauth-ByuGS_gG.js";import"./mcp-oauth-Ckxkgwom.js";import"./collection-tabs-BAPv5IF9.js";import"./badge-DXHGQv94.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./pair-Cntzz70t.js";import"./collapsible-C198MfkN.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DhZPltbk.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-D_ZIeH1i.js";import"./use-navigate-to-agent-C6DjZGwr.js";import"./use-thread-outputs-DM_M_g6a.js";import"./file-type-icon-ClDaqk3f.js";import"./sandbox-lifecycle-context-D9wQaDsx.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-DDYUL_Qx.js";import"./use-project-native-view-presence-1YdimLRn.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DigsDSAK.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-VXYym_wm.js";import"./feature-gate-BWDpzS9z.js";import"./alert-dialog-B5hf3Zq6.js";import"./runnable-block-editor-CgZ8SmOe.js";import"./claim-phase-copy-pJF6tq00.js";import"./utils-YiROKHsB.js";import"./monaco-editor-CVsFBD0x.js";import"./editor-z3_N_jkd.js";import"./calendar-Wk2YDk5Q.js";import"./rich-text-link-control-DSqyN-4h.js";import"./switch-CxeV46Qg.js";import"./combobox-BVFjv7zx.js";import"./search-input-Btpivanp.js";import"./use-debounced-value-I_7zwW8J.js";import"./asset-utils-DHewT25o.js";import"./decofile-api-W5b1cAOf.js";import"./sandbox-git-api-B1R0585s.js";import"./mustache-CP6S3NLE.js";import"./empty-state-CDIBHplc.js";import"./empty-state-DdD7u29c.js";import"./github-icon-CfU12Xim.js";import"./repository-import-picker-OZgXFfxq.js";import"./repository-picker-Cuj06eQZ.js";const jt="border-success/30 bg-success/10 text-success hover:bg-success/20",yt="border-dashed border-border bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground";function qt(C){const t=nt.c(37),{support:j}=C,a=ct();let i,l,o,b,s,y,r,m,p,c;if(t[0]!==j||t[1]!==a){c=Symbol.for("react.early_return_sentinel");t:{if(o=Ft(j,"scheduled"),!o){c=null;break t}const v=o.reason==="outdated"?"sandbox.postCalendar.outdatedAppsTitle":o.reason==="no-app"?"sandbox.postCalendar.unsupportedRuntimeTitle":"sandbox.postCalendar.unknownAppTitle";p="absolute inset-0 flex items-center justify-center bg-background/30 p-6",l=Pt,y="warning",r="max-w-md bg-background/95 shadow-lg backdrop-blur",t[12]===Symbol.for("react.memo_cache_sentinel")?(m=e.jsx(zt,{}),t[12]=m):m=t[12];let n;t[13]!==a||t[14]!==v?(n=a(v),t[13]=a,t[14]=v,t[15]=n):n=t[15],t[16]!==n?(s=e.jsx($t,{children:n}),t[16]=n,t[17]=s):s=t[17],i=Lt,b=o.reason==="outdated"?a("sandbox.postCalendar.outdatedAppsDescription",{required:o.required}):o.reason==="no-app"?a("sandbox.postCalendar.unsupportedRuntimeDescription"):a("sandbox.postCalendar.unknownAppDescription")}t[0]=j,t[1]=a,t[2]=i,t[3]=l,t[4]=o,t[5]=b,t[6]=s,t[7]=y,t[8]=r,t[9]=m,t[10]=p,t[11]=c}else i=t[2],l=t[3],o=t[4],b=t[5],s=t[6],y=t[7],r=t[8],m=t[9],p=t[10],c=t[11];if(c!==Symbol.for("react.early_return_sentinel"))return c;let u;t[18]!==i||t[19]!==b?(u=e.jsx(i,{children:b}),t[18]=i,t[19]=b,t[20]=u):u=t[20];let x;t[21]!==o.command||t[22]!==o.reason?(x=o.reason==="outdated"&&e.jsx("code",{className:"mt-2 block rounded-md bg-muted px-2 py-1 font-mono text-xs text-foreground",children:o.command}),t[21]=o.command,t[22]=o.reason,t[23]=x):x=t[23];let d;t[24]!==s||t[25]!==u||t[26]!==x?(d=e.jsxs("div",{children:[s,u,x]}),t[24]=s,t[25]=u,t[26]=x,t[27]=d):d=t[27];let h;t[28]!==l||t[29]!==d||t[30]!==y||t[31]!==r||t[32]!==m?(h=e.jsxs(l,{variant:y,className:r,children:[m,d]}),t[28]=l,t[29]=d,t[30]=y,t[31]=r,t[32]=m,t[33]=h):h=t[33];let f;return t[34]!==h||t[35]!==p?(f=e.jsx("div",{className:p,children:h}),t[34]=h,t[35]=p,t[36]=f):f=t[36],f}function si(C){const t=nt.c(94),{decofile:j,support:a,selectedKey:i,onSelect:l,onCreate:o,onReschedule:b,isCreating:s}=C,y=s===void 0?!1:s,r=ct();let m;t[0]!==a?(m=Ut(a),t[0]=a,t[1]=m):m=t[1];const p=m,[c,u]=ft.useState(null),[x]=wt(),[d,h]=ft.useState(Vt),f=x.language;let v;t[2]!==d||t[3]!==f?(v=new Intl.DateTimeFormat(f,{month:"long",year:"numeric"}).format(d),t[2]=d,t[3]=f,t[4]=v):v=t[4];const n=v;let k,D,T,z,S,_,A,E,P,$,w;if(t[5]!==p||t[6]!==d||t[7]!==j||t[8]!==c||t[9]!==y||t[10]!==f||t[11]!==n||t[12]!==o||t[13]!==b||t[14]!==l||t[15]!==i||t[16]!==r){const vt=new Intl.DateTimeFormat(f,{weekday:"short"}),Ct=new Intl.DateTimeFormat(f,{dateStyle:"long"}),{byDay:kt,undated:mt}=It(Ht(j)),dt=Ot(d),Nt=Rt(new Date);z="flex h-full w-full flex-col";let et;t[28]===Symbol.for("react.memo_cache_sentinel")?(et=()=>h(bt(new Date)),t[28]=et):et=t[28];let O;t[29]!==r?(O=r("sandbox.postCalendar.today"),t[29]=r,t[30]=O):O=t[30];let R;t[31]!==O?(R=e.jsx(at,{variant:"outline",size:"sm",onClick:et,children:O}),t[31]=O,t[32]=R):R=t[32];let rt;t[33]===Symbol.for("react.memo_cache_sentinel")?(rt=()=>h(Wt),t[33]=rt):rt=t[33];let B;t[34]!==r?(B=r("sandbox.postCalendar.previous"),t[34]=r,t[35]=B):B=t[35];let ot;t[36]===Symbol.for("react.memo_cache_sentinel")?(ot=e.jsx(At,{size:16}),t[36]=ot):ot=t[36];let F;t[37]!==B?(F=e.jsx(at,{variant:"ghost",size:"icon",className:"size-8",onClick:rt,"aria-label":B,children:ot}),t[37]=B,t[38]=F):F=t[38];let it;t[39]===Symbol.for("react.memo_cache_sentinel")?(it=()=>h(Kt),t[39]=it):it=t[39];let q;t[40]!==r?(q=r("sandbox.postCalendar.next"),t[40]=r,t[41]=q):q=t[41];let st;t[42]===Symbol.for("react.memo_cache_sentinel")?(st=e.jsx(Tt,{size:16}),t[42]=st):st=t[42];let K;t[43]!==q?(K=e.jsx(at,{variant:"ghost",size:"icon",className:"size-8",onClick:it,"aria-label":q,children:st}),t[43]=q,t[44]=K):K=t[44];let W;t[45]!==n?(W=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:n}),t[45]=n,t[46]=W):W=t[46];let V;t[47]!==r?(V=r("sandbox.postCalendar.legendScheduled"),t[47]=r,t[48]=V):V=t[48];let X;t[49]!==V?(X=e.jsx(xt,{className:jt,label:V}),t[49]=V,t[50]=X):X=t[50];let Z;t[51]!==r?(Z=r("sandbox.postCalendar.legendUnscheduled"),t[51]=r,t[52]=Z):Z=t[52];let G;t[53]!==Z?(G=e.jsx(xt,{className:yt,label:Z}),t[53]=Z,t[54]=G):G=t[54];let J;t[55]!==X||t[56]!==G?(J=e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[X,G]}),t[55]=X,t[56]=G,t[57]=J):J=t[57],t[58]!==R||t[59]!==F||t[60]!==K||t[61]!==W||t[62]!==J?(S=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[R,F,K,W,J]}),t[58]=R,t[59]=F,t[60]=K,t[61]=W,t[62]=J,t[63]=S):S=t[63],T="relative flex-1 min-h-0",k=Mt;const pt=!p&&"blur-[2px] select-none";t[64]!==pt?(w=Y("h-full",pt),t[64]=pt,t[65]=w):w=t[65],D=!p,P="flex min-w-[880px] gap-4 p-4";let Q;t[66]!==r?(Q=r("sandbox.postCalendar.unscheduledHint"),t[66]=r,t[67]=Q):Q=t[67];let lt;t[68]!==Q?(lt=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Q}),t[68]=Q,t[69]=lt):lt=t[69],$=e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"grid grid-cols-7 mb-2",children:dt[0]?.map(g=>e.jsx("div",{className:"px-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:vt.format(g)},g.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:dt.flat().map(g=>{const Dt=g.getMonth()===d.getMonth(),St=kt.get(Bt(g))??[];return e.jsxs("div",{onDragOver:N=>{c&&(N.preventDefault(),N.dataTransfer.dropEffect="move")},onDrop:N=>{N.preventDefault();const ut=N.dataTransfer.getData("text/plain");u(null),ut&&b(ut,g)},className:Y("group/day min-h-28 space-y-1 p-2 transition-colors",Dt?"bg-background":"bg-muted/40",c&&"hover:bg-accent"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:Y("grid size-6 place-items-center rounded-full text-xs",g.getTime()===Nt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:g.getDate()}),p&&e.jsx(at,{variant:"ghost",size:"icon",className:"size-6 opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:y,onClick:()=>o(g),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:Ct.format(g)}),children:e.jsx(Et,{size:14})})]}),St.map(N=>e.jsx(gt,{entry:N,active:N.post.key===i,draggable:p&&N.scheduled,onSelect:l,onDragStateChange:u},N.post.key))]},g.getTime())})}),lt]}),_="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",A=e.jsx("p",{className:"px-1 text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:mt.length})}),E=mt.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[e.jsx(_t,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):mt.map(g=>e.jsx(gt,{entry:g,active:g.post.key===i,draggable:!1,onSelect:l,onDragStateChange:u},g.post.key)),t[5]=p,t[6]=d,t[7]=j,t[8]=c,t[9]=y,t[10]=f,t[11]=n,t[12]=o,t[13]=b,t[14]=l,t[15]=i,t[16]=r,t[17]=k,t[18]=D,t[19]=T,t[20]=z,t[21]=S,t[22]=_,t[23]=A,t[24]=E,t[25]=P,t[26]=$,t[27]=w}else k=t[17],D=t[18],T=t[19],z=t[20],S=t[21],_=t[22],A=t[23],E=t[24],P=t[25],$=t[26],w=t[27];let L;t[70]!==_||t[71]!==A||t[72]!==E?(L=e.jsxs("div",{className:_,children:[A,E]}),t[70]=_,t[71]=A,t[72]=E,t[73]=L):L=t[73];let M;t[74]!==L||t[75]!==P||t[76]!==$?(M=e.jsxs("div",{className:P,children:[$,L]}),t[74]=L,t[75]=P,t[76]=$,t[77]=M):M=t[77];let U;t[78]!==k||t[79]!==D||t[80]!==M||t[81]!==w?(U=e.jsx(k,{className:w,inert:D,children:M}),t[78]=k,t[79]=D,t[80]=M,t[81]=w,t[82]=U):U=t[82];let I;t[83]!==p||t[84]!==a?(I=!p&&e.jsx(qt,{support:a}),t[83]=p,t[84]=a,t[85]=I):I=t[85];let H;t[86]!==T||t[87]!==U||t[88]!==I?(H=e.jsxs("div",{className:T,children:[U,I]}),t[86]=T,t[87]=U,t[88]=I,t[89]=H):H=t[89];let tt;return t[90]!==z||t[91]!==S||t[92]!==H?(tt=e.jsxs("div",{className:z,children:[S,H]}),t[90]=z,t[91]=S,t[92]=H,t[93]=tt):tt=t[93],tt}function Kt(C){return ht(C,1)}function Wt(C){return ht(C,-1)}function Vt(){return bt(new Date)}function xt(C){const t=nt.c(7),{className:j,label:a}=C;let i;t[0]!==j?(i=Y("size-3 rounded-sm border",j),t[0]=j,t[1]=i):i=t[1];let l;t[2]!==i?(l=e.jsx("span",{className:i}),t[2]=i,t[3]=l):l=t[3];let o;return t[4]!==a||t[5]!==l?(o=e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[l,a]}),t[4]=a,t[5]=l,t[6]=o):o=t[6],o}function gt(C){const t=nt.c(23),{entry:j,active:a,draggable:i,onSelect:l,onDragStateChange:o}=C,b=ct(),{post:s,scheduled:y}=j,r=y?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let m;t[0]!==b||t[1]!==r?(m=b(r),t[0]=b,t[1]=r,t[2]=m):m=t[2];const p=m;let c;t[3]!==o||t[4]!==s.key?(c=D=>{D.dataTransfer.setData("text/plain",s.key),D.dataTransfer.effectAllowed="move",o(s.key)},t[3]=o,t[4]=s.key,t[5]=c):c=t[5];let u;t[6]!==o?(u=()=>o(null),t[6]=o,t[7]=u):u=t[7];let x;t[8]!==l||t[9]!==s.key?(x=()=>l(s.key),t[8]=l,t[9]=s.key,t[10]=x):x=t[10];const d=`${s.title} · ${p}`,h=y?jt:yt,f=i&&"cursor-grab active:cursor-grabbing",v=a&&"ring-2 ring-primary";let n;t[11]!==h||t[12]!==f||t[13]!==v?(n=Y("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",h,f,v),t[11]=h,t[12]=f,t[13]=v,t[14]=n):n=t[14];let k;return t[15]!==i||t[16]!==s.title||t[17]!==n||t[18]!==c||t[19]!==u||t[20]!==x||t[21]!==d?(k=e.jsx("button",{type:"button",draggable:i,onDragStart:c,onDragEnd:u,onClick:x,title:d,className:n,children:s.title}),t[15]=i,t[16]=s.title,t[17]=n,t[18]=c,t[19]=u,t[20]=x,t[21]=d,t[22]=k):k=t[22],k}export{si as PostCalendar};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,j as r}from"./index-B_jqJjWZ.js";import{ChatLayout as i}from"./index-D6rGE1Dy.js";import{R as p}from"./reports-tab-DC6c1sVj.js";import"./use-mobile-beNLxD1C.js";import"./thread-button-C_OQPTk1.js";import"./use-in-settings-kPZjTMQr.js";import"./sheet-D_ZIeH1i.js";import"./X-tomqNIg1.js";import"./tooltip-MGIMGAoz.js";import"./index-CS_ks7u-.js";import"./thread-route-BDTLcWS1.js";import"./use-panel-navigate-rE0Chr-2.js";import"./use-project-scope-P0x76zE6.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-D9XS7l59.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./agent-icon-CP9iXRWW.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./Check-Blxq8j59.js";import"./ChevronUp-CRNjHjTK.js";import"./UserSquare-DKTJMzlh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./Share07-DV5DThxW.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./Zap-DMCGUdZC.js";import"./toolbar-icon-button-DAWIeeny.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./download-app-dialog-Cg2Fsige.js";import"./dialog-D_eZEQVv.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BuQC1B0R.js";import"./autosend-DxvfLrdl.js";import"./use-org-sso-DUkP7wB6.js";import"./resizable-BSTHeCGD.js";import"./route-page-header-DqB3P7Mp.js";import"./site-url-en5df9c-.js";import"./input-CUqzZQqX.js";import"./use-reports-diagnostic-rG5xwYUZ.js";import"./companions-core-BnuxEm_5.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C8GSbvaz.js";import"./mini-report-page-CsRp8RBX.js";import"./self-tool-result-8OxPN9Nm.js";import"./site-error-Da6iapvu.js";function qt(){const o=m.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(i.Content,{children:r.jsx(p,{})}),o[0]=t):t=o[0],t}export{qt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,X as n,j as r,K as f}from"./index-B_jqJjWZ.js";import{ChatLayout as d}from"./index-D6rGE1Dy.js";import{m as u,P as x,T as h}from"./mock-board-CDJcm5pO.js";import{F as j}from"./feature-gate-BWDpzS9z.js";import"./use-mobile-beNLxD1C.js";import"./thread-button-C_OQPTk1.js";import"./use-in-settings-kPZjTMQr.js";import"./sheet-D_ZIeH1i.js";import"./X-tomqNIg1.js";import"./tooltip-MGIMGAoz.js";import"./index-CS_ks7u-.js";import"./thread-route-BDTLcWS1.js";import"./use-panel-navigate-rE0Chr-2.js";import"./use-project-scope-P0x76zE6.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-D9XS7l59.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./agent-icon-CP9iXRWW.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./Check-Blxq8j59.js";import"./ChevronUp-CRNjHjTK.js";import"./UserSquare-DKTJMzlh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./Share07-DV5DThxW.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./Zap-DMCGUdZC.js";import"./toolbar-icon-button-DAWIeeny.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./download-app-dialog-Cg2Fsige.js";import"./dialog-D_eZEQVv.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BuQC1B0R.js";import"./autosend-DxvfLrdl.js";import"./use-org-sso-DUkP7wB6.js";import"./resizable-BSTHeCGD.js";import"./route-page-header-DqB3P7Mp.js";import"./rich-text-link-control-DSqyN-4h.js";import"./use-task-board-analytics-CnU57ib7.js";import"./combobox-BVFjv7zx.js";import"./popover-D7TbzVGm.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-CPZhZrMT.js";import"./icon-button-DAJ4484y.js";import"./task-route-D4Lm7oMd.js";import"./use-decopilot-events-BnXMCuEf.js";import"./repository-import-picker-OZgXFfxq.js";import"./use-navigate-to-agent-C6DjZGwr.js";import"./thread-intent-E5sYh_tC.js";import"./slugify-CEUa2lfQ.js";import"./repository-picker-Cuj06eQZ.js";import"./input-CUqzZQqX.js";import"./label-B42WVwom.js";import"./github-icon-CfU12Xim.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./collection-search-DIxBrmSt.js";import"./use-debounced-value-I_7zwW8J.js";import"./use-members-hbcweNuZ.js";import"./use-org-auth-client-Cn5VVAMk.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-CTTUJ_N1.js";import"./use-organization-settings-DkOGSUvX.js";import"./calendar-Wk2YDk5Q.js";import"./alert-xdPy5Dnu.js";import"./collapsible-C198MfkN.js";import"./use-copy-BF-mjGgx.js";import"./markdown-7es2nAha.js";import"./org-file-open-context-BUYeSnyZ.js";import"./index-E9kwMDzy.js";import"./index-CFR2L-q4.js";import"./gateway-client-BS6ihzBm.js";import"./form-C7tLG-xD.js";import"./utils-CVEq3hMx.js";import"./suggestion-U-2vYvOO.js";import"./index-Cc2tAO7N.js";import"./use-org-fs-iJQRZ_Y8.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-connection-BhRHLAsr.js";import"./github-repo-scope-C8GSbvaz.js";import"./thread-sheet-body-CsPcwFou.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./pair-Cntzz70t.js";import"./usage-stats-CtwYJCDG.js";import"./use-entitlements-CObs1qD4.js";import"./chat-context-zkHg9OWQ.js";import"./use-ai-providers-D3QOmX-C.js";import"./location-oTTXFrSF.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DhZPltbk.js";import"./types-BobDzo_S.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./use-thread-outputs-DM_M_g6a.js";import"./file-type-icon-ClDaqk3f.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./task-status-BVsZxsbL.js";import"./use-open-billing-url-y3R__MyB.js";import"./chat-draft-DSG5ngj7.js";import"./badge-DXHGQv94.js";import"./separator-CzwHfLvM.js";import"./feature-paywall-BMHKK3Z9.js";import"./plan-ladder-CgZjoFq0.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(h,{})}),t[0]=o):o=t[0],o}function Uo(){const t=l.c(8),{locator:o}=n();let i;t[0]!==o?(i=c=>c.setQueryData(f.taskBoardItems(o),u()),t[0]=o,t[1]=i):i=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let m;t[3]!==i?(m=r.jsx(x,{seed:i,children:p}),t[3]=i,t[4]=m):m=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==m?(s=r.jsx(d.Content,{children:r.jsx(j,{feature:"kanban",backdrop:m,children:e})}),t[6]=m,t[7]=s):s=t[7],s}export{Uo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,b as A,j as r}from"./index-B_jqJjWZ.js";import{I as R}from"./input-CUqzZQqX.js";import{L as I}from"./label-B42WVwom.js";import{S as z,b as O,a as V,d as q,c as D}from"./select-jSjoqSVI.js";import{T as J}from"./textarea-BWwZU_t6.js";import{u as M,a_ as _,b1 as $}from"./runnable-block-editor-CgZ8SmOe.js";import{g as G,q as H,s as F}from"./agent-site-editor-content-BlZJF4Kt.js";import{u as Q}from"./use-autosave-VCuxTv0J.js";import"./index-CS_ks7u-.js";import"./Check-Blxq8j59.js";import"./ChevronUp-CRNjHjTK.js";import"./use-session-runtime-DdWkBfbN.js";import"./thread-intent-E5sYh_tC.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-zkHg9OWQ.js";import"./use-panel-navigate-rE0Chr-2.js";import"./thread-route-BDTLcWS1.js";import"./use-project-scope-P0x76zE6.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./github-repo-BknN0SVI.js";import"./autosend-DxvfLrdl.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CObs1qD4.js";import"./use-ai-providers-D3QOmX-C.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BnXMCuEf.js";import"./use-organization-settings-DkOGSUvX.js";import"./claim-phase-copy-pJF6tq00.js";import"./agent-icon-CP9iXRWW.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./UserSquare-DKTJMzlh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./Share07-DV5DThxW.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./X-tomqNIg1.js";import"./Zap-DMCGUdZC.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-Cntzz70t.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-C198MfkN.js";import"./use-copy-BF-mjGgx.js";import"./usage-stats-CtwYJCDG.js";import"./markdown-7es2nAha.js";import"./dialog-D_eZEQVv.js";import"./org-file-open-context-BUYeSnyZ.js";import"./use-mobile-beNLxD1C.js";import"./tooltip-MGIMGAoz.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./download-app-dialog-Cg2Fsige.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./required-auth-layout-BuQC1B0R.js";import"./use-org-sso-DUkP7wB6.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DhZPltbk.js";import"./types-BobDzo_S.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-BS6ihzBm.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./sheet-D_ZIeH1i.js";import"./use-connection-BhRHLAsr.js";import"./use-navigate-to-agent-C6DjZGwr.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./index-CFR2L-q4.js";import"./form-C7tLG-xD.js";import"./use-thread-outputs-DM_M_g6a.js";import"./file-type-icon-ClDaqk3f.js";import"./popover-D7TbzVGm.js";import"./utils-YiROKHsB.js";import"./scroll-area-bbynZh9-.js";import"./monaco-editor-CVsFBD0x.js";import"./editor-z3_N_jkd.js";import"./calendar-Wk2YDk5Q.js";import"./rich-text-link-control-DSqyN-4h.js";import"./switch-CxeV46Qg.js";import"./combobox-BVFjv7zx.js";import"./alert-dialog-B5hf3Zq6.js";import"./sandbox-url-D3mC8qhT.js";import"./search-input-Btpivanp.js";import"./tabs-C3x66yHR.js";import"./use-debounced-value-I_7zwW8J.js";import"./use-file-configs-DigsDSAK.js";import"./asset-utils-DHewT25o.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-Br61F69t.js";import"./decofile-api-W5b1cAOf.js";import"./sandbox-git-api-B1R0585s.js";import"./agent-view-guard-CR5g29BH.js";import"./use-main-panel-tabs-DQnZor4-.js";import"./use-route-default-main-D9XS7l59.js";import"./use-mcp-tools-Cu0xFgEP.js";import"./index-DnYPqGbF.js";import"./drawer-BbjSV6aw.js";import"./collection-search-DIxBrmSt.js";import"./input-CPX_K4na.js";import"./chat-draft-DSG5ngj7.js";import"./use-deco-credits-Doeu9LgP.js";import"./use-open-billing-url-y3R__MyB.js";import"./decopilot-TYyHvkDT.js";import"./checkbox-K4FR-PUT.js";import"./ai-providers-logos-DD3qZ33J.js";import"./index-_sXoF1Et.js";import"./input-D3d-YnPi.js";import"./suggestion-U-2vYvOO.js";import"./use-org-fs-iJQRZ_Y8.js";import"./question-004-sINsf4GQ.js";import"./use-members-hbcweNuZ.js";import"./use-org-auth-client-Cn5VVAMk.js";import"./feature-paywall-BMHKK3Z9.js";import"./plan-ladder-CgZjoFq0.js";import"./add-connection-dialog-DGaBiFHb.js";import"./extract-connection-data-IvHnTVAw.js";import"./metadata-D72DunRR.js";import"./connection-vEOaKzQz.js";import"./connection-card-DvPe_M7v.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-DplEqD9m.js";import"./authenticate-and-persist-oauth-ByuGS_gG.js";import"./mcp-oauth-Ckxkgwom.js";import"./collection-tabs-BAPv5IF9.js";import"./badge-DXHGQv94.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./sandbox-lifecycle-context-D9wQaDsx.js";import"./use-task-metadata-DDYUL_Qx.js";import"./use-project-native-view-presence-1YdimLRn.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-VXYym_wm.js";import"./feature-gate-BWDpzS9z.js";import"./mustache-CP6S3NLE.js";import"./empty-state-CDIBHplc.js";import"./empty-state-DdD7u29c.js";import"./github-icon-CfU12Xim.js";import"./repository-import-picker-OZgXFfxq.js";import"./repository-picker-Cuj06eQZ.js";const U={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},W={authors:"sandbox.recordEditor.titleAuthor"};function si(C){const t=L.c(41),{orgSlug:K,virtualMcpId:w,branch:f,kind:a,blockKey:u,block:S}=C,i=A();let b;t[0]!==f||t[1]!==K||t[2]!==w?(b={orgSlug:K,virtualMcpId:w,branch:f},t[0]=f,t[1]=K,t[2]=w,t[3]=b):b=t[3];const e=M(b);let h;t[4]!==S||t[5]!==a?(h=G(S,a),t[4]=S,t[5]=a,t[6]=h):h=t[6];const B=h;let k;t[7]!==u||t[8]!==a||t[9]!==e?(k=l=>{e.mutate({blockKey:u,data:H(u,a,l)})},t[7]=u,t[8]=a,t[9]=e,t[10]=k):k=t[10];let v;t[11]!==e.isPending?(v={isSaving:e.isPending},t[11]=e.isPending,t[12]=v):v=t[12];const[m,P]=Q(B,k,v);let j;t[13]!==m||t[14]!==P?(j=(l,o)=>P({...m,[l]:o}),t[13]=m,t[14]=P,t[15]=j):j=t[15];const s=j,N=W[a];let n;t[16]!==i||t[17]!==N?(n=i(N),t[16]=i,t[17]=N,t[18]=n):n=t[18];let c;t[19]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[19]=n,t[20]=c):c=t[20];let d;t[21]!==e.isError||t[22]!==e.isPending?(d=r.jsx(_,{isPending:e.isPending,isError:e.isError}),t[21]=e.isError,t[22]=e.isPending,t[23]=d):d=t[23];let y;t[24]!==c||t[25]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[24]=c,t[25]=d,t[26]=y):y=t[26];const T=U[a];let x;if(t[27]!==m||t[28]!==s||t[29]!==i||t[30]!==T){let l;t[32]!==m||t[33]!==s||t[34]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx($,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:m[o.key],onChange:p=>s(o.key,p),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(z,{value:F(m[o.key])||o.options?.[0]?.value,onValueChange:p=>s(o.key,p),children:[r.jsx(O,{id:o.key,className:"h-10 w-full",children:r.jsx(V,{placeholder:i(o.labelKey)})}),r.jsx(q,{children:(o.options??[]).map(p=>r.jsx(D,{value:p.value,children:i(p.labelKey)},p.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(J,{id:o.key,value:F(m[o.key]),onChange:p=>s(o.key,p.target.value),rows:3}):r.jsx(R,{id:o.key,value:F(m[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:p=>s(o.key,p.target.value),className:"h-10"})]})},o.key),t[32]=m,t[33]=s,t[34]=i,t[35]=l):l=t[35],x=T.map(l),t[27]=m,t[28]=s,t[29]=i,t[30]=T,t[31]=x}else x=t[31];let g;t[36]!==x?(g=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[36]=x,t[37]=g):g=t[37];let E;return t[38]!==y||t[39]!==g?(E=r.jsxs("div",{className:"flex h-full flex-col",children:[y,g]}),t[38]=y,t[39]=g,t[40]=E):E=t[40],E}export{si as RecordEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,j as r}from"./index-B_jqJjWZ.js";import{ChatLayout as i}from"./index-D6rGE1Dy.js";import{R as p}from"./reports-tab-DC6c1sVj.js";import"./use-mobile-beNLxD1C.js";import"./thread-button-C_OQPTk1.js";import"./use-in-settings-kPZjTMQr.js";import"./sheet-D_ZIeH1i.js";import"./X-tomqNIg1.js";import"./tooltip-MGIMGAoz.js";import"./index-CS_ks7u-.js";import"./thread-route-BDTLcWS1.js";import"./use-panel-navigate-rE0Chr-2.js";import"./use-project-scope-P0x76zE6.js";import"./use-virtual-mcp-DfNb-iFO.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-D9XS7l59.js";import"./hooks-BdWJM6ej.js";import"./backoff-8mStPHYB.js";import"./task-board-DfS5a_U6.js";import"./schema-B6bqanRf.js";import"./agent-icon-CP9iXRWW.js";import"./AlertCircle-BxsvjprR.js";import"./Tool01-BCsmpwCz.js";import"./ArrowUp-DPWXMpl2.js";import"./ArrowLeft-C98PG333.js";import"./ArrowRight-CK7-YvUr.js";import"./ZoomOut-CvfOKBlv.js";import"./Globe04-95dd8QSP.js";import"./CheckCircle-DS--6hmh.js";import"./Check-Blxq8j59.js";import"./ChevronUp-CRNjHjTK.js";import"./UserSquare-DKTJMzlh.js";import"./Copy01-DmLSY0Qf.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./Eye-DDS_VF-Y.js";import"./Share07-DV5DThxW.js";import"./XClose-DKTON5RG.js";import"./Image01-C1vTsGg9.js";import"./Key01-CfEGZMt9.js";import"./LayoutLeft-xPkXxcb6.js";import"./Link01-CvcI1eLv.js";import"./LinkExternal01-DH3oN4WK.js";import"./Monitor01-B9ABYuV_.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Plus-GxHWJNZK.js";import"./SearchMd-QgF27GDM.js";import"./Trash01-BgJo-uHb.js";import"./Upload01-BNcthBU9.js";import"./User01-DvYjRkyx.js";import"./Users01-DqJ21DOW.js";import"./Zap-DMCGUdZC.js";import"./toolbar-icon-button-DAWIeeny.js";import"./shell-layout-5RFwQBw2.js";import"./avatar-D9bHXtJ-.js";import"./download-app-dialog-Cg2Fsige.js";import"./dialog-D_eZEQVv.js";import"./command-CfliK-Cc.js";import"./index-DwgW_YLd.js";import"./integration-icon-DG8pRbj-.js";import"./project-icon-KCkwxFCZ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BuQC1B0R.js";import"./autosend-DxvfLrdl.js";import"./use-org-sso-DUkP7wB6.js";import"./resizable-BSTHeCGD.js";import"./route-page-header-DqB3P7Mp.js";import"./site-url-en5df9c-.js";import"./input-CUqzZQqX.js";import"./use-reports-diagnostic-rG5xwYUZ.js";import"./companions-core-BnuxEm_5.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C8GSbvaz.js";import"./mini-report-page-CsRp8RBX.js";import"./self-tool-result-8OxPN9Nm.js";import"./site-error-Da6iapvu.js";function vt(){const o=m.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(i.Content,{children:r.jsx(p,{})}),o[0]=t):t=o[0],t}export{vt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,b as U,r as O,l as Y,j as s,h as je,X as le,ar as ke,aq as Le,E as Tt,a as $e,K as _t,m as nt,q as xe,a3 as at,as as ss,at as ns,U as wt,t as Ct,ak as as,d as De,n as ft,au as rs,f as Se,C as mt,e as is,u as Fe,k as ls,av as os,aw as cs,O as Pt,ax as ds,N as us,B as fs,P as Ye}from"./index-B_jqJjWZ.js";import{i as rt}from"./AlertCircle-BxsvjprR.js";import{i as ms}from"./LayoutLeft-xPkXxcb6.js";import{u as hs}from"./use-in-settings-kPZjTMQr.js";import{T as Ae}from"./toolbar-icon-button-DAWIeeny.js";import{C as ee,w as ps}from"./index-DnYPqGbF.js";import{u as xs,a as gs}from"./use-organization-settings-DkOGSUvX.js";import{d as bs,i as vs}from"./decofile-api-W5b1cAOf.js";import{u as Re,a as At,b as Ee,c as It,d as js,e as ys,s as ks}from"./chat-context-zkHg9OWQ.js";import{u as Mt}from"./use-session-runtime-DdWkBfbN.js";import{u as Ss}from"./use-ai-providers-D3QOmX-C.js";import{i as Ns}from"./CheckCircle-DS--6hmh.js";import{q as Ts,r as ht,A as ye,u as _s,v as ws,w as Cs,x as Ps,y as As,z as Is,B as Lt,C as Ms,D as Ls,E as $s,n as Ds}from"./agent-icon-CP9iXRWW.js";import{s as pt}from"./XClose-DKTON5RG.js";import{a as ce,b as $t}from"./use-virtual-mcp-DfNb-iFO.js";import{I as Dt}from"./integration-icon-DG8pRbj-.js";import{b as Fs}from"./use-entitlements-CObs1qD4.js";import{t as it}from"./ChevronUp-CRNjHjTK.js";import{O as Rs}from"./pair-Cntzz70t.js";import{u as Es,a as Os}from"./use-thread-outputs-DM_M_g6a.js";import{u as Bs}from"./use-deco-credits-Doeu9LgP.js";import{a as lt,b as zs,f as Gs,L as Hs,s as Us,c as Ks}from"./shell-layout-5RFwQBw2.js";import{f as Vs,b as Ws}from"./use-project-scope-P0x76zE6.js";import{g as et,u as qs,n as Ys,a as Qs}from"./use-releases-B1QdX0n3.js";import{d as Ft,c as Xs}from"./thread-intent-E5sYh_tC.js";import{u as Zs,a as ot,b as ct,c as dt}from"./hooks-BdWJM6ej.js";import{f as Js,a as Rt,b as en}from"./use-navigate-to-agent-C6DjZGwr.js";import{o as tn,s as sn,u as nn,S as an,a as rn}from"./sandbox-lifecycle-context-D9wQaDsx.js";import{E as Et}from"./empty-state-DdD7u29c.js";import{t as ln,m as on,u as cn}from"./thread-button-C_OQPTk1.js";import{g as Ot}from"./github-repo-BknN0SVI.js";import{ChatLayout as xt}from"./index-D6rGE1Dy.js";import{a as Bt,b as zt,P as Gt}from"./popover-D7TbzVGm.js";import{T as Oe,a as Be,c as ze}from"./tooltip-MGIMGAoz.js";import{T as dn,a as un}from"./toggle-group-Br61F69t.js";import{u as Ht,a as Ge,r as fn,b as Ut,c as mn,d as hn}from"./thread-route-BDTLcWS1.js";import{d as pn,h as xn,c as gn,b as bn,D as vn}from"./dialog-D_eZEQVv.js";import{c as jn,C as yn,a as kn,b as Sn,e as Nn,d as Tn}from"./command-CfliK-Cc.js";import{i as Kt}from"./Zap-DMCGUdZC.js";import{A as _n,a as wn,b as Cn,c as Pn,g as An,d as In,e as Mn,f as Ln}from"./alert-dialog-B5hf3Zq6.js";import{g as $n,S as Dn}from"./task-status-BVsZxsbL.js";import{a as Fn}from"./format-time-BtXRrtv4.js";import{i as Rn,a as En}from"./Share07-DV5DThxW.js";import{a as Vt,u as On}from"./use-panel-navigate-rE0Chr-2.js";import{u as Wt}from"./use-main-panel-tabs-DQnZor4-.js";import{a as Bn}from"./ZoomOut-CvfOKBlv.js";import{b as zn,c as qt,S as Gn,d as Hn}from"./select-jSjoqSVI.js";import{L as ut,a as Un}from"./legacy-main-redirect-DPq1EZZB.js";import{u as Kn}from"./use-mobile-beNLxD1C.js";import{L as Vn}from"./preview-dialog-LK5goGiO.js";import{O as Wn}from"./org-file-open-context-BUYeSnyZ.js";import{B as gt}from"./blocks-preview-workspace-context-D339Nq0O.js";import{u as Yt}from"./use-is-desktop-app-BNujXJc_.js";import{p as qn}from"./virtual-mcp-VXYym_wm.js";import"./sheet-D_ZIeH1i.js";import"./X-tomqNIg1.js";import"./ArrowUp-DPWXMpl2.js";import"./gateway-client-BS6ihzBm.js";import"./drawer-BbjSV6aw.js";import"./collection-search-DIxBrmSt.js";import"./SearchMd-QgF27GDM.js";import"./use-mcp-client-BdNrVAJP.js";import"./auth-pb03Kzig.js";import"./use-mcp-prompts-1Ewo80b8.js";import"./index-CFR2L-q4.js";import"./form-C7tLG-xD.js";import"./label-B42WVwom.js";import"./input-CUqzZQqX.js";import"./utils-CVEq3hMx.js";import"./input-CPX_K4na.js";import"./autosend-DxvfLrdl.js";import"./chat-draft-DSG5ngj7.js";import"./ArrowRight-CK7-YvUr.js";import"./Check-Blxq8j59.js";import"./Image01-C1vTsGg9.js";import"./Upload01-BNcthBU9.js";import"./Copy01-DmLSY0Qf.js";import"./ArrowLeft-C98PG333.js";import"./usage-stats-CtwYJCDG.js";import"./use-copy-BF-mjGgx.js";import"./markdown-7es2nAha.js";import"./Eye-DDS_VF-Y.js";import"./tabs-C3x66yHR.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-y3R__MyB.js";import"./decopilot-TYyHvkDT.js";import"./checkbox-K4FR-PUT.js";import"./Tool01-BCsmpwCz.js";import"./Key01-CfEGZMt9.js";import"./ai-providers-logos-DD3qZ33J.js";import"./Monitor01-B9ABYuV_.js";import"./avatar-D9bHXtJ-.js";import"./User01-DvYjRkyx.js";import"./download-app-dialog-Cg2Fsige.js";import"./index-_sXoF1Et.js";import"./input-D3d-YnPi.js";import"./suggestion-U-2vYvOO.js";import"./use-org-fs-iJQRZ_Y8.js";import"./Link01-CvcI1eLv.js";import"./Plus-GxHWJNZK.js";import"./question-004-sINsf4GQ.js";import"./use-members-hbcweNuZ.js";import"./use-org-auth-client-Cn5VVAMk.js";import"./feature-paywall-BMHKK3Z9.js";import"./plan-ladder-CgZjoFq0.js";import"./add-connection-dialog-DGaBiFHb.js";import"./extract-connection-data-IvHnTVAw.js";import"./metadata-D72DunRR.js";import"./connection-vEOaKzQz.js";import"./connection-card-DvPe_M7v.js";import"./useInfiniteQuery-U5kS7Aw3.js";import"./infiniteQueryObserver-DSiFdm1_.js";import"./connection-slug-CITJ0kGN.js";import"./slugify-CEUa2lfQ.js";import"./textarea-BWwZU_t6.js";import"./use-connection-BhRHLAsr.js";import"./UserSquare-DKTJMzlh.js";import"./connection-form-helpers-DplEqD9m.js";import"./Trash01-BgJo-uHb.js";import"./authenticate-and-persist-oauth-ByuGS_gG.js";import"./mcp-oauth-Ckxkgwom.js";import"./collection-tabs-BAPv5IF9.js";import"./badge-DXHGQv94.js";import"./use-infinite-scroll-R-FVBBxh.js";import"./useSuspenseInfiniteQuery-BGK64Vi3.js";import"./schema-B6bqanRf.js";import"./task-board-DfS5a_U6.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BnXMCuEf.js";import"./Globe04-95dd8QSP.js";import"./CreditCard01-C6GC8NM-.js";import"./DotsVertical-B2eyM1bc.js";import"./LinkExternal01-DH3oN4WK.js";import"./Sun-C3em9BZW.js";import"./Palette-DJJWQUTk.js";import"./Users01-DqJ21DOW.js";import"./collapsible-C198MfkN.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DhZPltbk.js";import"./types-BobDzo_S.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./file-type-icon-ClDaqk3f.js";import"./project-icon-KCkwxFCZ.js";import"./required-auth-layout-BuQC1B0R.js";import"./use-org-sso-DUkP7wB6.js";import"./serial-task-queue-CGOeQgpr.js";import"./backoff-8mStPHYB.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-route-default-main-D9XS7l59.js";import"./resizable-BSTHeCGD.js";import"./route-page-header-DqB3P7Mp.js";import"./index-CS_ks7u-.js";import"./index-DwgW_YLd.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-mcp-tools-Cu0xFgEP.js";import"./use-task-metadata-DDYUL_Qx.js";import"./use-project-native-view-presence-1YdimLRn.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DigsDSAK.js";import"./site-slug-DebpOoQq.js";import"./preview-content-BHvFZwTL.js";import"./file-preview-8F3P6Bl5.js";import"./utils-YiROKHsB.js";import"./editor-z3_N_jkd.js";import"./file-share-button-DyElnx8z.js";function Yn({isThreadLocked:t,hasCloudProviderKeys:e}){return t?!1:!e}function Qn(){const t=$.c(3),e=Ss(),r=Re()?.isThreadLocked??!1,i=e.length>0;let a;return t[0]!==r||t[1]!==i?(a=Yn({isThreadLocked:r,hasCloudProviderKeys:i}),t[0]=r,t[1]=i,t[2]=a):a=t[2],a}function ve(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function Qe(t){if(!t)return"—";const e=typeof t=="string"?new Date(t):t;return isNaN(e.getTime())?"—":e.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function Xn(t){return t?t.replace(/-\d{8}(?:-[a-z0-9]+)*$/i,"").replace(/-/g," "):"—"}function Zn(t){const e=$.c(4),{items:n}=t;let r;e[0]!==n?(r=n.map(Jn),e[0]=n,e[1]=r):r=e[1];let i;return e[2]!==r?(i=s.jsx("div",{className:"grid grid-cols-2 gap-x-8 gap-y-6",children:r}),e[2]=r,e[3]=i):i=e[3],i}function Jn(t){return s.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[s.jsx("span",{className:"text-xs text-muted-foreground truncate",children:t.label}),s.jsx("span",{className:"text-sm text-foreground tabular-nums truncate",children:t.value})]},t.label)}function ea(t){const e=$.c(33),{userTokens:n,assistantTokens:r,otherTokens:i}=t,a=U(),l=n+r+i,d=l>0?n/l*100:0,u=l>0?r/l*100:0,o=l>0?i/l*100:0;let c;e[0]!==d?(c=d>0&&s.jsx("div",{className:"h-full bg-chart-1",style:{width:`${d}%`}}),e[0]=d,e[1]=c):c=e[1];let f;e[2]!==u?(f=u>0&&s.jsx("div",{className:"h-full bg-chart-2",style:{width:`${u}%`}}),e[2]=u,e[3]=f):f=e[3];let m;e[4]!==o?(m=o>0&&s.jsx("div",{className:"h-full bg-muted-foreground/30",style:{width:`${o}%`}}),e[4]=o,e[5]=m):m=e[5];let h;e[6]!==c||e[7]!==f||e[8]!==m?(h=s.jsxs("div",{className:"flex h-2 w-full overflow-hidden rounded-full bg-muted",children:[c,f,m]}),e[6]=c,e[7]=f,e[8]=m,e[9]=h):h=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-chart-1 shrink-0"}),e[10]=g):g=e[10];let j;e[11]!==a||e[12]!==d?(j=a("chat.contextPanel.userPercent",{pct:d.toFixed(1)}),e[11]=a,e[12]=d,e[13]=j):j=e[13];let k;e[14]!==j?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[g,s.jsx("span",{className:"text-xs text-muted-foreground",children:j})]}),e[14]=j,e[15]=k):k=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-chart-2 shrink-0"}),e[16]=p):p=e[16];let b;e[17]!==u||e[18]!==a?(b=a("chat.contextPanel.assistantPercent",{pct:u.toFixed(1)}),e[17]=u,e[18]=a,e[19]=b):b=e[19];let y;e[20]!==b?(y=s.jsxs("div",{className:"flex items-center gap-1.5",children:[p,s.jsx("span",{className:"text-xs text-muted-foreground",children:b})]}),e[20]=b,e[21]=y):y=e[21];let v;e[22]!==o||e[23]!==i||e[24]!==a?(v=i>0&&s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-muted-foreground/30 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:a("chat.contextPanel.otherPercent",{pct:o.toFixed(1)})})]}),e[22]=o,e[23]=i,e[24]=a,e[25]=v):v=e[25];let x;e[26]!==y||e[27]!==v||e[28]!==k?(x=s.jsxs("div",{className:"flex flex-wrap gap-x-3 gap-y-1",children:[k,y,v]}),e[26]=y,e[27]=v,e[28]=k,e[29]=x):x=e[29];let T;return e[30]!==x||e[31]!==h?(T=s.jsxs("div",{className:"flex flex-col gap-2",children:[h,x]}),e[30]=x,e[31]=h,e[32]=T):T=e[32],T}function ta(t){const e=$.c(14),{agentId:n,isError:r}=t,i=ce(n),a=U();let l;e[0]!==i?.title||e[1]!==a?(l=i?.title??a("chat.subtask.subtaskNoun"),e[0]=i?.title,e[1]=a,e[2]=l):l=e[2];const d=l,u=i?.icon??null;let o;e[3]!==u||e[4]!==d?(o=s.jsx(Dt,{icon:u,name:d,size:"xs",className:"size-6 rounded-md shrink-0"}),e[3]=u,e[4]=d,e[5]=o):o=e[5];const c=r?"text-destructive":"text-foreground";let f;e[6]!==c?(f=Y("shrink-0 font-medium",c),e[6]=c,e[7]=f):f=e[7];let m;e[8]!==d||e[9]!==f?(m=s.jsx("span",{className:f,children:d}),e[8]=d,e[9]=f,e[10]=m):m=e[10];let h;return e[11]!==o||e[12]!==m?(h=s.jsxs(s.Fragment,{children:[o,m]}),e[11]=o,e[12]=m,e[13]=h):h=e[13],h}function sa(t){const e=$.c(12),{isError:n}=t,r=U();let i;e[0]!==r?(i=r("chat.contextPanel.subtask"),e[0]=r,e[1]=i):i=e[1];const a=i;let l;e[2]!==a?(l=s.jsx(Dt,{icon:null,name:a,size:"xs",className:"size-6 rounded-md shrink-0"}),e[2]=a,e[3]=l):l=e[3];const d=n?"text-destructive":"text-foreground";let u;e[4]!==d?(u=Y("shrink-0 font-medium",d),e[4]=d,e[5]=u):u=e[5];let o;e[6]!==a||e[7]!==u?(o=s.jsx("span",{className:u,children:a}),e[6]=a,e[7]=u,e[8]=o):o=e[8];let c;return e[9]!==l||e[10]!==o?(c=s.jsxs(s.Fragment,{children:[l,o]}),e[9]=l,e[10]=o,e[11]=c):c=e[11],c}function na(t){const e=$.c(18),{part:n}=t,r=n.input?.agent_id,i=n.state==="input-streaming"||n.state==="input-available"||n.state==="output-available"&&n.preliminary===!0,a=n.state==="output-error",l=n.state==="approval-requested";let d;e[0]!==a?(d=s.jsx(sa,{isError:a}),e[0]=a,e[1]=d):d=e[1];let u;e[2]!==r||e[3]!==a?(u=s.jsx(ta,{agentId:r,isError:a}),e[2]=r,e[3]=a,e[4]=u):u=e[4];let o;e[5]!==d||e[6]!==u?(o=s.jsx(O.Suspense,{fallback:d,children:u}),e[5]=d,e[6]=u,e[7]=o):o=e[7];let c;e[8]!==n.input?(c=n.input?.prompt&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-muted-foreground/50",children:"·"}),s.jsx("span",{className:"truncate text-muted-foreground",children:n.input.prompt})]}),e[8]=n.input,e[9]=c):c=e[9];let f;e[10]!==l||e[11]!==a||e[12]!==i?(f=s.jsx("span",{className:"ml-auto shrink-0",children:i?s.jsx(je,{className:"size-3 text-muted-foreground"}):a?s.jsx(Ts,{size:12,className:"text-destructive"}):l?s.jsx(rt,{size:12,className:"text-warning"}):s.jsx(Ns,{size:12,className:"text-success"})}),e[10]=l,e[11]=a,e[12]=i,e[13]=f):f=e[13];let m;return e[14]!==o||e[15]!==c||e[16]!==f?(m=s.jsxs("div",{className:"flex items-center gap-2 text-xs min-w-0",children:[o,c,f]}),e[14]=o,e[15]=c,e[16]=f,e[17]=m):m=e[17],m}function aa(t){const e=$.c(51),{onClose:n,back:r,className:i}=t,a=U(),[l,d]=O.useState(null),{messages:u}=At(),{activeTask:o}=Ee(),{selectedModel:c,selectedVirtualMcp:f}=It(),m=js(u),h=[...u].reverse().find(pa),g=h?.metadata?.usage,j=h?.metadata?.modelLimits?.contextWindow??c?.limits?.contextWindow??null,k=g?.contextTokens??0,p=j&&j>0?(k/j*100).toFixed(1):null,b=u;let y;e[0]!==b?(y=b.filter(ha).reduce(ma,0),e[0]=b,e[1]=y):y=e[1];const v=y,x=u;let T;e[2]!==x?(T=x.filter(fa).reduce(ua,0),e[2]=x,e[3]=T):T=e[3];const S=T,N=Math.max(0,m.totalTokens-v-S),w=u[0],_=u.at(-1),C=w?.metadata?.created_at??o?.created_at,L=_?.metadata?.created_at??o?.updated_at,P=u.filter(da),I=u.flatMap(oa),A=c?.modelId?Xn(c.modelId):"—",D=f?.title??"Super Agent",F=Fs(),R=[{label:a("chat.contextPanel.sessionLabel"),value:o?.title??a("chat.contextPanel.newChat")},{label:a("chat.contextPanel.messagesLabel"),value:P.length},{label:a("chat.contextPanel.agentLabel"),value:D},...F?[{label:a("chat.contextPanel.modelLabel"),value:A}]:[],{label:a("chat.contextPanel.contextLimitLabel"),value:j?ve(j):"—"},{label:a("chat.contextPanel.sessionTokensLabel"),value:m.totalTokens>0?ve(m.totalTokens):"0"},{label:a("chat.contextPanel.usageLabel"),value:p!==null?`${p}%`:"—"},{label:a("chat.contextPanel.inputTokensLabel"),value:m.inputTokens>0?ve(m.inputTokens):"0"},{label:a("chat.contextPanel.outputTokensLabel"),value:m.outputTokens>0?ve(m.outputTokens):"0"},{label:a("chat.contextPanel.reasoningTokensLabel"),value:m.reasoningTokens>0?ve(m.reasoningTokens):"0"},...F?[{label:a("chat.contextPanel.costLabel"),value:m.cost>0?`$${m.cost<.001?m.cost.toFixed(6):m.cost.toFixed(4)}`:"$0.00"}]:[],{label:a("chat.contextPanel.sessionCreatedLabel"),value:Qe(C)},{label:a("chat.contextPanel.lastActivityLabel"),value:Qe(L)}];if(!o&&P.length===0){let H;e[4]!==i?(H=Y("flex flex-col h-full w-full border-l border-border bg-background",i),e[4]=i,e[5]=H):H=e[5];let q;e[6]!==a?(q=a("chat.contextPanel.title"),e[6]=a,e[7]=q):q=e[7];let ae;e[8]!==q?(ae=s.jsx("span",{className:"text-sm font-medium text-foreground",children:q}),e[8]=q,e[9]=ae):ae=e[9];let ie;e[10]!==r?(ie=r?s.jsx(ht,{size:14,className:"text-muted-foreground"}):s.jsx(pt,{size:14,className:"text-muted-foreground"}),e[10]=r,e[11]=ie):ie=e[11];let J;e[12]!==n||e[13]!==ie?(J=s.jsx("button",{type:"button",onClick:n,className:"flex size-6 items-center justify-center hover:bg-accent transition-colors rounded-lg",children:ie}),e[12]=n,e[13]=ie,e[14]=J):J=e[14];let oe;e[15]!==ae||e[16]!==J?(oe=s.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[ae,J]}),e[15]=ae,e[16]=J,e[17]=oe):oe=e[17];let te;e[18]!==a?(te=a("chat.contextPanel.emptyState"),e[18]=a,e[19]=te):te=e[19];let se;e[20]!==te?(se=s.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:te})}),e[20]=te,e[21]=se):se=e[21];let re;return e[22]!==oe||e[23]!==se||e[24]!==H?(re=s.jsxs("div",{className:H,children:[oe,se]}),e[22]=oe,e[23]=se,e[24]=H,e[25]=re):re=e[25],re}let M;e[26]!==i?(M=Y("flex flex-col h-full w-full border-l border-border bg-background overflow-y-auto",i),e[26]=i,e[27]=M):M=e[27];let G;e[28]!==a?(G=a("chat.contextPanel.title"),e[28]=a,e[29]=G):G=e[29];let B;e[30]!==G?(B=s.jsx("span",{className:"text-sm font-medium text-foreground",children:G}),e[30]=G,e[31]=B):B=e[31];let V;e[32]!==r?(V=r?s.jsx(ht,{size:14}):s.jsx(pt,{size:14}),e[32]=r,e[33]=V):V=e[33];let E;e[34]!==n||e[35]!==V?(E=s.jsx("button",{type:"button",onClick:n,className:"flex h-7 w-7 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:V}),e[34]=n,e[35]=V,e[36]=E):E=e[36];let Q;e[37]!==B||e[38]!==E?(Q=s.jsxs("div",{className:"flex h-11 shrink-0 items-center justify-between border-b border-border/50 px-4",children:[B,E]}),e[37]=B,e[38]=E,e[39]=Q):Q=e[39];let K;e[40]!==a?(K=a("chat.contextPanel.contextBreakdownSection"),e[40]=a,e[41]=K):K=e[41];let W;e[42]!==K?(W=s.jsx("span",{className:"text-xs text-muted-foreground",children:K}),e[42]=K,e[43]=W):W=e[43];let X;e[44]!==S||e[45]!==N||e[46]!==v?(X=s.jsx(ea,{userTokens:v,assistantTokens:S,otherTokens:N}),e[44]=S,e[45]=N,e[46]=v,e[47]=X):X=e[47];let Z;return e[48]!==W||e[49]!==X?(Z=s.jsxs("div",{className:"flex flex-col gap-3",children:[W,X]}),e[48]=W,e[49]=X,e[50]=Z):Z=e[50],s.jsxs("div",{className:M,children:[Q,s.jsxs("div",{className:"flex flex-col gap-8 p-6",children:[I.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:a("chat.contextPanel.subtasksSection")}),s.jsx("div",{className:"flex flex-col gap-1",children:I.map(la)})]}),s.jsx(Zn,{items:R}),Z,P.length>0&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:a("chat.contextPanel.rawMessagesSection")}),s.jsx("div",{className:"flex flex-col gap-1",children:P.map(H=>{const q=H.metadata?.created_at,ae=l?.id===H.id;return s.jsxs("div",{className:"rounded-md border border-border/50 overflow-hidden",children:[s.jsxs("button",{type:"button",onClick:()=>d(ae?null:H),className:"flex items-center justify-between gap-2 px-3 py-2 text-xs hover:bg-accent/50 w-full text-left cursor-pointer",children:[s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsx("span",{className:Y("shrink-0 font-medium",H.role==="user"?"text-chart-1":"text-chart-2"),children:H.role}),s.jsx("span",{className:"text-muted-foreground",children:"•"}),s.jsx("span",{className:"truncate text-muted-foreground font-mono",children:H.id})]}),q&&s.jsx("span",{className:"shrink-0 text-muted-foreground tabular-nums",children:Qe(q)})]}),ae&&s.jsxs(s.Fragment,{children:[H.role==="assistant"&&(()=>{const ie=H.metadata?._request;if(!ie)return null;const J=ie.systemSections??[],oe=Math.max(1,...J.map(ia)),te=J.reduce(ra,0);return s.jsxs("div",{className:"border-t border-border/50 px-3 py-2.5 text-xs space-y-2.5",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"font-medium text-foreground",children:a("chat.contextPanel.requestLabel")}),s.jsxs("span",{className:"text-muted-foreground tabular-nums",children:[ie.activeTools??0," / ",ie.tools??0," ",a("chat.contextPanel.toolsActive")]})]}),J.length>0&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("div",{className:"text-muted-foreground",children:[a("chat.contextPanel.systemPromptLabel")," ",s.jsxs("span",{className:"tabular-nums",children:["~",Math.round(te/4).toLocaleString()," ",a("chat.contextPanel.tokAbbrev")]})]}),J.map((se,re)=>{const de=se.preview.match(/^<([a-z-]+)/i)?.[1]??`section ${re}`,ge=se.chars/oe*100,ue=Math.round(se.chars/4);return s.jsxs("div",{className:"space-y-0.5",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsx("span",{className:"font-mono text-foreground truncate",children:de}),s.jsxs("span",{className:"text-muted-foreground tabular-nums shrink-0",children:["~",ue.toLocaleString()," ",a("chat.contextPanel.tokAbbrev")]})]}),s.jsx("div",{className:"h-1 w-full rounded-full bg-muted overflow-hidden",children:s.jsx("div",{className:"h-full rounded-full bg-chart-3",style:{width:`${ge}%`}})})]},re)})]})]})})(),s.jsx("pre",{className:"text-xs font-mono bg-muted px-3 py-2 overflow-auto whitespace-pre-wrap break-all border-t border-border/50 max-h-64",children:JSON.stringify(H,null,2)})]})]},H.id)})})]})]})]})}function ra(t,e){return t+e.chars}function ia(t){return t.chars}function la(t,e){return s.jsx(na,{part:t},e)}function oa(t){return(t.parts??[]).filter(ca)}function ca(t){return t.type==="tool-subtask"}function da(t){return t.role!=="system"}function ua(t,e){const n=e.metadata?.usage;return t+(n?.outputTokens??0)}function fa(t){return t.role==="assistant"}function ma(t,e){const n=e.metadata?.usage;return t+(n?.inputTokens??0)}function ha(t){return t.role==="user"}function pa(t){return t.role==="assistant"&&t.metadata?.usage}function xa(t){const e=$.c(21),{onOpenContextPanel:n}=t,{org:r}=le(),{selectedVirtualMcp:i}=It();let a;e[0]!==r.id?(a=ke(r.id),e[0]=r.id,e[1]=a):a=e[1];const d=i??a,o=ce(d.id)??d,c=o.title??"Super Agent",f=o.icon??null,m=o.description??null;let h;e[2]!==f||e[3]!==c?(h=s.jsx(ye,{icon:f,name:c,size:"lg"}),e[2]=f,e[3]=c,e[4]=h):h=e[4];let g;e[5]!==c?(g=s.jsx("h2",{className:"text-2xl font-semibold tracking-tight text-foreground",children:c}),e[5]=c,e[6]=g):g=e[6];let j;e[7]!==m?(j=m?s.jsx("p",{className:"text-sm text-muted-foreground max-w-md text-balance",children:m}):null,e[7]=m,e[8]=j):j=e[8];let k;e[9]!==g||e[10]!==j?(k=s.jsxs("div",{className:"space-y-1.5",children:[g,j]}),e[9]=g,e[10]=j,e[11]=k):k=e[11];let p;e[12]!==h||e[13]!==k?(p=s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center gap-4 px-6 text-center overflow-hidden",children:[h,k]}),e[12]=h,e[13]=k,e[14]=p):p=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(ee.IceBreakers,{className:"pb-3"}),e[15]=b):b=e[15];let y;e[16]!==n?(y=s.jsxs(ee.Footer,{children:[b,s.jsx(ee.Input,{onOpenContextPanel:n})]}),e[16]=n,e[17]=y):y=e[17];let v;return e[18]!==p||e[19]!==y?(v=s.jsxs(s.Fragment,{children:[p,y]}),e[18]=p,e[19]=y,e[20]=v):v=e[20],v}function bt(t){const e=$.c(17),{outputs:n,collapsed:r,onToggle:i,variant:a}=t,l=a==="card"?"rounded-xl border border-border bg-muted/95 shadow-sm backdrop-blur-sm":"border-b border-border bg-background";let d;e[0]!==l?(d=Y(l),e[0]=l,e[1]=d):d=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Files in this task"}),e[2]=u):u=e[2];const o=r&&"-rotate-90";let c;e[3]!==o?(c=Y("size-4 text-muted-foreground transition-transform",o),e[3]=o,e[4]=c):c=e[4];let f;e[5]!==c?(f=s.jsx(it,{className:c}),e[5]=c,e[6]=f):f=e[6];let m;e[7]!==i||e[8]!==f?(m=s.jsxs("button",{type:"button",onClick:i,className:"flex w-full items-center justify-between px-3 py-2.5 text-left",children:[u,f]}),e[7]=i,e[8]=f,e[9]=m):m=e[9];let h;e[10]!==r||e[11]!==n?(h=!r&&s.jsx("div",{className:"flex max-h-72 flex-col gap-1.5 overflow-y-auto px-2 pb-2",children:n.map(ga)}),e[10]=r,e[11]=n,e[12]=h):h=e[12];let g;return e[13]!==d||e[14]!==m||e[15]!==h?(g=s.jsxs("div",{className:d,children:[m,h]}),e[13]=d,e[14]=m,e[15]=h,e[16]=g):g=e[16],g}function ga(t){return s.jsx(Rs,{file:t},t.key)}function ba(){const t=$.c(13),e=Re()?.taskId??null,n=Es();let r;t[0]!==n?(r={enabled:n},t[0]=n,t[1]=r):r=t[1];const{data:i}=Os(e,r),[a,l]=O.useState(!1),[d,u]=O.useState(!0);if(!e||!i||i.length===0)return null;let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=()=>l(ja),t[2]=o):o=t[2];let c;t[3]!==a||t[4]!==i?(c=s.jsx("div",{className:"absolute top-2 right-2 z-10 hidden w-72 @[1280px]:block",children:s.jsx(bt,{variant:"card",outputs:i,collapsed:a,onToggle:o})}),t[3]=a,t[4]=i,t[5]=c):c=t[5];let f;t[6]===Symbol.for("react.memo_cache_sentinel")?(f=()=>u(va),t[6]=f):f=t[6];let m;t[7]!==d||t[8]!==i?(m=s.jsx("div",{className:"shrink-0 @[1280px]:hidden",children:s.jsx(bt,{variant:"bar",outputs:i,collapsed:d,onToggle:f})}),t[7]=d,t[8]=i,t[9]=m):m=t[9];let h;return t[10]!==c||t[11]!==m?(h=s.jsxs(s.Fragment,{children:[c,m]}),t[10]=c,t[11]=m,t[12]=h):h=t[12],h}function va(t){return!t}function ja(t){return!t}function ya(){const t=$.c(31),{org:e}=le(),n=Re(),{isChatEmpty:r}=At(),[i,a]=O.useState("chat"),l=Bs(),d=Qn(),{runtime:u}=Mt(n?.virtualMcpId);if(d&&u!=="cms"){let _;return t[0]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(ee,{className:"animate-in fade-in-0 duration-200",children:s.jsx(ee.Main,{className:"flex flex-col items-center",children:s.jsx(ee.EmptyState,{children:s.jsx(ee.NoAiProviderEmptyState,{})})})}),t[0]=_):_=t[0],_}let c;t[1]!==l.hasDecoKey||t[2]!==l.hasOnlyDecoProvider||t[3]!==l.isLoading||t[4]!==l.isZeroBalance||t[5]!==r||t[6]!==e?(c=l.hasDecoKey&&l.isZeroBalance&&l.hasOnlyDecoProvider&&!l.isLoading&&r&&!ps(e.id),t[1]=l.hasDecoKey,t[2]=l.hasOnlyDecoProvider,t[3]=l.isLoading,t[4]=l.isZeroBalance,t[5]=r,t[6]=e,t[7]=c):c=t[7];const f=c;let m;t[8]!==f?(m=f&&s.jsx(ee.CreditsEmptyState,{}),t[8]=f,t[9]=m):m=t[9];const h=i!=="chat"?!0:void 0,g=i!=="chat",j=i!=="chat"?"opacity-0 pointer-events-none":"opacity-100";let k;t[10]!==j?(k=Y("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",j),t[10]=j,t[11]=k):k=t[11];let p;t[12]!==r||t[13]!==u?(p=r&&u!=="cms"?s.jsx(xa,{onOpenContextPanel:()=>a("context")}):s.jsxs(s.Fragment,{children:[s.jsxs(ee.Main,{className:"relative flex flex-col overflow-hidden @container",children:[s.jsx(ba,{}),s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(ee.Messages,{})})]}),s.jsx(ee.Footer,{children:s.jsx(ee.Input,{onOpenContextPanel:()=>a("context")})})]}),t[12]=r,t[13]=u,t[14]=p):p=t[14];let b;t[15]!==h||t[16]!==g||t[17]!==k||t[18]!==p?(b=s.jsx("div",{inert:h,"aria-hidden":g,className:k,children:p}),t[15]=h,t[16]=g,t[17]=k,t[18]=p,t[19]=b):b=t[19];const y=i!=="context"?!0:void 0,v=i!=="context",x=i==="context"?"opacity-100":"opacity-0 pointer-events-none";let T;t[20]!==x?(T=Y("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",x),t[20]=x,t[21]=T):T=t[21];let S;t[22]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(aa,{back:!0,onClose:()=>a("chat")}),t[22]=S):S=t[22];let N;t[23]!==T||t[24]!==y||t[25]!==v?(N=s.jsx("div",{inert:y,"aria-hidden":v,className:T,children:S}),t[23]=T,t[24]=y,t[25]=v,t[26]=N):N=t[26];let w;return t[27]!==m||t[28]!==N||t[29]!==b?(w=s.jsxs(ee,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[m,b,N]}),t[27]=m,t[28]=N,t[29]=b,t[30]=w):w=t[30],w}function ka(){const t=$.c(7),e=U();let n;t[0]!==e?(n=e("agentShellLayout.agentShellLayout.chatLoadingError"),t[0]=e,t[1]=n):n=t[1];let r;t[2]!==n?(r=s.jsx("div",{role:"alert",className:"flex h-full flex-1 items-center justify-center text-sm text-muted-foreground",children:n}),t[2]=n,t[3]=r):r=t[3];let i;t[4]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Le,{children:s.jsx(ya,{})}),t[4]=i):i=t[4];let a;return t[5]!==r?(a=s.jsx(Tt,{fallback:r,children:i}),t[5]=r,t[6]=a):a=t[6],a}function Sa(t){const e=$.c(10),{org:n}=le(),r=Zs(),{data:i}=$e.useSession(),a=i?.user?.id,l=t?.id??null,d=!!t&&!!a&&!!t.created_by&&t.created_by!==a;let u;e[0]!==n.id||e[1]!==l?(u=_t.viewedThreadMetadataRefresh(n.id,l??""),e[0]=n.id,e[1]=l,e[2]=u):u=e[2];const o=!!r&&!!l&&d;let c;e[3]!==r||e[4]!==l?(c=async()=>(await r?.refreshThreadMetadata(l??""),!0),e[3]=r,e[4]=l,e[5]=c):c=e[5];let f;e[6]!==u||e[7]!==o||e[8]!==c?(f={queryKey:u,enabled:o,staleTime:Number.POSITIVE_INFINITY,queryFn:c},e[6]=u,e[7]=o,e[8]=c,e[9]=f):f=e[9],nt(f)}function Xe(t){const e=$.c(14),{label:n,value:r,onChange:i,options:a}=t;let l;e[0]!==n?(l=s.jsx("span",{className:"text-sm text-muted-foreground",children:n}),e[0]=n,e[1]=l):l=e[1];let d;e[2]!==i?(d=f=>f&&i(f),e[2]=i,e[3]=d):d=e[3];let u;e[4]!==a?(u=a.map(Na),e[4]=a,e[5]=u):u=e[5];let o;e[6]!==n||e[7]!==d||e[8]!==u||e[9]!==r?(o=s.jsx(un,{type:"single",size:"sm",value:r,onValueChange:d,"aria-label":n,className:"gap-0.5 rounded-lg border border-border bg-muted/50 p-0.5",children:u}),e[6]=n,e[7]=d,e[8]=u,e[9]=r,e[10]=o):o=e[10];let c;return e[11]!==l||e[12]!==o?(c=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l,o]}),e[11]=l,e[12]=o,e[13]=c):c=e[13],c}function Na(t){return s.jsxs(dn,{value:t.value,className:"h-6 gap-1.5 rounded-lg border border-transparent px-2 text-xs font-medium text-muted-foreground hover:bg-transparent data-[state=on]:border-border data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",children:[t.icon,t.label]},t.value)}function Ta(t){const e=$.c(91),{panel:n,className:r}=t,i=r===void 0?"md:size-[34px]":r,a=U();let l;e[0]!==a?(l=a("sidebar.taskGroupsList.filterChats"),e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(_s,{size:16}),e[2]=d):d=e[2];let u;e[3]!==n.filtersActive?(u=n.filtersActive&&s.jsx("span",{className:"absolute right-1 top-1 size-1.5 rounded-full bg-primary ring-2 ring-sidebar"}),e[3]=n.filtersActive,e[4]=u):u=e[4];let o;e[5]!==i||e[6]!==n.filtersActive||e[7]!==l||e[8]!==u?(o=s.jsx(Oe,{asChild:!0,children:s.jsx(Bt,{asChild:!0,children:s.jsxs(Ae,{"aria-label":l,active:n.filtersActive,className:i,children:[d,u]})})}),e[5]=i,e[6]=n.filtersActive,e[7]=l,e[8]=u,e[9]=o):o=e[9];let c;e[10]!==a?(c=a("sidebar.taskGroupsList.filterChats"),e[10]=a,e[11]=c):c=e[11];let f;e[12]!==c?(f=s.jsx(Be,{side:"bottom",children:c}),e[12]=c,e[13]=f):f=e[13];let m;e[14]!==o||e[15]!==f?(m=s.jsxs(ze,{children:[o,f]}),e[14]=o,e[15]=f,e[16]=m):m=e[16];let h;e[17]!==a?(h=a("sidebar.taskGroupsList.filterView"),e[17]=a,e[18]=h):h=e[18];const g=n.groupBy;let j;e[19]!==n?(j=q=>{xe("tasks_panel_group_by_changed",{to_value:q}),n.setGroupBy(q)},e[19]=n,e[20]=j):j=e[20];let k;e[21]!==a?(k=a("sidebar.taskGroupsList.viewList"),e[21]=a,e[22]=k):k=e[22];let p;e[23]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(ws,{size:13}),e[23]=p):p=e[23];let b;e[24]!==k?(b={value:"flat",label:k,icon:p},e[24]=k,e[25]=b):b=e[25];let y;e[26]!==a?(y=a("sidebar.taskGroupsList.viewStatus"),e[26]=a,e[27]=y):y=e[27];let v;e[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Cs,{size:13}),e[28]=v):v=e[28];let x;e[29]!==y?(x={value:"status",label:y,icon:v},e[29]=y,e[30]=x):x=e[30];let T;e[31]!==b||e[32]!==x?(T=[b,x],e[31]=b,e[32]=x,e[33]=T):T=e[33];let S;e[34]!==n.groupBy||e[35]!==j||e[36]!==T||e[37]!==h?(S=s.jsx(Xe,{label:h,value:g,onChange:j,options:T}),e[34]=n.groupBy,e[35]=j,e[36]=T,e[37]=h,e[38]=S):S=e[38];let N;e[39]!==a?(N=a("sidebar.taskGroupsList.filterType"),e[39]=a,e[40]=N):N=e[40];const w=n.typeFilter;let _;e[41]!==n?(_=q=>{xe("tasks_panel_filter_changed",{to_value:q}),n.setTypeFilter(q)},e[41]=n,e[42]=_):_=e[42];let C;e[43]!==a?(C=a("sidebar.taskGroupsList.typeAll"),e[43]=a,e[44]=C):C=e[44];let L;e[45]!==C?(L={value:"all",label:C},e[45]=C,e[46]=L):L=e[46];let P;e[47]!==a?(P=a("sidebar.taskGroupsList.typeChats"),e[47]=a,e[48]=P):P=e[48];let I;e[49]!==P?(I={value:"manual",label:P},e[49]=P,e[50]=I):I=e[50];let A;e[51]!==a?(A=a("sidebar.taskGroupsList.typeAuto"),e[51]=a,e[52]=A):A=e[52];let D;e[53]!==A?(D={value:"automation",label:A},e[53]=A,e[54]=D):D=e[54];let F;e[55]!==L||e[56]!==I||e[57]!==D?(F=[L,I,D],e[55]=L,e[56]=I,e[57]=D,e[58]=F):F=e[58];let R;e[59]!==n.typeFilter||e[60]!==N||e[61]!==_||e[62]!==F?(R=s.jsx(Xe,{label:N,value:w,onChange:_,options:F}),e[59]=n.typeFilter,e[60]=N,e[61]=_,e[62]=F,e[63]=R):R=e[63];let M;e[64]!==a?(M=a("sidebar.taskGroupsList.filterScope"),e[64]=a,e[65]=M):M=e[65];const G=n.showAll?"team":"mine";let B;e[66]!==n?(B=q=>n.setShowAll(q==="team"),e[66]=n,e[67]=B):B=e[67];let V;e[68]!==a?(V=a("sidebar.taskGroupsList.scopeMine"),e[68]=a,e[69]=V):V=e[69];let E;e[70]!==V?(E={value:"mine",label:V},e[70]=V,e[71]=E):E=e[71];let Q;e[72]!==a?(Q=a("sidebar.taskGroupsList.scopeTeam"),e[72]=a,e[73]=Q):Q=e[73];let K;e[74]!==Q?(K={value:"team",label:Q},e[74]=Q,e[75]=K):K=e[75];let W;e[76]!==E||e[77]!==K?(W=[E,K],e[76]=E,e[77]=K,e[78]=W):W=e[78];let X;e[79]!==M||e[80]!==G||e[81]!==B||e[82]!==W?(X=s.jsx(Xe,{label:M,value:G,onChange:B,options:W}),e[79]=M,e[80]=G,e[81]=B,e[82]=W,e[83]=X):X=e[83];let Z;e[84]!==S||e[85]!==R||e[86]!==X?(Z=s.jsxs(zt,{align:"start",className:"w-64 flex flex-col gap-3 p-3",children:[S,R,X]}),e[84]=S,e[85]=R,e[86]=X,e[87]=Z):Z=e[87];let H;return e[88]!==Z||e[89]!==m?(H=s.jsxs(Gt,{children:[m,Z]}),e[88]=Z,e[89]=m,e[90]=H):H=e[90],H}function _a(t,e){return t.filter(n=>n.id===e||!!n.trigger_id||ln(n))}function wa(){const t=$.c(2),e=$t()??[];let n;return t[0]!==e?(n=r=>{if(!r)return;const i=e.find(a=>a.id===r);return i?Ft(i.metadata):void 0},t[0]=e,t[1]=n):n=t[1],n}function Ca(t){const e=$.c(9),{virtualMcpId:n,size:r,showAutomationBadge:i}=t,a=r===void 0?"sm":r,l=U();let d;e[0]!==a||e[1]!==n?(d=n?s.jsx(Pa,{virtualMcpId:n,size:a}):s.jsx(ye,{icon:null,name:"?",size:a}),e[0]=a,e[1]=n,e[2]=d):d=e[2];let u;e[3]!==i||e[4]!==l?(u=i&&s.jsx("span",{"aria-label":l("tasksPanel.mcpAvatar.automationTriggered"),className:"absolute -bottom-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full bg-special border border-special text-special-foreground",children:s.jsx(Kt,{size:10,className:"text-white"})}),e[3]=i,e[4]=l,e[5]=u):u=e[5];let o;return e[6]!==d||e[7]!==u?(o=s.jsxs("div",{className:"relative shrink-0",children:[d,u]}),e[6]=d,e[7]=u,e[8]=o):o=e[8],o}function Pa(t){const e=$.c(6),{virtualMcpId:n,size:r}=t,i=ce(n);if(!i){let d;return e[0]!==r?(d=s.jsx(ye,{icon:null,name:"?",size:r}),e[0]=r,e[1]=d):d=e[1],d}const a=i.icon??null;let l;return e[2]!==i.title||e[3]!==r||e[4]!==a?(l=s.jsx(ye,{icon:a,name:i.title,size:r}),e[2]=i.title,e[3]=r,e[4]=a,e[5]=l):l=e[5],l}const vt=["thread"];function Aa(t){const e=$.c(53),{open:n,onOpenChange:r}=t,[i,a]=O.useState(""),{org:l}=le(),{setTaskId:d}=lt(),u=at(),o=U();let c,f,m,h;e[0]!==l.id||e[1]!==i?(h=i.trim(),c=h?20:10,m=nt,f=_t.globalSearch(l.id,h,c,vt),e[0]=l.id,e[1]=i,e[2]=c,e[3]=f,e[4]=m,e[5]=h):(c=e[2],f=e[3],m=e[4],h=e[5]);let g;e[6]!==c||e[7]!==u||e[8]!==h?(g=async()=>{const M=await u.call("GLOBAL_SEARCH",{query:h,limit:c,types:[...vt]});return{...M,items:M.items.filter(Ia)}},e[6]=c,e[7]=u,e[8]=h,e[9]=g):g=e[9];let j;e[10]!==n||e[11]!==f||e[12]!==g?(j={queryKey:f,enabled:n,queryFn:g,staleTime:1e4},e[10]=n,e[11]=f,e[12]=g,e[13]=j):j=e[13];const{data:k,isFetching:p}=m(j);let b;e[14]!==k?.items?(b=k?.items??[],e[14]=k?.items,e[15]=b):b=e[15];const y=b;let v;e[16]!==r?(v=M=>{M||a(""),r(M)},e[16]=r,e[17]=v):v=e[17];const x=v;let T;e[18]!==x||e[19]!==d?(T=M=>{x(!1),d(M.id,M.virtual_mcp_id??void 0)},e[18]=x,e[19]=d,e[20]=T):T=e[20];const S=T;let N;e[21]!==o?(N=o("tasksPanel.globalSearchDialog.title"),e[21]=o,e[22]=N):N=e[22];let w;e[23]!==N?(w=s.jsx(pn,{children:N}),e[23]=N,e[24]=w):w=e[24];let _;e[25]!==o?(_=o("tasksPanel.globalSearchDialog.description"),e[25]=o,e[26]=_):_=e[26];let C;e[27]!==_?(C=s.jsx(xn,{children:_}),e[27]=_,e[28]=C):C=e[28];let L;e[29]!==C||e[30]!==w?(L=s.jsxs(gn,{className:"sr-only",children:[w,C]}),e[29]=C,e[30]=w,e[31]=L):L=e[31];let P;e[32]!==o?(P=o("tasksPanel.globalSearchDialog.placeholder"),e[32]=o,e[33]=P):P=e[33];let I;e[34]!==i||e[35]!==P?(I=s.jsx(Nn,{value:i,onValueChange:a,placeholder:P}),e[34]=i,e[35]=P,e[36]=I):I=e[36];let A;e[37]!==S||e[38]!==p||e[39]!==y||e[40]!==o||e[41]!==h?(A=s.jsx(jn,{children:p&&y.length===0?s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:o("tasksPanel.globalSearchDialog.searching")}):y.length===0?s.jsx(yn,{children:o("tasksPanel.globalSearchDialog.noResults")}):s.jsx(kn,{heading:h?void 0:o("tasksPanel.globalSearchDialog.recent"),children:y.map(M=>M.type==="thread"?s.jsxs(Sn,{value:`thread:${M.id}:${M.title}`,onSelect:()=>S(M),className:"gap-2.5",children:[s.jsx(Ca,{virtualMcpId:M.virtual_mcp_id,size:"xs"}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("div",{className:"text-sm text-foreground truncate",children:M.title||o("tasksPanel.globalSearchDialog.untitledChat")})}),s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:new Date(M.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]},`thread:${M.id}`):null)})}),e[37]=S,e[38]=p,e[39]=y,e[40]=o,e[41]=h,e[42]=A):A=e[42];let D;e[43]!==I||e[44]!==A?(D=s.jsxs(Tn,{shouldFilter:!1,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:[I,A]}),e[43]=I,e[44]=A,e[45]=D):D=e[45];let F;e[46]!==L||e[47]!==D?(F=s.jsxs(bn,{className:"overflow-hidden p-0",closeButtonClassName:"hidden",children:[L,D]}),e[46]=L,e[47]=D,e[48]=F):F=e[48];let R;return e[49]!==x||e[50]!==n||e[51]!==F?(R=s.jsx(vn,{open:n,onOpenChange:x,children:F}),e[49]=x,e[50]=n,e[51]=F,e[52]=R):R=e[52],R}function Ia(t){return t.type==="thread"}function Ma(t){const e=$.c(43),{branch:n,onOutcome:r}=t,i=U();let a;e[0]!==r?(a=S=>{S||r("cancel")},e[0]=r,e[1]=a):a=e[1];let l;e[2]!==i?(l=i("sidebar.archiveWorktreeDialog.title"),e[2]=i,e[3]=l):l=e[3];let d;e[4]!==l?(d=s.jsx(_n,{children:l}),e[4]=l,e[5]=d):d=e[5];let u;e[6]!==i?(u=i("sidebar.archiveWorktreeDialog.stopsAndDeletesBefore"),e[6]=i,e[7]=u):u=e[7];let o;e[8]!==n?(o=s.jsx("span",{className:"font-mono",children:n}),e[8]=n,e[9]=o):o=e[9];let c;e[10]!==i?(c=i("sidebar.archiveWorktreeDialog.stopsAndDeletesAfter"),e[10]=i,e[11]=c):c=e[11];let f;e[12]!==u||e[13]!==o||e[14]!==c?(f=s.jsxs(wn,{children:[u," ",o," ",c]}),e[12]=u,e[13]=o,e[14]=c,e[15]=f):f=e[15];let m;e[16]!==d||e[17]!==f?(m=s.jsxs(Cn,{children:[d,f]}),e[16]=d,e[17]=f,e[18]=m):m=e[18];let h;e[19]!==r?(h=()=>r("cancel"),e[19]=r,e[20]=h):h=e[20];let g;e[21]!==i?(g=i("sidebar.archiveWorktreeDialog.cancel"),e[21]=i,e[22]=g):g=e[22];let j;e[23]!==g||e[24]!==h?(j=s.jsx(Pn,{onClick:h,children:g}),e[23]=g,e[24]=h,e[25]=j):j=e[25];let k;e[26]===Symbol.for("react.memo_cache_sentinel")?(k=Y(ss({variant:"destructive"})),e[26]=k):k=e[26];let p;e[27]!==r?(p=()=>r("confirm"),e[27]=r,e[28]=p):p=e[28];let b;e[29]!==i?(b=i("sidebar.archiveWorktreeDialog.confirm"),e[29]=i,e[30]=b):b=e[30];let y;e[31]!==p||e[32]!==b?(y=s.jsx(An,{className:k,onClick:p,children:b}),e[31]=p,e[32]=b,e[33]=y):y=e[33];let v;e[34]!==j||e[35]!==y?(v=s.jsxs(In,{children:[j,y]}),e[34]=j,e[35]=y,e[36]=v):v=e[36];let x;e[37]!==v||e[38]!==m?(x=s.jsxs(Mn,{children:[m,v]}),e[37]=v,e[38]=m,e[39]=x):x=e[39];let T;return e[40]!==a||e[41]!==x?(T=s.jsx(Ln,{open:!0,onOpenChange:a,children:x}),e[40]=a,e[41]=x,e[42]=T):T=e[42],T}function La(t,e,n){if(!n)return;const r=t.findIndex(i=>i.id===e);if(r!==-1){for(let i=r+1;i<t.length;i++){const a=t[i];if(a?.created_by===n)return a}for(let i=r-1;i>=0;i--){const a=t[i];if(a?.created_by===n)return a}}}function $a(t){return t==="ephemeral"||t.startsWith("thread:")}function Qt(t){const e=$.c(45),{task:n,isActive:r,onClick:i,onArchive:a,showAutomationBadge:l,showAgentIcon:d,hideStatusIdle:u,indented:o}=t,c=U(),f=$n(n.status),m=f.icon,h=n.metadata?.kind==="tool_call_run",g=ce(h?void 0:n.virtual_mcp_id);let j;e[0]!==g?(j=Ot(g),e[0]=g,e[1]=j):j=e[1];const k=j;zs(6e4);const p=l||!!n.trigger_id,b=n.id,y="button",v=0;let x;e[2]!==i?(x=B=>{B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),i())},e[2]=i,e[3]=x):x=e[3];const T=o?"-ml-4 pl-6":"pl-[9px]",S=r?"bg-accent text-accent-foreground":"hover:bg-accent/60";let N;e[4]!==T||e[5]!==S?(N=Y("group/row flex items-center gap-2 py-1.5 rounded-md cursor-pointer transition-colors",T,"focus-visible:outline-none focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50",S),e[4]=T,e[5]=S,e[6]=N):N=e[6];let w;e[7]!==h||e[8]!==d||e[9]!==g?.icon||e[10]!==g?.title?(w=d&&!h&&s.jsx(ye,{icon:g?.icon??null,name:g?.title??"?",size:"2xs"}),e[7]=h,e[8]=d,e[9]=g?.icon,e[10]=g?.title,e[11]=w):w=e[11];let _;e[12]!==p||e[13]!==c?(_=p&&s.jsx(Kt,{size:12,"aria-label":c("tasksPanel.taskRow.automationTriggered"),className:"shrink-0 text-special"}),e[12]=p,e[13]=c,e[14]=_):_=e[14];let C;e[15]!==c||e[16]!==n.title?(C=n.title||c("tasksPanel.taskRow.untitledTask"),e[15]=c,e[16]=n.title,e[17]=C):C=e[17];let L;e[18]!==C?(L=s.jsx("div",{className:"text-sm text-foreground truncate",children:C}),e[18]=C,e[19]=L):L=e[19];let P;e[20]!==_||e[21]!==L?(P=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[_,L]}),e[20]=_,e[21]=L,e[22]=P):P=e[22];let I;e[23]!==k||e[24]!==r||e[25]!==n.branch||e[26]!==n.updated_at?(I=n.updated_at&&s.jsxs("div",{className:Y("flex items-center gap-1 text-[11px] min-w-0",r?"text-accent-foreground/70":"text-muted-foreground/60"),children:[n.branch&&!$a(n.branch)?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"truncate font-mono",children:n.branch}),s.jsx("span",{className:"shrink-0",children:"·"})]}):k?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"truncate",children:[k.owner,"/",k.name]}),s.jsx("span",{className:"shrink-0",children:"·"})]}):null,s.jsx("span",{className:"shrink-0",children:Fn(new Date(n.updated_at))})]}),e[23]=k,e[24]=r,e[25]=n.branch,e[26]=n.updated_at,e[27]=I):I=e[27];let A;e[28]!==P||e[29]!==I?(A=s.jsxs("div",{className:"flex-1 min-w-0",children:[P,I]}),e[28]=P,e[29]=I,e[30]=A):A=e[30];const D="shrink-0 grid [grid-template-areas:'slot'] items-center justify-items-center",F=!u&&s.jsx("span",{className:Y("[grid-area:slot] flex size-8 items-center justify-center pointer-events-none transition-opacity",a&&"group-hover/row:opacity-0"),"aria-label":c("tasksPanel.taskRow.statusLabel",{status:c(f.labelKey)}),children:n.status==="in_progress"?s.jsx(je,{className:Y("size-3.5",f.iconClassName)}):s.jsx(m,{size:14,className:f.iconClassName})});let R;e[31]!==a||e[32]!==c?(R=a&&s.jsxs(ze,{children:[s.jsx(Oe,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":c("tasksPanel.taskRow.archiveTask"),onClick:B=>{B.stopPropagation(),a()},className:"[grid-area:slot] opacity-0 pointer-events-none group-hover/row:opacity-100 group-hover/row:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto transition-opacity flex size-8 items-center justify-center rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:s.jsx(ns,{size:14})})}),s.jsx(Be,{side:"right",children:c("tasksPanel.taskRow.archive")})]}),e[31]=a,e[32]=c,e[33]=R):R=e[33];let M;e[34]!==F||e[35]!==R?(M=s.jsxs("div",{className:D,children:[F,R]}),e[34]=F,e[35]=R,e[36]=M):M=e[36];let G;return e[37]!==i||e[38]!==A||e[39]!==M||e[40]!==x||e[41]!==N||e[42]!==w||e[43]!==n.id?(G=s.jsxs("div",{"data-task-id":b,role:y,tabIndex:v,onClick:i,onKeyDown:x,className:N,children:[w,A,M]}),e[37]=i,e[38]=A,e[39]=M,e[40]=x,e[41]=N,e[42]=w,e[43]=n.id,e[44]=G):G=e[44],G}const jt=["requires_action","in_progress","failed","expired","completed"];function Da(t){const e=new Map(jt.map(n=>[n,[]]));for(const n of t){const r=n.status??"completed";(e.get(r)??e.get("completed")).push(n)}return jt.map(n=>({status:n,threads:e.get(n)}))}const Fa="sidebar.group.expanded.";function Ra(t,e){const n=$.c(3),[r,i]=wt(`${Fa}${t}`,e);let a;return n[0]!==r||n[1]!==i?(a=[r,i],n[0]=r,n[1]=i,n[2]=a):a=n[2],a}function Xt(t){const e=$.c(18),{onClick:n,isFetching:r,indented:i}=t,a=U();let l;e[0]!==a?(l=a("sidebar.showMoreButton.ariaLabel"),e[0]=a,e[1]=l):l=e[1];const d=i?"-ml-4 pl-6 pr-2":"px-2";let u;e[2]!==d?(u=Y("flex items-center gap-2 py-1.5 rounded-lg text-sm text-muted-foreground",d,"hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50","transition-colors disabled:cursor-progress disabled:opacity-60"),e[2]=d,e[3]=u):u=e[3];let o;e[4]!==r?(o=r&&s.jsx(je,{className:"size-3.5"}),e[4]=r,e[5]=o):o=e[5];let c;e[6]!==r||e[7]!==a?(c=a(r?"sidebar.showMoreButton.loading":"sidebar.showMoreButton.showMore"),e[6]=r,e[7]=a,e[8]=c):c=e[8];let f;e[9]!==c?(f=s.jsx("span",{children:c}),e[9]=c,e[10]=f):f=e[10];let m;return e[11]!==r||e[12]!==n||e[13]!==l||e[14]!==u||e[15]!==o||e[16]!==f?(m=s.jsxs("button",{type:"button","aria-label":l,onClick:n,disabled:r,className:u,children:[o,f]}),e[11]=r,e[12]=n,e[13]=l,e[14]=u,e[15]=o,e[16]=f,e[17]=m):m=e[17],m}function Ea(t,e,n,r){return[t,e,n,r.type,r.member,r.currentUserId??""].join("|")}function Oa(t){return t.member==="mine"&&!t.currentUserId}const Zt=4;let Pe=0;const tt=[];function Ba(){for(;Pe<Zt&&tt.length>0;){const t=tt.shift();t&&t()}}function Jt(t){return new Promise((e,n)=>{const r=()=>{Pe++,t().then(e,n).finally(()=>{Pe--,Ba()})};Pe<Zt?r():tt.push(r)})}const He=10;function yt(t,e,n,r,i){const a={hidden:!1};r.member==="mine"&&r.currentUserId&&(a.created_by=r.currentUserId),r.type==="automation"&&(a.has_trigger=!0),r.type==="manual"&&(a.has_trigger=!1);const l={where:a,limit:i,offset:n,orderBy:[{field:["updated_at"],direction:"desc"}]};return l.status=e,l}function za(t,e,n,r){let i=0;for(const a of t)es(a,e,n,r)&&i++;return i}function Ze(t,e,n,r){return za(t,e,n,r)}function Ga(t,e){return!!(t>=He||t===0&&e)}function kt(t,e){return t<e}function Ha(t,e){return e===!1?!1:e===!0?!0:t}function es(t,e,n,r){return!(t.hidden||(t.status??"completed")!==n||r.member==="mine"&&r.currentUserId&&t.created_by!==r.currentUserId||r.type==="automation"&&!t.trigger_id||r.type==="manual"&&t.trigger_id)}const Ie=new Map,Ce=new Map;function Ua(t,e){return e?t>=He?!0:null:!1}function St(t){return Ie.get(t)}function Ka(t,e){Ie.set(t,e)}function Va(t,e,n){const r=Ie.get(t);if(r!==void 0){n(r);return}let i=Ce.get(t);i||(i=Jt(e).then(a=>(Ie.set(t,a),Ce.delete(t),a)).catch(()=>(Ce.delete(t),Promise.reject(new Error("group probe failed")))),Ce.set(t,i)),i.then(n,()=>n(!1))}function Nt(t){const e=t,n=Array.isArray(e.items)?e.items:[];return{items:n,hasMore:e.hasMore??n.length===He,totalCount:typeof e.totalCount=="number"?e.totalCount:void 0}}function Wa(t,e,n,r,i){let a=0;for(const l of t)e.has(l.id)||es(l,n,r,i)&&a++;return a}function qa(t,e,n,r){const i=$.c(8),{org:a}=le(),l=Ea(a.id,t,e,n);let d;i[0]!==n?(d=Oa(n),i[0]=n,i[1]=d):d=i[1];const u=d,[o,c]=O.useState({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:null,serverHasMore:null});o.identity!==l&&c({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:null,serverHasMore:null});const f=ot(),{threads:m,hasMore:h}=ct(),g=Ze(m,t,e,n),j=Ga(g,h),k=Ua(g,h),p=at();if(o.identity===l&&o.serverHasMore===null){const S=k??St(l);S!==void 0&&c({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:o.probeSubscribedIdentity,serverHasMore:S})}!u&&o.identity===l&&o.serverHasMore===null&&k===null&&St(l)===void 0&&o.probeSubscribedIdentity!==l&&(c(S=>S.identity===l?{...S,isProbing:!0,probeSubscribedIdentity:l}:S),Va(l,async()=>{const S=yt(t,e,0,n,1),N=await p.call("COLLECTION_THREADS_LIST",S),{totalCount:w}=Nt(N),_=Ze(f.threads.get(),t,e,n);return w===void 0?!1:kt(_,w)},S=>{c(N=>N.identity!==l?N:{...N,isProbing:!1,serverHasMore:S})}));const y=async function(){if(o.isFetching||o.isProbing||u)return;const N=l;c(w=>w.identity===N?{...w,isFetching:!0}:w);try{const w=Ze(m,t,e,n),_=yt(t,e,w,n,He),C=await Jt(()=>p.call("COLLECTION_THREADS_LIST",_)),{items:L,hasMore:P,totalCount:I}=Nt(C),A=new Set(m.map(Ya)),D=Wa(L,A,t,e,n),F=w;f.mergeThreads(L),c(R=>{if(R.identity!==N)return R;let M;return I!==void 0?M=kt(F+D,I):M=L.length===0||D===0?!1:P,Ka(N,M),{...R,isFetching:!1,serverHasMore:M}})}catch(w){const _=w,C=_ instanceof Error?_.message:String(_);Ct.error(`Could not load more tasks: ${C}`),c(L=>L.identity===N?{...L,isFetching:!1}:L)}},v=o.isFetching||o.isProbing,x=!u&&!v&&Ha(j,o.serverHasMore);let T;return i[2]!==v||i[3]!==y||i[4]!==x||i[5]!==o.isProbing||i[6]!==o.serverHasMore?(T={hasMore:x,isFetching:v,isProbing:o.isProbing,serverHasMore:o.serverHasMore,loadMore:y},i[2]=v,i[3]=y,i[4]=x,i[5]=o.isProbing,i[6]=o.serverHasMore,i[7]=T):T=i[7],T}function Ya(t){return t.id}function Qa(t){const e=$.c(20),{status:n,threads:r,activeTaskId:i,onSelectTask:a,onArchiveTask:l,canArchive:d,filters:u}=t,{isFetching:o,isProbing:c,loadMore:f,hasMore:m,serverHasMore:h}=qa("status",n,u),[g,j]=O.useState(!1);!g&&r.length===0&&h===!0&&!o&&!c&&(j(!0),queueMicrotask(()=>{f()}));let k;if(e[0]!==i||e[1]!==d||e[2]!==u||e[3]!==l||e[4]!==a||e[5]!==r){let y;e[7]!==i||e[8]!==d||e[9]!==u||e[10]!==l||e[11]!==a?(y=v=>s.jsx(Qt,{task:v,isActive:i===v.id,onClick:()=>a(v),onArchive:d&&v.created_by===u.currentUserId?()=>l(v):void 0,showAutomationBadge:!!v.trigger_id,showAgentIcon:!0,hideStatusIdle:!0,indented:!0},v.id),e[7]=i,e[8]=d,e[9]=u,e[10]=l,e[11]=a,e[12]=y):y=e[12],k=r.map(y),e[0]=i,e[1]=d,e[2]=u,e[3]=l,e[4]=a,e[5]=r,e[6]=k}else k=e[6];let p;e[13]!==m||e[14]!==o||e[15]!==f?(p=(m||o)&&s.jsx(Xt,{onClick:()=>{f()},isFetching:o,indented:!0}),e[13]=m,e[14]=o,e[15]=f,e[16]=p):p=e[16];let b;return e[17]!==k||e[18]!==p?(b=s.jsxs(s.Fragment,{children:[k,p]}),e[17]=k,e[18]=p,e[19]=b):b=e[19],b}function Xa(t){const e=$.c(43),{status:n,threads:r,activeTaskId:i,onSelectTask:a,onArchiveTask:l,canArchive:d,filters:u}=t,o=U(),c=Dn[n],f=c.icon,[m,h]=Ra(`status-${n}`,!1);let g;e[0]!==m||e[1]!==h?(g=function(){h(!m)},e[0]=m,e[1]=h,e[2]=g):g=e[2];const j=g;let k;e[3]!==c.labelKey||e[4]!==o?(k=o("sidebar.taskGroupsList.toggleStatusGroup",{status:o(c.labelKey)}),e[3]=c.labelKey,e[4]=o,e[5]=k):k=e[5];let p;e[6]!==j?(p=C=>{C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),j())},e[6]=j,e[7]=p):p=e[7];let b;e[8]!==f||e[9]!==c.iconClassName?(b=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(f,{size:12,className:c.iconClassName})}),e[8]=f,e[9]=c.iconClassName,e[10]=b):b=e[10];let y;e[11]!==m?(y=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground opacity-0 transition-opacity group-hover/group:opacity-100",children:m?s.jsx(it,{size:14}):s.jsx(as,{size:14})}),e[11]=m,e[12]=y):y=e[12];let v;e[13]!==b||e[14]!==y?(v=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[b,y]}),e[13]=b,e[14]=y,e[15]=v):v=e[15];let x;e[16]!==c.labelKey||e[17]!==o?(x=o(c.labelKey),e[16]=c.labelKey,e[17]=o,e[18]=x):x=e[18];let T;e[19]!==x?(T=s.jsx("span",{className:"flex-1 truncate",children:x}),e[19]=x,e[20]=T):T=e[20];let S;e[21]!==r.length?(S=s.jsx("div",{className:"size-5 shrink-0 flex items-center justify-center",children:s.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:r.length})}),e[21]=r.length,e[22]=S):S=e[22];let N;e[23]!==m||e[24]!==j||e[25]!==k||e[26]!==p||e[27]!==v||e[28]!==T||e[29]!==S?(N=s.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":m,"aria-label":k,onClick:j,onKeyDown:p,className:"group/group flex items-center gap-2 px-2 py-1.5 rounded-lg text-sm font-medium text-foreground cursor-pointer hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[v,T,S]}),e[23]=m,e[24]=j,e[25]=k,e[26]=p,e[27]=v,e[28]=T,e[29]=S,e[30]=N):N=e[30];let w;e[31]!==i||e[32]!==d||e[33]!==m||e[34]!==u||e[35]!==l||e[36]!==a||e[37]!==n||e[38]!==r?(w=m&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:s.jsx(Qa,{status:n,threads:r,activeTaskId:i,onSelectTask:a,onArchiveTask:l,canArchive:d,filters:u})}),e[31]=i,e[32]=d,e[33]=m,e[34]=u,e[35]=l,e[36]=a,e[37]=n,e[38]=r,e[39]=w):w=e[39];let _;return e[40]!==N||e[41]!==w?(_=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[N,w]}),e[40]=N,e[41]=w,e[42]=_):_=e[42],_}function Za(t){const e=$.c(41),{threads:n,groupBy:r,activeTaskId:i,onSelectTask:a,onArchiveTask:l,filters:d,hasMore:u,isFetchingMore:o,onLoadMore:c,filtersActive:f}=t,m=U();if(n.length===0&&!u&&!o){let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Ps,{className:"size-6 opacity-60"}),e[0]=p):p=e[0];let b;e[1]!==f||e[2]!==m?(b=m(f?"sidebar.myThreadsSection.noChatsMatchFilters":"sidebar.myThreadsSection.noChatsYet"),e[1]=f,e[2]=m,e[3]=b):b=e[3];let y;return e[4]!==b?(y=s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 px-4 py-12 text-center text-muted-foreground",children:[p,s.jsx("p",{className:"text-sm",children:b})]}),e[4]=b,e[5]=y):y=e[5],y}const h=n.length>1||u;if(r==="status"){let p;if(e[6]!==i||e[7]!==h||e[8]!==d||e[9]!==l||e[10]!==a||e[11]!==n){let y;e[13]!==i||e[14]!==h||e[15]!==d||e[16]!==l||e[17]!==a?(y=v=>s.jsx(Xa,{status:v.status,threads:v.threads,activeTaskId:i,onSelectTask:a,onArchiveTask:l,canArchive:h,filters:d},v.status),e[13]=i,e[14]=h,e[15]=d,e[16]=l,e[17]=a,e[18]=y):y=e[18],p=Da(n).map(y),e[6]=i,e[7]=h,e[8]=d,e[9]=l,e[10]=a,e[11]=n,e[12]=p}else p=e[12];let b;return e[19]!==p?(b=s.jsx(s.Fragment,{children:p}),e[19]=p,e[20]=b):b=e[20],b}let g;if(e[21]!==i||e[22]!==h||e[23]!==d||e[24]!==l||e[25]!==a||e[26]!==n){let p;e[28]!==i||e[29]!==h||e[30]!==d||e[31]!==l||e[32]!==a?(p=b=>s.jsx(Qt,{task:b,isActive:i===b.id,onClick:()=>a(b),onArchive:h&&b.created_by===d.currentUserId?()=>l(b):void 0,showAutomationBadge:!!b.trigger_id,showAgentIcon:!0},b.id),e[28]=i,e[29]=h,e[30]=d,e[31]=l,e[32]=a,e[33]=p):p=e[33],g=n.map(p),e[21]=i,e[22]=h,e[23]=d,e[24]=l,e[25]=a,e[26]=n,e[27]=g}else g=e[27];let j;e[34]!==u||e[35]!==o||e[36]!==c?(j=(u||o)&&s.jsx(Xt,{onClick:c,isFetching:o}),e[34]=u,e[35]=o,e[36]=c,e[37]=j):j=e[37];let k;return e[38]!==g||e[39]!==j?(k=s.jsxs(s.Fragment,{children:[g,j]}),e[38]=g,e[39]=j,e[40]=k):k=e[40],k}function Ja(t,e){return null}function er(t,e){return t.some(n=>n.id!==e.taskId&&!n.hidden&&n.branch===e.branch&&n.virtual_mcp_id===e.virtualMcpId)}const tr=["archive","reclaim-worktree"],sr=[];function nr(t){return t==="confirm"?tr:sr}function ar(t){const e=$.c(11),{panel:n}=t;let r;return e[0]!==n.activeTaskId||e[1]!==n.archiveTask||e[2]!==n.filters||e[3]!==n.filtersActive||e[4]!==n.groupBy||e[5]!==n.hasMore||e[6]!==n.isFetchingMore||e[7]!==n.loadMore||e[8]!==n.selectTask||e[9]!==n.threads?(r=s.jsx(Za,{threads:n.threads,groupBy:n.groupBy,activeTaskId:n.activeTaskId,onSelectTask:n.selectTask,onArchiveTask:n.archiveTask,filters:n.filters,hasMore:n.hasMore,isFetchingMore:n.isFetchingMore,onLoadMore:n.loadMore,filtersActive:n.filtersActive}),e[0]=n.activeTaskId,e[1]=n.archiveTask,e[2]=n.filters,e[3]=n.filtersActive,e[4]=n.groupBy,e[5]=n.hasMore,e[6]=n.isFetchingMore,e[7]=n.loadMore,e[8]=n.selectTask,e[9]=n.threads,e[10]=r):r=e[10],r}function rr(t){const e=$.c(83);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{onNavigate:r}=n,i=U(),{data:a}=$e.useSession(),l=a?.user?.id,{org:d}=le();let u;e[2]!==d.id?(u=ke(d.id),e[2]=d.id,e[3]=u):u=e[3];const o=u.id,c=wa(),{threads:f,hasMore:m,isFetchingMore:h,fetchNextPage:g}=ct(),j=f.filter(cr),{hide:k,setScope:p}=dt(),b=De(),y=at(),{setTaskId:v,createNewTask:x}=lt(),T=Ht(),S=Ge();let N;e[4]!==S||e[5]!==f||e[6]!==T?(N=fn({routeAgentId:T,threadVirtualMcpId:f.find(z=>z.id===S)?.virtual_mcp_id}),e[4]=S,e[5]=f,e[6]=T,e[7]=N):N=e[7];const w=N;let _;e[8]!==r?(_=()=>{r?.()},e[8]=r,e[9]=_):_=e[9];const C=_,L=[...j].sort(or),[P,I]=O.useState("all"),[A,D]=O.useState("flat"),[F,R]=wt("sidebar-threads-scope-all",!1),[M,G]=O.useState(!1),[B,V]=O.useState(!1);let E;e[10]!==G?(E=()=>{xe("tasks_panel_search_opened"),V(!0),G(!0)},e[10]=G,e[11]=E):E=e[11];const Q=E,[K,W]=O.useState(null),X=l??null;let Z;e[12]!==X||e[13]!==P?(Z={type:P,member:"mine",currentUserId:X},e[12]=X,e[13]=P,e[14]=Z):Z=e[14];const H=Z,q={};F||(q.created_by="me"),p(q);let ae;e[15]!==l?(ae=z=>l?z.filter(ne=>ne.created_by===l):[],e[15]=l,e[16]=ae):ae=e[16];const ie=ae;let J;e[17]!==P?(J=z=>P==="automation"?z.filter(lr):P==="manual"?z.filter(ir):z,e[17]=P,e[18]=J):J=e[18];const oe=J,te=_a(oe(F?L:ie(L)),S);let se;e[19]!==S||e[20]!==C||e[21]!==l||e[22]!==k||e[23]!==b||e[24]!==d.slug||e[25]!==v||e[26]!==te?(se=z=>{const ne=z.id===S,pe=k(z.id);if(Gs(z.id),!ne)return pe;const be=La(te,z.id,l);return C(),be?v(be.id,be.virtual_mcp_id):b({to:"/$org",params:{org:d.slug}}),pe},e[19]=S,e[20]=C,e[21]=l,e[22]=k,e[23]=b,e[24]=d.slug,e[25]=v,e[26]=te,e[27]=se):se=e[27];const re=se;let de;e[28]!==y||e[29]!==i?(de=async z=>{try{await y.call("SANDBOX_DELETE",{virtualMcpId:z.virtualMcpId,branch:z.branch,removeWorktree:!0})}catch{Ct.error(i("sidebar.archiveWorktreeDialog.reclaimFailed",{branch:z.branch}))}},e[28]=y,e[29]=i,e[30]=de):de=e[30];const ge=de;let ue;e[31]!==f||e[32]!==re||e[33]!==l||e[34]!==W?(ue=z=>{if(l&&z.created_by&&z.created_by!==l)return;const ne=Ja();if(!ne||er(f,ne)){re(z);return}W({task:z,target:ne})},e[31]=f,e[32]=re,e[33]=l,e[34]=W,e[35]=ue):ue=e[35];const Ue=ue;let Ne;e[36]!==re||e[37]!==K||e[38]!==ge||e[39]!==W?(Ne=z=>{const ne=K;ne&&(W(null),(async()=>{for(const pe of nr(z))if(pe==="archive")try{await re(ne.task)}catch{return}else await ge(ne.target)})())},e[36]=re,e[37]=K,e[38]=ge,e[39]=W,e[40]=Ne):Ne=e[40];const Ke=Ne;let Te;e[41]!==C||e[42]!==v?(Te=z=>{C(),v(z.id,z.virtual_mcp_id)},e[41]=C,e[42]=v,e[43]=Te):Te=e[43];const Ve=Te;let _e;e[44]!==w||e[45]!==S||e[46]!==f||e[47]!==C||e[48]!==x||e[49]!==l||e[50]!==o||e[51]!==c||e[52]!==v?(_e=()=>{const z=w??o;xe("sidebar_new_thread_clicked",{virtual_mcp_id:z}),C();const ne=Js(f,z,l,c(z));if(ne){v(ne.id,ne.virtual_mcp_id);return}const pe=f.find(be=>be.id===S)?.branch??null;x(z,pe)},e[44]=w,e[45]=S,e[46]=f,e[47]=C,e[48]=x,e[49]=l,e[50]=o,e[51]=c,e[52]=v,e[53]=_e):_e=e[53];const We=_e;let fe;e[54]!==g?(fe=()=>{g()},e[54]=g,e[55]=fe):fe=e[55];const qe=A!=="flat"||P!=="all"||F;let me;e[56]!==Ke||e[57]!==K?(me=K?s.jsx(Ma,{branch:K.target.branch,onOutcome:Ke}):null,e[56]=Ke,e[57]=K,e[58]=me):me=e[58];let he;e[59]!==B||e[60]!==M||e[61]!==G?(he=B?s.jsx(Aa,{open:M,onOpenChange:G}):null,e[59]=B,e[60]=M,e[61]=G,e[62]=he):he=e[62];let we;return e[63]!==S||e[64]!==Ue||e[65]!==H||e[66]!==A||e[67]!==m||e[68]!==h||e[69]!==We||e[70]!==Q||e[71]!==Ve||e[72]!==D||e[73]!==R||e[74]!==I||e[75]!==F||e[76]!==fe||e[77]!==qe||e[78]!==me||e[79]!==he||e[80]!==P||e[81]!==te?(we={threads:te,activeTaskId:S,filters:H,hasMore:m,isFetchingMore:h,loadMore:fe,groupBy:A,setGroupBy:D,typeFilter:P,setTypeFilter:I,showAll:F,setShowAll:R,filtersActive:qe,selectTask:Ve,archiveTask:Ue,newThread:We,openSearch:Q,reclaimDialog:me,searchDialog:he},e[63]=S,e[64]=Ue,e[65]=H,e[66]=A,e[67]=m,e[68]=h,e[69]=We,e[70]=Q,e[71]=Ve,e[72]=D,e[73]=R,e[74]=I,e[75]=F,e[76]=fe,e[77]=qe,e[78]=me,e[79]=he,e[80]=P,e[81]=te,e[82]=we):we=e[82],we}function ir(t){return!t.trigger_id}function lr(t){return!!t.trigger_id}function or(t,e){return(e.updated_at??"").localeCompare(t.updated_at??"")}function cr(t){return!t.hidden}function dr(){const t=$.c(60),e=U(),[n,r]=O.useState(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={onNavigate:()=>r(!1)},t[0]=i):i=t[0];const a=rr(i),l=Re()?.activeTask;let d;t[1]!==l?.title||t[2]!==a.activeTaskId||t[3]!==a.threads||t[4]!==e?(d=l?.title||a.threads.find(R=>R.id===a.activeTaskId)?.title||e("tasksPanel.taskRow.untitledTask"),t[1]=l?.title,t[2]=a.activeTaskId,t[3]=a.threads,t[4]=e,t[5]=d):d=t[5];const u=d;let o;t[6]!==a?(o=()=>{r(!1),a.openSearch()},t[6]=a,t[7]=o):o=t[7];const c=o;let f;t[8]!==e?(f=e("chat.threadsMenu.chats"),t[8]=e,t[9]=f):f=t[9];const m=n&&"bg-sidebar-accent";let h;t[10]!==m?(h=Y("flex h-[34px] min-w-0 shrink items-center gap-1.5 rounded-lg px-2 text-sm text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",m),t[10]=m,t[11]=h):h=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(As,{size:16,className:"shrink-0"}),t[12]=g):g=t[12];let j;t[13]!==u?(j=s.jsx("span",{className:"truncate max-w-[10rem] font-medium",children:u}),t[13]=u,t[14]=j):j=t[14];let k;t[15]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(it,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),t[15]=k):k=t[15];let p;t[16]!==f||t[17]!==h||t[18]!==j?(p=s.jsx(Oe,{asChild:!0,children:s.jsx(Bt,{asChild:!0,children:s.jsxs("button",{type:"button","aria-label":f,className:h,children:[g,j,k]})})}),t[16]=f,t[17]=h,t[18]=j,t[19]=p):p=t[19];let b;t[20]!==e?(b=e("chat.threadsMenu.chats"),t[20]=e,t[21]=b):b=t[21];let y;t[22]!==b?(y=s.jsx(Be,{side:"bottom",children:b}),t[22]=b,t[23]=y):y=t[23];let v;t[24]!==y||t[25]!==p?(v=s.jsxs(ze,{children:[p,y]}),t[24]=y,t[25]=p,t[26]=v):v=t[26];let x;t[27]!==a?(x=s.jsx(Ta,{panel:a,className:"size-8"}),t[27]=a,t[28]=x):x=t[28];let T;t[29]!==e?(T=e("sidebar.taskGroupsList.searchChats"),t[29]=e,t[30]=T):T=t[30];let S;t[31]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Is,{size:16}),t[31]=S):S=t[31];let N;t[32]!==c||t[33]!==T?(N=s.jsx(Ae,{"aria-label":T,onClick:c,className:"size-8",children:S}),t[32]=c,t[33]=T,t[34]=N):N=t[34];let w;t[35]!==e?(w=e("sidebar.taskGroupsList.newChat"),t[35]=e,t[36]=w):w=t[36];let _;t[37]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Lt,{size:16}),t[37]=_):_=t[37];let C;t[38]!==a.newThread||t[39]!==w?(C=s.jsx(Ae,{"aria-label":w,onClick:a.newThread,className:"size-8",children:_}),t[38]=a.newThread,t[39]=w,t[40]=C):C=t[40];let L;t[41]!==N||t[42]!==C?(L=s.jsxs("div",{className:"flex items-center gap-0.5",children:[N,C]}),t[41]=N,t[42]=C,t[43]=L):L=t[43];let P;t[44]!==x||t[45]!==L?(P=s.jsxs("div",{className:"flex shrink-0 items-center justify-between",children:[x,L]}),t[44]=x,t[45]=L,t[46]=P):P=t[46];let I;t[47]!==a?(I=s.jsx("div",{className:"flex max-h-[60vh] min-h-0 flex-col gap-0.5 overflow-y-auto overscroll-contain",children:s.jsx(ar,{panel:a})}),t[47]=a,t[48]=I):I=t[48];let A;t[49]!==P||t[50]!==I?(A=s.jsxs(zt,{align:"start",side:"bottom",onOpenAutoFocus:ur,className:"flex w-80 flex-col gap-2 p-2",children:[P,I]}),t[49]=P,t[50]=I,t[51]=A):A=t[51];let D;t[52]!==n||t[53]!==v||t[54]!==A?(D=s.jsxs(Gt,{open:n,onOpenChange:r,children:[v,A]}),t[52]=n,t[53]=v,t[54]=A,t[55]=D):D=t[55];let F;return t[56]!==a.reclaimDialog||t[57]!==a.searchDialog||t[58]!==D?(F=s.jsxs(s.Fragment,{children:[D,a.searchDialog,a.reclaimDialog]}),t[56]=a.reclaimDialog,t[57]=a.searchDialog,t[58]=D,t[59]=F):F=t[59],F}function ur(t){return t.preventDefault()}function fr(){const t=$.c(20),e=U(),{threads:n}=ct(),{createNewTask:r}=lt(),i=Ut(),a=Ge();let l;t[0]!==a||t[1]!==n?(l=n.find(k=>k.id===a)?.branch??null,t[0]=a,t[1]=n,t[2]=l):l=t[2];const d=l;let u;t[3]!==i||t[4]!==r||t[5]!==d?(u=()=>{r(i,d)},t[3]=i,t[4]=r,t[5]=d,t[6]=u):u=t[6];const o=u;let c;t[7]!==e?(c=e("sidebar.taskGroupsList.newChat"),t[7]=e,t[8]=c):c=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Lt,{size:16}),t[9]=f):f=t[9];let m;t[10]!==o||t[11]!==c?(m=s.jsx(Oe,{asChild:!0,children:s.jsx("button",{type:"button",onClick:o,"aria-label":c,className:"flex shrink-0 items-center rounded-lg p-1.5 text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:f})}),t[10]=o,t[11]=c,t[12]=m):m=t[12];let h;t[13]!==e?(h=e("sidebar.taskGroupsList.newChat"),t[13]=e,t[14]=h):h=t[14];let g;t[15]!==h?(g=s.jsx(Be,{side:"bottom",children:h}),t[15]=h,t[16]=g):g=t[16];let j;return t[17]!==m||t[18]!==g?(j=s.jsxs(ze,{children:[m,g]}),t[17]=m,t[18]=g,t[19]=j):j=t[19],j}function mr(t){const e=$.c(14),{virtualMcp:n}=t,r=U(),i=$t(),{navigateToTask:a}=ys(),{create:l}=dt();let d,u;if(e[0]!==i||e[1]!==l||e[2]!==a||e[3]!==r||e[4]!==n){u=Symbol.for("react.early_return_sentinel");e:{const o=Vs(n,i);if(!o){u=null;break e}const c=o.mode==="dev";let f;e[7]!==l||e[8]!==a?(f=async p=>{const b=crypto.randomUUID();try{await l({id:b,virtual_mcp_id:p})}catch{}a(b,{virtualMcpId:p})},e[7]=l,e[8]=a,e[9]=f):f=e[9];const m=f,h=(p,b,y)=>s.jsxs("button",{type:"button","aria-pressed":b,"aria-label":p,title:p,onClick:()=>{b||m(o.targetId)},className:Y("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg transition-colors",b?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[s.jsx(y,{className:"size-3.5 shrink-0"}),s.jsx("span",{className:"@max-3xl/panel-header:hidden",children:p})]});let g;e[10]!==r?(g=r("devAgent.devAgentControl.develop"),e[10]=r,e[11]=g):g=e[11];const j=h(g,c,Ms);let k;e[12]!==r?(k=r("devAgent.devAgentControl.live"),e[12]=r,e[13]=k):k=e[13],d=s.jsxs("div",{className:"inline-flex items-center rounded-lg border border-border bg-muted p-0.5 text-xs font-medium",children:[j,h(k,!c,Rn)]})}e[0]=i,e[1]=l,e[2]=a,e[3]=r,e[4]=n,e[5]=d,e[6]=u}else d=e[5],u=e[6];return u!==Symbol.for("react.early_return_sentinel")?u:d}function Me(t){const e=$.c(10),{icon:n,className:r}=t,i=r===void 0?"size-4":r;if(n.kind==="component"){const{Component:l}=n;let d;return e[0]!==l||e[1]!==i?(d=s.jsx(l,{className:i}),e[0]=l,e[1]=i,e[2]=d):d=e[2],d}if(n.kind==="url"){const l=n.src;let d;e[3]!==i?(d=Y(i,"rounded-sm object-cover"),e[3]=i,e[4]=d):d=e[4];let u;return e[5]!==n.src||e[6]!==d?(u=s.jsx("img",{src:l,alt:"",className:d}),e[5]=n.src,e[6]=d,e[7]=u):u=e[7],u}let a;return e[8]!==i?(a=s.jsx(Bn,{className:i}),e[8]=i,e[9]=a):a=e[9],a}function hr(t){const e=$.c(16),{virtualMcpId:n,taskId:r}=t,{openPanel:i}=Vt();let a;e[0]!==r||e[1]!==n?(a={virtualMcpId:n,taskId:r},e[0]=r,e[1]=n,e[2]=a):a=e[2];const{tabs:l,activeTab:d,mainOpen:u}=Wt(a);if(l.length===0)return null;let o;if(e[3]!==d||e[4]!==u||e[5]!==i||e[6]!==l||e[7]!==n){let f;e[9]!==d||e[10]!==u||e[11]!==i||e[12]!==n?(f=m=>{const h=m.id==="automations"?rs({activeTab:d,mainOpen:u}):u&&m.id===d;return s.jsxs(ft.Tab,{active:h,onClick:()=>{h||(xe("main_panel_tab_clicked",{virtual_mcp_id:n,tab_id:m.id,tab_kind:m.kind,was_active:!1}),i(m.id))},children:[s.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:s.jsx(Me,{icon:m.icon})}),m.title]},m.id)},e[9]=d,e[10]=u,e[11]=i,e[12]=n,e[13]=f):f=e[13],o=l.map(f),e[3]=d,e[4]=u,e[5]=i,e[6]=l,e[7]=n,e[8]=o}else o=e[8];let c;return e[14]!==o?(c=s.jsx(ft.Tabs,{"data-tour":Hs.surfaceTabs,children:o}),e[14]=o,e[15]=c):c=e[15],c}function pr(t){return{threadId:t.routeThreadId,providerKey:t.routeThreadId??t.fallbackKey}}const Je="__mobile-main-panel-tab-select__",st="main";function xr({tabs:t,activeTab:e,mainOpen:n,t:r}){const i=t.find(l=>l.id===e),a=r("mainPanelTabs.mobileMainPanelTabSelect.mainView");return n?i?.title??a:i?.title??t[0]?.title??a}const gr={kind:"component",Component:Ls},br={kind:"component",Component:Ds},vr={kind:"component",Component:En},jr={kind:"component",Component:$s};function yr({tabs:t,overlayEnabled:e,t:n}){return[{value:"chat",title:n("mainPanelTabs.mobileMainPanelTabSelect.chat"),icon:gr},...t.length>0?t.map(r=>({value:r.id,title:r.title,icon:r.icon})):[{value:st,title:n("mainPanelTabs.mobileMainPanelTabSelect.mainView"),icon:jr}],...e?[{value:"board",title:n("mainPanelTabs.mobileMainPanelTabSelect.tasks"),icon:br},{value:"files",title:n("mainPanelTabs.mobileMainPanelTabSelect.library"),icon:vr}]:[]]}function kr(t){const e=$.c(53),{virtualMcpId:n,taskId:r}=t,i=U(),a=De(),{openPanel:l}=Vt();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={strict:!1},e[0]=d):d=e[0];const u=Se(d);let o;e[1]!==r||e[2]!==n?(o={virtualMcpId:n,taskId:r},e[1]=r,e[2]=n,e[3]=o):o=e[3];const{tabs:c,activeTab:f,mainOpen:m}=Wt(o),{org:h}=le(),g=xs();let j;e[4]!==h.id?(j=mt(h.id),e[4]=h.id,e[5]=j):j=e[5];const k=n===j;let p,b,y,v,x,T,S,N,w,_;if(e[6]!==f||e[7]!==m||e[8]!==a||e[9]!==k||e[10]!==l||e[11]!==h.id||e[12]!==u.org||e[13]!==u.taskId||e[14]!==g||e[15]!==i||e[16]!==c||e[17]!==n){v=Symbol.for("react.early_return_sentinel");e:{const P=yr({tabs:c,overlayEnabled:!!(u.org&&u.taskId),t:i}),I=m?P.find(E=>E.value===f)?.value??st:"chat",A=P.find(E=>E.value===I),D=A?.title??xr({tabs:c,activeTab:f,mainOpen:m,t:i});let F;e[28]!==a?(F=E=>{a({to:".",search:Q=>({...Q,...on(E)}),replace:!0})},e[28]=a,e[29]=F):F=e[29];const R=F;let M;e[30]!==k||e[31]!==l||e[32]!==h.id||e[33]!==g||e[34]!==R||e[35]!==n?(M=E=>{if(E!==Je){if(xe("main_panel_tab_clicked",{virtual_mcp_id:n,tab_id:E,source:"mobile_select"}),Us({reportsOnly:g,onReportAgent:k,tabId:E})){l(E,{virtualmcpid:mt(h.id),search:Tr});return}if(E==="chat"||E===st){R(E==="chat"?"chat":"main");return}l(E,{search:Nr})}},e[30]=k,e[31]=l,e[32]=h.id,e[33]=g,e[34]=R,e[35]=n,e[36]=M):M=e[36];const G=M,B=P.find(E=>E.value!==I);if(P.length===2&&B){v=s.jsxs("button",{type:"button",onClick:()=>G(B.value),"aria-label":i("mainPanelTabs.mobileMainPanelTabSelect.switchTo",{name:B.title}),className:"flex h-10 min-w-0 max-w-[7.5rem] items-center gap-1.5 rounded-lg px-1.5 text-xs text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:[s.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center",children:s.jsx(Me,{icon:B.icon,className:"size-5"})}),s.jsx("span",{className:"min-w-0 truncate",children:B.title})]});break e}b=Gn,w=Je,_=G;let V;e[37]!==i?(V=i("mainPanelTabs.mobileMainPanelTabSelect.view"),e[37]=i,e[38]=V):V=e[38],y=s.jsx(zn,{"aria-label":V,className:"h-10! w-full min-w-0 max-w-[7.5rem] rounded-lg border-0 bg-transparent px-1.5 text-xs shadow-none [--card-shadow:none]",children:s.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[A&&s.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center",children:s.jsx(Me,{icon:A.icon,className:"size-5"})}),s.jsx("span",{className:"min-w-0 truncate",children:D})]})}),p=Hn,x="end",T="w-56",e[39]!==D?(S=s.jsx(qt,{value:Je,disabled:!0,hideCheck:!0,className:"hidden",children:D}),e[39]=D,e[40]=S):S=e[40],N=P.map(Sr)}e[6]=f,e[7]=m,e[8]=a,e[9]=k,e[10]=l,e[11]=h.id,e[12]=u.org,e[13]=u.taskId,e[14]=g,e[15]=i,e[16]=c,e[17]=n,e[18]=p,e[19]=b,e[20]=y,e[21]=v,e[22]=x,e[23]=T,e[24]=S,e[25]=N,e[26]=w,e[27]=_}else p=e[18],b=e[19],y=e[20],v=e[21],x=e[22],T=e[23],S=e[24],N=e[25],w=e[26],_=e[27];if(v!==Symbol.for("react.early_return_sentinel"))return v;let C;e[41]!==p||e[42]!==x||e[43]!==T||e[44]!==S||e[45]!==N?(C=s.jsxs(p,{align:x,className:T,children:[S,N]}),e[41]=p,e[42]=x,e[43]=T,e[44]=S,e[45]=N,e[46]=C):C=e[46];let L;return e[47]!==b||e[48]!==y||e[49]!==C||e[50]!==w||e[51]!==_?(L=s.jsxs(b,{value:w,onValueChange:_,children:[y,C]}),e[47]=b,e[48]=y,e[49]=C,e[50]=w,e[51]=_,e[52]=L):L=e[52],L}function Sr(t){return s.jsx(qt,{value:t.value,children:s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[s.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center",children:s.jsx(Me,{icon:t.icon})}),s.jsx("span",{className:"min-w-0 truncate",children:t.title})]})},t.value)}function Nr(t){return{...t,sidepanel:!1}}function Tr(t){return{...t,thread:void 0,sidepanel:!1}}function _r(t,e,n){const r=$.c(33),i=ot(),{locator:a}=le(),l=O.useSyncExternalStore(i.threads.subscribe,i.threads.get),d=O.useSyncExternalStore(i.threadsStatus.subscribe,i.threadsStatus.get);let u;r[0]!==t||r[1]!==l?(u=t===null?null:l.find(x=>x.id===t&&!x.partial)??null,r[0]=t,r[1]=l,r[2]=u):u=r[2];const o=u,[c,f]=O.useState(void 0),[m,h]=O.useState(t);m!==t&&(h(t),f(void 0));let g,j;r[3]!==c||r[4]!==t||r[5]!==o||r[6]!==i||r[7]!==d.kind?(g=()=>{t!==null&&(o||d.kind!=="loading"&&c===void 0&&(f("pending"),i.fetchThreadIntoSlot(t).then(x=>{f(x)})))},j=[t,o,d.kind,c,i],r[3]=c,r[4]=t,r[5]=o,r[6]=i,r[7]=d.kind,r[8]=g,r[9]=j):(g=r[8],j=r[9]),O.useEffect(g,j);let k;r[10]!==n||r[11]!==a||r[12]!==i||r[13]!==e?(k={mutationFn:async x=>i.create({id:x,virtual_mcp_id:e,...n?{branch:n}:{},...Xs(sessionStorage,a,x)})},r[10]=n,r[11]=a,r[12]=i,r[13]=e,r[14]=k):k=r[14];const p=is(k);let b,y;if(r[15]!==p||r[16]!==c||r[17]!==t||r[18]!==o||r[19]!==d.kind?(b=()=>{t!==null&&(o||c===null&&d.kind!=="loading"&&(p.isPending||p.variables!==t&&p.mutate(t)))},y=[t,o,c,d.kind,p],r[15]=p,r[16]=c,r[17]=t,r[18]=o,r[19]=d.kind,r[20]=b,r[21]=y):(b=r[20],y=r[21]),O.useEffect(b,y),t===null){let x;return r[22]===Symbol.for("react.memo_cache_sentinel")?(x={status:"ready",task:null},r[22]=x):x=r[22],x}if(o){let x;return r[23]!==o?(x={status:"ready",task:o},r[23]=o,r[24]=x):x=r[24],x}if(c&&typeof c=="object"){let x;return r[25]!==c?(x={status:"ready",task:c},r[25]=c,r[26]=x):x=r[26],x}if(p.data){let x;return r[27]!==p.data?(x={status:"ready",task:p.data},r[27]=p.data,r[28]=x):x=r[28],x}if(p.isError){let x;return r[29]!==p.error?(x={status:"error",error:p.error},r[29]=p.error,r[30]=x):x=r[30],x}if(p.isPending||d.kind!=="loading"){let x;return r[31]===Symbol.for("react.memo_cache_sentinel")?(x={status:"creating"},r[31]=x):x=r[31],x}let v;return r[32]===Symbol.for("react.memo_cache_sentinel")?(v={status:"loading"},r[32]=v):v=r[32],v}function wr(t){const e=$.c(13),{children:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const i=Se(r);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const l=Fe(a);let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={select:Cr},e[2]=d):d=e[2];const u=ls(d),{org:o}=le();let c;e[3]!==o||e[4]!==i.agentId||e[5]!==i.legacyView||e[6]!==i.org||e[7]!==u||e[8]!==l?(c=i.org?os({pathname:u,org:i.org,pathAgentId:i.agentId,pathLegacyView:i.legacyView,fallbackAgentId:ke(o.id).id,search:l}):null,e[3]=o,e[4]=i.agentId,e[5]=i.legacyView,e[6]=i.org,e[7]=u,e[8]=l,e[9]=c):c=e[9];const f=c;let m;return e[10]!==n||e[11]!==f?(m=f?s.jsx(ut,{target:f}):n,e[10]=n,e[11]=f,e[12]=m):m=e[12],m}function Cr(t){return t.matches.at(-1)?.pathname??t.location.pathname}function Pr(){const t=$.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const n=Se(e);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[1]=r):r=t[1];const i=Fe(r),{org:a}=le(),{org:l,taskId:d}=n;if(!l||d===void 0)return null;let u;return t[2]!==l||t[3]!==a.id||t[4]!==i||t[5]!==d?(u=cs({org:l,taskId:d,fallbackAgentId:ke(a.id).id,search:i}),t[2]=l,t[3]=a.id,t[4]=i,t[5]=d,t[6]=u):u=t[6],u}function Ar(){const t=$.c(2),e=Pr();let n;return t[0]!==e?(n=e?s.jsx(ut,{target:e}):null,t[0]=e,t[1]=n):n=t[1],n}function Ir(){const t=$.c(6),e=Kn(),n=De();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[0]=r):r=t[0];const{preview:i}=Fe(r);if(!e||!i)return null;let a;t[1]!==n?(a=()=>n({to:".",search:Mr}),t[1]=n,t[2]=a):a=t[2];let l;return t[3]!==i||t[4]!==a?(l=s.jsx(Vn,{previewPath:i,onClose:a,showSeeInLibrary:!0}),t[3]=i,t[4]=a,t[5]=l):l=t[5],l}function Mr(t){const{preview:e,...n}=t;return n}const Lr=O.createContext(null);function ts(){return O.useContext(Lr)}function $r(t){const e=$.c(13),{children:n}=t,r=U(),i=Yt(),a=ts(),l=Ge()!==null;let d;e[0]!==l||e[1]!==i||e[2]!==a?(d=s.jsx(ka,{}),e[0]=l,e[1]=i,e[2]=a,e[3]=d):d=e[3];const u=d;let o;e[4]!==r?(o=r("agentShellLayout.agentShellLayout.chatLoadingError"),e[4]=r,e[5]=o):o=e[5];let c;e[6]!==o?(c=s.jsx("div",{role:"alert",className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:o}),e[6]=o,e[7]=c):c=e[7];const f=n??u;let m;e[8]!==f?(m=s.jsx(Le,{children:f}),e[8]=f,e[9]=m):m=e[9];let h;return e[10]!==c||e[11]!==m?(h=s.jsx(Tt,{fallback:c,children:m}),e[10]=c,e[11]=m,e[12]=h):h=e[12],h}function Dr(t){const e=$.c(13),{threadId:n,children:r}=t;if(U(),ts(),n===null){let a;return e[0]!==r?(a=s.jsx(ee.ThreadlessProvider,{children:r}),e[0]=r,e[1]=a):a=e[1],a}let i;return e[10]!==r||e[11]!==n?(i=s.jsx(ee.ActiveTaskProvider,{taskId:n,children:r}),e[10]=r,e[11]=n,e[12]=i):i=e[12],i}function Fr(t){const e=$.c(3),{onNewTaskRef:n,createNewTask:r}=t;let i;return e[0]!==r||e[1]!==n?(i=()=>(n.current=r,()=>{n.current=null}),e[0]=r,e[1]=n,e[2]=i):i=e[2],O.useLayoutEffect(i),null}function Rr({virtualMcpId:t,hasActiveGithubRepo:e,sandboxMap:n,children:r}){const i=U(),{currentBranch:a,activeTask:l,setCurrentTaskBranch:d}=Ee(),u=Yt(),o="agent-sandbox",{data:c}=$e.useSession(),f=c?.user?.id,m=!ks({isDesktopApp:u,harnessId:l?.harness_id}),h=tn({agentSandboxMap:n,threadSandboxMap:l?.metadata?.sandboxMap,userId:f,ownerId:l?.created_by,branch:a}),g=e||Ws(l?.metadata),j=O.useRef(null),k=m&&sn({threadLoaded:!!l,isOwner:!!f&&l?.created_by===f,hasActiveGithubRepo:g,branch:a??null,attempted:j.current===(l?.id??null)});O.useEffect(()=>{!k||!l||(j.current=l.id,d(et(c?.user?.name||c?.user?.email?.split("@")[0])))},[k,l,c,d]);const{org:p}=le(),b=gs("cms_auto_fresh_branch"),y=Mt(t),v=O.useRef(null),x=b&&y.resolved&&y.runtime==="cms"&&!!p?.slug&&!!a&&v.current!==(l?.id??null),S=nt({...bs({orgSlug:p?.slug??"",virtualMcpId:t,branch:a??""}),enabled:x}).data?.lastCommitAt??null;O.useEffect(()=>{!x||!l||vs(S,Date.now())&&(v.current=l.id,d(et(c?.user?.name||c?.user?.email?.split("@")[0])))},[x,S,l,c,d]);const N=ce(t),w=Rt(N,a),{releases:_,createRelease:C}=qs(t),P=!!f&&l?.created_by===f&&!!a&&a!==w&&!_.some(B=>B.branch===a),I=O.useRef(null);O.useEffect(()=>{!P||!a||I.current!==a&&(I.current=a,C({branch:a,name:Qs(_,i("thread.branchPicker.defaultVersionName")),color:Ys(_.length),createdBy:f,createdAt:new Date().toISOString()}).catch(()=>{}))},[P,a,_,C,f,i]);const A=y.resolved?y.runtime:null,D=nn(t,a??void 0),R=(f&&a?qn(h?.[f]?.[a]):{})[o]??null,M=R?.previewUrl??null,G=m&&A!=="cms"&&(!!R||D);return m?A==="cms"?s.jsx(gt,{children:r},`${t}:${a??"no-branch"}:${l?.id??""}`):s.jsx(an,{virtualMcpId:t,branch:a??null,previewUrl:M,enabled:G,children:s.jsx(rn,{executionEnabled:m,virtualMcpId:t,branch:a??null,userId:f??null,hasActiveGithubRepo:g,vmEntry:R,threadId:l?.id??null,children:s.jsx(gt,{children:r},`${t}:${a??"no-branch"}:${l?.id??""}`)})},l?.id??"no-thread"):s.jsx("div",{className:"flex-1 min-h-0 pr-1.5 pb-1.5 overflow-hidden",children:s.jsx("div",{className:"flex h-full rounded-[0.75rem] bg-background card-shadow",children:s.jsx(Et,{image:s.jsx(rt,{size:48,className:"text-muted-foreground"}),title:i("agentShellLayout.agentShellLayout.runtimeUnavailableOnWeb"),description:i("agentShellLayout.agentShellLayout.runtimeUnavailableOnWebDescription")})})})}function Er(){const t=$.c(16),e=U(),{toggleSidebar:n}=hs(),{virtualMcpId:r,taskId:i}=Ee();let a;t[0]!==e?(a=e("layouts.shellControls.toggleSidebar"),t[0]=e,t[1]=a):a=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ms,{size:16}),t[2]=l):l=t[2];let d;t[3]!==a||t[4]!==n?(d=s.jsx(Ae,{className:"md:hidden",onClick:n,"aria-label":a,children:l}),t[3]=a,t[4]=n,t[5]=d):d=t[5];let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(dr,{}),t[6]=u):u=t[6];let o;t[7]!==d?(o=s.jsxs(Ye.Topbar.Left,{children:[d,u]}),t[7]=d,t[8]=o):o=t[8];let c;t[9]!==i||t[10]!==r?(c=s.jsx("div",{className:"min-w-0 md:hidden",children:s.jsx(kr,{virtualMcpId:r,taskId:i})}),t[9]=i,t[10]=r,t[11]=c):c=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Ye.Topbar.Right,{className:"shrink-0",children:s.jsx(fr,{})}),t[12]=f):f=t[12];let m;return t[13]!==o||t[14]!==c?(m=s.jsxs(Ye.Topbar,{className:"border-b border-border/60 px-3",children:[o,c,f]}),t[13]=o,t[14]=c,t[15]=m):m=t[15],m}function Or(t){const e=$.c(18),{layout:n,onNewTaskRef:r,createNewTask:i}=t,{virtualMcpId:a,taskId:l}=Ee(),d=ce(a),u=On()??"overview";let o;e[0]!==i||e[1]!==r?(o=s.jsx(Fr,{onNewTaskRef:r,createNewTask:i}),e[0]=i,e[1]=r,e[2]=o):o=e[2];let c;e[3]!==l||e[4]!==a?(c=s.jsx(hr,{virtualMcpId:a,taskId:l}),e[3]=l,e[4]=a,e[5]=c):c=e[5];let f;e[6]!==d?(f=d&&s.jsx(mr,{virtualMcp:d}),e[6]=d,e[7]=f):f=e[7];let m,h;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(xt.Thread,{topbar:s.jsx(Er,{}),children:s.jsx($r,{})}),h=s.jsx(Pt,{}),e[8]=m,e[9]=h):(m=e[8],h=e[9]);let g;e[10]!==u||e[11]!==n||e[12]!==c||e[13]!==f?(g=s.jsxs(xt,{...n,contentKey:u,contentNavigation:c,contentActions:f,children:[m,h]}),e[10]=u,e[11]=n,e[12]=c,e[13]=f,e[14]=g):g=e[14];let j;return e[15]!==o||e[16]!==g?(j=s.jsxs(s.Fragment,{children:[o,g]}),e[15]=o,e[16]=g,e[17]=j):j=e[17],j}function Br(){const t=U(),e=De(),n=mn(),{create:r}=dt(),{org:i}=le(),l=Se({strict:!1}).org??"",d=Fe({strict:!1}),u=Ge(),o=Ut(),c=Ht(),[f]=O.useState(()=>crypto.randomUUID()),{data:m}=$e.useSession(),[h]=O.useState(()=>et(m?.user?.name||m?.user?.email?.split("@")[0])),g=ot(),j=O.useSyncExternalStore(g.threads.subscribe,g.threads.get),k=O.useSyncExternalStore(g.threadsStatus.subscribe,g.threadsStatus.get),p=ce(o),b=!!(p&&Ot(p)),y=Rt(p,null),v=_r(u,o,h);Sa(v.status==="ready"?v.task:null);const x=p?.metadata?.ui?.layout??null,T=x?{defaultMainView:x.defaultMainView??null,chatDefaultOpen:x.chatDefaultOpen??null}:null,S=cn(T),{threadId:N,providerKey:w}=pr({routeThreadId:u,fallbackKey:f}),_=async()=>{const I=crypto.randomUUID(),A=j.find(D=>D.id===N)?.branch??null;try{await r({id:I,virtual_mcp_id:o,...A?{branch:A}:{}})}catch{}n(I,()=>({}))},C=O.useRef(null);O.useEffect(()=>{const I=A=>{Ks(A)&&A.shiftKey&&A.code==="KeyS"&&!A.repeat&&(A.preventDefault(),C.current?.())};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[]);const L=v.status==="ready"?v.task:null,P=L?.virtual_mcp_id;if(L&&P&&!hn({routeAgentId:o,threadAgentId:P})){const I=ds({org:l,agentId:P,superAgentId:ke(i.id).id});return s.jsx(ut,{target:{route:I,search:{thread:L.id,sidepanel:d.sidepanel,mainpanel:d.mainpanel,autosend:d.autosend}}})}if(u===null&&c&&p){if(k.kind==="loading")return s.jsx("div",{className:"flex-1 min-h-0 pr-1.5 pb-1.5 overflow-hidden",children:s.jsxs("div",{role:"status","aria-live":"polite",className:"flex h-full items-center justify-center bg-background card-shadow rounded-[0.75rem] text-sm text-muted-foreground",children:[s.jsx(je,{className:"size-4 mr-2"}),t("agentShellLayout.agentShellLayout.creatingTask")]})});const A=en(j,o,m?.user?.id,Ft(p.metadata),b,{baseBranch:y})?.id??(b?f:null);if(A)return s.jsx(us,{to:".",replace:!0,search:D=>({...D,thread:A})})}return v.status==="creating"||v.status==="loading"?s.jsx("div",{className:"flex-1 min-h-0 pr-1.5 pb-1.5 overflow-hidden",children:s.jsxs("div",{role:"status","aria-live":"polite",className:"flex h-full items-center justify-center bg-background card-shadow rounded-[0.75rem] text-sm text-muted-foreground",children:[s.jsx(je,{className:"size-4 mr-2"}),t("agentShellLayout.agentShellLayout.creatingTask")]})}):v.status==="error"?s.jsx("div",{className:"flex-1 min-h-0 pr-1.5 pb-1.5 overflow-hidden",children:s.jsxs("div",{role:"alert",className:"flex flex-col h-full items-center justify-center gap-2 bg-background card-shadow rounded-[0.75rem] p-8 text-sm",children:[s.jsx("div",{className:"font-medium",children:t("agentShellLayout.agentShellLayout.taskUnavailable")}),s.jsx("div",{className:"text-muted-foreground",children:v.error.message})]})}):p?s.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:s.jsx(ee.Provider,{virtualMcpId:o,task:v.status==="ready"?v.task:null,children:s.jsx(Rr,{virtualMcpId:o,hasActiveGithubRepo:b,sandboxMap:p.metadata?.sandboxMap,children:s.jsx(Dr,{threadId:N,children:s.jsx(Le,{children:s.jsx(Or,{layout:S,onNewTaskRef:C,createNewTask:_})})},w)})},o)}):s.jsx("div",{className:"flex-1 min-h-0 pr-1.5 pb-1.5 overflow-hidden",children:s.jsx("div",{className:"flex flex-col h-full bg-background overflow-hidden card-shadow rounded-[0.75rem]",children:s.jsx(Et,{image:s.jsx(rt,{size:48,className:"text-muted-foreground"}),title:t("agentShellLayout.agentShellLayout.agentNotFound"),description:t("agentShellLayout.agentShellLayout.agentNotFoundDescription",{virtualMcpId:o}),actions:s.jsx(fs,{variant:"outline",onClick:()=>e({to:"/$org",params:{org:l}}),children:t("agentShellLayout.agentShellLayout.goToOrgHome")})})})})}function Vo(){const t=$.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const n=Se(e);if(n.taskId!==void 0){let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ar,{}),t[1]=i):i=t[1],i}if(n._splat!==void 0){let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Pt,{}),t[2]=i):i=t[2],i}let r;return t[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Le,{children:s.jsx(wr,{children:s.jsx(Un,{children:s.jsxs(Wn,{children:[s.jsx(Br,{}),s.jsx(Ir,{})]})})})}),t[3]=r):r=t[3],r}export{Vo as default};
|