decocms 4.500.0 → 4.500.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/{ActiveShapeUtils-CHPU_j8T.js → ActiveShapeUtils-CeZzOoVf.js} +1 -1
- package/dist/client/assets/{AlertCircle-CgfWDsMW.js → AlertCircle-D4iOZ3Bs.js} +1 -1
- package/dist/client/assets/{AreaChart-CZuIkHuk.js → AreaChart-CUWmFHwI.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BkyozCr0.js → ArrowLeft-iygYSRbQ.js} +1 -1
- package/dist/client/assets/{ArrowUp-C0O7U47F.js → ArrowUp-KCSPs-fi.js} +1 -1
- package/dist/client/assets/{BarChart-D_Vp8_nk.js → BarChart-gbo6r8aY.js} +1 -1
- package/dist/client/assets/{Building02-C5UvSZSt.js → Building02-EbX1A23K.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CYT1jRTo.js → CategoricalChart-DbqLrstZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-B1cLRmIj.js → CheckCircle-CoJfU94i.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-bEeSv3mr.js → ChevronSelectorVertical-DqpRXMOM.js} +1 -1
- package/dist/client/assets/{ChevronUp-D_qU7VrJ.js → ChevronUp-BSm7AtSf.js} +1 -1
- package/dist/client/assets/{Copy01-CT_cEqll.js → Copy01-DlA26aBh.js} +1 -1
- package/dist/client/assets/{CreditCard01-DFGzM4td.js → CreditCard01-CXGPcE51.js} +1 -1
- package/dist/client/assets/{DotsVertical-CGu7Zbqo.js → DotsVertical-CTugBooH.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BOQmu79L.js → ErrorBarContext-CJdWK23B.js} +1 -1
- package/dist/client/assets/{Globe04-DtoCZsmb.js → Globe04-DDiW2Onm.js} +1 -1
- package/dist/client/assets/{Image01-CyU1b2Nz.js → Image01-BjUHwjIr.js} +1 -1
- package/dist/client/assets/{Key01-CV4MPPMx.js → Key01-DMnhMxC3.js} +1 -1
- package/dist/client/assets/{Link01-BL0KHGWk.js → Link01-DKypA3Uf.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CImL6HGl.js → LinkBroken01-Cjxu7rCw.js} +1 -1
- package/dist/client/assets/{Monitor01-jDiltU3l.js → Monitor01-CTL-UG2p.js} +1 -1
- package/dist/client/assets/{Play-HeD-LWQ6.js → Play-NZWCLDah.js} +1 -1
- package/dist/client/assets/{Plus-BzLmRH_e.js → Plus-DLTeBarI.js} +1 -1
- package/dist/client/assets/{SearchMd-X-m-ot0f.js → SearchMd-BsNWsFDv.js} +1 -1
- package/dist/client/assets/{Sector-Dk1WFIe-.js → Sector-BRgBibA6.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-C30WMfg1.js → ShoppingBag01-CWlRU3Ye.js} +1 -1
- package/dist/client/assets/{Sun-D5cuTnns.js → Sun-DhZMu2lN.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-iT36Ixqz.js → SwitchHorizontal01-DZEm8csq.js} +1 -1
- package/dist/client/assets/{Tool01-BLdqmAM-.js → Tool01-o_nJ7Y1x.js} +1 -1
- package/dist/client/assets/{Trash01-DkcAHDGj.js → Trash01-JZaZB0vu.js} +1 -1
- package/dist/client/assets/{Upload01-CJxfk4_B.js → Upload01-CpEePL13.js} +1 -1
- package/dist/client/assets/{User01-CuJbE_Yd.js → User01-BGOQS9vx.js} +1 -1
- package/dist/client/assets/{UserSquare-BlSFjBrQ.js → UserSquare-BFlEW2x5.js} +1 -1
- package/dist/client/assets/{Users01-CgCEjxiR.js → Users01-C9dOtgmV.js} +1 -1
- package/dist/client/assets/{XAxis-B6hTknR7.js → XAxis-4jP2_ps6.js} +1 -1
- package/dist/client/assets/{XClose-BcQlXPoY.js → XClose-DO008B8R.js} +1 -1
- package/dist/client/assets/{ZoomOut-C_NtAfgt.js → ZoomOut-DA1sRe95.js} +1 -1
- package/dist/client/assets/{access-gate-0Qu33vtT.js → access-gate-DsVMqwjM.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CmVGiYmi.js → add-connection-dialog-BTQ6Snbx.js} +1 -1
- package/dist/client/assets/{agent-analytics-DbQCZ1PQ.js → agent-analytics-CpGEVH02.js} +1 -1
- package/dist/client/assets/agent-app-fS8AS09U.js +1 -0
- package/dist/client/assets/{agent-assets-B-t0qw5_.js → agent-assets-D1AunKzQ.js} +1 -1
- package/dist/client/assets/{agent-automation-AdWBGK9-.js → agent-automation-Ds-y1bNp.js} +1 -1
- package/dist/client/assets/{agent-automations-x2lM3jDX.js → agent-automations-Bhv6Y5Fg.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DygiFIri.js → agent-connect-sources-BWYssaAs.js} +1 -1
- package/dist/client/assets/agent-deck-BSKZhX9C.js +1 -0
- package/dist/client/assets/{agent-e2e-CDURPj47.js → agent-e2e-mBRBGP-4.js} +1 -1
- package/dist/client/assets/{agent-experiments-BIa2lB5Q.js → agent-experiments-aivx3wKk.js} +1 -1
- package/dist/client/assets/{agent-file-BKXQWZUy.js → agent-file-p8VPN5Ls.js} +1 -1
- package/dist/client/assets/{agent-hosting-BYQZVYMZ.js → agent-hosting-BLydMzz1.js} +1 -1
- package/dist/client/assets/{agent-icon-CsQzAnP1.js → agent-icon-DDBSTxwl.js} +1 -1
- package/dist/client/assets/agent-library-BORVKAKi.js +1 -0
- package/dist/client/assets/agent-library-file-CQVtmhou.js +1 -0
- package/dist/client/assets/{agent-monitor-CCT32NKJ.js → agent-monitor-DwF-OeKx.js} +1 -1
- package/dist/client/assets/{agent-overview-dfgPX_7d.js → agent-overview-PzlD3Gdw.js} +1 -1
- package/dist/client/assets/agent-settings-CP8WaMNS.js +1 -0
- package/dist/client/assets/{agent-site-editor-CG3fYjTa.js → agent-site-editor-BpVIjbEo.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DBqdRzpW.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-5eCWHoNS.js → agent-site-editor-content-UkRK2sPZ.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-uwuaRHqi.js → agent-site-editor-preview-CMWo8Jpl.js} +3 -3
- package/dist/client/assets/agent-view-BHgh3Lxp.js +1 -0
- package/dist/client/assets/{agent-view-guard-e44iAytb.js → agent-view-guard-CNj-ECwU.js} +1 -1
- package/dist/client/assets/{agents-list-C2x26zj4.js → agents-list-DIvEheHR.js} +1 -1
- package/dist/client/assets/{ai-providers-DwXqL2iz.js → ai-providers-Bv4VnLS0.js} +1 -1
- package/dist/client/assets/{alert-DYD14Lxr.js → alert-DYBIxnQj.js} +1 -1
- package/dist/client/assets/{alert-dialog-D2yDyccd.js → alert-dialog-DpmCpPBI.js} +1 -1
- package/dist/client/assets/{analytics-sections-CYXgA9AC.js → analytics-sections-Dv6tHtpt.js} +1 -1
- package/dist/client/assets/{api-keys-BtQl5Awe.js → api-keys-BpociG2u.js} +1 -1
- package/dist/client/assets/api-keys-DLMcrFXL.js +1 -0
- package/dist/client/assets/app-editor-CJc6hCJ6.js +1 -0
- package/dist/client/assets/{asset-utils-cuI-wo7N.js → asset-utils-BUihGB_o.js} +1 -1
- package/dist/client/assets/{auth-CsAAW7Ar.js → auth-D1PkW9Uj.js} +1 -1
- package/dist/client/assets/{auth-catchall-CDMks_Rc.js → auth-catchall-xah8Rp3j.js} +1 -1
- package/dist/client/assets/{auth-entry-Cwn8f6E3.js → auth-entry-VLEYf8tT.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DFsDNY_O.js → auth-split-layout-HBBBJTJB.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-HfpfV8ZS.js → authenticate-and-persist-oauth-BfNR0joU.js} +1 -1
- package/dist/client/assets/{automation-list-row-Bgtl2dei.js → automation-list-row-IGsRC78W.js} +1 -1
- package/dist/client/assets/{automation-runs-CBT3E_fm.js → automation-runs-C60W3bGo.js} +1 -1
- package/dist/client/assets/{automations-BSD8vInf.js → automations-CaS6shwH.js} +1 -1
- package/dist/client/assets/{autosend-8ZqTuUx9.js → autosend-D3KZZhDs.js} +1 -1
- package/dist/client/assets/{avatar-Da-P84-z.js → avatar-Brh_8d7a.js} +1 -1
- package/dist/client/assets/{badge-CJ5q8uJu.js → badge-Dp13ql_I.js} +1 -1
- package/dist/client/assets/{block-document-Drzpg_bb.js → block-document-Cxj1MUpK.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CJnlWxc-.js → blocks-preview-workspace-context-D7M7BwP7.js} +1 -1
- package/dist/client/assets/{blog-schema-WI1e8zgj.js → blog-schema-G4wBIdc6.js} +1 -1
- package/dist/client/assets/{board-analytics-Cla3ZHOc.js → board-analytics-DO-wkHdX.js} +1 -1
- package/dist/client/assets/{buckets-BO0Sw74J.js → buckets-C5bRLlmM.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BWoapP6S.js → build-improve-prompt-doc-DHL2uEEa.js} +1 -1
- package/dist/client/assets/{calendar-DKYy6uOJ.js → calendar-DEB-AUfC.js} +1 -1
- package/dist/client/assets/{capability-load-error-DGJphxbe.js → capability-load-error-CR2FG7xy.js} +1 -1
- package/dist/client/assets/{category-editor-C6uMv0OA.js → category-editor-DfXKd-cd.js} +1 -1
- package/dist/client/assets/{chart-CUhY88so.js → chart-CXoR26LQ.js} +1 -1
- package/dist/client/assets/{chat-context-y8u3K9Tq.js → chat-context-BR-PmAJg.js} +1 -1
- package/dist/client/assets/{chat-draft-RqSOe2VX.js → chat-draft-CWFQi3-d.js} +1 -1
- package/dist/client/assets/{checkbox-cuQOxwwj.js → checkbox-CGTvhz0x.js} +1 -1
- package/dist/client/assets/{choose-editor-DVY0m-0N.js → choose-editor-DBCIeCbR.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-kSJ81npa.js → claim-phase-copy-C0pvoElR.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BNNiQ0ff.js → cli-auth-success-Nd2PZ9ox.js} +1 -1
- package/dist/client/assets/{client-icons-k3K_Wm7m.js → client-icons-BI4heyKD.js} +1 -1
- package/dist/client/assets/{collapsible-DEfXG6Ht.js → collapsible-Cq1aFrCg.js} +1 -1
- package/dist/client/assets/{collection-detail-CUR7b1nw.js → collection-detail-ClkMaErn.js} +1 -1
- package/dist/client/assets/{collection-display-button-Bii74DZw.js → collection-display-button-BjwUZtSd.js} +1 -1
- package/dist/client/assets/{collection-search-C-3HPALa.js → collection-search-Cp82h57b.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BI9XAUwm.js → collection-table-wrapper-BmpUFI8T.js} +1 -1
- package/dist/client/assets/{collection-tabs-BNpEfqyd.js → collection-tabs-C6HP7d51.js} +1 -1
- package/dist/client/assets/{column-rules-B7pcw_Gh.js → column-rules-CJ4d_g8W.js} +1 -1
- package/dist/client/assets/{combobox-ylZ1_mxm.js → combobox-CF6B9Wmt.js} +1 -1
- package/dist/client/assets/{command-d2fvY4gQ.js → command-BfXTTBD9.js} +1 -1
- package/dist/client/assets/{companion-mcps-section--NCFPgCd.js → companion-mcps-section-BLJLcZpb.js} +1 -1
- package/dist/client/assets/{config-BDYRd6Wk.js → config-BZYNAwT6.js} +1 -1
- package/dist/client/assets/{connect-CKDAuMYC.js → connect-FZH1ks7l.js} +1 -1
- package/dist/client/assets/{connect-layout-Ca1Vr3vz.js → connect-layout-BbzklNPm.js} +1 -1
- package/dist/client/assets/{connection-DGqqVA7M.js → connection-BTT1rt_2.js} +1 -1
- package/dist/client/assets/{connection-card-gIhz0wdg.js → connection-card-CsIFgDe8.js} +1 -1
- package/dist/client/assets/{connection-detail-B9omyXwb.js → connection-detail-BSkgGFWF.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-A2MriNrX.js → connection-form-helpers-Bg3g47y2.js} +1 -1
- package/dist/client/assets/{connections-Dh4JuodF.js → connections-BcHX4l-p.js} +1 -1
- package/dist/client/assets/{context-BnF04rBC.js → context-D9dob61q.js} +1 -1
- package/dist/client/assets/{context-menu-BD-010iM.js → context-menu-DPNtSYt0.js} +1 -1
- package/dist/client/assets/{core.esm-BH3HyyF2.js → core.esm-C90YQIGJ.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DjZlmVnS.js → create-organization-dialog-BoHINOyM.js} +1 -1
- package/dist/client/assets/{daily-pulse-BXDtpJQU.js → daily-pulse-tLPif3nO.js} +1 -1
- package/dist/client/assets/{device-hint-CN2khPPs.js → device-hint-ClxhQWtk.js} +1 -1
- package/dist/client/assets/{discover-C-mYnXQB.js → discover-BGUAZcdZ.js} +1 -1
- package/dist/client/assets/{domain-settings-BEwECWE8.js → domain-settings-C1KL1CIp.js} +1 -1
- package/dist/client/assets/{drawer-DybzZn1x.js → drawer-20Gv7XN0.js} +1 -1
- package/dist/client/assets/{editor-CBqQFFb9.js → editor-CklcmkgZ.js} +1 -1
- package/dist/client/assets/{empty-state-B4qRMioD.js → empty-state-BWSdqiOv.js} +1 -1
- package/dist/client/assets/{empty-state-b6tRqzU8.js → empty-state-CsVqjGqu.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CIO9f-TD.js → extract-connection-data-C8Idk1Oj.js} +1 -1
- package/dist/client/assets/{feature-gate-ChDRcm7b.js → feature-gate-Brul-7Vc.js} +1 -1
- package/dist/client/assets/{feature-paywall-BN5FphJ8.js → feature-paywall-B1-Kq6zS.js} +1 -1
- package/dist/client/assets/{file-explorer-DCd1-8-d.js → file-explorer-0AwiXzsI.js} +1 -1
- package/dist/client/assets/{file-preview-CNp5DdHM.js → file-preview-BTrgY74n.js} +1 -1
- package/dist/client/assets/{file-share-button-DOQq6Wrq.js → file-share-button-kQh5APqr.js} +1 -1
- package/dist/client/assets/{file-type-icon-ClWl2ykw.js → file-type-icon-Dbuavq5L.js} +1 -1
- package/dist/client/assets/flat-project-YGEAxpJq.js +1 -0
- package/dist/client/assets/{folder-icon-BO5Hlc-b.js → folder-icon-D1xnfwm_.js} +1 -1
- package/dist/client/assets/{form-Dm1N7Fdz.js → form-BZ1i_2GJ.js} +1 -1
- package/dist/client/assets/{general-CszMiv7n.js → general-C8gjvVqx.js} +1 -1
- package/dist/client/assets/{home-DT4jq_ad.js → home-BnDlnEHu.js} +1 -1
- package/dist/client/assets/{icon-button-UzqZkmgc.js → icon-button-BDbIWVW3.js} +1 -1
- package/dist/client/assets/{index-D984WV3U.js → index-4XFLhK7S.js} +2 -2
- package/dist/client/assets/{index-B4rQ5Ej9.js → index-Bs_Ow9qj.js} +1 -1
- package/dist/client/assets/{index-BkaImz4P.js → index-C0n7mPS1.js} +1 -1
- package/dist/client/assets/{index-DXSiv_GM.js → index-C8VO6rJ2.js} +3 -3
- package/dist/client/assets/{index-z9lysifj.js → index-CN8TQhg6.js} +1 -1
- package/dist/client/assets/{index-ClN0hPjk.js → index-COd_qFje.js} +1 -1
- package/dist/client/assets/{index-QP5dyfS7.js → index-CWl9v4eu.js} +1 -1
- package/dist/client/assets/{index-Dq9ehfIf.js → index-D94af8m5.js} +1 -1
- package/dist/client/assets/{index-ba_EB2Zw.js → index-DVVx4F0i.js} +1 -1
- package/dist/client/assets/{index-DiGKvbHH.js → index-DlsOrQnt.js} +1 -1
- package/dist/client/assets/{index-BA22z-aT.js → index-DrIzKTur.js} +1 -1
- package/dist/client/assets/{index-ChAMt2d-.js → index-DujNp8wX.js} +1 -1
- package/dist/client/assets/{index-CeuDCj_w.js → index-pEr2eE8n.js} +1 -1
- package/dist/client/assets/{index-redirect-8HspsPDC.js → index-redirect-BQGkKPeS.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bmwf-SCt.js → infiniteQueryObserver-DLzEnjM8.js} +1 -1
- package/dist/client/assets/{infra-billing-DlP3vLBN.js → infra-billing-Df_WNbOe.js} +1 -1
- package/dist/client/assets/{input-C_t2NUbp.js → input-BzdgO_dK.js} +3 -3
- package/dist/client/assets/{input-CG0PFhS0.js → input-DQtH0um6.js} +1 -1
- package/dist/client/assets/{integration-icon-B4EO_1fi.js → integration-icon-BqsHjS-b.js} +1 -1
- package/dist/client/assets/{jira-icon-DAy3a9S9.js → jira-icon-CG6W0SJT.js} +1 -1
- package/dist/client/assets/{label-BszVxI8j.js → label-ByKoWpTn.js} +1 -1
- package/dist/client/assets/{layout-BsHSUbxL.js → layout-Ih9F7QDG.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DCBghYlF.js → legacy-agents-deep-D4aZSj1S.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C_9Fyd8e.js → legacy-main-redirect-CawnT8bs.js} +1 -1
- package/dist/client/assets/library-BIKWwK0_.js +1 -0
- package/dist/client/assets/{library-tab-CZxlOQVR.js → library-tab-CWnL_FfR.js} +1 -1
- package/dist/client/assets/{login-CoP-xpgM.js → login-BV5vcG2Q.js} +1 -1
- package/dist/client/assets/{markdown-C8b2SRJt.js → markdown-BW2GJSHC.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-qrtR9Z1h.js → mcp-app-renderer-fDcax7T2.js} +1 -1
- package/dist/client/assets/{mcp-oauth--_7bIOac.js → mcp-oauth-BjHElKzR.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BIr9y8Ow.js → mcp-oauth-CVI2AkSu.js} +1 -1
- package/dist/client/assets/{members-DX1jVu8f.js → members-f-Grp_Zc.js} +1 -1
- package/dist/client/assets/{memory-DGqh7MMN.js → memory-CYDtZWEC.js} +1 -1
- package/dist/client/assets/{mini-report-page-DeT726Qz.js → mini-report-page-BvYGpq5f.js} +1 -1
- package/dist/client/assets/{mock-board-DiXeO9l9.js → mock-board-hNRrDjvq.js} +1 -1
- package/dist/client/assets/{monaco-editor-BmtkWb9u.js → monaco-editor-DkahnDKS.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CROD4XJo.js → monitoring-stats-row-Cx7S4sFz.js} +1 -1
- package/dist/client/assets/{multi-select-COcK2vp_.js → multi-select-BsYgOBGm.js} +1 -1
- package/dist/client/assets/{mustache-B3B0mlPh.js → mustache-D7UTScQH.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CQomS8HX.js → new-project-dialog-DdG-RgMO.js} +1 -1
- package/dist/client/assets/{oauth-callback-BAjl2hrI.js → oauth-callback-GzdTg9VJ.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dfitdf7t.js → oauth-callback-ai-provider-BANi9OcB.js} +1 -1
- package/dist/client/assets/{onboarding-DuW4ryZs.js → onboarding-w2z3NDRW.js} +1 -1
- package/dist/client/assets/{openai-conversation-klLH_0HC.js → openai-conversation-C7TUEjal.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CaTvAXwY.js → optimistic-project-sidebar-views-7fDRNM1p.js} +1 -1
- package/dist/client/assets/{organization-choice-DtdFVbBZ.js → organization-choice-DRyD5yII.js} +1 -1
- package/dist/client/assets/{orgs-BBq2qsW_.js → orgs-EvyltNU-.js} +1 -1
- package/dist/client/assets/{page-seo-form-BJN0O5_N.js → page-seo-form-0-tAzxyW.js} +1 -1
- package/dist/client/assets/{pair-D3dg1naQ.js → pair-Cm6oR2ES.js} +1 -1
- package/dist/client/assets/{plan-ladder-DUQWM1mB.js → plan-ladder-D4-VvMwX.js} +1 -1
- package/dist/client/assets/{popover-9tPVAoH5.js → popover-DGVyEQ9q.js} +1 -1
- package/dist/client/assets/{post-calendar-D9oVrQhS.js → post-calendar-CGDOG4Ay.js} +1 -1
- package/dist/client/assets/{post-editor-C2tsxtV4.js → post-editor-BFSJ6I4d.js} +1 -1
- package/dist/client/assets/{preview-content-BIpDQXJu.js → preview-content-KcSZme5m.js} +1 -1
- package/dist/client/assets/{preview-dialog-CH8GibCu.js → preview-dialog-DHH8biYM.js} +1 -1
- package/dist/client/assets/{preview-panel-CCFjojUE.js → preview-panel-CMlsnFlv.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-BoGvkEwe.js → product-picker-dialog-Bz7bVPFI.js} +1 -1
- package/dist/client/assets/{profile-BKpvrH_P.js → profile-be5NkG2U.js} +1 -1
- package/dist/client/assets/{project-app-view-0HH2t56F.js → project-app-view-BV4H0rEJ.js} +1 -1
- package/dist/client/assets/{project-feed-d2kKPzOq.js → project-feed-Dly67hgE.js} +1 -1
- package/dist/client/assets/{project-icon-DeUPWsC_.js → project-icon-CMe6LZd9.js} +1 -1
- package/dist/client/assets/project-reports-BqyykKm5.js +1 -0
- package/dist/client/assets/project-tasks-DHxi49Je.js +1 -0
- package/dist/client/assets/{projects-dI6btB5J.js → projects-CDscJwj7.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DAa4wzAP.js → projects-empty-state-VFtNQKgJ.js} +1 -1
- package/dist/client/assets/{prompts-D3LKfm14.js → prompts-CG--DGsd.js} +1 -1
- package/dist/client/assets/record-editor-CQTy2--L.js +1 -0
- package/dist/client/assets/redirect-editor-Diq4Tlsx.js +1 -0
- package/dist/client/assets/reports-Bew0urwY.js +1 -0
- package/dist/client/assets/{reports-B5aLNQGc.js → reports-CODPKkJO.js} +1 -1
- package/dist/client/assets/{reports-onboarding-D7Nsv0TX.js → reports-onboarding-D0Irch0-.js} +1 -1
- package/dist/client/assets/{reports-tab-bgB5WodW.js → reports-tab-NvqzpdHL.js} +2 -2
- package/dist/client/assets/{repositories-Du_yi0rf.js → repositories-xZsmQvzi.js} +1 -1
- package/dist/client/assets/{repository-binding-CrIQbyJh.js → repository-binding-C_InVumU.js} +1 -1
- package/dist/client/assets/{repository-import-picker-n3EYoF9U.js → repository-import-picker-Bixi7zBc.js} +1 -1
- package/dist/client/assets/{repository-picker-CjDs0ici.js → repository-picker-BHgNNGrn.js} +1 -1
- package/dist/client/assets/{require-capability-BDLtPaM5.js → require-capability-D49j17CD.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CTKRCLps.js → required-auth-layout-CxaLcttO.js} +1 -1
- package/dist/client/assets/{reset-password-XiFYESJ5.js → reset-password-Bg3-bOJi.js} +1 -1
- package/dist/client/assets/{resizable-C3INc4c7.js → resizable-sj2QiDEc.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DuWtsFCw.js → resolve-tab-icon-Benn2iaL.js} +1 -1
- package/dist/client/assets/{review-settings-BCvIwiTZ.js → review-settings-DjIYcWCV.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-B2KML_yp.js → rich-text-link-control-C2ryIXD3.js} +1 -1
- package/dist/client/assets/{roles-B5KIhtIL.js → roles-8gcvGZJw.js} +1 -1
- package/dist/client/assets/{route-BwivpFZQ.js → route-C0mgkpSg.js} +1 -1
- package/dist/client/assets/route-DQYAyMBI.js +1 -0
- package/dist/client/assets/{route-nHlGvnBX.js → route-DyDxvrHS.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-v2diysES.js → runnable-block-editor-dTVVXX5v.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CtphXAh2.js → sandbox-lifecycle-context-DzcFvw1G.js} +1 -1
- package/dist/client/assets/{schema-BMqZTcjW.js → schema-DyLXU88M.js} +1 -1
- package/dist/client/assets/{scroll-area-B9YHNZjL.js → scroll-area-DYybJ63r.js} +1 -1
- package/dist/client/assets/{search-input-BJ-xb_6w.js → search-input-DJwYl_zW.js} +1 -1
- package/dist/client/assets/{search-toggle-DviE2KK7.js → search-toggle-DOVOYril.js} +1 -1
- package/dist/client/assets/{secret-picker-MDfAhcKZ.js → secret-picker-C40fL6uP.js} +1 -1
- package/dist/client/assets/{secrets-BWXZ9ADR.js → secrets-Kq6gwxOB.js} +1 -1
- package/dist/client/assets/{sections-editor-DRPdyBr7.js → sections-editor-5-gvD3vu.js} +1 -1
- package/dist/client/assets/{select-Cmhyur65.js → select-CEirlFRV.js} +1 -1
- package/dist/client/assets/{select-model-DlhjRyXh.js → select-model-5mFHKpuo.js} +1 -1
- package/dist/client/assets/{seo-editor-Cslo5GyR.js → seo-editor-DHTxrlCs.js} +1 -1
- package/dist/client/assets/{separator-XBrskDk1.js → separator-E-ZvgvRL.js} +1 -1
- package/dist/client/assets/{settings-tab-Bhjq-v1u.js → settings-tab-C9ihpTae.js} +1 -1
- package/dist/client/assets/{sheet-bMLuzpcl.js → sheet-Bs1jJD9o.js} +1 -1
- package/dist/client/assets/{shell-layout-CX2kb4As.js → shell-layout-DZBrJWAA.js} +1 -1
- package/dist/client/assets/{skills-smEsZOyf.js → skills-7xwa1ol9.js} +1 -1
- package/dist/client/assets/{slider-xDThp8gG.js → slider-ki239RUG.js} +1 -1
- package/dist/client/assets/{sortable.esm-C4yl7HRk.js → sortable.esm-Dvqn6rnz.js} +1 -1
- package/dist/client/assets/{sso-D5XcZRGg.js → sso-n5eUQ_Xy.js} +1 -1
- package/dist/client/assets/{suggestion-B9eDgKDC.js → suggestion-DHADwupQ.js} +1 -1
- package/dist/client/assets/{switch-D6SJRikA.js → switch-BD8_vvWq.js} +1 -1
- package/dist/client/assets/{symbol-8pL_EbyE.js → symbol-Dx-KpnN7.js} +1 -1
- package/dist/client/assets/{synced-repos-CvOi5sDr.js → synced-repos-B-5rRFwb.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-B5Fq5S50.js → tab-icon-glyph-B9KZAh18.js} +1 -1
- package/dist/client/assets/{table-BVuWDAYC.js → table-B1C2ctbL.js} +1 -1
- package/dist/client/assets/{tabs-CJiVz1UY.js → tabs-tkvg_YSq.js} +1 -1
- package/dist/client/assets/{task-board-BypYXBtD.js → task-board-DcolQ15W.js} +1 -1
- package/dist/client/assets/{task-route-CxLDxVTy.js → task-route-Dp4TtKUe.js} +1 -1
- package/dist/client/assets/{task-status-DR_ZGtmT.js → task-status-CF9KSEEA.js} +1 -1
- package/dist/client/assets/taskboard-analytics-C_zsZRzy.js +1 -0
- package/dist/client/assets/{tasks-pRlF9aKa.js → tasks-B6gqzeMQ.js} +1 -1
- package/dist/client/assets/tasks-O62NX5lN.js +1 -0
- package/dist/client/assets/{textarea-C3QvYVs6.js → textarea-BpBHfDQd.js} +1 -1
- package/dist/client/assets/{thread-analytics-CVYD56Lv.js → thread-analytics-DfV1z1-8.js} +1 -1
- package/dist/client/assets/{thread-button-Dnwv5gXz.js → thread-button-BNBHV_Wu.js} +1 -1
- package/dist/client/assets/{thread-intent-BouO_OhM.js → thread-intent-DqexYQAC.js} +1 -1
- package/dist/client/assets/{thread-route-Dp3ppEkH.js → thread-route-B-yx1tFW.js} +1 -1
- package/dist/client/assets/{thread-route-CzzxiajL.js → thread-route-BXR-ufCz.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Z8jKG5ht.js → thread-sheet-body-Bgp-QwJy.js} +1 -1
- package/dist/client/assets/{time-range-picker-DE7fkhif.js → time-range-picker-DILwkH82.js} +1 -1
- package/dist/client/assets/{toggle-group-BxPPN08u.js → toggle-group-SSpwI-zE.js} +1 -1
- package/dist/client/assets/{tool-namespace-C5Z8tVC2.js → tool-namespace-CsdkV2uo.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-539CZpjb.js → toolbar-icon-button-CIXm0pyl.js} +1 -1
- package/dist/client/assets/{tooltip-CfH7_UR9.js → tooltip-CUk78XFR.js} +1 -1
- package/dist/client/assets/{tooltipContext-Dt4926A5.js → tooltipContext-BY8Qgc3U.js} +1 -1
- package/dist/client/assets/{track-D8kXLyAV.js → track-DDd4x4-Y.js} +1 -1
- package/dist/client/assets/{types-PjheW3sm.js → types-DPbXDbOS.js} +1 -1
- package/dist/client/assets/{url-slug-D7hdnLPq.js → url-slug-CFKzH8Z4.js} +1 -1
- package/dist/client/assets/{usage-stats-BcmMK-YO.js → usage-stats-wClM7TZ-.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CeHzBmwD.js → use-ai-providers-CAEoYJwC.js} +1 -1
- package/dist/client/assets/{use-automations-DLk4Zq7Y.js → use-automations-DXjaaH0T.js} +1 -1
- package/dist/client/assets/{use-autosave-5IDmaWA6.js → use-autosave-BOlmY_xu.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-C4y1ngrz.js → use-chat-layout-state-BYcPLpFV.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-pwxRnoh5.js → use-chat-navigation-CKcbdotk.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DcGl_y28.js → use-clock-tick-CwQv-OCe.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DmQTaaXP.js → use-connect-companion-PBAraKBj.js} +1 -1
- package/dist/client/assets/{use-connection-B96BwbcD.js → use-connection-DldRXuvq.js} +1 -1
- package/dist/client/assets/{use-copy-COXbZ1Gm.js → use-copy-BC3Fmh27.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BuymUE2O.js → use-create-virtual-mcp-D8P6CVcB.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D2o3Y11s.js → use-date-fns-locale-DquxgLdE.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Yq56G4iL.js → use-debounced-autosave-mYSK51JG.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BZK5uiHm.js → use-debounced-value-CNkuXNOW.js} +1 -1
- package/dist/client/assets/{use-deco-credits-COvQvXnV.js → use-deco-credits-DKtKOwIN.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BDPMNEXz.js → use-decopilot-events-DH5jig6y.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DT6vWhGX.js → use-delete-connection-Dzg9cQZm.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CoVHfZYT.js → use-deployment-admin-CyBWrUgL.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-peTgVhMP.js → use-ensure-project-folder-CdHM_a-9.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BDHxUOYh.js → use-fast-preview-draft-url-Cuacxxyo.js} +1 -1
- package/dist/client/assets/{use-file-configs-DoW1VYTz.js → use-file-configs-DsMQGho1.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-1WuTfkvL.js → use-infinite-scroll-C0Ths8NM.js} +1 -1
- package/dist/client/assets/{use-join-requests-uEHIq-wW.js → use-join-requests-CoVXbvos.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-eZgXms3O.js → use-main-panel-tabs-DlD2zr1g.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-GSONXJ6Y.js → use-mcp-auth-status-B2t4xmcR.js} +1 -1
- package/dist/client/assets/{use-mcp-client-D8-rDWEf.js → use-mcp-client-C5uLw7Lc.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-9xOCFCVM.js → use-mcp-prompts-Dxu80Ack.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BYNW1IvH.js → use-mcp-tools-Cm9CvYn6.js} +1 -1
- package/dist/client/assets/{use-members-DuiAoVt0.js → use-members-C9_S9nP9.js} +1 -1
- package/dist/client/assets/{use-mobile-Cz-N6vVG.js → use-mobile-Buz9Esa_.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CWPsHr0w.js → use-navigate-to-agent-C41zpB_Z.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-DuP8uKZj.js +1 -0
- package/dist/client/assets/{use-open-billing-url-CHALVI7F.js → use-open-billing-url-C1VukQDg.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DQ6vSNUo.js → use-org-auth-client-DjRiIxwH.js} +1 -1
- package/dist/client/assets/{use-org-fs-UdNnQzcG.js → use-org-fs-DqhUUlbQ.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CE9Yx0AE.js → use-org-repo-syncs-cx9r2nZl.js} +1 -1
- package/dist/client/assets/{use-org-sso-BRZ2xqKg.js → use-org-sso-DVCQNBfN.js} +1 -1
- package/dist/client/assets/{use-organization-roles-5fHLGM-_.js → use-organization-roles-Bp0RCVOK.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BEUCQxuY.js → use-organization-settings-B0rQmLIX.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-B348HV-V.js → use-panel-navigate-DOyxnt44.js} +1 -1
- package/dist/client/assets/{use-project-scope-CJSvss5q.js → use-project-scope-DJTJDi3A.js} +1 -1
- package/dist/client/assets/{use-releases-DRDEblSZ.js → use-releases-BXUiPgUU.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BQoNp5Lt.js → use-reports-diagnostic-frCP_UW9.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-afI4fSp9.js → use-sandbox-events-Clj9v6On.js} +1 -1
- package/dist/client/assets/{use-secrets-6NdpjMzr.js → use-secrets-CIfBnw6x.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Du6Z-MWu.js → use-section-preview-base-BYZSxM0z.js} +1 -1
- package/dist/client/assets/{use-tags-Dkeb0fZQ.js → use-tags-Blq5AODj.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BsZ5fOsz.js → use-task-board-analytics-D09WT40p.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BZPWVwkQ.js → use-task-board-events-Bx8_k4aV.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-6pzJEXZH.js → use-task-board-item-prs-Bsgf-2Zm.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DDExwWH5.js → use-task-board-items-CIYsbBEM.js} +1 -1
- package/dist/client/assets/{use-task-metadata-QX8Xm3F2.js → use-task-metadata-DDV_r81k.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-4YJ0wSzW.js → use-thread-analytics-BuosijZj.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BaagK6yF.js → use-thread-outputs-D13C6fsy.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B3MUNCKJ.js +1 -0
- package/dist/client/assets/{useQueries-BeM3koNG.js → useQueries-DZMzH0ea.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DPTWpcSJ.js +1 -0
- package/dist/client/assets/{users-DA2VVqSS.js → users-CE3WLjUJ.js} +1 -1
- package/dist/client/assets/{utils-DGIwcQET.js → utils-qUv9_Hyk.js} +1 -1
- package/dist/client/assets/{variant-calendar-B2z-zkHQ.js → variant-calendar-B604PCFx.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-WuIO8MOW.js → variant-matcher-override-CgF3ujB9.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DA847UFd.js → view-mode-toggle-BaZ1kmhW.js} +1 -1
- package/dist/client/assets/{virtual-mcp-ySkvJvwZ.js → virtual-mcp-CWsV4-pi.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-jwr9yBFo.js → watch-sse-pool-BjTl5yOD.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +87 -87
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BExNHlBs.js +0 -1
- package/dist/client/assets/agent-deck-GAA8uH06.js +0 -1
- package/dist/client/assets/agent-library-CJXihsv5.js +0 -1
- package/dist/client/assets/agent-library-file-Cnv04MVV.js +0 -1
- package/dist/client/assets/agent-settings-BTMD0j_l.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Crxw0pRq.js +0 -2
- package/dist/client/assets/agent-view-DVbx7Not.js +0 -1
- package/dist/client/assets/api-keys-B_VU2t2_.js +0 -1
- package/dist/client/assets/app-editor-fWZMbht-.js +0 -1
- package/dist/client/assets/flat-project-DPnFbnmE.js +0 -1
- package/dist/client/assets/library-C2ZRDo2P.js +0 -1
- package/dist/client/assets/project-reports-7r3buXCO.js +0 -1
- package/dist/client/assets/project-tasks-Dp-gjCz7.js +0 -1
- package/dist/client/assets/record-editor-BDN9ztWf.js +0 -1
- package/dist/client/assets/redirect-editor-DBLjC8Z9.js +0 -1
- package/dist/client/assets/reports-CvKnRIKX.js +0 -1
- package/dist/client/assets/route-Fylk_TVt.js +0 -1
- package/dist/client/assets/taskboard-analytics-B5tiovFi.js +0 -1
- package/dist/client/assets/tasks-C5eWHl6J.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-B5DYqQrS.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BgN51nwo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DnCmqaG2.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as U,c as L,b as J,a2 as Z,j as i,n as oe,ah as ee,l as K,B as O,L as G,ae as le,y as re}from"./index-D984WV3U.js";import{C as ne}from"./index-B4rQ5Ej9.js";import{i as ce}from"./LinkBroken01-CImL6HGl.js";import{T as me}from"./agent-icon-CsQzAnP1.js";import{b as X}from"./ZoomOut-C_NtAfgt.js";import{a as ae}from"./Image01-CyU1b2Nz.js";import{s as fe}from"./Plus-BzLmRH_e.js";import{t as de}from"./Users01-CgCEjxiR.js";import{G as te}from"./repository-picker-CjDs0ici.js";import{u as V}from"./use-connection-B96BwbcD.js";import{u as ie}from"./use-project-scope-CJSvss5q.js";import{g as se}from"./repository-binding-CrIQbyJh.js";import{u as pe}from"./use-members-DuiAoVt0.js";import{u as ue}from"./use-file-configs-DoW1VYTz.js";import{d as xe}from"./use-chat-layout-state-C4y1ngrz.js";import{r as he}from"./site-slug-DebpOoQq.js";import{r as ge}from"./virtual-mcp-ySkvJvwZ.js";import"./use-mobile-Cz-N6vVG.js";import"./thread-button-Dnwv5gXz.js";import"./UserSquare-BlSFjBrQ.js";import"./sheet-bMLuzpcl.js";import"./tooltip-CfH7_UR9.js";import"./index-ChAMt2d-.js";import"./toolbar-icon-button-539CZpjb.js";import"./shell-layout-CX2kb4As.js";import"./avatar-Da-P84-z.js";import"./User01-CuJbE_Yd.js";import"./Building02-C5UvSZSt.js";import"./XClose-BcQlXPoY.js";import"./use-panel-navigate-B348HV-V.js";import"./thread-route-Dp3ppEkH.js";import"./CheckCircle-B1cLRmIj.js";import"./Monitor01-jDiltU3l.js";import"./use-clock-tick-DcGl_y28.js";import"./Tool01-BLdqmAM-.js";import"./command-d2fvY4gQ.js";import"./index-ba_EB2Zw.js";import"./SearchMd-X-m-ot0f.js";import"./integration-icon-B4EO_1fi.js";import"./project-icon-DeUPWsC_.js";import"./use-mcp-client-D8-rDWEf.js";import"./auth-CsAAW7Ar.js";import"./new-project-dialog-CQomS8HX.js";import"./ArrowLeft-BkyozCr0.js";import"./label-BszVxI8j.js";import"./repository-import-picker-n3EYoF9U.js";import"./use-navigate-to-agent-CWPsHr0w.js";import"./thread-intent-BouO_OhM.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-jwr9yBFo.js";import"./task-board-BypYXBtD.js";import"./schema-BMqZTcjW.js";import"./slugify-CEUa2lfQ.js";import"./required-auth-layout-CTKRCLps.js";import"./autosend-8ZqTuUx9.js";import"./use-org-sso-BRZ2xqKg.js";import"./resizable-C3INc4c7.js";import"./icon-button-UzqZkmgc.js";import"./AlertCircle-CgfWDsMW.js";import"./ArrowUp-C0O7U47F.js";import"./ShoppingBag01-C30WMfg1.js";import"./ChevronUp-D_qU7VrJ.js";import"./ChevronSelectorVertical-bEeSv3mr.js";import"./Copy01-CT_cEqll.js";import"./CreditCard01-DFGzM4td.js";import"./DotsVertical-CGu7Zbqo.js";import"./Globe04-DtoCZsmb.js";import"./SwitchHorizontal01-iT36Ixqz.js";import"./Key01-CV4MPPMx.js";import"./Link01-BL0KHGWk.js";import"./Sun-D5cuTnns.js";import"./Play-HeD-LWQ6.js";import"./Trash01-DkcAHDGj.js";import"./Upload01-CJxfk4_B.js";import"./useInfiniteQuery-BgN51nwo.js";import"./infiniteQueryObserver-Bmwf-SCt.js";import"./collection-search-C-3HPALa.js";import"./use-debounced-value-BZK5uiHm.js";import"./use-organization-settings-BEUCQxuY.js";import"./use-org-auth-client-DQ6vSNUo.js";import"./url-slug-D7hdnLPq.js";function be(e){return[U.SELF(e),U.REGISTRY(e),U.COMMUNITY_REGISTRY(e),U.DEV_ASSETS(e)]}function je(e,t){const s=new Set(be(t));return e.some(l=>!s.has(l.id))}function ve(){const e=L.c(77),t=J(),{org:s}=Z(),l=V();let $;e[0]===Symbol.for("react.memo_cache_sentinel")?($={slug:"mcp-github"},e[0]=$):$=e[0];const u=V($),{projects:_}=ie(),o=pe();let r;e[1]!==s.slug?(r={org:s.slug},e[1]=s.slug,e[2]=r):r=e[2];const n=r;let x;e[3]!==t?(x=t("discover.setup.connectTitle"),e[3]=t,e[4]=x):x=e[4];let S;e[5]!==t?(S=t("discover.setup.connectBody"),e[5]=t,e[6]=S):S=e[6];let c;e[7]!==l||e[8]!==s.id?(c=je(l,s.id),e[7]=l,e[8]=s.id,e[9]=c):c=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=i.jsx(me,{size:18}),e[10]=h):h=e[10];let z;e[11]===Symbol.for("react.memo_cache_sentinel")?(z={tab:"all"},e[11]=z):z=e[11];let m;e[12]!==t?(m=t("discover.setup.connectAction"),e[12]=t,e[13]=m):m=e[13];let a;e[14]!==n||e[15]!==m?(a=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:"/$org/settings/connections",params:n,search:z,children:m})}),e[14]=n,e[15]=m,e[16]=a):a=e[16];let f;e[17]!==x||e[18]!==S||e[19]!==c||e[20]!==a?(f={key:"connect",title:x,body:S,done:c,icon:h,action:a},e[17]=x,e[18]=S,e[19]=c,e[20]=a,e[21]=f):f=e[21];let N;e[22]!==t?(N=t("discover.setup.githubTitle"),e[22]=t,e[23]=N):N=e[23];let g;e[24]!==t?(g=t("discover.setup.githubBody"),e[24]=t,e[25]=g):g=e[25];const C=u.length>0;let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b=i.jsx(te,{className:"size-[18px]"}),e[26]=b):b=e[26];let j;e[27]===Symbol.for("react.memo_cache_sentinel")?(j={tab:"all"},e[27]=j):j=e[27];let v;e[28]!==t?(v=t("discover.setup.githubAction"),e[28]=t,e[29]=v):v=e[29];let d;e[30]!==n||e[31]!==v?(d=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:"/$org/settings/connections",params:n,search:j,children:v})}),e[30]=n,e[31]=v,e[32]=d):d=e[32];let y;e[33]!==N||e[34]!==g||e[35]!==C||e[36]!==d?(y={key:"github",title:N,body:g,done:C,icon:b,action:d},e[33]=N,e[34]=g,e[35]=C,e[36]=d,e[37]=y):y=e[37];let p;e[38]!==t?(p=t("discover.setup.projectTitle"),e[38]=t,e[39]=p):p=e[39];let k;e[40]!==t?(k=t("discover.setup.projectBody"),e[40]=t,e[41]=k):k=e[41];const T=_.length>0;let R;e[42]===Symbol.for("react.memo_cache_sentinel")?(R=i.jsx(fe,{size:18}),e[42]=R):R=e[42];let w;e[43]!==s.slug?(w={org:s.slug},e[43]=s.slug,e[44]=w):w=e[44];let A;e[45]!==t?(A=t("discover.setup.projectAction"),e[45]=t,e[46]=A):A=e[46];let q;e[47]!==w||e[48]!==A?(q=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:le.home,params:w,children:A})}),e[47]=w,e[48]=A,e[49]=q):q=e[49];let E;e[50]!==p||e[51]!==k||e[52]!==T||e[53]!==q?(E={key:"project",title:p,body:k,done:T,icon:R,action:q},e[50]=p,e[51]=k,e[52]=T,e[53]=q,e[54]=E):E=e[54];let B;e[55]!==t?(B=t("discover.setup.inviteTitle"),e[55]=t,e[56]=B):B=e[56];let P;e[57]!==t?(P=t("discover.setup.inviteBody"),e[57]=t,e[58]=P):P=e[58];let Y;e[59]!==o.data?.data?.members?(Y=o.data?.data?.members??[],e[59]=o.data?.data?.members,e[60]=Y):Y=e[60];const W=Y.length>1;let F;e[61]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(de,{size:18}),e[61]=F):F=e[61];let D;e[62]!==t?(D=t("discover.setup.inviteAction"),e[62]=t,e[63]=D):D=e[63];let I;e[64]!==n||e[65]!==D?(I=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:"/$org/settings/members",params:n,children:D})}),e[64]=n,e[65]=D,e[66]=I):I=e[66];let M;e[67]!==B||e[68]!==P||e[69]!==W||e[70]!==I?(M={key:"invite",title:B,body:P,done:W,icon:F,action:I},e[67]=B,e[68]=P,e[69]=W,e[70]=I,e[71]=M):M=e[71];let Q;return e[72]!==y||e[73]!==E||e[74]!==M||e[75]!==f?(Q=[f,y,E,M],e[72]=y,e[73]=E,e[74]=M,e[75]=f,e[76]=Q):Q=e[76],Q}function ye(){const e=L.c(51),t=J(),{projects:s}=ie();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={slug:"mcp-github"},e[0]=l):l=e[0];const $=V(l),u=ue();let _;e[1]!==s?(_=s.some(Se),e[1]=s,e[2]=_):_=e[2];const o=_;let r;e[3]!==s?(r=s.some(_e),e[3]=s,e[4]=r):r=e[4];const n=r;let x;if(e[5]!==u||e[6]!==s){let w;e[8]!==u?(w=A=>xe(u.data?.configs??[],he(A)),e[8]=u,e[9]=w):w=e[9],x=s.some(w),e[5]=u,e[6]=s,e[7]=x}else x=e[7];const S=x;let c;e[10]!==t?(c=t("discover.capabilities.previewTitle"),e[10]=t,e[11]=c):c=e[11];let h;e[12]!==t?(h=t("discover.capabilities.previewRequirement"),e[12]=t,e[13]=h):h=e[13];let z;e[14]===Symbol.for("react.memo_cache_sentinel")?(z=i.jsx(X,{size:18}),e[14]=z):z=e[14];let m;e[15]!==o||e[16]!==c||e[17]!==h?(m={key:"preview",title:c,requirement:h,satisfied:o,icon:z},e[15]=o,e[16]=c,e[17]=h,e[18]=m):m=e[18];let a;e[19]!==t?(a=t("discover.capabilities.gitTitle"),e[19]=t,e[20]=a):a=e[20];let f;e[21]!==t?(f=t("discover.capabilities.gitRequirement"),e[21]=t,e[22]=f):f=e[22];const N=$.length>0&&o;let g;e[23]===Symbol.for("react.memo_cache_sentinel")?(g=i.jsx(te,{className:"size-[18px]"}),e[23]=g):g=e[23];let C;e[24]!==N||e[25]!==a||e[26]!==f?(C={key:"git",title:a,requirement:f,satisfied:N,icon:g},e[24]=N,e[25]=a,e[26]=f,e[27]=C):C=e[27];let b;e[28]!==t?(b=t("discover.capabilities.contentTitle"),e[28]=t,e[29]=b):b=e[29];let j;e[30]!==t?(j=t("discover.capabilities.contentRequirement"),e[30]=t,e[31]=j):j=e[31];let v;e[32]===Symbol.for("react.memo_cache_sentinel")?(v=i.jsx(X,{size:18}),e[32]=v):v=e[32];let d;e[33]!==n||e[34]!==b||e[35]!==j?(d={key:"content",title:b,requirement:j,satisfied:n,icon:v},e[33]=n,e[34]=b,e[35]=j,e[36]=d):d=e[36];let y;e[37]!==t?(y=t("discover.capabilities.assetsTitle"),e[37]=t,e[38]=y):y=e[38];let p;e[39]!==t?(p=t("discover.capabilities.assetsRequirement"),e[39]=t,e[40]=p):p=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=i.jsx(ae,{size:18}),e[41]=k):k=e[41];let T;e[42]!==S||e[43]!==y||e[44]!==p?(T={key:"assets",title:y,requirement:p,satisfied:S,icon:k},e[42]=S,e[43]=y,e[44]=p,e[45]=T):T=e[45];let R;return e[46]!==C||e[47]!==d||e[48]!==T||e[49]!==m?(R=[m,C,d,T],e[46]=C,e[47]=d,e[48]=T,e[49]=m,e[50]=R):R=e[50],R}function _e(e){return!!se(e)&&ge(e.metadata?.ui?.layout)!=="off"}function Se(e){return se(e)}function H(e){const t=L.c(10),{title:s,description:l,children:$}=e;let u;t[0]!==s?(u=i.jsx("h2",{className:"text-base font-semibold text-foreground",children:s}),t[0]=s,t[1]=u):u=t[1];let _;t[2]!==l?(_=i.jsx("p",{className:"max-w-prose text-sm text-muted-foreground",children:l}),t[2]=l,t[3]=_):_=t[3];let o;t[4]!==u||t[5]!==_?(o=i.jsxs("div",{className:"flex flex-col gap-1",children:[u,_]}),t[4]=u,t[5]=_,t[6]=o):o=t[6];let r;return t[7]!==$||t[8]!==o?(r=i.jsxs("section",{className:"flex flex-col gap-3",children:[o,$]}),t[7]=$,t[8]=o,t[9]=r):r=t[9],r}function Ne(){const e=L.c(63),t=J(),{org:s}=Z(),l=ve(),$=ye();let u;e[0]!==l?(u=l.filter(ze),e[0]=l,e[1]=u):u=e[1];const _=u;let o;e[2]!==t?(o=t("discover.title"),e[2]=t,e[3]=o):o=e[3];let r;e[4]!==o?(r=i.jsx(oe.Title,{children:o}),e[4]=o,e[5]=r):r=e[5];let n;e[6]!==t?(n=t("discover.subtitle"),e[6]=t,e[7]=n):n=e[7];let x;e[8]!==n?(x=i.jsx("p",{className:"max-w-prose text-sm text-muted-foreground",children:n}),e[8]=n,e[9]=x):x=e[9];let S;e[10]!==r||e[11]!==x?(S=i.jsxs("header",{className:"flex flex-col gap-2",children:[r,x]}),e[10]=r,e[11]=x,e[12]=S):S=e[12];let c;e[13]!==t?(c=t("discover.setup.title"),e[13]=t,e[14]=c):c=e[14];let h;e[15]!==_.length||e[16]!==t?(h=_.length===0?t("discover.setup.allDone"):t("discover.setup.description"),e[15]=_.length,e[16]=t,e[17]=h):h=e[17];let z;e[18]!==l?(z=l.map(Te),e[18]=l,e[19]=z):z=e[19];let m;e[20]!==z?(m=i.jsx("ul",{className:"flex flex-col gap-2",children:z}),e[20]=z,e[21]=m):m=e[21];let a;e[22]!==c||e[23]!==h||e[24]!==m?(a=i.jsx(H,{title:c,description:h,children:m}),e[22]=c,e[23]=h,e[24]=m,e[25]=a):a=e[25];let f;e[26]!==t?(f=t("discover.capabilities.title"),e[26]=t,e[27]=f):f=e[27];let N;e[28]!==t?(N=t("discover.capabilities.description"),e[28]=t,e[29]=N):N=e[29];let g;if(e[30]!==$||e[31]!==t){let A;e[33]!==t?(A=q=>i.jsxs("li",{className:"flex items-start gap-3 rounded-xl border border-border bg-card p-4",children:[i.jsx("span",{className:K("mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg",q.satisfied?"bg-success/10 text-success":"bg-muted text-muted-foreground"),children:q.satisfied?i.jsx(ee,{size:18}):q.icon}),i.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:q.title}),i.jsx("span",{className:"text-sm text-muted-foreground",children:q.satisfied?t("discover.capabilities.ready"):q.requirement})]})]},q.key),e[33]=t,e[34]=A):A=e[34],g=$.map(A),e[30]=$,e[31]=t,e[32]=g}else g=e[32];let C;e[35]!==g?(C=i.jsx("ul",{className:"grid gap-2 sm:grid-cols-2",children:g}),e[35]=g,e[36]=C):C=e[36];let b;e[37]!==f||e[38]!==N||e[39]!==C?(b=i.jsx(H,{title:f,description:N,children:C}),e[37]=f,e[38]=N,e[39]=C,e[40]=b):b=e[40];let j;e[41]!==t?(j=t("discover.catalog.title"),e[41]=t,e[42]=j):j=e[42];let v;e[43]!==t?(v=t("discover.catalog.description"),e[43]=t,e[44]=v):v=e[44];let d;e[45]!==s.slug?(d={org:s.slug},e[45]=s.slug,e[46]=d):d=e[46];let y;e[47]===Symbol.for("react.memo_cache_sentinel")?(y={tab:"all"},e[47]=y):y=e[47];let p;e[48]!==t?(p=t("discover.catalog.action"),e[48]=t,e[49]=p):p=e[49];let k;e[50]===Symbol.for("react.memo_cache_sentinel")?(k=i.jsx(ce,{size:18}),e[50]=k):k=e[50];let T;e[51]!==d||e[52]!==p?(T=i.jsx("div",{children:i.jsx(O,{asChild:!0,size:"lg",children:i.jsxs(G,{to:"/$org/settings/connections",params:d,search:y,onClick:Ce,children:[p,k]})})}),e[51]=d,e[52]=p,e[53]=T):T=e[53];let R;e[54]!==j||e[55]!==v||e[56]!==T?(R=i.jsx(H,{title:j,description:v,children:T}),e[54]=j,e[55]=v,e[56]=T,e[57]=R):R=e[57];let w;return e[58]!==a||e[59]!==b||e[60]!==R||e[61]!==S?(w=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto",children:i.jsxs("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-10 p-6 md:p-10",children:[S,a,b,R]})}),e[58]=a,e[59]=b,e[60]=R,e[61]=S,e[62]=w):w=e[62],w}function Ce(){return re("discover_catalog_opened",{})}function Te(e){return i.jsxs("li",{className:K("flex items-start gap-3 rounded-xl border border-border bg-card p-4",e.done&&"opacity-60"),children:[i.jsx("span",{className:K("mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg",e.done?"bg-success/10 text-success":"bg-muted text-muted-foreground"),children:e.done?i.jsx(ee,{size:18}):e.icon}),i.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:e.title}),i.jsx("span",{className:"text-sm text-muted-foreground",children:e.body})]}),!e.done&&i.jsx("div",{className:"shrink-0",children:e.action})]},e.key)}function ze(e){return!e.done}function ii(){const e=L.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(ne.Content,{children:i.jsx(Ne,{})}),e[0]=t):t=e[0],t}export{ii as default};
|
|
1
|
+
import{W as U,c as L,b as J,a2 as Z,j as i,n as oe,ah as ee,l as K,B as O,L as G,ae as le,y as re}from"./index-4XFLhK7S.js";import{C as ne}from"./index-Bs_Ow9qj.js";import{i as ce}from"./LinkBroken01-Cjxu7rCw.js";import{T as me}from"./agent-icon-DDBSTxwl.js";import{b as X}from"./ZoomOut-DA1sRe95.js";import{a as ae}from"./Image01-BjUHwjIr.js";import{s as fe}from"./Plus-DLTeBarI.js";import{t as de}from"./Users01-C9dOtgmV.js";import{G as te}from"./repository-picker-BHgNNGrn.js";import{u as V}from"./use-connection-DldRXuvq.js";import{u as ie}from"./use-project-scope-DJTJDi3A.js";import{g as se}from"./repository-binding-C_InVumU.js";import{u as pe}from"./use-members-C9_S9nP9.js";import{u as ue}from"./use-file-configs-DsMQGho1.js";import{d as xe}from"./use-chat-layout-state-BYcPLpFV.js";import{r as he}from"./site-slug-DebpOoQq.js";import{r as ge}from"./virtual-mcp-CWsV4-pi.js";import"./use-mobile-Buz9Esa_.js";import"./thread-button-BNBHV_Wu.js";import"./UserSquare-BFlEW2x5.js";import"./sheet-Bs1jJD9o.js";import"./tooltip-CUk78XFR.js";import"./index-DujNp8wX.js";import"./toolbar-icon-button-CIXm0pyl.js";import"./shell-layout-DZBrJWAA.js";import"./avatar-Brh_8d7a.js";import"./User01-BGOQS9vx.js";import"./Building02-EbX1A23K.js";import"./XClose-DO008B8R.js";import"./use-panel-navigate-DOyxnt44.js";import"./thread-route-B-yx1tFW.js";import"./CheckCircle-CoJfU94i.js";import"./Monitor01-CTL-UG2p.js";import"./use-clock-tick-CwQv-OCe.js";import"./Tool01-o_nJ7Y1x.js";import"./command-BfXTTBD9.js";import"./index-DVVx4F0i.js";import"./SearchMd-BsNWsFDv.js";import"./integration-icon-BqsHjS-b.js";import"./project-icon-CMe6LZd9.js";import"./use-mcp-client-C5uLw7Lc.js";import"./auth-D1PkW9Uj.js";import"./new-project-dialog-DdG-RgMO.js";import"./ArrowLeft-iygYSRbQ.js";import"./label-ByKoWpTn.js";import"./repository-import-picker-Bixi7zBc.js";import"./use-navigate-to-agent-C41zpB_Z.js";import"./thread-intent-DqexYQAC.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BjTl5yOD.js";import"./task-board-DcolQ15W.js";import"./schema-DyLXU88M.js";import"./slugify-CEUa2lfQ.js";import"./required-auth-layout-CxaLcttO.js";import"./autosend-D3KZZhDs.js";import"./use-org-sso-DVCQNBfN.js";import"./resizable-sj2QiDEc.js";import"./icon-button-BDbIWVW3.js";import"./AlertCircle-D4iOZ3Bs.js";import"./ArrowUp-KCSPs-fi.js";import"./ShoppingBag01-CWlRU3Ye.js";import"./ChevronUp-BSm7AtSf.js";import"./ChevronSelectorVertical-DqpRXMOM.js";import"./Copy01-DlA26aBh.js";import"./CreditCard01-CXGPcE51.js";import"./DotsVertical-CTugBooH.js";import"./Globe04-DDiW2Onm.js";import"./SwitchHorizontal01-DZEm8csq.js";import"./Key01-DMnhMxC3.js";import"./Link01-DKypA3Uf.js";import"./Sun-DhZMu2lN.js";import"./Play-NZWCLDah.js";import"./Trash01-JZaZB0vu.js";import"./Upload01-CpEePL13.js";import"./useInfiniteQuery-B3MUNCKJ.js";import"./infiniteQueryObserver-DLzEnjM8.js";import"./collection-search-Cp82h57b.js";import"./use-debounced-value-CNkuXNOW.js";import"./use-organization-settings-B0rQmLIX.js";import"./use-org-auth-client-DjRiIxwH.js";import"./url-slug-CFKzH8Z4.js";function be(e){return[U.SELF(e),U.REGISTRY(e),U.COMMUNITY_REGISTRY(e),U.DEV_ASSETS(e)]}function je(e,t){const s=new Set(be(t));return e.some(l=>!s.has(l.id))}function ve(){const e=L.c(77),t=J(),{org:s}=Z(),l=V();let $;e[0]===Symbol.for("react.memo_cache_sentinel")?($={slug:"mcp-github"},e[0]=$):$=e[0];const u=V($),{projects:_}=ie(),o=pe();let r;e[1]!==s.slug?(r={org:s.slug},e[1]=s.slug,e[2]=r):r=e[2];const n=r;let x;e[3]!==t?(x=t("discover.setup.connectTitle"),e[3]=t,e[4]=x):x=e[4];let S;e[5]!==t?(S=t("discover.setup.connectBody"),e[5]=t,e[6]=S):S=e[6];let c;e[7]!==l||e[8]!==s.id?(c=je(l,s.id),e[7]=l,e[8]=s.id,e[9]=c):c=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=i.jsx(me,{size:18}),e[10]=h):h=e[10];let z;e[11]===Symbol.for("react.memo_cache_sentinel")?(z={tab:"all"},e[11]=z):z=e[11];let m;e[12]!==t?(m=t("discover.setup.connectAction"),e[12]=t,e[13]=m):m=e[13];let a;e[14]!==n||e[15]!==m?(a=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:"/$org/settings/connections",params:n,search:z,children:m})}),e[14]=n,e[15]=m,e[16]=a):a=e[16];let f;e[17]!==x||e[18]!==S||e[19]!==c||e[20]!==a?(f={key:"connect",title:x,body:S,done:c,icon:h,action:a},e[17]=x,e[18]=S,e[19]=c,e[20]=a,e[21]=f):f=e[21];let N;e[22]!==t?(N=t("discover.setup.githubTitle"),e[22]=t,e[23]=N):N=e[23];let g;e[24]!==t?(g=t("discover.setup.githubBody"),e[24]=t,e[25]=g):g=e[25];const C=u.length>0;let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b=i.jsx(te,{className:"size-[18px]"}),e[26]=b):b=e[26];let j;e[27]===Symbol.for("react.memo_cache_sentinel")?(j={tab:"all"},e[27]=j):j=e[27];let v;e[28]!==t?(v=t("discover.setup.githubAction"),e[28]=t,e[29]=v):v=e[29];let d;e[30]!==n||e[31]!==v?(d=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:"/$org/settings/connections",params:n,search:j,children:v})}),e[30]=n,e[31]=v,e[32]=d):d=e[32];let y;e[33]!==N||e[34]!==g||e[35]!==C||e[36]!==d?(y={key:"github",title:N,body:g,done:C,icon:b,action:d},e[33]=N,e[34]=g,e[35]=C,e[36]=d,e[37]=y):y=e[37];let p;e[38]!==t?(p=t("discover.setup.projectTitle"),e[38]=t,e[39]=p):p=e[39];let k;e[40]!==t?(k=t("discover.setup.projectBody"),e[40]=t,e[41]=k):k=e[41];const T=_.length>0;let R;e[42]===Symbol.for("react.memo_cache_sentinel")?(R=i.jsx(fe,{size:18}),e[42]=R):R=e[42];let w;e[43]!==s.slug?(w={org:s.slug},e[43]=s.slug,e[44]=w):w=e[44];let A;e[45]!==t?(A=t("discover.setup.projectAction"),e[45]=t,e[46]=A):A=e[46];let q;e[47]!==w||e[48]!==A?(q=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:le.home,params:w,children:A})}),e[47]=w,e[48]=A,e[49]=q):q=e[49];let E;e[50]!==p||e[51]!==k||e[52]!==T||e[53]!==q?(E={key:"project",title:p,body:k,done:T,icon:R,action:q},e[50]=p,e[51]=k,e[52]=T,e[53]=q,e[54]=E):E=e[54];let B;e[55]!==t?(B=t("discover.setup.inviteTitle"),e[55]=t,e[56]=B):B=e[56];let P;e[57]!==t?(P=t("discover.setup.inviteBody"),e[57]=t,e[58]=P):P=e[58];let Y;e[59]!==o.data?.data?.members?(Y=o.data?.data?.members??[],e[59]=o.data?.data?.members,e[60]=Y):Y=e[60];const W=Y.length>1;let F;e[61]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(de,{size:18}),e[61]=F):F=e[61];let D;e[62]!==t?(D=t("discover.setup.inviteAction"),e[62]=t,e[63]=D):D=e[63];let I;e[64]!==n||e[65]!==D?(I=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:"/$org/settings/members",params:n,children:D})}),e[64]=n,e[65]=D,e[66]=I):I=e[66];let M;e[67]!==B||e[68]!==P||e[69]!==W||e[70]!==I?(M={key:"invite",title:B,body:P,done:W,icon:F,action:I},e[67]=B,e[68]=P,e[69]=W,e[70]=I,e[71]=M):M=e[71];let Q;return e[72]!==y||e[73]!==E||e[74]!==M||e[75]!==f?(Q=[f,y,E,M],e[72]=y,e[73]=E,e[74]=M,e[75]=f,e[76]=Q):Q=e[76],Q}function ye(){const e=L.c(51),t=J(),{projects:s}=ie();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={slug:"mcp-github"},e[0]=l):l=e[0];const $=V(l),u=ue();let _;e[1]!==s?(_=s.some(Se),e[1]=s,e[2]=_):_=e[2];const o=_;let r;e[3]!==s?(r=s.some(_e),e[3]=s,e[4]=r):r=e[4];const n=r;let x;if(e[5]!==u||e[6]!==s){let w;e[8]!==u?(w=A=>xe(u.data?.configs??[],he(A)),e[8]=u,e[9]=w):w=e[9],x=s.some(w),e[5]=u,e[6]=s,e[7]=x}else x=e[7];const S=x;let c;e[10]!==t?(c=t("discover.capabilities.previewTitle"),e[10]=t,e[11]=c):c=e[11];let h;e[12]!==t?(h=t("discover.capabilities.previewRequirement"),e[12]=t,e[13]=h):h=e[13];let z;e[14]===Symbol.for("react.memo_cache_sentinel")?(z=i.jsx(X,{size:18}),e[14]=z):z=e[14];let m;e[15]!==o||e[16]!==c||e[17]!==h?(m={key:"preview",title:c,requirement:h,satisfied:o,icon:z},e[15]=o,e[16]=c,e[17]=h,e[18]=m):m=e[18];let a;e[19]!==t?(a=t("discover.capabilities.gitTitle"),e[19]=t,e[20]=a):a=e[20];let f;e[21]!==t?(f=t("discover.capabilities.gitRequirement"),e[21]=t,e[22]=f):f=e[22];const N=$.length>0&&o;let g;e[23]===Symbol.for("react.memo_cache_sentinel")?(g=i.jsx(te,{className:"size-[18px]"}),e[23]=g):g=e[23];let C;e[24]!==N||e[25]!==a||e[26]!==f?(C={key:"git",title:a,requirement:f,satisfied:N,icon:g},e[24]=N,e[25]=a,e[26]=f,e[27]=C):C=e[27];let b;e[28]!==t?(b=t("discover.capabilities.contentTitle"),e[28]=t,e[29]=b):b=e[29];let j;e[30]!==t?(j=t("discover.capabilities.contentRequirement"),e[30]=t,e[31]=j):j=e[31];let v;e[32]===Symbol.for("react.memo_cache_sentinel")?(v=i.jsx(X,{size:18}),e[32]=v):v=e[32];let d;e[33]!==n||e[34]!==b||e[35]!==j?(d={key:"content",title:b,requirement:j,satisfied:n,icon:v},e[33]=n,e[34]=b,e[35]=j,e[36]=d):d=e[36];let y;e[37]!==t?(y=t("discover.capabilities.assetsTitle"),e[37]=t,e[38]=y):y=e[38];let p;e[39]!==t?(p=t("discover.capabilities.assetsRequirement"),e[39]=t,e[40]=p):p=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=i.jsx(ae,{size:18}),e[41]=k):k=e[41];let T;e[42]!==S||e[43]!==y||e[44]!==p?(T={key:"assets",title:y,requirement:p,satisfied:S,icon:k},e[42]=S,e[43]=y,e[44]=p,e[45]=T):T=e[45];let R;return e[46]!==C||e[47]!==d||e[48]!==T||e[49]!==m?(R=[m,C,d,T],e[46]=C,e[47]=d,e[48]=T,e[49]=m,e[50]=R):R=e[50],R}function _e(e){return!!se(e)&&ge(e.metadata?.ui?.layout)!=="off"}function Se(e){return se(e)}function H(e){const t=L.c(10),{title:s,description:l,children:$}=e;let u;t[0]!==s?(u=i.jsx("h2",{className:"text-base font-semibold text-foreground",children:s}),t[0]=s,t[1]=u):u=t[1];let _;t[2]!==l?(_=i.jsx("p",{className:"max-w-prose text-sm text-muted-foreground",children:l}),t[2]=l,t[3]=_):_=t[3];let o;t[4]!==u||t[5]!==_?(o=i.jsxs("div",{className:"flex flex-col gap-1",children:[u,_]}),t[4]=u,t[5]=_,t[6]=o):o=t[6];let r;return t[7]!==$||t[8]!==o?(r=i.jsxs("section",{className:"flex flex-col gap-3",children:[o,$]}),t[7]=$,t[8]=o,t[9]=r):r=t[9],r}function Ne(){const e=L.c(63),t=J(),{org:s}=Z(),l=ve(),$=ye();let u;e[0]!==l?(u=l.filter(ze),e[0]=l,e[1]=u):u=e[1];const _=u;let o;e[2]!==t?(o=t("discover.title"),e[2]=t,e[3]=o):o=e[3];let r;e[4]!==o?(r=i.jsx(oe.Title,{children:o}),e[4]=o,e[5]=r):r=e[5];let n;e[6]!==t?(n=t("discover.subtitle"),e[6]=t,e[7]=n):n=e[7];let x;e[8]!==n?(x=i.jsx("p",{className:"max-w-prose text-sm text-muted-foreground",children:n}),e[8]=n,e[9]=x):x=e[9];let S;e[10]!==r||e[11]!==x?(S=i.jsxs("header",{className:"flex flex-col gap-2",children:[r,x]}),e[10]=r,e[11]=x,e[12]=S):S=e[12];let c;e[13]!==t?(c=t("discover.setup.title"),e[13]=t,e[14]=c):c=e[14];let h;e[15]!==_.length||e[16]!==t?(h=_.length===0?t("discover.setup.allDone"):t("discover.setup.description"),e[15]=_.length,e[16]=t,e[17]=h):h=e[17];let z;e[18]!==l?(z=l.map(Te),e[18]=l,e[19]=z):z=e[19];let m;e[20]!==z?(m=i.jsx("ul",{className:"flex flex-col gap-2",children:z}),e[20]=z,e[21]=m):m=e[21];let a;e[22]!==c||e[23]!==h||e[24]!==m?(a=i.jsx(H,{title:c,description:h,children:m}),e[22]=c,e[23]=h,e[24]=m,e[25]=a):a=e[25];let f;e[26]!==t?(f=t("discover.capabilities.title"),e[26]=t,e[27]=f):f=e[27];let N;e[28]!==t?(N=t("discover.capabilities.description"),e[28]=t,e[29]=N):N=e[29];let g;if(e[30]!==$||e[31]!==t){let A;e[33]!==t?(A=q=>i.jsxs("li",{className:"flex items-start gap-3 rounded-xl border border-border bg-card p-4",children:[i.jsx("span",{className:K("mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg",q.satisfied?"bg-success/10 text-success":"bg-muted text-muted-foreground"),children:q.satisfied?i.jsx(ee,{size:18}):q.icon}),i.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:q.title}),i.jsx("span",{className:"text-sm text-muted-foreground",children:q.satisfied?t("discover.capabilities.ready"):q.requirement})]})]},q.key),e[33]=t,e[34]=A):A=e[34],g=$.map(A),e[30]=$,e[31]=t,e[32]=g}else g=e[32];let C;e[35]!==g?(C=i.jsx("ul",{className:"grid gap-2 sm:grid-cols-2",children:g}),e[35]=g,e[36]=C):C=e[36];let b;e[37]!==f||e[38]!==N||e[39]!==C?(b=i.jsx(H,{title:f,description:N,children:C}),e[37]=f,e[38]=N,e[39]=C,e[40]=b):b=e[40];let j;e[41]!==t?(j=t("discover.catalog.title"),e[41]=t,e[42]=j):j=e[42];let v;e[43]!==t?(v=t("discover.catalog.description"),e[43]=t,e[44]=v):v=e[44];let d;e[45]!==s.slug?(d={org:s.slug},e[45]=s.slug,e[46]=d):d=e[46];let y;e[47]===Symbol.for("react.memo_cache_sentinel")?(y={tab:"all"},e[47]=y):y=e[47];let p;e[48]!==t?(p=t("discover.catalog.action"),e[48]=t,e[49]=p):p=e[49];let k;e[50]===Symbol.for("react.memo_cache_sentinel")?(k=i.jsx(ce,{size:18}),e[50]=k):k=e[50];let T;e[51]!==d||e[52]!==p?(T=i.jsx("div",{children:i.jsx(O,{asChild:!0,size:"lg",children:i.jsxs(G,{to:"/$org/settings/connections",params:d,search:y,onClick:Ce,children:[p,k]})})}),e[51]=d,e[52]=p,e[53]=T):T=e[53];let R;e[54]!==j||e[55]!==v||e[56]!==T?(R=i.jsx(H,{title:j,description:v,children:T}),e[54]=j,e[55]=v,e[56]=T,e[57]=R):R=e[57];let w;return e[58]!==a||e[59]!==b||e[60]!==R||e[61]!==S?(w=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto",children:i.jsxs("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-10 p-6 md:p-10",children:[S,a,b,R]})}),e[58]=a,e[59]=b,e[60]=R,e[61]=S,e[62]=w):w=e[62],w}function Ce(){return re("discover_catalog_opened",{})}function Te(e){return i.jsxs("li",{className:K("flex items-start gap-3 rounded-xl border border-border bg-card p-4",e.done&&"opacity-60"),children:[i.jsx("span",{className:K("mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg",e.done?"bg-success/10 text-success":"bg-muted text-muted-foreground"),children:e.done?i.jsx(ee,{size:18}):e.icon}),i.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:e.title}),i.jsx("span",{className:"text-sm text-muted-foreground",children:e.body})]}),!e.done&&i.jsx("div",{className:"shrink-0",children:e.action})]},e.key)}function ze(e){return!e.done}function ii(){const e=L.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(ne.Content,{children:i.jsx(Ne,{})}),e[0]=t):t=e[0],t}export{ii as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as oe,b as ae,a2 as de,o as re,aa as ce,r as me,K as ie,m as ge,e as X,y as ue,t as N,j as s,ev as fe,B as te,I as xe,eu as Se,et as je}from"./index-
|
|
1
|
+
import{c as oe,b as ae,a2 as de,o as re,aa as ce,r as me,K as ie,m as ge,e as X,y as ue,t as N,j as s,ev as fe,B as te,I as xe,eu as Se,et as je}from"./index-4XFLhK7S.js";import{B as ne}from"./badge-Dp13ql_I.js";import{S as pe,b as he,a as Ne,d as ve,c as se}from"./select-CEirlFRV.js";function Me(e,t,o){switch(e){case"auto":return o("settings.domainSettings.joinModeHelpAuto",{domain:t});case"request":return o("settings.domainSettings.joinModeHelpRequest",{domain:t});default:return o("settings.domainSettings.joinModeHelpOff")}}function Oe(){const e=oe.c(101),t=ae(),{org:o}=de(),p=re(),i=ce(),[d,v]=me.useState("");let c;e[0]!==o.id?(c=ie.organizationDomains(o.id),e[0]=o.id,e[1]=c):c=e[1];let m;e[2]!==i?(m=()=>i.call("ORGANIZATION_DOMAIN_LIST",{}),e[2]=i,e[3]=m):m=e[3];let x;e[4]!==c||e[5]!==m?(x={queryKey:c,queryFn:m},e[4]=c,e[5]=m,e[6]=x):x=e[6];const{data:h,isPending:M}=ge(x);let S;e[7]!==o.id||e[8]!==p?(S=()=>p.invalidateQueries({queryKey:ie.organizationDomains(o.id)}),e[7]=o.id,e[8]=p,e[9]=S):S=e[9];const a=S;let g;e[10]!==i?(g=n=>i.call("ORGANIZATION_DOMAIN_ADD",{domain:n}),e[10]=i,e[11]=g):g=e[11];let u;e[12]!==a||e[13]!==o.id||e[14]!==t?(u=()=>{ue("organization_domain_added",{organization_id:o.id}),v(""),a(),N.success(t("settings.domainSettings.domainAdded"))},e[12]=a,e[13]=o.id,e[14]=t,e[15]=u):u=e[15];let f;e[16]!==t?(f=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedAddDomain")),e[16]=t,e[17]=f):f=e[17];let j;e[18]!==g||e[19]!==u||e[20]!==f?(j={mutationFn:g,onSuccess:u,onError:f},e[18]=g,e[19]=u,e[20]=f,e[21]=j):j=e[21];const r=X(j);let I;e[22]!==i?(I=n=>{const{id:l,joinMode:D}=n;return i.call("ORGANIZATION_DOMAIN_UPDATE",{id:l,joinMode:D})},e[22]=i,e[23]=I):I=e[23];let A;e[24]!==a||e[25]!==t?(A=()=>{a(),N.success(t("settings.domainSettings.joinModeUpdated"))},e[24]=a,e[25]=t,e[26]=A):A=e[26];let y;e[27]!==t?(y=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedUpdate")),e[27]=t,e[28]=y):y=e[28];let U;e[29]!==y||e[30]!==I||e[31]!==A?(U={mutationFn:I,onSuccess:A,onError:y},e[29]=y,e[30]=I,e[31]=A,e[32]=U):U=e[32];const Q=X(U);let O;e[33]!==i?(O=n=>i.call("ORGANIZATION_DOMAIN_VERIFY",{id:n}),e[33]=i,e[34]=O):O=e[34];let b;e[35]!==a||e[36]!==t?(b=n=>{a(),n.verified?N.success(t("settings.domainSettings.domainVerified")):N.error(t("settings.domainSettings.txtRecordNotFound"))},e[35]=a,e[36]=t,e[37]=b):b=e[37];let E;e[38]!==t?(E=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedVerify")),e[38]=t,e[39]=E):E=e[39];let Y;e[40]!==O||e[41]!==b||e[42]!==E?(Y={mutationFn:O,onSuccess:b,onError:E},e[40]=O,e[41]=b,e[42]=E,e[43]=Y):Y=e[43];const R=X(Y);let C;e[44]!==i?(C=n=>i.call("ORGANIZATION_DOMAIN_REMOVE",{id:n}),e[44]=i,e[45]=C):C=e[45];let P;e[46]!==a||e[47]!==t?(P=()=>{a(),N.success(t("settings.domainSettings.domainRemoved"))},e[46]=a,e[47]=t,e[48]=P):P=e[48];let _;e[49]!==t?(_=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedRemove")),e[49]=t,e[50]=_):_=e[50];let $;e[51]!==C||e[52]!==P||e[53]!==_?($={mutationFn:C,onSuccess:P,onError:_},e[51]=C,e[52]=P,e[53]=_,e[54]=$):$=e[54];const T=X($);if(M)return null;let L;e[55]!==h?.domains?(L=h?.domains??[],e[55]=h?.domains,e[56]=L):L=e[56];const ee=L;let V;e[57]!==t?(V=t("settings.domainSettings.emailDomains"),e[57]=t,e[58]=V):V=e[58];let k;e[59]!==t?(k=t("settings.domainSettings.emailDomainsDescription"),e[59]=t,e[60]=k):k=e[60];let q;if(e[61]!==ee||e[62]!==T||e[63]!==t||e[64]!==Q||e[65]!==R){let n;e[67]!==T||e[68]!==t||e[69]!==Q||e[70]!==R?(n=l=>{const D=l.verificationStatus==="verified";return s.jsx(fe,{title:s.jsxs("span",{className:"flex items-center gap-2",children:[l.domain,D?s.jsx(ne,{variant:"secondary",children:t("settings.domainSettings.verified")}):s.jsx(ne,{variant:"outline",children:t("settings.domainSettings.pending")})]}),description:D?Me(l.joinMode,l.domain,t):t("settings.domainSettings.addDnsRecordInstruction"),action:s.jsxs("div",{className:"flex items-center gap-2",children:[D&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:t("settings.domainSettings.joinMode")}),s.jsxs(pe,{value:l.joinMode,onValueChange:le=>Q.mutate({id:l.id,joinMode:le}),children:[s.jsx(he,{className:"w-44",size:"sm",children:s.jsx(Ne,{})}),s.jsxs(ve,{children:[s.jsx(se,{value:"off",children:t("settings.domainSettings.joinModeOff")}),s.jsx(se,{value:"auto",children:t("settings.domainSettings.joinModeAuto")}),s.jsx(se,{value:"request",children:t("settings.domainSettings.joinModeRequest")})]})]})]}),!D&&s.jsx(te,{size:"sm",variant:"outline",onClick:()=>R.mutate(l.id),disabled:R.isPending,children:t("settings.domainSettings.verify")}),s.jsx(te,{size:"sm",variant:"ghost",onClick:()=>T.mutate(l.id),disabled:T.isPending,children:t("settings.domainSettings.remove")})]}),children:!D&&l.recordName&&l.recordValue&&s.jsx(Ie,{recordName:l.recordName,recordValue:l.recordValue})},l.id)},e[67]=T,e[68]=t,e[69]=Q,e[70]=R,e[71]=n):n=e[71],q=ee.map(n),e[61]=ee,e[62]=T,e[63]=t,e[64]=Q,e[65]=R,e[66]=q}else q=e[66];let J;e[72]===Symbol.for("react.memo_cache_sentinel")?(J=n=>v(n.target.value),e[72]=J):J=e[72];let z;e[73]!==t?(z=t("settings.domainSettings.domainPlaceholder"),e[73]=t,e[74]=z):z=e[74];let F;e[75]!==d||e[76]!==z?(F=s.jsx(xe,{value:d,onChange:J,placeholder:z,className:"max-w-xs"}),e[75]=d,e[76]=z,e[77]=F):F=e[77];let w;e[78]!==r||e[79]!==d?(w=()=>r.mutate(d.trim()),e[78]=r,e[79]=d,e[80]=w):w=e[80];let G;e[81]!==r.isPending||e[82]!==d?(G=!d.trim()||r.isPending,e[81]=r.isPending,e[82]=d,e[83]=G):G=e[83];let Z;e[84]!==r.isPending||e[85]!==t?(Z=r.isPending?t("settings.domainSettings.adding"):t("settings.domainSettings.addDomain"),e[84]=r.isPending,e[85]=t,e[86]=Z):Z=e[86];let B;e[87]!==w||e[88]!==G||e[89]!==Z?(B=s.jsx(te,{size:"sm",onClick:w,disabled:G,children:Z}),e[87]=w,e[88]=G,e[89]=Z,e[90]=B):B=e[90];let H;e[91]!==F||e[92]!==B?(H=s.jsxs("div",{className:"flex items-center gap-2 p-4",children:[F,B]}),e[91]=F,e[92]=B,e[93]=H):H=e[93];let K;e[94]!==q||e[95]!==H?(K=s.jsxs(Se,{children:[q,H]}),e[94]=q,e[95]=H,e[96]=K):K=e[96];let W;return e[97]!==V||e[98]!==k||e[99]!==K?(W=s.jsx(je,{title:V,description:k,children:K}),e[97]=V,e[98]=k,e[99]=K,e[100]=W):W=e[100],W}function Ie(e){const t=oe.c(34),{recordName:o,recordValue:p}=e,i=ae();let d;t[0]!==i?(d=I=>{navigator.clipboard?.writeText(I),N.success(i("settings.domainSettings.copied"))},t[0]=i,t[1]=d):d=t[1];const v=d;let c;t[2]!==i?(c=i("settings.domainSettings.dnsInstructions"),t[2]=i,t[3]=c):c=t[3];let m;t[4]!==c?(m=s.jsx("p",{className:"text-muted-foreground",children:c}),t[4]=c,t[5]=m):m=t[5];let x;t[6]!==v||t[7]!==o?(x=()=>v(o),t[6]=v,t[7]=o,t[8]=x):x=t[8];let h;t[9]!==i?(h=i("settings.domainSettings.txt"),t[9]=i,t[10]=h):h=t[10];let M;t[11]!==h?(M=s.jsxs("span",{className:"text-muted-foreground",children:[h," "]}),t[11]=h,t[12]=M):M=t[12];let S;t[13]!==o||t[14]!==x||t[15]!==M?(S=s.jsxs("button",{type:"button",className:"text-left font-mono break-all hover:underline",onClick:x,children:[M,o]}),t[13]=o,t[14]=x,t[15]=M,t[16]=S):S=t[16];let a;t[17]!==v||t[18]!==p?(a=()=>v(p),t[17]=v,t[18]=p,t[19]=a):a=t[19];let g;t[20]!==i?(g=i("settings.domainSettings.value"),t[20]=i,t[21]=g):g=t[21];let u;t[22]!==g?(u=s.jsxs("span",{className:"text-muted-foreground",children:[g," "]}),t[22]=g,t[23]=u):u=t[23];let f;t[24]!==p||t[25]!==u||t[26]!==a?(f=s.jsxs("button",{type:"button",className:"text-left font-mono break-all hover:underline",onClick:a,children:[u,p]}),t[24]=p,t[25]=u,t[26]=a,t[27]=f):f=t[27];let j;t[28]!==f||t[29]!==S?(j=s.jsxs("div",{className:"grid gap-1",children:[S,f]}),t[28]=f,t[29]=S,t[30]=j):j=t[30];let r;return t[31]!==j||t[32]!==m?(r=s.jsxs("div",{className:"mt-3 rounded-lg border border-border bg-muted/40 p-3 text-xs space-y-2",children:[m,j]}),t[31]=j,t[32]=m,t[33]=r):r=t[33],r}export{Oe as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as s,e9 as i,l as c}from"./index-
|
|
1
|
+
import{c as d,j as s,e9 as i,l as c}from"./index-4XFLhK7S.js";function x(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Root,{"data-slot":"drawer",...t}),e[2]=t,e[3]=a):a=e[3],a}function v(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Trigger,{"data-slot":"drawer-trigger",...t}),e[2]=t,e[3]=a):a=e[3],a}function w(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Portal,{"data-slot":"drawer-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function b(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Close,{"data-slot":"drawer-close",...t}),e[2]=t,e[3]=a):a=e[3],a}function m(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx(i.Overlay,{"data-slot":"drawer-overlay",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function g(l){const e=d.c(12);let t,a,r;e[0]!==l?({className:a,children:t,...r}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=r):(t=e[1],a=e[2],r=e[3]);let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(m,{}),e[4]=o):o=e[4];let n;e[5]!==a?(n=c("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[95vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",a),e[5]=a,e[6]=n):n=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e[7]=f):f=e[7];let u;return e[8]!==t||e[9]!==r||e[10]!==n?(u=s.jsxs(w,{"data-slot":"drawer-portal",children:[o,s.jsxs(i.Content,{"data-slot":"drawer-content",className:n,...r,children:[f,t]})]}),e[8]=t,e[9]=r,e[10]=n,e[11]=u):u=e[11],u}function h(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("flex flex-col gap-1.5 px-4 py-2",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx("div",{"data-slot":"drawer-header",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function j(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("mt-auto flex flex-col gap-2 p-4",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx("div",{"data-slot":"drawer-footer",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function D(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("text-foreground font-semibold",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx(i.Title,{"data-slot":"drawer-title",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function N(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("text-muted-foreground text-sm",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx(i.Description,{"data-slot":"drawer-description",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}export{x as D,g as a,D as b,v as c,h as d,N as e,b as f,j as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,dS as R}from"./index-
|
|
1
|
+
import{r as a,dS as R}from"./index-4XFLhK7S.js";function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function be(e){if(Array.isArray(e))return e}function we(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function Oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oe(Object(r),!0).forEach(function(n){we(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function je(e,t){if(e==null)return{};var r,n,o=Me(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Pe(e,t){return be(e)||ye(e,t)||Re(e,t)||Oe()}function Ee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e){var t=Ee(e,"string");return typeof t=="symbol"?t:t+""}function Re(e,t){if(e){if(typeof e=="string")return ne(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function L(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function z(e){return{}.toString.call(e).includes("Object")}function Ce(e){return!Object.keys(e).length}function D(e){return typeof e=="function"}function Ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e,t){return z(t)||P("changeType"),Object.keys(t).some(function(r){return!Ae(e,r)})&&P("changeField"),t}function $e(e){D(e)||P("selectorType")}function De(e){D(e)||z(e)||P("handlerType"),z(e)&&Object.values(e).some(function(t){return!D(t)})&&P("handlersType")}function Ve(e){e||P("initialIsRequired"),z(e)||P("initialType"),Ce(e)&&P("initialContent")}function xe(e,t){throw new Error(e[t]||e.default)}var Ne={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},P=L(xe)(Ne),U={changes:Le,selector:$e,handler:De,initial:Ve};function Ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};U.initial(e),U.handler(t);var r={current:e},n=L(Fe)(r,t),o=L(ze)(r),i=L(U.changes)(e),c=L(qe)(r);function s(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(j){return j};return U.selector(p),p(r.current)}function f(p){Ie(n,o,i,c)(p)}return[s,f]}function qe(e,t){return D(t)?t(e.current):t}function ze(e,t){return e.current=ue(ue({},e.current),t),t}function Fe(e,t,r){return D(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var He={create:Ue},We={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function _e(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function ke(e){return{}.toString.call(e).includes("Object")}function Ke(e){return e||ce("configIsRequired"),ke(e)||ce("configType"),e.urls?(Be(),{paths:{vs:e.urls.monacoBase}}):e}function Be(){console.warn(le.deprecation)}function Ge(e,t){throw new Error(e[t]||e.default)}var le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
3
|
You are using deprecated way of configuration.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,l as h,j as t,B as g}from"./index-
|
|
1
|
+
import{c as b,l as h,j as t,B as g}from"./index-4XFLhK7S.js";function y(N){const e=b.c(21),{icon:o,illustration:a,title:u,description:d,buttonProps:s,buttonComponent:x,className:j,children:p}=N;let l;e[0]!==j?(l=h("flex flex-col items-center justify-center py-16 text-center",j),e[0]=j,e[1]=l):l=e[1];let i;e[2]!==o||e[3]!==a?(i=a?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:a}):o?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:o}):null,e[2]=o,e[3]=a,e[4]=i):i=e[4];let n;e[5]!==u?(n=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:u}),e[5]=u,e[6]=n):n=e[6];let c;e[7]!==d?(c=d&&t.jsx("div",{className:"text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==n||e[10]!==c?(r=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[n,c]}),e[9]=n,e[10]=c,e[11]=r):r=e[11];let m;e[12]!==x||e[13]!==s?(m=(x??s)&&t.jsx("div",{className:"mt-4",children:x??(s&&t.jsx(g,{size:"sm",className:h(s?.className),...s}))}),e[12]=x,e[13]=s,e[14]=m):m=e[14];let f;return e[15]!==p||e[16]!==l||e[17]!==i||e[18]!==r||e[19]!==m?(f=t.jsxs("div",{className:l,children:[i,r,m,p]}),e[15]=p,e[16]=l,e[17]=i,e[18]=r,e[19]=m,e[20]=f):f=e[20],f}export{y as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as N,j as t}from"./index-
|
|
1
|
+
import{c as v,l as N,j as t}from"./index-4XFLhK7S.js";function y(){const x=v.c(1);let e;return x[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("img",{src:"/empty-state-cards.png",alt:"",width:336,height:320,"aria-hidden":"true"}),x[0]=e):e=x[0],e}function C(x){const e=v.c(24),{image:f,title:p,description:u,actions:o,className:h,descriptionClassName:j,actionsClassName:g}=x;let s;e[0]!==h?(s=N("flex flex-1 flex-col items-center justify-center gap-8 p-4",h),e[0]=h,e[1]=s):s=e[1];let l;e[2]!==f?(l=f!==null&&t.jsx("div",{className:"flex items-center justify-center",children:f??t.jsx(y,{})}),e[2]=f,e[3]=l):l=e[3];let i;e[4]!==p?(i=t.jsx("h3",{className:"text-center text-lg font-medium text-foreground",children:p}),e[4]=p,e[5]=i):i=e[5];let c;e[6]!==j?(c=N("text-sm text-muted-foreground text-center max-w-[300px]",j),e[6]=j,e[7]=c):c=e[7];let a;e[8]!==u||e[9]!==c?(a=t.jsx("div",{className:c,children:u}),e[8]=u,e[9]=c,e[10]=a):a=e[10];let n;e[11]!==i||e[12]!==a?(n=t.jsxs("div",{className:"flex flex-col items-center gap-2",children:[i,a]}),e[11]=i,e[12]=a,e[13]=n):n=e[13];let r;e[14]!==o||e[15]!==g?(r=o&&t.jsx("div",{className:N("flex items-center gap-2",g),children:o}),e[14]=o,e[15]=g,e[16]=r):r=e[16];let m;e[17]!==n||e[18]!==r?(m=t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[n,r]}),e[17]=n,e[18]=r,e[19]=m):m=e[19];let d;return e[20]!==s||e[21]!==l||e[22]!==m?(d=t.jsxs("div",{className:s,children:[l,m]}),e[20]=s,e[21]=l,e[22]=m,e[23]=d):d=e[23],d}export{C as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as k,a as O}from"./metadata-D72DunRR.js";import{O as R}from"./connection-
|
|
1
|
+
import{g as k,a as O}from"./metadata-D72DunRR.js";import{O as R}from"./connection-BTT1rt_2.js";const D={"streamable-http":"HTTP",http:"HTTP",sse:"SSE",stdio:"STDIO",websocket:"Websocket"};function H(e){return e?D[e]??e.toUpperCase():null}let V="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",E=(e=21)=>{let n="",s=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)n+=V[s[e]&63];return n};function $(e){return`${e}_${E()}`}function L(e){const n=k(e._meta),s=e.id==="deco/github-mcp"?"mcp-github":e.server?.name;return n?.appName||s||null}function W(e){if(!e?.url)return"Unknown";try{return new URL(e.url).hostname}catch{return e.url}}function j(e){const n=e?.identifier||e?.name;return n?n.replace(/^@[^/]+\//,"").replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase()):"Unknown"}function q(e,n,s,r){const t=e.server,o=k(e._meta),m=new Date().toISOString(),S=o?.friendlyName||o?.friendly_name||e.title||t?.title||t?.name||"Unnamed MCP Server",v=t?.description||null,N=t?.icons?.[0]?.src||O(t?.repository)||null,h=R.safeParse(o?.oauth_config),P=h.success?h.data:null,T=o?.configuration_state,C=o?.configuration_scopes,I=t?.repository?{url:t.repository.url,source:t.repository.source,subfolder:t.repository.subfolder}:null,p=t?.packages??[],d=t?.remotes??[],x=r?.packageIndex??0,w=r?.remoteIndex??0,_=p.length>0&&(r?.packageIndex!==void 0||d.length===0),a=_?p[x]:null,i=_?null:d[w];let l,u,b=null;if(a){const c=a.identifier||a.name;l="STDIO",u="";const f={};if(a.environmentVariables)for(const y of a.environmentVariables)y.name&&(f[y.name]="");b={command:"npx",args:c?["-y",c]:[],...Object.keys(f).length>0&&{envVars:f}}}else if(i){const c=H(i.type);l=c==="SSE"||c==="Websocket"?c:"HTTP",u=i.url||""}else l="HTTP",u="";const U=d.length>1,A=p.length>1;let g="";a&&A?g=` (${j(a)})`:i&&U&&(g=` (${W(i)})`);const M=S+g;return{id:$("conn"),title:M,description:v,icon:N,app_name:L(e),app_id:o?.id||e.id||null,connection_type:l,connection_url:u,connection_token:null,connection_headers:b,oauth_config:P,configuration_state:T??null,configuration_scopes:C??null,metadata:{source:"store",registry_item_id:e.id,verified:o?.verified??!1,scopeName:o?.scopeName??null,toolsCount:o?.tools?.length??0,publishedAt:o?.publishedAt??null,repository:I},created_at:m,updated_at:m,created_by:s,organization_id:n,tools:null,bindings:null,status:"inactive"}}export{L as a,q as e,$ as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,u as d,j as l,b2 as m}from"./index-
|
|
1
|
+
import{c as x,u as d,j as l,b2 as m}from"./index-4XFLhK7S.js";import{F as j}from"./feature-paywall-B1-Kq6zS.js";import{e as v,f as F}from"./use-decopilot-events-DH5jig6y.js";import{a as S}from"./use-panel-navigate-DOyxnt44.js";function g(f){const e=x.c(10),{feature:a,backdrop:o,children:u}=f,{openPanel:c}=S();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const{mainpanel:p}=d(r),h=v(a);if(!F()){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3 p-4",children:[l.jsx(m,{className:"h-8 w-48"}),l.jsx(m,{className:"min-h-0 flex-1 w-full"})]}),e[1]=i):i=e[1],i}if(h)return u;if(p===!1)return null;let s;e[2]!==c?(s=()=>c("overview"),e[2]=c,e[3]=s):s=e[3];let t;e[4]!==a||e[5]!==s?(t=l.jsx(j,{feature:a,onDismiss:s,onSeePlans:w}),e[4]=a,e[5]=s,e[6]=t):t=e[6];let n;return e[7]!==o||e[8]!==t?(n=l.jsxs("div",{className:"relative h-full min-h-0",children:[o,t]}),e[7]=o,e[8]=t,e[9]=n):n=e[9],n}function w(){}export{g as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,l as $,j as t,v as B,aK as R,s as O,q as M,D as q,b as H,d as K,a2 as W,F as G,af as I,ah as J,B as S}from"./index-
|
|
1
|
+
import{c as _,l as $,j as t,v as B,aK as R,s as O,q as M,D as q,b as H,d as K,a2 as W,F as G,af as I,ah as J,B as S}from"./index-4XFLhK7S.js";import{u as Q,a as V,i as X,p as Y,b as Z,P as ee,f as te}from"./plan-ladder-D4-VvMwX.js";import{a as se}from"./use-decopilot-events-DH5jig6y.js";function le(N){const e=_.c(37),{open:a,onDismiss:n,accentClassName:i,icon:E,title:s,description:P,highlights:D,price:v,action:k,dismissAction:A}=N,T=a===void 0?!0:a,y=i??"text-muted-foreground";let l;e[0]!==n?(l=w=>!w&&n?.(),e[0]=n,e[1]=l):l=e[1];let c;e[2]!==y?(c=$("pointer-events-none",y),e[2]=y,e[3]=c):c=e[3];let h,b;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"absolute inset-x-0 top-0 h-60 opacity-60 dark:opacity-30",style:{background:"radial-gradient(ellipse 70% 100% at 50% 0%, currentColor 0%, transparent 72%)"}}),b=t.jsx("div",{className:"absolute inset-x-8 top-0 h-px bg-gradient-to-r from-transparent via-current to-transparent opacity-80 dark:opacity-60"}),e[4]=h,e[5]=b):(h=e[4],b=e[5]);let o;e[6]!==c?(o=t.jsxs("div",{"aria-hidden":"true",className:c,children:[h,b]}),e[6]=c,e[7]=o):o=e[7];let r;e[8]!==E?(r=t.jsx("div",{className:"mb-7",children:E}),e[8]=E,e[9]=r):r=e[9];let p;e[10]!==s?(p=t.jsx(B,{className:"text-2xl font-semibold leading-tight tracking-tight text-balance",children:s}),e[10]=s,e[11]=p):p=e[11];let d;e[12]!==P?(d=P&&t.jsx(R,{className:"mx-auto max-w-[32ch] text-sm leading-relaxed text-pretty",children:P}),e[12]=P,e[13]=d):d=e[13];let m;e[14]!==p||e[15]!==d?(m=t.jsxs(O,{className:"gap-2",children:[p,d]}),e[14]=p,e[15]=d,e[16]=m):m=e[16];let g;e[17]!==D?(g=D&&t.jsx("div",{className:"mt-6 w-fit",children:D}),e[17]=D,e[18]=g):g=e[18];let u;e[19]!==v?(u=v&&t.jsx("div",{className:"mt-7",children:v}),e[19]=v,e[20]=u):u=e[20];let x;e[21]!==k||e[22]!==A?(x=t.jsxs("div",{className:"mt-8 flex w-full flex-col items-center gap-2",children:[k,A]}),e[21]=k,e[22]=A,e[23]=x):x=e[23];let f;e[24]!==m||e[25]!==g||e[26]!==u||e[27]!==x||e[28]!==r?(f=t.jsxs("div",{className:"flex flex-col items-center px-8 pt-10 pb-8 text-center",children:[r,m,g,u,x]}),e[24]=m,e[25]=g,e[26]=u,e[27]=x,e[28]=r,e[29]=f):f=e[29];let j;e[30]!==f||e[31]!==o?(j=t.jsxs(M,{className:"gap-0 overflow-hidden p-0 sm:max-w-[480px]",onOpenAutoFocus:ae,children:[o,f]}),e[30]=f,e[31]=o,e[32]=j):j=e[32];let C;return e[33]!==T||e[34]!==j||e[35]!==l?(C=t.jsx(q,{open:T,onOpenChange:l,children:j}),e[33]=T,e[34]=j,e[35]=l,e[36]=C):C=e[36],C}function ae(N){return N.preventDefault()}function ne(N,e){if(!N||!e)return null;const a=N.findIndex(i=>i.id===e)+1,n=a>0?N[a]:void 0;return n?{plan:n,index:a}:null}const U={kanban:["settings.paywall.bullets.kanban.1","settings.paywall.bullets.kanban.2","settings.paywall.bullets.kanban.3"],cms:["settings.paywall.bullets.cms.1","settings.paywall.bullets.cms.2","settings.paywall.bullets.cms.3"],monitoring:["settings.paywall.bullets.monitoring.1","settings.paywall.bullets.monitoring.2","settings.paywall.bullets.monitoring.3"]},ie=["settings.paywall.bullets.allowance.1","settings.paywall.bullets.allowance.2","settings.paywall.bullets.allowance.3"];function pe(N){const e=_.c(45),{feature:a,copy:n,onDismiss:i,onSeePlans:E}=N,s=H(),P=K(),{org:D}=W(),{data:v}=Q(),{data:k}=se(),{data:A}=V(),[T]=G();let y,l,c,h,b,o,r,p;if(e[0]!==n||e[1]!==k?.plan.id||e[2]!==a||e[3]!==i||e[4]!==v||e[5]!==A||e[6]!==s){const C=s(`settings.planUsage.feature.${a}`),w=X(k?.plan.id)?null:n?ne(v,k?.plan.id):Y(v,a),z=w?Z(w.index):void 0;l=w?A?.[w.plan.id]:void 0;const L=n?ie:a in U?U[a]:null;y=le,c=i,h=z,b=w?t.jsx(ee,{index:w.index,className:"size-20"}):t.jsx(I,{className:"size-12 text-muted-foreground"}),o=n?.title??(w?s("settings.paywall.upgradeTitle",{plan:w.plan.name,feature:C}):C),r=n?.description??(L?void 0:w?s("settings.paywall.upgradeDescription"):s("settings.paywall.description",{feature:C})),p=L&&t.jsx("ul",{className:"flex flex-col gap-2.5 text-left",children:L.map(F=>t.jsxs("li",{className:"flex items-center gap-3 text-sm",children:[t.jsx(J,{size:16,className:$("shrink-0",z)}),t.jsx("span",{children:s(F)})]},F))}),e[0]=n,e[1]=k?.plan.id,e[2]=a,e[3]=i,e[4]=v,e[5]=A,e[6]=s,e[7]=y,e[8]=l,e[9]=c,e[10]=h,e[11]=b,e[12]=o,e[13]=r,e[14]=p}else y=e[7],l=e[8],c=e[9],h=e[10],b=e[11],o=e[12],r=e[13],p=e[14];let d;e[15]!==T||e[16]!==l||e[17]!==s?(d=l!==void 0?t.jsxs("span",{className:"flex items-baseline justify-center gap-1.5",children:[t.jsx("span",{className:"text-2xl font-semibold tabular-nums tracking-tight",children:te(l,T.language)}),t.jsx("span",{className:"text-sm text-muted-foreground",children:s("settings.plans.perMonth")})]}):void 0,e[15]=T,e[16]=l,e[17]=s,e[18]=d):d=e[18];let m;e[19]!==P||e[20]!==i||e[21]!==E||e[22]!==D.slug?(m=()=>{P({to:"/$org/settings/ai-providers",params:{org:D.slug}}),(E??i)?.()},e[19]=P,e[20]=i,e[21]=E,e[22]=D.slug,e[23]=m):m=e[23];let g;e[24]!==s?(g=s("settings.paywall.seePlans"),e[24]=s,e[25]=g):g=e[25];let u;e[26]!==m||e[27]!==g?(u=t.jsx(S,{size:"lg",className:"w-full",onClick:m,children:g}),e[26]=m,e[27]=g,e[28]=u):u=e[28];let x;e[29]!==s?(x=s("settings.paywall.dismiss"),e[29]=s,e[30]=x):x=e[30];let f;e[31]!==i||e[32]!==x?(f=t.jsx(S,{variant:"ghost",size:"lg",className:"w-full",onClick:i,children:x}),e[31]=i,e[32]=x,e[33]=f):f=e[33];let j;return e[34]!==y||e[35]!==c||e[36]!==u||e[37]!==f||e[38]!==h||e[39]!==b||e[40]!==o||e[41]!==r||e[42]!==p||e[43]!==d?(j=t.jsx(y,{onDismiss:c,accentClassName:h,icon:b,title:o,description:r,highlights:p,price:d,action:u,dismissAction:f}),e[34]=y,e[35]=c,e[36]=u,e[37]=f,e[38]=h,e[39]=b,e[40]=o,e[41]=r,e[42]=p,e[43]=d,e[44]=j):j=e[44],j}export{pe as F};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as Se,b as ve,r as f,j as s,I as Je,h as fe,v as It,aK as Gt,s as Vt,B as Ce,w as Bt,q as qt,D as Ht,l as xe,at as Wt,o as Qt,t as ee,K as Ze}from"./index-D984WV3U.js";import{k as Ut,I as Xt,bE as Yt,bF as Jt}from"./agent-icon-CsQzAnP1.js";import{s as Zt}from"./XClose-BcQlXPoY.js";import{S as _t}from"./scroll-area-B9YHNZjL.js";import{b as _e,T as et,a as tt}from"./tooltip-CfH7_UR9.js";import{a as en}from"./chat-context-y8u3K9Tq.js";import{F as tn}from"./editor-CBqQFFb9.js";import{a as nn}from"./shell-layout-CX2kb4As.js";import{s as je}from"./save-changes-debug-nBi-n9eV.js";import{t as nt,f as rn}from"./sandbox-git-api-C7JbVL7R.js";import{A as sn,a as ln,b as on,c as an,g as cn,d as dn,e as fn,f as un}from"./alert-dialog-D2yDyccd.js";import{a as pn,C as de,g as rt,b as xn,c as mn}from"./context-menu-BD-010iM.js";import{t as hn}from"./ChevronUp-D_qU7VrJ.js";import{b as gn}from"./sandbox-url-D3mC8qhT.js";import{i as bn,E as yn,c as Pe,e as wn,f as jn,h as Nn,j as Dn,t as ne,k as Ne,l as Ke,m as De,g as Me,n as Ae,o as En,s as Cn,v as Sn,p as Oe,q as Ee,r as ze,u as vn,w as Fn,x as kn,y as Tn}from"./utils-DGIwcQET.js";import"./AlertCircle-CgfWDsMW.js";import"./Tool01-BLdqmAM-.js";import"./ArrowUp-C0O7U47F.js";import"./ArrowLeft-BkyozCr0.js";import"./LinkBroken01-CImL6HGl.js";import"./ShoppingBag01-C30WMfg1.js";import"./ZoomOut-C_NtAfgt.js";import"./Building02-C5UvSZSt.js";import"./CheckCircle-B1cLRmIj.js";import"./ChevronSelectorVertical-bEeSv3mr.js";import"./UserSquare-BlSFjBrQ.js";import"./Copy01-CT_cEqll.js";import"./CreditCard01-DFGzM4td.js";import"./DotsVertical-CGu7Zbqo.js";import"./Image01-CyU1b2Nz.js";import"./Globe04-DtoCZsmb.js";import"./SwitchHorizontal01-iT36Ixqz.js";import"./Key01-CV4MPPMx.js";import"./Link01-BL0KHGWk.js";import"./Monitor01-jDiltU3l.js";import"./Sun-D5cuTnns.js";import"./Play-HeD-LWQ6.js";import"./Plus-BzLmRH_e.js";import"./SearchMd-X-m-ot0f.js";import"./Trash01-DkcAHDGj.js";import"./Upload01-CJxfk4_B.js";import"./User01-CuJbE_Yd.js";import"./Users01-CgCEjxiR.js";import"./index-BdQq_4o_.js";import"./index-ChAMt2d-.js";import"./use-panel-navigate-B348HV-V.js";import"./thread-route-Dp3ppEkH.js";import"./use-project-scope-CJSvss5q.js";import"./repository-binding-CrIQbyJh.js";import"./use-mcp-client-D8-rDWEf.js";import"./auth-CsAAW7Ar.js";import"./autosend-8ZqTuUx9.js";import"./thread-intent-BouO_OhM.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-jwr9yBFo.js";import"./task-board-BypYXBtD.js";import"./schema-BMqZTcjW.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-BDPMNEXz.js";import"./use-ai-providers-CeHzBmwD.js";import"./use-chat-navigation-pwxRnoh5.js";import"./location-BjlyegC2.js";import"./use-organization-settings-BEUCQxuY.js";import"./avatar-Da-P84-z.js";import"./use-clock-tick-DcGl_y28.js";import"./command-d2fvY4gQ.js";import"./index-ba_EB2Zw.js";import"./integration-icon-B4EO_1fi.js";import"./project-icon-DeUPWsC_.js";import"./new-project-dialog-CQomS8HX.js";import"./label-BszVxI8j.js";import"./repository-import-picker-n3EYoF9U.js";import"./use-navigate-to-agent-CWPsHr0w.js";import"./repository-picker-CjDs0ici.js";import"./useInfiniteQuery-BgN51nwo.js";import"./infiniteQueryObserver-Bmwf-SCt.js";import"./collection-search-C-3HPALa.js";import"./use-debounced-value-BZK5uiHm.js";import"./required-auth-layout-CTKRCLps.js";import"./use-org-sso-BRZ2xqKg.js";const Rn={"new-file":{titleKey:"sandbox.fileExplorerNameDialog.newFileTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFileDescription",submitKey:"sandbox.fileExplorerNameDialog.newFileSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFilePlaceholder"},"new-folder":{titleKey:"sandbox.fileExplorerNameDialog.newFolderTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFolderDescription",submitKey:"sandbox.fileExplorerNameDialog.newFolderSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFolderPlaceholder"},rename:{titleKey:"sandbox.fileExplorerNameDialog.renameTitle",descriptionKey:"sandbox.fileExplorerNameDialog.renameDescription",submitKey:"sandbox.fileExplorerNameDialog.renameSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.renamePlaceholder"}};function Ln(A){const e=Se.c(71),{open:p,mode:X,initialName:y,parentLabel:N,isPending:L,onSubmit:d,onOpenChange:w}=A,O=y===void 0?"":y,x=L===void 0?!1:L,a=ve(),[o,P]=f.useState(O),[Y,K]=f.useState(p),m=Rn[X];p!==Y&&(K(p),p&&P(O));let c;e[0]!==x||e[1]!==w?(c=U=>{!U&&!x&&w(!1)},e[0]=x,e[1]=w,e[2]=c):c=e[2];const C=c;let z;e[3]!==x||e[4]!==o||e[5]!==d?(z=async U=>{U.preventDefault();const te=o.trim();!te||x||await d(te)},e[3]=x,e[4]=o,e[5]=d,e[6]=z):z=e[6];const R=z;let S;e[7]!==m.titleKey||e[8]!==a?(S=a(m.titleKey),e[7]=m.titleKey,e[8]=a,e[9]=S):S=e[9];let v;e[10]!==S?(v=s.jsx(It,{children:S}),e[10]=S,e[11]=v):v=e[11];let D;e[12]!==m.descriptionKey||e[13]!==a?(D=a(m.descriptionKey),e[12]=m.descriptionKey,e[13]=a,e[14]=D):D=e[14];let j;e[15]!==D?(j=s.jsx(Gt,{children:D}),e[15]=D,e[16]=j):j=e[16];let g;e[17]!==v||e[18]!==j?(g=s.jsxs(Vt,{children:[v,j]}),e[17]=v,e[18]=j,e[19]=g):g=e[19];let E;e[20]!==N||e[21]!==a?(E=N&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:a("sandbox.fileExplorerNameDialog.location")}),s.jsx(Je,{value:N,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[20]=N,e[21]=a,e[22]=E):E=e[22];let b;e[23]!==a?(b=a("sandbox.fileExplorerNameDialog.name"),e[23]=a,e[24]=b):b=e[24];let k;e[25]!==b?(k=s.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:b}),e[25]=b,e[26]=k):k=e[26];let H;e[27]===Symbol.for("react.memo_cache_sentinel")?(H=U=>P(U.target.value),e[27]=H):H=e[27];let $;e[28]!==m.placeholderKey||e[29]!==a?($=a(m.placeholderKey),e[28]=m.placeholderKey,e[29]=a,e[30]=$):$=e[30];let J;e[31]!==x||e[32]!==o||e[33]!==$?(J=s.jsx(Je,{id:"file-explorer-name",value:o,onChange:H,placeholder:$,autoFocus:!0,disabled:x}),e[31]=x,e[32]=o,e[33]=$,e[34]=J):J=e[34];let Z;e[35]!==k||e[36]!==J?(Z=s.jsxs("div",{className:"space-y-1.5",children:[k,J]}),e[35]=k,e[36]=J,e[37]=Z):Z=e[37];let _;e[38]!==E||e[39]!==Z?(_=s.jsxs("div",{className:"space-y-4 py-4",children:[E,Z]}),e[38]=E,e[39]=Z,e[40]=_):_=e[40];let I;e[41]!==w?(I=()=>w(!1),e[41]=w,e[42]=I):I=e[42];let T;e[43]!==a?(T=a("sandbox.fileExplorerNameDialog.cancel"),e[43]=a,e[44]=T):T=e[44];let W;e[45]!==x||e[46]!==I||e[47]!==T?(W=s.jsx(Ce,{type:"button",variant:"outline",onClick:I,disabled:x,children:T}),e[45]=x,e[46]=I,e[47]=T,e[48]=W):W=e[48];let M;e[49]!==x||e[50]!==o?(M=!o.trim()||x,e[49]=x,e[50]=o,e[51]=M):M=e[51];let Q;e[52]!==m.submitKey||e[53]!==x||e[54]!==a?(Q=x?s.jsxs(s.Fragment,{children:[s.jsx(fe,{className:"size-3.5"}),a("sandbox.fileExplorerNameDialog.saving")]}):a(m.submitKey),e[52]=m.submitKey,e[53]=x,e[54]=a,e[55]=Q):Q=e[55];let G;e[56]!==M||e[57]!==Q?(G=s.jsx(Ce,{type:"submit",disabled:M,children:Q}),e[56]=M,e[57]=Q,e[58]=G):G=e[58];let F;e[59]!==W||e[60]!==G?(F=s.jsxs(Bt,{children:[W,G]}),e[59]=W,e[60]=G,e[61]=F):F=e[61];let V;e[62]!==R||e[63]!==_||e[64]!==F||e[65]!==g?(V=s.jsx(qt,{className:"sm:max-w-md",children:s.jsxs("form",{onSubmit:R,children:[g,_,F]})}),e[62]=R,e[63]=_,e[64]=F,e[65]=g,e[66]=V):V=e[66];let B;return e[67]!==C||e[68]!==p||e[69]!==V?(B=s.jsx(Ht,{open:p,onOpenChange:C,children:V}),e[67]=C,e[68]=p,e[69]=V,e[70]=B):B=e[70],B}function Pn(A){const e=Se.c(47),{deleteTarget:p,deleteDirtyPaths:X,fsActionPending:y,onOpenChange:N,onConfirm:L}=A,d=ve(),w=p?.kind==="directory",O=p!==null,x=w?"sandbox.fileExplorerDeleteDialog.titleFolder":"sandbox.fileExplorerDeleteDialog.titleFile";let a;e[0]!==d||e[1]!==x?(a=d(x),e[0]=d,e[1]=x,e[2]=a):a=e[2];let o;e[3]!==a?(o=s.jsx(sn,{children:a}),e[3]=a,e[4]=o):o=e[4];let P;e[5]!==d?(P=d("sandbox.fileExplorerDeleteDialog.description"),e[5]=d,e[6]=P):P=e[6];const Y=p?.name;let K;e[7]!==Y?(K=s.jsx("span",{className:"font-mono",children:Y}),e[7]=Y,e[8]=K):K=e[8];let m;e[9]!==w||e[10]!==d?(m=w?d("sandbox.fileExplorerDeleteDialog.folderSuffix"):".",e[9]=w,e[10]=d,e[11]=m):m=e[11];let c;e[12]!==X.length||e[13]!==d?(c=X.length>0&&s.jsxs(s.Fragment,{children:[" ",X.length===1?d("sandbox.fileExplorerDeleteDialog.unsavedChangesOne"):d("sandbox.fileExplorerDeleteDialog.unsavedChangesMany",{count:X.length})]}),e[12]=X.length,e[13]=d,e[14]=c):c=e[14];let C;e[15]!==P||e[16]!==K||e[17]!==m||e[18]!==c?(C=s.jsxs(ln,{children:[P," ",K,m,c]}),e[15]=P,e[16]=K,e[17]=m,e[18]=c,e[19]=C):C=e[19];let z;e[20]!==C||e[21]!==o?(z=s.jsxs(on,{children:[o,C]}),e[20]=C,e[21]=o,e[22]=z):z=e[22];let R;e[23]!==d?(R=d("sandbox.fileExplorerDeleteDialog.cancel"),e[23]=d,e[24]=R):R=e[24];let S;e[25]!==y||e[26]!==R?(S=s.jsx(an,{disabled:y,children:R}),e[25]=y,e[26]=R,e[27]=S):S=e[27];const v=y||!p;let D;e[28]!==p||e[29]!==L?(D=H=>{H.preventDefault(),p&&L(p)},e[28]=p,e[29]=L,e[30]=D):D=e[30];let j;e[31]!==d?(j=d("sandbox.fileExplorerDeleteDialog.delete"),e[31]=d,e[32]=j):j=e[32];let g;e[33]!==v||e[34]!==D||e[35]!==j?(g=s.jsx(cn,{disabled:v,onClick:D,children:j}),e[33]=v,e[34]=D,e[35]=j,e[36]=g):g=e[36];let E;e[37]!==S||e[38]!==g?(E=s.jsxs(dn,{children:[S,g]}),e[37]=S,e[38]=g,e[39]=E):E=e[39];let b;e[40]!==z||e[41]!==E?(b=s.jsxs(fn,{children:[z,E]}),e[40]=z,e[41]=E,e[42]=b):b=e[42];let k;return e[43]!==N||e[44]!==O||e[45]!==b?(k=s.jsx(un,{open:O,onOpenChange:N,children:b}),e[43]=N,e[44]=O,e[45]=b,e[46]=k):k=e[46],k}const Kn="#d9a441";function Mn(A){const e=Se.c(63),{node:p,depth:X,isExpanded:y,isSelected:N,isLoading:L,fileVisual:d,onOpen:w,onSelect:O,onNewFile:x,onNewFolder:a,onCopyPath:o,onCopyRelativePath:P,onRename:Y,onDelete:K}=A,m=L===void 0?!1:L,c=ve(),C=p.kind==="directory",{Icon:z,color:R}=d,S=N&&"bg-accent";let v;e[0]!==S?(v=xe("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",S),e[0]=S,e[1]=v):v=e[1];const D=`${X*14+8}px`;let j;e[2]!==D?(j={paddingLeft:D},e[2]=D,e[3]=j):j=e[3];let g;e[4]!==w||e[5]!==O?(g=()=>{O(),w()},e[4]=w,e[5]=O,e[6]=g):g=e[6];let E;e[7]!==z||e[8]!==R||e[9]!==C||e[10]!==y||e[11]!==m?(E=C?s.jsxs(s.Fragment,{children:[m?s.jsx(fe,{className:"size-3.5 shrink-0 text-muted-foreground"}):y?s.jsx(hn,{size:14,className:"shrink-0 text-muted-foreground"}):s.jsx(Wt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx(Ut,{size:16,className:"shrink-0",style:{color:Kn}})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-3.5 shrink-0"}),s.jsx(z,{size:16,className:"shrink-0",style:{color:R}})]}),e[7]=z,e[8]=R,e[9]=C,e[10]=y,e[11]=m,e[12]=E):E=e[12];let b;e[13]!==p.name?(b=s.jsx("span",{className:"truncate",children:p.name}),e[13]=p.name,e[14]=b):b=e[14];let k;e[15]!==v||e[16]!==j||e[17]!==g||e[18]!==E||e[19]!==b?(k=s.jsx(pn,{asChild:!0,children:s.jsxs("button",{type:"button",className:v,style:j,onClick:g,children:[E,b]})}),e[15]=v,e[16]=j,e[17]=g,e[18]=E,e[19]=b,e[20]=k):k=e[20];let H;e[21]!==c?(H=c("sandbox.fileTreeRow.newFile"),e[21]=c,e[22]=H):H=e[22];let $;e[23]!==x||e[24]!==H?($=s.jsx(de,{onSelect:x,children:H}),e[23]=x,e[24]=H,e[25]=$):$=e[25];let J;e[26]!==c?(J=c("sandbox.fileTreeRow.newFolder"),e[26]=c,e[27]=J):J=e[27];let Z;e[28]!==a||e[29]!==J?(Z=s.jsx(de,{onSelect:a,children:J}),e[28]=a,e[29]=J,e[30]=Z):Z=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(rt,{}),e[31]=_):_=e[31];let I;e[32]!==c?(I=c("sandbox.fileTreeRow.copyPath"),e[32]=c,e[33]=I):I=e[33];let T;e[34]!==o||e[35]!==I?(T=s.jsx(de,{onSelect:o,children:I}),e[34]=o,e[35]=I,e[36]=T):T=e[36];let W;e[37]!==c?(W=c("sandbox.fileTreeRow.copyRelativePath"),e[37]=c,e[38]=W):W=e[38];let M;e[39]!==P||e[40]!==W?(M=s.jsx(de,{onSelect:P,children:W}),e[39]=P,e[40]=W,e[41]=M):M=e[41];let Q;e[42]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(rt,{}),e[42]=Q):Q=e[42];let G;e[43]!==c?(G=c("sandbox.fileTreeRow.rename"),e[43]=c,e[44]=G):G=e[44];let F;e[45]!==Y||e[46]!==G?(F=s.jsx(de,{onSelect:Y,children:G}),e[45]=Y,e[46]=G,e[47]=F):F=e[47];let V;e[48]!==c?(V=c("sandbox.fileTreeRow.delete"),e[48]=c,e[49]=V):V=e[49];let B;e[50]!==K||e[51]!==V?(B=s.jsx(de,{variant:"destructive",onSelect:K,children:V}),e[50]=K,e[51]=V,e[52]=B):B=e[52];let U;e[53]!==$||e[54]!==Z||e[55]!==T||e[56]!==M||e[57]!==F||e[58]!==B?(U=s.jsxs(xn,{className:"w-52",children:[$,Z,_,T,M,Q,F,B]}),e[53]=$,e[54]=Z,e[55]=T,e[56]=M,e[57]=F,e[58]=B,e[59]=U):U=e[59];let te;return e[60]!==U||e[61]!==k?(te=s.jsxs(mn,{children:[k,U]}),e[60]=U,e[61]=k,e[62]=te):te=e[62],te}const st=200,An=2,On=250,it=200;function zn(A,e){return gn(A,e)}function $n(A){const e=Se.c(9),{text:p,query:X}=A;let y,N,L;if(e[0]!==X||e[1]!==p){const{leadingEllipsis:w,segments:O}=En(p,X);y="truncate font-mono text-muted-foreground",N=w&&s.jsx("span",{className:"text-muted-foreground/50",children:"…"}),L=O.map(In),e[0]=X,e[1]=p,e[2]=y,e[3]=N,e[4]=L}else y=e[2],N=e[3],L=e[4];let d;return e[5]!==y||e[6]!==N||e[7]!==L?(d=s.jsxs("span",{className:y,children:[N,L]}),e[5]=y,e[6]=N,e[7]=L,e[8]=d):d=e[8],d}function In(A,e){return A.match?s.jsx("span",{className:"rounded-[2px] bg-primary/20 text-foreground",children:A.text},e):s.jsx("span",{children:A.text},e)}function xs({orgSlug:A,virtualMcpId:e,branch:p,threadId:X,openPath:y}){const N={orgSlug:A,virtualMcpId:e,branch:p,threadId:X},[L,d]=f.useState({files:[],directories:[],truncated:!1}),{files:w,directories:O}=L,[x,a]=f.useState(new Set),[o,P]=f.useState(null),[Y,K]=f.useState(null),[m,c]=f.useState([]),[C,z]=f.useState(""),[R,S]=f.useState(null),[v,D]=f.useState(null),[j,g]=f.useState(!1),[E,b]=f.useState(!1),[k,H]=f.useState(!1),[$,J]=f.useState(!1),[,Z]=f.useState(new Set),[_,I]=f.useState(new Set),T=f.useRef(0),W=f.useRef(null),M=f.useRef(new Set),Q=f.useRef(new Map),G=f.useRef(null),F=f.useRef(0),V=f.useRef(null),B=f.useRef(null),U=f.useRef(null);function te(t){Z(n=>{const r=typeof t=="function"?t(n):t;return M.current=r,r})}const[oe,ae]=f.useState(new Map),Fe=f.useRef(null),[se,me]=f.useState(null),{sendMessage:lt}=en(),{openSidePanel:ot}=nn(),he=Qt(),[q,re]=f.useState(null),[ke,Te]=f.useState(null),[ge,be]=f.useState(!1);async function ie(t,n){const r=await fetch(zn(N,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`Request failed (${r.status})`)}return r.json()}async function ye(){he.invalidateQueries({queryKey:nt(N)})}function $e(t,n,r){navigator.clipboard.writeText(r).then(()=>ee.success(t("sandbox.fileExplorer.textCopied",{label:n})),()=>ee.error(t("sandbox.fileExplorer.failedToCopyText",{label:n.toLowerCase()})))}function at(t){const n=kn(t);if(!n)return;const r=`${A}/${e}/${p}`;he.setQueryData(Ze.decofile(r),i=>{if(!i)return i;const{[n]:l,...u}=i;return u}),he.invalidateQueries({queryKey:Ze.liveMeta(A,e,p)})}function ct(t){const n=t.kind==="file"?[t.path]:w.filter(r=>r.startsWith(".deco/blocks/")).map(r=>Ne(r)).filter(r=>r===t.path||r.startsWith(`${t.path}/`));for(const r of n)at(r)}function dt(t){const n=Ne(t);return m.filter(r=>{if(r!==n&&!r.startsWith(`${n}/`))return!1;const i=oe.get(r);return!!(i?.loaded&&i.editorValue!==i.savedContent)})}function Ie(t){c(n=>n.map(r=>t(r)).filter(r=>r!==null)),P(n=>n&&t(n)),ae(n=>{const r=new Map;for(const[i,l]of n){const u=t(i);u&&r.set(u,l)}return r}),K(n=>{if(!n)return n;const r=t(n.path);return r?r===n.path?n:{...n,path:r,name:r.split("/").pop()??r}:null})}function ft(t){const n=Ne(t);K(r=>r&&(r.path===n||r.path.startsWith(`${n}/`)?null:r)),Ie(r=>r===n||r.startsWith(`${n}/`)?null:r)}async function ut(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("write",{path:ne(r),content:""}),await ue(),await ye(),re(null),pe(r)}async function pt(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));const i=ne(r);await ie("mkdir",{path:i}),d(l=>({...l,directories:l.directories.includes(i)?l.directories:[...l.directories,i]})),await ue(),await ye(),re(null),a(l=>{const u=new Set(l);for(const le of Ae(r))u.add(le);return u.add(r),u}),K({name:n,path:r,kind:"directory",children:[]})}async function xt(t,n){if(!q)return;const r=q.node.path,i=De(r),l=Ee(i,n);if(l===r){re(null);return}if(ze(l,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("rename",{from:ne(r),to:ne(l)}),Ie(u=>u===r?l:u.startsWith(`${r}/`)?Ee(l,u.slice(r.length+1)):u),await ue(),await ye(),re(null)}async function mt(t,n){be(!0);try{await ie("unlink",{path:ne(n.path),recursive:n.kind==="directory"}),ct(n),ft(n.path),await ue(),await ye(),Te(null),ee.success(t("sandbox.fileExplorer.fileDeleted",{name:n.name}))}catch(r){ee.error(r instanceof Error?r.message:t("sandbox.fileExplorer.deleteFailed"))}finally{be(!1)}}async function ht(t,n){const r=Sn(n);if(r){ee.error(r);return}be(!0);try{q?.mode==="new-file"?(await ut(t,n),ee.success(t("sandbox.fileExplorer.fileCreated",{name:n}))):q?.mode==="new-folder"?(await pt(t,n),ee.success(t("sandbox.fileExplorer.folderCreated",{name:n}))):q?.mode==="rename"&&(await xt(t,n),ee.success(t("sandbox.fileExplorer.renamedTo",{name:n})))}catch(i){ee.error(i instanceof Error?i.message:t("sandbox.fileExplorer.operationFailed"))}finally{be(!1)}}const Ge=f.useRef(!1);Ge.current||(Ge.current=!0,W.current=ue());const[gt,bt]=f.useState(null),h=ve();if(y&&y!==gt){bt(y);const t=y;queueMicrotask(()=>{bn(t)&&pe(t)})}async function Re(t){const n=await ie("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Ve(t,n,r){if(r!==T.current)return!1;let i=!1;return d(l=>{const u=n?Tn(l.files,l.directories,t,l.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return i=!!u.truncated,{files:u.files,directories:u.directories,truncated:i}}),i&&ee.warning(h("sandbox.fileExplorer.fileListTruncated")),i}async function yt(t){const n=Q.current.get(t);if(n)return n;const r=T.current,i=(async()=>{const l=await Re({pattern:"**/*",path:ne(t),limit:Pe}),u=Ve(l,!0,r);return!u&&r===T.current&&te(le=>{const we=new Set(le);return we.add(t),we}),u})();Q.current.set(t,i);try{return await i}finally{Q.current.delete(t)}}async function Be(t){if(!Oe(t,M.current))return!1;I(n=>new Set(n).add(t));try{return await yt(t)}finally{I(n=>{const r=new Set(n);return r.delete(t),r})}}async function wt(t,n){const r=new Set(M.current);for(const i of Ae(n)){if(!Oe(i,r))continue;if(await Be(i))throw new Error(t("sandbox.fileExplorer.folderListingTruncated"));r.add(i)}}async function ue(){const t=++T.current;V.current=null,B.current=null,Q.current.clear(),H(!0),te(new Set),a(new Set),I(new Set);try{const n=await Re({pattern:"**/*",limit:Pe,maxDepth:yn});Ve(n,!1,t),J(!0)}catch{$&&ee.error(h("sandbox.fileExplorer.failedToRefreshFileTree"))}finally{H(!1)}}async function qe(t){if(!oe.get(t)?.loaded){ae(r=>{const i=new Map(r);return i.set(t,{savedContent:"",editorValue:"",loaded:!1}),i});try{const r=await ie("read",{path:ne(t),full:!0}),i=Cn(r.content??"");ae(l=>{const u=new Map(l);return u.set(t,{savedContent:i,editorValue:i,loaded:!0}),u})}catch{}}}function jt(){F.current++,S(null),D(null),g(!1),b(!1)}async function Nt(){const t=T.current,n=V.current;if(n&&n.generation===t)return n.files;const r=B.current;if(r&&r.generation===t)return r.promise;const i=(async()=>{const l=await Re({pattern:"**/*",limit:Pe});return T.current===t&&(V.current={generation:t,files:l.files}),l.files})();B.current={generation:t,promise:i};try{return await i}finally{B.current?.generation===t&&(B.current=null)}}async function Dt(t,n){try{const r=await Nt();if(n!==F.current)return;S(vn(r,t,it))}catch{if(n!==F.current)return;S([])}}async function Et(t,n){g(!0);try{const r=await ie("grep",{pattern:t,output_mode:"content",ignore_case:!0,fixed_strings:!0,limit:st});if(n!==F.current)return;D(Fn(r.results??"")),b((r.matchCount??0)>=st)}catch{if(n!==F.current)return;D([]),b(!1)}finally{n===F.current&&g(!1)}}function Ct(t){const n=t.trim(),r=++F.current;Dt(n,r),n.length<An?(D(null),g(!1),b(!1)):Et(n,r)}function St(t){if(z(t),G.current&&clearTimeout(G.current),!t.trim()){jt();return}G.current=setTimeout(()=>{Ct(t)},On)}function He(t){const n=U.current;if(!n||n.path!==o)return;U.current=null;const r=Math.max(1,n.line);t.revealLineInCenter(r),t.setPosition({lineNumber:r,column:1}),t.focus()}function vt(t){U.current={path:t.path,line:t.line};const n=o===t.path&&oe.get(t.path)?.loaded;pe(t.path),n&&Fe.current&&He(Fe.current)}async function Ft(t,n){try{await ie("write",{path:ne(t),content:n}),je("file saved via sandbox /write",{path:t}),he.invalidateQueries({queryKey:nt(N)});try{const r=await rn(N);je("git status after save",r)}catch(r){je("git status after save failed",{path:t,error:r instanceof Error?r.message:String(r)})}ae(r=>{const i=new Map(r),l=i.get(t);return l&&i.set(t,{...l,savedContent:n}),i})}catch(r){je("file save failed",{path:t,error:r instanceof Error?r.message:String(r)})}}function kt(t){P(t),K({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),me(null),m.includes(t)||c(n=>[...n,t]),qe(t)}function Tt(t){const n=oe.get(t);n?.loaded&&n.editorValue!==n.savedContent&&!window.confirm(h("sandbox.fileExplorer.discardUnsavedChangesConfirm"))||(c(i=>{const l=i.filter(u=>u!==t);return o===t&&P(l[l.length-1]??null),l}),ae(i=>{const l=new Map(i);return l.delete(t),l}))}function We(t){a(n=>{const r=new Set(n);return r.has(t)?r.delete(t):r.add(t),r})}async function Rt(t){if(Oe(t,M.current))try{if(await Be(t))return}catch(n){ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToLoadFolder"));return}We(t)}async function Lt(t,n){if(n){We(t);return}await Rt(t)}async function Pt(t){await W.current,await wt(h,t);const n=Ae(t);a(r=>{const i=new Set(r);for(const l of n)i.add(l);return i}),kt(t)}function pe(t){Pt(t).catch(n=>{ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToOpenFile"))})}function Kt(){return Y?.kind==="directory"?Y.path:Y?.kind==="file"?De(Y.path):o?De(o):"/"}function Qe(t){const n=Kt();re({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const Mt=wn(w,O),Ue=jn(Mt,x),Le=R?.length??0,Xe=Nn(v??[]),Ye=v?.length??0,ce=o?oe.get(o):null,At=ce?.loaded&&ce.editorValue!==ce.savedContent,Ot=ke?dt(ke.path):[],zt=(t,n)=>{Fe.current=t,He(t),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!o)return;const r=t.getValue();await Ft(o,r)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const r=t.getSelection(),i=t.getModel();if(!r||!i||!o)return;const l=i.getValueInRange(r);me({filePath:o,lineStart:r.startLineNumber,lineEnd:r.endLineNumber,selectedCode:l})})};function $t(t){if(!se)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${se.filePath}\``,`**Lines:** ${se.lineStart}–${se.lineEnd}`];if(se.selectedCode){const r=Me(se.filePath),i=se.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+r,i,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),ot(),lt({parts:[{type:"text",text:n.join(`
|
|
1
|
+
import{c as Se,b as ve,r as f,j as s,I as Je,h as fe,v as It,aK as Gt,s as Vt,B as Ce,w as Bt,q as qt,D as Ht,l as xe,at as Wt,o as Qt,t as ee,K as Ze}from"./index-4XFLhK7S.js";import{k as Ut,I as Xt,bE as Yt,bF as Jt}from"./agent-icon-DDBSTxwl.js";import{s as Zt}from"./XClose-DO008B8R.js";import{S as _t}from"./scroll-area-DYybJ63r.js";import{b as _e,T as et,a as tt}from"./tooltip-CUk78XFR.js";import{a as en}from"./chat-context-BR-PmAJg.js";import{F as tn}from"./editor-CklcmkgZ.js";import{a as nn}from"./shell-layout-DZBrJWAA.js";import{s as je}from"./save-changes-debug-nBi-n9eV.js";import{t as nt,f as rn}from"./sandbox-git-api-C7JbVL7R.js";import{A as sn,a as ln,b as on,c as an,g as cn,d as dn,e as fn,f as un}from"./alert-dialog-DpmCpPBI.js";import{a as pn,C as de,g as rt,b as xn,c as mn}from"./context-menu-DPNtSYt0.js";import{t as hn}from"./ChevronUp-BSm7AtSf.js";import{b as gn}from"./sandbox-url-D3mC8qhT.js";import{i as bn,E as yn,c as Pe,e as wn,f as jn,h as Nn,j as Dn,t as ne,k as Ne,l as Ke,m as De,g as Me,n as Ae,o as En,s as Cn,v as Sn,p as Oe,q as Ee,r as ze,u as vn,w as Fn,x as kn,y as Tn}from"./utils-qUv9_Hyk.js";import"./AlertCircle-D4iOZ3Bs.js";import"./Tool01-o_nJ7Y1x.js";import"./ArrowUp-KCSPs-fi.js";import"./ArrowLeft-iygYSRbQ.js";import"./LinkBroken01-Cjxu7rCw.js";import"./ShoppingBag01-CWlRU3Ye.js";import"./ZoomOut-DA1sRe95.js";import"./Building02-EbX1A23K.js";import"./CheckCircle-CoJfU94i.js";import"./ChevronSelectorVertical-DqpRXMOM.js";import"./UserSquare-BFlEW2x5.js";import"./Copy01-DlA26aBh.js";import"./CreditCard01-CXGPcE51.js";import"./DotsVertical-CTugBooH.js";import"./Image01-BjUHwjIr.js";import"./Globe04-DDiW2Onm.js";import"./SwitchHorizontal01-DZEm8csq.js";import"./Key01-DMnhMxC3.js";import"./Link01-DKypA3Uf.js";import"./Monitor01-CTL-UG2p.js";import"./Sun-DhZMu2lN.js";import"./Play-NZWCLDah.js";import"./Plus-DLTeBarI.js";import"./SearchMd-BsNWsFDv.js";import"./Trash01-JZaZB0vu.js";import"./Upload01-CpEePL13.js";import"./User01-BGOQS9vx.js";import"./Users01-C9dOtgmV.js";import"./index-BdQq_4o_.js";import"./index-DujNp8wX.js";import"./use-panel-navigate-DOyxnt44.js";import"./thread-route-B-yx1tFW.js";import"./use-project-scope-DJTJDi3A.js";import"./repository-binding-C_InVumU.js";import"./use-mcp-client-C5uLw7Lc.js";import"./auth-D1PkW9Uj.js";import"./autosend-D3KZZhDs.js";import"./thread-intent-DqexYQAC.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BjTl5yOD.js";import"./task-board-DcolQ15W.js";import"./schema-DyLXU88M.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-DH5jig6y.js";import"./use-ai-providers-CAEoYJwC.js";import"./use-chat-navigation-CKcbdotk.js";import"./location-BjlyegC2.js";import"./use-organization-settings-B0rQmLIX.js";import"./avatar-Brh_8d7a.js";import"./use-clock-tick-CwQv-OCe.js";import"./command-BfXTTBD9.js";import"./index-DVVx4F0i.js";import"./integration-icon-BqsHjS-b.js";import"./project-icon-CMe6LZd9.js";import"./new-project-dialog-DdG-RgMO.js";import"./label-ByKoWpTn.js";import"./repository-import-picker-Bixi7zBc.js";import"./use-navigate-to-agent-C41zpB_Z.js";import"./repository-picker-BHgNNGrn.js";import"./useInfiniteQuery-B3MUNCKJ.js";import"./infiniteQueryObserver-DLzEnjM8.js";import"./collection-search-Cp82h57b.js";import"./use-debounced-value-CNkuXNOW.js";import"./required-auth-layout-CxaLcttO.js";import"./use-org-sso-DVCQNBfN.js";const Rn={"new-file":{titleKey:"sandbox.fileExplorerNameDialog.newFileTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFileDescription",submitKey:"sandbox.fileExplorerNameDialog.newFileSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFilePlaceholder"},"new-folder":{titleKey:"sandbox.fileExplorerNameDialog.newFolderTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFolderDescription",submitKey:"sandbox.fileExplorerNameDialog.newFolderSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFolderPlaceholder"},rename:{titleKey:"sandbox.fileExplorerNameDialog.renameTitle",descriptionKey:"sandbox.fileExplorerNameDialog.renameDescription",submitKey:"sandbox.fileExplorerNameDialog.renameSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.renamePlaceholder"}};function Ln(A){const e=Se.c(71),{open:p,mode:X,initialName:y,parentLabel:N,isPending:L,onSubmit:d,onOpenChange:w}=A,O=y===void 0?"":y,x=L===void 0?!1:L,a=ve(),[o,P]=f.useState(O),[Y,K]=f.useState(p),m=Rn[X];p!==Y&&(K(p),p&&P(O));let c;e[0]!==x||e[1]!==w?(c=U=>{!U&&!x&&w(!1)},e[0]=x,e[1]=w,e[2]=c):c=e[2];const C=c;let z;e[3]!==x||e[4]!==o||e[5]!==d?(z=async U=>{U.preventDefault();const te=o.trim();!te||x||await d(te)},e[3]=x,e[4]=o,e[5]=d,e[6]=z):z=e[6];const R=z;let S;e[7]!==m.titleKey||e[8]!==a?(S=a(m.titleKey),e[7]=m.titleKey,e[8]=a,e[9]=S):S=e[9];let v;e[10]!==S?(v=s.jsx(It,{children:S}),e[10]=S,e[11]=v):v=e[11];let D;e[12]!==m.descriptionKey||e[13]!==a?(D=a(m.descriptionKey),e[12]=m.descriptionKey,e[13]=a,e[14]=D):D=e[14];let j;e[15]!==D?(j=s.jsx(Gt,{children:D}),e[15]=D,e[16]=j):j=e[16];let g;e[17]!==v||e[18]!==j?(g=s.jsxs(Vt,{children:[v,j]}),e[17]=v,e[18]=j,e[19]=g):g=e[19];let E;e[20]!==N||e[21]!==a?(E=N&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:a("sandbox.fileExplorerNameDialog.location")}),s.jsx(Je,{value:N,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[20]=N,e[21]=a,e[22]=E):E=e[22];let b;e[23]!==a?(b=a("sandbox.fileExplorerNameDialog.name"),e[23]=a,e[24]=b):b=e[24];let k;e[25]!==b?(k=s.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:b}),e[25]=b,e[26]=k):k=e[26];let H;e[27]===Symbol.for("react.memo_cache_sentinel")?(H=U=>P(U.target.value),e[27]=H):H=e[27];let $;e[28]!==m.placeholderKey||e[29]!==a?($=a(m.placeholderKey),e[28]=m.placeholderKey,e[29]=a,e[30]=$):$=e[30];let J;e[31]!==x||e[32]!==o||e[33]!==$?(J=s.jsx(Je,{id:"file-explorer-name",value:o,onChange:H,placeholder:$,autoFocus:!0,disabled:x}),e[31]=x,e[32]=o,e[33]=$,e[34]=J):J=e[34];let Z;e[35]!==k||e[36]!==J?(Z=s.jsxs("div",{className:"space-y-1.5",children:[k,J]}),e[35]=k,e[36]=J,e[37]=Z):Z=e[37];let _;e[38]!==E||e[39]!==Z?(_=s.jsxs("div",{className:"space-y-4 py-4",children:[E,Z]}),e[38]=E,e[39]=Z,e[40]=_):_=e[40];let I;e[41]!==w?(I=()=>w(!1),e[41]=w,e[42]=I):I=e[42];let T;e[43]!==a?(T=a("sandbox.fileExplorerNameDialog.cancel"),e[43]=a,e[44]=T):T=e[44];let W;e[45]!==x||e[46]!==I||e[47]!==T?(W=s.jsx(Ce,{type:"button",variant:"outline",onClick:I,disabled:x,children:T}),e[45]=x,e[46]=I,e[47]=T,e[48]=W):W=e[48];let M;e[49]!==x||e[50]!==o?(M=!o.trim()||x,e[49]=x,e[50]=o,e[51]=M):M=e[51];let Q;e[52]!==m.submitKey||e[53]!==x||e[54]!==a?(Q=x?s.jsxs(s.Fragment,{children:[s.jsx(fe,{className:"size-3.5"}),a("sandbox.fileExplorerNameDialog.saving")]}):a(m.submitKey),e[52]=m.submitKey,e[53]=x,e[54]=a,e[55]=Q):Q=e[55];let G;e[56]!==M||e[57]!==Q?(G=s.jsx(Ce,{type:"submit",disabled:M,children:Q}),e[56]=M,e[57]=Q,e[58]=G):G=e[58];let F;e[59]!==W||e[60]!==G?(F=s.jsxs(Bt,{children:[W,G]}),e[59]=W,e[60]=G,e[61]=F):F=e[61];let V;e[62]!==R||e[63]!==_||e[64]!==F||e[65]!==g?(V=s.jsx(qt,{className:"sm:max-w-md",children:s.jsxs("form",{onSubmit:R,children:[g,_,F]})}),e[62]=R,e[63]=_,e[64]=F,e[65]=g,e[66]=V):V=e[66];let B;return e[67]!==C||e[68]!==p||e[69]!==V?(B=s.jsx(Ht,{open:p,onOpenChange:C,children:V}),e[67]=C,e[68]=p,e[69]=V,e[70]=B):B=e[70],B}function Pn(A){const e=Se.c(47),{deleteTarget:p,deleteDirtyPaths:X,fsActionPending:y,onOpenChange:N,onConfirm:L}=A,d=ve(),w=p?.kind==="directory",O=p!==null,x=w?"sandbox.fileExplorerDeleteDialog.titleFolder":"sandbox.fileExplorerDeleteDialog.titleFile";let a;e[0]!==d||e[1]!==x?(a=d(x),e[0]=d,e[1]=x,e[2]=a):a=e[2];let o;e[3]!==a?(o=s.jsx(sn,{children:a}),e[3]=a,e[4]=o):o=e[4];let P;e[5]!==d?(P=d("sandbox.fileExplorerDeleteDialog.description"),e[5]=d,e[6]=P):P=e[6];const Y=p?.name;let K;e[7]!==Y?(K=s.jsx("span",{className:"font-mono",children:Y}),e[7]=Y,e[8]=K):K=e[8];let m;e[9]!==w||e[10]!==d?(m=w?d("sandbox.fileExplorerDeleteDialog.folderSuffix"):".",e[9]=w,e[10]=d,e[11]=m):m=e[11];let c;e[12]!==X.length||e[13]!==d?(c=X.length>0&&s.jsxs(s.Fragment,{children:[" ",X.length===1?d("sandbox.fileExplorerDeleteDialog.unsavedChangesOne"):d("sandbox.fileExplorerDeleteDialog.unsavedChangesMany",{count:X.length})]}),e[12]=X.length,e[13]=d,e[14]=c):c=e[14];let C;e[15]!==P||e[16]!==K||e[17]!==m||e[18]!==c?(C=s.jsxs(ln,{children:[P," ",K,m,c]}),e[15]=P,e[16]=K,e[17]=m,e[18]=c,e[19]=C):C=e[19];let z;e[20]!==C||e[21]!==o?(z=s.jsxs(on,{children:[o,C]}),e[20]=C,e[21]=o,e[22]=z):z=e[22];let R;e[23]!==d?(R=d("sandbox.fileExplorerDeleteDialog.cancel"),e[23]=d,e[24]=R):R=e[24];let S;e[25]!==y||e[26]!==R?(S=s.jsx(an,{disabled:y,children:R}),e[25]=y,e[26]=R,e[27]=S):S=e[27];const v=y||!p;let D;e[28]!==p||e[29]!==L?(D=H=>{H.preventDefault(),p&&L(p)},e[28]=p,e[29]=L,e[30]=D):D=e[30];let j;e[31]!==d?(j=d("sandbox.fileExplorerDeleteDialog.delete"),e[31]=d,e[32]=j):j=e[32];let g;e[33]!==v||e[34]!==D||e[35]!==j?(g=s.jsx(cn,{disabled:v,onClick:D,children:j}),e[33]=v,e[34]=D,e[35]=j,e[36]=g):g=e[36];let E;e[37]!==S||e[38]!==g?(E=s.jsxs(dn,{children:[S,g]}),e[37]=S,e[38]=g,e[39]=E):E=e[39];let b;e[40]!==z||e[41]!==E?(b=s.jsxs(fn,{children:[z,E]}),e[40]=z,e[41]=E,e[42]=b):b=e[42];let k;return e[43]!==N||e[44]!==O||e[45]!==b?(k=s.jsx(un,{open:O,onOpenChange:N,children:b}),e[43]=N,e[44]=O,e[45]=b,e[46]=k):k=e[46],k}const Kn="#d9a441";function Mn(A){const e=Se.c(63),{node:p,depth:X,isExpanded:y,isSelected:N,isLoading:L,fileVisual:d,onOpen:w,onSelect:O,onNewFile:x,onNewFolder:a,onCopyPath:o,onCopyRelativePath:P,onRename:Y,onDelete:K}=A,m=L===void 0?!1:L,c=ve(),C=p.kind==="directory",{Icon:z,color:R}=d,S=N&&"bg-accent";let v;e[0]!==S?(v=xe("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",S),e[0]=S,e[1]=v):v=e[1];const D=`${X*14+8}px`;let j;e[2]!==D?(j={paddingLeft:D},e[2]=D,e[3]=j):j=e[3];let g;e[4]!==w||e[5]!==O?(g=()=>{O(),w()},e[4]=w,e[5]=O,e[6]=g):g=e[6];let E;e[7]!==z||e[8]!==R||e[9]!==C||e[10]!==y||e[11]!==m?(E=C?s.jsxs(s.Fragment,{children:[m?s.jsx(fe,{className:"size-3.5 shrink-0 text-muted-foreground"}):y?s.jsx(hn,{size:14,className:"shrink-0 text-muted-foreground"}):s.jsx(Wt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx(Ut,{size:16,className:"shrink-0",style:{color:Kn}})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-3.5 shrink-0"}),s.jsx(z,{size:16,className:"shrink-0",style:{color:R}})]}),e[7]=z,e[8]=R,e[9]=C,e[10]=y,e[11]=m,e[12]=E):E=e[12];let b;e[13]!==p.name?(b=s.jsx("span",{className:"truncate",children:p.name}),e[13]=p.name,e[14]=b):b=e[14];let k;e[15]!==v||e[16]!==j||e[17]!==g||e[18]!==E||e[19]!==b?(k=s.jsx(pn,{asChild:!0,children:s.jsxs("button",{type:"button",className:v,style:j,onClick:g,children:[E,b]})}),e[15]=v,e[16]=j,e[17]=g,e[18]=E,e[19]=b,e[20]=k):k=e[20];let H;e[21]!==c?(H=c("sandbox.fileTreeRow.newFile"),e[21]=c,e[22]=H):H=e[22];let $;e[23]!==x||e[24]!==H?($=s.jsx(de,{onSelect:x,children:H}),e[23]=x,e[24]=H,e[25]=$):$=e[25];let J;e[26]!==c?(J=c("sandbox.fileTreeRow.newFolder"),e[26]=c,e[27]=J):J=e[27];let Z;e[28]!==a||e[29]!==J?(Z=s.jsx(de,{onSelect:a,children:J}),e[28]=a,e[29]=J,e[30]=Z):Z=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(rt,{}),e[31]=_):_=e[31];let I;e[32]!==c?(I=c("sandbox.fileTreeRow.copyPath"),e[32]=c,e[33]=I):I=e[33];let T;e[34]!==o||e[35]!==I?(T=s.jsx(de,{onSelect:o,children:I}),e[34]=o,e[35]=I,e[36]=T):T=e[36];let W;e[37]!==c?(W=c("sandbox.fileTreeRow.copyRelativePath"),e[37]=c,e[38]=W):W=e[38];let M;e[39]!==P||e[40]!==W?(M=s.jsx(de,{onSelect:P,children:W}),e[39]=P,e[40]=W,e[41]=M):M=e[41];let Q;e[42]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(rt,{}),e[42]=Q):Q=e[42];let G;e[43]!==c?(G=c("sandbox.fileTreeRow.rename"),e[43]=c,e[44]=G):G=e[44];let F;e[45]!==Y||e[46]!==G?(F=s.jsx(de,{onSelect:Y,children:G}),e[45]=Y,e[46]=G,e[47]=F):F=e[47];let V;e[48]!==c?(V=c("sandbox.fileTreeRow.delete"),e[48]=c,e[49]=V):V=e[49];let B;e[50]!==K||e[51]!==V?(B=s.jsx(de,{variant:"destructive",onSelect:K,children:V}),e[50]=K,e[51]=V,e[52]=B):B=e[52];let U;e[53]!==$||e[54]!==Z||e[55]!==T||e[56]!==M||e[57]!==F||e[58]!==B?(U=s.jsxs(xn,{className:"w-52",children:[$,Z,_,T,M,Q,F,B]}),e[53]=$,e[54]=Z,e[55]=T,e[56]=M,e[57]=F,e[58]=B,e[59]=U):U=e[59];let te;return e[60]!==U||e[61]!==k?(te=s.jsxs(mn,{children:[k,U]}),e[60]=U,e[61]=k,e[62]=te):te=e[62],te}const st=200,An=2,On=250,it=200;function zn(A,e){return gn(A,e)}function $n(A){const e=Se.c(9),{text:p,query:X}=A;let y,N,L;if(e[0]!==X||e[1]!==p){const{leadingEllipsis:w,segments:O}=En(p,X);y="truncate font-mono text-muted-foreground",N=w&&s.jsx("span",{className:"text-muted-foreground/50",children:"…"}),L=O.map(In),e[0]=X,e[1]=p,e[2]=y,e[3]=N,e[4]=L}else y=e[2],N=e[3],L=e[4];let d;return e[5]!==y||e[6]!==N||e[7]!==L?(d=s.jsxs("span",{className:y,children:[N,L]}),e[5]=y,e[6]=N,e[7]=L,e[8]=d):d=e[8],d}function In(A,e){return A.match?s.jsx("span",{className:"rounded-[2px] bg-primary/20 text-foreground",children:A.text},e):s.jsx("span",{children:A.text},e)}function xs({orgSlug:A,virtualMcpId:e,branch:p,threadId:X,openPath:y}){const N={orgSlug:A,virtualMcpId:e,branch:p,threadId:X},[L,d]=f.useState({files:[],directories:[],truncated:!1}),{files:w,directories:O}=L,[x,a]=f.useState(new Set),[o,P]=f.useState(null),[Y,K]=f.useState(null),[m,c]=f.useState([]),[C,z]=f.useState(""),[R,S]=f.useState(null),[v,D]=f.useState(null),[j,g]=f.useState(!1),[E,b]=f.useState(!1),[k,H]=f.useState(!1),[$,J]=f.useState(!1),[,Z]=f.useState(new Set),[_,I]=f.useState(new Set),T=f.useRef(0),W=f.useRef(null),M=f.useRef(new Set),Q=f.useRef(new Map),G=f.useRef(null),F=f.useRef(0),V=f.useRef(null),B=f.useRef(null),U=f.useRef(null);function te(t){Z(n=>{const r=typeof t=="function"?t(n):t;return M.current=r,r})}const[oe,ae]=f.useState(new Map),Fe=f.useRef(null),[se,me]=f.useState(null),{sendMessage:lt}=en(),{openSidePanel:ot}=nn(),he=Qt(),[q,re]=f.useState(null),[ke,Te]=f.useState(null),[ge,be]=f.useState(!1);async function ie(t,n){const r=await fetch(zn(N,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`Request failed (${r.status})`)}return r.json()}async function ye(){he.invalidateQueries({queryKey:nt(N)})}function $e(t,n,r){navigator.clipboard.writeText(r).then(()=>ee.success(t("sandbox.fileExplorer.textCopied",{label:n})),()=>ee.error(t("sandbox.fileExplorer.failedToCopyText",{label:n.toLowerCase()})))}function at(t){const n=kn(t);if(!n)return;const r=`${A}/${e}/${p}`;he.setQueryData(Ze.decofile(r),i=>{if(!i)return i;const{[n]:l,...u}=i;return u}),he.invalidateQueries({queryKey:Ze.liveMeta(A,e,p)})}function ct(t){const n=t.kind==="file"?[t.path]:w.filter(r=>r.startsWith(".deco/blocks/")).map(r=>Ne(r)).filter(r=>r===t.path||r.startsWith(`${t.path}/`));for(const r of n)at(r)}function dt(t){const n=Ne(t);return m.filter(r=>{if(r!==n&&!r.startsWith(`${n}/`))return!1;const i=oe.get(r);return!!(i?.loaded&&i.editorValue!==i.savedContent)})}function Ie(t){c(n=>n.map(r=>t(r)).filter(r=>r!==null)),P(n=>n&&t(n)),ae(n=>{const r=new Map;for(const[i,l]of n){const u=t(i);u&&r.set(u,l)}return r}),K(n=>{if(!n)return n;const r=t(n.path);return r?r===n.path?n:{...n,path:r,name:r.split("/").pop()??r}:null})}function ft(t){const n=Ne(t);K(r=>r&&(r.path===n||r.path.startsWith(`${n}/`)?null:r)),Ie(r=>r===n||r.startsWith(`${n}/`)?null:r)}async function ut(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("write",{path:ne(r),content:""}),await ue(),await ye(),re(null),pe(r)}async function pt(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));const i=ne(r);await ie("mkdir",{path:i}),d(l=>({...l,directories:l.directories.includes(i)?l.directories:[...l.directories,i]})),await ue(),await ye(),re(null),a(l=>{const u=new Set(l);for(const le of Ae(r))u.add(le);return u.add(r),u}),K({name:n,path:r,kind:"directory",children:[]})}async function xt(t,n){if(!q)return;const r=q.node.path,i=De(r),l=Ee(i,n);if(l===r){re(null);return}if(ze(l,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("rename",{from:ne(r),to:ne(l)}),Ie(u=>u===r?l:u.startsWith(`${r}/`)?Ee(l,u.slice(r.length+1)):u),await ue(),await ye(),re(null)}async function mt(t,n){be(!0);try{await ie("unlink",{path:ne(n.path),recursive:n.kind==="directory"}),ct(n),ft(n.path),await ue(),await ye(),Te(null),ee.success(t("sandbox.fileExplorer.fileDeleted",{name:n.name}))}catch(r){ee.error(r instanceof Error?r.message:t("sandbox.fileExplorer.deleteFailed"))}finally{be(!1)}}async function ht(t,n){const r=Sn(n);if(r){ee.error(r);return}be(!0);try{q?.mode==="new-file"?(await ut(t,n),ee.success(t("sandbox.fileExplorer.fileCreated",{name:n}))):q?.mode==="new-folder"?(await pt(t,n),ee.success(t("sandbox.fileExplorer.folderCreated",{name:n}))):q?.mode==="rename"&&(await xt(t,n),ee.success(t("sandbox.fileExplorer.renamedTo",{name:n})))}catch(i){ee.error(i instanceof Error?i.message:t("sandbox.fileExplorer.operationFailed"))}finally{be(!1)}}const Ge=f.useRef(!1);Ge.current||(Ge.current=!0,W.current=ue());const[gt,bt]=f.useState(null),h=ve();if(y&&y!==gt){bt(y);const t=y;queueMicrotask(()=>{bn(t)&&pe(t)})}async function Re(t){const n=await ie("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Ve(t,n,r){if(r!==T.current)return!1;let i=!1;return d(l=>{const u=n?Tn(l.files,l.directories,t,l.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return i=!!u.truncated,{files:u.files,directories:u.directories,truncated:i}}),i&&ee.warning(h("sandbox.fileExplorer.fileListTruncated")),i}async function yt(t){const n=Q.current.get(t);if(n)return n;const r=T.current,i=(async()=>{const l=await Re({pattern:"**/*",path:ne(t),limit:Pe}),u=Ve(l,!0,r);return!u&&r===T.current&&te(le=>{const we=new Set(le);return we.add(t),we}),u})();Q.current.set(t,i);try{return await i}finally{Q.current.delete(t)}}async function Be(t){if(!Oe(t,M.current))return!1;I(n=>new Set(n).add(t));try{return await yt(t)}finally{I(n=>{const r=new Set(n);return r.delete(t),r})}}async function wt(t,n){const r=new Set(M.current);for(const i of Ae(n)){if(!Oe(i,r))continue;if(await Be(i))throw new Error(t("sandbox.fileExplorer.folderListingTruncated"));r.add(i)}}async function ue(){const t=++T.current;V.current=null,B.current=null,Q.current.clear(),H(!0),te(new Set),a(new Set),I(new Set);try{const n=await Re({pattern:"**/*",limit:Pe,maxDepth:yn});Ve(n,!1,t),J(!0)}catch{$&&ee.error(h("sandbox.fileExplorer.failedToRefreshFileTree"))}finally{H(!1)}}async function qe(t){if(!oe.get(t)?.loaded){ae(r=>{const i=new Map(r);return i.set(t,{savedContent:"",editorValue:"",loaded:!1}),i});try{const r=await ie("read",{path:ne(t),full:!0}),i=Cn(r.content??"");ae(l=>{const u=new Map(l);return u.set(t,{savedContent:i,editorValue:i,loaded:!0}),u})}catch{}}}function jt(){F.current++,S(null),D(null),g(!1),b(!1)}async function Nt(){const t=T.current,n=V.current;if(n&&n.generation===t)return n.files;const r=B.current;if(r&&r.generation===t)return r.promise;const i=(async()=>{const l=await Re({pattern:"**/*",limit:Pe});return T.current===t&&(V.current={generation:t,files:l.files}),l.files})();B.current={generation:t,promise:i};try{return await i}finally{B.current?.generation===t&&(B.current=null)}}async function Dt(t,n){try{const r=await Nt();if(n!==F.current)return;S(vn(r,t,it))}catch{if(n!==F.current)return;S([])}}async function Et(t,n){g(!0);try{const r=await ie("grep",{pattern:t,output_mode:"content",ignore_case:!0,fixed_strings:!0,limit:st});if(n!==F.current)return;D(Fn(r.results??"")),b((r.matchCount??0)>=st)}catch{if(n!==F.current)return;D([]),b(!1)}finally{n===F.current&&g(!1)}}function Ct(t){const n=t.trim(),r=++F.current;Dt(n,r),n.length<An?(D(null),g(!1),b(!1)):Et(n,r)}function St(t){if(z(t),G.current&&clearTimeout(G.current),!t.trim()){jt();return}G.current=setTimeout(()=>{Ct(t)},On)}function He(t){const n=U.current;if(!n||n.path!==o)return;U.current=null;const r=Math.max(1,n.line);t.revealLineInCenter(r),t.setPosition({lineNumber:r,column:1}),t.focus()}function vt(t){U.current={path:t.path,line:t.line};const n=o===t.path&&oe.get(t.path)?.loaded;pe(t.path),n&&Fe.current&&He(Fe.current)}async function Ft(t,n){try{await ie("write",{path:ne(t),content:n}),je("file saved via sandbox /write",{path:t}),he.invalidateQueries({queryKey:nt(N)});try{const r=await rn(N);je("git status after save",r)}catch(r){je("git status after save failed",{path:t,error:r instanceof Error?r.message:String(r)})}ae(r=>{const i=new Map(r),l=i.get(t);return l&&i.set(t,{...l,savedContent:n}),i})}catch(r){je("file save failed",{path:t,error:r instanceof Error?r.message:String(r)})}}function kt(t){P(t),K({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),me(null),m.includes(t)||c(n=>[...n,t]),qe(t)}function Tt(t){const n=oe.get(t);n?.loaded&&n.editorValue!==n.savedContent&&!window.confirm(h("sandbox.fileExplorer.discardUnsavedChangesConfirm"))||(c(i=>{const l=i.filter(u=>u!==t);return o===t&&P(l[l.length-1]??null),l}),ae(i=>{const l=new Map(i);return l.delete(t),l}))}function We(t){a(n=>{const r=new Set(n);return r.has(t)?r.delete(t):r.add(t),r})}async function Rt(t){if(Oe(t,M.current))try{if(await Be(t))return}catch(n){ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToLoadFolder"));return}We(t)}async function Lt(t,n){if(n){We(t);return}await Rt(t)}async function Pt(t){await W.current,await wt(h,t);const n=Ae(t);a(r=>{const i=new Set(r);for(const l of n)i.add(l);return i}),kt(t)}function pe(t){Pt(t).catch(n=>{ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToOpenFile"))})}function Kt(){return Y?.kind==="directory"?Y.path:Y?.kind==="file"?De(Y.path):o?De(o):"/"}function Qe(t){const n=Kt();re({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const Mt=wn(w,O),Ue=jn(Mt,x),Le=R?.length??0,Xe=Nn(v??[]),Ye=v?.length??0,ce=o?oe.get(o):null,At=ce?.loaded&&ce.editorValue!==ce.savedContent,Ot=ke?dt(ke.path):[],zt=(t,n)=>{Fe.current=t,He(t),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!o)return;const r=t.getValue();await Ft(o,r)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const r=t.getSelection(),i=t.getModel();if(!r||!i||!o)return;const l=i.getValueInRange(r);me({filePath:o,lineStart:r.startLineNumber,lineEnd:r.endLineNumber,selectedCode:l})})};function $t(t){if(!se)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${se.filePath}\``,`**Lines:** ${se.lineStart}–${se.lineEnd}`];if(se.selectedCode){const r=Me(se.filePath),i=se.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+r,i,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),ot(),lt({parts:[{type:"text",text:n.join(`
|
|
2
2
|
`)}]}),me(null)}return k&&!$?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[s.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[s.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[s.jsxs("div",{className:"relative min-w-0 flex-1",children:[s.jsx(Xt,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),s.jsx("input",{type:"text",value:C,onChange:t=>St(t.target.value),placeholder:h("sandbox.fileExplorer.searchFilesPlaceholder"),"aria-label":h("sandbox.fileExplorer.searchFilesLabel"),className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus:ring-1 focus:ring-ring"})]}),s.jsxs(_e,{children:[s.jsx(et,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":h("sandbox.fileExplorer.newFileLabel"),onClick:()=>Qe("new-file"),children:s.jsx(Yt,{size:14})})}),s.jsx(tt,{side:"bottom",children:h("sandbox.fileExplorer.newFile")})]}),s.jsxs(_e,{children:[s.jsx(et,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":h("sandbox.fileExplorer.newFolderLabel"),onClick:()=>Qe("new-folder"),children:s.jsx(Jt,{size:14})})}),s.jsx(tt,{side:"bottom",children:h("sandbox.fileExplorer.newFolder")})]})]}),s.jsx(_t,{className:"flex-1",children:s.jsxs("div",{className:"py-1",children:[!C&&Ue.map(t=>{const{node:n,depth:r}=t,i=n.kind==="directory",l=x.has(n.path),u=Y?.path===n.path,le=Dn(n.path,n.kind),we=i&&_.has(n.path);return s.jsx(Mn,{node:n,depth:r,isExpanded:l,isSelected:u,isLoading:we,fileVisual:Ke(n.name),onSelect:()=>K(n),onOpen:()=>{i?Lt(n.path,l):pe(n.path)},onNewFile:()=>re({mode:"new-file",node:n,parentDir:le}),onNewFolder:()=>re({mode:"new-folder",node:n,parentDir:le}),onCopyPath:()=>$e(h,"Path",Ne(n.path)),onCopyRelativePath:()=>$e(h,"Relative path",ne(n.path)),onRename:()=>re({mode:"rename",node:n,parentDir:le}),onDelete:()=>Te(n)},n.path)}),!C&&$&&Ue.length===0&&s.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFilesFound")}),C&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.files")}),Le>0&&s.jsxs("span",{className:"normal-case tracking-normal text-muted-foreground/70",children:[Le,Le>=it?"+":""]})]}),R!==null&&R.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFileNamesMatch")}),R?.map(t=>{const n=t.split("/").pop()??t,r=De(t),{Icon:i,color:l}=Ke(n),u=o===t;return s.jsxs("button",{type:"button",onClick:()=>pe(t),title:t,className:xe("flex w-full items-center gap-1.5 px-3 py-1 text-left text-xs hover:bg-accent",u&&"bg-accent"),children:[s.jsx(i,{size:14,className:xe("shrink-0",l)}),s.jsx("span",{className:"max-w-40 shrink-0 truncate",children:n}),r!=="/"&&s.jsx("span",{className:"truncate text-muted-foreground/60",children:r})]},t)})]}),C&&s.jsxs("div",{className:"mt-1 border-t pt-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.inFiles")}),Ye>0&&s.jsxs("span",{className:"text-muted-foreground/70 normal-case tracking-normal",children:[Ye,E?"+":""]}),j&&s.jsx(fe,{className:"size-[10px]"})]}),!j&&v!==null&&Xe.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noMatchesInFileContents")}),Xe.map(t=>{const n=t.path.split("/").pop()??t.path,{Icon:r,color:i}=Ke(n);return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 text-xs text-muted-foreground",children:[s.jsx(r,{size:14,className:xe("shrink-0",i)}),s.jsx("span",{className:"truncate",children:n}),s.jsx("span",{className:"text-muted-foreground/60",children:t.matches.length})]}),t.matches.map(l=>s.jsxs("button",{type:"button",onClick:()=>vt(l),title:`${t.path}:${l.line}`,className:"flex w-full items-baseline gap-2 pl-8 pr-3 py-0.5 text-left text-xs hover:bg-accent",children:[s.jsx("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:l.line}),s.jsx($n,{text:l.text,query:C})]},`${t.path}:${l.line}`))]},t.path)})]})]})})]}),s.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[m.length>0&&s.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:m.map(t=>{const n=oe.get(t),r=n?.loaded&&n.editorValue!==n.savedContent,i=o===t,l=t.split("/").pop()??t;return s.jsxs("div",{className:xe("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",i?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{P(t),qe(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":i,children:[s.jsx("span",{className:"truncate max-w-32",children:l}),r&&s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),s.jsx("button",{type:"button",className:"ml-1 p-0.5 hover:bg-accent-foreground/10 rounded-lg",onClick:u=>{u.stopPropagation(),Tt(t)},children:s.jsx(Zt,{size:12})})]},t)})}),se&&s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:s.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl border border-border bg-background/95 px-3 py-1.5 shadow-lg backdrop-blur",onSubmit:t=>{t.preventDefault();const r=t.currentTarget.elements.namedItem("askAiInput");r.value.trim()&&$t(r.value)},children:[s.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:h("sandbox.fileExplorer.askTheAiPlaceholder"),className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&me(null)}}),s.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-lg bg-foreground text-background transition-opacity",title:h("sandbox.fileExplorer.send"),children:s.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[s.jsx("title",{children:h("sandbox.fileExplorer.send")}),s.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),s.jsx("div",{className:"flex-1 overflow-hidden",children:o&&ce?.loaded?s.jsx(tn,{language:Me(o),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:ce.editorValue,path:o,onChange:t=>{const n=o;n&&ae(r=>{const i=new Map(r),l=i.get(n);return l&&i.set(n,{...l,editorValue:t??""}),i})},onMount:zt,loading:s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},o):o&&!ce?.loaded?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:h("sandbox.fileExplorer.selectFileToEdit")})}),o&&s.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-[11px] text-muted-foreground shrink-0",children:[s.jsx("span",{className:"truncate",children:o}),s.jsxs("span",{children:[h(At?"sandbox.fileExplorer.modified":"sandbox.fileExplorer.saved")," ","· ",Me(o)]})]})]}),s.jsx(Ln,{open:q!==null,mode:q?.mode??"new-file",initialName:q?.mode==="rename"?q.node.name:"",parentLabel:q&&q.mode!=="rename"?q.parentDir==="/"?"/":ne(q.parentDir):void 0,isPending:ge,onSubmit:t=>ht(h,t),onOpenChange:t=>{!t&&!ge&&re(null)}}),s.jsx(Pn,{deleteTarget:ke,deleteDirtyPaths:Ot,fsActionPending:ge,onOpenChange:t=>{!t&&!ge&&Te(null)},onConfirm:t=>{mt(h,t)}})]})}export{xs as FileExplorer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,F as g,j as s,h as v,b2 as w,B as b}from"./index-
|
|
1
|
+
import{c as x,F as g,j as s,h as v,b2 as w,B as b}from"./index-4XFLhK7S.js";import{n as y}from"./ZoomOut-DA1sRe95.js";import{g as N}from"./use-org-fs-DqhUUlbQ.js";import{g as S}from"./utils-qUv9_Hyk.js";import{F as _}from"./editor-CklcmkgZ.js";import{F as k}from"./file-type-icon-Dbuavq5L.js";import{M as z}from"./markdown-BW2GJSHC.js";function U(n){const e=x.c(11),{value:l,filename:i}=n,[t]=g(),c=t.theme==="dark"||t.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==i?(o=S(i),e[0]=i,e[1]=o):o=e[1];const m=c?"vs-dark":"light";let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(v,{className:"size-5 text-muted-foreground"})}),e[2]=a):a=e[2];let r,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(r={enabled:!1},d={top:12,bottom:12},e[3]=r,e[4]=d):(r=e[3],d=e[4]);let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:r,padding:d,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=f):f=e[5];let u;return e[6]!==i||e[7]!==o||e[8]!==m||e[9]!==l?(u=s.jsx(_,{path:i,language:o,value:l,theme:m,loading:a,options:f},i),e[6]=i,e[7]=o,e[8]=m,e[9]=l,e[10]=u):u=e[10],u}function F(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const E=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),T=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),h=2*1024*1024;function $(n,e){const l=n.split(".").pop()?.toLowerCase()??"";return E.has(l)?"image":l==="pdf"?"pdf":l==="html"||l==="htm"?"html":l==="md"||l==="markdown"?e<=h?"markdown":"download":T.has(l)&&e<=h?"text":"download"}function M(){const n=x.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(w,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let l;return n[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(w,{className:"h-3 w-full"}),s.jsx(w,{className:"h-3 w-5/6"}),s.jsx(w,{className:"h-3 w-2/3"})]})]})}),n[1]=l):l=n[1],l}function j(n){const e=x.c(20),{file:l,note:i}=n;let t;e[0]!==l.filename?(t=s.jsx(k,{filename:l.filename,className:"h-12 w-10"}),e[0]=l.filename,e[1]=t):t=e[1];let c;e[2]!==l.filename?(c=s.jsx("span",{className:"text-sm font-medium text-foreground",children:l.filename}),e[2]=l.filename,e[3]=c):c=e[3];let o;e[4]!==l.size?(o=F(l.size),e[4]=l.size,e[5]=o):o=e[5];const m=i?` · ${i}`:"";let a;e[6]!==o||e[7]!==m?(a=s.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,m]}),e[6]=o,e[7]=m,e[8]=a):a=e[8];let r;e[9]!==c||e[10]!==a?(r=s.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[c,a]}),e[9]=c,e[10]=a,e[11]=r):r=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(y,{size:14}),e[12]=d):d=e[12];let f;e[13]!==l.downloadUrl||e[14]!==l.filename?(f=s.jsx(b,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:l.downloadUrl,download:l.filename,children:[d,"Download"]})}),e[13]=l.downloadUrl,e[14]=l.filename,e[15]=f):f=e[15];let u;return e[16]!==t||e[17]!==r||e[18]!==f?(u=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[t,r,f]})}),e[16]=t,e[17]=r,e[18]=f,e[19]=u):u=e[19],u}function p(n){const e=x.c(9),{file:l,markdown:i}=n,{data:t,isPending:c,isError:o}=N(l.downloadUrl);if(c){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(M,{}),e[0]=a):a=e[0],a}if(o||!t){let a;return e[1]!==l?(a=s.jsx(j,{file:l,note:"preview unavailable"}),e[1]=l,e[2]=a):a=e[2],a}if(i){const a=`file-preview-${l.key}`;let r;return e[3]!==t||e[4]!==a?(r=s.jsx("div",{className:"h-full overflow-y-auto",children:s.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:s.jsx(z,{id:a,text:t})})}),e[3]=t,e[4]=a,e[5]=r):r=e[5],r}let m;return e[6]!==t||e[7]!==l.filename?(m=s.jsx(U,{value:t,filename:l.filename}),e[6]=t,e[7]=l.filename,e[8]=m):m=e[8],m}function I(n){const e=x.c(15),{file:l}=n;switch($(l.filename,l.size)){case"image":{let t;return e[0]!==l.downloadUrl||e[1]!==l.filename?(t=s.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:s.jsx("img",{src:l.downloadUrl,alt:l.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=l.downloadUrl,e[1]=l.filename,e[2]=t):t=e[2],t}case"pdf":{let t;return e[3]!==l.downloadUrl||e[4]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-same-origin allow-downloads",className:"block h-full w-full bg-white"}),e[3]=l.downloadUrl,e[4]=l.filename,e[5]=t):t=e[5],t}case"html":{let t;return e[6]!==l.downloadUrl||e[7]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-scripts allow-downloads",className:"block h-full w-full bg-white"}),e[6]=l.downloadUrl,e[7]=l.filename,e[8]=t):t=e[8],t}case"markdown":{let t;return e[9]!==l?(t=s.jsx(p,{file:l,markdown:!0}),e[9]=l,e[10]=t):t=e[10],t}case"text":{let t;return e[11]!==l?(t=s.jsx(p,{file:l,markdown:!1}),e[11]=l,e[12]=t):t=e[12],t}default:{let t;return e[13]!==l?(t=s.jsx(j,{file:l}),e[13]=l,e[14]=t):t=e[14],t}}}export{I as F,M as a,F as f};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as te,b as se,j as t,B as _,aU as ue,l as ee,X as fe,T as he,V as me,U as re,n as pe,a6 as xe,a2 as be,o as ve,r as D,t as G,K as ie,ah as we,af as ke,I as ge,s as ye,v as Se,q as je,D as Te}from"./index-
|
|
1
|
+
import{c as te,b as se,j as t,B as _,aU as ue,l as ee,X as fe,T as he,V as me,U as re,n as pe,a6 as xe,a2 as be,o as ve,r as D,t as G,K as ie,ah as we,af as ke,I as ge,s as ye,v as Se,q as je,D as Te}from"./index-4XFLhK7S.js";import{b as Q,T as Y,a as X}from"./tooltip-CUk78XFR.js";import{n as ae}from"./ZoomOut-DA1sRe95.js";import{ap as Me,a$ as Ce,b as De,m as Pe,d as le,b0 as ze}from"./agent-icon-DDBSTxwl.js";import{c as Ne,e as Ee,d as Oe,u as $e}from"./use-org-fs-DqhUUlbQ.js";import{a as Be,b as Re,P as Ie}from"./popover-DGVyEQ9q.js";import{a as Ue}from"./Copy01-DlA26aBh.js";import{i as Ae}from"./Key01-DMnhMxC3.js";function oe(n){return n==="bar"?{variant:"ghost",size:"icon"}:{variant:"secondary",size:"icon-sm"}}function Le(n){const e=te.c(73),{readUrl:u,editor:a,downloadName:h,trailing:v,className:m,placement:f}=n,r=f===void 0?"bar":f,s=se();let p;e[0]!==u?(p=new URL(u,window.location.origin).toString(),e[0]=u,e[1]=p):p=e[1];const l=p;let A;e[2]!==r?(A=oe(r),e[2]=r,e[3]=A):A=e[3];const d=A;let x;e[4]!==a.agentUpdated||e[5]!==a.reload||e[6]!==s?(x=a.agentUpdated&&t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsxs(_,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:a.reload,children:[t.jsx(ue,{size:12}),s("deck.deckToolbar.agentUpdatedReload")]})}),t.jsx(X,{side:"bottom",children:s("deck.deckToolbar.agentRewriteWarning")})]}),e[4]=a.agentUpdated,e[5]=a.reload,e[6]=s,e[7]=x):x=e[7];let g;e[8]!==a.saving||e[9]!==s?(g=a.saving&&t.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:s("deck.deckToolbar.saving")}),e[8]=a.saving,e[9]=s,e[10]=g):g=e[10];let S;e[11]!==d.size||e[12]!==d.variant||e[13]!==a||e[14]!==s?(S=a.deckDetected&&a.writable&&t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(_,{variant:a.editMode?"secondary":d.variant,size:d.size,"aria-pressed":a.editMode,"aria-label":a.editMode?s("deck.deckToolbar.doneEditing"):s("deck.deckToolbar.editInline"),className:ee(a.editMode&&"text-primary"),onClick:()=>a.setEditMode(!a.editMode),children:t.jsx(Me,{size:14})})}),t.jsx(X,{side:"bottom",children:a.editMode?s("deck.deckToolbar.doneEditing"):s("deck.deckToolbar.editInlineTooltip")})]}),e[11]=d.size,e[12]=d.variant,e[13]=a,e[14]=s,e[15]=S):S=e[15];let w;e[16]!==l||e[17]!==d.size||e[18]!==d.variant||e[19]!==h||e[20]!==a.deckDetected||e[21]!==s?(w=a.deckDetected?t.jsxs(fe,{children:[t.jsx(he,{asChild:!0,children:t.jsx(_,{variant:d.variant,size:d.size,"aria-label":s("deck.deckToolbar.download"),children:t.jsx(ae,{size:14})})}),t.jsxs(me,{align:"end",children:[t.jsxs(re,{onClick:()=>window.open(`${l}#print`,"_blank","noopener"),children:[t.jsx(Ce,{size:14}),s("deck.deckToolbar.exportAsPdf")]}),t.jsx(re,{asChild:!0,children:t.jsxs("a",{href:l,download:h,children:[t.jsx(De,{size:14}),s("deck.deckToolbar.downloadHtml")]})})]})]}):t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(_,{variant:d.variant,size:d.size,"aria-label":s("deck.deckToolbar.download"),asChild:!0,children:t.jsx("a",{href:l,download:h,children:t.jsx(ae,{size:14})})})}),t.jsx(X,{side:"bottom",children:s("deck.deckToolbar.download")})]}),e[16]=l,e[17]=d.size,e[18]=d.variant,e[19]=h,e[20]=a.deckDetected,e[21]=s,e[22]=w):w=e[22];const j=d.variant,P=d.size;let T;e[23]!==s?(T=s("deck.deckToolbar.openInNewTab"),e[23]=s,e[24]=T):T=e[24];let M;e[25]!==l?(M=()=>window.open(l,"_blank","noopener"),e[25]=l,e[26]=M):M=e[26];let L;e[27]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(xe,{size:14}),e[27]=L):L=e[27];let c;e[28]!==d.size||e[29]!==d.variant||e[30]!==T||e[31]!==M?(c=t.jsx(Y,{asChild:!0,children:t.jsx(_,{variant:j,size:P,"aria-label":T,onClick:M,children:L})}),e[28]=d.size,e[29]=d.variant,e[30]=T,e[31]=M,e[32]=c):c=e[32];let B;e[33]!==s?(B=s("deck.deckToolbar.openInNewTab"),e[33]=s,e[34]=B):B=e[34];let R;e[35]!==B?(R=t.jsx(X,{side:"bottom",children:B}),e[35]=B,e[36]=R):R=e[36];let b;e[37]!==c||e[38]!==R?(b=t.jsxs(Q,{children:[c,R]}),e[37]=c,e[38]=R,e[39]=b):b=e[39];let O;e[40]!==b||e[41]!==x||e[42]!==g||e[43]!==S||e[44]!==w||e[45]!==v?(O=t.jsxs(t.Fragment,{children:[x,g,S,w,b,v]}),e[40]=b,e[41]=x,e[42]=g,e[43]=S,e[44]=w,e[45]=v,e[46]=O):O=e[46];const I=O;let F;e[47]!==a.railOpen||e[48]!==s?(F=a.railOpen?s("deck.deckToolbar.hideSlideList"):s("deck.deckToolbar.showSlideList"),e[47]=a.railOpen,e[48]=s,e[49]=F):F=e[49];const z=F;let $;e[50]!==d.size||e[51]!==d.variant||e[52]!==a||e[53]!==z?($=a.deckDetected&&t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(_,{variant:a.railOpen?"secondary":d.variant,size:d.size,"aria-pressed":a.railOpen,"aria-label":z,onClick:()=>a.setRailOpen(!a.railOpen),children:t.jsx(Pe,{size:14})})}),t.jsx(X,{side:"bottom",children:z})]}),e[50]=d.size,e[51]=d.variant,e[52]=a,e[53]=z,e[54]=$):$=e[54];const C=$;if(r==="topbar"){let o;return e[55]!==I||e[56]!==C?(o=t.jsxs(pe.Actions,{children:[C,I]}),e[55]=I,e[56]=C,e[57]=o):o=e[57],o}let k;e[58]!==m?(k=ee("flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",m),e[58]=m,e[59]=k):k=e[59];let N;e[60]!==l?(N=()=>window.open(l,"_blank","noopener"),e[60]=l,e[61]=N):N=e[61];let E;e[62]!==h?(E=t.jsx("span",{className:"truncate",children:h}),e[62]=h,e[63]=E):E=e[63];let U;e[64]!==l||e[65]!==N||e[66]!==E?(U=t.jsx("button",{type:"button",onClick:N,className:"flex min-w-0 flex-1 items-center rounded-lg px-2 py-1 text-left text-sm font-medium text-foreground transition-colors hover:bg-muted",title:l,children:E}),e[64]=l,e[65]=N,e[66]=E,e[67]=U):U=e[67];let i;return e[68]!==I||e[69]!==C||e[70]!==k||e[71]!==U?(i=t.jsxs("div",{className:k,children:[C,U,I]}),e[68]=I,e[69]=C,e[70]=k,e[71]=U,e[72]=i):i=e[72],i}const Z=1;function Fe(n){if(typeof n!="object"||n===null||n.v!==Z||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class q extends Error{constructor(e,u){super(e),this.code=u,this.name="DeckOpError"}code}function ce(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function _e(n){const u=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return u?ce(u).length:null}function qe(n,e){const u=new DOMParser().parseFromString(n,"text/html"),a=u.querySelector("deck-viewer");if(!a)throw new q("no <deck-viewer> element in source","no-viewer");const h=ce(a),v=e.kind==="move"?e.from:e.at,m=h[v];if(!m)throw new q(`slide index ${v} out of range (${h.length})`,"stale-index");switch(e.kind){case"remove":{if(h.length<=1)throw new q("cannot remove the last slide","bad-op");m.remove();break}case"duplicate":{const r=m.cloneNode(!0);r.removeAttribute("id");for(const s of r.querySelectorAll("[id]"))s.removeAttribute("id");m.after(r);break}case"move":{if(e.to<0||e.to>=h.length)throw new q(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const r=e.to<e.from?h[e.to]:h[e.to].nextSibling;a.insertBefore(m,r)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new q(`invalid attribute name: ${e.name}`,"bad-op");m.setAttribute(e.name,e.value);break}case"remove-attr":{m.removeAttribute(e.name);break}case"replace":{const s=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!s)throw new q("replace html has no root element","bad-op");m.replaceWith(u.importNode(s,!0));break}default:throw new q(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
2
2
|
`:""}${u.documentElement.outerHTML}
|
|
3
3
|
`}const ne="home",Ke=400,He=800;function Ve(n){const e=n.savePath!==void 0,{org:u}=be(),a=ve(),h=Ne(ne),[v,m]=D.useState(!1),[f,r]=D.useState(!1),[s,p]=D.useState(!1),[l,A]=D.useState(!1),[d,x]=D.useState(!1),[g,S]=D.useState(!1),[w,j]=D.useState(null),[P,T]=D.useState(null),[M,L]=D.useState(0),[c]=D.useState(()=>({iframe:null,source:null,queue:Promise.resolve(),saveTimer:null,selfMarkers:new Set})),B=v||g||d,R=()=>{n.savePath!==void 0&&(a.invalidateQueries({queryKey:ie.orgFsStat(u.id,ne,n.savePath)}),a.invalidateQueries({queryKey:ie.orgFsRecent(u.id)}))},b=i=>{c.iframe?.contentWindow?.postMessage(i,"*")},O=()=>{c.source=null,A(!1),P&&j(P),L(i=>i+1),R()};n.statMarker!==P&&(T(n.statMarker),n.statMarker!==null&&(w===null?j(n.statMarker):c.selfMarkers.has(n.statMarker)||n.statMarker!==w&&(B?A(!0):(c.source=null,j(n.statMarker)))));const I=async()=>{c.saveTimer=null;const i=c.source;if(i===null){S(!1);return}x(!0);try{const o=await h.mutateAsync({path:n.savePath,body:i});c.selfMarkers.add(Ee(o)),R()}catch(o){console.error("[deck-editor] save failed",o),G.error("Couldn't save deck edits — reloading the preview."),k.current.reload()}finally{x(!1),S(!1)}},F=i=>{S(!0),c.saveTimer&&clearTimeout(c.saveTimer),c.saveTimer=setTimeout(()=>{k.current.flushSave()},i)},z=(i,o,y)=>{b({v:Z,type:"ack",opId:i,ok:o,error:y})},$=async i=>{if(!e){z(i.opId,!1,"read-only preview");return}try{if(c.source===null){const y=await fetch(n.readUrl,{credentials:"include"});if(!y.ok)throw new Error(`HTTP ${y.status}`);c.source=await y.text()}const o=_e(c.source);if(o===null||o!==i.witness.childCount)throw new q(`slide count drifted (source ${o}, iframe ${i.witness.childCount})`,"stale-index");c.source=qe(c.source,i.op),z(i.opId,!0),F(i.op.kind==="replace"?He:Ke)}catch(o){console.error("[deck-editor] op failed",i.op,o),z(i.opId,!1,o instanceof Error?o.message:String(o)),G.error("That edit couldn't be saved — reloading the preview."),k.current.reload()}},C=i=>{if(!c.iframe||i.source!==c.iframe.contentWindow)return;const o=Fe(i.data);if(o){if(o.type==="ready"){r(!0),k.current.editMode?b({v:Z,type:"set-edit-mode",enabled:!0}):k.current.railOpen&&b({v:Z,type:"set-rail",open:!0});return}o.type==="op"&&(c.queue=c.queue.then(()=>k.current.handleOp(o)).catch(()=>{}))}},k=D.useRef({onMessage:C,handleOp:$,flushSave:I,reload:O,editMode:v,railOpen:s});k.current={onMessage:C,handleOp:$,flushSave:I,reload:O,editMode:v,railOpen:s};const[N]=D.useState(()=>{let i=null;return o=>{if(o){c.iframe=o;const y=K=>k.current.onMessage(K);window.addEventListener("message",y),i=()=>window.removeEventListener("message",y)}else i?.(),i=null,c.iframe=null}}),E=i=>{p(i),b({v:Z,type:"set-rail",open:i})},U=i=>{m(i),b({v:Z,type:"set-edit-mode",enabled:i}),i&&p(!0),!i&&l&&!g&&!d&&O()};return{iframeRef:N,deckDetected:f,writable:e,displayedMarker:w===null?null:`${w}.${M}`,editMode:v,setEditMode:U,railOpen:s,setRailOpen:E,saving:d,agentUpdated:l,reload:O,postToIframe:b}}const We=300;function rt({readUrl:n,marker:e,title:u,savePath:a,trailing:h,toolbarClassName:v,placement:m}){const f=Ve({readUrl:n,statMarker:e,savePath:a}),[r,s]=D.useState(null);if(f.displayedMarker===null)return null;const p=n.includes("?")?"&":"?",l=`${n}${p}v=${encodeURIComponent(f.displayedMarker)}`,A=r===l;return t.jsxs("div",{className:"flex h-full w-full flex-col bg-background",children:[t.jsx(Le,{readUrl:n,editor:f,downloadName:u.split("/").pop()??u,trailing:h,className:v,placement:m}),t.jsx("div",{className:"relative flex-1",children:t.jsx("iframe",{ref:f.iframeRef,src:l,onLoad:()=>s(l),sandbox:"allow-scripts allow-downloads",className:ee("absolute inset-0 block h-full w-full bg-white","transition-opacity ease-out",A?"opacity-100":"opacity-0"),style:{transitionDuration:`${We}ms`},title:u},l)})]})}const Qe=[{mode:"private",labelKey:"library.fileShareButton.modeOrgOnly",Icon:ke},{mode:"public",labelKey:"library.fileShareButton.modePublic",Icon:le},{mode:"password",labelKey:"library.fileShareButton.modePassword",Icon:Ae}];function de(n){const e=te.c(56),{volume:u,path:a,kind:h,shareMode:v,effectivePublic:m,url:f}=n,r=se(),s=Oe(u),{data:p}=$e(u,a),l=p?.shareMode??v,d=(p?.effectivePublic??m)&&l==="private",x=h==="dir",g=x?"folder":"file",[S,w]=D.useState(!1),[j,P]=D.useState(""),[T,M]=D.useState(!1);let L;e[0]!==a||e[1]!==s||e[2]!==g||e[3]!==r?(L=(i,o)=>{s.mutate({path:a,mode:i,password:o},{onSuccess:()=>{w(!1),P(""),G.success(i==="private"?r("library.fileShareButton.toastOrgOnly",{subject:g}):i==="public"?r("library.fileShareButton.toastPublic",{subject:g}):r("library.fileShareButton.toastPassword",{subject:g}))},onError:y=>G.error(y instanceof Error?y.message:r("library.fileShareButton.failedUpdateSharing"))})},e[0]=a,e[1]=s,e[2]=g,e[3]=r,e[4]=L):L=e[4];const c=L;let B;e[5]!==c?(B=i=>{if(i==="password"){w(!0);return}w(!1),c(i)},e[5]=c,e[6]=B):B=e[6];const R=B,b=S?"password":l;let O;e[7]!==r||e[8]!==f?(O=async()=>{f&&(await navigator.clipboard.writeText(f),M(!0),G.success(r("library.fileShareButton.linkCopied")),setTimeout(()=>M(!1),2e3))},e[7]=r,e[8]=f,e[9]=O):O=e[9];const I=O;let F;e[10]!==T||e[11]!==I||e[12]!==r||e[13]!==f?(F=f?t.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-input bg-muted/50 px-2 py-1.5",children:[t.jsx("code",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f}),t.jsx(_,{variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:I,"aria-label":r("library.fileShareButton.copyLink"),children:T?t.jsx(we,{size:12,className:"text-success"}):t.jsx(Ue,{size:12})})]}):null,e[10]=T,e[11]=I,e[12]=r,e[13]=f,e[14]=F):F=e[14];const z=F;if(d){let i;e[15]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:t.jsx(le,{size:16})}),e[15]=i):i=e[15];let o;e[16]!==r?(o=r("library.fileShareButton.sharedViaParent"),e[16]=r,e[17]=o):o=e[17];let y;e[18]!==o?(y=t.jsx("span",{className:"text-sm font-medium text-foreground",children:o}),e[18]=o,e[19]=y):y=e[19];const K=x?"files in this folder":"this file";let H;e[20]!==r||e[21]!==K?(H=r("library.fileShareButton.inheritedDescription",{target:K}),e[20]=r,e[21]=K,e[22]=H):H=e[22];let V;e[23]!==H?(V=t.jsx("span",{className:"text-xs text-muted-foreground",children:H}),e[23]=H,e[24]=V):V=e[24];let W;e[25]!==V||e[26]!==y?(W=t.jsxs("div",{className:"flex items-start gap-3",children:[i,t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[y,V]})]}),e[25]=V,e[26]=y,e[27]=W):W=e[27];let J;return e[28]!==z||e[29]!==W?(J=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[W,z]}),e[28]=z,e[29]=W,e[30]=J):J=e[30],J}let $;e[31]!==b||e[32]!==R||e[33]!==s.isPending||e[34]!==r?($=Qe.map(i=>{const{mode:o,labelKey:y,Icon:K}=i;return t.jsxs("button",{type:"button",disabled:s.isPending,onClick:()=>R(o),className:ee("flex flex-col items-center gap-1 rounded-lg px-2 py-2 text-xs font-medium transition-colors disabled:opacity-60",b===o?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[t.jsx(K,{size:15}),r(y)]},o)}),e[31]=b,e[32]=R,e[33]=s.isPending,e[34]=r,e[35]=$):$=e[35];let C;e[36]!==$?(C=t.jsx("div",{className:"grid grid-cols-3 gap-1 rounded-lg bg-muted p-1",children:$}),e[36]=$,e[37]=C):C=e[37];let k;e[38]!==b||e[39]!==x||e[40]!==r?(k=b==="private"?r("library.fileShareButton.privateDescription",{target:x?"these files":"this link"}):b==="public"?r(x?"library.fileShareButton.publicFolderDescription":"library.fileShareButton.publicFileDescription"):r("library.fileShareButton.passwordDescription",{target:x?"files in this folder":"this file"}),e[38]=b,e[39]=x,e[40]=r,e[41]=k):k=e[41];let N;e[42]!==k?(N=t.jsx("p",{className:"text-xs text-muted-foreground",children:k}),e[42]=k,e[43]=N):N=e[43];let E;e[44]!==b||e[45]!==c||e[46]!==l||e[47]!==j||e[48]!==s.isPending||e[49]!==r?(E=b==="password"&&t.jsxs("form",{className:"flex items-center gap-2",onSubmit:i=>{i.preventDefault(),j&&c("password",j)},children:[t.jsx(ge,{type:"password",value:j,onChange:i=>P(i.target.value),placeholder:r(l==="password"?"library.fileShareButton.newPasswordPlaceholder":"library.fileShareButton.passwordPlaceholder"),autoComplete:"new-password",className:"h-8 text-xs"}),t.jsx(_,{type:"submit",size:"sm",className:"shrink-0",disabled:!j||s.isPending,children:r(l==="password"?"library.fileShareButton.buttonUpdate":"library.fileShareButton.buttonSet")})]}),e[44]=b,e[45]=c,e[46]=l,e[47]=j,e[48]=s.isPending,e[49]=r,e[50]=E):E=e[50];let U;return e[51]!==z||e[52]!==C||e[53]!==N||e[54]!==E?(U=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[C,N,E,z]}),e[51]=z,e[52]=C,e[53]=N,e[54]=E,e[55]=U):U=e[55],U}function it(n){const e=te.c(25),{volume:u,path:a,shareMode:h,effectivePublic:v,url:m,placement:f}=n,r=f===void 0?"bar":f,s=se();let p;e[0]!==r?(p=oe(r),e[0]=r,e[1]=p):p=e[1];const l=p,A=l.variant,d=l.size;let x;e[2]!==s?(x=s("library.fileShareButton.share"),e[2]=s,e[3]=x):x=e[3];let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(ze,{size:14}),e[4]=g):g=e[4];let S;e[5]!==l.size||e[6]!==l.variant||e[7]!==x?(S=t.jsx(Y,{asChild:!0,children:t.jsx(Be,{asChild:!0,children:t.jsx(_,{variant:A,size:d,"aria-label":x,children:g})})}),e[5]=l.size,e[6]=l.variant,e[7]=x,e[8]=S):S=e[8];let w;e[9]!==s?(w=s("library.fileShareButton.share"),e[9]=s,e[10]=w):w=e[10];let j;e[11]!==w?(j=t.jsx(X,{side:"bottom",children:w}),e[11]=w,e[12]=j):j=e[12];let P;e[13]!==S||e[14]!==j?(P=t.jsxs(Q,{children:[S,j]}),e[13]=S,e[14]=j,e[15]=P):P=e[15];let T;e[16]!==v||e[17]!==a||e[18]!==h||e[19]!==m||e[20]!==u?(T=t.jsx(Re,{align:"end",className:"w-80 p-3",children:t.jsx(de,{volume:u,path:a,kind:"file",shareMode:h,effectivePublic:v,url:m})}),e[16]=v,e[17]=a,e[18]=h,e[19]=m,e[20]=u,e[21]=T):T=e[21];let M;return e[22]!==P||e[23]!==T?(M=t.jsxs(Ie,{children:[P,T]}),e[22]=P,e[23]=T,e[24]=M):M=e[24],M}function at(n){const e=te.c(14),{target:u,onOpenChange:a}=n,h=se(),v=!!u,m=u?.kind==="dir"?"folder":"file";let f;e[0]!==h||e[1]!==m?(f=h("library.fileShareButton.shareDialogTitle",{type:m}),e[0]=h,e[1]=m,e[2]=f):f=e[2];let r;e[3]!==f?(r=t.jsx(ye,{children:t.jsx(Se,{children:f})}),e[3]=f,e[4]=r):r=e[4];let s;e[5]!==u?(s=u&&t.jsx(de,{...u}),e[5]=u,e[6]=s):s=e[6];let p;e[7]!==r||e[8]!==s?(p=t.jsxs(je,{className:"sm:max-w-md",children:[r,s]}),e[7]=r,e[8]=s,e[9]=p):p=e[9];let l;return e[10]!==a||e[11]!==v||e[12]!==p?(l=t.jsx(Te,{open:v,onOpenChange:a,children:p}),e[10]=a,e[11]=v,e[12]=p,e[13]=l):l=e[13],l}export{it as F,rt as H,at as S,oe as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,j as o}from"./index-
|
|
1
|
+
import{c as g,j as o}from"./index-4XFLhK7S.js";const h={pdf:"#D92D20",doc:"#155EEF",docx:"#155EEF",txt:"#475467",md:"#475467",xls:"#099250",xlsx:"#099250",csv:"#099250",tsv:"#099250",json:"#475467",xml:"#475467",yaml:"#475467",yml:"#475467",ppt:"#DC6803",pptx:"#DC6803",key:"#DC6803",png:"#7F56D9",jpg:"#7F56D9",jpeg:"#7F56D9",gif:"#7F56D9",webp:"#7F56D9",svg:"#7F56D9",avif:"#7F56D9",mp3:"#DD2590",wav:"#DD2590",mp4:"#DD2590",mov:"#DD2590",webm:"#DD2590",zip:"#475467",tar:"#475467",gz:"#475467",rar:"#475467",html:"#DC6803",htm:"#DC6803",css:"#155EEF",js:"#155EEF",jsx:"#155EEF",ts:"#155EEF",tsx:"#155EEF",py:"#155EEF",sql:"#155EEF",sh:"#475467"},F="#475467",D={pdf:"PDF",doc:"Word document",docx:"Word document",txt:"Text file",md:"Markdown",xls:"Excel file",xlsx:"Excel file",csv:"CSV file",tsv:"TSV file",json:"JSON file",xml:"XML file",yaml:"YAML file",yml:"YAML file",ppt:"Presentation",pptx:"Presentation",key:"Presentation",png:"Image",jpg:"Image",jpeg:"Image",gif:"Image",webp:"Image",svg:"Image",avif:"Image",mp3:"Audio",wav:"Audio",mp4:"Video",mov:"Video",webm:"Video",zip:"Archive",tar:"Archive",gz:"Archive",rar:"Archive",html:"HTML file",htm:"HTML file"};function v(l){const e=f(l);return e?D[e]??`${e.toUpperCase()} file`:"File"}function f(l){const e=l.lastIndexOf(".");if(e<=0||e===l.length-1)return null;const t=l.slice(e+1).toLowerCase();return t.length>4||!/^[a-z0-9]+$/.test(t)?null:t}function u(l){const e=g.c(17);let t,n;e[0]!==l?({filename:t,...n}=l,e[0]=l,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s,i,a;e[3]!==t?(i=f(t),s=i?h[i]??F:null,a=i?.toUpperCase()??"",e[3]=t,e[4]=s,e[5]=i,e[6]=a):(s=e[4],i=e[5],a=e[6]);const c=a,m=Math.min(8+c.length*4.6,28);let p,x;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx("path",{d:"M19.5 1H8a4 4 0 0 0-4 4v30a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V9.5L19.5 1Z",className:"fill-background stroke-border",strokeWidth:"1.5"}),x=o.jsx("path",{d:"M19.5 1v4.5a4 4 0 0 0 4 4H28",className:"stroke-border",strokeWidth:"1.5"}),e[7]=p,e[8]=x):(p=e[7],x=e[8]);let r;e[9]!==m||e[10]!==s||e[11]!==i||e[12]!==c?(r=i&&s&&o.jsxs(o.Fragment,{children:[o.jsx("rect",{x:"1",y:"20",width:m,height:"12",rx:"3",fill:s}),o.jsx("text",{x:1+m/2,y:"29",textAnchor:"middle",fontSize:"7",fontWeight:"700",letterSpacing:"0.2",fill:"#FFFFFF",style:{fontFamily:"inherit"},children:c})]}),e[9]=m,e[10]=s,e[11]=i,e[12]=c,e[13]=r):r=e[13];let d;return e[14]!==n||e[15]!==r?(d=o.jsxs("svg",{viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...n,children:[p,x,r]}),e[14]=n,e[15]=r,e[16]=d):d=e[16],d}export{u as F,v as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as g,u as _,j as o,r as S,h as k,a2 as w,am as C,n as y,b as N,d as T,P as F}from"./index-4XFLhK7S.js";import{k as $,p as R}from"./agent-icon-DDBSTxwl.js";import{c as E}from"./SwitchHorizontal01-DZEm8csq.js";import{V as I}from"./view-mode-toggle-BaZ1kmhW.js";import{C as V}from"./index-Bs_Ow9qj.js";import{s as B}from"./thread-button-BNBHV_Wu.js";import{P as L}from"./projects-empty-state-VFtNQKgJ.js";import{T as A}from"./index-C8VO6rJ2.js";import{B as M}from"./board-analytics-DO-wkHdX.js";import{L as z}from"./library-tab-CWnL_FfR.js";import{p as O}from"./location-BjlyegC2.js";import{u as U}from"./use-ensure-project-folder-CdHM_a-9.js";import{s as H}from"./use-project-scope-DJTJDi3A.js";import{b as q}from"./repository-binding-C_InVumU.js";import"./AlertCircle-D4iOZ3Bs.js";import"./Tool01-o_nJ7Y1x.js";import"./ArrowUp-KCSPs-fi.js";import"./ArrowLeft-iygYSRbQ.js";import"./LinkBroken01-Cjxu7rCw.js";import"./ShoppingBag01-CWlRU3Ye.js";import"./ZoomOut-DA1sRe95.js";import"./Building02-EbX1A23K.js";import"./CheckCircle-CoJfU94i.js";import"./ChevronUp-BSm7AtSf.js";import"./ChevronSelectorVertical-DqpRXMOM.js";import"./UserSquare-BFlEW2x5.js";import"./Copy01-DlA26aBh.js";import"./CreditCard01-CXGPcE51.js";import"./DotsVertical-CTugBooH.js";import"./Image01-BjUHwjIr.js";import"./Globe04-DDiW2Onm.js";import"./Key01-DMnhMxC3.js";import"./Link01-DKypA3Uf.js";import"./Monitor01-CTL-UG2p.js";import"./Sun-DhZMu2lN.js";import"./Play-NZWCLDah.js";import"./Plus-DLTeBarI.js";import"./SearchMd-BsNWsFDv.js";import"./Trash01-JZaZB0vu.js";import"./Upload01-CpEePL13.js";import"./User01-BGOQS9vx.js";import"./Users01-C9dOtgmV.js";import"./XClose-DO008B8R.js";import"./tooltip-CUk78XFR.js";import"./index-DujNp8wX.js";import"./use-mobile-Buz9Esa_.js";import"./resizable-sj2QiDEc.js";import"./use-chat-layout-state-BYcPLpFV.js";import"./use-file-configs-DsMQGho1.js";import"./use-organization-settings-B0rQmLIX.js";import"./schema-DyLXU88M.js";import"./task-board-DcolQ15W.js";import"./site-slug-DebpOoQq.js";import"./thread-route-B-yx1tFW.js";import"./use-panel-navigate-DOyxnt44.js";import"./thread-intent-DqexYQAC.js";import"./use-mcp-client-C5uLw7Lc.js";import"./auth-D1PkW9Uj.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BjTl5yOD.js";import"./slugify-CEUa2lfQ.js";import"./icon-button-BDbIWVW3.js";import"./toolbar-icon-button-CIXm0pyl.js";import"./sheet-Bs1jJD9o.js";import"./shell-layout-DZBrJWAA.js";import"./avatar-Brh_8d7a.js";import"./use-clock-tick-CwQv-OCe.js";import"./command-BfXTTBD9.js";import"./index-DVVx4F0i.js";import"./integration-icon-BqsHjS-b.js";import"./project-icon-CMe6LZd9.js";import"./new-project-dialog-DdG-RgMO.js";import"./label-ByKoWpTn.js";import"./repository-import-picker-Bixi7zBc.js";import"./use-navigate-to-agent-C41zpB_Z.js";import"./repository-picker-BHgNNGrn.js";import"./useInfiniteQuery-B3MUNCKJ.js";import"./infiniteQueryObserver-DLzEnjM8.js";import"./collection-search-Cp82h57b.js";import"./use-debounced-value-CNkuXNOW.js";import"./required-auth-layout-CxaLcttO.js";import"./autosend-D3KZZhDs.js";import"./use-org-sso-DVCQNBfN.js";import"./core.esm-C90YQIGJ.js";import"./sortable.esm-Dvqn6rnz.js";import"./use-task-board-analytics-D09WT40p.js";import"./combobox-CF6B9Wmt.js";import"./popover-DGVyEQ9q.js";import"./usage-stats-wClM7TZ-.js";import"./tool-namespace-CsdkV2uo.js";import"./form-BZ1i_2GJ.js";import"./utils-CVEq3hMx.js";import"./markdown-BW2GJSHC.js";import"./use-copy-BC3Fmh27.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-decopilot-events-DH5jig6y.js";import"./chat-context-BR-PmAJg.js";import"./use-ai-providers-CAEoYJwC.js";import"./use-chat-navigation-CKcbdotk.js";import"./suggestion-DHADwupQ.js";import"./column-rules-CJ4d_g8W.js";import"./badge-Dp13ql_I.js";import"./switch-BD8_vvWq.js";import"./textarea-BpBHfDQd.js";import"./use-org-fs-DqhUUlbQ.js";import"./use-automations-DXjaaH0T.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-DOVOYril.js";import"./use-task-board-items-CIYsbBEM.js";import"./use-task-board-events-Bx8_k4aV.js";import"./use-members-C9_S9nP9.js";import"./use-org-auth-client-DjRiIxwH.js";import"./select-CEirlFRV.js";import"./index-BdQq_4o_.js";import"./task-route-Dp4TtKUe.js";import"./config-BZYNAwT6.js";import"./use-tags-Blq5AODj.js";import"./calendar-DEB-AUfC.js";import"./alert-DYBIxnQj.js";import"./collapsible-Cq1aFrCg.js";import"./index-D94af8m5.js";import"./rich-text-link-control-C2ryIXD3.js";import"./index-C0n7mPS1.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-Bsgf-2Zm.js";import"./use-connection-DldRXuvq.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-Bgp-QwJy.js";import"./useSuspenseInfiniteQuery-DPTWpcSJ.js";import"./pair-Cm6oR2ES.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-fDcax7T2.js";import"./types-DPbXDbOS.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-Dxu80Ack.js";import"./use-thread-outputs-D13C6fsy.js";import"./file-type-icon-Dbuavq5L.js";import"./use-infinite-scroll-C0Ths8NM.js";import"./task-status-CF9KSEEA.js";import"./use-open-billing-url-C1VukQDg.js";import"./chat-draft-CWFQi3-d.js";import"./separator-E-ZvgvRL.js";import"./collection-tabs-C6HP7d51.js";import"./time-range-picker-DILwkH82.js";import"./scroll-area-DYybJ63r.js";import"./analytics-sections-Dv6tHtpt.js";import"./chart-CXoR26LQ.js";import"./index-DrIzKTur.js";import"./symbol-Dx-KpnN7.js";import"./CategoricalChart-DbqLrstZ.js";import"./table-B1C2ctbL.js";import"./BarChart-gbo6r8aY.js";import"./tooltipContext-BY8Qgc3U.js";import"./ActiveShapeUtils-CeZzOoVf.js";import"./Sector-BRgBibA6.js";import"./ErrorBarContext-CJdWK23B.js";import"./AreaChart-CUWmFHwI.js";import"./XAxis-4jP2_ps6.js";import"./alert-dialog-DpmCpPBI.js";import"./use-org-repo-syncs-cx9r2nZl.js";import"./file-share-button-kQh5APqr.js";import"./preview-dialog-DHH8biYM.js";import"./preview-content-KcSZme5m.js";import"./file-preview-BTrgY74n.js";import"./utils-qUv9_Hyk.js";import"./editor-CklcmkgZ.js";import"./folder-icon-D1xnfwm_.js";import"./empty-state-BWSdqiOv.js";function D(i){const t=g.c(25),{view:r}=i,p=N(),e=T();let m;t[0]!==e?(m=v=>e({to:".",search:P=>({...P,files:v==="files"||void 0,analytics:v==="analytics"||void 0,...v!=="project"?{task:void 0}:{}})}),t[0]=e,t[1]=m):m=t[1];const s=m;let b;t[2]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx(E,{}),t[2]=b):b=t[2];let x;t[3]!==p?(x=p("projects.flat.viewProject"),t[3]=p,t[4]=x):x=t[4];let f;t[5]!==x?(f={value:"project",icon:b,label:x},t[5]=x,t[6]=f):f=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx($,{}),t[7]=d):d=t[7];let l;t[8]!==p?(l=p("projects.flat.viewFiles"),t[8]=p,t[9]=l):l=t[9];let a;t[10]!==l?(a={value:"files",icon:d,label:l},t[10]=l,t[11]=a):a=t[11];let j;t[12]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(R,{}),t[12]=j):j=t[12];let u;t[13]!==p?(u=p("projects.flat.viewAnalytics"),t[13]=p,t[14]=u):u=t[14];let c;t[15]!==u?(c={value:"analytics",icon:j,label:u},t[15]=u,t[16]=c):c=t[16];let h;t[17]!==c||t[18]!==f||t[19]!==a?(h=[f,a,c],t[17]=c,t[18]=f,t[19]=a,t[20]=h):h=t[20];let n;return t[21]!==s||t[22]!==h||t[23]!==r?(n=o.jsx(F.Topbar.Right.Portal,{children:o.jsx("div",{className:"shrink-0",children:o.jsx(I,{value:r,onValueChange:s,options:h})})}),t[21]=s,t[22]=h,t[23]=r,t[24]=n):n=t[24],n}function G(i){const t=g.c(6),{project:r}=i;U(r);const p=r.id;let e;t[0]!==r?(e=O(r),t[0]=r,t[1]=e):e=t[1];const m=r.title??void 0;let s;return t[2]!==r.id||t[3]!==e||t[4]!==m?(s=o.jsx(z,{root:e,rootLabel:m,filePreview:"dialog"},p),t[2]=r.id,t[3]=e,t[4]=m,t[5]=s):s=t[5],s}function J(i){const t=g.c(21),{projectId:r,taskOpen:p,view:e}=i,{org:m}=w(),{granted:s}=C("agents:manage");let b;t[0]===Symbol.for("react.memo_cache_sentinel")?(b={pageSize:1e3},t[0]=b):b=t[0];const x=q(b);let f,d;if(t[1]!==x||t[2]!==s||t[3]!==m||t[4]!==r){d=Symbol.for("react.early_return_sentinel");t:{let c;t[7]!==m?(c=n=>n.id!==m.id,t[7]=m,t[8]=c):c=t[8];const h=H(x).filter(c);if(h.length===0){let n;t[9]!==s?(n=o.jsx(L,{canCreate:s}),t[9]=s,t[10]=n):n=t[10],d=n;break t}f=h.find(n=>n.id===r)??[...h].sort(K)[0]}t[1]=x,t[2]=s,t[3]=m,t[4]=r,t[5]=f,t[6]=d}else f=t[5],d=t[6];if(d!==Symbol.for("react.early_return_sentinel"))return d;const l=f;if(!l)return null;let a;t[11]!==e?(a=o.jsx(D,{view:e}),t[11]=e,t[12]=a):a=t[12];let j;t[13]!==m||t[14]!==l||t[15]!==p||t[16]!==e?(j=e==="files"?o.jsx(G,{project:l}):e==="analytics"?o.jsxs(o.Fragment,{children:[o.jsx(y.Title,{children:l.title}),o.jsx(M,{project:l.id,taskHref:c=>`/${m.slug}/projects?project=${encodeURIComponent(l.id)}&task=${encodeURIComponent(c)}`},l.id)]}):o.jsxs(o.Fragment,{children:[!p&&o.jsx("div",{className:"hidden shrink-0 border-b border-border has-[a]:block",children:o.jsx(y.Container,{className:"flex max-w-[1680px] flex-col gap-4 pb-6",children:o.jsx(B,{project:l,orgSlug:m.slug})})}),o.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",children:o.jsx(A,{scopeProject:l,inlineTabs:!0,taskInSearch:!0})})]}),t[13]=m,t[14]=l,t[15]=p,t[16]=e,t[17]=j):j=t[17];let u;return t[18]!==a||t[19]!==j?(u=o.jsxs("div",{className:"@container flex h-full min-h-0 min-w-0 flex-col",children:[a,j]}),t[18]=a,t[19]=j,t[20]=u):u=t[20],u}function K(i,t){return(t.updated_at??"").localeCompare(i.updated_at??"")}function ei(){const i=g.c(6);let t;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},i[0]=t):t=i[0];const r=_(t);let p;i[1]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx("div",{className:"flex min-h-64 items-center justify-center",children:o.jsx(k,{className:"size-5 text-muted-foreground"})}),i[1]=p):p=i[1];const e=!!r.task,m=r.files?"files":r.analytics?"analytics":"project";let s;return i[2]!==r.project||i[3]!==e||i[4]!==m?(s=o.jsx(V.Content,{children:o.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:o.jsx(S.Suspense,{fallback:p,children:o.jsx(J,{projectId:r.project,taskOpen:e,view:m})})})}),i[2]=r.project,i[3]=e,i[4]=m,i[5]=s):s=i[5],s}export{ei as default};
|