decocms 4.30.0 → 4.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Npyn4_wF.js → AlertCircle-DnAYXfMU.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-zXVQKR-G.js → ArrowUpRight-TtNUPTQB.js} +1 -1
- package/dist/client/assets/{Check-BxViL4rK.js → Check-BvrjRK-f.js} +1 -1
- package/dist/client/assets/{CheckCircle-Cz4tJUop.js → CheckCircle-C6nWvFHV.js} +1 -1
- package/dist/client/assets/{ChevronDown-UniVHOcZ.js → ChevronDown-DYHTINZW.js} +1 -1
- package/dist/client/assets/{ChevronRight-K3Ms28jw.js → ChevronRight-Bl9YVPs6.js} +1 -1
- package/dist/client/assets/{ChevronUp-C_JF1YJx.js → ChevronUp-B18hle8l.js} +1 -1
- package/dist/client/assets/{Circle-iQbOlvwS.js → Circle-DPVk1czd.js} +1 -1
- package/dist/client/assets/{Copy01-Ctt9FUbb.js → Copy01-CrUgsJcD.js} +1 -1
- package/dist/client/assets/{DotsVertical-Cnet9a8h.js → DotsVertical-BndxtaEo.js} +1 -1
- package/dist/client/assets/{Eye-Bf8ySHj2.js → Eye-ClTWumnI.js} +1 -1
- package/dist/client/assets/{FilterLines-DRa15Wby.js → FilterLines-CTf9rlZx.js} +1 -1
- package/dist/client/assets/{Globe01-BCgVxayg.js → Globe01-BoyjWYdB.js} +1 -1
- package/dist/client/assets/{Globe04-BRhMXMEJ.js → Globe04-Cu0R3oaF.js} +1 -1
- package/dist/client/assets/{HardDrive-BaaJKDpq.js → HardDrive-PM-PT0eV.js} +1 -1
- package/dist/client/assets/{Key01-BvoJKmt1.js → Key01-7XhjBNK3.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Bsqu0rxT.js → LayoutLeft-DfWu_TMe.js} +1 -1
- package/dist/client/assets/{LinkExternal01-bFRmolQv.js → LinkExternal01-C1Hc9Rj3.js} +1 -1
- package/dist/client/assets/{List-FyDw_upy.js → List-BSXYor2Z.js} +1 -1
- package/dist/client/assets/{Loading02-wU_DDeXK.js → Loading02-ye_m_QAK.js} +1 -1
- package/dist/client/assets/{Monitor01-rM21B5VM.js → Monitor01-CWCFfYgZ.js} +1 -1
- package/dist/client/assets/{Palette-Bq3VPed6.js → Palette-DpDs-Lap.js} +1 -1
- package/dist/client/assets/{Play-Dqv3vBUr.js → Play-lmf5c9Jo.js} +1 -1
- package/dist/client/assets/{Plus-CIMT0C1M.js → Plus-DK37ytOg.js} +1 -1
- package/dist/client/assets/{SearchLg-BqF-kB3a.js → SearchLg-ox88sikc.js} +1 -1
- package/dist/client/assets/{SearchMd-OCIrtgl8.js → SearchMd-DbAiVRZR.js} +1 -1
- package/dist/client/assets/{Settings02-CTtq6YOs.js → Settings02-N3uovfLI.js} +1 -1
- package/dist/client/assets/{Shield01-CCAMun7k.js → Shield01-CGCJBA4k.js} +1 -1
- package/dist/client/assets/{Star01-Cw7wbAha.js → Star01-CVz_7GBv.js} +1 -1
- package/dist/client/assets/{Stars01-CXkCYhyc.js → Stars01-D6zQVCEN.js} +1 -1
- package/dist/client/assets/{Stars02-C6DKWb0j.js → Stars02-CxeSSA7g.js} +1 -1
- package/dist/client/assets/{Sun-Cfq43Fjh.js → Sun-e9bFqj0N.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BSEQu0PJ.js → SwitchHorizontal01-CTmNw19f.js} +1 -1
- package/dist/client/assets/{Tool01-woqhmM89.js → Tool01-Do_IYkhs.js} +1 -1
- package/dist/client/assets/{Trash01-DSTcxy5m.js → Trash01-DPHj7EPF.js} +1 -1
- package/dist/client/assets/{Upload01-DI1Xs1Z6.js → Upload01-H4u3fcTc.js} +1 -1
- package/dist/client/assets/{User01-D-uDYDK0.js → User01-GIEDPABY.js} +1 -1
- package/dist/client/assets/{Users01-DVmsZOTe.js → Users01-hbEK4T_M.js} +1 -1
- package/dist/client/assets/{Users03-DGDUIZF4.js → Users03-BjPo5EJz.js} +1 -1
- package/dist/client/assets/{X-DWrz2LqH.js → X-B11_-bWv.js} +1 -1
- package/dist/client/assets/{XCircle-JQbz9WmR.js → XCircle-DhEfH4xa.js} +1 -1
- package/dist/client/assets/{XClose-CBrgKiaB.js → XClose-7c8y3nr7.js} +1 -1
- package/dist/client/assets/{Zap-NoORqLvM.js → Zap-C6zrTK7v.js} +1 -1
- package/dist/client/assets/{ZapSquare-RhqrJVTN.js → ZapSquare-D9UGTwX8.js} +1 -1
- package/dist/client/assets/{ZoomOut-nih9dlzQ.js → ZoomOut-COjlHAto.js} +1 -1
- package/dist/client/assets/{access-gate-DW0Ym0X9.js → access-gate-cQiB1PTp.js} +1 -1
- package/dist/client/assets/{add-section-modal-DgeyNgVY.js → add-section-modal-CzTGC6D4.js} +1 -1
- package/dist/client/assets/{agent-capabilities-0FR5de0y.js → agent-capabilities-DGJfVNFQ.js} +1 -1
- package/dist/client/assets/{agent-icon-32aZu8f8.js → agent-icon-Cg17MSXd.js} +1 -1
- package/dist/client/assets/{agents-list-C1UtH2E7.js → agents-list-DtJ5AwUc.js} +1 -1
- package/dist/client/assets/{ai-providers-CNHaz-V2.js → ai-providers-zedfjYwR.js} +1 -1
- package/dist/client/assets/{alert-D0cE0bpw.js → alert-CH-ji8jT.js} +1 -1
- package/dist/client/assets/{alert-dialog-DBrNjdaV.js → alert-dialog-DCVvUTHg.js} +1 -1
- package/dist/client/assets/{app-editor-DVKTcnpY.js → app-editor-CcSesL6B.js} +1 -1
- package/dist/client/assets/{auth-C9k5QFmE.js → auth-D3gb8a1G.js} +1 -1
- package/dist/client/assets/{auth-catchall-EFYsuYup.js → auth-catchall-OeWX2Rae.js} +1 -1
- package/dist/client/assets/{auth-entry-B7dEi3i4.js → auth-entry-DO2h9Nld.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DAa980Aa.js → auth-split-layout-Dhzw613v.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Dji-Zkvk.js → authenticate-and-persist-oauth-D74XVxJq.js} +1 -1
- package/dist/client/assets/{automation-list-row-DjnykZrH.js → automation-list-row-DESlAeXT.js} +1 -1
- package/dist/client/assets/{automation-runs-CyeVpPEA.js → automation-runs-W3FykFwC.js} +1 -1
- package/dist/client/assets/{automations-BRVTy0px.js → automations-BPCmHVJZ.js} +1 -1
- package/dist/client/assets/{autosend-Lnw286aO.js → autosend-Ci7tspr4.js} +1 -1
- package/dist/client/assets/{avatar-CVASN_n8.js → avatar-pA-6XVGw.js} +1 -1
- package/dist/client/assets/{badge-DN1YW5R1.js → badge-9NVu_VdI.js} +1 -1
- package/dist/client/assets/{block-document-BMOnFuNo.js → block-document-D1IvbVsR.js} +1 -1
- package/dist/client/assets/{brand-context-BYp2uUo_.js → brand-context-Cfpp64p-.js} +1 -1
- package/dist/client/assets/{breadcrumb-BylJDyxL.js → breadcrumb-CyK1O4L9.js} +1 -1
- package/dist/client/assets/{buckets-ztIgzEwa.js → buckets-DrIzuaKD.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-D7ZYmK1J.js → bulk-category-panel-fFPPHHPj.js} +1 -1
- package/dist/client/assets/{calendar-ChXBpAOM.js → calendar-DN0gI0pg.js} +1 -1
- package/dist/client/assets/{capability-load-error-O4BtnIVr.js → capability-load-error-DJ112fpN.js} +1 -1
- package/dist/client/assets/{card-BYZEQBt8.js → card-z0DIgOE_.js} +1 -1
- package/dist/client/assets/{category-editor-C-eV-FDB.js → category-editor-8gyBAsEs.js} +1 -1
- package/dist/client/assets/{chat-context-CCC-Byca.js → chat-context-BD7KZRIw.js} +8 -8
- package/dist/client/assets/{checkbox-C2WVbLnG.js → checkbox-BD6yTuo9.js} +1 -1
- package/dist/client/assets/{cli-auth-success-D7EMTP4Y.js → cli-auth-success-4WAUWGOy.js} +1 -1
- package/dist/client/assets/{collection-detail-CKc7ZkK-.js → collection-detail-Cw5VsLUF.js} +1 -1
- package/dist/client/assets/{collection-display-button-oZx_AhoK.js → collection-display-button-_LfG8OU8.js} +1 -1
- package/dist/client/assets/{collection-search-i90jdNni.js → collection-search-IlxdiWIS.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BkqcRITg.js → collection-table-wrapper-Cm4IDZta.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bg1zR32u.js → collection-tabs-B4OrNtqt.js} +1 -1
- package/dist/client/assets/{command-D8e2ttGg.js → command-B5VkuRkm.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CUg63DGD.js → commerce-onboarding-Cjz_0OMT.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CdtfQBg4.js → connect-desktop-dialog-Dl5P-KpW.js} +1 -1
- package/dist/client/assets/{connection-card-DGWh0T1M.js → connection-card-BkLSl9Um.js} +1 -1
- package/dist/client/assets/{connection-detail-DG_Kwvgf.js → connection-detail-C2gEsKL9.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CvE1GCwU.js → connection-form-helpers-BPxpL3kZ.js} +1 -1
- package/dist/client/assets/{connections-CSSk2Lo7.js → connections-pkPDtQ8_.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CYJNLSex.js → decopilot-sse-pool-mwjxYiq3.js} +1 -1
- package/dist/client/assets/{dialog-wZUkxFBf.js → dialog-1Eqcgb9h.js} +1 -1
- package/dist/client/assets/{domain-settings-C-ClIsNf.js → domain-settings-Dohjkz1h.js} +1 -1
- package/dist/client/assets/{drawer-N4BBUwV9.js → drawer-DgApXJiu.js} +1 -1
- package/dist/client/assets/{dropdown-menu-COQWVmxy.js → dropdown-menu-DQljEt7c.js} +1 -1
- package/dist/client/assets/{empty-state-BdREyKTx.js → empty-state-Ds7boKzG.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CguvuV8x.js → extract-connection-data-BjQiSug0.js} +1 -1
- package/dist/client/assets/{file-explorer-DLrJ1FmW.js → file-explorer-BsT5nmcT.js} +1 -1
- package/dist/client/assets/{file-type-icon-BEeYBjMh.js → file-type-icon-DFmN-X_v.js} +1 -1
- package/dist/client/assets/{files-OSCRmAjy.js → files-3UKz8-rY.js} +1 -1
- package/dist/client/assets/{form-D4Sjj2S5.js → form-uObUvJsx.js} +1 -1
- package/dist/client/assets/{general-EnRn7dAf.js → general-BRqph6Dj.js} +1 -1
- package/dist/client/assets/{github-repo-picker-pjUsTLC6.js → github-repo-picker--Ek5Q2kM.js} +1 -1
- package/dist/client/assets/{hooks-RNhoO-Id.js → hooks-D0_F2fuV.js} +1 -1
- package/dist/client/assets/{index-BjUL_v0d.js → index-7MM5fVQo.js} +1 -1
- package/dist/client/assets/{index-D6_eTKF9.js → index-B4fQG-zs.js} +1 -1
- package/dist/client/assets/{index-C3s6kNZf.js → index-BDPw5_B7.js} +1 -1
- package/dist/client/assets/{index-DcsErluY.js → index-BYp7Ofgs.js} +3 -3
- package/dist/client/assets/{index-BGWTtZfz.js → index-BhkyjzCF.js} +1 -1
- package/dist/client/assets/{index-NrynAfgx.js → index-BiNiHAi9.js} +1 -1
- package/dist/client/assets/{index-Q0mE9w5a.js → index-BvSoUF3k.js} +1 -1
- package/dist/client/assets/{index-tYXe55yO.js → index-CRGi0rZP.js} +1 -1
- package/dist/client/assets/{index-DJ-AVzEz.js → index-CsCCWNU9.js} +27 -27
- package/dist/client/assets/{index-4ttWqKAk.js → index-D49TFDgG.js} +1 -1
- package/dist/client/assets/{index-E0XzXtgq.js → index-DLj7x7R3.js} +1 -1
- package/dist/client/assets/{index-etRGW8hR.js → index-DV-YI8KM.js} +1 -1
- package/dist/client/assets/{index-HmjC0l60.js → index-HXlkJk8d.js} +1 -1
- package/dist/client/assets/index-R9eJcMBA.js +1 -0
- package/dist/client/assets/{index-redirect-CtWijNin.js → index-redirect-D_z5S11g.js} +1 -1
- package/dist/client/assets/{input-BLUXQaUJ.js → input-C7dZO9ym.js} +1 -1
- package/dist/client/assets/{integration-icon-BJkk8MWl.js → integration-icon-FGiS_d1C.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CzBp_hgb.js → invite-member-dialog-D1ExdVDs.js} +1 -1
- package/dist/client/assets/{label-CW0QYigh.js → label-C1WcZg4i.js} +1 -1
- package/dist/client/assets/{login-BzT7SutG.js → login-DXbx_t2u.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DkjiGs3f.js → mcp-oauth-D_BuxJo5.js} +1 -1
- package/dist/client/assets/{members-B-nTZKqd.js → members-ClFgHkOh.js} +1 -1
- package/dist/client/assets/{monaco-editor-CxptfxHs.js → monaco-editor-bcLWH9Yf.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BCom1l-r.js → monitoring-stats-row-DQjdFov1.js} +1 -1
- package/dist/client/assets/{oauth-callback-BrnloLXP.js → oauth-callback-BONoAGnw.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Gf3ErLGK.js → oauth-callback-ai-provider-D2kGA20A.js} +1 -1
- package/dist/client/assets/{onboarding-Bijoo7hh.js → onboarding-OfWimmEv.js} +1 -1
- package/dist/client/assets/{org-install-0y09LTw4.js → org-install-CDsn26MI.js} +1 -1
- package/dist/client/assets/{org-layout-BnSZ4nrA.js → org-layout-C9pMQN-q.js} +1 -1
- package/dist/client/assets/{organization-choice-B0E5mbjx.js → organization-choice-S7ZXrRI1.js} +1 -1
- package/dist/client/assets/{page-seo-form-Bgz7kJhB.js → page-seo-form-DVuWK58d.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BPUAn1gD.js +1 -0
- package/dist/client/assets/{popover-jVjMjIDj.js → popover-CxakTUJX.js} +1 -1
- package/dist/client/assets/{post-editor-BfRHhvGn.js → post-editor-CuGlxxiD.js} +1 -1
- package/dist/client/assets/{primitives-DaPu5vgv.js → primitives-DWMNMXxf.js} +1 -1
- package/dist/client/assets/{profile-DclYxTny.js → profile-B08zyo9T.js} +1 -1
- package/dist/client/assets/project-app-view-gIjSglNc.js +1 -0
- package/dist/client/assets/record-editor-DXrOuKcs.js +1 -0
- package/dist/client/assets/registry-Dpup9jP-.js +2 -0
- package/dist/client/assets/{registry-layout-BUFv94Wc.js → registry-layout-DEUUoxVX.js} +1 -1
- package/dist/client/assets/{require-capability-gZyrOy_G.js → require-capability-u4HmBddy.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CCig7BsQ.js → required-auth-layout-DQ3D6qQS.js} +1 -1
- package/dist/client/assets/{reset-password-A6TbChyi.js → reset-password-D5KmVqoe.js} +1 -1
- package/dist/client/assets/{roles-BW9vWvMW.js → roles-B9y6HK7U.js} +1 -1
- package/dist/client/assets/{search-input-5RFJsKB6.js → search-input-D8kV8LpY.js} +1 -1
- package/dist/client/assets/{secrets-T5w0qVnI.js → secrets-BY6FPIEt.js} +1 -1
- package/dist/client/assets/{sections-editor-1RxueHws.js → sections-editor-CQqC2IMh.js} +1 -1
- package/dist/client/assets/{select-GP-G7CYY.js → select-G_YqOyoi.js} +1 -1
- package/dist/client/assets/{select-model-Hh0vuEIf.js → select-model-CaCFe0Qm.js} +1 -1
- package/dist/client/assets/{seo-editor-BOaZSdYe.js → seo-editor-CC4KlJFc.js} +1 -1
- package/dist/client/assets/{settings-layout-CQB5hLJw.js → settings-layout-DdC76rT-.js} +1 -1
- package/dist/client/assets/{settings-section-BN93dKeu.js → settings-section-CLbCpPyp.js} +1 -1
- package/dist/client/assets/{shell-controls-Tu95tJS5.js → shell-controls-xp5svzIV.js} +1 -1
- package/dist/client/assets/{shell-layout-BktipYXq.js → shell-layout-CmMDmGXk.js} +1 -1
- package/dist/client/assets/{sidebar-BjPm3XPY.js → sidebar-DXJheAJA.js} +1 -1
- package/dist/client/assets/{skeleton-CXWh_vT2.js → skeleton-BAea7AlB.js} +1 -1
- package/dist/client/assets/{sso-B36X_9Kv.js → sso-C7I92c6D.js} +1 -1
- package/dist/client/assets/{store-Lh1RLabm.js → store-DIivY7IJ.js} +1 -1
- package/dist/client/assets/store-registry-CVneYPwx.js +2 -0
- package/dist/client/assets/{studio-tools-ajGrecV2.js → studio-tools-D970x90m.js} +1 -1
- package/dist/client/assets/{switch-C6ORwIf0.js → switch-D3WvQAp5.js} +1 -1
- package/dist/client/assets/{table-DyVNd3lx.js → table-UT3NTBNO.js} +1 -1
- package/dist/client/assets/{tabs-BbeJw3E0.js → tabs-GPhk4mCA.js} +1 -1
- package/dist/client/assets/{textarea-CjjAiaC_.js → textarea-ChqR5uQR.js} +1 -1
- package/dist/client/assets/{toggle-group-CBKef6if.js → toggle-group-ClZzbpdF.js} +1 -1
- package/dist/client/assets/{toolbar-BS4jP5VP.js → toolbar-CBZulNRe.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-aR9nKvjU.js → toolbar-icon-button-CJQiVcrq.js} +1 -1
- package/dist/client/assets/{tools-list-yY8qipR7.js → tools-list-BwElXZDI.js} +1 -1
- package/dist/client/assets/{tooltip-CX8JDN5z.js → tooltip-DB1pbaN7.js} +1 -1
- package/dist/client/assets/{types-B4pxnIIx.js → types-Br8gG1Yy.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BFYpQ3Dm.js → use-ai-providers-KkX2eDSF.js} +1 -1
- package/dist/client/assets/{use-automations-D2Y3aBGO.js → use-automations-CooMtuVY.js} +1 -1
- package/dist/client/assets/{use-capability-rVzvcxKr.js → use-capability-BszFKA4z.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BZ0iPGQL.js → use-clock-tick-a4_ohCGI.js} +1 -1
- package/dist/client/assets/{use-collections-Dkob9Q0i.js → use-collections-CQ-DHlk8.js} +1 -1
- package/dist/client/assets/{use-connection-BHlBIpYJ.js → use-connection-BL3pH0HU.js} +1 -1
- package/dist/client/assets/{use-copy-CQkPNAJi.js → use-copy-U1o477e9.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Cpq2-1Qg.js → use-create-virtual-mcp-CEL5Dbuw.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C0n83t9Y.js → use-debounced-autosave-CVjYZQZj.js} +1 -1
- package/dist/client/assets/{use-debounced-value-HI4UvLEV.js → use-debounced-value-Dkp5tW5n.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-qPFbeAuK.js → use-decopilot-events-FMOjcbHA.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Pr4HXWhs.js → use-delete-connection-3BD9aAiH.js} +1 -1
- package/dist/client/assets/{use-file-configs-Bwgj83CL.js → use-file-configs-S4PxYtlV.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-gRuFiDfW.js → use-infinite-scroll-CI-YzSP5.js} +1 -1
- package/dist/client/assets/{use-join-requests-qOUGOtoj.js → use-join-requests-BfcPQxf6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-x-H3hM3X.js → use-mcp-client-DNdH0vv7.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CB2--qfn.js → use-mcp-prompts-XEjrzief.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BAOkrTmg.js → use-mcp-tools-Bi-2En16.js} +1 -1
- package/dist/client/assets/{use-members-BAUKU0t0.js → use-members-D2Jf8y76.js} +1 -1
- package/dist/client/assets/{use-mobile-BNK4ZQXQ.js → use-mobile-DMdcKVFD.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B2zjxakj.js → use-navigate-to-agent-cynSQiRw.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CT6ie6N1.js → use-org-auth-client-DXczVSBm.js} +1 -1
- package/dist/client/assets/{use-org-sso-DIb9lRy0.js → use-org-sso-B7dq-Mnj.js} +1 -1
- package/dist/client/assets/{use-organization-roles-bMxDWnEc.js → use-organization-roles-BAuTLcqM.js} +1 -1
- package/dist/client/assets/{use-organization-settings-QG8fys4M.js → use-organization-settings-1kZ641DK.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BvC5yqnv.js → use-registry-connections-B0FZfkFl.js} +1 -1
- package/dist/client/assets/{use-secrets-BUi_Va3F.js → use-secrets-CjQdbEZR.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DV61EqQ3.js → use-status-sounds-Csi7Mi_Q.js} +1 -1
- package/dist/client/assets/{use-view-mode-BaQ_SNlr.js → use-view-mode-BbI5V31J.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-zN_q3qUT.js → use-virtual-mcp-DHTVzUmN.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DDDNbQaX.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DPMsxGPA.js +1 -0
- package/dist/client/assets/{variant-calendar-N7_o0k3x.js → variant-calendar-CwMegenq.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-RdEYDkk_.js → view-mode-toggle-sTfLeCKf.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-D8BXYXaV.js +0 -1
- package/dist/client/assets/page-seo-sheet-Ct29Vhus.js +0 -1
- package/dist/client/assets/project-app-view-BQBZobZ4.js +0 -1
- package/dist/client/assets/record-editor-BX1EoYMz.js +0 -1
- package/dist/client/assets/registry-BdbdSSDR.js +0 -2
- package/dist/client/assets/store-registry-CZQ9oZKe.js +0 -2
- package/dist/client/assets/useInfiniteQuery-W1abYeKO.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DTvKBZgn.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as I,j as s,Y as He,r as L,Z as se,b as oe,l as B,M as me,_ as ws,$ as Cs,a as ge,a0 as ks,a1 as As,t as te,a2 as Is,a3 as $s,p as Gt,u as Ue,a4 as vt,K as zs,k as Ts,a5 as Ms,i as Wt,e as at,P as qt,G as Os,H as Ps,I as Ds,J as Es,d as Fs,B as Ze,a6 as Rs,T as Ls,U as Bs,a7 as Hs,X as Us,a8 as Gs}from"./index-DcsErluY.js";import{u as ye,S as ct,a as dt,b as ue,c as J,d as q,e as Kt,f as Vt,g as Ws,h as qs,i as et,j as Ks,k as Vs,l as Xs}from"./sidebar-BjPm3XPY.js";import{u as mt}from"./use-mobile-BNK4ZQXQ.js";import{n as Qs}from"./Loading02-wU_DDeXK.js";import{u as Ys}from"./use-organization-settings-QG8fys4M.js";import{S as le}from"./skeleton-CXWh_vT2.js";import{i as Xt}from"./LayoutLeft-Bsqu0rxT.js";import{T as je}from"./toolbar-icon-button-aR9nKvjU.js";import{P as Ge,a as ze,b as We}from"./popover-jVjMjIDj.js";import{D as Qt,a as Yt,b as Jt}from"./drawer-N4BBUwV9.js";import{A as Re}from"./avatar-CVASN_n8.js";import{a as fe,b as he,c as tt,T as pe}from"./tooltip-CX8JDN5z.js";import{a as yt}from"./Copy01-Ctt9FUbb.js";import{n as Js,i as Zs}from"./Globe01-BCgVxayg.js";import{i as en}from"./ZoomOut-nih9dlzQ.js";import{i as tn,a as sn}from"./ZapSquare-RhqrJVTN.js";import{i as st}from"./Monitor01-rM21B5VM.js";import{n as nn,a as rn}from"./Sun-Cfq43Fjh.js";import{a as ut}from"./Settings02-CTtq6YOs.js";import{i as ln}from"./Shield01-CCAMun7k.js";import{a as on}from"./Users03-DGDUIZF4.js";import{a as St,b as _t,c as an,d as cn,A as ve,e as Nt,i as dn,s as mn,f as un}from"./agent-icon-32aZu8f8.js";import"./index-BjUL_v0d.js";import{D as fn,a as hn,b as pn,c as wt,d as xn}from"./dropdown-menu-COQWVmxy.js";import{i as ft}from"./Check-BxViL4rK.js";import{s as $e}from"./Plus-CIMT0C1M.js";import{u as gn}from"./use-connection-BHlBIpYJ.js";import{u as Zt}from"./use-mcp-client-x-H3hM3X.js";import{u as ht,a as qe}from"./use-virtual-mcp-zN_q3qUT.js";import{i as es,S as ts,a as Le,b as bn}from"./constants-B72Xmt_K.js";import{G as jn,g as nt,i as vn,a as it}from"./github-repo-picker-pjUsTLC6.js";import{u as yn,S as ss,a as Sn,g as _n,b as Nn,c as wn}from"./use-navigate-to-agent-B2zjxakj.js";import{I as Cn}from"./invite-member-dialog-CzBp_hgb.js";import{u as kn,A as An,g as In,a as $n}from"./agent-capabilities-0FR5de0y.js";import{u as zn,v as Tn,C as Ct}from"./connect-desktop-dialog-CdtfQBg4.js";import{i as Mn}from"./FilterLines-DRa15Wby.js";import{T as On,a as Pn}from"./toggle-group-CBKef6if.js";import{u as Dn,a as pt,b as ns,T as En}from"./hooks-RNhoO-Id.js";import{u as xt,r as Fn}from"./shell-layout-BktipYXq.js";import{c as Rn,a as Ln,b as Bn,d as Hn,e as Un}from"./dialog-wZUkxFBf.js";import{C as Gn,a as Wn,b as qn,c as Kn,d as Vn}from"./command-D8e2ttGg.js";import{u as is}from"./studio-tools-ajGrecV2.js";import{i as rs}from"./Zap-NoORqLvM.js";import{S as ls,M as Xn}from"./shell-controls-Tu95tJS5.js";import{n as Qn}from"./Stars02-C6DKWb0j.js";import{g as Yn,u as Jn,S as Zn}from"./use-clock-tick-BZ0iPGQL.js";import{f as ei}from"./format-time-Cy7tTmZp.js";import{t as gt}from"./ChevronDown-UniVHOcZ.js";import{i as ti}from"./ChevronRight-K3Ms28jw.js";import{S as si,C as ni}from"./chat-context-CCC-Byca.js";import{B as kt,a as ii,b as ri}from"./breadcrumb-BylJDyxL.js";import{i as os}from"./SearchMd-OCIrtgl8.js";import{s as li}from"./XClose-CBrgKiaB.js";import{A as oi,a as ai,b as ci,c as di,d as mi,e as ui,f as fi}from"./alert-dialog-DBrNjdaV.js";import{F as hi,a as pi,b as xi,c as gi,d as bi,f as ji,e as vi}from"./form-D4Sjj2S5.js";import{I as yi}from"./input-BLUXQaUJ.js";import{f as Si}from"./reusable-new-chat-qqWu133U.js";import{T as ee}from"./toolbar-BS4jP5VP.js";import"./X-DWrz2LqH.js";import"./User01-D-uDYDK0.js";import"./AlertCircle-Npyn4_wF.js";import"./Tool01-woqhmM89.js";import"./SwitchHorizontal01-BSEQu0PJ.js";import"./XCircle-JQbz9WmR.js";import"./ArrowUpRight-zXVQKR-G.js";import"./CheckCircle-Cz4tJUop.js";import"./ChevronUp-C_JF1YJx.js";import"./Circle-iQbOlvwS.js";import"./DotsVertical-Cnet9a8h.js";import"./Eye-Bf8ySHj2.js";import"./Star01-Cw7wbAha.js";import"./Globe04-BRhMXMEJ.js";import"./HardDrive-BaaJKDpq.js";import"./Key01-BvoJKmt1.js";import"./LinkExternal01-bFRmolQv.js";import"./List-FyDw_upy.js";import"./Palette-Bq3VPed6.js";import"./Play-Dqv3vBUr.js";import"./SearchLg-BqF-kB3a.js";import"./Stars01-CXkCYhyc.js";import"./Trash01-DSTcxy5m.js";import"./Upload01-DI1Xs1Z6.js";import"./Users01-DVmsZOTe.js";import"./use-collections-Dkob9Q0i.js";import"./auth-C9k5QFmE.js";import"./checkbox-C2WVbLnG.js";import"./collection-search-i90jdNni.js";import"./use-debounced-value-HI4UvLEV.js";import"./authenticate-and-persist-oauth-Dji-Zkvk.js";import"./mcp-oauth-DkjiGs3f.js";import"./use-mcp-tools-BAOkrTmg.js";import"./extract-connection-data-CguvuV8x.js";import"./github-installations-DzN1UQ4x.js";import"./select-GP-G7CYY.js";import"./textarea-CjjAiaC_.js";import"./use-org-auth-client-CT6ie6N1.js";import"./use-organization-roles-bMxDWnEc.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DGWh0T1M.js";import"./use-registry-connections-BvC5yqnv.js";import"./useInfiniteQuery-W1abYeKO.js";import"./use-infinite-scroll-gRuFiDfW.js";import"./card-BYZEQBt8.js";import"./integration-icon-BJkk8MWl.js";import"./collection-tabs-Bg1zR32u.js";import"./badge-DN1YW5R1.js";import"./connection-form-helpers-CvE1GCwU.js";import"./useSuspenseInfiniteQuery-DTvKBZgn.js";import"./use-ai-providers-BFYpQ3Dm.js";import"./decopilot-sse-pool-CYJNLSex.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./required-auth-layout-CCig7BsQ.js";import"./autosend-Lnw286aO.js";import"./tab-id-yjGvxWDL.js";import"./use-org-sso-DIb9lRy0.js";import"./index-tYXe55yO.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-decopilot-events-qPFbeAuK.js";import"./label-CW0QYigh.js";function _i(t){const e=I.c(5),{onPointerDown:n,onDoubleClick:i}=t,{state:r,isMobile:l}=ye();if(l||r==="collapsed")return null;let o,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={left:"var(--sidebar-width)"},a=s.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),e[0]=o,e[1]=a):(o=e[0],a=e[1]);let d;return e[2]!==i||e[3]!==n?(d=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:n,onDoubleClick:i,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:o,children:a}),e[2]=i,e[3]=n,e[4]=d):d=e[4],d}const bt=240,Ni=400,wi="sidebar.width";function Te(t){return Math.max(bt,Math.min(Ni,t))}function Ci(){const t=I.c(11),[e,n]=He(wi,ki),i=L.useRef(null);let r;t[0]!==n||t[1]!==e?(r=m=>{m.preventDefault();const u=m.clientX,f=Te(e),h=i.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),p=h?Array.from(h.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const g of p)g.style.transition="none";const b=g=>{const j=Te(f+(g.clientX-u));h?.style.setProperty("--sidebar-width",`${j}px`)},x=g=>{const j=Te(f+(g.clientX-u));n(j);for(const v of p)v.style.transition="";window.removeEventListener("pointermove",b),window.removeEventListener("pointerup",x),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",b),window.addEventListener("pointerup",x)},t[0]=n,t[1]=e,t[2]=r):r=t[2];const l=r;let o;t[3]!==n?(o=()=>{n(bt)},t[3]=n,t[4]=o):o=t[4];const a=o;let d;t[5]!==e?(d=Te(e),t[5]=e,t[6]=d):d=t[6];let c;return t[7]!==l||t[8]!==a||t[9]!==d?(c={width:d,wrapperRef:i,onStartResize:l,resetWidth:a},t[7]=l,t[8]=a,t[9]=d,t[10]=c):c=t[10],c}function ki(t){return typeof t=="number"?Te(t):bt}function as(){const t=I.c(8),{org:e}=se(),n=oe(),i=Ys();let r;if(t[0]!==n||t[1]!==e||t[2]!==i){if(r=[],i){let l;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Qs,{className:"size-4!"}),t[4]=l):l=t[4];let o;t[5]!==n||t[6]!==e?(o={type:"items",items:[{key:"board",label:"Board",icon:l,onClick:()=>n({to:"/$org/board",params:{org:e.slug}})}]},t[5]=n,t[6]=e,t[7]=o):o=t[7],r.push(o)}t[0]=n,t[1]=e,t[2]=i,t[3]=r}else r=t[3];return r}function cs(t){const e=I.c(3),{children:n}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-16 rounded-full bg-sidebar-foreground/15"})}),e[0]=i):i=e[0];let r;return e[1]!==n?(r=s.jsxs(ct,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[i,s.jsx(dt,{children:s.jsx(ue,{className:"gap-0.5",children:n})})]}),e[1]=n,e[2]=r):r=e[2],r}function ds(t){const e=I.c(18),{item:n}=t,{isMobile:i,setOpenMobile:r}=ye();let l;e[0]!==i||e[1]!==n||e[2]!==r?(l=()=>{me("nav_item_clicked",{nav_key:n.key,nav_label:n.label,is_active:!!n.isActive,is_mobile:i}),n.onClick?.(),i&&r(!1)},e[0]=i,e[1]=n,e[2]=r,e[3]=l):l=e[3];const o=l,a=n.key,d=n.isActive&&"z-10";let c;e[4]!==d?(c=B(d),e[4]=d,e[5]=c):c=e[5];let m;e[6]!==n.label?(m=s.jsx("span",{children:n.label}),e[6]=n.label,e[7]=m):m=e[7];let u;e[8]!==o||e[9]!==n.icon||e[10]!==n.isActive||e[11]!==n.label||e[12]!==m?(u=s.jsxs(J,{onClick:o,isActive:n.isActive,tooltip:n.label,children:[n.icon,m]}),e[8]=o,e[9]=n.icon,e[10]=n.isActive,e[11]=n.label,e[12]=m,e[13]=u):u=e[13];let f;return e[14]!==n.key||e[15]!==c||e[16]!==u?(f=s.jsx(q,{className:c,children:u},a),e[14]=n.key,e[15]=c,e[16]=u,e[17]=f):f=e[17],f}function Ai(t){const e=I.c(12),{section:n}=t;switch(n.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Kt,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=n.group.label,r=n.group.defaultExpanded;let l;e[2]!==n.group.items?(l=n.group.items.map($i),e[2]=n.group.items,e[3]=l):l=e[3];let o;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==l?(o=s.jsx(cs,{label:i,defaultExpanded:r,children:l}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=l,e[7]=o):o=e[7],o}case"items":{let i;e[8]!==n.items?(i=n.items.map(Ii),e[8]=n.items,e[9]=i):i=e[9];let r;return e[10]!==i?(r=s.jsx(ct,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(dt,{children:s.jsx(ue,{className:"gap-1.5",children:i})})}),e[10]=i,e[11]=r):r=e[11],r}case"custom":return n.content}}function Ii(t){return s.jsx(ds,{item:t},t.key)}function $i(t){return s.jsx(ds,{item:t},t.key)}function zi(t){const e=I.c(14),{sections:n,footer:i,additionalContent:r,variant:l,contentClassName:o}=t,a=l===void 0?"sidebar":l;let d;e[0]!==o?(d=B("flex flex-col flex-1 px-2 pb-2 gap-0.5",o),e[0]=o,e[1]=d):d=e[1];let c;e[2]!==n?(c=n.map(Ti),e[2]=n,e[3]=c):c=e[3];let m;e[4]!==r?(m=r&&s.jsx("div",{className:"flex flex-col flex-1 min-h-0 group-data-[state=collapsed]/sidebar:mt-1 group-data-[state=expanded]/sidebar:mt-2",children:r}),e[4]=r,e[5]=m):m=e[5];let u;e[6]!==d||e[7]!==c||e[8]!==m?(u=s.jsxs(Vt,{className:d,children:[c,m]}),e[6]=d,e[7]=c,e[8]=m,e[9]=u):u=e[9];let f;return e[10]!==i||e[11]!==u||e[12]!==a?(f=s.jsxs(Ws,{variant:a,children:[u,i]}),e[10]=i,e[11]=u,e[12]=a,e[13]=f):f=e[13],f}function Ti(t,e){return s.jsx(Ai,{section:t},e)}function ms(t){const e=I.c(2);let n;return e[0]!==t?(n=s.jsx(zi,{...t}),e[0]=t,e[1]=n):n=e[1],n}ms.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(le,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function Mi(t){const e=I.c(16),{onToggle:n,className:i}=t,l=ws().logo??Cs,o=typeof l=="string"?l:l.light,a=typeof l=="string"?l:l.dark;let d;e[0]!==i?(d=B("flex flex-row items-center gap-2 md:gap-0.5 shrink-0 h-12 pl-1 pr-2 pt-0.25 pb-0","group-data-[collapsible=icon]/sidebar:hidden",i),e[0]=i,e[1]=d):d=e[1];let c;e[2]!==o?(c=s.jsx("img",{src:o,alt:"Logo",className:"size-6 object-contain dark:hidden"}),e[2]=o,e[3]=c):c=e[3];let m;e[4]!==a?(m=s.jsx("img",{src:a,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),e[4]=a,e[5]=m):m=e[5];let u;e[6]!==c||e[7]!==m?(u=s.jsx("span",{className:"flex items-center shrink-0 pl-1",children:s.jsxs("span",{className:"flex items-center shrink-0 px-2",children:[c,m]})}),e[6]=c,e[7]=m,e[8]=u):u=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Xt,{size:16}),e[9]=f):f=e[9];let h;e[10]!==n?(h=s.jsx(je,{onClick:n,"aria-label":"Toggle sidebar",children:f}),e[10]=n,e[11]=h):h=e[11];let p;return e[12]!==d||e[13]!==u||e[14]!==h?(p=s.jsxs(qs,{className:d,children:[u,h]}),e[12]=d,e[13]=u,e[14]=h,e[15]=p):p=e[15],p}function At(t){const e=I.c(18),{item:n,onClose:i}=t,r=n.isActive&&"z-10";let l;e[0]!==r?(l=B(r),e[0]=r,e[1]=l):l=e[1];let o;e[2]!==n||e[3]!==i?(o=()=>{n.onClick?.(),i()},e[2]=n,e[3]=i,e[4]=o):o=e[4];let a;e[5]!==n.icon?(a=s.jsx("span",{className:"[&>svg]:size-5 shrink-0",children:n.icon}),e[5]=n.icon,e[6]=a):a=e[6];let d;e[7]!==n.label?(d=s.jsx("span",{children:n.label}),e[7]=n.label,e[8]=d):d=e[8];let c;e[9]!==n.isActive||e[10]!==n.label||e[11]!==o||e[12]!==a||e[13]!==d?(c=s.jsxs(J,{onClick:o,isActive:n.isActive,tooltip:n.label,className:"h-10! text-sm!",children:[a,d]}),e[9]=n.isActive,e[10]=n.label,e[11]=o,e[12]=a,e[13]=d,e[14]=c):c=e[14];let m;return e[15]!==l||e[16]!==c?(m=s.jsx(q,{className:l,children:c}),e[15]=l,e[16]=c,e[17]=m):m=e[17],m}function Oi(t){const e=I.c(18),{section:n,onClose:i}=t;switch(n.type){case"divider":{let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Kt,{className:"my-2"}),e[0]=r):r=e[0],r}case"spacer":{let r;return e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex-1"}),e[1]=r):r=e[1],r}case"group":{const r=n.group.label,l=n.group.defaultExpanded;let o;if(e[2]!==i||e[3]!==n.group.items){let d;e[5]!==i?(d=c=>s.jsx(At,{item:c,onClose:i},c.key),e[5]=i,e[6]=d):d=e[6],o=n.group.items.map(d),e[2]=i,e[3]=n.group.items,e[4]=o}else o=e[4];let a;return e[7]!==n.group.defaultExpanded||e[8]!==n.group.label||e[9]!==o?(a=s.jsx(cs,{label:r,defaultExpanded:l,children:o}),e[7]=n.group.defaultExpanded,e[8]=n.group.label,e[9]=o,e[10]=a):a=e[10],a}case"items":{let r;if(e[11]!==i||e[12]!==n.items){let o;e[14]!==i?(o=a=>s.jsx(At,{item:a,onClose:i},a.key),e[14]=i,e[15]=o):o=e[15],r=n.items.map(o),e[11]=i,e[12]=n.items,e[13]=r}else r=e[13];let l;return e[16]!==r?(l=s.jsx(ct,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(dt,{children:s.jsx(ue,{className:"gap-1.5",children:r})})}),e[16]=r,e[17]=l):l=e[17],l}case"custom":return n.content}}function Pi(t){const e=I.c(17),{sections:n,onClose:i,footer:r,additionalContent:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"h-12 shrink-0"}),e[0]=o):o=e[0];let a;e[1]!==i?(a=s.jsx(L.Suspense,{fallback:o,children:s.jsx(Mi,{onToggle:i})}),e[1]=i,e[2]=a):a=e[2];let d;if(e[3]!==i||e[4]!==n){let f;e[6]!==i?(f=(h,p)=>s.jsx(Oi,{section:h,onClose:i},p),e[6]=i,e[7]=f):f=e[7],d=n.map(f),e[3]=i,e[4]=n,e[5]=d}else d=e[5];let c;e[8]!==l?(c=l&&s.jsx("div",{className:"mt-3 flex flex-col flex-1 min-h-0",children:l}),e[8]=l,e[9]=c):c=e[9];let m;e[10]!==d||e[11]!==c?(m=s.jsxs(Vt,{className:"flex flex-col flex-1 px-2 py-2 gap-0",children:[d,c]}),e[10]=d,e[11]=c,e[12]=m):m=e[12];let u;return e[13]!==r||e[14]!==a||e[15]!==m?(u=s.jsxs("div",{className:"bg-sidebar flex h-full w-full flex-col","data-sidebar":"sidebar",children:[a,m,r]}),e[13]=r,e[14]=a,e[15]=m,e[16]=u):u=e[16],u}function De(t){const e=I.c(22),{item:n,onClose:i}=t;if(n.href){const d=n.external?"_blank":void 0,c=n.external?"noopener noreferrer":void 0;let m;e[0]!==n.icon?(m=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[0]=n.icon,e[1]=m):m=e[1];let u;e[2]!==n.label?(u=s.jsx("span",{className:"flex-1",children:n.label}),e[2]=n.label,e[3]=u):u=e[3];let f;return e[4]!==n.href||e[5]!==i||e[6]!==d||e[7]!==c||e[8]!==m||e[9]!==u?(f=s.jsxs("a",{href:n.href,target:d,rel:c,className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",onClick:i,children:[m,u]}),e[4]=n.href,e[5]=i,e[6]=d,e[7]=c,e[8]=m,e[9]=u,e[10]=f):f=e[10],f}let r;e[11]!==n||e[12]!==i?(r=()=>{n.onClick?.(),i()},e[11]=n,e[12]=i,e[13]=r):r=e[13];let l;e[14]!==n.icon?(l=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[14]=n.icon,e[15]=l):l=e[15];let o;e[16]!==n.label?(o=s.jsx("span",{className:"flex-1",children:n.label}),e[16]=n.label,e[17]=o):o=e[17];let a;return e[18]!==r||e[19]!==l||e[20]!==o?(a=s.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",children:[l,o]}),e[18]=r,e[19]=l,e[20]=o,e[21]=a):a=e[21],a}function It(t){const e=I.c(126),{user:n,userImage:i,menuItems:r,signOutItem:l,themeOptions:o,preferences:a,setPreferences:d,close:c,isMobile:m}=t;if(m){const O=n?.name??"U";let R;e[0]!==O||e[1]!==i?(R=s.jsx(Re,{url:i,fallback:O,shape:"circle",size:"sm",className:"shrink-0"}),e[0]=O,e[1]=i,e[2]=R):R=e[2];const Y=n?.name??"User";let K;e[3]!==Y?(K=s.jsx("p",{className:"text-sm font-medium truncate",children:Y}),e[3]=Y,e[4]=K):K=e[4];const ne=n?.email;let V;e[5]!==ne?(V=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:ne}),e[5]=ne,e[6]=V):V=e[6];let ie;e[7]!==K||e[8]!==V?(ie=s.jsxs("div",{className:"flex-1 min-w-0",children:[K,V]}),e[7]=K,e[8]=V,e[9]=ie):ie=e[9];let re;e[10]!==n?(re=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(Ri)},e[10]=n,e[11]=re):re=e[11];let ae;e[12]===Symbol.for("react.memo_cache_sentinel")?(ae=s.jsx(yt,{size:14}),e[12]=ae):ae=e[12];let xe;e[13]!==re?(xe=s.jsx(fe,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:re,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:ae})}),e[13]=re,e[14]=xe):xe=e[14];let be;e[15]===Symbol.for("react.memo_cache_sentinel")?(be=s.jsx(he,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[15]=be):be=e[15];let T;e[16]!==xe?(T=s.jsx(tt,{delayDuration:300,children:s.jsxs(pe,{children:[xe,be]})}),e[16]=xe,e[17]=T):T=e[17];let U;e[18]!==T||e[19]!==R||e[20]!==ie?(U=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-4 border-b border-border",children:[R,ie,T]}),e[18]=T,e[19]=R,e[20]=ie,e[21]=U):U=e[21];let X;if(e[22]!==c||e[23]!==r){let de;e[25]!==c?(de=Pe=>s.jsx(De,{item:Pe,onClose:c},Pe.key),e[25]=c,e[26]=de):de=e[26],X=r.map(de),e[22]=c,e[23]=r,e[24]=X}else X=e[24];let W;e[27]!==c||e[28]!==l?(W=s.jsx(De,{item:l,onClose:c}),e[27]=c,e[28]=l,e[29]=W):W=e[29];let ce;e[30]!==X||e[31]!==W?(ce=s.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:s.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[X,W]})}),e[30]=X,e[31]=W,e[32]=ce):ce=e[32];let Se;if(e[33]!==a.theme||e[34]!==d||e[35]!==o){let de;e[37]!==a.theme||e[38]!==d?(de=Pe=>{const{value:Qe,icon:Ss,label:_s}=Pe;return s.jsx("button",{type:"button","aria-label":_s,onClick:()=>d(Ns=>({...Ns,theme:Qe})),className:B("size-8 rounded-md flex items-center justify-center transition-colors",a.theme===Qe?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:Ss},Qe)},e[37]=a.theme,e[38]=d,e[39]=de):de=e[39],Se=o.map(de),e[33]=a.theme,e[34]=d,e[35]=o,e[36]=Se}else Se=e[36];let _e;e[40]!==Se?(_e=s.jsx("div",{className:"flex items-center gap-0.5",children:Se}),e[40]=Se,e[41]=_e):_e=e[41];const Ve=a.enableSounds?"Disable sounds":"Enable sounds";let Ne;e[42]!==d?(Ne=()=>d(Fi),e[42]=d,e[43]=Ne):Ne=e[43];const Xe=a.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let we;e[44]!==Xe?(we=B("size-8 rounded-md flex items-center justify-center transition-colors",Xe),e[44]=Xe,e[45]=we):we=e[45];let Ce;e[46]!==a.enableSounds?(Ce=a.enableSounds?s.jsx(St,{size:14}):s.jsx(_t,{size:14}),e[46]=a.enableSounds,e[47]=Ce):Ce=e[47];let ke;e[48]!==Ve||e[49]!==Ne||e[50]!==we||e[51]!==Ce?(ke=s.jsx("button",{type:"button","aria-label":Ve,onClick:Ne,className:we,children:Ce}),e[48]=Ve,e[49]=Ne,e[50]=we,e[51]=Ce,e[52]=ke):ke=e[52];let Me;e[53]===Symbol.for("react.memo_cache_sentinel")?(Me=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.30.0"]}),e[53]=Me):Me=e[53];let Ae;e[54]!==ke?(Ae=s.jsxs("div",{className:"flex items-center gap-2",children:[ke,Me]}),e[54]=ke,e[55]=Ae):Ae=e[55];let Ie;e[56]!==_e||e[57]!==Ae?(Ie=s.jsxs("div",{className:"flex items-center justify-between px-3 py-3 border-t border-border/50",children:[_e,Ae]}),e[56]=_e,e[57]=Ae,e[58]=Ie):Ie=e[58];let Oe;return e[59]!==U||e[60]!==ce||e[61]!==Ie?(Oe=s.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[U,ce,Ie]}),e[59]=U,e[60]=ce,e[61]=Ie,e[62]=Oe):Oe=e[62],Oe}const u=n?.name??"U";let f;e[63]!==u||e[64]!==i?(f=s.jsx(Re,{url:i,fallback:u,shape:"circle",size:"sm",className:"shrink-0"}),e[63]=u,e[64]=i,e[65]=f):f=e[65];const h=n?.name??"User";let p;e[66]!==h?(p=s.jsx("p",{className:"text-sm font-medium truncate",children:h}),e[66]=h,e[67]=p):p=e[67];const b=n?.email;let x;e[68]!==b?(x=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:b}),e[68]=b,e[69]=x):x=e[69];let g;e[70]!==p||e[71]!==x?(g=s.jsxs("div",{className:"flex-1 min-w-0",children:[p,x]}),e[70]=p,e[71]=x,e[72]=g):g=e[72];let j;e[73]!==n?(j=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(Ei)},e[73]=n,e[74]=j):j=e[74];let v;e[75]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(yt,{size:14}),e[75]=v):v=e[75];let y;e[76]!==j?(y=s.jsx(fe,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:j,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:v})}),e[76]=j,e[77]=y):y=e[77];let N;e[78]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(he,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[78]=N):N=e[78];let C;e[79]!==y?(C=s.jsx(tt,{delayDuration:300,children:s.jsxs(pe,{children:[y,N]})}),e[79]=y,e[80]=C):C=e[80];let _;e[81]!==C||e[82]!==f||e[83]!==g?(_=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 mx-1 mt-1",children:[f,g,C]}),e[81]=C,e[82]=f,e[83]=g,e[84]=_):_=e[84];let S;if(e[85]!==c||e[86]!==r){let O;e[88]!==c?(O=R=>s.jsx(De,{item:R,onClose:c},R.key),e[88]=c,e[89]=O):O=e[89],S=r.map(O),e[85]=c,e[86]=r,e[87]=S}else S=e[87];let w;e[90]!==c||e[91]!==l?(w=s.jsx(De,{item:l,onClose:c}),e[90]=c,e[91]=l,e[92]=w):w=e[92];let A;e[93]!==S||e[94]!==w?(A=s.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[S,w]}),e[93]=S,e[94]=w,e[95]=A):A=e[95];let k;if(e[96]!==a.theme||e[97]!==d||e[98]!==o){let O;e[100]!==a.theme||e[101]!==d?(O=R=>{const{value:Y,icon:K,label:ne}=R;return s.jsx("button",{type:"button","aria-label":ne,onClick:()=>d(V=>({...V,theme:Y})),className:B("size-7 rounded-md flex items-center justify-center transition-colors",a.theme===Y?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:K},Y)},e[100]=a.theme,e[101]=d,e[102]=O):O=e[102],k=o.map(O),e[96]=a.theme,e[97]=d,e[98]=o,e[99]=k}else k=e[99];let $;e[103]!==k?($=s.jsx("div",{className:"flex items-center gap-0.5",children:k}),e[103]=k,e[104]=$):$=e[104];const z=a.enableSounds?"Disable sounds":"Enable sounds";let M;e[105]!==d?(M=()=>d(Di),e[105]=d,e[106]=M):M=e[106];const H=a.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let P;e[107]!==H?(P=B("size-7 rounded-md flex items-center justify-center transition-colors",H),e[107]=H,e[108]=P):P=e[108];let F;e[109]!==a.enableSounds?(F=a.enableSounds?s.jsx(St,{size:14}):s.jsx(_t,{size:14}),e[109]=a.enableSounds,e[110]=F):F=e[110];let E;e[111]!==z||e[112]!==M||e[113]!==P||e[114]!==F?(E=s.jsx("button",{type:"button","aria-label":z,onClick:M,className:P,children:F}),e[111]=z,e[112]=M,e[113]=P,e[114]=F,e[115]=E):E=e[115];let D;e[116]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.30.0"]}),e[116]=D):D=e[116];let G;e[117]!==E?(G=s.jsxs("div",{className:"flex items-center gap-2",children:[E,D]}),e[117]=E,e[118]=G):G=e[118];let Q;e[119]!==$||e[120]!==G?(Q=s.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5 border-t border-border/50",children:[$,G]}),e[119]=$,e[120]=G,e[121]=Q):Q=e[121];let Z;return e[122]!==_||e[123]!==A||e[124]!==Q?(Z=s.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:s.jsxs("div",{className:"flex flex-col",children:[_,A,Q]})}),e[122]=_,e[123]=A,e[124]=Q,e[125]=Z):Z=e[125],Z}function Di(t){return{...t,enableSounds:!t.enableSounds}}function Ei(){te.success("User ID copied")}function Fi(t){return{...t,enableSounds:!t.enableSounds}}function Ri(){te.success("User ID copied")}function rt(){const t=I.c(34),{data:e}=ge.useSession(),{org:n}=se(),i=oe();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org",shouldThrow:!1},t[0]=r):r=t[0];const o=ks(r)?.params.org,[a,d]=As(),c=mt(),[m,u]=L.useState(!1),f=e?.user,h=f?.image;let p;t[1]===Symbol.for("react.memo_cache_sentinel")?(p=()=>u(!1),t[1]=p):p=t[1];const b=p;let x;t[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ut,{size:16}),t[2]=x):x=t[2];let g;t[3]!==i||t[4]!==o?(g={key:"preferences",label:"Preferences",icon:x,onClick:()=>{i({to:"/$org/settings/profile",params:{org:o??""}})}},t[3]=i,t[4]=o,t[5]=g):g=t[5];let j;t[6]!==n||t[7]!==i?(j=n?[{key:"install-app",label:"Add to Home Screen",icon:s.jsx(Js,{size:16}),onClick:()=>{i({to:"/$org/install",params:{org:n.slug}})}}]:[],t[6]=n,t[7]=i,t[8]=j):j=t[8];let v;t[9]===Symbol.for("react.memo_cache_sentinel")?(v={key:"terms",label:"Terms of Use",icon:s.jsx(en,{size:16}),href:"https://www.decocms.com/terms-of-use",external:!0},t[9]=v):v=t[9];let y;t[10]===Symbol.for("react.memo_cache_sentinel")?(y={key:"privacy",label:"Privacy Policy",icon:s.jsx(ln,{size:16}),href:"https://www.decocms.com/privacy-policy",external:!0},t[10]=y):y=t[10];let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N={key:"github",label:"decocms/studio",icon:s.jsx(Is,{className:"w-4 h-4"}),href:"https://github.com/decocms/studio",external:!0},t[11]=N):N=t[11];let C;t[12]===Symbol.for("react.memo_cache_sentinel")?(C={key:"community",label:"Community",icon:s.jsx(on,{size:16}),href:"https://decocms.com/discord",external:!0},t[12]=C):C=t[12];let _;t[13]===Symbol.for("react.memo_cache_sentinel")?(_={key:"homepage",label:"Homepage",icon:s.jsx(Zs,{size:16}),href:"https://decocms.com",external:!0},t[13]=_):_=t[13];let S;t[14]!==g||t[15]!==j?(S=[g,...j,v,y,N,C,_],t[14]=g,t[15]=j,t[16]=S):S=t[16];const w=S;let A;t[17]===Symbol.for("react.memo_cache_sentinel")?(A={key:"logout",label:"Sign out",icon:s.jsx(tn,{size:16}),onClick:Bi},t[17]=A):A=t[17];const k=A;let $;t[18]===Symbol.for("react.memo_cache_sentinel")?($={value:"light",icon:s.jsx(nn,{size:14}),label:"Light theme"},t[18]=$):$=t[18];let z;t[19]===Symbol.for("react.memo_cache_sentinel")?(z={value:"dark",icon:s.jsx(rn,{size:14}),label:"Dark theme"},t[19]=z):z=t[19];let M;t[20]===Symbol.for("react.memo_cache_sentinel")?(M=[$,z,{value:"system",icon:s.jsx(st,{size:14}),label:"System theme"}],t[20]=M):M=t[20];const H=M;let P;t[21]!==c||t[22]!==w||t[23]!==a||t[24]!==d||t[25]!==f||t[26]!==h?(P={user:f,userImage:h,menuItems:w,signOutItem:k,themeOptions:H,preferences:a,setPreferences:d,close:b,isMobile:c},t[21]=c,t[22]=w,t[23]=a,t[24]=d,t[25]=f,t[26]=h,t[27]=P):P=t[27];const F=P;let E;return t[28]!==c||t[29]!==m||t[30]!==F||t[31]!==f?.name||t[32]!==h?(E=s.jsx(s.Fragment,{children:c?s.jsxs(Qt,{open:m,onOpenChange:u,direction:"bottom",children:[s.jsxs("button",{type:"button",onClick:()=>u(!0),className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[s.jsx(Re,{url:h,fallback:f?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:f?.name??"Account"})]}),s.jsxs(Yt,{className:"h-[80dvh] p-0",children:[s.jsx(Jt,{className:"sr-only",children:"Account"}),s.jsx(It,{...F})]})]}):s.jsxs(Ge,{open:m,onOpenChange:u,children:[s.jsx(ze,{asChild:!0,children:s.jsxs(J,{tooltip:f?.name??"Account",className:"rounded-md",children:[s.jsx(Re,{url:h,fallback:f?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:f?.name??"Account"})]})}),s.jsx(We,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:Li,children:s.jsx(It,{...F})})]})}),t[28]=c,t[29]=m,t[30]=F,t[31]=f?.name,t[32]=h,t[33]=E):E=t[33],E}function Li(t){return t.preventDefault()}function Bi(){me("signed_out",{source:"account_popover"}),$s(),ge.signOut()}const $t=["requires_action","in_progress","failed","expired","completed"];function Hi(t){const e=new Map($t.map(n=>[n,[]]));for(const n of t){const i=n.status??"completed";(e.get(i)??e.get("completed")).push(n)}return $t.map(n=>({status:n,threads:e.get(n)}))}function us(t){const e=I.c(4),{onClick:n}=t;let i,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(it,{}),r=s.jsx("span",{children:"Add repo"}),e[0]=i,e[1]=r):(i=e[0],r=e[1]);let l;return e[2]!==n?(l=s.jsxs(J,{tooltip:"Add repo",onClick:n,children:[i,r]}),e[2]=n,e[3]=l):l=e[3],l}function Ui(t){const e=I.c(41),{onAddNew:n}=t,{org:i}=se(),r=Gt(),l=oe(),o=yn();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const c=Ue(a).virtualmcpid??null;let m;e[1]!==c?(m=!!c&&!es(c),e[1]=c,e[2]=m):m=e[2];const u=m;let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f={slug:"mcp-github"},e[3]=f):f=e[3];const p=gn(f).filter(Wi),b=ht(),g=qe(u?c:null)?.metadata?.githubRepo?.connectionId??null;let j;e[4]!==i.id||e[5]!==i.slug?(j={connectionId:ts,orgId:i.id,orgSlug:i.slug},e[4]=i.id,e[5]=i.slug,e[6]=j):j=e[6];const v=Zt(j);if(p.length===0){let O;return e[7]!==n?(O=s.jsx(us,{onClick:n}),e[7]=n,e[8]=O):O=e[8],O}let y;e[9]!==c||e[10]!==l||e[11]!==i.id||e[12]!==r||e[13]!==v?(y=async(O,R)=>{await v.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:c,data:{metadata:{githubRepo:O}}}}),vt(r,i.id),te.success(`Previewing ${R}`),l({to:".",search:Gi,replace:!0})},e[9]=c,e[10]=l,e[11]=i.id,e[12]=r,e[13]=v,e[14]=y):y=e[14];const N=y;let C;e[15]!==b||e[16]!==o||e[17]!==i.id||e[18]!==r||e[19]!==v?(C=async(O,R,Y)=>{const K=b.find(ie=>{const re=ie.metadata?.githubRepo;return re?.owner?.toLowerCase()===O.owner.toLowerCase()&&re?.name?.toLowerCase()===O.name.toLowerCase()});if(K){o(K.id,{search:{main:"preview"}});return}const V=(await v.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:O.name,description:`Imported from ${Y}`,status:"active",pinned:!1,icon:null,connections:[{connection_id:R}],metadata:{githubRepo:O,instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}}}}})).structuredContent?.item?.id;if(vt(r,i.id),!V)throw new Error("Failed to create the repo agent");te.success(`Created ${Y}`),o(V,{search:{main:"preview"}})},e[15]=b,e[16]=o,e[17]=i.id,e[18]=r,e[19]=v,e[20]=C):C=e[20];const _=C;let S;e[21]!==N||e[22]!==u||e[23]!==_?(S=async O=>{const R=nt(O);if(!R)return;const Y=`${R.owner}/${R.repo}`,K={owner:R.owner,name:R.repo,url:`https://github.com/${R.owner}/${R.repo}`,installationId:R.installationId,connectionId:O.id};try{u?await N(K,Y):await _(K,O.id,Y)}catch(ne){const V=ne;te.error("Failed to set preview repo: "+(V instanceof Error?V.message:"Unknown error"))}},e[21]=N,e[22]=u,e[23]=_,e[24]=S):S=e[24];const w=S,A=hn;let k;e[25]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(pn,{asChild:!0,children:s.jsxs(J,{tooltip:"Add repo",children:[s.jsx(it,{}),s.jsx("span",{children:"Add repo"})]})}),e[25]=k):k=e[25];const $=fn,z="start",M="right",H="w-56";let P;e[26]!==g||e[27]!==w?(P=O=>{const R=nt(O);return R?s.jsxs(wt,{onSelect:()=>w(O),children:[s.jsx(it,{className:"size-4 text-muted-foreground"}),s.jsxs("span",{className:"flex-1 truncate",children:[R.owner,"/",R.repo]}),O.id===g&&s.jsx(ft,{className:"size-4"})]},O.id):null},e[26]=g,e[27]=w,e[28]=P):P=e[28];const F=p.map(P);let E;e[29]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(xn,{}),e[29]=E):E=e[29];let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx($e,{className:"size-4"}),e[30]=D):D=e[30];let G;e[31]!==n?(G=s.jsxs(wt,{onSelect:n,children:[D,"Add new repo…"]}),e[31]=n,e[32]=G):G=e[32];let Q;e[33]!==$||e[34]!==F||e[35]!==G?(Q=s.jsxs($,{align:z,side:M,className:H,children:[F,E,G]}),e[33]=$,e[34]=F,e[35]=G,e[36]=Q):Q=e[36];let Z;return e[37]!==A||e[38]!==Q||e[39]!==k?(Z=s.jsxs(A,{children:[k,Q]}),e[37]=A,e[38]=Q,e[39]=k,e[40]=Z):Z=e[40],Z}function Gi(t){return{...t,main:"preview"}}function Wi(t){return nt(t)!==null&&vn(t)}function qi(){const t=I.c(4),[e,n]=L.useState(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(us,{onClick:()=>n(!0)}),t[0]=i):i=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(L.Suspense,{fallback:i,children:s.jsx(Ui,{onAddNew:()=>n(!0)})}),t[1]=r):r=t[1];let l;return t[2]!==e?(l=s.jsxs(s.Fragment,{children:[r,s.jsx(jn,{open:e,onOpenChange:n,mode:"connection"})]}),t[2]=e,t[3]=l):l=t[3],l}function lt(t){const e=I.c(43),{variant:n}=t===void 0?{}:t,i=n===void 0?"icon":n,r=zn(),[l,o]=L.useState(!1);let a,d;if(e[0]!==r.capabilities||e[1]!==r.hostname||e[2]!==r.machineId||e[3]!==r.online){const v=Tn(r.capabilities);a=r.online?"Desktop linked":"Connect desktop",d=r.online?s.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[s.jsx("span",{className:"font-medium",children:r.hostname??r.machineId??"Desktop linked"}),s.jsx("span",{className:"text-muted-foreground",children:v.length>0?`Available: ${v.join(", ")}`:"No CLI agents detected"})]}):s.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),e[0]=r.capabilities,e[1]=r.hostname,e[2]=r.machineId,e[3]=r.online,e[4]=a,e[5]=d}else a=e[4],d=e[5];const c=d;if(i==="full"){let v,y;e[6]===Symbol.for("react.memo_cache_sentinel")?(v=()=>o(!0),y=s.jsx(st,{}),e[6]=v,e[7]=y):(v=e[6],y=e[7]);let N;e[8]!==a?(N=s.jsx("span",{children:a}),e[8]=a,e[9]=N):N=e[9];let C;e[10]!==r.online?(C=r.online&&s.jsx("span",{className:"ml-auto size-2 rounded-full bg-success animate-pulse"}),e[10]=r.online,e[11]=C):C=e[11];let _;e[12]!==a||e[13]!==N||e[14]!==C?(_=s.jsx(fe,{asChild:!0,children:s.jsxs(J,{tooltip:a,onClick:v,children:[y,N,C]})}),e[12]=a,e[13]=N,e[14]=C,e[15]=_):_=e[15];let S;e[16]!==c?(S=s.jsx(he,{side:"right",children:c}),e[16]=c,e[17]=S):S=e[17];let w;e[18]!==_||e[19]!==S?(w=s.jsxs(pe,{children:[_,S]}),e[18]=_,e[19]=S,e[20]=w):w=e[20];let A;e[21]!==l?(A=s.jsx(Ct,{open:l,onOpenChange:o}),e[21]=l,e[22]=A):A=e[22];let k;return e[23]!==A||e[24]!==w?(k=s.jsxs(s.Fragment,{children:[w,A]}),e[23]=A,e[24]=w,e[25]=k):k=e[25],k}let m;e[26]===Symbol.for("react.memo_cache_sentinel")?(m=()=>o(!0),e[26]=m):m=e[26];const u=r.online?"Desktop linked":"Connect your desktop";let f;e[27]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(st,{size:16}),e[27]=f):f=e[27];let h;e[28]!==r.online?(h=r.online&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),e[28]=r.online,e[29]=h):h=e[29];let p;e[30]!==u||e[31]!==h?(p=s.jsx(fe,{asChild:!0,children:s.jsxs(je,{onClick:m,"aria-label":u,children:[f,h]})}),e[30]=u,e[31]=h,e[32]=p):p=e[32];let b;e[33]!==c?(b=s.jsx(he,{side:"bottom",children:c}),e[33]=c,e[34]=b):b=e[34];let x;e[35]!==p||e[36]!==b?(x=s.jsxs(pe,{children:[p,b]}),e[35]=p,e[36]=b,e[37]=x):x=e[37];let g;e[38]!==l?(g=s.jsx(Ct,{open:l,onOpenChange:o}),e[38]=l,e[39]=g):g=e[39];let j;return e[40]!==g||e[41]!==x?(j=s.jsxs(s.Fragment,{children:[x,g]}),e[40]=g,e[41]=x,e[42]=j):j=e[42],j}class Ki extends L.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){}render(){return this.state.hasError?null:this.props.children}}function Vi(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Xi(){const t=I.c(17),e=oe(),{org:n}=se(),{hasDecoKey:i,balanceDollars:r}=kn();if(!i)return null;let l;t[0]!==r?(l=r!=null?`Credits: $${r.toFixed(2)}`:"Credits",t[0]=r,t[1]=l):l=t[1];let o;t[2]!==r?(o=B(r!=null&&Vi(r)),t[2]=r,t[3]=o):o=t[3];let a;t[4]!==e||t[5]!==n.slug?(a=()=>e({to:"/$org/settings/ai-providers",params:{org:n.slug}}),t[4]=e,t[5]=n.slug,t[6]=a):a=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(an,{}),t[7]=d):d=t[7];let c;t[8]!==r?(c=r!=null?`$${r.toFixed(2)}`:"Credits",t[8]=r,t[9]=c):c=t[9];let m;t[10]!==c?(m=s.jsx("span",{children:c}),t[10]=c,t[11]=m):m=t[11];let u;return t[12]!==l||t[13]!==o||t[14]!==a||t[15]!==m?(u=s.jsx(ue,{children:s.jsx(q,{children:s.jsxs(J,{tooltip:l,className:o,onClick:a,children:[d,m]})})}),t[12]=l,t[13]=o,t[14]=a,t[15]=m,t[16]=u):u=t[16],u}function zt(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Ki,{children:s.jsx(L.Suspense,{fallback:null,children:s.jsx(Xi,{})})}),t[0]=e):e=t[0],e}function Tt(){const t=I.c(7),e=oe(),{org:n}=se();let i;t[0]!==e||t[1]!==n.slug?(i=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=i):i=t[2];let r,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ut,{}),l=s.jsx("span",{children:"Settings"}),t[3]=r,t[4]=l):(r=t[3],l=t[4]);let o;return t[5]!==i?(o=s.jsxs(J,{tooltip:"Settings",onClick:i,children:[r,l]}),t[5]=i,t[6]=o):o=t[6],o}function Mt(){const t=I.c(5),[e,n]=L.useState(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(q,{children:s.jsx(Cn,{trigger:s.jsxs(J,{tooltip:"Invite members",children:[s.jsx(cn,{}),s.jsx("span",{children:"Invite members"})]})})}),t[0]=i):i=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{children:s.jsx(qi,{})}),t[1]=r):r=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(ue,{className:"gap-0.5",children:[i,r,s.jsx(q,{children:s.jsxs(J,{tooltip:"Add connection",onClick:()=>n(!0),children:[s.jsx(sn,{}),s.jsx("span",{children:"Add connection"})]})})]}),t[2]=l):l=t[2];let o;return t[3]!==e?(o=s.jsxs(s.Fragment,{children:[l,s.jsx(An,{open:e,onOpenChange:n,mode:"browse"})]}),t[3]=e,t[4]=o):o=t[4],o}function Qi(){const t=I.c(10),{state:e}=ye();if(e==="collapsed"){let d,c;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Mt,{}),c=s.jsx(zt,{}),t[0]=d,t[1]=c):(d=t[0],c=t[1]);let m;t[2]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(q,{children:s.jsx("div",{className:"flex justify-center",children:s.jsx(lt,{})})}),t[2]=m):m=t[2];let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(q,{children:s.jsx(Tt,{})}),t[3]=u):u=t[3];let f;return t[4]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs(et,{className:"px-2 pb-3 gap-1",children:[d,c,s.jsxs(ue,{children:[m,u,s.jsx(q,{children:s.jsx(rt,{})})]})]}),t[4]=f):f=t[4],f}let i,r;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Mt,{}),r=s.jsx(zt,{}),t[5]=i,t[6]=r):(i=t[5],r=t[6]);let l;t[7]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(q,{children:s.jsx(lt,{variant:"full"})}),t[7]=l):l=t[7];let o;t[8]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(q,{children:s.jsx(Tt,{})}),t[8]=o):o=t[8];let a;return t[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs(et,{className:"px-2 pb-3 gap-0.5",children:[i,r,s.jsxs(ue,{className:"gap-0.5",children:[l,o,s.jsx(q,{children:s.jsx(rt,{})})]})]}),t[9]=a):a=t[9],a}function Yi(){const t=I.c(8),e=oe(),{org:n}=se(),{setOpenMobile:i}=ye();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(ue,{children:s.jsx(q,{children:s.jsx(rt,{})})})}),t[0]=r):r=t[0];let l;t[1]!==e||t[2]!==n.slug||t[3]!==i?(l=()=>{e({to:"/$org/settings",params:{org:n.slug}}),i(!1)},t[1]=e,t[2]=n.slug,t[3]=i,t[4]=l):l=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ut,{className:"size-4"}),t[5]=o):o=t[5];let a;return t[6]!==l?(a=s.jsx(et,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[r,s.jsx(je,{"aria-label":"Settings",onClick:l,children:o})]})}),t[6]=l,t[7]=a):a=t[7],a}function Ot(t){const e=I.c(15),{className:n,wrapperClassName:i,children:r}=t,[l,o]=L.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=g=>{g&&o(g.scrollHeight>g.clientHeight+1)},e[0]=a):a=e[0];const d=a;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=g=>{const j=g.currentTarget;o(j.scrollHeight-j.scrollTop>j.clientHeight+1)},e[1]=c):c=e[1];const m=c;let u;e[2]!==i?(u=B("relative",i),e[2]=i,e[3]=u):u=e[3];let f;e[4]!==r||e[5]!==n?(f=s.jsx("div",{ref:d,onScroll:m,className:n,children:r}),e[4]=r,e[5]=n,e[6]=f):f=e[6];const h=l?"opacity-100":"opacity-0";let p;e[7]!==h?(p=B("pointer-events-none absolute right-0 bottom-0 left-0 h-10 bg-gradient-to-t from-sidebar to-transparent transition-opacity duration-150",h),e[7]=h,e[8]=p):p=e[8];let b;e[9]!==p?(b=s.jsx("div",{"aria-hidden":!0,className:p}),e[9]=p,e[10]=b):b=e[10];let x;return e[11]!==u||e[12]!==f||e[13]!==b?(x=s.jsxs("div",{className:u,children:[f,b]}),e[11]=u,e[12]=f,e[13]=b,e[14]=x):x=e[14],x}function Ji(t){const e=I.c(8),{virtualMcpId:n,size:i,showAutomationBadge:r}=t,l=i===void 0?"sm":i;let o;e[0]!==l||e[1]!==n?(o=n?s.jsx(Zi,{virtualMcpId:n,size:l}):s.jsx(ve,{icon:null,name:"?",size:l}),e[0]=l,e[1]=n,e[2]=o):o=e[2];let a;e[3]!==r?(a=r&&s.jsx("span",{"aria-label":"Automation-triggered",className:"absolute -bottom-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full bg-blue-500 border border-blue-600 text-white",children:s.jsx(rs,{size:10,className:"text-white"})}),e[3]=r,e[4]=a):a=e[4];let d;return e[5]!==o||e[6]!==a?(d=s.jsxs("div",{className:"relative shrink-0",children:[o,a]}),e[5]=o,e[6]=a,e[7]=d):d=e[7],d}function Zi(t){const e=I.c(6),{virtualMcpId:n,size:i}=t,r=qe(n);if(!r){let a;return e[0]!==i?(a=s.jsx(ve,{icon:null,name:"?",size:i}),e[0]=i,e[1]=a):a=e[1],a}const l=r.icon??null;let o;return e[2]!==r.title||e[3]!==i||e[4]!==l?(o=s.jsx(ve,{icon:l,name:r.title,size:i}),e[2]=r.title,e[3]=i,e[4]=l,e[5]=o):o=e[5],o}function Pt(t){const e=I.c(36),{open:n,onOpenChange:i}=t,[r,l]=L.useState(""),{org:o}=se(),{setTaskId:a}=xt(),d=is();let c,m,u;e[0]!==o.id||e[1]!==r?(u=r.trim(),m=Ts,c=zs.globalSearch(o.id,u),e[0]=o.id,e[1]=r,e[2]=c,e[3]=m,e[4]=u):(c=e[2],m=e[3],u=e[4]);const f=n&&u.length>0;let h;e[5]!==d||e[6]!==u?(h=async()=>await d.call("GLOBAL_SEARCH",{query:u,limit:20}),e[5]=d,e[6]=u,e[7]=h):h=e[7];let p;e[8]!==c||e[9]!==f||e[10]!==h?(p={queryKey:c,enabled:f,queryFn:h,staleTime:1e4},e[8]=c,e[9]=f,e[10]=h,e[11]=p):p=e[11];const{data:b,isFetching:x}=m(p);let g;e[12]!==b?.items?(g=b?.items??[],e[12]=b?.items,e[13]=g):g=e[13];const j=g;let v;e[14]!==i?(v=z=>{z||l(""),i(z)},e[14]=i,e[15]=v):v=e[15];const y=v;let N;e[16]!==y||e[17]!==a?(N=z=>{y(!1),a(z.id,z.virtual_mcp_id??void 0)},e[16]=y,e[17]=a,e[18]=N):N=e[18];const C=N;let _;e[19]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsxs(Rn,{className:"sr-only",children:[s.jsx(Ln,{children:"Search"}),s.jsx(Bn,{children:"Search across your organization's resources."})]}),e[19]=_):_=e[19];let S;e[20]!==r?(S=s.jsx(qn,{value:r,onValueChange:l,placeholder:"Search..."}),e[20]=r,e[21]=S):S=e[21];let w;e[22]!==C||e[23]!==x||e[24]!==j||e[25]!==u?(w=u?x&&j.length===0?s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Searching…"}):j.length===0?s.jsx(Gn,{children:"No results."}):j.map(z=>z.type==="thread"?s.jsxs(Wn,{value:`thread:${z.id}:${z.title}`,onSelect:()=>C(z),className:"gap-2.5",children:[s.jsx(Ji,{virtualMcpId:z.virtual_mcp_id,size:"xs"}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("div",{className:"text-sm text-foreground truncate",children:z.title||"Untitled thread"})}),s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:new Date(z.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]},`thread:${z.id}`):null):s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Start typing to search."}),e[22]=C,e[23]=x,e[24]=j,e[25]=u,e[26]=w):w=e[26];let A;e[27]!==w?(A=s.jsx(Kn,{children:w}),e[27]=w,e[28]=A):A=e[28];let k;e[29]!==S||e[30]!==A?(k=s.jsxs(Hn,{className:"overflow-hidden p-0",closeButtonClassName:"hidden",children:[_,s.jsxs(Vn,{shouldFilter:!1,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:[S,A]})]}),e[29]=S,e[30]=A,e[31]=k):k=e[31];let $;return e[32]!==y||e[33]!==n||e[34]!==k?($=s.jsx(Un,{open:n,onOpenChange:y,children:k}),e[32]=y,e[33]=n,e[34]=k,e[35]=$):$=e[35],$}function er(t){return t==="ephemeral"||t.startsWith("thread:")}function fs(t){const e=I.c(40),{task:n,isActive:i,onClick:r,onArchive:l,showAutomationBadge:o,showAgentIcon:a,hideStatusIdle:d,indented:c}=t,m=Yn(n.status),u=m.icon,f=n.metadata?.kind==="tool_call_run",h=qe(f?void 0:n.virtual_mcp_id);let p;e[0]!==h?(p=In(h),e[0]=h,e[1]=p):p=e[1];const b=p;Jn(6e4);const x=o||!!n.trigger_id,g=n.id,j="button",v=0;let y;e[2]!==r?(y=G=>{G.target===G.currentTarget&&(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),r())},e[2]=r,e[3]=y):y=e[3];const N=c?"-ml-4 pl-6":"pl-2",C=i?"bg-accent text-accent-foreground":"hover:bg-accent/60";let _;e[4]!==N||e[5]!==C?(_=B("group/row flex items-center gap-2 py-1.5 pr-2 rounded-md cursor-pointer transition-colors",N,"focus-visible:outline-none focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50",C),e[4]=N,e[5]=C,e[6]=_):_=e[6];let S;e[7]!==f||e[8]!==a||e[9]!==h?.icon||e[10]!==h?.title?(S=a&&!f&&s.jsx(ve,{icon:h?.icon??null,name:h?.title??"?",size:"2xs"}),e[7]=f,e[8]=a,e[9]=h?.icon,e[10]=h?.title,e[11]=S):S=e[11];let w;e[12]!==x?(w=x&&s.jsx(rs,{size:12,"aria-label":"Automation-triggered",className:"shrink-0 text-blue-500"}),e[12]=x,e[13]=w):w=e[13];const A=n.title||"Untitled task";let k;e[14]!==A?(k=s.jsx("div",{className:"text-sm text-foreground truncate",children:A}),e[14]=A,e[15]=k):k=e[15];let $;e[16]!==w||e[17]!==k?($=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[w,k]}),e[16]=w,e[17]=k,e[18]=$):$=e[18];let z;e[19]!==b||e[20]!==i||e[21]!==n.branch||e[22]!==n.updated_at?(z=n.updated_at&&s.jsxs("div",{className:B("flex items-center gap-1 text-[11px] min-w-0",i?"text-accent-foreground/70":"text-muted-foreground/60"),children:[n.branch&&!er(n.branch)?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"truncate font-mono",children:n.branch}),s.jsx("span",{className:"shrink-0",children:"·"})]}):b?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"truncate",children:[b.owner,"/",b.name]}),s.jsx("span",{className:"shrink-0",children:"·"})]}):null,s.jsx("span",{className:"shrink-0",children:ei(new Date(n.updated_at))})]}),e[19]=b,e[20]=i,e[21]=n.branch,e[22]=n.updated_at,e[23]=z):z=e[23];let M;e[24]!==$||e[25]!==z?(M=s.jsxs("div",{className:"flex-1 min-w-0",children:[$,z]}),e[24]=$,e[25]=z,e[26]=M):M=e[26];const H="shrink-0 grid [grid-template-areas:'slot'] items-center justify-items-center",P=!d&&s.jsx("span",{className:B("[grid-area:slot] flex size-7 items-center justify-center pointer-events-none transition-opacity",l&&"group-hover/row:opacity-0"),"aria-label":m.label,children:s.jsx(u,{size:14,className:B(m.iconClassName,n.status==="in_progress"&&"animate-spin")})});let F;e[27]!==l?(F=l&&s.jsxs(pe,{children:[s.jsx(fe,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":"Archive task",onClick:G=>{G.stopPropagation(),l()},className:"[grid-area:slot] opacity-0 pointer-events-none group-hover/row:opacity-100 group-hover/row:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto transition-opacity flex size-7 items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:s.jsx(Ms,{size:14})})}),s.jsx(he,{side:"right",children:"Archive"})]}),e[27]=l,e[28]=F):F=e[28];let E;e[29]!==P||e[30]!==F?(E=s.jsxs("div",{className:H,children:[P,F]}),e[29]=P,e[30]=F,e[31]=E):E=e[31];let D;return e[32]!==r||e[33]!==M||e[34]!==E||e[35]!==y||e[36]!==_||e[37]!==S||e[38]!==n.id?(D=s.jsxs("div",{"data-task-id":g,role:j,tabIndex:v,onClick:r,onKeyDown:y,className:_,children:[S,M,E]}),e[32]=r,e[33]=M,e[34]=E,e[35]=y,e[36]=_,e[37]=S,e[38]=n.id,e[39]=D):D=e[39],D}const tr="sidebar.group.expanded.";function sr(t,e){const n=I.c(3),[i,r]=He(`${tr}${t}`,e);let l;return n[0]!==i||n[1]!==r?(l=[i,r],n[0]=i,n[1]=r,n[2]=l):l=n[2],l}function hs(t){const e=I.c(12),{onClick:n,isFetching:i,indented:r}=t,l=r?"-ml-4 pl-6 pr-2":"px-2";let o;e[0]!==l?(o=B("flex items-center gap-2 py-1.5 rounded-md text-sm text-muted-foreground",l,"hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50","transition-colors disabled:cursor-progress disabled:opacity-60"),e[0]=l,e[1]=o):o=e[1];let a;e[2]!==i?(a=i&&s.jsx(Wt,{size:14,className:"animate-spin"}),e[2]=i,e[3]=a):a=e[3];const d=i?"Loading…":"Show more";let c;e[4]!==d?(c=s.jsx("span",{children:d}),e[4]=d,e[5]=c):c=e[5];let m;return e[6]!==i||e[7]!==n||e[8]!==o||e[9]!==a||e[10]!==c?(m=s.jsxs("button",{type:"button","aria-label":"Show more tasks",onClick:n,disabled:i,className:o,children:[a,c]}),e[6]=i,e[7]=n,e[8]=o,e[9]=a,e[10]=c,e[11]=m):m=e[11],m}function nr(t,e,n,i){return[t,e,n,i.type,i.member,i.currentUserId??""].join("|")}function ir(t){return t.member==="mine"&&!t.currentUserId}const ps=4;let Fe=0;const ot=[];function rr(){for(;Fe<ps&&ot.length>0;){const t=ot.shift();t&&t()}}function xs(t){return new Promise((e,n)=>{const i=()=>{Fe++,t().then(e,n).finally(()=>{Fe--,rr()})};Fe<ps?i():ot.push(i)})}const Ke=10;function Dt(t,e,n,i,r){const l={hidden:!1};i.member==="mine"&&i.currentUserId&&(l.created_by=i.currentUserId),i.type==="automation"&&(l.has_trigger=!0),i.type==="manual"&&(l.has_trigger=!1);const o={where:l,limit:r,offset:n,orderBy:[{field:["updated_at"],direction:"desc"}]};return o.status=e,o}function lr(t,e,n,i){let r=0;for(const l of t)gs(l,e,n,i)&&r++;return r}function Ye(t,e,n,i){return lr(t,e,n,i)}function or(t,e){return!!(t>=Ke||t===0&&e)}function Et(t,e){return t<e}function ar(t,e){return e===!1?!1:e===!0?!0:t}function gs(t,e,n,i){return!(t.hidden||(t.status??"completed")!==n||i.member==="mine"&&i.currentUserId&&t.created_by!==i.currentUserId||i.type==="automation"&&!t.trigger_id||i.type==="manual"&&t.trigger_id)}const Be=new Map,Ee=new Map;function cr(t,e){return e?t>=Ke?!0:null:!1}function Ft(t){return Be.get(t)}function dr(t,e){Be.set(t,e)}function mr(t,e,n){const i=Be.get(t);if(i!==void 0){n(i);return}let r=Ee.get(t);r||(r=xs(e).then(l=>(Be.set(t,l),Ee.delete(t),l)).catch(()=>(Ee.delete(t),Promise.reject(new Error("group probe failed")))),Ee.set(t,r)),r.then(n,()=>n(!1))}function Rt(t){const e=t,n=Array.isArray(e.items)?e.items:[];return{items:n,hasMore:e.hasMore??n.length===Ke,totalCount:typeof e.totalCount=="number"?e.totalCount:void 0}}function ur(t,e,n,i,r){let l=0;for(const o of t)e.has(o.id)||gs(o,n,i,r)&&l++;return l}function fr(t,e,n,i){const r=I.c(8),{org:l}=se(),o=nr(l.id,t,e,n);let a;r[0]!==n?(a=ir(n),r[0]=n,r[1]=a):a=r[1];const d=a,[c,m]=L.useState({isFetching:!1,isProbing:!1,identity:o,probeSubscribedIdentity:null,serverHasMore:null});c.identity!==o&&m({isFetching:!1,isProbing:!1,identity:o,probeSubscribedIdentity:null,serverHasMore:null});const u=Dn(),{threads:f,hasMore:h}=pt(),p=Ye(f,t,e,n),b=or(p,h),x=cr(p,h),g=is();if(c.identity===o&&c.serverHasMore===null){const _=x??Ft(o);_!==void 0&&m({isFetching:!1,isProbing:!1,identity:o,probeSubscribedIdentity:c.probeSubscribedIdentity,serverHasMore:_})}!d&&c.identity===o&&c.serverHasMore===null&&x===null&&Ft(o)===void 0&&c.probeSubscribedIdentity!==o&&(m(_=>_.identity===o?{..._,isProbing:!0,probeSubscribedIdentity:o}:_),mr(o,async()=>{const _=Dt(t,e,0,n,1),S=await g.call("COLLECTION_THREADS_LIST",_),{totalCount:w}=Rt(S),A=Ye(u.threads.get(),t,e,n);return w===void 0?!1:Et(A,w)},_=>{m(S=>S.identity!==o?S:{...S,isProbing:!1,serverHasMore:_})}));const v=async function(){if(c.isFetching||c.isProbing||d)return;const S=o;m(w=>w.identity===S?{...w,isFetching:!0}:w);try{const w=Ye(f,t,e,n),A=Dt(t,e,w,n,Ke),k=await xs(()=>g.call("COLLECTION_THREADS_LIST",A)),{items:$,hasMore:z,totalCount:M}=Rt(k),H=new Set(f.map(hr)),P=ur($,H,t,e,n),F=w;u.mergeThreads($),m(E=>{if(E.identity!==S)return E;let D;return M!==void 0?D=Et(F+P,M):D=$.length===0||P===0?!1:z,dr(S,D),{...E,isFetching:!1,serverHasMore:D}})}catch(w){const A=w,k=A instanceof Error?A.message:String(A);te.error(`Could not load more tasks: ${k}`),m($=>$.identity===S?{...$,isFetching:!1}:$)}},y=c.isFetching||c.isProbing,N=!d&&!y&&ar(b,c.serverHasMore);let C;return r[2]!==y||r[3]!==v||r[4]!==N||r[5]!==c.isProbing||r[6]!==c.serverHasMore?(C={hasMore:N,isFetching:y,isProbing:c.isProbing,serverHasMore:c.serverHasMore,loadMore:v},r[2]=y,r[3]=v,r[4]=N,r[5]=c.isProbing,r[6]=c.serverHasMore,r[7]=C):C=r[7],C}function hr(t){return t.id}function pr(t){const e=I.c(20),{status:n,threads:i,activeTaskId:r,onSelectTask:l,onArchiveTask:o,canArchive:a,filters:d}=t,{isFetching:c,isProbing:m,loadMore:u,hasMore:f,serverHasMore:h}=fr("status",n,d),[p,b]=L.useState(!1);!p&&i.length===0&&h===!0&&!c&&!m&&(b(!0),queueMicrotask(()=>{u()}));let x;if(e[0]!==r||e[1]!==a||e[2]!==d||e[3]!==o||e[4]!==l||e[5]!==i){let v;e[7]!==r||e[8]!==a||e[9]!==d||e[10]!==o||e[11]!==l?(v=y=>s.jsx(fs,{task:y,isActive:r===y.id,onClick:()=>l(y),onArchive:a&&y.created_by===d.currentUserId?()=>o(y):void 0,showAutomationBadge:!!y.trigger_id,showAgentIcon:!0,hideStatusIdle:!0,indented:!0},y.id),e[7]=r,e[8]=a,e[9]=d,e[10]=o,e[11]=l,e[12]=v):v=e[12],x=i.map(v),e[0]=r,e[1]=a,e[2]=d,e[3]=o,e[4]=l,e[5]=i,e[6]=x}else x=e[6];let g;e[13]!==f||e[14]!==c||e[15]!==u?(g=(f||c)&&s.jsx(hs,{onClick:()=>{u()},isFetching:c,indented:!0}),e[13]=f,e[14]=c,e[15]=u,e[16]=g):g=e[16];let j;return e[17]!==x||e[18]!==g?(j=s.jsxs(s.Fragment,{children:[x,g]}),e[17]=x,e[18]=g,e[19]=j):j=e[19],j}function xr(t){const e=I.c(36),{status:n,threads:i,activeTaskId:r,onSelectTask:l,onArchiveTask:o,canArchive:a,filters:d}=t,c=Zn[n],m=c.icon,[u,f]=sr(`status-${n}`,!1);let h;e[0]!==u||e[1]!==f?(h=function(){f(!u)},e[0]=u,e[1]=f,e[2]=h):h=e[2];const p=h;let b;e[3]!==p?(b=S=>{S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),p())},e[3]=p,e[4]=b):b=e[4];let x;e[5]!==m||e[6]!==c.iconClassName?(x=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(m,{size:12,className:c.iconClassName})}),e[5]=m,e[6]=c.iconClassName,e[7]=x):x=e[7];let g;e[8]!==u?(g=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground opacity-0 transition-opacity group-hover/group:opacity-100",children:u?s.jsx(gt,{size:14}):s.jsx(ti,{size:14})}),e[8]=u,e[9]=g):g=e[9];let j;e[10]!==x||e[11]!==g?(j=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[x,g]}),e[10]=x,e[11]=g,e[12]=j):j=e[12];let v;e[13]!==c.label?(v=s.jsx("span",{className:"flex-1 truncate",children:c.label}),e[13]=c.label,e[14]=v):v=e[14];let y;e[15]!==i.length?(y=s.jsx("div",{className:"size-5 shrink-0 flex items-center justify-center",children:s.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:i.length})}),e[15]=i.length,e[16]=y):y=e[16];let N;e[17]!==u||e[18]!==p||e[19]!==b||e[20]!==j||e[21]!==v||e[22]!==y?(N=s.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":u,onClick:p,onKeyDown:b,className:"group/group flex items-center gap-2 px-2 py-1.5 rounded-md text-sm font-medium text-foreground cursor-pointer hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[j,v,y]}),e[17]=u,e[18]=p,e[19]=b,e[20]=j,e[21]=v,e[22]=y,e[23]=N):N=e[23];let C;e[24]!==r||e[25]!==a||e[26]!==u||e[27]!==d||e[28]!==o||e[29]!==l||e[30]!==n||e[31]!==i?(C=u&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:s.jsx(pr,{status:n,threads:i,activeTaskId:r,onSelectTask:l,onArchiveTask:o,canArchive:a,filters:d})}),e[24]=r,e[25]=a,e[26]=u,e[27]=d,e[28]=o,e[29]=l,e[30]=n,e[31]=i,e[32]=C):C=e[32];let _;return e[33]!==N||e[34]!==C?(_=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[N,C]}),e[33]=N,e[34]=C,e[35]=_):_=e[35],_}function Lt(t){const e=I.c(38),{threads:n,groupBy:i,activeTaskId:r,onSelectTask:l,onArchiveTask:o,filters:a,hasMore:d,isFetchingMore:c,onLoadMore:m,filtersActive:u}=t;if(n.length===0&&!d&&!c){let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Qn,{className:"size-6 opacity-60"}),e[0]=x):x=e[0];const g=u?"No threads match your filters":"No threads yet";let j;return e[1]!==g?(j=s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 px-4 py-12 text-center text-muted-foreground",children:[x,s.jsx("p",{className:"text-sm",children:g})]}),e[1]=g,e[2]=j):j=e[2],j}const f=n.length>1||d;if(i==="status"){let x;if(e[3]!==r||e[4]!==f||e[5]!==a||e[6]!==o||e[7]!==l||e[8]!==n){let j;e[10]!==r||e[11]!==f||e[12]!==a||e[13]!==o||e[14]!==l?(j=v=>s.jsx(xr,{status:v.status,threads:v.threads,activeTaskId:r,onSelectTask:l,onArchiveTask:o,canArchive:f,filters:a},v.status),e[10]=r,e[11]=f,e[12]=a,e[13]=o,e[14]=l,e[15]=j):j=e[15],x=Hi(n).map(j),e[3]=r,e[4]=f,e[5]=a,e[6]=o,e[7]=l,e[8]=n,e[9]=x}else x=e[9];let g;return e[16]!==x?(g=s.jsx(s.Fragment,{children:x}),e[16]=x,e[17]=g):g=e[17],g}let h;if(e[18]!==r||e[19]!==f||e[20]!==a||e[21]!==o||e[22]!==l||e[23]!==n){let x;e[25]!==r||e[26]!==f||e[27]!==a||e[28]!==o||e[29]!==l?(x=g=>s.jsx(fs,{task:g,isActive:r===g.id,onClick:()=>l(g),onArchive:f&&g.created_by===a.currentUserId?()=>o(g):void 0,showAutomationBadge:!!g.trigger_id,showAgentIcon:!0},g.id),e[25]=r,e[26]=f,e[27]=a,e[28]=o,e[29]=l,e[30]=x):x=e[30],h=n.map(x),e[18]=r,e[19]=f,e[20]=a,e[21]=o,e[22]=l,e[23]=n,e[24]=h}else h=e[24];let p;e[31]!==d||e[32]!==c||e[33]!==m?(p=(d||c)&&s.jsx(hs,{onClick:m,isFetching:c}),e[31]=d,e[32]=c,e[33]=m,e[34]=p):p=e[34];let b;return e[35]!==h||e[36]!==p?(b=s.jsxs(s.Fragment,{children:[h,p]}),e[35]=h,e[36]=p,e[37]=b):b=e[37],b}function Bt(t){const e=I.c(17),{label:n,onClick:i,active:r,children:l}=t,[o,a]=L.useState(!1);let d,c,m,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>a(!0),c=()=>a(!1),m=()=>a(!0),u=()=>a(!1),e[0]=d,e[1]=c,e[2]=m,e[3]=u):(d=e[0],c=e[1],m=e[2],u=e[3]);const f=r&&"bg-sidebar-accent text-foreground";let h;e[4]!==f?(h=B(f),e[4]=f,e[5]=h):h=e[5];let p;e[6]!==l||e[7]!==n||e[8]!==i||e[9]!==h?(p=s.jsx(fe,{asChild:!0,children:s.jsx(je,{"aria-label":n,onClick:i,onPointerEnter:d,onPointerLeave:c,onFocus:m,onBlur:u,className:h,children:l})}),e[6]=l,e[7]=n,e[8]=i,e[9]=h,e[10]=p):p=e[10];let b;e[11]!==n?(b=s.jsx(he,{side:"bottom",children:n}),e[11]=n,e[12]=b):b=e[12];let x;return e[13]!==o||e[14]!==p||e[15]!==b?(x=s.jsxs(pe,{open:o,children:[p,b]}),e[13]=o,e[14]=p,e[15]=b,e[16]=x):x=e[16],x}function Je(t){const e=I.c(13),{label:n,value:i,onChange:r,options:l}=t;let o;e[0]!==n?(o=s.jsx("span",{className:"text-sm text-muted-foreground",children:n}),e[0]=n,e[1]=o):o=e[1];let a;e[2]!==r?(a=u=>u&&r(u),e[2]=r,e[3]=a):a=e[3];let d;e[4]!==l?(d=l.map(gr),e[4]=l,e[5]=d):d=e[5];let c;e[6]!==a||e[7]!==d||e[8]!==i?(c=s.jsx(Pn,{type:"single",size:"sm",value:i,onValueChange:a,className:"gap-0.5 rounded-lg border border-border bg-muted/50 p-0.5",children:d}),e[6]=a,e[7]=d,e[8]=i,e[9]=c):c=e[9];let m;return e[10]!==o||e[11]!==c?(m=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[o,c]}),e[10]=o,e[11]=c,e[12]=m):m=e[12],m}function gr(t){return s.jsxs(On,{value:t.value,className:"h-6 gap-1.5 rounded-md border border-transparent px-2 text-xs font-medium text-muted-foreground hover:bg-transparent data-[state=on]:border-border data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",children:[t.icon,t.label]},t.value)}function bs({onNavigate:t}={}){const{data:e}=ge.useSession(),n=e?.user?.id,{org:i}=se(),r=Zt({connectionId:ts,orgId:i.id,orgSlug:i.slug}),l=Le(i.id).id,o=ht(),{threads:a,hasMore:d,isFetchingMore:c,fetchNextPage:m}=pt(),u=a.filter(T=>!T.hidden),{hide:f}=ns(),h=oe(),{setTaskId:p,createNewTask:b}=xt(),x=at({strict:!1}),g=Ue({strict:!1}),j=x.taskId??null,v=g.virtualmcpid??a.find(T=>T.id===j)?.virtual_mcp_id??null,y=()=>{t?.()},N=[...u].sort((T,U)=>(U.updated_at??"").localeCompare(T.updated_at??"")),[C,_]=L.useState("all"),[S,w]=L.useState("flat"),[A,k]=He("sidebar-threads-scope-all",!1),[$,z]=L.useState(!1),[M,H]=L.useState(!1),P={type:C,member:"mine",currentUserId:n??null},F=T=>n?T.filter(U=>U.created_by===n):[],E=T=>C==="automation"?T.filter(U=>!!U.trigger_id):C==="manual"?T.filter(U=>!U.trigger_id):T,D=F(N),G=E(D),Q=E(N),Z=A?Q:G,O=T=>{if(n&&T.created_by&&T.created_by!==n)return;const U=T.id===j;if(f(T.id),!U)return;const X=D.find(W=>W.id!==T.id&&W.virtual_mcp_id===T.virtual_mcp_id);y(),X?p(X.id,X.virtual_mcp_id):h({to:"/$org",params:{org:i.slug}})},R=T=>{y(),p(T.id,T.virtual_mcp_id)},Y=async T=>{try{const U=await r.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:T,limit:1,offset:0}});return((U.structuredContent??U).items?.length??0)===0}catch{return!1}},K=async()=>{const T=v??l;me("sidebar_new_thread_clicked",{virtual_mcp_id:T});const U=D.find(X=>X.virtual_mcp_id===T&&X.title==="New chat");if(U&&await Y(U.id)){y(),p(U.id,T);return}y(),b(T)},{state:ne,isMobile:V,toggleSidebar:ie}=ye();if(ne==="collapsed"&&!V){const T=Le(i.id),U=new Map((o??[]).map(W=>[W.id,W])),X=W=>(W?U.get(W):void 0)??(W===l?T:void 0);return s.jsxs(ue,{className:"min-h-0 gap-1.5 overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[s.jsx(q,{children:s.jsx(J,{"aria-label":"Toggle sidebar",tooltip:"Toggle sidebar",onClick:ie,children:s.jsx(Xt,{size:16})})}),s.jsx(q,{children:s.jsx(J,{tooltip:"New thread",onClick:()=>{K()},children:s.jsx(Nt,{size:16})})}),Z.map(W=>{const ce=X(W.virtual_mcp_id);return s.jsx(q,{children:s.jsx(J,{tooltip:W.title||"New chat",isActive:W.id===j,onClick:()=>R(W),children:s.jsx(ve,{icon:ce?.icon??null,name:ce?.title??"Agent",size:"2xs"})})},W.id)})]})}const ae=S!=="flat"||C!=="all"||A===!0,xe=s.jsxs(Ge,{children:[s.jsxs(pe,{children:[s.jsx(fe,{asChild:!0,children:s.jsx(ze,{asChild:!0,children:s.jsxs(je,{"aria-label":"Filter threads",active:ae,children:[s.jsx(Mn,{size:16}),ae&&s.jsx("span",{className:"absolute right-1 top-1 size-1.5 rounded-full bg-primary ring-2 ring-sidebar"})]})})}),s.jsx(he,{side:"bottom",children:"Filter threads"})]}),s.jsxs(We,{align:"start",className:"w-64 flex flex-col gap-3 p-3",children:[s.jsx(Je,{label:"View",value:S,onChange:T=>{me("tasks_panel_group_by_changed",{to_value:T}),w(T)},options:[{value:"flat",label:"List",icon:s.jsx(mn,{size:13})},{value:"status",label:"Status",icon:s.jsx(un,{size:13})}]}),s.jsx(Je,{label:"Type",value:C,onChange:T=>{me("tasks_panel_filter_changed",{to_value:T}),_(T)},options:[{value:"all",label:"All"},{value:"manual",label:"Chats"},{value:"automation",label:"Auto"}]}),s.jsx(Je,{label:"Scope",value:A?"team":"mine",onChange:T=>k(T==="team"),options:[{value:"mine",label:"Mine"},{value:"team",label:"Team"}]})]})]}),be=T=>s.jsx(tt,{delayDuration:300,children:s.jsxs("div",{className:B("shrink-0 px-1 flex items-center justify-between",T?"h-10":"h-10 md:h-7 mb-2"),children:[s.jsxs("div",{className:"flex items-center gap-0.5",children:[!T&&s.jsx(ls,{}),xe]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Bt,{label:"Search threads",onClick:()=>{me("tasks_panel_search_opened"),H(!0),z(!0)},children:s.jsx(dn,{size:16})}),s.jsx(Bt,{label:"New thread",onClick:()=>{K()},children:s.jsx(Nt,{size:16})})]})]})});return V?s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[be(!0),s.jsx(Ot,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain px-1 h-full",children:s.jsx(Lt,{threads:Z,groupBy:S,activeTaskId:j,onSelectTask:R,onArchiveTask:O,filters:P,hasMore:d,isFetchingMore:c,onLoadMore:()=>{m()},filtersActive:ae})}),M&&s.jsx(Pt,{open:$,onOpenChange:z})]}):s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[be(!1),s.jsx("div",{className:"flex-1 min-h-0 flex flex-col gap-0.5 -mr-2 pr-2",children:s.jsx(Ot,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain h-full",children:s.jsx(Lt,{threads:Z,groupBy:S,activeTaskId:j,onSelectTask:R,onArchiveTask:O,filters:P,hasMore:d,isFetchingMore:c,onLoadMore:()=>{m()},filtersActive:ae})})}),M&&s.jsx(Pt,{open:$,onOpenChange:z})]})}const br=5,jr=[{nameWidth:"w-24",taskRows:2},{nameWidth:"w-28",taskRows:0},{nameWidth:"w-20",taskRows:1},{nameWidth:"w-32",taskRows:0},{nameWidth:"w-24",taskRows:0}];function js(){const t=I.c(3),{state:e}=ye();if(e==="collapsed"){let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex flex-col gap-1.5",children:Array.from({length:br}).map(Sr)}),t[0]=r):r=t[0],r}let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(le,{className:"size-6 rounded-md"}),s.jsx(le,{className:"size-6 rounded-md"}),s.jsx(le,{className:"size-6 rounded-md"})]}),s.jsx(le,{className:"h-6 w-20 rounded-md"})]}),t[1]=n):n=t[1];let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[n,s.jsx("div",{className:"flex flex-col gap-0.5",children:jr.map(vr)})]}),t[2]=i):i=t[2],i}function vr(t,e){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(le,{className:"size-5 rounded-full shrink-0"}),s.jsx(le,{className:B("h-3",t.nameWidth,"rounded-sm")})]}),t.taskRows>0&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:Array.from({length:t.taskRows}).map(yr)})]},e)}function yr(t,e){return s.jsx("div",{className:"flex items-center gap-2 px-2 py-1.5",children:s.jsx(le,{className:"h-3 flex-1 rounded-sm"})},e)}function Sr(t,e){return s.jsx(le,{className:"size-10 rounded-lg mx-auto"},e)}function _r(){const t=I.c(4),e=as();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Qi,{}),t[0]=n):n=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(qt,{children:s.jsx(L.Suspense,{fallback:s.jsx(js,{}),children:s.jsx(bs,{})})}),t[1]=i):i=t[1];let r;return t[2]!==e?(r=s.jsx(ss,{children:s.jsx(ms,{sections:e,footer:n,additionalContent:i})}),t[2]=e,t[3]=r):r=t[3],r}function Nr(t){const e=I.c(8),{onClose:n}=t,i=as();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Yi,{}),e[0]=r):r=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(js,{}),e[1]=l):l=e[1];let o;e[2]!==n?(o=s.jsx(qt,{children:s.jsx(L.Suspense,{fallback:l,children:s.jsx(bs,{onNavigate:n})})}),e[2]=n,e[3]=o):o=e[3];let a;return e[4]!==n||e[5]!==i||e[6]!==o?(a=s.jsx(ss,{children:s.jsx(Pi,{sections:i,onClose:n,footer:r,additionalContent:o})}),e[4]=n,e[5]=i,e[6]=o,e[7]=a):a=e[7],a}function vs(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const wr=Os({name:Ps().min(2,"Organization name is required")});function Cr(t){const e=I.c(41),{open:n,onOpenChange:i}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={resolver:Ds(wr),defaultValues:{name:""}},e[0]=r):r=e[0];const l=Es(r);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={mutationFn:Ar,onSuccess:kr},e[1]=o):o=e[1];const a=Fs(o),d=a.error instanceof Error?a.error.message:a.error?"Failed to create organization.":null;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(ci,{children:[s.jsx(di,{children:"Create a new organization"}),s.jsx(mi,{children:"Set up a new organization to collaborate with others."})]}),e[2]=c):c=e[2];let m;if(e[3]!==a||e[4]!==l){let _;e[6]!==a?(_=S=>a.mutateAsync(S),e[6]=a,e[7]=_):_=e[7],m=l.handleSubmit(_),e[3]=a,e[4]=l,e[5]=m}else m=e[5];let u;e[8]!==l.formState.isSubmitting?(u=_=>{const{field:S}=_;return s.jsxs(xi,{children:[s.jsx(gi,{children:"Organization Name"}),s.jsx(bi,{children:s.jsx(yi,{...S,placeholder:"Acme Inc.",disabled:l.formState.isSubmitting})}),s.jsx(ji,{children:"The name of your company or organization"}),S.value&&s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Organization URL:"," ",s.jsxs("span",{className:"font-mono",children:[typeof window<"u"?globalThis.location.origin:"","/",vs(S.value)]})]}),s.jsx(vi,{})]})},e[8]=l.formState.isSubmitting,e[9]=u):u=e[9];let f;e[10]!==l.control||e[11]!==u?(f=s.jsx(hi,{control:l.control,name:"name",render:u}),e[10]=l.control,e[11]=u,e[12]=f):f=e[12];let h;e[13]!==d?(h=d&&s.jsx("div",{className:"text-destructive text-sm mt-2",children:d}),e[13]=d,e[14]=h):h=e[14];let p;e[15]!==a||e[16]!==l?(p=()=>{a.reset(),l.reset()},e[15]=a,e[16]=l,e[17]=p):p=e[17];let b;e[18]!==l.formState.isSubmitting||e[19]!==p?(b=s.jsx(oi,{disabled:l.formState.isSubmitting,onClick:p,children:"Cancel"}),e[18]=l.formState.isSubmitting,e[19]=p,e[20]=b):b=e[20];const x=!l.formState.isValid||l.formState.isSubmitting;let g;e[21]!==l.formState.isSubmitting?(g=l.formState.isSubmitting?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(si,{size:"xs"})," Creating..."]}):"Create Organization",e[21]=l.formState.isSubmitting,e[22]=g):g=e[22];let j;e[23]!==x||e[24]!==g?(j=s.jsx(Ze,{type:"submit",variant:"default",disabled:x,children:g}),e[23]=x,e[24]=g,e[25]=j):j=e[25];let v;e[26]!==j||e[27]!==b?(v=s.jsxs(ui,{children:[b,j]}),e[26]=j,e[27]=b,e[28]=v):v=e[28];let y;e[29]!==v||e[30]!==m||e[31]!==f||e[32]!==h?(y=s.jsxs("form",{className:"space-y-6",onSubmit:m,autoComplete:"off",children:[f,h,v]}),e[29]=v,e[30]=m,e[31]=f,e[32]=h,e[33]=y):y=e[33];let N;e[34]!==l||e[35]!==y?(N=s.jsxs(ai,{children:[c,s.jsx(pi,{...l,children:y})]}),e[34]=l,e[35]=y,e[36]=N):N=e[36];let C;return e[37]!==i||e[38]!==n||e[39]!==N?(C=s.jsx(fi,{open:n,onOpenChange:i,children:N}),e[37]=i,e[38]=n,e[39]=N,e[40]=C):C=e[40],C}function kr(t){const{orgSlug:e}=t;window.location.href=`/${e}`}async function Ar(t){const e=vs(t.name);if(!e)throw new Error("Organization slug is invalid");const n=await ge.organization.create({name:t.name,slug:e});if(n?.error)throw new Error(n.error.message||"Failed to create organization");const i=n?.data?.slug??e;if(!i)throw new Error("Failed to create organization");return{orgSlug:i}}function ys(){const t=L.useContext(Rs),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date)}function Ir(t){let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function jt(t){const e=I.c(13),{org:n,size:i}=t,r=i===void 0?"sm":i,l=r==="xs"?"size-5":"size-6",o=r==="xs"?"text-[9px]":"text-xs";let a;e[0]!==l?(a=B(l,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=l,e[1]=a):a=e[1];let d;e[2]!==n.logo||e[3]!==n.name?(d=n.logo?void 0:Ir(n.name),e[2]=n.logo,e[3]=n.name,e[4]=d):d=e[4];let c;e[5]!==n.logo||e[6]!==n.name||e[7]!==o?(c=n.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:B("font-semibold leading-none",o),children:n.name.slice(0,2).toUpperCase()}),e[5]=n.logo,e[6]=n.name,e[7]=o,e[8]=c):c=e[8];let m;return e[9]!==a||e[10]!==d||e[11]!==c?(m=s.jsx("div",{className:a,style:d,children:c}),e[9]=a,e[10]=d,e[11]=c,e[12]=m):m=e[12],m}function $r({invitation:t}){const[e,n]=L.useState(!1),i=Gt(),r=t.organizationName??"Unknown organization",l=async()=>{n(!0);try{const d=await ge.organization.acceptInvitation({invitationId:t.id});if(d.error){te.error(d.error.message),n(!1);return}}catch{te.error("Failed to accept invitation"),n(!1);return}te.success(`Joined ${r}`),Bs();let a;try{a=(await ge.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=a?`/${a}`:"/"},o=async()=>{n(!0);try{const a=await ge.organization.rejectInvitation({invitationId:t.id});if(a.error){te.error(a.error.message),n(!1);return}te.success("Invitation declined"),i.invalidateQueries()}catch{te.error("Failed to decline invitation"),n(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[s.jsx(jt,{org:{name:r},size:"sm"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"truncate text-sm font-medium",children:r}),s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:"Invited to join"})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[s.jsx(Ze,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:l,disabled:e,children:"Accept"}),s.jsx(Ze,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:o,disabled:e,"aria-label":`Decline invitation to ${r}`,children:s.jsx(li,{size:14})})]})]})}function zr(t){const e=I.c(28),{orgParam:n,onSelectOrg:i,onCreateOrg:r}=t,{data:l}=Ls(),o=ys();let a;e[0]!==n?(a=(k,$)=>k.slug===n?-1:$.slug===n?1:k.name.localeCompare($.name),e[0]=n,e[1]=a):a=e[1];const d=[...l??[]].sort(a),[c,m]=L.useState(""),u=c.toLowerCase(),f=u?d.filter(k=>k.name.toLowerCase().includes(u)||k.slug.toLowerCase().includes(u)):d;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(os,{size:16,className:"shrink-0 text-muted-foreground/60"}),e[2]=h):h=e[2];let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=k=>m(k.target.value),e[3]=p):p=e[3];let b;e[4]!==c?(b=k=>k.key==="Escape"&&c&&m(""),e[4]=c,e[5]=b):b=e[5];let x;e[6]!==c||e[7]!==b?(x=s.jsx("input",{"data-org-switcher-search":!0,autoFocus:!0,type:"text",value:c,onChange:p,onKeyDown:b,placeholder:"Search organizations...",className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}),e[6]=c,e[7]=b,e[8]=x):x=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx($e,{size:16}),e[9]=g):g=e[9];let j;e[10]!==r?(j=s.jsx("button",{type:"button",onClick:r,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:g}),e[10]=r,e[11]=j):j=e[11];let v;e[12]!==x||e[13]!==j?(v=s.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border/50",children:[h,x,j]}),e[12]=x,e[13]=j,e[14]=v):v=e[14];const y="flex-1 min-h-0 overflow-y-auto p-1.5 flex flex-col gap-1";let N;e[15]!==o||e[16]!==c?(N=!c&&o.map(Tr),e[15]=o,e[16]=c,e[17]=N):N=e[17];const C=f.length===0&&s.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground/60 text-center",children:c?`No organizations match "${c}"`:"No organizations available"});let _;e[18]!==i||e[19]!==n?(_=k=>s.jsxs("button",{type:"button",onClick:()=>i(k.slug),className:B("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",k.slug===n?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50"),children:[s.jsx(jt,{org:k,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:k.name}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:k.slug})]}),k.slug===n&&s.jsx(ft,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id),e[18]=i,e[19]=n,e[20]=_):_=e[20];const S=f.map(_);let w;e[21]!==N||e[22]!==C||e[23]!==S?(w=s.jsxs("div",{className:y,children:[N,C,S]}),e[21]=N,e[22]=C,e[23]=S,e[24]=w):w=e[24];let A;return e[25]!==w||e[26]!==v?(A=s.jsxs(s.Fragment,{children:[v,w]}),e[25]=w,e[26]=v,e[27]=A):A=e[27],A}function Tr(t){return s.jsx($r,{invitation:t},t.id)}function Mr(t){const e=I.c(22),{trigger:n,orgParam:i,align:r,side:l}=t,o=r===void 0?"start":r,a=l===void 0?"bottom":l,d=oe(),[c,m]=L.useState(!1),[u,f]=L.useState(!1);let h;e[0]!==n?(h=s.jsx(ze,{asChild:!0,children:n}),e[0]=n,e[1]=h):h=e[1];const p=String(c);let b;e[2]!==d?(b=C=>{m(!1),d({to:"/$org",params:{org:C}})},e[2]=d,e[3]=b):b=e[3];let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{m(!1),f(!0)},e[4]=x):x=e[4];let g;e[5]!==i||e[6]!==p||e[7]!==b?(g=s.jsx(zr,{orgParam:i,onSelectOrg:b,onCreateOrg:x},p),e[5]=i,e[6]=p,e[7]=b,e[8]=g):g=e[8];let j;e[9]!==o||e[10]!==a||e[11]!==g?(j=s.jsx(We,{side:a,align:o,sideOffset:8,collisionPadding:16,className:"w-[300px] p-0 flex flex-col max-h-[440px]",onOpenAutoFocus:Pr,onCloseAutoFocus:Or,children:g}),e[9]=o,e[10]=a,e[11]=g,e[12]=j):j=e[12];let v;e[13]!==c||e[14]!==h||e[15]!==j?(v=s.jsxs(Ge,{open:c,onOpenChange:m,children:[h,j]}),e[13]=c,e[14]=h,e[15]=j,e[16]=v):v=e[16];let y;e[17]!==u?(y=s.jsx(Cr,{open:u,onOpenChange:f}),e[17]=u,e[18]=y):y=e[18];let N;return e[19]!==y||e[20]!==v?(N=s.jsxs(s.Fragment,{children:[v,y]}),e[19]=y,e[20]=v,e[21]=N):N=e[21],N}function Or(t){return t.preventDefault()}function Pr(t){t.preventDefault(),t.currentTarget?.querySelector("[data-org-switcher-search]")?.focus()}function Dr(t){const e=I.c(21),{value:n,onChange:i,placeholder:r,onKeyDown:l,className:o,isSearching:a,disabled:d}=t,c=r===void 0?"Search...":r;let m;e[0]!==o?(m=B("shrink-0 w-full border-b border-border h-12",o),e[0]=o,e[1]=m):m=e[1];const u=d?"cursor-not-allowed opacity-50":"cursor-text";let f;e[2]!==u?(f=B("flex items-center gap-2.5 h-12 px-4",u),e[2]=u,e[3]=f):f=e[3];let h;e[4]!==a?(h=a?s.jsx(Wt,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):s.jsx(os,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=a,e[5]=h):h=e[5];let p;e[6]!==i?(p=j=>i(j.target.value),e[6]=i,e[7]=p):p=e[7];let b;e[8]!==d||e[9]!==l||e[10]!==c||e[11]!==p||e[12]!==n?(b=s.jsx("input",{type:"text",value:n,onChange:p,onKeyDown:l,placeholder:c,disabled:d,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=d,e[9]=l,e[10]=c,e[11]=p,e[12]=n,e[13]=b):b=e[13];let x;e[14]!==f||e[15]!==h||e[16]!==b?(x=s.jsxs("label",{className:f,children:[h,b]}),e[14]=f,e[15]=h,e[16]=b,e[17]=x):x=e[17];let g;return e[18]!==m||e[19]!==x?(g=s.jsx("div",{className:m,children:x}),e[18]=m,e[19]=x,e[20]=g):g=e[20],g}const Er="Select an existing agent";function Fr(t){const e=I.c(5),{children:n}=t;let i;e[0]!==n?(i=s.jsx(fe,{asChild:!0,children:n}),e[0]=n,e[1]=i):i=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(he,{side:"right",sideOffset:8,children:Er}),e[2]=r):r=e[2];let l;return e[3]!==i?(l=s.jsxs(pe,{defaultOpen:!0,delayDuration:0,children:[i,r]}),e[3]=i,e[4]=l):l=e[4],l}function Rr(t){const e=oe(),{create:n}=ns(),{locator:i}=se(),r=at({strict:!1}),l=Ue({strict:!1});return async o=>{const a=crypto.randomUUID(),d=o===l.virtualmcpid?Fn(t,i,r.taskId??""):null;try{await n({id:a,virtual_mcp_id:o,...d?{branch:d}:{}})}catch{}e({to:"/$org/$taskId",params:{org:t,taskId:a},search:{virtualmcpid:o}})}}function Ht(t){const e=I.c(20),{agent:n,selected:i,onClick:r}=t,l=i?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50";let o;e[0]!==l?(o=B("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",l),e[0]=l,e[1]=o):o=e[1];let a;e[2]!==n.icon||e[3]!==n.title?(a=s.jsx(ve,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[2]=n.icon,e[3]=n.title,e[4]=a):a=e[4];let d;e[5]!==n.title?(d=s.jsx("p",{className:"text-sm font-medium truncate",children:n.title}),e[5]=n.title,e[6]=d):d=e[6];let c;e[7]!==n.description?(c=n.description&&s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n.description}),e[7]=n.description,e[8]=c):c=e[8];let m;e[9]!==d||e[10]!==c?(m=s.jsxs("div",{className:"flex-1 min-w-0",children:[d,c]}),e[9]=d,e[10]=c,e[11]=m):m=e[11];let u;e[12]!==i?(u=i&&s.jsx(ft,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[12]=i,e[13]=u):u=e[13];let f;return e[14]!==r||e[15]!==o||e[16]!==a||e[17]!==m||e[18]!==u?(f=s.jsxs("button",{type:"button",onClick:r,className:o,children:[a,m,u]}),e[14]=r,e[15]=o,e[16]=a,e[17]=m,e[18]=u,e[19]=f):f=e[19],f}function Lr(t){const e=I.c(24),{onClose:n,onSelectAgent:i,selectedAgentId:r}=t,[l,o]=L.useState(""),a=ht(),d=a??[],{org:c}=se(),{data:m}=ge.useSession(),u=m?.user?.id??"anon",f=_n(a),h=Nn(),p=Rr(c.slug),b=$n(a),x=l.toLowerCase(),g=d.filter(Hr).filter(D=>!b.has(D.id)).filter(Br).filter(D=>!l||D.title.toLowerCase().includes(x)),j=Le(c.id),v=!l||j.title.toLowerCase().includes(x),y=!!(i&&v);let N;e[0]!==n||e[1]!==i?(N=()=>{i?.(null),n(),o("")},e[0]=n,e[1]=i,e[2]=N):N=e[2];const C=N,_=D=>{if(i){i(D.id),n(),o("");return}wn({orgId:c.id,userId:u},D.id,f),h(),n(),o(""),p(D.id)},S="flex flex-col max-h-[min(640px,80dvh)]";let w;e[3]!==l?(w=s.jsx(Dr,{value:l,onChange:o,placeholder:"Search agents..."}),e[3]=l,e[4]=w):w=e[4];const A="overflow-y-auto flex-1 min-h-0 p-1.5 flex flex-col gap-1",k=i&&v&&j&&s.jsx(Ht,{agent:j,selected:!r||r===j.id,onClick:C}),$=g.map(D=>s.jsx(Ht,{agent:D,selected:i?r===D.id:void 0,onClick:()=>_(D)},D.id));let z;e[5]!==y||e[6]!==l||e[7]!==g.length?(z=g.length===0&&!y&&s.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:l?"No agents found":"No agents yet"}),e[5]=y,e[6]=l,e[7]=g.length,e[8]=z):z=e[8];let M;e[9]!==k||e[10]!==$||e[11]!==z?(M=s.jsxs("div",{className:A,children:[k,$,z]}),e[9]=k,e[10]=$,e[11]=z,e[12]=M):M=e[12];let H;e[13]!==c.slug?(H={org:c.slug},e[13]=c.slug,e[14]=H):H=e[14];let P;e[15]!==n?(P=()=>n(),e[15]=n,e[16]=P):P=e[16];let F;e[17]!==P||e[18]!==H?(F=s.jsx("div",{className:"border-t border-border px-3 py-2.5",children:s.jsx(Hs,{to:"/$org/settings/agents",params:H,onClick:P,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:"See all agents"})}),e[17]=P,e[18]=H,e[19]=F):F=e[19];let E;return e[20]!==F||e[21]!==w||e[22]!==M?(E=s.jsxs("div",{className:S,children:[w,M,F]}),e[20]=F,e[21]=w,e[22]=M,e[23]=E):E=e[23],E}function Br(t){return!bn(t.id)}function Hr(t){return!es(t.id)}function Ur(t){const e=I.c(23);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{compact:i,trigger:r,onSelectAgent:l,selectedAgentId:o,side:a,align:d}=n,c=i===void 0?!1:i,m=a===void 0?"right":a,u=d===void 0?"start":d,[f,h]=L.useState(!1),p=mt(),{setOpenMobile:b}=ye(),x=Sn(),g=x?"border border-border":void 0;let j;e[2]!==x?(j=w=>x?s.jsx(Fr,{children:w}):w,e[2]=x,e[3]=j):j=e[3];const v=j;let y;e[4]!==p||e[5]!==b?(y=()=>{h(!1),p&&b(!1)},e[4]=p,e[5]=b,e[6]=y):y=e[6];const N=y;let C;e[7]!==N||e[8]!==l||e[9]!==f||e[10]!==o?(C=f&&s.jsx(L.Suspense,{fallback:s.jsx("div",{className:"flex items-center justify-center py-8",children:s.jsx(le,{className:"h-4 w-24"})}),children:s.jsx(Lr,{onClose:N,onSelectAgent:l,selectedAgentId:o})}),e[7]=N,e[8]=l,e[9]=f,e[10]=o,e[11]=C):C=e[11];const _=C;let S;return e[12]!==u||e[13]!==c||e[14]!==g||e[15]!==x||e[16]!==p||e[17]!==f||e[18]!==_||e[19]!==m||e[20]!==r||e[21]!==v?(S=s.jsx(s.Fragment,{children:p?s.jsxs(s.Fragment,{children:[r?s.jsx("button",{type:"button",onClick:()=>h(!0),className:"contents",children:r}):c?v(s.jsx(je,{"aria-label":"Browse agents",className:B(g),onClick:()=>{me("agent_browser_opened",{surface:"mobile_drawer"}),h(!0)},children:s.jsx($e,{className:"size-4"})})):s.jsx(q,{children:v(s.jsxs(J,{tooltip:x?void 0:"Browse agents",className:B(g),onClick:()=>{me("agent_browser_opened",{surface:"mobile_drawer"}),h(!0)},children:[s.jsx($e,{}),s.jsx("span",{children:"New agent"})]}))}),s.jsx(Qt,{open:f,onOpenChange:h,direction:"bottom",children:s.jsxs(Yt,{className:"max-h-[85dvh] p-0",children:[s.jsx(Jt,{className:"sr-only",children:"Browse agents"}),_]})})]}):s.jsxs(Ge,{open:f,onOpenChange:w=>{w&&!f&&me("agent_browser_opened",{surface:"desktop_popover"}),h(w)},children:[r?s.jsx(ze,{asChild:!0,children:r}):c?v(s.jsx(ze,{asChild:!0,children:s.jsx(je,{"aria-label":"Browse agents",className:B(g),children:s.jsx($e,{className:"size-4"})})})):s.jsx(q,{children:v(s.jsx(ze,{asChild:!0,children:s.jsxs(J,{tooltip:x?void 0:"Browse agents",className:B(g),children:[s.jsx($e,{}),s.jsx("span",{children:"New agent"})]})}))}),s.jsx(We,{className:"w-[380px] p-0 overflow-hidden",side:m,align:u,children:_})]})}),e[12]=u,e[13]=c,e[14]=g,e[15]=x,e[16]=p,e[17]=f,e[18]=_,e[19]=m,e[20]=r,e[21]=v,e[22]=S):S=e[22],S}const Gr="wco-no-drag inline-flex items-center gap-1.5 min-w-0 rounded-md px-2 py-1.5 text-sm text-foreground hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50";function Wr(t){const e=I.c(19),{agentId:n,fallback:i,onOpenHome:r,onPick:l}=t,o=qe(n)??i??null,a=o?.title??"Super Agent",d=`Open ${a} home`,c=o?.icon??null;let m;e[0]!==c||e[1]!==a?(m=s.jsx(ve,{icon:c,name:a,size:"xs"}),e[0]=c,e[1]=a,e[2]=m):m=e[2];let u;e[3]!==r||e[4]!==d||e[5]!==m?(u=s.jsx("button",{type:"button",onClick:r,"aria-label":d,className:"wco-no-drag flex items-center shrink-0 rounded-md p-1 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:m}),e[3]=r,e[4]=d,e[5]=m,e[6]=u):u=e[6];let f;e[7]!==a?(f=s.jsx("span",{className:"truncate font-medium max-w-[10rem]",children:a}),e[7]=a,e[8]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(gt,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[9]=h):h=e[9];let p;e[10]!==f?(p=s.jsxs("button",{type:"button",className:Gr,children:[f,h]}),e[10]=f,e[11]=p):p=e[11];let b;e[12]!==n||e[13]!==l||e[14]!==p?(b=s.jsx(Ur,{side:"bottom",align:"start",selectedAgentId:n,onSelectAgent:l,trigger:p}),e[12]=n,e[13]=l,e[14]=p,e[15]=b):b=e[15];let x;return e[16]!==u||e[17]!==b?(x=s.jsxs("div",{className:"flex items-center gap-1",children:[u,b]}),e[16]=u,e[17]=b,e[18]=x):x=e[18],x}function Ut(){const t=I.c(42),{org:e}=se(),n=oe();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},t[0]=i):i=t[0];const r=at(i);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const o=Ue(l),{threads:a}=pt(),{setTaskId:d,createNewTask:c}=xt(),m=ys().length>0;let u;t[2]!==e.id?(u=Le(e.id),t[2]=e.id,t[3]=u):u=t[3];const f=u,h=f.id,p=r.taskId?o.virtualmcpid??h:h;let b;t[4]!==c||t[5]!==h||t[6]!==n||t[7]!==e.slug||t[8]!==d||t[9]!==a?(b=H=>{if(!H||H===h){n({to:"/$org",params:{org:e.slug}});return}const P=Si(a,H);P?d(P.id,H):c(H)},t[4]=c,t[5]=h,t[6]=n,t[7]=e.slug,t[8]=d,t[9]=a,t[10]=b):b=t[10];const x=b,g=m?`${e.name} — switch organization (pending invitation)`:`${e.name} — switch organization`;let j;t[11]!==e?(j=s.jsx(jt,{org:e,size:"sm"}),t[11]=e,t[12]=j):j=t[12];let v;t[13]!==m?(v=m&&s.jsx("span",{className:"absolute -top-1 -right-1 size-2.5 rounded-full bg-destructive ring-2 ring-background"}),t[13]=m,t[14]=v):v=t[14];let y;t[15]!==j||t[16]!==v?(y=s.jsxs("span",{className:"relative inline-flex",children:[j,v]}),t[15]=j,t[16]=v,t[17]=y):y=t[17];let N;t[18]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(gt,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),t[18]=N):N=t[18];let C;t[19]!==g||t[20]!==y?(C=s.jsx(fe,{asChild:!0,children:s.jsxs("button",{type:"button","aria-label":g,className:"wco-no-drag flex items-center gap-1.5 shrink-0 rounded-md pl-3 pr-1.5 py-1.5 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:[y,N]})}),t[19]=g,t[20]=y,t[21]=C):C=t[21];let _;t[22]!==e.slug||t[23]!==C?(_=s.jsx(Mr,{orgParam:e.slug,trigger:C}),t[22]=e.slug,t[23]=C,t[24]=_):_=t[24];let S;t[25]!==e.name?(S=s.jsx(he,{side:"bottom",children:e.name}),t[25]=e.name,t[26]=S):S=t[26];let w;t[27]!==_||t[28]!==S?(w=s.jsx(kt,{children:s.jsxs(pe,{children:[_,S]})}),t[27]=_,t[28]=S,t[29]=w):w=t[29];let A;t[30]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx("span",{className:"h-5 w-24 rounded bg-muted animate-pulse"}),t[30]=A):A=t[30];const k=p===h?f:void 0;let $;t[31]!==p||t[32]!==x?($=()=>x(p),t[31]=p,t[32]=x,t[33]=$):$=t[33];let z;t[34]!==p||t[35]!==x||t[36]!==k||t[37]!==$?(z=s.jsx(kt,{children:s.jsx(L.Suspense,{fallback:A,children:s.jsx(Wr,{agentId:p,fallback:k,onOpenHome:$,onPick:x})})}),t[34]=p,t[35]=x,t[36]=k,t[37]=$,t[38]=z):z=t[38];let M;return t[39]!==w||t[40]!==z?(M=s.jsx(ii,{className:"wco-no-drag",children:s.jsxs(ri,{className:"flex-nowrap gap-1.5 sm:gap-1.5",children:[w,z]})}),t[39]=w,t[40]=z,t[41]=M):M=t[41],M}const qr="sidebar.open";function Kr(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Gs,{}),t[0]=e):e=t[0],e}function aa(){const t=I.c(24),e=mt(),[n,i]=He(qr,!1),{width:r,wrapperRef:l,onStartResize:o,resetWidth:a}=Ci();let d;t[0]!==e?(d=e?s.jsxs(ee.Header,{className:"grid-cols-1 px-1 pr-1",children:[s.jsxs("div",{className:"grid w-full grid-cols-[auto_auto_auto_1fr_auto_auto] items-center gap-2",children:[s.jsx(ls,{}),s.jsx(Ut,{}),s.jsx(lt,{}),s.jsx("div",{"aria-hidden":!0,className:"min-w-0"}),s.jsx(ee.TogglesSlot,{}),s.jsx(ee.TabsSlot,{className:"min-w-0 justify-self-end"})]}),s.jsx(ee.CenterSlot,{}),s.jsx(ee.RightSlot,{})]}):s.jsxs(ee.Header,{children:[s.jsxs(ee.LeftColumn,{children:[s.jsx(Ut,{}),s.jsx(ee.TogglesSlot,{})]}),s.jsx(ee.CenterSlot,{}),s.jsxs(ee.RightColumn,{children:[s.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end items-center gap-0.5",children:s.jsx(ee.TabsSlot,{})}),s.jsx(ee.RightSlot,{})]})]}),t[0]=e,t[1]=d):d=t[1];const c=`${r}px`;let m;t[2]!==c?(m={"--sidebar-width":c,"--sidebar-width-icon":"3.5rem"},t[2]=c,t[3]=m):m=t[3];const u=m;let f;t[4]!==e||t[5]!==o||t[6]!==a?(f=!e&&s.jsxs(s.Fragment,{children:[s.jsx(_r,{}),s.jsx(_i,{onPointerDown:o,onDoubleClick:a})]}),t[4]=e,t[5]=o,t[6]=a,t[7]=f):f=t[7];let h;t[8]===Symbol.for("react.memo_cache_sentinel")?(h={background:"transparent",containerType:"inline-size"},t[8]=h):h=t[8];let p;t[9]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Ks,{className:"flex flex-col",style:h,children:s.jsx("div",{className:"flex flex-col h-full min-h-0",children:s.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:s.jsx(L.Suspense,{fallback:s.jsx(Kr,{}),children:s.jsx(Us,{})})})})}),t[9]=p):p=t[9];let b;t[10]!==u||t[11]!==f||t[12]!==l?(b=s.jsxs(Vs,{ref:l,className:"flex-1 bg-sidebar relative min-h-0",style:u,children:[f,p]}),t[10]=u,t[11]=f,t[12]=l,t[13]=b):b=t[13];let x;t[14]!==e?(x=e&&s.jsx(Xn,{renderSidebar:Vr}),t[14]=e,t[15]=x):x=t[15];let g;t[16]!==d||t[17]!==b||t[18]!==x?(g=s.jsx(ni,{children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[d,b,x]})}),t[16]=d,t[17]=b,t[18]=x,t[19]=g):g=t[19];let j;return t[20]!==i||t[21]!==n||t[22]!==g?(j=s.jsx(En,{children:s.jsx(ee.Provider,{children:s.jsx(Xs,{open:n,onOpenChange:i,children:g})})}),t[20]=i,t[21]=n,t[22]=g,t[23]=j):j=t[23],j}function Vr(t){const{onClose:e}=t;return s.jsx("div",{className:"flex h-full",children:s.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:s.jsx(Nr,{onClose:e})})})}export{aa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as b,j as e,i as rt}from"./index-DcsErluY.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-BjPm3XPY.js";import{A as nt}from"./automation-runs-CyeVpPEA.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-Bgz7kJhB.js";import{F as xt}from"./index-DJ-AVzEz.js";import"./LayoutLeft-Bsqu0rxT.js";import"./use-mobile-BNK4ZQXQ.js";import"./X-DWrz2LqH.js";import"./tooltip-CX8JDN5z.js";import"./select-GP-G7CYY.js";import"./Check-BxViL4rK.js";import"./ChevronDown-UniVHOcZ.js";import"./ChevronUp-C_JF1YJx.js";import"./useInfiniteQuery-W1abYeKO.js";import"./use-infinite-scroll-gRuFiDfW.js";import"./use-connection-BHlBIpYJ.js";import"./use-collections-Dkob9Q0i.js";import"./use-mcp-client-x-H3hM3X.js";import"./constants-B72Xmt_K.js";import"./auth-C9k5QFmE.js";import"./use-virtual-mcp-zN_q3qUT.js";import"./card-BYZEQBt8.js";import"./table-DyVNd3lx.js";import"./empty-state-BdREyKTx.js";import"./use-members-BAUKU0t0.js";import"./use-org-auth-client-CT6ie6N1.js";import"./use-clock-tick-BZ0iPGQL.js";import"./AlertCircle-Npyn4_wF.js";import"./CheckCircle-Cz4tJUop.js";import"./Circle-iQbOlvwS.js";import"./agent-icon-32aZu8f8.js";import"./Tool01-woqhmM89.js";import"./SwitchHorizontal01-BSEQu0PJ.js";import"./Settings02-CTtq6YOs.js";import"./XCircle-JQbz9WmR.js";import"./ArrowUpRight-zXVQKR-G.js";import"./ZapSquare-RhqrJVTN.js";import"./Users03-DGDUIZF4.js";import"./Loading02-wU_DDeXK.js";import"./ChevronRight-K3Ms28jw.js";import"./Stars02-C6DKWb0j.js";import"./Copy01-Ctt9FUbb.js";import"./ZoomOut-nih9dlzQ.js";import"./DotsVertical-Cnet9a8h.js";import"./Globe01-BCgVxayg.js";import"./Eye-Bf8ySHj2.js";import"./FilterLines-DRa15Wby.js";import"./Star01-Cw7wbAha.js";import"./Globe04-BRhMXMEJ.js";import"./HardDrive-BaaJKDpq.js";import"./Key01-BvoJKmt1.js";import"./LinkExternal01-bFRmolQv.js";import"./List-FyDw_upy.js";import"./Monitor01-rM21B5VM.js";import"./Sun-Cfq43Fjh.js";import"./Palette-Bq3VPed6.js";import"./Play-Dqv3vBUr.js";import"./Plus-CIMT0C1M.js";import"./SearchLg-BqF-kB3a.js";import"./SearchMd-OCIrtgl8.js";import"./Shield01-CCAMun7k.js";import"./Stars01-CXkCYhyc.js";import"./Trash01-DSTcxy5m.js";import"./Upload01-DI1Xs1Z6.js";import"./User01-D-uDYDK0.js";import"./Users01-DVmsZOTe.js";import"./XClose-CBrgKiaB.js";import"./Zap-NoORqLvM.js";import"./use-automations-D2Y3aBGO.js";import"./studio-tools-ajGrecV2.js";import"./useSuspenseInfiniteQuery-DTvKBZgn.js";import"./badge-DN1YW5R1.js";import"./checkbox-C2WVbLnG.js";import"./command-D8e2ttGg.js";import"./index-tYXe55yO.js";import"./dialog-wZUkxFBf.js";import"./popover-jVjMjIDj.js";import"./avatar-CVASN_n8.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CQkPNAJi.js";import"./file-type-icon-BEeYBjMh.js";import"./tab-id-yjGvxWDL.js";import"./monaco-editor-CxptfxHs.js";import"./index-BGWTtZfz.js";import"./chat-context-CCC-Byca.js";import"./autosend-Lnw286aO.js";import"./hooks-RNhoO-Id.js";import"./decopilot-sse-pool-CYJNLSex.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BFYpQ3Dm.js";import"./use-decopilot-events-qPFbeAuK.js";import"./use-organization-settings-QG8fys4M.js";import"./types-B4pxnIIx.js";import"./shell-layout-BktipYXq.js";import"./alert-dialog-DBrNjdaV.js";import"./required-auth-layout-CCig7BsQ.js";import"./use-org-sso-DIb9lRy0.js";import"./integration-icon-BJkk8MWl.js";import"./use-navigate-to-agent-B2zjxakj.js";import"./reusable-new-chat-qqWu133U.js";import"./use-mcp-prompts-CB2--qfn.js";import"./form-D4Sjj2S5.js";import"./label-CW0QYigh.js";import"./input-BLUXQaUJ.js";import"./switch-C6ORwIf0.js";import"./drawer-N4BBUwV9.js";import"./collection-search-i90jdNni.js";import"./tabs-BbeJw3E0.js";import"./toggle-group-CBKef6if.js";import"./agent-capabilities-0FR5de0y.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DGWh0T1M.js";import"./use-registry-connections-BvC5yqnv.js";import"./extract-connection-data-CguvuV8x.js";import"./collection-tabs-Bg1zR32u.js";import"./textarea-CjjAiaC_.js";import"./connection-form-helpers-CvE1GCwU.js";import"./authenticate-and-persist-oauth-Dji-Zkvk.js";import"./mcp-oauth-DkjiGs3f.js";import"./connect-desktop-dialog-CdtfQBg4.js";import"./select-model-Hh0vuEIf.js";import"./skeleton-CXWh_vT2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BN93dKeu.js";import"./dropdown-menu-COQWVmxy.js";import"./index-Q0mE9w5a.js";import"./toolbar-BS4jP5VP.js";import"./use-debounced-value-HI4UvLEV.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DV61EqQ3.js";import"./use-mcp-tools-BAOkrTmg.js";import"./use-capability-rVzvcxKr.js";import"./tools-list-yY8qipR7.js";import"./use-debounced-autosave-C0n83t9Y.js";import"./index-4ttWqKAk.js";import"./search-input-5RFJsKB6.js";import"./github-repo-picker-pjUsTLC6.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-BUi_Va3F.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./toolbar-icon-button-aR9nKvjU.js";import"./calendar-ChXBpAOM.js";import"./use-file-configs-Bwgj83CL.js";import"./automation-list-row-DjnykZrH.js";function si(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=b.useState(k),[tt,i]=b.useState(null),[J,g]=b.useState(void 0),[x,y]=b.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const A=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const M=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const V=F,q=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,z=m.kind==="site"&&o&&n,B=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==q?(l=e.jsx(mt,{className:"text-sm font-semibold",children:q}),t[13]=q,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==$||t[22]!==H||t[23]!==A||t[24]!==v||t[25]!==h||t[26]!==B||t[27]!==x||t[28]!==M||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==z||t[37]!==_?(S=!o||!T&&!z?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:A,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:M})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=A,t[24]=v,t[25]=h,t[26]=B,t[27]=x,t[28]=M,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=z,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let E;return t[42]!==V||t[43]!==N||t[44]!==f?(E=e.jsx(at,{open:N,onOpenChange:V,children:f}),t[42]=V,t[43]=N,t[44]=f,t[45]=E):E=t[45],E}function yt(u){return u+1}function wt(u){return u+1}export{si as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,Z as H,j as A}from"./index-DcsErluY.js";import{a as L,g as E,s as b}from"./automation-runs-CyeVpPEA.js";import{u as O}from"./use-mcp-client-x-H3hM3X.js";import{p as k}from"./constants-B72Xmt_K.js";import{b as q,c as B}from"./use-mcp-tools-BAOkrTmg.js";import{u as Y}from"./index-DJ-AVzEz.js";import{c as G}from"./monaco-editor-CxptfxHs.js";import{g as K,M as V,a as w}from"./types-B4pxnIIx.js";import{a as Z,u as z}from"./chat-context-CCC-Byca.js";import{u as F}from"./shell-layout-BktipYXq.js";import"./select-GP-G7CYY.js";import"./tooltip-CX8JDN5z.js";import"./Check-BxViL4rK.js";import"./ChevronDown-UniVHOcZ.js";import"./ChevronUp-C_JF1YJx.js";import"./useInfiniteQuery-W1abYeKO.js";import"./use-infinite-scroll-gRuFiDfW.js";import"./use-connection-BHlBIpYJ.js";import"./use-collections-Dkob9Q0i.js";import"./use-virtual-mcp-zN_q3qUT.js";import"./card-BYZEQBt8.js";import"./sidebar-BjPm3XPY.js";import"./LayoutLeft-Bsqu0rxT.js";import"./use-mobile-BNK4ZQXQ.js";import"./X-DWrz2LqH.js";import"./table-DyVNd3lx.js";import"./empty-state-BdREyKTx.js";import"./use-members-BAUKU0t0.js";import"./use-org-auth-client-CT6ie6N1.js";import"./use-clock-tick-BZ0iPGQL.js";import"./AlertCircle-Npyn4_wF.js";import"./CheckCircle-Cz4tJUop.js";import"./Circle-iQbOlvwS.js";import"./agent-icon-32aZu8f8.js";import"./Tool01-woqhmM89.js";import"./SwitchHorizontal01-BSEQu0PJ.js";import"./Settings02-CTtq6YOs.js";import"./XCircle-JQbz9WmR.js";import"./ArrowUpRight-zXVQKR-G.js";import"./ZapSquare-RhqrJVTN.js";import"./Users03-DGDUIZF4.js";import"./Loading02-wU_DDeXK.js";import"./ChevronRight-K3Ms28jw.js";import"./Stars02-C6DKWb0j.js";import"./Copy01-Ctt9FUbb.js";import"./ZoomOut-nih9dlzQ.js";import"./DotsVertical-Cnet9a8h.js";import"./Globe01-BCgVxayg.js";import"./Eye-Bf8ySHj2.js";import"./FilterLines-DRa15Wby.js";import"./Star01-Cw7wbAha.js";import"./Globe04-BRhMXMEJ.js";import"./HardDrive-BaaJKDpq.js";import"./Key01-BvoJKmt1.js";import"./LinkExternal01-bFRmolQv.js";import"./List-FyDw_upy.js";import"./Monitor01-rM21B5VM.js";import"./Sun-Cfq43Fjh.js";import"./Palette-Bq3VPed6.js";import"./Play-Dqv3vBUr.js";import"./Plus-CIMT0C1M.js";import"./SearchLg-BqF-kB3a.js";import"./SearchMd-OCIrtgl8.js";import"./Shield01-CCAMun7k.js";import"./Stars01-CXkCYhyc.js";import"./Trash01-DSTcxy5m.js";import"./Upload01-DI1Xs1Z6.js";import"./User01-D-uDYDK0.js";import"./Users01-DVmsZOTe.js";import"./XClose-CBrgKiaB.js";import"./Zap-NoORqLvM.js";import"./use-automations-D2Y3aBGO.js";import"./studio-tools-ajGrecV2.js";import"./useSuspenseInfiniteQuery-DTvKBZgn.js";import"./badge-DN1YW5R1.js";import"./checkbox-C2WVbLnG.js";import"./command-D8e2ttGg.js";import"./index-tYXe55yO.js";import"./dialog-wZUkxFBf.js";import"./popover-jVjMjIDj.js";import"./avatar-CVASN_n8.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CQkPNAJi.js";import"./file-type-icon-BEeYBjMh.js";import"./tab-id-yjGvxWDL.js";import"./hooks-RNhoO-Id.js";import"./decopilot-sse-pool-CYJNLSex.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-BJkk8MWl.js";import"./use-navigate-to-agent-B2zjxakj.js";import"./reusable-new-chat-qqWu133U.js";import"./use-mcp-prompts-CB2--qfn.js";import"./form-D4Sjj2S5.js";import"./label-CW0QYigh.js";import"./input-BLUXQaUJ.js";import"./auth-C9k5QFmE.js";import"./drawer-N4BBUwV9.js";import"./collection-search-i90jdNni.js";import"./autosend-Lnw286aO.js";import"./tabs-BbeJw3E0.js";import"./toggle-group-CBKef6if.js";import"./agent-capabilities-0FR5de0y.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DGWh0T1M.js";import"./use-registry-connections-BvC5yqnv.js";import"./use-organization-settings-QG8fys4M.js";import"./extract-connection-data-CguvuV8x.js";import"./collection-tabs-Bg1zR32u.js";import"./textarea-CjjAiaC_.js";import"./connection-form-helpers-CvE1GCwU.js";import"./authenticate-and-persist-oauth-Dji-Zkvk.js";import"./mcp-oauth-DkjiGs3f.js";import"./use-ai-providers-BFYpQ3Dm.js";import"./connect-desktop-dialog-CdtfQBg4.js";import"./select-model-Hh0vuEIf.js";import"./skeleton-CXWh_vT2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BN93dKeu.js";import"./dropdown-menu-COQWVmxy.js";import"./index-Q0mE9w5a.js";import"./alert-dialog-DBrNjdaV.js";import"./toolbar-BS4jP5VP.js";import"./use-debounced-value-HI4UvLEV.js";import"./index-BGWTtZfz.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DV61EqQ3.js";import"./use-decopilot-events-qPFbeAuK.js";import"./use-capability-rVzvcxKr.js";import"./tools-list-yY8qipR7.js";import"./switch-C6ORwIf0.js";import"./use-debounced-autosave-C0n83t9Y.js";import"./index-4ttWqKAk.js";import"./search-input-5RFJsKB6.js";import"./github-repo-picker-pjUsTLC6.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-BUi_Va3F.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./toolbar-icon-button-aR9nKvjU.js";import"./calendar-ChXBpAOM.js";import"./use-file-configs-Bwgj83CL.js";import"./automation-list-row-DjnykZrH.js";import"./required-auth-layout-CCig7BsQ.js";import"./use-org-sso-DIb9lRy0.js";const J={};function Q(S){const t=$.c(37),{client:e,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=Z(),{setAppContext:d,clearAppContext:n}=z(),{setChatOpen:f,openTab:g}=F(),r=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??J;let c;t[2]!==e||t[3]!==o.name||t[4]!==s?(c={client:e,toolName:o.name,toolArguments:s},t[2]=e,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=b(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let u;t[9]!==o.inputSchema?(u=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=u):u=t[10];let N;t[11]!==U||t[12]!==u||t[13]!==o?(N={...o,name:U,inputSchema:u},t[11]=U,t[12]=u,t[13]=o,t[14]=N):N=t[14];const j=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const y=_;let P;t[18]!==j?(P={tool:j},t[18]=j,t[19]=P):P=t[19];let T;t[20]!==d||t[21]!==r?(T=C=>d(r,C),t[20]=d,t[21]=r,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==r?(R=()=>n(r),t[23]=n,t[24]=r,t[25]=R):R=t[25];let v;return t[26]!==e||t[27]!==y||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:e,onMessage:y,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=e,t[27]=y,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function Er(S){const t=$.c(24),{connectionId:e,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==e||t[1]!==l?(M=k(e)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=e,t[1]=l,t[2]=M):M=t[2];const I=M;let d;t[3]!==e||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(d={connectionId:e,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=e,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=d):d=t[7];const n=O(d);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let r,a,m;t[10]!==h||t[11]!==g.tools?(r=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===r)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(b(i.name,x)===r)return!0;const u=b(r,x);return u!==r&&i.name===u}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=r,t[13]=a,t[14]=m):(r=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==r?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==e||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(Q,{client:n,resourceURI:s,tool:m,connectionId:e,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=e,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{Er as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as S,j as r}from"./index-DcsErluY.js";import{I as T}from"./input-BLUXQaUJ.js";import{L as C}from"./label-CW0QYigh.js";import{T as L}from"./textarea-CjjAiaC_.js";import{aH as A,aI as R,aG as J,aJ as K,aK as D}from"./index-DJ-AVzEz.js";import{u as G,s as P}from"./primitives-DaPu5vgv.js";import"./SwitchHorizontal01-BSEQu0PJ.js";import"./chat-context-CCC-Byca.js";import"./autosend-Lnw286aO.js";import"./hooks-RNhoO-Id.js";import"./use-mcp-client-x-H3hM3X.js";import"./constants-B72Xmt_K.js";import"./auth-C9k5QFmE.js";import"./decopilot-sse-pool-CYJNLSex.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-zN_q3qUT.js";import"./use-collections-Dkob9Q0i.js";import"./use-ai-providers-BFYpQ3Dm.js";import"./studio-tools-ajGrecV2.js";import"./use-decopilot-events-qPFbeAuK.js";import"./tab-id-yjGvxWDL.js";import"./use-organization-settings-QG8fys4M.js";import"./automation-runs-CyeVpPEA.js";import"./select-GP-G7CYY.js";import"./tooltip-CX8JDN5z.js";import"./Check-BxViL4rK.js";import"./ChevronDown-UniVHOcZ.js";import"./ChevronUp-C_JF1YJx.js";import"./useInfiniteQuery-W1abYeKO.js";import"./use-infinite-scroll-gRuFiDfW.js";import"./use-connection-BHlBIpYJ.js";import"./card-BYZEQBt8.js";import"./sidebar-BjPm3XPY.js";import"./LayoutLeft-Bsqu0rxT.js";import"./use-mobile-BNK4ZQXQ.js";import"./X-DWrz2LqH.js";import"./table-DyVNd3lx.js";import"./empty-state-BdREyKTx.js";import"./use-members-BAUKU0t0.js";import"./use-org-auth-client-CT6ie6N1.js";import"./use-clock-tick-BZ0iPGQL.js";import"./AlertCircle-Npyn4_wF.js";import"./CheckCircle-Cz4tJUop.js";import"./Circle-iQbOlvwS.js";import"./agent-icon-32aZu8f8.js";import"./Tool01-woqhmM89.js";import"./Settings02-CTtq6YOs.js";import"./XCircle-JQbz9WmR.js";import"./ArrowUpRight-zXVQKR-G.js";import"./ZapSquare-RhqrJVTN.js";import"./Users03-DGDUIZF4.js";import"./Loading02-wU_DDeXK.js";import"./ChevronRight-K3Ms28jw.js";import"./Stars02-C6DKWb0j.js";import"./Copy01-Ctt9FUbb.js";import"./ZoomOut-nih9dlzQ.js";import"./DotsVertical-Cnet9a8h.js";import"./Globe01-BCgVxayg.js";import"./Eye-Bf8ySHj2.js";import"./FilterLines-DRa15Wby.js";import"./Star01-Cw7wbAha.js";import"./Globe04-BRhMXMEJ.js";import"./HardDrive-BaaJKDpq.js";import"./Key01-BvoJKmt1.js";import"./LinkExternal01-bFRmolQv.js";import"./List-FyDw_upy.js";import"./Monitor01-rM21B5VM.js";import"./Sun-Cfq43Fjh.js";import"./Palette-Bq3VPed6.js";import"./Play-Dqv3vBUr.js";import"./Plus-CIMT0C1M.js";import"./SearchLg-BqF-kB3a.js";import"./SearchMd-OCIrtgl8.js";import"./Shield01-CCAMun7k.js";import"./Stars01-CXkCYhyc.js";import"./Trash01-DSTcxy5m.js";import"./Upload01-DI1Xs1Z6.js";import"./User01-D-uDYDK0.js";import"./Users01-DVmsZOTe.js";import"./XClose-CBrgKiaB.js";import"./Zap-NoORqLvM.js";import"./use-automations-D2Y3aBGO.js";import"./useSuspenseInfiniteQuery-DTvKBZgn.js";import"./badge-DN1YW5R1.js";import"./checkbox-C2WVbLnG.js";import"./command-D8e2ttGg.js";import"./index-tYXe55yO.js";import"./dialog-wZUkxFBf.js";import"./popover-jVjMjIDj.js";import"./avatar-CVASN_n8.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CQkPNAJi.js";import"./file-type-icon-BEeYBjMh.js";import"./monaco-editor-CxptfxHs.js";import"./index-BGWTtZfz.js";import"./types-B4pxnIIx.js";import"./shell-layout-BktipYXq.js";import"./alert-dialog-DBrNjdaV.js";import"./required-auth-layout-CCig7BsQ.js";import"./use-org-sso-DIb9lRy0.js";import"./integration-icon-BJkk8MWl.js";import"./use-navigate-to-agent-B2zjxakj.js";import"./reusable-new-chat-qqWu133U.js";import"./use-mcp-prompts-CB2--qfn.js";import"./form-D4Sjj2S5.js";import"./drawer-N4BBUwV9.js";import"./collection-search-i90jdNni.js";import"./tabs-BbeJw3E0.js";import"./toggle-group-CBKef6if.js";import"./agent-capabilities-0FR5de0y.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DGWh0T1M.js";import"./use-registry-connections-BvC5yqnv.js";import"./extract-connection-data-CguvuV8x.js";import"./collection-tabs-Bg1zR32u.js";import"./connection-form-helpers-CvE1GCwU.js";import"./authenticate-and-persist-oauth-Dji-Zkvk.js";import"./mcp-oauth-DkjiGs3f.js";import"./connect-desktop-dialog-CdtfQBg4.js";import"./select-model-Hh0vuEIf.js";import"./skeleton-CXWh_vT2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BN93dKeu.js";import"./dropdown-menu-COQWVmxy.js";import"./index-Q0mE9w5a.js";import"./toolbar-BS4jP5VP.js";import"./use-debounced-value-HI4UvLEV.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DV61EqQ3.js";import"./use-mcp-tools-BAOkrTmg.js";import"./use-capability-rVzvcxKr.js";import"./tools-list-yY8qipR7.js";import"./switch-C6ORwIf0.js";import"./use-debounced-autosave-C0n83t9Y.js";import"./index-4ttWqKAk.js";import"./search-input-5RFJsKB6.js";import"./github-repo-picker-pjUsTLC6.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-BUi_Va3F.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./toolbar-icon-button-aR9nKvjU.js";import"./calendar-ChXBpAOM.js";import"./use-file-configs-Bwgj83CL.js";import"./automation-list-row-DjnykZrH.js";const H={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},M={authors:"Author"};function Pr(B){const t=S.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:g,block:f}=B;let y;t[0]!==w||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==f||t[5]!==p?(d=R(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const F=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:K(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=G(F,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=M[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(J,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=H[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(D,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{Pr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BUFv94Wc.js","assets/index-DcsErluY.js","assets/index-BYSbf1og.css","assets/XCircle-JQbz9WmR.js","assets/CheckCircle-Cz4tJUop.js","assets/Settings02-CTtq6YOs.js","assets/use-mcp-client-x-H3hM3X.js","assets/constants-B72Xmt_K.js","assets/auth-C9k5QFmE.js","assets/useInfiniteQuery-W1abYeKO.js","assets/use-infinite-scroll-gRuFiDfW.js","assets/studio-tools-ajGrecV2.js","assets/badge-DN1YW5R1.js","assets/input-BLUXQaUJ.js","assets/dropdown-menu-COQWVmxy.js","assets/Check-BxViL4rK.js","assets/ChevronRight-K3Ms28jw.js","assets/Circle-iQbOlvwS.js","assets/table-DyVNd3lx.js","assets/toggle-group-CBKef6if.js","assets/use-view-mode-BaQ_SNlr.js","assets/use-mobile-BNK4ZQXQ.js","assets/DotsVertical-Cnet9a8h.js","assets/FilterLines-DRa15Wby.js","assets/Globe01-BCgVxayg.js","assets/SearchMd-OCIrtgl8.js","assets/dialog-wZUkxFBf.js","assets/X-DWrz2LqH.js","assets/AlertCircle-Npyn4_wF.js","assets/Upload01-DI1Xs1Z6.js","assets/alert-dialog-DBrNjdaV.js","assets/card-BYZEQBt8.js","assets/Trash01-DSTcxy5m.js","assets/label-CW0QYigh.js","assets/select-GP-G7CYY.js","assets/tooltip-CX8JDN5z.js","assets/ChevronDown-UniVHOcZ.js","assets/ChevronUp-C_JF1YJx.js","assets/switch-C6ORwIf0.js","assets/textarea-CjjAiaC_.js","assets/checkbox-C2WVbLnG.js","assets/Eye-Bf8ySHj2.js","assets/LinkExternal01-bFRmolQv.js","assets/use-copy-CQkPNAJi.js","assets/Copy01-Ctt9FUbb.js","assets/Key01-BvoJKmt1.js","assets/Plus-CIMT0C1M.js","assets/mcp-oauth-DkjiGs3f.js","assets/Play-Dqv3vBUr.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,aU as o}from"./index-DcsErluY.js";import{R as m}from"./require-capability-gZyrOy_G.js";import"./use-capability-rVzvcxKr.js";import"./access-gate-DW0Ym0X9.js";import"./capability-load-error-O4BtnIVr.js";const n=i.lazy(()=>o(()=>import("./registry-layout-BUFv94Wc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BUFv94Wc.js","assets/index-DcsErluY.js","assets/index-BYSbf1og.css","assets/XCircle-JQbz9WmR.js","assets/CheckCircle-Cz4tJUop.js","assets/Settings02-CTtq6YOs.js","assets/use-mcp-client-x-H3hM3X.js","assets/constants-B72Xmt_K.js","assets/auth-C9k5QFmE.js","assets/useInfiniteQuery-W1abYeKO.js","assets/use-infinite-scroll-gRuFiDfW.js","assets/studio-tools-ajGrecV2.js","assets/badge-DN1YW5R1.js","assets/input-BLUXQaUJ.js","assets/dropdown-menu-COQWVmxy.js","assets/Check-BxViL4rK.js","assets/ChevronRight-K3Ms28jw.js","assets/Circle-iQbOlvwS.js","assets/table-DyVNd3lx.js","assets/toggle-group-CBKef6if.js","assets/use-view-mode-BaQ_SNlr.js","assets/use-mobile-BNK4ZQXQ.js","assets/DotsVertical-Cnet9a8h.js","assets/FilterLines-DRa15Wby.js","assets/Globe01-BCgVxayg.js","assets/SearchMd-OCIrtgl8.js","assets/dialog-wZUkxFBf.js","assets/X-DWrz2LqH.js","assets/AlertCircle-Npyn4_wF.js","assets/Upload01-DI1Xs1Z6.js","assets/alert-dialog-DBrNjdaV.js","assets/card-BYZEQBt8.js","assets/Trash01-DSTcxy5m.js","assets/label-CW0QYigh.js","assets/select-GP-G7CYY.js","assets/tooltip-CX8JDN5z.js","assets/ChevronDown-UniVHOcZ.js","assets/ChevronUp-C_JF1YJx.js","assets/switch-C6ORwIf0.js","assets/textarea-CjjAiaC_.js","assets/checkbox-C2WVbLnG.js","assets/Eye-Bf8ySHj2.js","assets/LinkExternal01-bFRmolQv.js","assets/use-copy-CQkPNAJi.js","assets/Copy01-Ctt9FUbb.js","assets/Key01-BvoJKmt1.js","assets/Plus-CIMT0C1M.js","assets/mcp-oauth-DkjiGs3f.js","assets/Play-Dqv3vBUr.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,aU as f}from"./index-DcsErluY.js";import{R as u}from"./require-capability-gZyrOy_G.js";import"./use-capability-rVzvcxKr.js";import"./access-gate-DW0Ym0X9.js";import"./capability-load-error-O4BtnIVr.js";const g=l.lazy(()=>f(()=>import("./registry-layout-BUFv94Wc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-gRuFiDfW.js";import{cy as i}from"./index-DcsErluY.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-gRuFiDfW.js";import{cy as u,F as n}from"./index-DcsErluY.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|