decocms 4.72.3 → 4.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CX23NCuO.js → AlertCircle-BaauQIwC.js} +1 -1
- package/dist/client/assets/{AreaChart-CRvFGO5O.js → AreaChart-5GoV9SRg.js} +1 -1
- package/dist/client/assets/{ArrowUp-ChoUWc1b.js → ArrowUp-C814v0pE.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Bq-zX9ha.js → ArrowUpRight-BLP3DLju.js} +1 -1
- package/dist/client/assets/{Check-BbAbdPfp.js → Check-DYPRi7NO.js} +1 -1
- package/dist/client/assets/{CheckCircle-Day5nLHt.js → CheckCircle-D_t3rWUI.js} +1 -1
- package/dist/client/assets/{ChevronDown-BsEi-r9q.js → ChevronDown-wHLuFr3i.js} +1 -1
- package/dist/client/assets/{ChevronRight-B9mybD1s.js → ChevronRight-BARfL9-W.js} +1 -1
- package/dist/client/assets/{ChevronUp-BWoVqFrM.js → ChevronUp-CRmxYAjE.js} +1 -1
- package/dist/client/assets/{Circle-Bj_xS3WU.js → Circle-DuelqjM2.js} +1 -1
- package/dist/client/assets/Copy01-BwtpNAKR.js +1 -0
- package/dist/client/assets/{DotsVertical-BQRa2EB9.js → DotsVertical-B_jKX962.js} +1 -1
- package/dist/client/assets/Eye-CM4SfxEo.js +1 -0
- package/dist/client/assets/{FilterLines-C5i4i3WB.js → FilterLines-CwEBxGZP.js} +1 -1
- package/dist/client/assets/{Flag01-C7YxvVFh.js → Flag01-RtD7xNTJ.js} +1 -1
- package/dist/client/assets/{Globe01-CC0A4U7g.js → Globe01-B-4z45oj.js} +1 -1
- package/dist/client/assets/{Globe04-BV89vsfi.js → Globe04-D7ZgONc6.js} +1 -1
- package/dist/client/assets/{HardDrive-CA9cG4ej.js → HardDrive-DNueik1y.js} +1 -1
- package/dist/client/assets/{Key01-Y2tTMtA8.js → Key01-DrwX5nx2.js} +1 -1
- package/dist/client/assets/{LayoutLeft-C6uN3ryJ.js → LayoutLeft-CHLKhLgL.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CbW1jJhi.js → LinkExternal01-022iaJNF.js} +1 -1
- package/dist/client/assets/{List-MOccGrJp.js → List-jObuFUL_.js} +1 -1
- package/dist/client/assets/{Monitor01-DBUBWT-e.js → Monitor01-BkHN4rM2.js} +1 -1
- package/dist/client/assets/{Package-BL3B6ONo.js → Package-DYdmCLl6.js} +1 -1
- package/dist/client/assets/{Palette-B0oAitOJ.js → Palette-BWa7ee-4.js} +1 -1
- package/dist/client/assets/{Play-zjQOd6w0.js → Play-DYP9-OJo.js} +1 -1
- package/dist/client/assets/{Plus-DATZ4-ND.js → Plus-DKATXnIq.js} +1 -1
- package/dist/client/assets/{SearchLg-B4W4xrFH.js → SearchLg-crE3yQZJ.js} +1 -1
- package/dist/client/assets/{SearchMd-CKL74aOj.js → SearchMd-CbytZ1-S.js} +1 -1
- package/dist/client/assets/{Settings02-DAAnVZLO.js → Settings02-1LTNhTXj.js} +1 -1
- package/dist/client/assets/{Shield01-IlYcL8Fi.js → Shield01-CULBCC4Z.js} +1 -1
- package/dist/client/assets/{Star01-Bb61R21H.js → Star01-CtWX4nA3.js} +1 -1
- package/dist/client/assets/{Stars01-Bnuoinbt.js → Stars01-COE1U6xi.js} +1 -1
- package/dist/client/assets/{Stars02-B9xmjTkg.js → Stars02-BzQc7fZz.js} +1 -1
- package/dist/client/assets/{Sun-wOtTFTOd.js → Sun-CyoL1WFK.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-C90B2Auk.js → SwitchHorizontal01-QNGjYcml.js} +1 -1
- package/dist/client/assets/{Tool01-BT4kICfE.js → Tool01-BWGVYfev.js} +1 -1
- package/dist/client/assets/{Tool02-vM8N2pYB.js → Tool02-DkTMVP4f.js} +1 -1
- package/dist/client/assets/{Trash01-CrwbV8c_.js → Trash01-iPP4w9gK.js} +1 -1
- package/dist/client/assets/TrendUp01-C3q3M7MG.js +1 -0
- package/dist/client/assets/{Upload01-Lp0wJMYr.js → Upload01-CoVAXfWg.js} +1 -1
- package/dist/client/assets/{User01-CQV6kRtR.js → User01-2QspS0s6.js} +1 -1
- package/dist/client/assets/{UserPlus01-13KHecKW.js → UserPlus01-DoBolndD.js} +1 -1
- package/dist/client/assets/{Users01-CDDfUziK.js → Users01-C3FOprDj.js} +1 -1
- package/dist/client/assets/{Users03-ZlQye2vY.js → Users03-BYqJADve.js} +1 -1
- package/dist/client/assets/{X-CNdIeej8.js → X-Bqs01fCh.js} +1 -1
- package/dist/client/assets/{XCircle-C9sRiEE0.js → XCircle-DHCvZwgH.js} +1 -1
- package/dist/client/assets/{XClose-4pjmwtT4.js → XClose-P0NM9uUE.js} +1 -1
- package/dist/client/assets/{Zap-DHGChPV2.js → Zap-CI5WhuKJ.js} +1 -1
- package/dist/client/assets/{ZapSquare-BV8kr37_.js → ZapSquare-BhWmmFEB.js} +1 -1
- package/dist/client/assets/{ZoomOut-7nLppLEs.js → ZoomOut-C7W-ZWAB.js} +1 -1
- package/dist/client/assets/{access-gate-BAwcBNbs.js → access-gate-BK7GcTMo.js} +1 -1
- package/dist/client/assets/{add-section-modal-lhtrhXMg.js → add-section-modal-CfvYLCg2.js} +1 -1
- package/dist/client/assets/agent-icon-5pSyq_FH.js +1 -0
- package/dist/client/assets/agents-list-pNinhUjp.js +1 -0
- package/dist/client/assets/ai-providers-CRHCw5VF.js +1 -0
- package/dist/client/assets/{alert-BhYIEI2X.js → alert-D4ttbBAt.js} +1 -1
- package/dist/client/assets/{alert-dialog-IVNf28U9.js → alert-dialog-GCrUNzbs.js} +1 -1
- package/dist/client/assets/app-editor-DqcvDhID.js +1 -0
- package/dist/client/assets/{auth-DIzgjm9h.js → auth-Cf4In3Ce.js} +1 -1
- package/dist/client/assets/{auth-catchall-CwgiOIdP.js → auth-catchall-CL7qcaW-.js} +1 -1
- package/dist/client/assets/{auth-entry-DhEOJXIL.js → auth-entry-BBn3Oy3I.js} +1 -1
- package/dist/client/assets/{auth-split-layout-B-Ji1dsx.js → auth-split-layout-ClDCjxcR.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Bb5P11Gd.js → authenticate-and-persist-oauth-DeTua2ma.js} +1 -1
- package/dist/client/assets/{automation-list-row-BrrHJBg_.js → automation-list-row-bCHP9GaB.js} +1 -1
- package/dist/client/assets/{automation-runs-_xFJy_Wv.js → automation-runs-K5fQtR3Q.js} +10 -10
- package/dist/client/assets/automations-BchD7Vmn.js +1 -0
- package/dist/client/assets/{autosend-BX8nQnW3.js → autosend-CnfmH4zE.js} +1 -1
- package/dist/client/assets/{avatar-CfHetrJ0.js → avatar-BB1BJsL_.js} +1 -1
- package/dist/client/assets/{badge-BR8ZoQPH.js → badge-miK_gWS7.js} +1 -1
- package/dist/client/assets/{block-document-BeMgCoP0.js → block-document-BnBi9DlX.js} +1 -1
- package/dist/client/assets/{brand-context-Dfa00_kA.js → brand-context-Bwk8h-AT.js} +1 -1
- package/dist/client/assets/{buckets-BJ3UCF_c.js → buckets-BVny45s4.js} +1 -1
- package/dist/client/assets/bulk-category-panel-CI-tBRB_.js +1 -0
- package/dist/client/assets/{calendar-D9BWcxij.js → calendar-i7Bgz_TN.js} +1 -1
- package/dist/client/assets/{capability-load-error-CWaH-_Bd.js → capability-load-error-ykEHLKnb.js} +1 -1
- package/dist/client/assets/{card-1ZIM8JYb.js → card-BjD2_XuX.js} +1 -1
- package/dist/client/assets/category-editor-CSZtSGt6.js +1 -0
- package/dist/client/assets/{chat-context-BhPkOl45.js → chat-context-De0V13yX.js} +1 -1
- package/dist/client/assets/{checkbox-YuHG4ViR.js → checkbox-DnsQEgvs.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CP82qKpR.js → cli-auth-success-DlpvQRp0.js} +1 -1
- package/dist/client/assets/collection-detail-HRLTqsYR.js +1 -0
- package/dist/client/assets/{collection-display-button-CbTgXJt9.js → collection-display-button-CNmqBrih.js} +1 -1
- package/dist/client/assets/{collection-search-D4kzf4BZ.js → collection-search-MTrnV0Y_.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Cyqk04aC.js → collection-table-wrapper-CZMGnyXO.js} +1 -1
- package/dist/client/assets/{collection-tabs-CwblhJGY.js → collection-tabs-Dvz33uvw.js} +1 -1
- package/dist/client/assets/{command-DRUw9pTQ.js → command-DpdcRmV-.js} +1 -1
- package/dist/client/assets/commerce-onboarding-QSGTn2pK.js +1 -0
- package/dist/client/assets/{companions-core-CrqiPrVn.js → companions-core-CgTHLTTN.js} +1 -1
- package/dist/client/assets/connect-desktop-dialog-BASAvtSw.js +1 -0
- package/dist/client/assets/{connection-card-BddaDWk3.js → connection-card-DQ8XLP8C.js} +1 -1
- package/dist/client/assets/connection-detail-CwpaZMQ9.js +1 -0
- package/dist/client/assets/{connection-form-helpers-B3t0vd0x.js → connection-form-helpers-B4Lj6wNN.js} +1 -1
- package/dist/client/assets/connections-C4IOF63g.js +1 -0
- package/dist/client/assets/{decopilot-sse-pool-B1izZBf2.js → decopilot-sse-pool-_LHJFrBF.js} +1 -1
- package/dist/client/assets/{dialog-DfnhzCwv.js → dialog-CUb_uQeJ.js} +1 -1
- package/dist/client/assets/{domain-settings-Dw-3NGKK.js → domain-settings-Cj1WoInJ.js} +1 -1
- package/dist/client/assets/{drawer-Cu1H6Zpl.js → drawer-BSFvVMvA.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BlorfjU6.js → dropdown-menu-D-nlMdm5.js} +1 -1
- package/dist/client/assets/{empty-state-D0Yjh42T.js → empty-state-C_IbZdBr.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DkYKg47U.js → extract-connection-data-BIadZZgr.js} +1 -1
- package/dist/client/assets/file-explorer-BWAl04Ll.js +2 -0
- package/dist/client/assets/{file-type-icon-CyQSc8WD.js → file-type-icon-mrfxFHRk.js} +1 -1
- package/dist/client/assets/{files-C98dPcEM.js → files-B6sMQ0N9.js} +1 -1
- package/dist/client/assets/{form-ZPjO3One.js → form-CEO5VtKG.js} +1 -1
- package/dist/client/assets/{general-mC0-nMIz.js → general-CpcExAES.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DneVvY3I.js → github-repo-picker-CH-zkM68.js} +1 -1
- package/dist/client/assets/{hooks-DsQUp7L9.js → hooks-G1nBJ-F3.js} +1 -1
- package/dist/client/assets/{index-BOaCGG-5.js → index-B3_jWN9S.js} +1 -1
- package/dist/client/assets/index-B7Kp0gmf.css +1 -0
- package/dist/client/assets/index-B8fJFfFf.js +1 -0
- package/dist/client/assets/{index-BeTttHS9.js → index-BW23Hqv6.js} +4 -4
- package/dist/client/assets/{index-PCoZIk-M.js → index-BZjBKD1m.js} +23 -23
- package/dist/client/assets/{index-B8Idfh3P.js → index-B_nVJPYO.js} +1 -1
- package/dist/client/assets/{index-CtT9oMhI.js → index-BlItCfDb.js} +1 -1
- package/dist/client/assets/index-C7cs-gci.js +2 -0
- package/dist/client/assets/{index-1xWIMGUU.js → index-C9P6Y57L.js} +1 -1
- package/dist/client/assets/{index-DZp5yHGX.js → index-CTpTvSxb.js} +1 -1
- package/dist/client/assets/{index-emjsrsD0.js → index-DAFjHwsT.js} +1 -1
- package/dist/client/assets/{index-BHjtHKuw.js → index-DFuynMdy.js} +1 -1
- package/dist/client/assets/{index-CrWfdotU.js → index-DQVI41jj.js} +2 -2
- package/dist/client/assets/{index-76rFpqug.js → index-DxwLi9-g.js} +1 -1
- package/dist/client/assets/{index-C5JCmVQ0.js → index-lRedQ_8t.js} +3 -3
- package/dist/client/assets/{index-redirect-Dog_XssD.js → index-redirect-Mh7_3AcS.js} +1 -1
- package/dist/client/assets/{input-DWv95vY4.js → input-DOZlS9i9.js} +1 -1
- package/dist/client/assets/{integration-icon-D74EpYgv.js → integration-icon-CN9OtiIm.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-DGmwAQAA.js → invite-member-dialog-LDdBeQZc.js} +1 -1
- package/dist/client/assets/{label-CjR-YPrA.js → label-u5PrAFB7.js} +1 -1
- package/dist/client/assets/{layout-BvMp9WH9.js → layout-46QoqgX4.js} +1 -1
- package/dist/client/assets/{login-C4VBhHZf.js → login-BdT0h30g.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CDqgI2Xn.js → mcp-oauth-DHDPNOkD.js} +1 -1
- package/dist/client/assets/{members-NXDCco5L.js → members-RcOcNeXi.js} +1 -1
- package/dist/client/assets/{monaco-editor-DYdw6m6P.js → monaco-editor-D2naC6ph.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D0csDfCQ.js → monitoring-stats-row-CztePoJD.js} +1 -1
- package/dist/client/assets/{oauth-callback-D-qdOpL-.js → oauth-callback-BSA-GLPM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CKZ-Ikk0.js → oauth-callback-ai-provider-DgPoj4r4.js} +1 -1
- package/dist/client/assets/{onboarding-0XZpcTRa.js → onboarding-Br3afGr-.js} +1 -1
- package/dist/client/assets/{org-install-BHAQ5v4F.js → org-install-C190-hBM.js} +1 -1
- package/dist/client/assets/{org-layout-x9tM7YJ0.js → org-layout-cPdojne_.js} +1 -1
- package/dist/client/assets/{organization-choice-CRDRv9IH.js → organization-choice-Csr-kPrj.js} +1 -1
- package/dist/client/assets/{orgs-B4dQ6uWB.js → orgs-WjQsKIGK.js} +1 -1
- package/dist/client/assets/{page-seo-form-BoV5cy5K.js → page-seo-form-BocKaLGp.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BTjq4xGR.js +1 -0
- package/dist/client/assets/{popover-DL95paTt.js → popover-BlN-L-7w.js} +1 -1
- package/dist/client/assets/post-editor-DD6k2jq_.js +1 -0
- package/dist/client/assets/{primitives-CnjPXZBb.js → primitives-C1zKVkUs.js} +1 -1
- package/dist/client/assets/{profile-CCbdBUdo.js → profile-B1TQAd_m.js} +1 -1
- package/dist/client/assets/project-app-view-DlsPCtAC.js +1 -0
- package/dist/client/assets/record-editor-CE1EwunZ.js +1 -0
- package/dist/client/assets/redirect-editor-OokObJNP.js +1 -0
- package/dist/client/assets/registry-OH_DROyn.js +2 -0
- package/dist/client/assets/{registry-layout-C2G4koz9.js → registry-layout-BjGbzV73.js} +2 -2
- package/dist/client/assets/reports-BWI6IDQq.css +1 -0
- package/dist/client/assets/reports-DEwGwzSI.js +43 -0
- package/dist/client/assets/{require-capability-Coot4cTo.js → require-capability-B_dSH45y.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BLRuxjNn.js → required-auth-layout-czUUgGrX.js} +1 -1
- package/dist/client/assets/{reset-password-BHfCVVq_.js → reset-password-Md6XPqI1.js} +1 -1
- package/dist/client/assets/roles-jjnXT7oA.js +1 -0
- package/dist/client/assets/{search-input-B9lRxCGI.js → search-input-BQOeLOTi.js} +1 -1
- package/dist/client/assets/{secrets-C7tLxfHf.js → secrets-CWkoKQMY.js} +1 -1
- package/dist/client/assets/{sections-editor-CEVFpdKw.js → sections-editor-DJYtpXox.js} +2 -2
- package/dist/client/assets/{select-D59HzWyb.js → select-CxRcXiYy.js} +1 -1
- package/dist/client/assets/{select-model-D8LB7zlx.js → select-model-CJ1n8oWC.js} +1 -1
- package/dist/client/assets/self-tool-result-BCQjUWN7.js +1 -0
- package/dist/client/assets/seo-editor-DYp9hHSY.js +1 -0
- package/dist/client/assets/{settings-layout-LbxIWaT0.js → settings-layout-BXO3VMKS.js} +1 -1
- package/dist/client/assets/{settings-section-CHSsdIIo.js → settings-section-Bs1JjdR4.js} +1 -1
- package/dist/client/assets/{shell-controls-C3TSKK-x.js → shell-controls-BoSvKLlP.js} +1 -1
- package/dist/client/assets/{shell-layout-TAILJ-da.js → shell-layout-DamsdnEZ.js} +1 -1
- package/dist/client/assets/{sidebar-i7yNFNs9.js → sidebar-joQ3ZQPE.js} +1 -1
- package/dist/client/assets/{skeleton-D824Y8b-.js → skeleton-BxJ_vH4t.js} +1 -1
- package/dist/client/assets/{sso-BzsdnWCZ.js → sso-CoEL8qOV.js} +1 -1
- package/dist/client/assets/{store-BNZtOJXh.js → store-mvrTZUgb.js} +1 -1
- package/dist/client/assets/store-registry-C-81qMOw.js +2 -0
- package/dist/client/assets/{studio-tools--pllMpfK.js → studio-tools-BMyTPyPy.js} +1 -1
- package/dist/client/assets/{switch-DLw5svpB.js → switch-C6-Jkvpv.js} +1 -1
- package/dist/client/assets/{table-B8kPpHAC.js → table-BBmNComr.js} +1 -1
- package/dist/client/assets/{tabs-C19FaLXY.js → tabs-kApe5O6i.js} +1 -1
- package/dist/client/assets/{textarea-DGICe7Jx.js → textarea-C5puqxj1.js} +1 -1
- package/dist/client/assets/{toggle-group-SYBG9bZR.js → toggle-group-DScHdpkW.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DapYdi-A.js → toolbar-icon-button-D3Y1-YHW.js} +1 -1
- package/dist/client/assets/{toolbar-V6M48IQV.js → toolbar-zpMjKMlc.js} +1 -1
- package/dist/client/assets/{tools-list-CvZ2H4zV.js → tools-list-BOMB05RR.js} +1 -1
- package/dist/client/assets/{tooltip-DjWNMg5T.js → tooltip-REPIyd2Z.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CQmOOELp.js → use-ai-providers-Bo4wIQxq.js} +1 -1
- package/dist/client/assets/{use-automations-kY9mTa0N.js → use-automations-DA7j42Hg.js} +1 -1
- package/dist/client/assets/{use-autosave-DhXH8ptD.js → use-autosave-DBERSs2x.js} +1 -1
- package/dist/client/assets/{use-capability-BtQYj-6N.js → use-capability-CCJ-X1mC.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BNpEZMto.js → use-clock-tick-MLdLuh40.js} +1 -1
- package/dist/client/assets/{use-collections-Kwxr6RPv.js → use-collections-D-OJag2e.js} +1 -1
- package/dist/client/assets/{use-connection-DhRKlWkl.js → use-connection-DmUK9JRy.js} +1 -1
- package/dist/client/assets/{use-copy-C62zVzDi.js → use-copy-DzWDd5On.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B-2yNc1r.js → use-create-virtual-mcp-BqyRJeCT.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Cumlh74L.js → use-debounced-autosave-JbhBBkyc.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DEfVi-aN.js → use-debounced-value-DxBZ974h.js} +1 -1
- package/dist/client/assets/{use-deco-credits-rxapxW2c.js → use-deco-credits-DR4kDN3B.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Cww7ZCTK.js → use-decopilot-events-BhVWtKJy.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DehUW7zF.js → use-delete-connection-Ds3puvR-.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DI6Yo_2O.js → use-deployment-admin-C5hKFITD.js} +1 -1
- package/dist/client/assets/{use-file-configs-BaRnwcsF.js → use-file-configs-t6weWLBN.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-WwPPe2Wp.js → use-infinite-scroll-B4v-_NDY.js} +1 -1
- package/dist/client/assets/{use-join-requests-B29gIAVf.js → use-join-requests-nORXzBkG.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DlCO79GA.js → use-mcp-client-D6H50Mmm.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-PUeX7iQD.js → use-mcp-tools-Cs2tX1fK.js} +1 -1
- package/dist/client/assets/{use-members-CP1GrgsV.js → use-members-Bz6iBsM4.js} +1 -1
- package/dist/client/assets/{use-mobile-vXwkCjTm.js → use-mobile-RU-Nn_Un.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DZwula5s.js → use-navigate-to-agent-DYPKcx_j.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BeUafwOm.js → use-org-auth-client-DrmuxI_m.js} +1 -1
- package/dist/client/assets/{use-org-sso-CpksLDM-.js → use-org-sso-BLc80T83.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BGu4f7lA.js → use-organization-roles-DU1BIeXK.js} +1 -1
- package/dist/client/assets/use-organization-settings-CHx_I7VH.js +1 -0
- package/dist/client/assets/{use-registry-connections-ml5ez91l.js → use-registry-connections-C9dbuMZN.js} +1 -1
- package/dist/client/assets/{use-secrets-DXp4vVpG.js → use-secrets-Cs1UIn3n.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DUjqcw9j.js → use-status-sounds-C3Efc5TW.js} +1 -1
- package/dist/client/assets/{use-view-mode-CJMBEHOJ.js → use-view-mode-y0S1o9OD.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-KZlYJNMn.js → use-virtual-mcp-D9inM-9h.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-XeUdT1mI.js +1 -0
- package/dist/client/assets/{useRouterState-ClIV-prS.js → useRouterState-DB6AEQYy.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DnwWEYgY.js +1 -0
- package/dist/client/assets/{users-CliPNaM4.js → users-DV3bsEcg.js} +1 -1
- package/dist/client/assets/variant-calendar-B7qy61Jb.js +1 -0
- package/dist/client/assets/{view-mode-toggle-BVGFEj0-.js → view-mode-toggle-BIom5MzH.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/Eye-CyP9kYwn.js +0 -1
- package/dist/client/assets/TrendUp01-CBDxjtVg.js +0 -1
- package/dist/client/assets/agent-icon-DMtjBPX3.js +0 -1
- package/dist/client/assets/agents-list-BUXICXib.js +0 -1
- package/dist/client/assets/ai-providers-DCgzVaX6.js +0 -1
- package/dist/client/assets/app-editor-D59Q_5eI.js +0 -1
- package/dist/client/assets/automations-BaGIRfvu.js +0 -1
- package/dist/client/assets/bulk-category-panel-DYbnXnND.js +0 -1
- package/dist/client/assets/category-editor-DzbcKPof.js +0 -1
- package/dist/client/assets/collection-detail-DIz6zskG.js +0 -1
- package/dist/client/assets/commerce-onboarding-e-v-lCWx.js +0 -1
- package/dist/client/assets/connect-desktop-dialog-BSEnA0YE.js +0 -1
- package/dist/client/assets/connection-detail-B8oW9DNb.js +0 -1
- package/dist/client/assets/connections-DXcLr2b7.js +0 -1
- package/dist/client/assets/file-explorer-C3OUWmFe.js +0 -2
- package/dist/client/assets/index-BO2t38sV.css +0 -1
- package/dist/client/assets/index-ByObdePs.js +0 -1
- package/dist/client/assets/index-D-JmKBPU.js +0 -2
- package/dist/client/assets/page-seo-sheet-BgE0-fxQ.js +0 -1
- package/dist/client/assets/post-editor-Byy_Ap7S.js +0 -1
- package/dist/client/assets/project-app-view-3TNqVL2p.js +0 -1
- package/dist/client/assets/record-editor-TOFRK4bb.js +0 -1
- package/dist/client/assets/redirect-editor-luJZRzL9.js +0 -1
- package/dist/client/assets/registry-B_upSRSY.js +0 -2
- package/dist/client/assets/reports-CPxel0Tp.js +0 -43
- package/dist/client/assets/reports-UJeN0SPp.css +0 -1
- package/dist/client/assets/roles-Cbr82vAy.js +0 -1
- package/dist/client/assets/self-tool-result-BPaV8G2-.js +0 -1
- package/dist/client/assets/seo-editor-Dtca_H4G.js +0 -1
- package/dist/client/assets/store-registry-DzS8hV6Q.js +0 -2
- package/dist/client/assets/use-organization-settings-BFGZ9YuD.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D-yVKxn2.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-QFUkmQtZ.js +0 -1
- package/dist/client/assets/variant-calendar-DsUFadYs.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as E,c as oe,j as t,E as Ye,i as ce,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,B as U,p as te,n as it,l as de,t as W,K as rt}from"./index-C5JCmVQ0.js";import{g as lt,a as De,b as at,e as ct}from"./extract-connection-data-DkYKg47U.js";import{C as dt}from"./collection-display-button-CbTgXJt9.js";import{S as mt}from"./search-input-B9lRxCGI.js";import{C as ut}from"./collection-tabs-CwblhJGY.js";import{u as pt,a as ke,g as ht,C as Ce}from"./connection-card-BddaDWk3.js";import{E as gt}from"./empty-state-D0Yjh42T.js";import{I as xt}from"./integration-icon-D74EpYgv.js";import{P as ue}from"./index-1xWIMGUU.js";import{u as ft,D as jt}from"./use-delete-connection-DehUW7zF.js";import{u as ye}from"./use-capability-BtQYj-6N.js";import{u as yt}from"./use-infinite-scroll-WwPPe2Wp.js";import{u as Ct}from"./use-view-mode-CJMBEHOJ.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-IVNf28U9.js";import{C as Fe}from"./checkbox-YuHG4ViR.js";import{e as Me,d as ze,D as Ve,a as Ee,h as Be,c as Ke}from"./dialog-DfnhzCwv.js";import{D as vt,a as St,c as bt,b as _t,d as Nt,e as Dt,f as kt}from"./drawer-Cu1H6Zpl.js";import{u as At}from"./use-mobile-vXwkCjTm.js";import{D as Ue,a as Re,c as He,d as re}from"./dropdown-menu-BlorfjU6.js";import{F as Q,b as J,c as Y,d as Z,f as ee,a as ve}from"./form-ZPjO3One.js";import{I as ie}from"./input-DWv95vY4.js";import{S as wt,a as Tt,b as It,c as Pt,d as ae}from"./select-D59HzWyb.js";import{T as $t}from"./textarea-DGICe7Jx.js";import{b as We,u as Lt}from"./use-connection-DhRKlWkl.js";import{u as Ot}from"./use-virtual-mcp-KZlYJNMn.js";import{u as Ft}from"./studio-tools--pllMpfK.js";import{ak as Mt,an as zt,N as Vt,M as Et}from"./agent-icon-DMtjBPX3.js";import{n as ge}from"./Tool02-vM8N2pYB.js";import{i as Xe}from"./DotsVertical-BQRa2EB9.js";import{s as qe}from"./Eye-CyP9kYwn.js";import{s as je}from"./Star01-Bb61R21H.js";import{s as Ge}from"./Plus-DATZ4-ND.js";import{s as Qe}from"./Trash01-CrwbV8c_.js";import{s as Je}from"./XClose-4pjmwtT4.js";import{i as pe,a as Se,E as Bt,c as Kt,p as Ut,b as Rt,d as Ht}from"./connection-form-helpers-B3t0vd0x.js";import{a as Wt}from"./authenticate-and-persist-oauth-Bb5P11Gd.js";import"./use-mcp-client-DlCO79GA.js";import"./constants-D_FQAPnt.js";import"./auth-DIzgjm9h.js";import"./ArrowUp-ChoUWc1b.js";import"./Check-BbAbdPfp.js";import"./SwitchHorizontal01-C90B2Auk.js";import"./List-MOccGrJp.js";import"./tooltip-DjWNMg5T.js";import"./view-mode-toggle-BVGFEj0-.js";import"./badge-BR8ZoQPH.js";import"./SearchMd-CKL74aOj.js";import"./use-registry-connections-ml5ez91l.js";import"./use-organization-settings-BFGZ9YuD.js";import"./useInfiniteQuery-D-yVKxn2.js";import"./card-1ZIM8JYb.js";import"./sidebar-i7yNFNs9.js";import"./LayoutLeft-C6uN3ryJ.js";import"./X-CNdIeej8.js";import"./ChevronRight-B9mybD1s.js";import"./Circle-Bj_xS3WU.js";import"./label-CjR-YPrA.js";import"./ChevronDown-BsEi-r9q.js";import"./ChevronUp-BWoVqFrM.js";import"./use-collections-Kwxr6RPv.js";import"./AlertCircle-CX23NCuO.js";import"./UserPlus01-13KHecKW.js";import"./Tool01-BT4kICfE.js";import"./Settings02-DAAnVZLO.js";import"./XCircle-C9sRiEE0.js";import"./ArrowUpRight-Bq-zX9ha.js";import"./TrendUp01-CBDxjtVg.js";import"./ZapSquare-BV8kr37_.js";import"./Users03-ZlQye2vY.js";import"./CheckCircle-Day5nLHt.js";import"./Stars02-B9xmjTkg.js";import"./ZoomOut-7nLppLEs.js";import"./Globe01-CC0A4U7g.js";import"./FilterLines-C5i4i3WB.js";import"./Flag01-C7YxvVFh.js";import"./Globe04-BV89vsfi.js";import"./HardDrive-CA9cG4ej.js";import"./Key01-Y2tTMtA8.js";import"./LinkExternal01-CbW1jJhi.js";import"./Monitor01-DBUBWT-e.js";import"./Sun-wOtTFTOd.js";import"./Package-BL3B6ONo.js";import"./Palette-B0oAitOJ.js";import"./Play-zjQOd6w0.js";import"./SearchLg-B4W4xrFH.js";import"./Shield01-IlYcL8Fi.js";import"./Stars01-Bnuoinbt.js";import"./Upload01-Lp0wJMYr.js";import"./User01-CQV6kRtR.js";import"./Users01-CDDfUziK.js";import"./Zap-DHGChPV2.js";import"./mcp-oauth-CDqgI2Xn.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]=Ct(`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 Qt(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(Re,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Yt,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(Ue,{children:[s,t.jsx(He,{align:"end",onClick:Jt,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 Jt(f){return f.stopPropagation()}function Yt(f){return f.stopPropagation()}function Zt(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(Qe,{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(Je,{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 en(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(Ve,{children:[t.jsx(Ee,{children:"Add to Agent"}),t.jsx(Be,{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(xt,{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(Ke,{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(ze,{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(Me,{open:n,onOpenChange:p,children:v}),e[21]=p,e[22]=n,e[23]=v,e[24]=_):_=e[24],_}function tn(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 nn(f){return f._registryId?.includes("community-registry")===!0}function sn(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||at(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=nn(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 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=Lt(f),b=ft(),{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=Ot(),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=yt(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 Wt({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=Ft(),$=()=>{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(jt,{...b}),t.jsx(tn,{open:D,onOpenChange:L,count:m.size,onConfirm:k}),t.jsx(en,{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(Qt,{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(Ue,{children:[t.jsx(Re,{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(zt,{size:16}),"Select"]}),a&&(d.status==="active"?t.jsxs(re,{onClick:I=>{I.stopPropagation(),se(d.id,"inactive")},children:[t.jsx(Vt,{size:16}),"Disable"]}):t.jsxs(re,{onClick:I=>{I.stopPropagation(),se(d.id,"active")},children:[t.jsx(Et,{size:16}),"Enable"]})),a&&t.jsxs(re,{variant:"destructive",onClick:I=>{I.stopPropagation(),b.requestDelete(d)},children:[t.jsx(Qe,{size:16}),"Delete"]})]})]})})]})},d.id)}),V.map(r=>t.jsx(sn,{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(Zt,{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=At(),{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(Kt),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=Rt(c.npx_package||"",c.env_vars||[])):c.ui_type==="STDIO"?(S="STDIO",V="",B=Ht(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=lt("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})}},$=Ut(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(Q,{control:s.control,name:"ui_type",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Type *"}),t.jsxs(wt,{value:u.value,onValueChange:u.onChange,children:[t.jsx(Z,{children:t.jsx(Tt,{children:t.jsx(It,{})})}),t.jsxs(Pt,{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(Mt,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),t.jsx(ee,{})]})}),A==="NPX"&&t.jsx(Q,{control:s.control,name:"npx_package",render:({field:u})=>t.jsxs(J,{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(Q,{control:s.control,name:"stdio_command",render:({field:u})=>t.jsxs(J,{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(Q,{control:s.control,name:"stdio_args",render:({field:u})=>t.jsxs(J,{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(Q,{control:s.control,name:"stdio_cwd",render:({field:u})=>t.jsxs(J,{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(Q,{control:s.control,name:"env_vars",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Environment Variables"}),t.jsx(Z,{children:t.jsx(Bt,{value:u.value??[],onChange:u.onChange})}),t.jsx(ee,{})]})}),A!=="NPX"&&A!=="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsx(Q,{control:s.control,name:"connection_url",render:({field:u})=>t.jsxs(J,{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(Q,{control:s.control,name:"connection_token",render:({field:u})=>t.jsxs(J,{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(Q,{control:s.control,name:"title",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Name *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"My Connection",...u})}),t.jsx(ee,{})]})}),t.jsx(Q,{control:s.control,name:"description",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Description"}),t.jsx(Z,{children:t.jsx($t,{placeholder:"A brief description of this connection",rows:3,...u,value:u.value??""})}),t.jsx(ee,{})]})})]}),B=P;return o?t.jsx(vt,{open:B,onOpenChange:G,children:t.jsxs(St,{className:"max-h-[90vh]",children:[t.jsx(bt,{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(_t,{children:c}),t.jsx(Nt,{className:"mt-1",children:S})]}),t.jsx(Dt,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:t.jsx(Je,{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(kt,{children:t.jsx(U,{type:"submit",disabled:s.formState.isSubmitting,className:"w-full",children:V})})]})})]})}):t.jsx(Me,{open:B,onOpenChange:G,children:t.jsxs(ze,{className:"sm:max-w-[525px]",children:[t.jsxs(Ve,{children:[t.jsx(Ee,{children:c}),t.jsx(Be,{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(Ke,{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 Ws(){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{Ws as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as Z,r as u,j as r,i as se,B as he,d$ as Mt,aO as Dt,aU as ie,e0 as Rt,e1 as Pt,e2 as Et,e3 as kt,bO as Ot,e4 as Tt,e5 as qe,aQ as At,e6 as Lt,e7 as Ft,e8 as It,e9 as $t,ea as _t,eb as zt,ec as Wt,ed as Gt,ee as Kt,l as ae,n as Bt,t as W,K as $e}from"./index-C5JCmVQ0.js";import{F as Ut,l as Vt}from"./index-B8Idfh3P.js";import{d as qt,aB as Qt,aC as Ht,aD as ue,aE as Xt,a9 as _e}from"./agent-icon-DMtjBPX3.js";import{a as Jt}from"./Tool01-BT4kICfE.js";import{s as Yt}from"./XClose-4pjmwtT4.js";import{A as Zt}from"./automation-runs-_xFJy_Wv.js";import{b as ze,T as We,a as Ge}from"./tooltip-DjWNMg5T.js";import{f as en,a as tn,b as nn,c as rn,d as on,e as sn,A as an,g as ln}from"./alert-dialog-IVNf28U9.js";import{b as cn}from"./chat-context-BhPkOl45.js";import{u as dn}from"./shell-layout-TAILJ-da.js";import{s as fe,a as Ke,f as un}from"./index-PCoZIk-M.js";import{a as fn,h as mn,D as pn,c as xn,d as hn,e as gn}from"./dialog-DfnhzCwv.js";import{I as Be}from"./input-DWv95vY4.js";import{t as vn}from"./ChevronDown-BsEi-r9q.js";import{i as yn}from"./ChevronRight-B9mybD1s.js";import{a as Cn}from"./ZoomOut-7nLppLEs.js";import{E as wn,v as Ue,w as Ce,x as bn,y as jn,z as Nn,A as U,C as me,g as we,D as be,G as Sn,I as Mn,J as je,K as pe,M as Ne,N as Dn,O as Rn}from"./index-BeTttHS9.js";import"./AlertCircle-CX23NCuO.js";import"./UserPlus01-13KHecKW.js";import"./ArrowUp-ChoUWc1b.js";import"./Settings02-DAAnVZLO.js";import"./Tool02-vM8N2pYB.js";import"./XCircle-C9sRiEE0.js";import"./ArrowUpRight-Bq-zX9ha.js";import"./TrendUp01-CBDxjtVg.js";import"./ZapSquare-BV8kr37_.js";import"./Users03-ZlQye2vY.js";import"./CheckCircle-Day5nLHt.js";import"./Check-BbAbdPfp.js";import"./ChevronUp-BWoVqFrM.js";import"./Circle-Bj_xS3WU.js";import"./Stars02-B9xmjTkg.js";import"./Eye-CyP9kYwn.js";import"./DotsVertical-BQRa2EB9.js";import"./Globe01-CC0A4U7g.js";import"./FilterLines-C5i4i3WB.js";import"./Flag01-C7YxvVFh.js";import"./Star01-Bb61R21H.js";import"./Globe04-BV89vsfi.js";import"./SwitchHorizontal01-C90B2Auk.js";import"./HardDrive-CA9cG4ej.js";import"./Key01-Y2tTMtA8.js";import"./LayoutLeft-C6uN3ryJ.js";import"./LinkExternal01-CbW1jJhi.js";import"./List-MOccGrJp.js";import"./Monitor01-DBUBWT-e.js";import"./Sun-wOtTFTOd.js";import"./Package-BL3B6ONo.js";import"./Palette-B0oAitOJ.js";import"./Play-zjQOd6w0.js";import"./Plus-DATZ4-ND.js";import"./SearchLg-B4W4xrFH.js";import"./SearchMd-CKL74aOj.js";import"./Shield01-IlYcL8Fi.js";import"./Stars01-Bnuoinbt.js";import"./Trash01-CrwbV8c_.js";import"./Upload01-Lp0wJMYr.js";import"./User01-CQV6kRtR.js";import"./Users01-CDDfUziK.js";import"./X-CNdIeej8.js";import"./Zap-DHGChPV2.js";import"./select-D59HzWyb.js";import"./useInfiniteQuery-D-yVKxn2.js";import"./use-infinite-scroll-WwPPe2Wp.js";import"./use-connection-DhRKlWkl.js";import"./use-collections-Kwxr6RPv.js";import"./use-mcp-client-DlCO79GA.js";import"./constants-D_FQAPnt.js";import"./auth-DIzgjm9h.js";import"./use-virtual-mcp-KZlYJNMn.js";import"./card-1ZIM8JYb.js";import"./sidebar-i7yNFNs9.js";import"./use-mobile-vXwkCjTm.js";import"./table-B8kPpHAC.js";import"./empty-state-D0Yjh42T.js";import"./use-members-CP1GrgsV.js";import"./use-org-auth-client-BeUafwOm.js";import"./use-clock-tick-BNpEZMto.js";import"./use-automations-kY9mTa0N.js";import"./studio-tools--pllMpfK.js";import"./useSuspenseInfiniteQuery-QFUkmQtZ.js";import"./badge-BR8ZoQPH.js";import"./checkbox-YuHG4ViR.js";import"./command-DRUw9pTQ.js";import"./index-BOaCGG-5.js";import"./popover-DL95paTt.js";import"./avatar-CfHetrJ0.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C62zVzDi.js";import"./file-type-icon-CyQSc8WD.js";import"./tab-id-BijBBRwE.js";import"./monaco-editor-DYdw6m6P.js";import"./delay-CnY5UFtP.js";import"./index-emjsrsD0.js";import"./hooks-DsQUp7L9.js";import"./decopilot-sse-pool-B1izZBf2.js";import"./backoff-CrEUbyZT.js";import"./integration-icon-D74EpYgv.js";import"./use-navigate-to-agent-DZwula5s.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRvFGO5O.js";import"./form-ZPjO3One.js";import"./label-CjR-YPrA.js";import"./autosend-BX8nQnW3.js";import"./use-ai-providers-CQmOOELp.js";import"./use-decopilot-events-Cww7ZCTK.js";import"./use-organization-settings-BFGZ9YuD.js";import"./required-auth-layout-BLRuxjNn.js";import"./use-org-sso-CpksLDM-.js";import"./drawer-Cu1H6Zpl.js";import"./collection-search-D4kzf4BZ.js";import"./tabs-C19FaLXY.js";import"./toggle-group-SYBG9bZR.js";import"./use-deco-credits-rxapxW2c.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BddaDWk3.js";import"./use-registry-connections-ml5ez91l.js";import"./extract-connection-data-DkYKg47U.js";import"./collection-tabs-CwblhJGY.js";import"./textarea-DGICe7Jx.js";import"./connection-form-helpers-B3t0vd0x.js";import"./authenticate-and-persist-oauth-Bb5P11Gd.js";import"./mcp-oauth-CDqgI2Xn.js";import"./connect-desktop-dialog-BSEnA0YE.js";import"./select-model-D8LB7zlx.js";import"./skeleton-D824Y8b-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CHSsdIIo.js";import"./dropdown-menu-BlorfjU6.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DUjqcw9j.js";import"./toolbar-V6M48IQV.js";import"./use-mcp-tools-PUeX7iQD.js";import"./use-capability-BtQYj-6N.js";import"./tools-list-CvZ2H4zV.js";import"./switch-DLw5svpB.js";import"./use-debounced-autosave-Cumlh74L.js";import"./index-1xWIMGUU.js";import"./search-input-B9lRxCGI.js";import"./github-repo-picker-DneVvY3I.js";import"./use-debounced-value-DEfVi-aN.js";import"./github-installations-ChFezl8I.js";import"./use-secrets-DXp4vVpG.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-CrqiPrVn.js";import"./index-D-JmKBPU.js";import"./get-initials-D-f_fDFw.js";import"./calendar-D9BWcxij.js";import"./toolbar-icon-button-DapYdi-A.js";import"./use-file-configs-BaRnwcsF.js";import"./automation-list-row-BrrHJBg_.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(s){const e=Z.c(51),{open:i,mode:a,initialName:c,parentLabel:m,isPending:x,onSubmit:p,onOpenChange:g}=s,M=c===void 0?"":c,d=x===void 0?!1:x,[h,y]=u.useState(M),[B,V]=u.useState(i),C=Pn[a];i!==B&&(V(i),i&&y(M));let I;e[0]!==d||e[1]!==g?(I=_=>{!_&&!d&&g(!1)},e[0]=d,e[1]=g,e[2]=I):I=e[2];const H=I;let q;e[3]!==d||e[4]!==h||e[5]!==p?(q=async _=>{_.preventDefault();const K=h.trim();!K||d||await p(K)},e[3]=d,e[4]=h,e[5]=p,e[6]=q):q=e[6];const Q=q;let $;e[7]!==C.title?($=r.jsx(fn,{children:C.title}),e[7]=C.title,e[8]=$):$=e[8];let O;e[9]!==C.description?(O=r.jsx(mn,{children:C.description}),e[9]=C.description,e[10]=O):O=e[10];let G;e[11]!==$||e[12]!==O?(G=r.jsxs(pn,{children:[$,O]}),e[11]=$,e[12]=O,e[13]=G):G=e[13];let T;e[14]!==m?(T=m&&r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Location"}),r.jsx(Be,{value:m,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[14]=m,e[15]=T):T=e[15];let A;e[16]===Symbol.for("react.memo_cache_sentinel")?(A=r.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[16]=A):A=e[16];let R;e[17]===Symbol.for("react.memo_cache_sentinel")?(R=_=>y(_.target.value),e[17]=R):R=e[17];let P;e[18]!==C.placeholder||e[19]!==d||e[20]!==h?(P=r.jsxs("div",{className:"space-y-1.5",children:[A,r.jsx(Be,{id:"file-explorer-name",value:h,onChange:R,placeholder:C.placeholder,autoFocus:!0,disabled:d})]}),e[18]=C.placeholder,e[19]=d,e[20]=h,e[21]=P):P=e[21];let j;e[22]!==P||e[23]!==T?(j=r.jsxs("div",{className:"space-y-4 py-4",children:[T,P]}),e[22]=P,e[23]=T,e[24]=j):j=e[24];let N;e[25]!==g?(N=()=>g(!1),e[25]=g,e[26]=N):N=e[26];let E;e[27]!==d||e[28]!==N?(E=r.jsx(he,{type:"button",variant:"outline",onClick:N,disabled:d,children:"Cancel"}),e[27]=d,e[28]=N,e[29]=E):E=e[29];let k;e[30]!==d||e[31]!==h?(k=!h.trim()||d,e[30]=d,e[31]=h,e[32]=k):k=e[32];let w;e[33]!==C.submit||e[34]!==d?(w=d?r.jsxs(r.Fragment,{children:[r.jsx(se,{size:14,className:"animate-spin"}),"Saving…"]}):C.submit,e[33]=C.submit,e[34]=d,e[35]=w):w=e[35];let L;e[36]!==k||e[37]!==w?(L=r.jsx(he,{type:"submit",disabled:k,children:w}),e[36]=k,e[37]=w,e[38]=L):L=e[38];let b;e[39]!==E||e[40]!==L?(b=r.jsxs(xn,{children:[E,L]}),e[39]=E,e[40]=L,e[41]=b):b=e[41];let S;e[42]!==Q||e[43]!==j||e[44]!==b||e[45]!==G?(S=r.jsx(hn,{className:"sm:max-w-md",children:r.jsxs("form",{onSubmit:Q,children:[G,j,b]})}),e[42]=Q,e[43]=j,e[44]=b,e[45]=G,e[46]=S):S=e[46];let z;return e[47]!==H||e[48]!==i||e[49]!==S?(z=r.jsx(gn,{open:i,onOpenChange:H,children:S}),e[47]=H,e[48]=i,e[49]=S,e[50]=z):z=e[50],z}var Me="ContextMenu",[kn]=At(Me,[qe]),F=qe(),[On,Qe]=kn(Me),He=s=>{const{__scopeContextMenu:e,children:i,onOpenChange:a,dir:c,modal:m=!0}=s,[x,p]=u.useState(!1),g=F(e),M=Ot(a),d=u.useCallback(h=>{p(h),M(h)},[M]);return r.jsx(On,{scope:e,open:x,onOpenChange:d,modal:m,children:r.jsx(Tt,{...g,dir:c,open:x,onOpenChange:d,modal:m,children:i})})};He.displayName=Me;var Xe="ContextMenuTrigger",Je=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,disabled:a=!1,...c}=s,m=Qe(Xe,i),x=F(i),p=u.useRef({x:0,y:0}),g=u.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...p.current})}),M=u.useRef(0),d=u.useCallback(()=>window.clearTimeout(M.current),[]),h=y=>{p.current={x:y.clientX,y:y.clientY},m.onOpenChange(!0)};return u.useEffect(()=>d,[d]),u.useEffect(()=>{a&&d()},[a,d]),r.jsxs(r.Fragment,{children:[r.jsx(Mt,{...x,virtualRef:g}),r.jsx(Dt.span,{"data-state":m.open?"open":"closed","data-disabled":a?"":void 0,...c,ref:e,style:{WebkitTouchCallout:"none",...s.style},onContextMenu:a?s.onContextMenu:ie(s.onContextMenu,y=>{d(),h(y),y.preventDefault()}),onPointerDown:a?s.onPointerDown:ie(s.onPointerDown,xe(y=>{d(),M.current=window.setTimeout(()=>h(y),700)})),onPointerMove:a?s.onPointerMove:ie(s.onPointerMove,xe(d)),onPointerCancel:a?s.onPointerCancel:ie(s.onPointerCancel,xe(d)),onPointerUp:a?s.onPointerUp:ie(s.onPointerUp,xe(d))})]})});Je.displayName=Xe;var Tn="ContextMenuPortal",Ye=s=>{const{__scopeContextMenu:e,...i}=s,a=F(e);return r.jsx(Et,{...a,...i})};Ye.displayName=Tn;var Ze="ContextMenuContent",et=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=Qe(Ze,i),m=F(i),x=u.useRef(!1);return r.jsx(kt,{...m,...a,ref:e,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:p=>{s.onCloseAutoFocus?.(p),!p.defaultPrevented&&x.current&&p.preventDefault(),x.current=!1},onInteractOutside:p=>{s.onInteractOutside?.(p),!p.defaultPrevented&&!c.modal&&(x.current=!0)},style:{...s.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)"}})});et.displayName=Ze;var An="ContextMenuGroup",Ln=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Lt,{...c,...a,ref:e})});Ln.displayName=An;var Fn="ContextMenuLabel",In=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Ft,{...c,...a,ref:e})});In.displayName=Fn;var $n="ContextMenuItem",tt=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Rt,{...c,...a,ref:e})});tt.displayName=$n;var _n="ContextMenuCheckboxItem",zn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(It,{...c,...a,ref:e})});zn.displayName=_n;var Wn="ContextMenuRadioGroup",Gn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx($t,{...c,...a,ref:e})});Gn.displayName=Wn;var Kn="ContextMenuRadioItem",Bn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(_t,{...c,...a,ref:e})});Bn.displayName=Kn;var Un="ContextMenuItemIndicator",Vn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(zt,{...c,...a,ref:e})});Vn.displayName=Un;var qn="ContextMenuSeparator",nt=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Pt,{...c,...a,ref:e})});nt.displayName=qn;var Qn="ContextMenuArrow",Hn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Wt,{...c,...a,ref:e})});Hn.displayName=Qn;var Xn="ContextMenuSubTrigger",Jn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Gt,{...c,...a,ref:e})});Jn.displayName=Xn;var Yn="ContextMenuSubContent",Zn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Kt,{...c,...a,ref:e,style:{...s.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)"}})});Zn.displayName=Yn;function xe(s){return e=>e.pointerType!=="mouse"?s(e):void 0}var er=He,tr=Je,nr=Ye,rr=et,or=tt,ir=nt;function sr(s){const e=Z.c(4);let i;e[0]!==s?({...i}=s,e[0]=s,e[1]=i):i=e[1];let a;return e[2]!==i?(a=r.jsx(er,{"data-slot":"context-menu",...i}),e[2]=i,e[3]=a):a=e[3],a}function ar(s){const e=Z.c(4);let i;e[0]!==s?({...i}=s,e[0]=s,e[1]=i):i=e[1];let a;return e[2]!==i?(a=r.jsx(tr,{"data-slot":"context-menu-trigger",...i}),e[2]=i,e[3]=a):a=e[3],a}function lr(s){const e=Z.c(8);let i,a;e[0]!==s?({className:i,...a}=s,e[0]=s,e[1]=i,e[2]=a):(i=e[1],a=e[2]);let c;e[3]!==i?(c=ae("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 m;return e[5]!==a||e[6]!==c?(m=r.jsx(nr,{children:r.jsx(rr,{"data-slot":"context-menu-content",className:c,...a})}),e[5]=a,e[6]=c,e[7]=m):m=e[7],m}function te(s){const e=Z.c(12);let i,a,c,m;e[0]!==s?({className:i,inset:a,variant:m,...c}=s,e[0]=s,e[1]=i,e[2]=a,e[3]=c,e[4]=m):(i=e[1],a=e[2],c=e[3],m=e[4]);const x=m===void 0?"default":m;let p;e[5]!==i?(p=ae("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 g;return e[7]!==a||e[8]!==c||e[9]!==p||e[10]!==x?(g=r.jsx(or,{"data-slot":"context-menu-item","data-inset":a,"data-variant":x,className:p,...c}),e[7]=a,e[8]=c,e[9]=p,e[10]=x,e[11]=g):g=e[11],g}function Ve(s){const e=Z.c(8);let i,a;e[0]!==s?({className:i,...a}=s,e[0]=s,e[1]=i,e[2]=a):(i=e[1],a=e[2]);let c;e[3]!==i?(c=ae("bg-border -mx-1 my-1 h-px",i),e[3]=i,e[4]=c):c=e[4];let m;return e[5]!==a||e[6]!==c?(m=r.jsx(ir,{"data-slot":"context-menu-separator",className:c,...a}),e[5]=a,e[6]=c,e[7]=m):m=e[7],m}const cr="#d9a441";function dr(s){const e=Z.c(45),{node:i,depth:a,isExpanded:c,isSelected:m,isLoading:x,fileVisual:p,onOpen:g,onSelect:M,onNewFile:d,onNewFolder:h,onCopyPath:y,onCopyRelativePath:B,onRename:V,onDelete:C}=s,I=x===void 0?!1:x,H=i.kind==="directory",{Icon:q,color:Q}=p,$=m&&"bg-accent";let O;e[0]!==$?(O=ae("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",$),e[0]=$,e[1]=O):O=e[1];const G=`${a*14+8}px`;let T;e[2]!==G?(T={paddingLeft:G},e[2]=G,e[3]=T):T=e[3];let A;e[4]!==g||e[5]!==M?(A=()=>{M(),g()},e[4]=g,e[5]=M,e[6]=A):A=e[6];let R;e[7]!==q||e[8]!==Q||e[9]!==H||e[10]!==c||e[11]!==I?(R=H?r.jsxs(r.Fragment,{children:[I?r.jsx(se,{size:14,className:"shrink-0 animate-spin text-muted-foreground"}):c?r.jsx(vn,{size:14,className:"shrink-0 text-muted-foreground"}):r.jsx(yn,{size:14,className:"shrink-0 text-muted-foreground"}),r.jsx(Cn,{size:16,className:"shrink-0",style:{color:cr}})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"w-3.5 shrink-0"}),r.jsx(q,{size:16,className:"shrink-0",style:{color:Q}})]}),e[7]=q,e[8]=Q,e[9]=H,e[10]=c,e[11]=I,e[12]=R):R=e[12];let P;e[13]!==i.name?(P=r.jsx("span",{className:"truncate",children:i.name}),e[13]=i.name,e[14]=P):P=e[14];let j;e[15]!==O||e[16]!==T||e[17]!==A||e[18]!==R||e[19]!==P?(j=r.jsx(ar,{asChild:!0,children:r.jsxs("button",{type:"button",className:O,style:T,onClick:A,children:[R,P]})}),e[15]=O,e[16]=T,e[17]=A,e[18]=R,e[19]=P,e[20]=j):j=e[20];let N;e[21]!==d?(N=r.jsx(te,{onSelect:d,children:"New File"}),e[21]=d,e[22]=N):N=e[22];let E;e[23]!==h?(E=r.jsx(te,{onSelect:h,children:"New Folder"}),e[23]=h,e[24]=E):E=e[24];let k;e[25]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(Ve,{}),e[25]=k):k=e[25];let w;e[26]!==y?(w=r.jsx(te,{onSelect:y,children:"Copy Path"}),e[26]=y,e[27]=w):w=e[27];let L;e[28]!==B?(L=r.jsx(te,{onSelect:B,children:"Copy Relative Path"}),e[28]=B,e[29]=L):L=e[29];let b;e[30]===Symbol.for("react.memo_cache_sentinel")?(b=r.jsx(Ve,{}),e[30]=b):b=e[30];let S;e[31]!==V?(S=r.jsx(te,{onSelect:V,children:"Rename"}),e[31]=V,e[32]=S):S=e[32];let z;e[33]!==C?(z=r.jsx(te,{variant:"destructive",onSelect:C,children:"Delete"}),e[33]=C,e[34]=z):z=e[34];let _;e[35]!==N||e[36]!==E||e[37]!==w||e[38]!==L||e[39]!==S||e[40]!==z?(_=r.jsxs(lr,{className:"w-52",children:[N,E,k,w,L,b,S,z]}),e[35]=N,e[36]=E,e[37]=w,e[38]=L,e[39]=S,e[40]=z,e[41]=_):_=e[41];let K;return e[42]!==_||e[43]!==j?(K=r.jsxs(sr,{children:[j,_]}),e[42]=_,e[43]=j,e[44]=K):K=e[44],K}Vt.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function Se(s,e,i,a){return`/api/${s}/sandbox/${encodeURIComponent(e)}/${encodeURIComponent(i)}/${a}`}function ur(s){const e=U(s);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}const fr="#94a3b8";function mr(s){const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:ue,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:ue,color:"#d9a441"}:e.endsWith(".json")?{Icon:Xt,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:ue,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:ue,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:Jt,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:_e,color:"#64748b"}:{Icon:_e,color:fr}}function is({orgSlug:s,virtualMcpId:e,branch:i,openPath:a}){const[c,m]=u.useState({files:[],directories:[],truncated:!1}),{files:x,directories:p}=c,[g,M]=u.useState(new Set),[d,h]=u.useState(null),[y,B]=u.useState(null),[V,C]=u.useState([]),[I,H]=u.useState(""),[q,Q]=u.useState(!1),[$,O]=u.useState(!1),[,G]=u.useState(new Set),[T,A]=u.useState(new Set),R=u.useRef(0),P=u.useRef(null),j=u.useRef(new Set),N=u.useRef(new Map);function E(t){G(n=>{const o=typeof t=="function"?t(n):t;return j.current=o,o})}const[k,w]=u.useState(new Map),L=u.useRef(null),[b,S]=u.useState(null),{sendMessage:z}=cn(),{openSidePanel:_}=dn(),K=Bt(),[D,X]=u.useState(null),[J,ge]=u.useState(null),[ne,le]=u.useState(!1);async function re(t,n){const o=await fetch(Se(s,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 ce(){K.invalidateQueries({queryKey:Ke(s,e,i)})}function De(t,n){navigator.clipboard.writeText(n).then(()=>W.success(`${t} copied`),()=>W.error(`Failed to copy ${t.toLowerCase()}`))}function rt(t){const n=Dn(t);if(!n)return;const o=`${s}/${e}/${i}`;K.setQueryData($e.decofile(o),l=>{if(!l)return l;const{[n]:f,...v}=l;return v}),K.invalidateQueries({queryKey:$e.liveMeta(o)})}function ot(t){const n=t.kind==="file"?[t.path]:x.filter(o=>o.startsWith(".deco/blocks/")).map(o=>me(o)).filter(o=>o===t.path||o.startsWith(`${t.path}/`));for(const o of n)rt(o)}function it(t){const n=me(t);return V.filter(o=>{if(o!==n&&!o.startsWith(`${n}/`))return!1;const l=k.get(o);return!!(l?.loaded&&l.editorValue!==l.savedContent)})}function Re(t){C(n=>n.map(o=>t(o)).filter(o=>o!==null)),h(n=>n&&t(n)),w(n=>{const o=new Map;for(const[l,f]of n){const v=t(l);v&&o.set(v,f)}return o}),B(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 st(t){const n=me(t);B(o=>o&&(o.path===n||o.path.startsWith(`${n}/`)?null:o)),Re(o=>o===n||o.startsWith(`${n}/`)?null:o)}async function at(t){if(!D)return;const n=pe(D.parentDir,t);if(Ne(n,x,p))throw new Error(`"${t}" already exists`);await re("write",{path:U(n),content:""}),await oe(),await ce(),X(null),ve(n)}async function lt(t){if(!D)return;const n=pe(D.parentDir,t);if(Ne(n,x,p))throw new Error(`"${t}" already exists`);const o=U(n);await re("mkdir",{path:o}),m(l=>({...l,directories:l.directories.includes(o)?l.directories:[...l.directories,o]})),await oe(),await ce(),X(null),M(l=>{const f=new Set(l);for(const v of Ce(n))f.add(v);return f.add(n),f}),B({name:t,path:n,kind:"directory",children:[]})}async function ct(t){if(!D)return;const n=D.node.path,o=je(n),l=pe(o,t);if(l===n){X(null);return}if(Ne(l,x,p))throw new Error(`"${t}" already exists`);await re("rename",{from:U(n),to:U(l)}),Re(f=>f===n?l:f.startsWith(`${n}/`)?pe(l,f.slice(n.length+1)):f),await oe(),await ce(),X(null)}async function dt(t){le(!0);try{await re("unlink",{path:U(t.path),recursive:t.kind==="directory"}),ot(t),st(t.path),await oe(),await ce(),ge(null),W.success(`Deleted "${t.name}"`)}catch(n){W.error(n instanceof Error?n.message:"Delete failed")}finally{le(!1)}}async function ut(t){const n=Mn(t);if(n){W.error(n);return}le(!0);try{D?.mode==="new-file"?(await at(t),W.success(`Created "${t}"`)):D?.mode==="new-folder"?(await lt(t),W.success(`Created folder "${t}"`)):D?.mode==="rename"&&(await ct(t),W.success(`Renamed to "${t}"`))}catch(o){W.error(o instanceof Error?o.message:"Operation failed")}finally{le(!1)}}const Pe=u.useRef(!1);Pe.current||(Pe.current=!0,P.current=oe());const[ft,mt]=u.useState(null);if(a&&a!==ft){mt(a);const t=a;queueMicrotask(()=>{ur(t)&&ve(t).catch(n=>{W.error(n instanceof Error?n.message:"Failed to open file")})})}async function Ee(t){const n=await re("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function ke(t,n,o){if(o!==R.current)return!1;let l=!1;return m(f=>{const v=n?Rn(f.files,f.directories,t,f.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return l=!!v.truncated,{files:v.files,directories:v.directories,truncated:l}}),l&&W.warning("File list truncated — some files may be hidden"),l}async function pt(t){const n=N.current.get(t);if(n)return n;const o=R.current,l=(async()=>{const f=await Ee({pattern:"**/*",path:U(t),limit:Ue}),v=ke(f,!0,o);return!v&&o===R.current&&E(Y=>{const de=new Set(Y);return de.add(t),de}),v})();N.current.set(t,l);try{return await l}finally{N.current.delete(t)}}async function Oe(t){if(!be(t,j.current))return!1;A(n=>new Set(n).add(t));try{return await pt(t)}finally{A(n=>{const o=new Set(n);return o.delete(t),o})}}async function xt(t){const n=new Set(j.current);for(const o of Ce(t)){if(!be(o,n))continue;if(await Oe(o))throw new Error("Folder listing truncated — expand again to load more");n.add(o)}}async function oe(){const t=++R.current;N.current.clear(),Q(!0),E(new Set),M(new Set),A(new Set);try{const n=await Ee({pattern:"**/*",limit:Ue,maxDepth:wn});ke(n,!1,t),O(!0)}catch{$&&W.error("Failed to refresh file tree")}finally{Q(!1)}}async function Te(t){if(!k.get(t)?.loaded){w(o=>{const l=new Map(o);return l.set(t,{savedContent:"",editorValue:"",loaded:!1}),l});try{const o=await fetch(Se(s,e,i,"read"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:U(t),full:!0})});if(!o.ok)return;const l=await o.json(),f=Sn(l.content??"");w(v=>{const Y=new Map(v);return Y.set(t,{savedContent:f,editorValue:f,loaded:!0}),Y})}catch{}}}async function ht(t,n){try{const o=await fetch(Se(s,e,i,"write"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:U(t),content:n})});if(!o.ok){fe("file save failed",{path:t,status:o.status});return}fe("file saved via sandbox /write",{path:t}),K.invalidateQueries({queryKey:Ke(s,e,i)});try{const l=await un(s,e,i);fe("git status after save",l)}catch(l){fe("git status after save failed",{path:t,error:l instanceof Error?l.message:String(l)})}w(l=>{const f=new Map(l),v=f.get(t);return v&&f.set(t,{...v,savedContent:n}),f})}catch{}}function gt(t){h(t),B({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),S(null),V.includes(t)||C(n=>[...n,t]),Te(t)}function vt(t){C(n=>{const o=n.filter(l=>l!==t);return d===t&&h(o[o.length-1]??null),o}),w(n=>{const o=new Map(n);return o.delete(t),o})}function Ae(t){M(n=>{const o=new Set(n);return o.has(t)?o.delete(t):o.add(t),o})}async function yt(t){if(be(t,j.current))try{if(await Oe(t))return}catch(n){W.error(n instanceof Error?n.message:"Failed to load folder");return}Ae(t)}async function Ct(t,n){if(n){Ae(t);return}await yt(t)}async function ve(t){await P.current,await xt(t);const n=Ce(t);M(o=>{const l=new Set(o);for(const f of n)l.add(f);return l}),gt(t)}function wt(){return y?.kind==="directory"?y.path:y?.kind==="file"?je(y.path):d?je(d):"/"}function Le(t){const n=wt();X({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const bt=bn(x,p),Fe=jn(bt,g),Ie=I?Fe.filter(t=>t.node.name.toLowerCase().includes(I.toLowerCase())):Fe,ee=d?k.get(d):null,jt=ee?.loaded&&ee.editorValue!==ee.savedContent,ye=J?it(J.path):[],Nt=(t,n)=>{L.current=t,t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!d)return;const o=t.getValue();await ht(d,o)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const o=t.getSelection(),l=t.getModel();if(!o||!l||!d)return;const f=l.getValueInRange(o);S({filePath:d,lineStart:o.startLineNumber,lineEnd:o.endLineNumber,selectedCode:f})})};function St(t){if(!b)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${b.filePath}\``,`**Lines:** ${b.lineStart}–${b.lineEnd}`];if(b.selectedCode){const o=we(b.filePath),l=b.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+o,l,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),_("chat"),z({parts:[{type:"text",text:n.join(`
|
|
2
|
-
`)}]}),S(null)}return q&&!$?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(se,{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(qt,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),r.jsx("input",{type:"text",value:I,onChange:t=>H(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(ze,{children:[r.jsx(We,{asChild:!0,children:r.jsx(he,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New file",onClick:()=>Le("new-file"),children:r.jsx(Qt,{size:14})})}),r.jsx(Ge,{side:"bottom",children:"New file"})]}),r.jsxs(ze,{children:[r.jsx(We,{asChild:!0,children:r.jsx(he,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New folder",onClick:()=>Le("new-folder"),children:r.jsx(Ht,{size:14})})}),r.jsx(Ge,{side:"bottom",children:"New folder"})]})]}),r.jsx(Zt,{className:"flex-1",children:r.jsxs("div",{className:"py-1",children:[Ie.map(t=>{const{node:n,depth:o}=t,l=n.kind==="directory",f=g.has(n.path),v=y?.path===n.path,Y=Nn(n.path,n.kind),de=l&&T.has(n.path);return r.jsx(dr,{node:n,depth:o,isExpanded:f,isSelected:v,isLoading:de,fileVisual:mr(n.name),onSelect:()=>B(n),onOpen:()=>{l?Ct(n.path,f):ve(n.path)},onNewFile:()=>X({mode:"new-file",node:n,parentDir:Y}),onNewFolder:()=>X({mode:"new-folder",node:n,parentDir:Y}),onCopyPath:()=>De("Path",me(n.path)),onCopyRelativePath:()=>De("Relative path",U(n.path)),onRename:()=>X({mode:"rename",node:n,parentDir:Y}),onDelete:()=>ge(n)},n.path)}),$&&Ie.length===0&&r.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:I?`No files match "${I}"`:"No files found"})]})})]}),r.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[V.length>0&&r.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:V.map(t=>{const n=k.get(t),o=n?.loaded&&n.editorValue!==n.savedContent,l=d===t,f=t.split("/").pop()??t;return r.jsxs("div",{className:ae("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:()=>{h(t),Te(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":l,children:[r.jsx("span",{className:"truncate max-w-32",children:f}),o&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),r.jsx("button",{type:"button",className:"ml-1 rounded p-0.5 hover:bg-accent-foreground/10",onClick:v=>{v.stopPropagation(),vt(t)},children:r.jsx(Yt,{size:12})})]},t)})}),b&&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()&&St(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"&&S(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&&ee?.loaded?r.jsx(Ut,{language:we(d),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:ee.editorValue,path:d,onChange:t=>{const n=d;n&&w(o=>{const l=new Map(o),f=l.get(n);return f&&l.set(n,{...f,editorValue:t??""}),l})},onMount:Nt,loading:r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(se,{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&&!ee?.loaded?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(se,{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:[jt?"Modified":"Saved"," ·"," ",we(d)]})]})]}),r.jsx(En,{open:D!==null,mode:D?.mode??"new-file",initialName:D?.mode==="rename"?D.node.name:"",parentLabel:D&&D.mode!=="rename"?D.parentDir==="/"?"/":U(D.parentDir):void 0,isPending:ne,onSubmit:ut,onOpenChange:t=>{!t&&!ne&&X(null)}}),r.jsx(en,{open:J!==null,onOpenChange:t=>{!t&&!ne&&ge(null)},children:r.jsxs(tn,{children:[r.jsxs(nn,{children:[r.jsxs(rn,{children:["Delete ",J?.kind==="directory"?"folder":"file","?"]}),r.jsxs(on,{children:["This will permanently delete"," ",r.jsx("span",{className:"font-mono",children:J?.name}),J?.kind==="directory"?" and everything inside it.":".",ye.length>0&&r.jsxs(r.Fragment,{children:[" ",ye.length===1?"One open file has unsaved changes that will be lost.":`${ye.length} open files have unsaved changes that will be lost.`]})]})]}),r.jsxs(sn,{children:[r.jsx(an,{disabled:ne,children:"Cancel"}),r.jsx(ln,{disabled:ne||!J,onClick:t=>{t.preventDefault(),J&&dt(J)},children:"Delete"})]})]})})]})}export{is as FileExplorer};
|