decocms 4.76.70 → 4.76.72
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-sDfzMQz-.js → AlertCircle-DEC9MSli.js} +1 -1
- package/dist/client/assets/{AreaChart-BbF7HkuD.js → AreaChart-DTG-5b5r.js} +1 -1
- package/dist/client/assets/{ArrowUp-5EMoK-0z.js → ArrowUp-Bv0D2eRZ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BCg_ek3r.js → ArrowUpRight-CYh_XgMl.js} +1 -1
- package/dist/client/assets/{Check-DW_CJo9x.js → Check-e0NpaqDI.js} +1 -1
- package/dist/client/assets/{CheckCircle-CvckcHSW.js → CheckCircle-Dx8PlP_2.js} +1 -1
- package/dist/client/assets/{ChevronDown-CyPL9p3K.js → ChevronDown-_14-4vSC.js} +1 -1
- package/dist/client/assets/{ChevronRight-jGxYypbD.js → ChevronRight-DbSu3dHh.js} +1 -1
- package/dist/client/assets/{ChevronUp-D1wkSkA0.js → ChevronUp-B37nF1fQ.js} +1 -1
- package/dist/client/assets/{Circle-XeFXmZfO.js → Circle-BRedzDGU.js} +1 -1
- package/dist/client/assets/{Copy01-AsmF-oFM.js → Copy01-By6PMNLM.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dk5Xdxve.js → DotsVertical-BnGH5h2q.js} +1 -1
- package/dist/client/assets/{Eye-DF50O1Ue.js → Eye-SeG_sslr.js} +1 -1
- package/dist/client/assets/{FilterLines-C_jjXfkg.js → FilterLines-DgL56yQR.js} +1 -1
- package/dist/client/assets/{Flag01-B5gDwl3Q.js → Flag01-D30atYPD.js} +1 -1
- package/dist/client/assets/{Globe01-DOhXvJ4f.js → Globe01-CGrBb2vX.js} +1 -1
- package/dist/client/assets/{Globe04-c8g2iyUk.js → Globe04-CfZZGfkA.js} +1 -1
- package/dist/client/assets/{HardDrive-Ddg1UJlN.js → HardDrive-But4kF8X.js} +1 -1
- package/dist/client/assets/Image01-DmnY7rUZ.js +1 -0
- package/dist/client/assets/{Key01-BOZ45ZZP.js → Key01-CTvn2ZzI.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BkVB2IbZ.js → LayoutLeft-BgPQbC33.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DdU7WoMF.js → LinkExternal01-P3P-mbSS.js} +1 -1
- package/dist/client/assets/{List-D9CCEPJ3.js → List-BSS9biwy.js} +1 -1
- package/dist/client/assets/{Monitor01-sX1pwHXM.js → Monitor01-CJoylRhB.js} +1 -1
- package/dist/client/assets/{Package-CfSQbtDl.js → Package-CZ8HIJPE.js} +1 -1
- package/dist/client/assets/{Palette-C7yix6_T.js → Palette-BqxIzEcM.js} +1 -1
- package/dist/client/assets/{Play-BlRk613P.js → Play-BjvHD3Bw.js} +1 -1
- package/dist/client/assets/{Plus-o1s3J9RF.js → Plus-CODnQ6Q6.js} +1 -1
- package/dist/client/assets/{SearchLg-M-hd_gai.js → SearchLg-BaxA63pq.js} +1 -1
- package/dist/client/assets/{SearchMd-CxWfDzx_.js → SearchMd-D40sWBRu.js} +1 -1
- package/dist/client/assets/{Settings02-CXx65ABV.js → Settings02-DQJFAffZ.js} +1 -1
- package/dist/client/assets/{Shield01-CWQHp-7f.js → Shield01-CjRpjR_E.js} +1 -1
- package/dist/client/assets/{Star01-D8wrCAnP.js → Star01-_3pK6eyk.js} +1 -1
- package/dist/client/assets/{Stars01-Cmtkyg7-.js → Stars01-DdwQA6ep.js} +1 -1
- package/dist/client/assets/{Stars02-CyV0ls88.js → Stars02-D4MIgE30.js} +1 -1
- package/dist/client/assets/{Sun-CE2mYjYy.js → Sun-BPUPfxdb.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-C7qYtxDX.js → SwitchHorizontal01-KFFv0SYH.js} +1 -1
- package/dist/client/assets/Tool01-YMJ1AQ7b.js +1 -0
- package/dist/client/assets/{Tool02-B6UqyM_J.js → Tool02-CQKaIo5U.js} +1 -1
- package/dist/client/assets/{Trash01-BhHYhKqt.js → Trash01-YzxIFPEh.js} +1 -1
- package/dist/client/assets/{TrendUp01-ytIvysU7.js → TrendUp01-e6qVgaWu.js} +1 -1
- package/dist/client/assets/{Upload01-MLXfWlY_.js → Upload01-CjzKM9B1.js} +1 -1
- package/dist/client/assets/{User01-DyqXRcED.js → User01-DKdTYNBE.js} +1 -1
- package/dist/client/assets/{UserPlus01-CiUhK_7V.js → UserPlus01-C6rHXPgw.js} +1 -1
- package/dist/client/assets/{Users01-C2chq_s1.js → Users01-B1f-a-8q.js} +1 -1
- package/dist/client/assets/{Users03-B522am55.js → Users03-JOazr1ri.js} +1 -1
- package/dist/client/assets/{X-BWPJzkP7.js → X-DOYte4FY.js} +1 -1
- package/dist/client/assets/{XCircle-D0AQsXiF.js → XCircle-BujJTW-u.js} +1 -1
- package/dist/client/assets/{XClose-C6R6Hrmn.js → XClose-D2J197LD.js} +1 -1
- package/dist/client/assets/{Zap-DJjVd0ns.js → Zap-5x1m3kYf.js} +1 -1
- package/dist/client/assets/{ZapSquare-D-7d5mNS.js → ZapSquare-CzB0XDWh.js} +1 -1
- package/dist/client/assets/ZoomOut-BpXvy-WE.js +1 -0
- package/dist/client/assets/{access-gate--y6i1h5d.js → access-gate-DXPMLlBG.js} +1 -1
- package/dist/client/assets/{add-section-modal-DaLIpWVo.js → add-section-modal-DXtJ-8Vn.js} +1 -1
- package/dist/client/assets/agent-icon-gJGKPGRw.js +1 -0
- package/dist/client/assets/agents-list-O3_wFc4B.js +1 -0
- package/dist/client/assets/ai-providers-G88BQka1.js +1 -0
- package/dist/client/assets/{alert-Cofu8c-C.js → alert-Dc_gaUf6.js} +1 -1
- package/dist/client/assets/{alert-dialog-DJa8hr5P.js → alert-dialog-aBhDZKiu.js} +1 -1
- package/dist/client/assets/app-editor-1x_hThf7.js +1 -0
- package/dist/client/assets/{auth-0M1DqVYt.js → auth-D0u-sXdR.js} +1 -1
- package/dist/client/assets/{auth-catchall-Esw-EfKA.js → auth-catchall-Ho9vBgJg.js} +1 -1
- package/dist/client/assets/{auth-entry-BRqC2psi.js → auth-entry-CeMJZPYU.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CvH5-Yt4.js → auth-split-layout-CXbU0Pxf.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-D-6WsL4Q.js → authenticate-and-persist-oauth-C1F-Ib2x.js} +1 -1
- package/dist/client/assets/{automation-list-row-B0m5PJDd.js → automation-list-row-RVZQ1tzS.js} +1 -1
- package/dist/client/assets/{automation-runs-NZWy5naJ.js → automation-runs-BAUPpPsN.js} +6 -6
- package/dist/client/assets/automations-DdvI7mpY.js +1 -0
- package/dist/client/assets/{autosend-8dyE67rr.js → autosend-BA5B1p8b.js} +1 -1
- package/dist/client/assets/{avatar-BpWo990_.js → avatar-DhzJ7Zvn.js} +1 -1
- package/dist/client/assets/{badge-J8Dmk1J0.js → badge-CU7Ybb4s.js} +1 -1
- package/dist/client/assets/{block-document-Fj80zG4o.js → block-document-CDGFLVI9.js} +1 -1
- package/dist/client/assets/{brand-context-VaUYeOuK.js → brand-context-CtoaVJwL.js} +1 -1
- package/dist/client/assets/{buckets-DpH0N-d9.js → buckets-KILbd-nI.js} +1 -1
- package/dist/client/assets/bulk-category-panel-DtWIgxRZ.js +1 -0
- package/dist/client/assets/{calendar-CiyIJkJP.js → calendar-BKUPgHWb.js} +1 -1
- package/dist/client/assets/{capability-load-error-rAKAVL0-.js → capability-load-error-1uM7cYTS.js} +1 -1
- package/dist/client/assets/{card-aa3oAwSK.js → card-Cx6wrdfw.js} +1 -1
- package/dist/client/assets/category-editor-C739ZvBd.js +1 -0
- package/dist/client/assets/{chat-context-BwMjJizF.js → chat-context-B5ZQ1YfK.js} +1 -1
- package/dist/client/assets/{checkbox-CeBf25NN.js → checkbox-B7TbfwYP.js} +1 -1
- package/dist/client/assets/{cli-auth-success-E6DKGZbo.js → cli-auth-success-CBSRlsxB.js} +1 -1
- package/dist/client/assets/collection-detail-B4w3rR_M.js +1 -0
- package/dist/client/assets/{collection-display-button-DnS3_1nt.js → collection-display-button-0-Hst3O8.js} +1 -1
- package/dist/client/assets/{collection-search-6KQEdQV-.js → collection-search-AKNFTM-D.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BLcba9z6.js → collection-table-wrapper-CEqEmtDG.js} +1 -1
- package/dist/client/assets/{collection-tabs-MCaOG9FY.js → collection-tabs--bEwcm53.js} +1 -1
- package/dist/client/assets/{command-CRuC_jNJ.js → command-B7XTl9tP.js} +1 -1
- package/dist/client/assets/commerce-onboarding-m8aal-Ok.js +1 -0
- package/dist/client/assets/{companions-core-BM5TG5dO.js → companions-core-kxCoM-si.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-Bf9qr6oz.js → connect-desktop-dialog-DxF0k8Db.js} +1 -1
- package/dist/client/assets/{connection-card-DEI5eOI5.js → connection-card-d5eTvTiU.js} +1 -1
- package/dist/client/assets/connection-detail-WDGkMUzt.js +1 -0
- package/dist/client/assets/{connection-form-helpers-n5fp7W7B.js → connection-form-helpers-DbDFNXLq.js} +1 -1
- package/dist/client/assets/connections-D1N1XzHS.js +1 -0
- package/dist/client/assets/{decopilot-sse-pool-B49XBmc3.js → decopilot-sse-pool-Dsaw7oxy.js} +1 -1
- package/dist/client/assets/{dialog-BU5DFH5W.js → dialog-BPAdfoaH.js} +1 -1
- package/dist/client/assets/{domain-settings-DLl-p3Oy.js → domain-settings-L_qtUFf4.js} +1 -1
- package/dist/client/assets/{drawer-BIAuey25.js → drawer-BiJB3f_K.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B4BZdUdJ.js → dropdown-menu-BgVBdzgn.js} +1 -1
- package/dist/client/assets/{empty-state-BW-NUX3e.js → empty-state-BD2XpatK.js} +1 -1
- package/dist/client/assets/{extract-connection-data-G-Bpyqkw.js → extract-connection-data-Bb4ouwkr.js} +1 -1
- package/dist/client/assets/file-explorer-xlajTm22.js +2 -0
- package/dist/client/assets/{file-type-icon-BRTxz-sQ.js → file-type-icon-BSIaVdXl.js} +1 -1
- package/dist/client/assets/{files-_6sFjnpA.js → files-VX1EwHro.js} +1 -1
- package/dist/client/assets/{form-CJt6q_5g.js → form-CH35sWOt.js} +1 -1
- package/dist/client/assets/{general-Bhr1Q8lJ.js → general-CuQ7F01F.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CAwFwGMb.js → github-repo-picker-C8uMgVuF.js} +1 -1
- package/dist/client/assets/{hooks-DiiS8_mX.js → hooks-BYwJXzbJ.js} +1 -1
- package/dist/client/assets/{index-EdxKZ7EU.js → index--6OJQKLs.js} +1 -1
- package/dist/client/assets/{index-C4SF_sj-.js → index-BDbyCous.js} +1 -1
- package/dist/client/assets/index-BWbNoA4-.js +173 -0
- package/dist/client/assets/{index-Bma6OLIT.js → index-C02FCcQV.js} +1 -1
- package/dist/client/assets/{index-CfhAOeJp.js → index-CUBg3a-0.js} +1 -1
- package/dist/client/assets/{index-0h6CbAzf.js → index-CbmZLGvf.js} +1 -1
- package/dist/client/assets/{index-DRBP5o7G.js → index-CkseNUY3.js} +1 -1
- package/dist/client/assets/{index-BYupzQX1.js → index-DE9bsiH9.js} +3 -3
- package/dist/client/assets/{index-CZLoUT5P.js → index-DR3_Zkfu.js} +2 -2
- package/dist/client/assets/index-DtS6J0cK.js +1 -0
- package/dist/client/assets/{index-DBqvK62_.js → index-DuqgHh6W.js} +1 -1
- package/dist/client/assets/{index-Bj1sd40L.js → index-SFE6Rfyj.js} +25 -25
- package/dist/client/assets/{index-BQID7zjJ.js → index-pk1nt4x0.js} +1 -1
- package/dist/client/assets/{index-redirect-DjRNCHvn.js → index-redirect-BL5XXZtW.js} +1 -1
- package/dist/client/assets/{index-DZX7qGop.js → index-y0cucw2j.js} +2 -2
- package/dist/client/assets/{input-Bc-7wRHw.js → input-DovBF_6H.js} +1 -1
- package/dist/client/assets/{integration-icon-DzWTEjUs.js → integration-icon-NCY_y5rt.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-jSv6XLHk.js → invite-member-dialog-aUdxLnOl.js} +1 -1
- package/dist/client/assets/{label-xvuN6YsE.js → label-BWlR6vAl.js} +1 -1
- package/dist/client/assets/{layout-DF3M0vBy.js → layout-yrkPETvd.js} +1 -1
- package/dist/client/assets/{login-BTGqkwVc.js → login-BHVoN3Dl.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BEeJhwCj.js → mcp-oauth-Ok6tUSLD.js} +1 -1
- package/dist/client/assets/{members-BQEf05em.js → members-MMn0cVOt.js} +1 -1
- package/dist/client/assets/{monaco-editor-BsSWWkts.js → monaco-editor-BDgsF20v.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CH9IWyLZ.js → monitoring-stats-row-CSFFT8zk.js} +1 -1
- package/dist/client/assets/{multi-select-CDwZWqOE.js → multi-select-BReKMl3F.js} +1 -1
- package/dist/client/assets/{oauth-callback-37gHZ6lO.js → oauth-callback-M90Y0nJQ.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BkIq5JY3.js → oauth-callback-ai-provider-CLeRWyoD.js} +1 -1
- package/dist/client/assets/{onboarding-tm-uqfgS.js → onboarding-BHH0YB9S.js} +1 -1
- package/dist/client/assets/{org-install-Dpbib2cD.js → org-install-Dx44ltxQ.js} +1 -1
- package/dist/client/assets/{org-layout-DXAPbbXS.js → org-layout-fi4AQOsf.js} +1 -1
- package/dist/client/assets/{organization-choice-BnkT96vQ.js → organization-choice-DGLh4y7b.js} +1 -1
- package/dist/client/assets/{orgs-I-CVQCmn.js → orgs-BI6oXNnp.js} +1 -1
- package/dist/client/assets/{page-seo-form-BIbiHKTD.js → page-seo-form-BL8Xxslp.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CmyMK4Jf.js +1 -0
- package/dist/client/assets/{popover-B_wVGt8-.js → popover-DbmxDQo8.js} +1 -1
- package/dist/client/assets/post-editor-CBMYgfKM.js +1 -0
- package/dist/client/assets/{primitives-D3_sxcZZ.js → primitives-DQp5QZlZ.js} +1 -1
- package/dist/client/assets/{profile-C1KRfvOr.js → profile-MZin5Sq8.js} +1 -1
- package/dist/client/assets/project-app-view-Cd-BIsC7.js +1 -0
- package/dist/client/assets/record-editor-CDKws8al.js +1 -0
- package/dist/client/assets/redirect-editor-iPcJvy11.js +1 -0
- package/dist/client/assets/registry-DoKzGyyE.js +2 -0
- package/dist/client/assets/{registry-layout--Isk8ky4.js → registry-layout-70W_rTpj.js} +1 -1
- package/dist/client/assets/{reports-DfNdK2o2.js → reports-BW3jotlV.js} +1 -1
- package/dist/client/assets/{require-capability-BAqkM-uu.js → require-capability-q2k4vgrL.js} +1 -1
- package/dist/client/assets/{required-auth-layout-2LZKzk9v.js → required-auth-layout-EGqwZ6se.js} +1 -1
- package/dist/client/assets/{reset-password-Bv9UTsvJ.js → reset-password-C9cKsUOP.js} +1 -1
- package/dist/client/assets/roles-D7FYoVgP.js +1 -0
- package/dist/client/assets/{search-input-DdYHUEaZ.js → search-input-DNBSW_V4.js} +1 -1
- package/dist/client/assets/{secrets-CDtOUZTQ.js → secrets-CLdgv5Bt.js} +1 -1
- package/dist/client/assets/{sections-editor-D5jA4BpW.js → sections-editor-kh_mdITm.js} +2 -2
- package/dist/client/assets/{select-D6eS9wfi.js → select-aBCLkiqI.js} +1 -1
- package/dist/client/assets/{select-model-Cg_ZkTF2.js → select-model-muHB6mNx.js} +2 -2
- package/dist/client/assets/{self-tool-result-CxF5glyU.js → self-tool-result-59x0oxLl.js} +1 -1
- package/dist/client/assets/seo-editor-DNKNpBlP.js +1 -0
- package/dist/client/assets/{settings-layout-BcfFpOXC.js → settings-layout-BeRwpMiS.js} +1 -1
- package/dist/client/assets/{settings-section-CbH-EVpR.js → settings-section-5TQzN23l.js} +1 -1
- package/dist/client/assets/{shell-controls-B7pKd0_S.js → shell-controls-obTHmMmn.js} +1 -1
- package/dist/client/assets/{shell-layout-C6pck1jN.js → shell-layout-DUOq8-Mi.js} +1 -1
- package/dist/client/assets/{sidebar-BqxKhHd4.js → sidebar-KfZUHaZ3.js} +1 -1
- package/dist/client/assets/{skeleton-FGugFtDG.js → skeleton-oM88nII8.js} +1 -1
- package/dist/client/assets/{sso-0jng4uBf.js → sso-Bkfs_4Hf.js} +1 -1
- package/dist/client/assets/{store-D-gFvpTE.js → store-CKHAhHTW.js} +1 -1
- package/dist/client/assets/store-registry-lt8F8AQy.js +2 -0
- package/dist/client/assets/{studio-tools-lcCHZe1J.js → studio-tools-CLlC8XC0.js} +1 -1
- package/dist/client/assets/{switch-DWcd-95y.js → switch-wc-JMrJW.js} +1 -1
- package/dist/client/assets/{table-Dm_-hO-V.js → table-DnmayFDg.js} +1 -1
- package/dist/client/assets/{tabs-D4A5jRT4.js → tabs-p5oGER-3.js} +1 -1
- package/dist/client/assets/{textarea-fiC9rZ0h.js → textarea-CKVUE152.js} +1 -1
- package/dist/client/assets/{toggle-group-CbmsoRH8.js → toggle-group-Bq_kOy1h.js} +1 -1
- package/dist/client/assets/{toolbar-rhMa_4Hk.js → toolbar-BSiYnqoL.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DlMzf0l2.js → toolbar-icon-button-Lw9n0_WR.js} +1 -1
- package/dist/client/assets/{tooltip-B3_TInpd.js → tooltip-gbjR2jqB.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Dl25_ErA.js → use-ai-providers-_qS2qx6u.js} +1 -1
- package/dist/client/assets/{use-automations-BWfz7gg-.js → use-automations-Cg19EnMj.js} +1 -1
- package/dist/client/assets/{use-autosave-D3QcZOpu.js → use-autosave-C0k8vm8D.js} +1 -1
- package/dist/client/assets/{use-capability-CVJR07VY.js → use-capability-B-IX_soF.js} +1 -1
- package/dist/client/assets/{use-clock-tick-B_Z5346Q.js → use-clock-tick-BkGGOkbb.js} +1 -1
- package/dist/client/assets/{use-collections-BgBopunk.js → use-collections-DKaN9Van.js} +1 -1
- package/dist/client/assets/{use-connection-ecP-LOlu.js → use-connection-3hoAyxR0.js} +1 -1
- package/dist/client/assets/{use-copy-jCInK_V1.js → use-copy-Bj5N25Og.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DRKKu78t.js → use-create-virtual-mcp-BPw8BNDm.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CH0JFgRx.js → use-debounced-autosave-BR6AvYxX.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Uuon3S9W.js → use-debounced-value-DFX3-h9r.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DvcverbC.js → use-deco-credits-DYBJ8MJK.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BEZ72Jkb.js → use-decopilot-events-DoOrs7Jp.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BhvCEJxJ.js → use-delete-connection-BtsfohMK.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CAq5dAWn.js → use-deployment-admin-w2nqdf2W.js} +1 -1
- package/dist/client/assets/{use-file-configs-eN7OWZ8v.js → use-file-configs-BU6poq2e.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BglRZ1QB.js → use-infinite-scroll-D7ow0UWK.js} +1 -1
- package/dist/client/assets/{use-join-requests-CWHqzMas.js → use-join-requests-C_WcbOxJ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CldVeTAa.js → use-mcp-auth-status-Cc5P5YPy.js} +1 -1
- package/dist/client/assets/{use-mcp-client-1txAl4Nn.js → use-mcp-client-BtzK1kSd.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Df6cIGEM.js → use-mcp-tools-CfMvkYlJ.js} +1 -1
- package/dist/client/assets/{use-members-BK20_T6U.js → use-members-CbyW23vN.js} +1 -1
- package/dist/client/assets/{use-mobile-BlbBUtbB.js → use-mobile-CQnz-qO9.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D-NxwfzS.js → use-navigate-to-agent-CB5dVqMu.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BOJU8IRV.js → use-org-auth-client-C9_EVR6o.js} +1 -1
- package/dist/client/assets/{use-org-sso-QrDBjlyp.js → use-org-sso-Cq6_NWho.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DBo7q2aS.js → use-organization-roles-gQwIKDF6.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CVVov6IL.js → use-organization-settings-De7_zsu2.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BcaQ0klr.js → use-registry-connections-EA7l6B_t.js} +1 -1
- package/dist/client/assets/{use-secrets-_jh0wX2R.js → use-secrets-2R9rPimZ.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Da71KV1f.js → use-status-sounds-D5DSSwdi.js} +1 -1
- package/dist/client/assets/{use-view-mode-Bq3eiyd9.js → use-view-mode-Dfn6ZzsY.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BD6WMdRh.js → use-virtual-mcp-BtoQe4jO.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BYBonOR0.js +1 -0
- package/dist/client/assets/{useRouterState-kMjAtZA2.js → useRouterState-oXjMqXoY.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-FBzK59jx.js +1 -0
- package/dist/client/assets/{users-enMu8cIr.js → users-BNdsP3mj.js} +1 -1
- package/dist/client/assets/variant-calendar-BkGz0Z87.js +1 -0
- package/dist/client/assets/{view-mode-toggle-BnPQS-qD.js → view-mode-toggle-C22jBG_O.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/Tool01-BpjlKODL.js +0 -1
- package/dist/client/assets/ZoomOut-DmQxsrD_.js +0 -1
- package/dist/client/assets/agent-icon-BG0nMkZr.js +0 -1
- package/dist/client/assets/agents-list-DAkge_FU.js +0 -1
- package/dist/client/assets/ai-providers-CZxLeh4U.js +0 -1
- package/dist/client/assets/app-editor-B92-8O14.js +0 -1
- package/dist/client/assets/automations-CdFH77ob.js +0 -1
- package/dist/client/assets/bulk-category-panel-Bo6PNXxW.js +0 -1
- package/dist/client/assets/category-editor-BCksG4vZ.js +0 -1
- package/dist/client/assets/collection-detail-DrAOoYa4.js +0 -1
- package/dist/client/assets/commerce-onboarding-DPZX3TeB.js +0 -1
- package/dist/client/assets/connection-detail-QqxgAxuk.js +0 -1
- package/dist/client/assets/connections-Wz-GGYoK.js +0 -1
- package/dist/client/assets/file-explorer-DJp95aPy.js +0 -2
- package/dist/client/assets/index-BTcUFe8i.js +0 -173
- package/dist/client/assets/index-BwtuxIqC.js +0 -1
- package/dist/client/assets/page-seo-sheet-DxQvuYUZ.js +0 -1
- package/dist/client/assets/post-editor-DeQyUTZw.js +0 -1
- package/dist/client/assets/project-app-view-CCUtUft0.js +0 -1
- package/dist/client/assets/record-editor-CQHtKTtS.js +0 -1
- package/dist/client/assets/redirect-editor-CRYW1YQA.js +0 -1
- package/dist/client/assets/registry-jvrbrcVc.js +0 -2
- package/dist/client/assets/roles-C5D5x740.js +0 -1
- package/dist/client/assets/seo-editor-CPFYQVg5.js +0 -1
- package/dist/client/assets/store-registry-DkMl0DLm.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BZq6rADh.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BeVtNfUB.js +0 -1
- package/dist/client/assets/variant-calendar-injdT8F_.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as E,c as oe,j as t,B as U,i as ce,p as te,l as de,E as Ye,C as be,b as _e,u as Ze,a as Ne,z as et,G as tt,D as nt,M as st,J as ot,n as it,t as W,K as rt}from"./index-BYupzQX1.js";import{a as De,b as lt,g as at,e as ct}from"./extract-connection-data-G-Bpyqkw.js";import{C as dt}from"./collection-display-button-DnS3_1nt.js";import{S as mt}from"./search-input-DdYHUEaZ.js";import{C as ut}from"./collection-tabs-MCaOG9FY.js";import{C as Ce,u as pt,a as ke,g as ht}from"./connection-card-DEI5eOI5.js";import{E as gt}from"./empty-state-BW-NUX3e.js";import{P as ue}from"./index-0h6CbAzf.js";import{u as xt,D as ft}from"./use-delete-connection-BhvCEJxJ.js";import{u as ye}from"./use-capability-CVJR07VY.js";import{u as jt}from"./use-infinite-scroll-BglRZ1QB.js";import{u as yt}from"./use-view-mode-Bq3eiyd9.js";import{g as he}from"./connection-slug-eyAPH6o3.js";import{c as Ae,d as we,b as Te,A as Ie,e as Pe,g as $e,a as Le,f as Oe}from"./alert-dialog-DJa8hr5P.js";import{n as ge}from"./Tool02-B6UqyM_J.js";import{C as Fe}from"./checkbox-CeBf25NN.js";import{D as Me,a as ze,h as Ve,c as Ee,d as Be,e as Ke}from"./dialog-BU5DFH5W.js";import{D as Ct,a as vt,c as St,b as bt,d as _t,e as Nt,f as Dt}from"./drawer-BIAuey25.js";import{u as kt}from"./use-mobile-BlbBUtbB.js";import{a as Ue,D as Re,c as He,d as re}from"./dropdown-menu-B4BZdUdJ.js";import{F as J,b as Q,c as Y,d as Z,f as ee,a as ve}from"./form-CJt6q_5g.js";import{I as ie}from"./input-Bc-7wRHw.js";import{S as At,a as wt,b as Tt,c as It,d as ae}from"./select-D6eS9wfi.js";import{T as Pt}from"./textarea-fiC9rZ0h.js";import{b as We,u as $t}from"./use-connection-ecP-LOlu.js";import{u as Lt}from"./use-virtual-mcp-BD6WMdRh.js";import{u as Ot}from"./studio-tools-lcCHZe1J.js";import{ah as Ft,ak as Mt,K as zt,J as Vt}from"./agent-icon-BG0nMkZr.js";import{i as Xe}from"./DotsVertical-Dk5Xdxve.js";import{s as qe}from"./Eye-DF50O1Ue.js";import{s as je}from"./Star01-D8wrCAnP.js";import{s as Ge}from"./Plus-o1s3J9RF.js";import{s as Je}from"./Trash01-BhHYhKqt.js";import{s as Qe}from"./XClose-C6R6Hrmn.js";import{i as pe,a as Se,E as Et,c as Bt,p as Kt,b as Ut,d as Rt}from"./connection-form-helpers-n5fp7W7B.js";import{a as Ht}from"./authenticate-and-persist-oauth-D-6WsL4Q.js";import{I as Wt}from"./integration-icon-DzWTEjUs.js";import"./use-mcp-client-1txAl4Nn.js";import"./constants-D_FQAPnt.js";import"./auth-0M1DqVYt.js";import"./ArrowUp-5EMoK-0z.js";import"./Check-DW_CJo9x.js";import"./SwitchHorizontal01-C7qYtxDX.js";import"./List-D9CCEPJ3.js";import"./tooltip-B3_TInpd.js";import"./view-mode-toggle-BnPQS-qD.js";import"./badge-J8Dmk1J0.js";import"./SearchMd-CxWfDzx_.js";import"./use-registry-connections-BcaQ0klr.js";import"./use-organization-settings-CVVov6IL.js";import"./useInfiniteQuery-BZq6rADh.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./card-aa3oAwSK.js";import"./sidebar-BqxKhHd4.js";import"./LayoutLeft-BkVB2IbZ.js";import"./X-BWPJzkP7.js";import"./ChevronRight-jGxYypbD.js";import"./Circle-XeFXmZfO.js";import"./label-xvuN6YsE.js";import"./ChevronDown-CyPL9p3K.js";import"./ChevronUp-D1wkSkA0.js";import"./use-collections-BgBopunk.js";import"./AlertCircle-sDfzMQz-.js";import"./UserPlus01-CiUhK_7V.js";import"./Tool01-BpjlKODL.js";import"./Settings02-CXx65ABV.js";import"./XCircle-D0AQsXiF.js";import"./ArrowUpRight-BCg_ek3r.js";import"./TrendUp01-ytIvysU7.js";import"./ZapSquare-D-7d5mNS.js";import"./Users03-B522am55.js";import"./CheckCircle-CvckcHSW.js";import"./Stars02-CyV0ls88.js";import"./Copy01-AsmF-oFM.js";import"./ZoomOut-DmQxsrD_.js";import"./Globe01-DOhXvJ4f.js";import"./FilterLines-C_jjXfkg.js";import"./Flag01-B5gDwl3Q.js";import"./Globe04-c8g2iyUk.js";import"./HardDrive-Ddg1UJlN.js";import"./Key01-BOZ45ZZP.js";import"./LinkExternal01-DdU7WoMF.js";import"./Monitor01-sX1pwHXM.js";import"./Sun-CE2mYjYy.js";import"./Package-CfSQbtDl.js";import"./Palette-C7yix6_T.js";import"./Play-BlRk613P.js";import"./SearchLg-M-hd_gai.js";import"./Shield01-CWQHp-7f.js";import"./Stars01-Cmtkyg7-.js";import"./Upload01-MLXfWlY_.js";import"./User01-DyqXRcED.js";import"./Users01-C2chq_s1.js";import"./Zap-DJjVd0ns.js";import"./mcp-oauth-BEeJhwCj.js";function Xt(f){const e=`deco-filters-${f}`,[n,p]=E.useState(()=>{try{const o=globalThis.localStorage?.getItem(e);if(o)return JSON.parse(o)}catch(o){console.error("Failed to parse stored filters:",o)}return[]});return[n,o=>{p(o);try{globalThis.localStorage?.setItem(e,JSON.stringify(o))}catch(i){console.error("Failed to save filters:",i)}}]}function qt(f){const e=oe.c(7),[n,p]=E.useState(f),[l,o]=E.useState(f?"desc":null);let i;e[0]!==l||e[1]!==n?(i=j=>{n!==j?(p(j),o("asc")):l==="asc"?o("desc"):l==="desc"&&(p(void 0),o(null))},e[0]=l,e[1]=n,e[2]=i):i=e[2];const g=i;let h;return e[3]!==g||e[4]!==l||e[5]!==n?(h={sortKey:n,sortDirection:l,handleSort:g},e[3]=g,e[4]=l,e[5]=n,e[6]=h):h=e[6],h}function Gt(f){const e=oe.c(20),{namespace:n,resource:p,defaultSortKey:l,defaultViewMode:o}=f,i=l===void 0?"title":l,g=o===void 0?"table":o,[h,j]=E.useState(""),y=E.useDeferredValue(h),N=`${n}-${p}`,[b,a]=Xt(N),x=`mesh-${p}-filter-visible-${n}`;let m;e[0]!==x?(m=()=>globalThis.localStorage?.getItem(x)==="true",e[0]=x,e[1]=m):m=e[1];const[v,_]=E.useState(m);let D;e[2]!==x?(D=T=>{_(T),globalThis.localStorage?.setItem(x,String(T))},e[2]=x,e[3]=D):D=e[3];const L=D;let O;e[4]!==v||e[5]!==L?(O=()=>{L(!v)},e[4]=v,e[5]=L,e[6]=O):O=e[6];const s=O,[A,F]=yt(`mesh-${p}-${n}`,g),{sortKey:M,sortDirection:w,handleSort:P}=qt(i),z=M;let C;return e[7]!==v||e[8]!==b||e[9]!==P||e[10]!==h||e[11]!==y||e[12]!==L||e[13]!==a||e[14]!==F||e[15]!==w||e[16]!==z||e[17]!==s||e[18]!==A?(C={search:h,searchTerm:y,setSearch:j,filters:b,setFilters:a,filterBarVisible:v,setFilterBarVisible:L,toggleFilterBar:s,viewMode:A,setViewMode:F,sortKey:z,sortDirection:w,handleSort:P},e[7]=v,e[8]=b,e[9]=P,e[10]=h,e[11]=y,e[12]=L,e[13]=a,e[14]=F,e[15]=w,e[16]=z,e[17]=s,e[18]=A,e[19]=C):C=e[19],C}function Jt(f){const e=oe.c(20),{open:n,onOpenChange:p,count:l,onConfirm:o}=f,i=l!==1?"s":"";let g;e[0]!==l||e[1]!==i?(g=t.jsxs(Ae,{children:["Delete ",l," connection",i,"?"]}),e[0]=l,e[1]=i,e[2]=g):g=e[2];const h=l!==1?"s":"";let j;e[3]!==h?(j=t.jsxs(we,{children:["This will permanently delete the selected connection",h,". This action cannot be undone."]}),e[3]=h,e[4]=j):j=e[4];let y;e[5]!==g||e[6]!==j?(y=t.jsxs(Te,{children:[g,j]}),e[5]=g,e[6]=j,e[7]=y):y=e[7];let N;e[8]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Ie,{children:"Cancel"}),e[8]=N):N=e[8];const b=l!==1?"s":"";let a;e[9]!==l||e[10]!==o||e[11]!==b?(a=t.jsxs(Pe,{children:[N,t.jsxs($e,{onClick:o,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:["Delete ",l," connection",b]})]}),e[9]=l,e[10]=o,e[11]=b,e[12]=a):a=e[12];let x;e[13]!==y||e[14]!==a?(x=t.jsxs(Le,{children:[y,a]}),e[13]=y,e[14]=a,e[15]=x):x=e[15];let m;return e[16]!==p||e[17]!==n||e[18]!==x?(m=t.jsx(Oe,{open:n,onOpenChange:p,children:x}),e[16]=p,e[17]=n,e[18]=x,e[19]=m):m=e[19],m}function Qt(f){return f._registryId?.includes("community-registry")===!0}function Yt(f){const e=oe.c(58),{item:n,canManage:p,allConnections:l,connectedAppNames:o,connectingItemId:i,onNavigateConnected:g,onConnect:h}=f,[j,y]=E.useState(!1),[N,b]=E.useState(null);let a,x;e[0]!==o||e[1]!==n?(a=De(n)??"",x=o.has(a),e[0]=o,e[1]=n,e[2]=a,e[3]=x):(a=e[2],x=e[3]);const m=x,v=n._meta?.["mcp.mesh"],_=v?.friendlyName||v?.friendly_name||n.server?.title||n.title||n.server?.name||n.name||n.id||"",D=n.server?.description||n.description||null;let L;e[4]!==n.server?.icons?.[0]?.src||e[5]!==n.server?.repository?(L=n.server?.icons?.[0]?.src||lt(n.server?.repository)||null,e[4]=n.server?.icons?.[0]?.src,e[5]=n.server?.repository,e[6]=L):L=e[6];const O=L;let s;if(e[7]!==l||e[8]!==a){let k;e[10]!==a?(k=se=>se.connection_type!=="VIRTUAL"&&se.app_name===a,e[10]=a,e[11]=k):k=e[11],s=l.filter(k),e[7]=l,e[8]=a,e[9]=s}else s=e[9];const A=s;let F;e[12]!==n?(F=Qt(n),e[12]=n,e[13]=F):F=e[13];const M=F;let w,P;e[14]!==A||e[15]!==p||e[16]!==M||e[17]!==m||e[18]!==n||e[19]!==h||e[20]!==g?(w=()=>{if(m){const k=A[0];k&&g(k);return}p&&P()},P=()=>{M?(b("connect"),y(!0)):h(n)},e[14]=A,e[15]=p,e[16]=M,e[17]=m,e[18]=n,e[19]=h,e[20]=g,e[21]=w,e[22]=P):(w=e[21],P=e[22]);let z;e[23]!==n||e[24]!==h||e[25]!==N?(z=()=>{te("connections_community_warning_confirmed",{registry_item_id:n.id}),y(!1),N==="connect"&&h(n),b(null)},e[23]=n,e[24]=h,e[25]=N,e[26]=z):z=e[26];const C=z;let T;e[27]!==D||e[28]!==O||e[29]!==_?(T={title:_,description:D,icon:O},e[27]=D,e[28]=O,e[29]=_,e[30]=T):T=e[30];let G;e[31]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx(ge,{}),e[31]=G):G=e[31];let H;e[32]!==M||e[33]!==n._sourceIcon?(H=M&&n._sourceIcon&&t.jsx("img",{src:n._sourceIcon,alt:"Community",className:"size-4 rounded-sm object-contain"}),e[32]=M,e[33]=n._sourceIcon,e[34]=H):H=e[34];let X;e[35]!==p||e[36]!==i||e[37]!==P||e[38]!==m||e[39]!==n.id?(X=m?t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"Connected"}):p&&t.jsx(U,{variant:"outline",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:i!==null,onClick:k=>{k.stopPropagation(),P()},children:i===n.id?t.jsx(ce,{size:14,className:"animate-spin"}):"Connect"}),e[35]=p,e[36]=i,e[37]=P,e[38]=m,e[39]=n.id,e[40]=X):X=e[40];let c;e[41]!==H||e[42]!==X?(c=t.jsxs("div",{className:"flex items-center gap-2",children:[H,X]}),e[41]=H,e[42]=X,e[43]=c):c=e[43];let S;e[44]!==w||e[45]!==c||e[46]!==T?(S=t.jsx(Ce,{connection:T,fallbackIcon:G,onClick:w,headerActionsAlwaysVisible:!0,headerActions:c}),e[44]=w,e[45]=c,e[46]=T,e[47]=S):S=e[47];let V;e[48]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsxs(Te,{children:[t.jsx(Ae,{children:"Community MCP Server"}),t.jsx(we,{children:"This MCP server is from the Community MCP Registry and is not maintained or verified by Deco. Community servers may have varying levels of quality, security, and reliability. Proceed with caution and review the server details before connecting."})]}),e[48]=V):V=e[48];let R;e[49]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(Ie,{children:"Cancel"}),e[49]=R):R=e[49];let B;e[50]!==C?(B=t.jsxs(Le,{children:[V,t.jsxs(Pe,{children:[R,t.jsx($e,{onClick:C,children:"Continue"})]})]}),e[50]=C,e[51]=B):B=e[51];let u;e[52]!==j||e[53]!==B?(u=t.jsx(Oe,{open:j,onOpenChange:y,children:B}),e[52]=j,e[53]=B,e[54]=u):u=e[54];let $;return e[55]!==S||e[56]!==u?($=t.jsxs(t.Fragment,{children:[S,u]}),e[55]=S,e[56]=u,e[57]=$):$=e[57],$}function Zt(f){const e=oe.c(51),{group:n,onOpen:p,selectionMode:l,selectedIds:o,onToggleSelect:i}=f;let g;if(e[0]!==n.connections||e[1]!==o){let C;e[3]!==o?(C=T=>o.has(T.id),e[3]=o,e[4]=C):C=e[4],g=n.connections.every(C),e[0]=n.connections,e[1]=o,e[2]=g}else g=e[2];const h=g;let j;if(e[5]!==n.connections||e[6]!==o){let C;e[8]!==o?(C=T=>o.has(T.id),e[8]=o,e[9]=C):C=e[9],j=n.connections.some(C),e[5]=n.connections,e[6]=o,e[7]=j}else j=e[7];const y=j,N=`${n.connections.length} instances`;let b;e[10]!==n.icon||e[11]!==n.title||e[12]!==N?(b={title:n.title,icon:n.icon,description:N},e[10]=n.icon,e[11]=n.title,e[12]=N,e[13]=b):b=e[13];let a;e[14]!==h||e[15]!==n.connections||e[16]!==p||e[17]!==i||e[18]!==o||e[19]!==l?(a=()=>l?(()=>{for(const C of n.connections)h?o.has(C.id)&&i(C.id):o.has(C.id)||i(C.id)})():p(),e[14]=h,e[15]=n.connections,e[16]=p,e[17]=i,e[18]=o,e[19]=l,e[20]=a):a=e[20];const x=l&&h&&"ring-2 ring-primary",m=l&&y&&!h&&"ring-1 ring-primary/50";let v;e[21]!==x||e[22]!==m?(v=de(x,m),e[21]=x,e[22]=m,e[23]=v):v=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(ge,{}),e[24]=_):_=e[24];let D;e[25]!==h||e[26]!==n.connections||e[27]!==i||e[28]!==o||e[29]!==l||e[30]!==y?(D=l?t.jsx(Fe,{checked:h?!0:y?"indeterminate":!1,onCheckedChange:()=>{for(const C of n.connections)h?o.has(C.id)&&i(C.id):o.has(C.id)||i(C.id)}}):t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"Connected"}),t.jsxs("span",{className:"text-xs text-muted-foreground font-normal tabular-nums",children:["x",n.connections.length]})]}),e[25]=h,e[26]=n.connections,e[27]=i,e[28]=o,e[29]=l,e[30]=y,e[31]=D):D=e[31];const L=l?"w-8 opacity-100":"w-0 opacity-0 group-hover:w-8 group-hover:opacity-100";let O;e[32]!==L?(O=de("overflow-hidden transition-all duration-150 ease-out",L),e[32]=L,e[33]=O):O=e[33];let s;e[34]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(Ue,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:tn,children:t.jsx(Xe,{size:20})})}),e[34]=s):s=e[34];let A;e[35]!==p?(A=C=>{C.stopPropagation(),p()},e[35]=p,e[36]=A):A=e[36];let F;e[37]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(qe,{size:16}),e[37]=F):F=e[37];let M;e[38]!==A?(M=t.jsxs(Re,{children:[s,t.jsx(He,{align:"end",onClick:en,children:t.jsxs(re,{onClick:A,children:[F,"Open"]})})]}),e[38]=A,e[39]=M):M=e[39];let w;e[40]!==O||e[41]!==M?(w=t.jsx("div",{className:O,children:M}),e[40]=O,e[41]=M,e[42]=w):w=e[42];let P;e[43]!==D||e[44]!==w?(P=t.jsxs("div",{className:"flex items-center gap-1",children:[D,w]}),e[43]=D,e[44]=w,e[45]=P):P=e[45];let z;return e[46]!==P||e[47]!==b||e[48]!==a||e[49]!==v?(z=t.jsx(t.Fragment,{children:t.jsx(Ce,{connection:b,onClick:a,className:v,fallbackIcon:_,headerActionsAlwaysVisible:!0,headerActions:P})}),e[46]=P,e[47]=b,e[48]=a,e[49]=v,e[50]=z):z=e[50],z}function en(f){return f.stopPropagation()}function tn(f){return f.stopPropagation()}function nn(f){const e=oe.c(23),{count:n,total:p,canManage:l,canManageAgents:o,onSelectAll:i,onDeselectAll:g,onDelete:h,onAddToAgent:j,onToggleStatus:y,onCancel:N}=f;if(n===0)return null;let b;e[0]!==n?(b=t.jsxs("div",{className:"text-xs text-muted-foreground pr-1 tabular-nums",children:[n," selected"]}),e[0]=n,e[1]=b):b=e[1];let a;e[2]!==n||e[3]!==g||e[4]!==i||e[5]!==p?(a=n<p?t.jsxs(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:i,children:["Select all (",p,")"]}):t.jsx(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:g,children:"Clear selection"}),e[2]=n,e[3]=g,e[4]=i,e[5]=p,e[6]=a):a=e[6];let x;e[7]!==o||e[8]!==j?(x=o&&t.jsxs(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:j,children:[t.jsx(Ge,{size:13}),"Add to Agent"]}),e[7]=o,e[8]=j,e[9]=x):x=e[9];let m;e[10]!==l||e[11]!==h||e[12]!==y?(m=l&&t.jsxs(t.Fragment,{children:[t.jsx(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>y("active"),children:"Enable"}),t.jsx(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>y("inactive"),children:"Disable"}),t.jsxs(U,{variant:"destructive",size:"sm",className:"h-7 text-xs px-2",onClick:h,children:[t.jsx(Je,{size:13}),"Delete"]})]}),e[10]=l,e[11]=h,e[12]=y,e[13]=m):m=e[13];let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Qe,{size:13}),e[14]=v):v=e[14];let _;e[15]!==N?(_=t.jsx(U,{variant:"ghost",size:"sm",className:"h-7 text-xs px-2",onClick:N,children:v}),e[15]=N,e[16]=_):_=e[16];let D;return e[17]!==b||e[18]!==a||e[19]!==x||e[20]!==m||e[21]!==_?(D=t.jsx("div",{className:"fixed bottom-4 left-1/2 z-50 -translate-x-1/2",children:t.jsxs("div",{className:"rounded-xl border border-border bg-background/95 shadow-lg backdrop-blur px-3 py-2 flex items-center gap-2",children:[b,a,x,m,_]})}),e[17]=b,e[18]=a,e[19]=x,e[20]=m,e[21]=_,e[22]=D):D=e[22],D}function sn(f){const e=oe.c(25),{open:n,onOpenChange:p,agents:l,onConfirm:o}=f,[i,g]=E.useState(null);let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsxs(Me,{children:[t.jsx(ze,{children:"Add to Agent"}),t.jsx(Ve,{children:"Select an agent to add the selected connections to."})]}),e[0]=h):h=e[0];let j;e[1]!==l||e[2]!==i?(j=l.length===0?t.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No agents found"}):l.map(D=>t.jsxs("button",{type:"button",onClick:()=>g(D.id),className:de("flex items-center gap-3 w-full rounded-md px-3 py-2 text-left transition-colors",i===D.id?"bg-primary/10 ring-1 ring-primary":"hover:bg-muted/50"),children:[t.jsx(Wt,{icon:D.icon,name:D.title,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:D.title}),D.description&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:D.description})]})]},D.id)),e[1]=l,e[2]=i,e[3]=j):j=e[3];let y;e[4]!==j?(y=t.jsx("div",{className:"max-h-60 overflow-auto py-2 space-y-1",children:j}),e[4]=j,e[5]=y):y=e[5];let N;e[6]!==p?(N=t.jsx(U,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),e[6]=p,e[7]=N):N=e[7];const b=!i;let a;e[8]!==o||e[9]!==p||e[10]!==i?(a=()=>{i&&(o(i),p(!1),g(null))},e[8]=o,e[9]=p,e[10]=i,e[11]=a):a=e[11];let x;e[12]!==b||e[13]!==a?(x=t.jsx(U,{disabled:b,onClick:a,children:"Add"}),e[12]=b,e[13]=a,e[14]=x):x=e[14];let m;e[15]!==N||e[16]!==x?(m=t.jsxs(Ee,{children:[N,x]}),e[15]=N,e[16]=x,e[17]=m):m=e[17];let v;e[18]!==y||e[19]!==m?(v=t.jsxs(Be,{className:"sm:max-w-[400px]",children:[h,y,m]}),e[18]=y,e[19]=m,e[20]=v):v=e[20];let _;return e[21]!==p||e[22]!==n||e[23]!==v?(_=t.jsx(Ke,{open:n,onOpenChange:p,children:v}),e[21]=p,e[22]=n,e[23]=v,e[24]=_):_=e[24],_}function on({listState:f,activeTab:e,typeFilter:n,statusFilter:p,registryFilter:l,enabledRegistries:o}){const{org:i}=be(),g=it(),h=_e(),{data:j}=Ne.useSession(),y=We(),N=$t(f),b=xt(),{granted:a}=ye("connections:manage"),{granted:x}=ye("agents:manage"),[m,v]=E.useState(new Set),_=m.size>0,[D,L]=E.useState(!1),[O,s]=E.useState(!1),[A,F]=E.useState(null),M=Lt(),w=N.filter(r=>!(n!=="ALL"&&r.connection_type!==n||p!=="ALL"&&r.status!==p)),P=ht(w),z=r=>{v(d=>{const K=new Set(d);return K.has(r)?K.delete(r):K.add(r),K})},C=()=>{v(new Set)},T=ke(o,f.searchTerm),G=T.items,H=jt(T.loadMore,T.hasMore,T.isLoadingMore),X=new Set(N.filter(r=>r.app_name).map(r=>r.app_name)),c=l==="ALL"||o.some(r=>r.id===l)?l:"ALL",S=f.search.length>0,V=e==="all"||S?G.filter(r=>{if(c!=="ALL"&&r._registryId!==c)return!1;if(S){const d=De(r);if(d&&X.has(d))return!1}return!0}):[],R=e==="connected"||S?P:[],B=async r=>{if(!(!i||!j?.user?.id)){te("connection_add_clicked",{action:"connect_new",registry_item_id:r.id,source:"connections_page"}),F(r.id);try{const d=ct(r,i.id,j.user.id,{remoteIndex:0}),K=d.connection_type==="STDIO",I=!!d.connection_url,q=K&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!I&&!q){W.error("This MCP Server cannot be connected: no connection method available"),F(null);return}const{id:ne}=await y.create.mutateAsync(d),le=await Ht({connectionId:ne,orgId:i.id,orgSlug:i.slug,persistFallback:fe=>y.update.mutateAsync({id:ne,data:{connection_token:fe}}).then(()=>{})});if(le.ran&&!le.ok){te("connection_oauth_failed",{connection_id:ne,flow:"connections_page_connect",error:le.error??"no_token"}),W.error(`Authentication failed: ${le.error??"no token received"}`);return}if(le.ran){te("connection_oauth_succeeded",{connection_id:ne,flow:"connections_page_connect"});const fe=new URL(`/api/${i.slug}/mcp/${ne}`,window.location.origin);await g.invalidateQueries({queryKey:rt.isMCPAuthenticated(fe.href,null)}),$(),W.success("Authentication successful")}W.success("Connected successfully")}catch(d){W.error(`Failed to connect: ${d instanceof Error?d.message:String(d)}`)}finally{F(null)}}},u=Ot(),$=()=>{g.invalidateQueries({predicate:r=>{const d=r.queryKey;return d[1]===i.id&&d[3]==="collection"&&d[4]==="CONNECTIONS"}})},k=async()=>{L(!1);const r=[...m];te("connections_bulk_delete",{count:r.length});let d=0;for(const K of r)try{await u.call("COLLECTION_CONNECTIONS_DELETE",{id:K,force:!0}),d++}catch{}$(),W.success(`Deleted ${d} connection${d!==1?"s":""}`),C()},se=async(r,d)=>{try{await y.update.mutateAsync({id:r,data:{status:d}}),$(),W.success(d==="active"?"Connection enabled":"Connection disabled")}catch{W.error("Failed to update connection")}},xe=async r=>{const d=[...m];te("connections_bulk_status_toggled",{count:d.length,to_status:r});let K=0;for(const I of d)try{await y.update.mutateAsync({id:I,data:{status:r}}),K++}catch{}$(),W.success(`${r==="active"?"Enabled":"Disabled"} ${K} connection${K!==1?"s":""}`),C()},me=async r=>{const d=M.find(q=>q.id===r);if(!d)return;te("connections_bulk_add_to_agent",{agent_id:r,count:m.size});const K=new Set(d.connections.map(q=>q.connection_id)),I=[...m].filter(q=>!K.has(q)).map(q=>({connection_id:q,selected_tools:null,selected_resources:null,selected_prompts:null}));if(I.length===0){W.info("All selected connections are already in that agent");return}try{await u.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:r,data:{connections:[...d.connections,...I]}}),g.invalidateQueries({predicate:q=>{const ne=q.queryKey;return ne[1]===i.id&&ne[3]==="collection"&&ne[4]==="VIRTUAL_MCP"}}),W.success(`Added ${I.length} connection${I.length!==1?"s":""} to "${d.title}"`),C()}catch{W.error("Failed to add connections to agent")}};return t.jsxs(t.Fragment,{children:[t.jsx(ft,{...b}),t.jsx(Jt,{open:D,onOpenChange:L,count:m.size,onConfirm:k}),t.jsx(sn,{open:O,onOpenChange:s,agents:M,onConfirm:me}),T.isInitialLoading&&e==="all"?t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ce,{size:32,className:"animate-spin text-muted-foreground"})}):t.jsx("div",{children:(S?V.length===0&&w.length===0:e==="all"?V.length===0:w.length===0)?t.jsx(gt,{image:t.jsx("img",{src:"/emptystate-mcp.svg",alt:"",width:336,height:320,"aria-hidden":"true"}),title:"No Connections found",description:f.search?`No Connections match "${f.search}"`:a?"Create a connection to get started.":"Ask an organization admin to add one."}):t.jsxs("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:[R.map(r=>{if(r.type==="group")return t.jsx(Zt,{group:r,onOpen:()=>{h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:r.key}})},selectionMode:_,selectedIds:m,onToggleSelect:z},r.key);const d=r.connection,K=m.has(d.id);return t.jsx(Ce,{connection:d,fallbackIcon:t.jsx(ge,{}),onClick:()=>_?z(d.id):h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:he(d)}}),className:de(K&&"ring-2 ring-primary bg-primary/5"),headerActionsAlwaysVisible:!0,headerActions:t.jsxs("div",{className:"flex items-center gap-1",children:[_?t.jsx(Fe,{checked:K,onCheckedChange:()=>z(d.id),onClick:I=>I.stopPropagation()}):t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"Connected"}),t.jsx("div",{className:de("overflow-hidden transition-all duration-150 ease-out",_?"w-8 opacity-100":"w-0 opacity-0 group-hover:w-8 group-hover:opacity-100"),children:t.jsxs(Re,{children:[t.jsx(Ue,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:I=>I.stopPropagation(),children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:I=>I.stopPropagation(),children:[t.jsxs(re,{onClick:I=>{I.stopPropagation(),h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:he(d)}})},children:[t.jsx(qe,{size:16}),"Open"]}),(a||x)&&t.jsxs(re,{onClick:I=>{I.stopPropagation(),z(d.id)},children:[t.jsx(Mt,{size:16}),"Select"]}),a&&(d.status==="active"?t.jsxs(re,{onClick:I=>{I.stopPropagation(),se(d.id,"inactive")},children:[t.jsx(zt,{size:16}),"Disable"]}):t.jsxs(re,{onClick:I=>{I.stopPropagation(),se(d.id,"active")},children:[t.jsx(Vt,{size:16}),"Enable"]})),a&&t.jsxs(re,{variant:"destructive",onClick:I=>{I.stopPropagation(),b.requestDelete(d)},children:[t.jsx(Je,{size:16}),"Delete"]})]})]})})]})},d.id)}),V.map(r=>t.jsx(Yt,{item:r,canManage:a,allConnections:N,connectedAppNames:X,connectingItemId:A,onNavigateConnected:d=>h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:he(d)}}),onConnect:B},`catalog-${r._registryId}:${r.id}`)),(e==="all"||S)&&o.length>0&&t.jsx("div",{ref:H,className:"col-span-full h-4"}),(e==="all"||S)&&T.isLoadingMore&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(ce,{size:24,className:"animate-spin text-muted-foreground"})})]})}),_&&t.jsx(nn,{count:m.size,total:w.length,canManage:a,canManageAgents:x,onSelectAll:()=>{v(new Set(w.map(r=>r.id)))},onDeselectAll:()=>v(new Set),onDelete:()=>L(!0),onAddToAgent:()=>s(!0),onToggleStatus:xe,onCancel:C})]})}function rn(){const{org:f}=be(),e=_e(),n=Ze({strict:!1}),{data:p}=Ne.useSession(),{stdioEnabled:l}=et(),o=kt(),{granted:i}=ye("connections:manage"),g=Gt({namespace:f.slug,resource:"connections"}),h=We(),[j,y]=tt(nt.connectionsTab(f.slug),c=>n.tab==="all"||n.tab==="connected"?n.tab:c??"all"),[N,b]=E.useState("ALL"),[a,x]=E.useState("ALL"),[m,v]=E.useState("ALL"),_=pt(),L=ke(_,g.searchTerm).items,O=g.search!==g.searchTerm,s=st({resolver:ot(Bt),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),A=s.watch("ui_type"),F=s.watch("connection_url"),M=s.watch("npx_package"),w=pe({uiType:A,connectionUrl:F??"",npxPackage:M??""})??Se({uiType:A,connectionUrl:F??"",registryItems:L}),P=i&&n.action==="create",z=()=>{te("connections_custom_dialog_opened",{source:"connections_page"}),e({to:"/$org/settings/connections",params:{org:f.slug},search:{action:"create"}})},C=()=>{e({to:"/$org/settings/connections",params:{org:f.slug},search:{}})},T=async c=>{let S,V=null,R=null,B=null;c.ui_type==="NPX"?(S="STDIO",V="",B=Ut(c.npx_package||"",c.env_vars||[])):c.ui_type==="STDIO"?(S="STDIO",V="",B=Rt(c.stdio_command||"",c.stdio_args||"",c.stdio_cwd,c.env_vars||[])):(S=c.ui_type,V=c.connection_url||"",R=c.connection_token||null);const u=at("conn");te("connection_custom_created",{connection_type:S,ui_type:c.ui_type}),await h.create.mutateAsync({id:u,title:c.title,description:c.description||null,connection_type:S,connection_url:V,connection_token:R,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:p?.user?.id||"system",organization_id:f.id,icon:c.icon??null,app_name:null,app_id:null,connection_headers:B,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),C(),s.reset(),e({to:"/$org/settings/connections/$appSlug",params:{org:f.slug,appSlug:he({app_name:null,connection_url:V,title:c.title,id:u})}})},G=c=>{c||(P&&C(),s.reset())},H=c=>{const S=c.trim();if(!S)return;const V=!!s.formState.dirtyFields.title,R=!!s.formState.dirtyFields.description,B=!!s.formState.dirtyFields.env_vars,u=k=>{if(k&&(!V&&!s.getValues("title").trim()&&k.title&&s.setValue("title",k.title,{shouldDirty:!1}),!R&&!(s.getValues("description")??"").trim()&&k.description&&s.setValue("description",k.description,{shouldDirty:!1}),!B&&k.envVarKeys?.length)){const se=s.getValues("env_vars")??[],xe=new Set(se.map(r=>r.key)),me=k.envVarKeys.filter(r=>!xe.has(r));me.length>0&&s.setValue("env_vars",[...se,...me.map(r=>({key:r,value:""}))],{shouldDirty:!0})}},$=Kt(S);if($&&l){s.setValue("ui_type","NPX",{shouldDirty:!0}),s.setValue("npx_package",$.packageName,{shouldDirty:!0}),s.setValue("connection_url","",{shouldDirty:!0}),s.setValue("connection_token",null,{shouldDirty:!0}),u(pe({uiType:"NPX",npxPackage:$.packageName}));return}if(S.startsWith("http://")||S.startsWith("https://")){const k=A==="HTTP"||A==="SSE"||A==="Websocket"?A:"HTTP";s.setValue("ui_type",k,{shouldDirty:!0}),s.setValue("connection_url",S,{shouldDirty:!0}),u(pe({uiType:k,connectionUrl:S})??Se({uiType:k,connectionUrl:S,registryItems:L}));return}A==="NPX"&&u(pe({uiType:"NPX",npxPackage:S}))},X=i?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(U,{variant:"outline",onClick:z,children:[t.jsx(Ge,{size:14,className:"sm:hidden"}),t.jsx("span",{className:"hidden sm:inline",children:"Custom Connection"})]})}):null;return t.jsx(t.Fragment,{children:t.jsxs(ue,{children:[(()=>{const c="Create Connection",S="Create a custom connection in your organization. Fill in the details below.",V=s.formState.isSubmitting?"Saving...":"Create Connection",R=t.jsxs("div",{className:"grid gap-4",children:[t.jsx(J,{control:s.control,name:"ui_type",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:"Type *"}),t.jsxs(At,{value:u.value,onValueChange:u.onChange,children:[t.jsx(Z,{children:t.jsx(wt,{children:t.jsx(Tt,{})})}),t.jsxs(It,{children:[t.jsx(ae,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(je,{className:"w-4 h-4"}),"HTTP"]})}),t.jsx(ae,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(je,{className:"w-4 h-4"}),"SSE"]})}),t.jsx(ae,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(je,{className:"w-4 h-4"}),"Websocket"]})}),l&&t.jsxs(t.Fragment,{children:[t.jsx(ae,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ge,{className:"w-4 h-4"}),"NPX Package"]})}),t.jsx(ae,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Ft,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),t.jsx(ee,{})]})}),A==="NPX"&&t.jsx(J,{control:s.control,name:"npx_package",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:"NPM Package *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"@perplexity-ai/mcp-server",...u,value:u.value??"",onPaste:$=>{const k=$.clipboardData.getData("text");k&&($.preventDefault(),s.setValue("npx_package",k.trim(),{shouldDirty:!0}),H(k))},onBlur:$=>{H($.target.value),u.onBlur()}})}),t.jsx(ee,{})]})}),A==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[t.jsx(J,{control:s.control,name:"stdio_command",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:"Command *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"node, bun, python...",...u,value:u.value??""})}),t.jsx(ee,{})]})}),t.jsx(J,{control:s.control,name:"stdio_args",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:"Arguments"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"arg1 arg2 --flag value",...u,value:u.value??""})}),t.jsx(ee,{})]})})]}),t.jsx(J,{control:s.control,name:"stdio_cwd",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:"Working Directory"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"/path/to/project (optional)",...u,value:u.value??""})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Directory where the command will be executed"}),t.jsx(ee,{})]})})]}),(A==="NPX"||A==="STDIO")&&t.jsx(J,{control:s.control,name:"env_vars",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:"Environment Variables"}),t.jsx(Z,{children:t.jsx(Et,{value:u.value??[],onChange:u.onChange})}),t.jsx(ee,{})]})}),A!=="NPX"&&A!=="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsx(J,{control:s.control,name:"connection_url",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:"URL *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"https://example.com/mcp",...u,value:u.value??"",onPaste:$=>{const k=$.clipboardData.getData("text");k&&($.preventDefault(),s.setValue("connection_url",k.trim(),{shouldDirty:!0}),H(k))},onBlur:$=>{H($.target.value),u.onBlur()}})}),t.jsx(ee,{})]})}),t.jsx(J,{control:s.control,name:"connection_token",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:w?.token?.label??"Token (optional)"}),t.jsx(Z,{children:t.jsx(ie,{type:"password",placeholder:w?.token?.placeholder??"Bearer token or API key",...u,value:u.value??""})}),w?.token?.helperText&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[w.token.helperText,w.id==="github"&&t.jsxs(t.Fragment,{children:[" ","·"," ",t.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:"Open GitHub PAT settings"})]})]}),t.jsx(ee,{})]})})]}),t.jsx(J,{control:s.control,name:"title",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:"Name *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"My Connection",...u})}),t.jsx(ee,{})]})}),t.jsx(J,{control:s.control,name:"description",render:({field:u})=>t.jsxs(Q,{children:[t.jsx(Y,{children:"Description"}),t.jsx(Z,{children:t.jsx(Pt,{placeholder:"A brief description of this connection",rows:3,...u,value:u.value??""})}),t.jsx(ee,{})]})})]}),B=P;return o?t.jsx(Ct,{open:B,onOpenChange:G,children:t.jsxs(vt,{className:"max-h-[90vh]",children:[t.jsx(St,{className:"pb-2",children:t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"flex-1 text-left",children:[t.jsx(bt,{children:c}),t.jsx(_t,{className:"mt-1",children:S})]}),t.jsx(Nt,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:t.jsx(Qe,{size:16})})})]})}),t.jsx(ve,{...s,children:t.jsxs("form",{onSubmit:s.handleSubmit(T),children:[t.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:R}),t.jsx(Dt,{children:t.jsx(U,{type:"submit",disabled:s.formState.isSubmitting,className:"w-full",children:V})})]})})]})}):t.jsx(Ke,{open:B,onOpenChange:G,children:t.jsxs(Be,{className:"sm:max-w-[525px]",children:[t.jsxs(Me,{children:[t.jsx(ze,{children:c}),t.jsx(Ve,{children:S})]}),t.jsx(ve,{...s,children:t.jsxs("form",{onSubmit:s.handleSubmit(T),children:[t.jsx("div",{className:"py-4",children:R}),t.jsxs(Ee,{children:[t.jsx(U,{type:"button",variant:"outline",onClick:()=>G(!1),children:"Cancel"}),t.jsx(U,{type:"submit",disabled:s.formState.isSubmitting,className:"min-w-40",children:V})]})]})})]})})})(),t.jsx(ue.Content,{children:t.jsx(ue.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(ue.Title,{children:"Connections"}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(mt,{value:g.search,onChange:g.setSearch,placeholder:"Search for a connection",className:"w-full md:w-[375px]",onKeyDown:c=>{c.key==="Escape"&&(g.setSearch(""),c.target.blur())}}),t.jsx(dt,{sortKey:g.sortKey,sortDirection:g.sortDirection,onSort:g.handleSort,sortOptions:[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"connection_type",label:"Type"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],filters:[{label:"Type",value:N,onChange:c=>b(c||"ALL"),options:[{id:"ALL",label:"All"},{id:"HTTP",label:"HTTP"},{id:"SSE",label:"SSE"},{id:"Websocket",label:"WebSocket"},{id:"STDIO",label:"STDIO"}]},{label:"Status",value:a,onChange:c=>x(c||"ALL"),options:[{id:"ALL",label:"All"},{id:"active",label:"Active"},{id:"inactive",label:"Inactive"},{id:"error",label:"Error"}]},..._.length>1?[{label:"Registry",value:m,onChange:c=>v(c||"ALL"),options:[{id:"ALL",label:"All registries"},..._.map(c=>({id:c.id,label:c.id.includes("community-registry")?"Community MCP Registry":c.title}))]}]:[]]})]}),X]}),t.jsx(ut,{tabs:[{id:"all",label:"All"},{id:"connected",label:"Connected"}],activeTab:j,onTabChange:c=>{const S=c;S!==j&&te("connections_page_tab_changed",{to_tab:S}),y(S)}}),t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ce,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx("div",{style:{opacity:O?.5:1,transition:O?"opacity 0.2s 0.2s linear":"opacity 0s 0s linear",pointerEvents:O?"none":"auto"},children:t.jsx(on,{listState:g,activeTab:j,typeFilter:N,statusFilter:a,registryFilter:m,enabledRegistries:_})})})]})})})]})})}function Js(){const f=oe.c(1);let e;return f[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ye,{children:t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ce,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(rn,{})})}),f[0]=e):e=f[0],e}export{Js as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as Y,r as u,j as r,i as oe,B as xe,d$ as St,aO as Mt,aU as re,e0 as Dt,e1 as Rt,e2 as Pt,e3 as Et,bO as kt,e4 as Tt,e5 as Ue,aQ as Ot,e6 as At,e7 as Lt,e8 as Ft,e9 as It,ea as $t,eb as _t,ec as zt,ed as Gt,ee as Wt,l as ie,n as Kt,t as q,K as Fe}from"./index-BYupzQX1.js";import{F as Bt,l as Ut}from"./index-CfhAOeJp.js";import{d as Vt,ay as qt,az as Qt,aA as de,aB as Ht,a0 as Ie}from"./agent-icon-BG0nMkZr.js";import{a as Xt}from"./Tool01-BpjlKODL.js";import{s as Yt}from"./XClose-C6R6Hrmn.js";import{A as Jt}from"./automation-runs-NZWy5naJ.js";import{b as $e,T as _e,a as ze}from"./tooltip-B3_TInpd.js";import{b as Zt}from"./chat-context-BwMjJizF.js";import{u as en}from"./shell-layout-C6pck1jN.js";import{s as ue,a as Ge,f as tn}from"./index-Bj1sd40L.js";import{a as nn,h as rn,D as on,c as sn,d as an,e as ln}from"./dialog-BU5DFH5W.js";import{I as We}from"./input-Bc-7wRHw.js";import{c as cn,d as dn,b as un,A as fn,g as mn,e as pn,a as xn,f as hn}from"./alert-dialog-DJa8hr5P.js";import{t as gn}from"./ChevronDown-CyPL9p3K.js";import{i as vn}from"./ChevronRight-jGxYypbD.js";import{a as Cn}from"./ZoomOut-DmQxsrD_.js";import{v as yn,E as wn,w as Ke,x as Ce,y as bn,z as jn,A as Nn,C as H,D as fe,g as ye,G as we,I as Sn,J as Mn,K as be,M as me,N as je,O as Dn,P as Rn}from"./index-BTcUFe8i.js";import"./AlertCircle-sDfzMQz-.js";import"./UserPlus01-CiUhK_7V.js";import"./ArrowUp-5EMoK-0z.js";import"./Settings02-CXx65ABV.js";import"./Tool02-B6UqyM_J.js";import"./XCircle-D0AQsXiF.js";import"./ArrowUpRight-BCg_ek3r.js";import"./TrendUp01-ytIvysU7.js";import"./ZapSquare-D-7d5mNS.js";import"./Users03-B522am55.js";import"./CheckCircle-CvckcHSW.js";import"./Check-DW_CJo9x.js";import"./ChevronUp-D1wkSkA0.js";import"./Circle-XeFXmZfO.js";import"./Stars02-CyV0ls88.js";import"./Copy01-AsmF-oFM.js";import"./DotsVertical-Dk5Xdxve.js";import"./Globe01-DOhXvJ4f.js";import"./Eye-DF50O1Ue.js";import"./FilterLines-C_jjXfkg.js";import"./Flag01-B5gDwl3Q.js";import"./Star01-D8wrCAnP.js";import"./Globe04-c8g2iyUk.js";import"./SwitchHorizontal01-C7qYtxDX.js";import"./HardDrive-Ddg1UJlN.js";import"./Key01-BOZ45ZZP.js";import"./LayoutLeft-BkVB2IbZ.js";import"./LinkExternal01-DdU7WoMF.js";import"./List-D9CCEPJ3.js";import"./Monitor01-sX1pwHXM.js";import"./Sun-CE2mYjYy.js";import"./Package-CfSQbtDl.js";import"./Palette-C7yix6_T.js";import"./Play-BlRk613P.js";import"./Plus-o1s3J9RF.js";import"./SearchLg-M-hd_gai.js";import"./SearchMd-CxWfDzx_.js";import"./Shield01-CWQHp-7f.js";import"./Stars01-Cmtkyg7-.js";import"./Trash01-BhHYhKqt.js";import"./Upload01-MLXfWlY_.js";import"./User01-DyqXRcED.js";import"./Users01-C2chq_s1.js";import"./X-BWPJzkP7.js";import"./Zap-DJjVd0ns.js";import"./select-D6eS9wfi.js";import"./useInfiniteQuery-BZq6rADh.js";import"./use-infinite-scroll-BglRZ1QB.js";import"./use-connection-ecP-LOlu.js";import"./use-collections-BgBopunk.js";import"./use-mcp-client-1txAl4Nn.js";import"./constants-D_FQAPnt.js";import"./auth-0M1DqVYt.js";import"./use-virtual-mcp-BD6WMdRh.js";import"./card-aa3oAwSK.js";import"./sidebar-BqxKhHd4.js";import"./use-mobile-BlbBUtbB.js";import"./table-Dm_-hO-V.js";import"./empty-state-BW-NUX3e.js";import"./use-members-BK20_T6U.js";import"./use-org-auth-client-BOJU8IRV.js";import"./use-clock-tick-B_Z5346Q.js";import"./use-automations-BWfz7gg-.js";import"./studio-tools-lcCHZe1J.js";import"./useSuspenseInfiniteQuery-BeVtNfUB.js";import"./avatar-BpWo990_.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-jCInK_V1.js";import"./file-type-icon-BRTxz-sQ.js";import"./tab-id-BijBBRwE.js";import"./hooks-DiiS8_mX.js";import"./decopilot-sse-pool-B49XBmc3.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./monaco-editor-BsSWWkts.js";import"./index-DBqvK62_.js";import"./integration-icon-DzWTEjUs.js";import"./use-navigate-to-agent-D-NxwfzS.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BbF7HkuD.js";import"./form-CJt6q_5g.js";import"./label-xvuN6YsE.js";import"./autosend-8dyE67rr.js";import"./use-ai-providers-Dl25_ErA.js";import"./use-decopilot-events-BEZ72Jkb.js";import"./use-organization-settings-CVVov6IL.js";import"./required-auth-layout-2LZKzk9v.js";import"./use-org-sso-QrDBjlyp.js";import"./drawer-BIAuey25.js";import"./collection-search-6KQEdQV-.js";import"./tabs-D4A5jRT4.js";import"./toggle-group-CbmsoRH8.js";import"./use-deco-credits-DvcverbC.js";import"./extract-connection-data-G-Bpyqkw.js";import"./connection-card-DEI5eOI5.js";import"./use-registry-connections-BcaQ0klr.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-fiC9rZ0h.js";import"./connection-form-helpers-n5fp7W7B.js";import"./authenticate-and-persist-oauth-D-6WsL4Q.js";import"./mcp-oauth-BEeJhwCj.js";import"./collection-tabs-MCaOG9FY.js";import"./badge-J8Dmk1J0.js";import"./connect-desktop-dialog-Bf9qr6oz.js";import"./select-model-Cg_ZkTF2.js";import"./checkbox-CeBf25NN.js";import"./skeleton-FGugFtDG.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CbH-EVpR.js";import"./command-CRuC_jNJ.js";import"./index-Bma6OLIT.js";import"./popover-B_wVGt8-.js";import"./dropdown-menu-B4BZdUdJ.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Da71KV1f.js";import"./toolbar-rhMa_4Hk.js";import"./use-mcp-tools-Df6cIGEM.js";import"./use-capability-CVJR07VY.js";import"./use-debounced-autosave-CH0JFgRx.js";import"./index-0h6CbAzf.js";import"./search-input-DdYHUEaZ.js";import"./use-mcp-auth-status-CldVeTAa.js";import"./switch-DWcd-95y.js";import"./github-repo-picker-CAwFwGMb.js";import"./use-debounced-value-Uuon3S9W.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-_jh0wX2R.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-BM5TG5dO.js";import"./index-DZX7qGop.js";import"./get-initials-D-f_fDFw.js";import"./calendar-CiyIJkJP.js";import"./toolbar-icon-button-DlMzf0l2.js";import"./use-file-configs-eN7OWZ8v.js";import"./automation-list-row-B0m5PJDd.js";const Pn={"new-file":{title:"New File",description:"Enter a name for the new file.",submit:"Create",placeholder:"filename.ts"},"new-folder":{title:"New Folder",description:"Enter a name for the new folder.",submit:"Create",placeholder:"folder-name"},rename:{title:"Rename",description:"Enter a new name for this item.",submit:"Rename",placeholder:"new-name"}};function En(a){const e=Y.c(51),{open:i,mode:s,initialName:c,parentLabel:f,isPending:h,onSubmit:p,onOpenChange:v}=a,C=c===void 0?"":c,d=h===void 0?!1:h,[x,y]=u.useState(C),[D,k]=u.useState(i),g=Pn[s];i!==D&&(k(i),i&&y(C));let b;e[0]!==d||e[1]!==v?(b=B=>{!B&&!d&&v(!1)},e[0]=d,e[1]=v,e[2]=b):b=e[2];const U=b;let T;e[3]!==d||e[4]!==x||e[5]!==p?(T=async B=>{B.preventDefault();const Q=x.trim();!Q||d||await p(Q)},e[3]=d,e[4]=x,e[5]=p,e[6]=T):T=e[6];const O=T;let j;e[7]!==g.title?(j=r.jsx(nn,{children:g.title}),e[7]=g.title,e[8]=j):j=e[8];let w;e[9]!==g.description?(w=r.jsx(rn,{children:g.description}),e[9]=g.description,e[10]=w):w=e[10];let A;e[11]!==j||e[12]!==w?(A=r.jsxs(on,{children:[j,w]}),e[11]=j,e[12]=w,e[13]=A):A=e[13];let L;e[14]!==f?(L=f&&r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Location"}),r.jsx(We,{value:f,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[14]=f,e[15]=L):L=e[15];let G;e[16]===Symbol.for("react.memo_cache_sentinel")?(G=r.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[16]=G):G=e[16];let I;e[17]===Symbol.for("react.memo_cache_sentinel")?(I=B=>y(B.target.value),e[17]=I):I=e[17];let $;e[18]!==g.placeholder||e[19]!==d||e[20]!==x?($=r.jsxs("div",{className:"space-y-1.5",children:[G,r.jsx(We,{id:"file-explorer-name",value:x,onChange:I,placeholder:g.placeholder,autoFocus:!0,disabled:d})]}),e[18]=g.placeholder,e[19]=d,e[20]=x,e[21]=$):$=e[21];let R;e[22]!==$||e[23]!==L?(R=r.jsxs("div",{className:"space-y-4 py-4",children:[L,$]}),e[22]=$,e[23]=L,e[24]=R):R=e[24];let P;e[25]!==v?(P=()=>v(!1),e[25]=v,e[26]=P):P=e[26];let _;e[27]!==d||e[28]!==P?(_=r.jsx(xe,{type:"button",variant:"outline",onClick:P,disabled:d,children:"Cancel"}),e[27]=d,e[28]=P,e[29]=_):_=e[29];let z;e[30]!==d||e[31]!==x?(z=!x.trim()||d,e[30]=d,e[31]=x,e[32]=z):z=e[32];let N;e[33]!==g.submit||e[34]!==d?(N=d?r.jsxs(r.Fragment,{children:[r.jsx(oe,{size:14,className:"animate-spin"}),"Saving…"]}):g.submit,e[33]=g.submit,e[34]=d,e[35]=N):N=e[35];let W;e[36]!==z||e[37]!==N?(W=r.jsx(xe,{type:"submit",disabled:z,children:N}),e[36]=z,e[37]=N,e[38]=W):W=e[38];let S;e[39]!==_||e[40]!==W?(S=r.jsxs(sn,{children:[_,W]}),e[39]=_,e[40]=W,e[41]=S):S=e[41];let E;e[42]!==O||e[43]!==R||e[44]!==S||e[45]!==A?(E=r.jsx(an,{className:"sm:max-w-md",children:r.jsxs("form",{onSubmit:O,children:[A,R,S]})}),e[42]=O,e[43]=R,e[44]=S,e[45]=A,e[46]=E):E=e[46];let V;return e[47]!==U||e[48]!==i||e[49]!==E?(V=r.jsx(ln,{open:i,onOpenChange:U,children:E}),e[47]=U,e[48]=i,e[49]=E,e[50]=V):V=e[50],V}function kn(a){const e=Y.c(31),{deleteTarget:i,deleteDirtyPaths:s,fsActionPending:c,onOpenChange:f,onConfirm:h}=a,p=i!==null,v=i?.kind==="directory"?"folder":"file";let C;e[0]!==v?(C=r.jsxs(cn,{children:["Delete ",v,"?"]}),e[0]=v,e[1]=C):C=e[1];const d=i?.name;let x;e[2]!==d?(x=r.jsx("span",{className:"font-mono",children:d}),e[2]=d,e[3]=x):x=e[3];const y=i?.kind==="directory"?" and everything inside it.":".";let D;e[4]!==s.length?(D=s.length>0&&r.jsxs(r.Fragment,{children:[" ",s.length===1?"One open file has unsaved changes that will be lost.":`${s.length} open files have unsaved changes that will be lost.`]}),e[4]=s.length,e[5]=D):D=e[5];let k;e[6]!==x||e[7]!==y||e[8]!==D?(k=r.jsxs(dn,{children:["This will permanently delete"," ",x,y,D]}),e[6]=x,e[7]=y,e[8]=D,e[9]=k):k=e[9];let g;e[10]!==C||e[11]!==k?(g=r.jsxs(un,{children:[C,k]}),e[10]=C,e[11]=k,e[12]=g):g=e[12];let b;e[13]!==c?(b=r.jsx(fn,{disabled:c,children:"Cancel"}),e[13]=c,e[14]=b):b=e[14];const U=c||!i;let T;e[15]!==i||e[16]!==h?(T=L=>{L.preventDefault(),i&&h(i)},e[15]=i,e[16]=h,e[17]=T):T=e[17];let O;e[18]!==U||e[19]!==T?(O=r.jsx(mn,{disabled:U,onClick:T,children:"Delete"}),e[18]=U,e[19]=T,e[20]=O):O=e[20];let j;e[21]!==b||e[22]!==O?(j=r.jsxs(pn,{children:[b,O]}),e[21]=b,e[22]=O,e[23]=j):j=e[23];let w;e[24]!==j||e[25]!==g?(w=r.jsxs(xn,{children:[g,j]}),e[24]=j,e[25]=g,e[26]=w):w=e[26];let A;return e[27]!==f||e[28]!==p||e[29]!==w?(A=r.jsx(hn,{open:p,onOpenChange:f,children:w}),e[27]=f,e[28]=p,e[29]=w,e[30]=A):A=e[30],A}var Ne="ContextMenu",[Tn]=Ot(Ne,[Ue]),K=Ue(),[On,Ve]=Tn(Ne),qe=a=>{const{__scopeContextMenu:e,children:i,onOpenChange:s,dir:c,modal:f=!0}=a,[h,p]=u.useState(!1),v=K(e),C=kt(s),d=u.useCallback(x=>{p(x),C(x)},[C]);return r.jsx(On,{scope:e,open:h,onOpenChange:d,modal:f,children:r.jsx(Tt,{...v,dir:c,open:h,onOpenChange:d,modal:f,children:i})})};qe.displayName=Ne;var Qe="ContextMenuTrigger",He=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,disabled:s=!1,...c}=a,f=Ve(Qe,i),h=K(i),p=u.useRef({x:0,y:0}),v=u.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...p.current})}),C=u.useRef(0),d=u.useCallback(()=>window.clearTimeout(C.current),[]),x=y=>{p.current={x:y.clientX,y:y.clientY},f.onOpenChange(!0)};return u.useEffect(()=>d,[d]),u.useEffect(()=>{s&&d()},[s,d]),r.jsxs(r.Fragment,{children:[r.jsx(St,{...h,virtualRef:v}),r.jsx(Mt.span,{"data-state":f.open?"open":"closed","data-disabled":s?"":void 0,...c,ref:e,style:{WebkitTouchCallout:"none",...a.style},onContextMenu:s?a.onContextMenu:re(a.onContextMenu,y=>{d(),x(y),y.preventDefault()}),onPointerDown:s?a.onPointerDown:re(a.onPointerDown,pe(y=>{d(),C.current=window.setTimeout(()=>x(y),700)})),onPointerMove:s?a.onPointerMove:re(a.onPointerMove,pe(d)),onPointerCancel:s?a.onPointerCancel:re(a.onPointerCancel,pe(d)),onPointerUp:s?a.onPointerUp:re(a.onPointerUp,pe(d))})]})});He.displayName=Qe;var An="ContextMenuPortal",Xe=a=>{const{__scopeContextMenu:e,...i}=a,s=K(e);return r.jsx(Pt,{...s,...i})};Xe.displayName=An;var Ye="ContextMenuContent",Je=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=Ve(Ye,i),f=K(i),h=u.useRef(!1);return r.jsx(Et,{...f,...s,ref:e,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:p=>{a.onCloseAutoFocus?.(p),!p.defaultPrevented&&h.current&&p.preventDefault(),h.current=!1},onInteractOutside:p=>{a.onInteractOutside?.(p),!p.defaultPrevented&&!c.modal&&(h.current=!0)},style:{...a.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Je.displayName=Ye;var Ln="ContextMenuGroup",Fn=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(At,{...c,...s,ref:e})});Fn.displayName=Ln;var In="ContextMenuLabel",$n=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(Lt,{...c,...s,ref:e})});$n.displayName=In;var _n="ContextMenuItem",Ze=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(Dt,{...c,...s,ref:e})});Ze.displayName=_n;var zn="ContextMenuCheckboxItem",Gn=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(Ft,{...c,...s,ref:e})});Gn.displayName=zn;var Wn="ContextMenuRadioGroup",Kn=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(It,{...c,...s,ref:e})});Kn.displayName=Wn;var Bn="ContextMenuRadioItem",Un=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx($t,{...c,...s,ref:e})});Un.displayName=Bn;var Vn="ContextMenuItemIndicator",qn=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(_t,{...c,...s,ref:e})});qn.displayName=Vn;var Qn="ContextMenuSeparator",et=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(Rt,{...c,...s,ref:e})});et.displayName=Qn;var Hn="ContextMenuArrow",Xn=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(zt,{...c,...s,ref:e})});Xn.displayName=Hn;var Yn="ContextMenuSubTrigger",Jn=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(Gt,{...c,...s,ref:e})});Jn.displayName=Yn;var Zn="ContextMenuSubContent",er=u.forwardRef((a,e)=>{const{__scopeContextMenu:i,...s}=a,c=K(i);return r.jsx(Wt,{...c,...s,ref:e,style:{...a.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});er.displayName=Zn;function pe(a){return e=>e.pointerType!=="mouse"?a(e):void 0}var tr=qe,nr=He,rr=Xe,or=Je,ir=Ze,sr=et;function ar(a){const e=Y.c(4);let i;e[0]!==a?({...i}=a,e[0]=a,e[1]=i):i=e[1];let s;return e[2]!==i?(s=r.jsx(tr,{"data-slot":"context-menu",...i}),e[2]=i,e[3]=s):s=e[3],s}function lr(a){const e=Y.c(4);let i;e[0]!==a?({...i}=a,e[0]=a,e[1]=i):i=e[1];let s;return e[2]!==i?(s=r.jsx(nr,{"data-slot":"context-menu-trigger",...i}),e[2]=i,e[3]=s):s=e[3],s}function cr(a){const e=Y.c(8);let i,s;e[0]!==a?({className:i,...s}=a,e[0]=a,e[1]=i,e[2]=s):(i=e[1],s=e[2]);let c;e[3]!==i?(c=ie("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",i),e[3]=i,e[4]=c):c=e[4];let f;return e[5]!==s||e[6]!==c?(f=r.jsx(rr,{children:r.jsx(or,{"data-slot":"context-menu-content",className:c,...s})}),e[5]=s,e[6]=c,e[7]=f):f=e[7],f}function ee(a){const e=Y.c(12);let i,s,c,f;e[0]!==a?({className:i,inset:s,variant:f,...c}=a,e[0]=a,e[1]=i,e[2]=s,e[3]=c,e[4]=f):(i=e[1],s=e[2],c=e[3],f=e[4]);const h=f===void 0?"default":f;let p;e[5]!==i?(p=ie("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),e[5]=i,e[6]=p):p=e[6];let v;return e[7]!==s||e[8]!==c||e[9]!==p||e[10]!==h?(v=r.jsx(ir,{"data-slot":"context-menu-item","data-inset":s,"data-variant":h,className:p,...c}),e[7]=s,e[8]=c,e[9]=p,e[10]=h,e[11]=v):v=e[11],v}function Be(a){const e=Y.c(8);let i,s;e[0]!==a?({className:i,...s}=a,e[0]=a,e[1]=i,e[2]=s):(i=e[1],s=e[2]);let c;e[3]!==i?(c=ie("bg-border -mx-1 my-1 h-px",i),e[3]=i,e[4]=c):c=e[4];let f;return e[5]!==s||e[6]!==c?(f=r.jsx(sr,{"data-slot":"context-menu-separator",className:c,...s}),e[5]=s,e[6]=c,e[7]=f):f=e[7],f}const dr="#d9a441";function ur(a){const e=Y.c(45),{node:i,depth:s,isExpanded:c,isSelected:f,isLoading:h,fileVisual:p,onOpen:v,onSelect:C,onNewFile:d,onNewFolder:x,onCopyPath:y,onCopyRelativePath:D,onRename:k,onDelete:g}=a,b=h===void 0?!1:h,U=i.kind==="directory",{Icon:T,color:O}=p,j=f&&"bg-accent";let w;e[0]!==j?(w=ie("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",j),e[0]=j,e[1]=w):w=e[1];const A=`${s*14+8}px`;let L;e[2]!==A?(L={paddingLeft:A},e[2]=A,e[3]=L):L=e[3];let G;e[4]!==v||e[5]!==C?(G=()=>{C(),v()},e[4]=v,e[5]=C,e[6]=G):G=e[6];let I;e[7]!==T||e[8]!==O||e[9]!==U||e[10]!==c||e[11]!==b?(I=U?r.jsxs(r.Fragment,{children:[b?r.jsx(oe,{size:14,className:"shrink-0 animate-spin text-muted-foreground"}):c?r.jsx(gn,{size:14,className:"shrink-0 text-muted-foreground"}):r.jsx(vn,{size:14,className:"shrink-0 text-muted-foreground"}),r.jsx(Cn,{size:16,className:"shrink-0",style:{color:dr}})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"w-3.5 shrink-0"}),r.jsx(T,{size:16,className:"shrink-0",style:{color:O}})]}),e[7]=T,e[8]=O,e[9]=U,e[10]=c,e[11]=b,e[12]=I):I=e[12];let $;e[13]!==i.name?($=r.jsx("span",{className:"truncate",children:i.name}),e[13]=i.name,e[14]=$):$=e[14];let R;e[15]!==w||e[16]!==L||e[17]!==G||e[18]!==I||e[19]!==$?(R=r.jsx(lr,{asChild:!0,children:r.jsxs("button",{type:"button",className:w,style:L,onClick:G,children:[I,$]})}),e[15]=w,e[16]=L,e[17]=G,e[18]=I,e[19]=$,e[20]=R):R=e[20];let P;e[21]!==d?(P=r.jsx(ee,{onSelect:d,children:"New File"}),e[21]=d,e[22]=P):P=e[22];let _;e[23]!==x?(_=r.jsx(ee,{onSelect:x,children:"New Folder"}),e[23]=x,e[24]=_):_=e[24];let z;e[25]===Symbol.for("react.memo_cache_sentinel")?(z=r.jsx(Be,{}),e[25]=z):z=e[25];let N;e[26]!==y?(N=r.jsx(ee,{onSelect:y,children:"Copy Path"}),e[26]=y,e[27]=N):N=e[27];let W;e[28]!==D?(W=r.jsx(ee,{onSelect:D,children:"Copy Relative Path"}),e[28]=D,e[29]=W):W=e[29];let S;e[30]===Symbol.for("react.memo_cache_sentinel")?(S=r.jsx(Be,{}),e[30]=S):S=e[30];let E;e[31]!==k?(E=r.jsx(ee,{onSelect:k,children:"Rename"}),e[31]=k,e[32]=E):E=e[32];let V;e[33]!==g?(V=r.jsx(ee,{variant:"destructive",onSelect:g,children:"Delete"}),e[33]=g,e[34]=V):V=e[34];let B;e[35]!==P||e[36]!==_||e[37]!==N||e[38]!==W||e[39]!==E||e[40]!==V?(B=r.jsxs(cr,{className:"w-52",children:[P,_,z,N,W,S,E,V]}),e[35]=P,e[36]=_,e[37]=N,e[38]=W,e[39]=E,e[40]=V,e[41]=B):B=e[41];let Q;return e[42]!==B||e[43]!==R?(Q=r.jsxs(ar,{children:[R,B]}),e[42]=B,e[43]=R,e[44]=Q):Q=e[44],Q}Ut.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function fr(a,e,i,s){return`/api/${a}/sandbox/${encodeURIComponent(e)}/${encodeURIComponent(i)}/${s}`}const mr="#94a3b8";function pr(a){const e=a.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:de,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:de,color:"#d9a441"}:e.endsWith(".json")?{Icon:Ht,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:de,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:de,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:Xt,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:Ie,color:"#64748b"}:{Icon:Ie,color:mr}}function ls({orgSlug:a,virtualMcpId:e,branch:i,openPath:s}){const[c,f]=u.useState({files:[],directories:[],truncated:!1}),{files:h,directories:p}=c,[v,C]=u.useState(new Set),[d,x]=u.useState(null),[y,D]=u.useState(null),[k,g]=u.useState([]),[b,U]=u.useState(""),[T,O]=u.useState(!1),[j,w]=u.useState(!1),[,A]=u.useState(new Set),[L,G]=u.useState(new Set),I=u.useRef(0),$=u.useRef(null),R=u.useRef(new Set),P=u.useRef(new Map);function _(t){A(n=>{const o=typeof t=="function"?t(n):t;return R.current=o,o})}const[z,N]=u.useState(new Map),W=u.useRef(null),[S,E]=u.useState(null),{sendMessage:V}=Zt(),{openSidePanel:B}=en(),Q=Kt(),[F,X]=u.useState(null),[he,ge]=u.useState(null),[se,ae]=u.useState(!1);async function J(t,n){const o=await fetch(fr(a,e,i,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!o.ok){const l=await o.json().catch(()=>({}));throw new Error(l.error??`Request failed (${o.status})`)}return o.json()}async function le(){Q.invalidateQueries({queryKey:Ge(a,e,i)})}function Se(t,n){navigator.clipboard.writeText(n).then(()=>q.success(`${t} copied`),()=>q.error(`Failed to copy ${t.toLowerCase()}`))}function tt(t){const n=Dn(t);if(!n)return;const o=`${a}/${e}/${i}`;Q.setQueryData(Fe.decofile(o),l=>{if(!l)return l;const{[n]:m,...M}=l;return M}),Q.invalidateQueries({queryKey:Fe.liveMeta(a,e,i)})}function nt(t){const n=t.kind==="file"?[t.path]:h.filter(o=>o.startsWith(".deco/blocks/")).map(o=>fe(o)).filter(o=>o===t.path||o.startsWith(`${t.path}/`));for(const o of n)tt(o)}function rt(t){const n=fe(t);return k.filter(o=>{if(o!==n&&!o.startsWith(`${n}/`))return!1;const l=z.get(o);return!!(l?.loaded&&l.editorValue!==l.savedContent)})}function Me(t){g(n=>n.map(o=>t(o)).filter(o=>o!==null)),x(n=>n&&t(n)),N(n=>{const o=new Map;for(const[l,m]of n){const M=t(l);M&&o.set(M,m)}return o}),D(n=>{if(!n)return n;const o=t(n.path);return o?o===n.path?n:{...n,path:o,name:o.split("/").pop()??o}:null})}function ot(t){const n=fe(t);D(o=>o&&(o.path===n||o.path.startsWith(`${n}/`)?null:o)),Me(o=>o===n||o.startsWith(`${n}/`)?null:o)}async function it(t){if(!F)return;const n=me(F.parentDir,t);if(je(n,h,p))throw new Error(`"${t}" already exists`);await J("write",{path:H(n),content:""}),await te(),await le(),X(null),ve(n)}async function st(t){if(!F)return;const n=me(F.parentDir,t);if(je(n,h,p))throw new Error(`"${t}" already exists`);const o=H(n);await J("mkdir",{path:o}),f(l=>({...l,directories:l.directories.includes(o)?l.directories:[...l.directories,o]})),await te(),await le(),X(null),C(l=>{const m=new Set(l);for(const M of Ce(n))m.add(M);return m.add(n),m}),D({name:t,path:n,kind:"directory",children:[]})}async function at(t){if(!F)return;const n=F.node.path,o=be(n),l=me(o,t);if(l===n){X(null);return}if(je(l,h,p))throw new Error(`"${t}" already exists`);await J("rename",{from:H(n),to:H(l)}),Me(m=>m===n?l:m.startsWith(`${n}/`)?me(l,m.slice(n.length+1)):m),await te(),await le(),X(null)}async function lt(t){ae(!0);try{await J("unlink",{path:H(t.path),recursive:t.kind==="directory"}),nt(t),ot(t.path),await te(),await le(),ge(null),q.success(`Deleted "${t.name}"`)}catch(n){q.error(n instanceof Error?n.message:"Delete failed")}finally{ae(!1)}}async function ct(t){const n=Mn(t);if(n){q.error(n);return}ae(!0);try{F?.mode==="new-file"?(await it(t),q.success(`Created "${t}"`)):F?.mode==="new-folder"?(await st(t),q.success(`Created folder "${t}"`)):F?.mode==="rename"&&(await at(t),q.success(`Renamed to "${t}"`))}catch(o){q.error(o instanceof Error?o.message:"Operation failed")}finally{ae(!1)}}const De=u.useRef(!1);De.current||(De.current=!0,$.current=te());const[dt,ut]=u.useState(null);if(s&&s!==dt){ut(s);const t=s;queueMicrotask(()=>{yn(t)&&ve(t).catch(n=>{q.error(n instanceof Error?n.message:"Failed to open file")})})}async function Re(t){const n=await J("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Pe(t,n,o){if(o!==I.current)return!1;let l=!1;return f(m=>{const M=n?Rn(m.files,m.directories,t,m.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return l=!!M.truncated,{files:M.files,directories:M.directories,truncated:l}}),l&&q.warning("File list truncated — some files may be hidden"),l}async function ft(t){const n=P.current.get(t);if(n)return n;const o=I.current,l=(async()=>{const m=await Re({pattern:"**/*",path:H(t),limit:Ke}),M=Pe(m,!0,o);return!M&&o===I.current&&_(ne=>{const ce=new Set(ne);return ce.add(t),ce}),M})();P.current.set(t,l);try{return await l}finally{P.current.delete(t)}}async function Ee(t){if(!we(t,R.current))return!1;G(n=>new Set(n).add(t));try{return await ft(t)}finally{G(n=>{const o=new Set(n);return o.delete(t),o})}}async function mt(t){const n=new Set(R.current);for(const o of Ce(t)){if(!we(o,n))continue;if(await Ee(o))throw new Error("Folder listing truncated — expand again to load more");n.add(o)}}async function te(){const t=++I.current;P.current.clear(),O(!0),_(new Set),C(new Set),G(new Set);try{const n=await Re({pattern:"**/*",limit:Ke,maxDepth:wn});Pe(n,!1,t),w(!0)}catch{j&&q.error("Failed to refresh file tree")}finally{O(!1)}}async function ke(t){if(!z.get(t)?.loaded){N(o=>{const l=new Map(o);return l.set(t,{savedContent:"",editorValue:"",loaded:!1}),l});try{const o=await J("read",{path:H(t),full:!0}),l=Sn(o.content??"");N(m=>{const M=new Map(m);return M.set(t,{savedContent:l,editorValue:l,loaded:!0}),M})}catch{}}}async function pt(t,n){try{await J("write",{path:H(t),content:n}),ue("file saved via sandbox /write",{path:t}),Q.invalidateQueries({queryKey:Ge(a,e,i)});try{const o=await tn(a,e,i);ue("git status after save",o)}catch(o){ue("git status after save failed",{path:t,error:o instanceof Error?o.message:String(o)})}N(o=>{const l=new Map(o),m=l.get(t);return m&&l.set(t,{...m,savedContent:n}),l})}catch(o){ue("file save failed",{path:t,error:o instanceof Error?o.message:String(o)})}}function xt(t){x(t),D({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),E(null),k.includes(t)||g(n=>[...n,t]),ke(t)}function ht(t){g(n=>{const o=n.filter(l=>l!==t);return d===t&&x(o[o.length-1]??null),o}),N(n=>{const o=new Map(n);return o.delete(t),o})}function Te(t){C(n=>{const o=new Set(n);return o.has(t)?o.delete(t):o.add(t),o})}async function gt(t){if(we(t,R.current))try{if(await Ee(t))return}catch(n){q.error(n instanceof Error?n.message:"Failed to load folder");return}Te(t)}async function vt(t,n){if(n){Te(t);return}await gt(t)}async function ve(t){await $.current,await mt(t);const n=Ce(t);C(o=>{const l=new Set(o);for(const m of n)l.add(m);return l}),xt(t)}function Ct(){return y?.kind==="directory"?y.path:y?.kind==="file"?be(y.path):d?be(d):"/"}function Oe(t){const n=Ct();X({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const yt=bn(h,p),Ae=jn(yt,v),Le=b?Ae.filter(t=>t.node.name.toLowerCase().includes(b.toLowerCase())):Ae,Z=d?z.get(d):null,wt=Z?.loaded&&Z.editorValue!==Z.savedContent,bt=he?rt(he.path):[],jt=(t,n)=>{W.current=t,t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!d)return;const o=t.getValue();await pt(d,o)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const o=t.getSelection(),l=t.getModel();if(!o||!l||!d)return;const m=l.getValueInRange(o);E({filePath:d,lineStart:o.startLineNumber,lineEnd:o.endLineNumber,selectedCode:m})})};function Nt(t){if(!S)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${S.filePath}\``,`**Lines:** ${S.lineStart}–${S.lineEnd}`];if(S.selectedCode){const o=ye(S.filePath),l=S.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+o,l,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),B("chat"),V({parts:[{type:"text",text:n.join(`
|
|
2
|
-
`)}]}),E(null)}return T&&!j?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(oe,{size:20,className:"animate-spin text-muted-foreground"})}):r.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[r.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[r.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[r.jsxs("div",{className:"relative min-w-0 flex-1",children:[r.jsx(Vt,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),r.jsx("input",{type:"text",value:b,onChange:t=>U(t.target.value),placeholder:"Search files...","aria-label":"Search files",className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus:ring-1 focus:ring-ring"})]}),r.jsxs($e,{children:[r.jsx(_e,{asChild:!0,children:r.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New file",onClick:()=>Oe("new-file"),children:r.jsx(qt,{size:14})})}),r.jsx(ze,{side:"bottom",children:"New file"})]}),r.jsxs($e,{children:[r.jsx(_e,{asChild:!0,children:r.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New folder",onClick:()=>Oe("new-folder"),children:r.jsx(Qt,{size:14})})}),r.jsx(ze,{side:"bottom",children:"New folder"})]})]}),r.jsx(Jt,{className:"flex-1",children:r.jsxs("div",{className:"py-1",children:[Le.map(t=>{const{node:n,depth:o}=t,l=n.kind==="directory",m=v.has(n.path),M=y?.path===n.path,ne=Nn(n.path,n.kind),ce=l&&L.has(n.path);return r.jsx(ur,{node:n,depth:o,isExpanded:m,isSelected:M,isLoading:ce,fileVisual:pr(n.name),onSelect:()=>D(n),onOpen:()=>{l?vt(n.path,m):ve(n.path)},onNewFile:()=>X({mode:"new-file",node:n,parentDir:ne}),onNewFolder:()=>X({mode:"new-folder",node:n,parentDir:ne}),onCopyPath:()=>Se("Path",fe(n.path)),onCopyRelativePath:()=>Se("Relative path",H(n.path)),onRename:()=>X({mode:"rename",node:n,parentDir:ne}),onDelete:()=>ge(n)},n.path)}),j&&Le.length===0&&r.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:b?`No files match "${b}"`:"No files found"})]})})]}),r.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[k.length>0&&r.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:k.map(t=>{const n=z.get(t),o=n?.loaded&&n.editorValue!==n.savedContent,l=d===t,m=t.split("/").pop()??t;return r.jsxs("div",{className:ie("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",l?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{x(t),ke(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":l,children:[r.jsx("span",{className:"truncate max-w-32",children:m}),o&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),r.jsx("button",{type:"button",className:"ml-1 rounded p-0.5 hover:bg-accent-foreground/10",onClick:M=>{M.stopPropagation(),ht(t)},children:r.jsx(Yt,{size:12})})]},t)})}),S&&r.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:r.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl border border-border bg-background/95 px-3 py-1.5 shadow-lg backdrop-blur",onSubmit:t=>{t.preventDefault();const o=t.currentTarget.elements.namedItem("askAiInput");o.value.trim()&&Nt(o.value)},children:[r.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:"Ask the AI...",className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&E(null)}}),r.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-foreground text-background transition-opacity",title:"Send",children:r.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[r.jsx("title",{children:"Send"}),r.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),r.jsx("div",{className:"flex-1 overflow-hidden",children:d&&Z?.loaded?r.jsx(Bt,{language:ye(d),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:Z.editorValue,path:d,onChange:t=>{const n=d;n&&N(o=>{const l=new Map(o),m=l.get(n);return m&&l.set(n,{...m,editorValue:t??""}),l})},onMount:jt,loading:r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(oe,{size:20,className:"animate-spin text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},d):d&&!Z?.loaded?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(oe,{size:20,className:"animate-spin text-muted-foreground"})}):r.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:"Select a file to edit"})}),d&&r.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-[11px] text-muted-foreground shrink-0",children:[r.jsx("span",{className:"truncate",children:d}),r.jsxs("span",{children:[wt?"Modified":"Saved"," ·"," ",ye(d)]})]})]}),r.jsx(En,{open:F!==null,mode:F?.mode??"new-file",initialName:F?.mode==="rename"?F.node.name:"",parentLabel:F&&F.mode!=="rename"?F.parentDir==="/"?"/":H(F.parentDir):void 0,isPending:se,onSubmit:ct,onOpenChange:t=>{!t&&!se&&X(null)}}),r.jsx(kn,{deleteTarget:he,deleteDirtyPaths:bt,fsActionPending:se,onOpenChange:t=>{!t&&!se&&ge(null)},onConfirm:t=>{lt(t)}})]})}export{ls as FileExplorer};
|