decocms 4.143.0 → 4.144.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-B-jqRzEl.js → AlertCircle-bjC8VX70.js} +1 -1
- package/dist/client/assets/{AreaChart-BiVN9Rbg.js → AreaChart-Berf1Wcn.js} +1 -1
- package/dist/client/assets/{ArrowUp-8wVhqZbY.js → ArrowUp-SkFIu_Mh.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-C79Mz0y9.js → ArrowUpRight-C-B3vUF1.js} +1 -1
- package/dist/client/assets/{Check-D2OTmp9f.js → Check-HrXMyT9G.js} +1 -1
- package/dist/client/assets/{CheckCircle-CagdexBy.js → CheckCircle-DiAhctKs.js} +1 -1
- package/dist/client/assets/{ChevronDown-6d9u53mr.js → ChevronDown-CJjb9vl_.js} +1 -1
- package/dist/client/assets/{ChevronRight-CNc7IJBh.js → ChevronRight-fsZHCheQ.js} +1 -1
- package/dist/client/assets/{ChevronUp-CFeWkGPA.js → ChevronUp-BczRZV-Y.js} +1 -1
- package/dist/client/assets/{Copy01-DAcswqJ-.js → Copy01-B9fZV42-.js} +1 -1
- package/dist/client/assets/{DotsVertical-C3lcToNm.js → DotsVertical-ATIM5zu0.js} +1 -1
- package/dist/client/assets/{Eye-5baqKWh-.js → Eye-BfiAoz0S.js} +1 -1
- package/dist/client/assets/{FilterLines-DdzesZPL.js → FilterLines-vkHMVWtQ.js} +1 -1
- package/dist/client/assets/{HardDrive-BKIKC-Q_.js → HardDrive-D6SAii7J.js} +1 -1
- package/dist/client/assets/{Key01-fqq_MFu4.js → Key01-C0p_oPg8.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CuMVXGUK.js → LayoutLeft-CpDk0EOr.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BqkooxOV.js → LinkExternal01-CNjcXqd6.js} +1 -1
- package/dist/client/assets/{LogOut01-B8UpmR8a.js → LogOut01-DqWMJEg8.js} +1 -1
- package/dist/client/assets/{Monitor01-BLwSOYdr.js → Monitor01-C07z4FWm.js} +1 -1
- package/dist/client/assets/{Palette-DIrZPBgO.js → Palette-D2Y58mS8.js} +1 -1
- package/dist/client/assets/{Play-b1Vma0LR.js → Play-DZHQldRw.js} +1 -1
- package/dist/client/assets/{Plus-Dn7E2MbI.js → Plus-Dli8Eqb0.js} +1 -1
- package/dist/client/assets/{SearchLg-CcdcmJuJ.js → SearchLg-Cl8SJOV5.js} +1 -1
- package/dist/client/assets/{SearchMd-BE8PZTOt.js → SearchMd-CuwSJsL7.js} +1 -1
- package/dist/client/assets/{Settings02-CyPLPNW_.js → Settings02-CmjWJ1c6.js} +1 -1
- package/dist/client/assets/{Shield01-CcpD-xYP.js → Shield01-ByboMUx5.js} +1 -1
- package/dist/client/assets/{Star01-CYWNL4zV.js → Star01-C42DJ-xk.js} +1 -1
- package/dist/client/assets/{Stars01-CNYsGUE-.js → Stars01-efT3oOwc.js} +1 -1
- package/dist/client/assets/{Stars02-BUKsUmOb.js → Stars02-BAQ5qRk1.js} +1 -1
- package/dist/client/assets/{Sun-Bls3wdhD.js → Sun-C_hjFhxT.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CzML4bwn.js → SwitchHorizontal01-GV0--qUc.js} +1 -1
- package/dist/client/assets/{Tool01-D6778Lob.js → Tool01-BdMCBLCF.js} +1 -1
- package/dist/client/assets/{Tool02-Z0l-5_iB.js → Tool02-CLHYu0yn.js} +1 -1
- package/dist/client/assets/{Trash01--va9a-rZ.js → Trash01-Do1QH01I.js} +1 -1
- package/dist/client/assets/{TrendUp01-B0vVWAUw.js → TrendUp01-46hVQ0WU.js} +1 -1
- package/dist/client/assets/{Upload01-DJH5T0zl.js → Upload01-C_4FIdsq.js} +1 -1
- package/dist/client/assets/{User01-BIYw5tFf.js → User01-BccqDgbp.js} +1 -1
- package/dist/client/assets/{Users01-CJQ3NAZn.js → Users01-BDoRfuXn.js} +1 -1
- package/dist/client/assets/{Users03-Da7W4Ncu.js → Users03-Cm6zJrF0.js} +1 -1
- package/dist/client/assets/{X-DM8kZX3_.js → X-v0Mh0h2J.js} +1 -1
- package/dist/client/assets/{XCircle-Mi8kCDLZ.js → XCircle-CItxK-fi.js} +1 -1
- package/dist/client/assets/{XClose-CnleH_rn.js → XClose-CmUu59X-.js} +1 -1
- package/dist/client/assets/{Zap-Caskj5Xs.js → Zap-C9AHpIXN.js} +1 -1
- package/dist/client/assets/{ZapSquare-D_Ea99yn.js → ZapSquare-CYXtyGQc.js} +1 -1
- package/dist/client/assets/{access-gate-BFCJT7AK.js → access-gate-gWiySoB6.js} +1 -1
- package/dist/client/assets/{add-section-modal-IrUHBk2G.js → add-section-modal-CHtxZWG_.js} +1 -1
- package/dist/client/assets/{agent-icon-C_Bcs5w3.js → agent-icon-BGbirapc.js} +1 -1
- package/dist/client/assets/{agents-list-DVtyxn3w.js → agents-list-CTlDK04C.js} +1 -1
- package/dist/client/assets/{ai-providers-Bj3HzBuS.js → ai-providers-DpKQQFBK.js} +1 -1
- package/dist/client/assets/{alert-B_zsxySU.js → alert-BDE3aQzs.js} +1 -1
- package/dist/client/assets/{alert-dialog-lKGaIGJ0.js → alert-dialog-BmYTAKM-.js} +1 -1
- package/dist/client/assets/app-editor-Co9YISCK.js +1 -0
- package/dist/client/assets/{auth-CyQvgFY_.js → auth-D6tgJd48.js} +1 -1
- package/dist/client/assets/{auth-catchall-DSya8pvs.js → auth-catchall-Xm12qM-O.js} +1 -1
- package/dist/client/assets/{auth-entry-CD-vn7aB.js → auth-entry-gVU-BKt3.js} +1 -1
- package/dist/client/assets/{auth-split-layout-4TADJHe3.js → auth-split-layout-BLxKbBEG.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CYAmEm23.js → authenticate-and-persist-oauth-C7W8HXB-.js} +1 -1
- package/dist/client/assets/{automation-list-row-BNoWYkqJ.js → automation-list-row-UuK5SZ3b.js} +1 -1
- package/dist/client/assets/{automation-runs-BCXsq8ct.js → automation-runs-ZSHknXFL.js} +1 -1
- package/dist/client/assets/{automations-DaWbO5W0.js → automations-CkVQDRvh.js} +1 -1
- package/dist/client/assets/{avatar-D-26TcjI.js → avatar-CzQ7J9Py.js} +1 -1
- package/dist/client/assets/{badge-Bt07rmj0.js → badge-DxUkTZDX.js} +1 -1
- package/dist/client/assets/{block-document-DHwqz4ng.js → block-document-Dk1DKZt0.js} +1 -1
- package/dist/client/assets/{brand-context-DcWJH1eE.js → brand-context-Gz-FJLMN.js} +1 -1
- package/dist/client/assets/{buckets-BN8tEEe8.js → buckets-DpOfdOye.js} +1 -1
- package/dist/client/assets/bulk-category-panel-DzONs21U.js +1 -0
- package/dist/client/assets/{calendar-D-kF2A1V.js → calendar-ioOOy9x4.js} +1 -1
- package/dist/client/assets/{capability-load-error-DaoU0HSz.js → capability-load-error-BT6aAl1G.js} +1 -1
- package/dist/client/assets/{card-BJkx-TlV.js → card-Bzi6yUGv.js} +1 -1
- package/dist/client/assets/category-editor-DvvQDNn3.js +1 -0
- package/dist/client/assets/{chat-context-CRLCG-7m.js → chat-context-D_Gjawoo.js} +1 -1
- package/dist/client/assets/{checkbox-L_8J0VEc.js → checkbox-CsXwodnZ.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CIORuBy8.js → cli-auth-success-B1L3aMzW.js} +1 -1
- package/dist/client/assets/{collection-detail-D-Ew8P97.js → collection-detail-DXl61wQP.js} +1 -1
- package/dist/client/assets/{collection-display-button-_4wEvm8K.js → collection-display-button-CkYsI7NF.js} +1 -1
- package/dist/client/assets/{collection-search-BP_osQGg.js → collection-search-Bw_AYyWe.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CpxPnXz4.js → collection-table-wrapper-CDBGf-WF.js} +1 -1
- package/dist/client/assets/{collection-tabs-rQ-lQQ1f.js → collection-tabs-CPcyvgV6.js} +1 -1
- package/dist/client/assets/command-C0ZjGtQ6.js +1 -0
- package/dist/client/assets/{commerce-onboarding-D84or4Tp.js → commerce-onboarding-663-SWD1.js} +1 -1
- package/dist/client/assets/{companions-core-XkORCpwR.js → companions-core-BUUkoH1J.js} +1 -1
- package/dist/client/assets/{connect-CGvuELFE.js → connect-C39WuO_1.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-ePivWtSb.js → connect-desktop-dialog-1q_x4ynM.js} +1 -1
- package/dist/client/assets/{connection-ByK9rd24.js → connection-CphxB6Hn.js} +1 -1
- package/dist/client/assets/{connection-card-CAxRM9Mg.js → connection-card-BJQrv-Sf.js} +1 -1
- package/dist/client/assets/{connection-detail-BRFBfHBS.js → connection-detail-CT2pr4RA.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BJFFbUQU.js → connection-form-helpers-pGgztUvg.js} +1 -1
- package/dist/client/assets/{connections-UQfEHlso.js → connections-DpT97VsB.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CG8MNCkB.js → decopilot-sse-pool-7Tzx6-E9.js} +1 -1
- package/dist/client/assets/{dialog-D33iO7_V.js → dialog-DbxgvIzU.js} +1 -1
- package/dist/client/assets/{domain-settings-DOD8a9FC.js → domain-settings-CmAKlGDM.js} +1 -1
- package/dist/client/assets/{drawer-DEBuno2i.js → drawer-DcSDhvlR.js} +1 -1
- package/dist/client/assets/{dropdown-menu-C6KbRlri.js → dropdown-menu-zLzf58UF.js} +1 -1
- package/dist/client/assets/{empty-state-Dd-cQnoB.js → empty-state-C8A6v1EQ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DV9ilPpM.js → extract-connection-data-BgqfCUzt.js} +1 -1
- package/dist/client/assets/file-explorer-Dq2OrUP8.js +2 -0
- package/dist/client/assets/{form-DU_fCIQ-.js → form-DXHtZ3Xd.js} +1 -1
- package/dist/client/assets/{general-D3ZVfxSw.js → general-6XhFsMt5.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BjxldoVh.js → github-repo-picker-BOuY27Fo.js} +1 -1
- package/dist/client/assets/{hooks-UN_3FMZE.js → hooks-DRoQyAYD.js} +1 -1
- package/dist/client/assets/index-BbUR22_I.css +1 -0
- package/dist/client/assets/index-BrkQ12GR.js +8 -0
- package/dist/client/assets/{index-BMkx_fVM.js → index-C7eCvrix.js} +1 -1
- package/dist/client/assets/{index-CHxi5qA7.js → index-C_xlULy7.js} +1 -1
- package/dist/client/assets/{index-BEgR1yze.js → index-Cie8bNR2.js} +1 -1
- package/dist/client/assets/{index-DRZiVvJy.js → index-Cn6kNK5d.js} +1 -1
- package/dist/client/assets/{index-CCDNDdqy.js → index-Cz3eCJot.js} +1 -1
- package/dist/client/assets/{index-3s9Tew9h.js → index-DEjVUbQZ.js} +5 -5
- package/dist/client/assets/{index-ItRmrjqK.js → index-DFspaUcC.js} +5 -5
- package/dist/client/assets/{index-DwxbseCq.js → index-DV478YQv.js} +1 -1
- package/dist/client/assets/{index-O8J1Dp2X.js → index-Dw9Kh9ea.js} +1 -1
- package/dist/client/assets/{index-CKYr3lDt.js → index-Ge9lsRXc.js} +1 -1
- package/dist/client/assets/{index-redirect-Cd1hqm3U.js → index-redirect-BSBsnQKV.js} +1 -1
- package/dist/client/assets/{input-BfYMrULt.js → input-BsFsRYpb.js} +1 -1
- package/dist/client/assets/{integration-icon-efY4xiAf.js → integration-icon-Zd6y2lnO.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-Da_OF_ll.js → invite-member-dialog-ea2rgdiV.js} +1 -1
- package/dist/client/assets/{label-IYRseMIB.js → label-Dy22a1G_.js} +1 -1
- package/dist/client/assets/{layout-DO22NBVL.js → layout-DTofO_A0.js} +1 -1
- package/dist/client/assets/{login-DNgu6l3u.js → login-Cz3Rtqo-.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CSNCpmPq.js → mcp-oauth-CsDk7r71.js} +1 -1
- package/dist/client/assets/members-DuveJzOm.js +1 -0
- package/dist/client/assets/{monaco-editor-CG32495o.js → monaco-editor-p1KcCRI9.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-5WdWKDvN.js → monitoring-stats-row-C9gIDwLW.js} +1 -1
- package/dist/client/assets/{multi-select-daLSotTk.js → multi-select-Bzs4Ibjn.js} +1 -1
- package/dist/client/assets/{oauth-callback-DaIiIjJz.js → oauth-callback-Bwf5O6A5.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BgQLj9jp.js → oauth-callback-ai-provider-CoWQsYYc.js} +1 -1
- package/dist/client/assets/{onboarding-ChhvT3pz.js → onboarding-CPfNxv8z.js} +1 -1
- package/dist/client/assets/{org-install-BkjDyn8G.js → org-install-aMCVBdo1.js} +1 -1
- package/dist/client/assets/{org-layout-quA4JXB-.js → org-layout-DuTct6ab.js} +1 -1
- package/dist/client/assets/{organization-choice-DrOHVIOZ.js → organization-choice-6tMLFUIz.js} +1 -1
- package/dist/client/assets/{orgs-uafRHIoi.js → orgs-t7TB--eL.js} +1 -1
- package/dist/client/assets/{page-seo-form-DQF2bT-S.js → page-seo-form-OgfFKVEU.js} +1 -1
- package/dist/client/assets/{popover-B0IAIvG1.js → popover-QmmuC2j3.js} +1 -1
- package/dist/client/assets/post-editor-847fBebh.js +1 -0
- package/dist/client/assets/{primitives-TeELpOAu.js → primitives-DCjJZijO.js} +1 -1
- package/dist/client/assets/{profile-CwdfRf3t.js → profile-dxQOIoy6.js} +1 -1
- package/dist/client/assets/project-app-view-DDvhy0js.js +1 -0
- package/dist/client/assets/record-editor-DZP5PoIz.js +1 -0
- package/dist/client/assets/redirect-editor-Cj7N-Dee.js +1 -0
- package/dist/client/assets/registry-DdNbIMiF.js +2 -0
- package/dist/client/assets/{registry-layout-BiwVm6BS.js → registry-layout-hMOd-Vu6.js} +1 -1
- package/dist/client/assets/{reports-BAIAc8a3.js → reports-B36h6JQw.js} +1 -1
- package/dist/client/assets/{require-capability-5JvRqOC5.js → require-capability-BSRjSQ8m.js} +1 -1
- package/dist/client/assets/{required-auth-layout-pECQLZu3.js → required-auth-layout-DyZfLiuc.js} +1 -1
- package/dist/client/assets/{reset-password-6785Ja9D.js → reset-password-V6kMwcFG.js} +1 -1
- package/dist/client/assets/{roles-Ssu2ZMMo.js → roles-lc89Fi8t.js} +1 -1
- package/dist/client/assets/{search-input-Cs8XLlxq.js → search-input-eBi3jOVU.js} +1 -1
- package/dist/client/assets/{secrets-C3NcHdrk.js → secrets-BMRegWEv.js} +1 -1
- package/dist/client/assets/{sections-editor-BmggDKtT.js → sections-editor-BkTrlAhT.js} +2 -2
- package/dist/client/assets/{select-BVLvxRY_.js → select-ZZ2niYJE.js} +1 -1
- package/dist/client/assets/{select-model-B1FCO1sL.js → select-model-BUi0DPCz.js} +1 -1
- package/dist/client/assets/{self-tool-result-CiannG5U.js → self-tool-result-DabJKGlc.js} +1 -1
- package/dist/client/assets/seo-editor-ip7TK0og.js +1 -0
- package/dist/client/assets/{settings-layout-DAXoBBEe.js → settings-layout-BnjA-1vO.js} +1 -1
- package/dist/client/assets/{settings-section-DK8lFIzK.js → settings-section-DHLuH-PS.js} +1 -1
- package/dist/client/assets/{shell-controls-KuQmFzu6.js → shell-controls-vY4IuJVQ.js} +1 -1
- package/dist/client/assets/{shell-layout-BijKU0-I.js → shell-layout-DT_JVhSf.js} +1 -1
- package/dist/client/assets/{sidebar-CDXYvtn9.js → sidebar-DbuIqiea.js} +1 -1
- package/dist/client/assets/{skeleton-CGU246-L.js → skeleton-COECUkwI.js} +1 -1
- package/dist/client/assets/{sso-D91DYNig.js → sso-e-1MoLDx.js} +1 -1
- package/dist/client/assets/{store-DbD53Dwf.js → store-Xehwc_cL.js} +1 -1
- package/dist/client/assets/store-registry-B8Cc-Qyz.js +2 -0
- package/dist/client/assets/{studio-tools-VGyC9GwV.js → studio-tools-0zl4dMkN.js} +1 -1
- package/dist/client/assets/{switch-C4OvS2MT.js → switch-BFhEckeE.js} +1 -1
- package/dist/client/assets/{tab-id-BPYTTZ6r.js → tab-id-DBqQfYhM.js} +1 -1
- package/dist/client/assets/{table-ZV_kuvYr.js → table-jSwBp7om.js} +1 -1
- package/dist/client/assets/{tabs-C6hrxr6a.js → tabs-DStJuoyx.js} +1 -1
- package/dist/client/assets/{textarea-x-bE9Bxs.js → textarea-DoBp39jT.js} +1 -1
- package/dist/client/assets/{toggle-group-CRooMtRv.js → toggle-group-Cfybgxkd.js} +1 -1
- package/dist/client/assets/{toolbar-yFGKx-ED.js → toolbar-Chezv8Oj.js} +1 -1
- package/dist/client/assets/{tooltip-DDodsVeB.js → tooltip-BZNMQNvf.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DVmSse-1.js → use-ai-providers-CbOFGwQ8.js} +1 -1
- package/dist/client/assets/{use-api-keys-uTQcq8rB.js → use-api-keys-6oSFOvUw.js} +1 -1
- package/dist/client/assets/{use-automations-CLUBhaHO.js → use-automations-D5QBILsR.js} +1 -1
- package/dist/client/assets/{use-autosave-Dzaioffs.js → use-autosave-d6m_eram.js} +1 -1
- package/dist/client/assets/{use-capability-kDNoyWdY.js → use-capability-CgcHlLav.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BayrL0TS.js → use-clock-tick-N2b0izvt.js} +1 -1
- package/dist/client/assets/{use-connection-ChhJlAvS.js → use-connection-BD9Io0lK.js} +1 -1
- package/dist/client/assets/{use-copy-i2NkP3Jk.js → use-copy-yJAZMqb7.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BImE2T8X.js → use-create-virtual-mcp-Dg_-07Uk.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-v1sdssj4.js → use-debounced-autosave-KyajsL3_.js} +1 -1
- package/dist/client/assets/{use-debounced-value-c9xf8WS9.js → use-debounced-value-BJf-6MsT.js} +1 -1
- package/dist/client/assets/{use-deco-credits-baDwitBx.js → use-deco-credits-bLxVczgz.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DZ9DZDbU.js → use-decopilot-events-B7L7auHL.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CMAwaYVC.js → use-delete-connection-h726MShe.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-1iMj6395.js → use-deployment-admin-BntjQTYI.js} +1 -1
- package/dist/client/assets/{use-file-configs-DN8YUUYy.js → use-file-configs-Dvqefsen.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B7GLw7FT.js → use-infinite-scroll-BVn-n2Jl.js} +1 -1
- package/dist/client/assets/{use-join-requests-CKgL2XRY.js → use-join-requests-8HOi_Rh1.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Diqe229X.js → use-mcp-auth-status-hcqVaZjN.js} +1 -1
- package/dist/client/assets/{use-mcp-client-S8Ro9wXt.js → use-mcp-client-B--rl5yR.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Ds6vRkno.js → use-mcp-tools-BgLiM38H.js} +1 -1
- package/dist/client/assets/{use-members-1gWDO4iq.js → use-members-B-fG1LMe.js} +1 -1
- package/dist/client/assets/{use-mobile-BvKWcALO.js → use-mobile-BCA9NX4p.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BizqM7da.js → use-navigate-to-agent-KNBtuqax.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CjJB7VYj.js → use-org-auth-client-qpocT7z8.js} +1 -1
- package/dist/client/assets/{use-org-sso-BwEUjK1Y.js → use-org-sso-DaQhuxoB.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C2rXgNfu.js → use-organization-roles-CLIu6Xv4.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CzkVoVdP.js → use-organization-settings-TEhzXl51.js} +1 -1
- package/dist/client/assets/{use-registry-app-Cqp0RcKu.js → use-registry-app-COCi1sPa.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BPeS8-S0.js → use-registry-connections-DRPB_2pH.js} +1 -1
- package/dist/client/assets/{use-secrets-DNpJcNyZ.js → use-secrets-DVcl6Hd_.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Dl0inIB_.js → use-status-sounds-BNilDfXk.js} +1 -1
- package/dist/client/assets/use-tags-Ce5L6-F5.js +1 -0
- package/dist/client/assets/{use-view-mode-BkwnM4KV.js → use-view-mode-DLfr09AM.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BerfEExf.js → use-virtual-mcp-BUKJpjSh.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-gzOQBHzL.js +1 -0
- package/dist/client/assets/{useQueries-BaAVLqaJ.js → useQueries-B6CU5OfR.js} +1 -1
- package/dist/client/assets/{useRouterState-BvY77fPk.js → useRouterState-CN5lLbjm.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DKovPPK2.js +1 -0
- package/dist/client/assets/{users-UlTXYJI6.js → users-CrtLImOC.js} +1 -1
- package/dist/client/assets/{variant-calendar-C3Io3KuI.js → variant-calendar-Ca6VyXSd.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-3iPqRACB.js → view-mode-toggle-Bqak8ar1.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +579 -497
- package/dist/server/migrate.js +114 -114
- package/dist/server/server.js +315 -315
- package/package.json +1 -1
- package/dist/client/assets/app-editor-yVBKDLck.js +0 -1
- package/dist/client/assets/bulk-category-panel-BoXTOaok.js +0 -1
- package/dist/client/assets/category-editor-DLlLtm6q.js +0 -1
- package/dist/client/assets/command-C8JQ6fDH.js +0 -1
- package/dist/client/assets/file-explorer-DH5RcxcZ.js +0 -2
- package/dist/client/assets/index-DZpEhuMO.css +0 -1
- package/dist/client/assets/index-DdPmVGw1.js +0 -8
- package/dist/client/assets/members-CI7yJEQa.js +0 -1
- package/dist/client/assets/post-editor-kMykRTTR.js +0 -1
- package/dist/client/assets/project-app-view-D56KUgUw.js +0 -1
- package/dist/client/assets/record-editor-DwPka5iP.js +0 -1
- package/dist/client/assets/redirect-editor-BG5ZYn8w.js +0 -1
- package/dist/client/assets/registry-yjuga6ab.js +0 -2
- package/dist/client/assets/seo-editor-DQpqd24m.js +0 -1
- package/dist/client/assets/store-registry-CP1Njx2O.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DVRcq0Og.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B2iCNXWP.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as gt,b as yt,r as w,j as o,m as kt,k as _t,t as xt}from"./index-3s9Tew9h.js";import{i as jt}from"./ChevronRight-CNc7IJBh.js";import{n as Bt}from"./automation-runs-BCXsq8ct.js";import{A as At}from"./add-section-modal-IrUHBk2G.js";import{A as wt,B as Et,C as Nt,D as Rt,F as Ct,G as Kt,S as Tt,H as Ft,I as $t}from"./index-ItRmrjqK.js";import"./select-BVLvxRY_.js";import"./tooltip-DDodsVeB.js";import"./Check-D2OTmp9f.js";import"./ChevronDown-6d9u53mr.js";import"./ChevronUp-CFeWkGPA.js";import"./useInfiniteQuery-DVRcq0Og.js";import"./use-infinite-scroll-B7GLw7FT.js";import"./use-connection-ChhJlAvS.js";import"./use-mcp-client-S8Ro9wXt.js";import"./auth-CyQvgFY_.js";import"./use-virtual-mcp-BerfEExf.js";import"./card-BJkx-TlV.js";import"./sidebar-CDXYvtn9.js";import"./LayoutLeft-CuMVXGUK.js";import"./use-mobile-BvKWcALO.js";import"./X-DM8kZX3_.js";import"./table-ZV_kuvYr.js";import"./empty-state-Dd-cQnoB.js";import"./use-members-1gWDO4iq.js";import"./use-org-auth-client-CjJB7VYj.js";import"./use-clock-tick-BayrL0TS.js";import"./AlertCircle-B-jqRzEl.js";import"./CheckCircle-CagdexBy.js";import"./DotsVertical-C3lcToNm.js";import"./agent-icon-C_Bcs5w3.js";import"./Tool01-D6778Lob.js";import"./ArrowUp-8wVhqZbY.js";import"./Settings02-CyPLPNW_.js";import"./Tool02-Z0l-5_iB.js";import"./XCircle-Mi8kCDLZ.js";import"./ArrowUpRight-C79Mz0y9.js";import"./TrendUp01-B0vVWAUw.js";import"./ZapSquare-D_Ea99yn.js";import"./Users03-Da7W4Ncu.js";import"./Stars02-BUKsUmOb.js";import"./Copy01-DAcswqJ-.js";import"./Eye-5baqKWh-.js";import"./FilterLines-DdzesZPL.js";import"./Star01-CYWNL4zV.js";import"./Palette-DIrZPBgO.js";import"./SwitchHorizontal01-CzML4bwn.js";import"./HardDrive-BKIKC-Q_.js";import"./Key01-fqq_MFu4.js";import"./LinkExternal01-BqkooxOV.js";import"./LogOut01-B8UpmR8a.js";import"./Monitor01-BLwSOYdr.js";import"./Sun-Bls3wdhD.js";import"./Play-b1Vma0LR.js";import"./Plus-Dn7E2MbI.js";import"./SearchLg-CcdcmJuJ.js";import"./SearchMd-BE8PZTOt.js";import"./Shield01-CcpD-xYP.js";import"./Stars01-CNYsGUE-.js";import"./Trash01--va9a-rZ.js";import"./Upload01-DJH5T0zl.js";import"./User01-BIYw5tFf.js";import"./Users01-CJQ3NAZn.js";import"./XClose-CnleH_rn.js";import"./Zap-Caskj5Xs.js";import"./use-automations-CLUBhaHO.js";import"./studio-tools-VGyC9GwV.js";import"./useSuspenseInfiniteQuery-B2iCNXWP.js";import"./avatar-D-26TcjI.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-i2NkP3Jk.js";import"./dialog-D33iO7_V.js";import"./tab-id-BPYTTZ6r.js";import"./hooks-UN_3FMZE.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CG8MNCkB.js";import"./chat-context-CRLCG-7m.js";import"./use-ai-providers-DVmSse-1.js";import"./use-decopilot-events-DZ9DZDbU.js";import"./use-organization-settings-CzkVoVdP.js";import"./monaco-editor-CG32495o.js";import"./index-BMkx_fVM.js";import"./calendar-D-kF2A1V.js";import"./shell-layout-BijKU0-I.js";import"./required-auth-layout-pECQLZu3.js";import"./use-org-sso-BwEUjK1Y.js";import"./integration-icon-efY4xiAf.js";import"./use-navigate-to-agent-BizqM7da.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BiVN9Rbg.js";import"./form-DU_fCIQ-.js";import"./label-IYRseMIB.js";import"./input-BfYMrULt.js";import"./drawer-DEBuno2i.js";import"./collection-search-BP_osQGg.js";import"./index-DdPmVGw1.js";import"./get-initials-D-f_fDFw.js";import"./popover-B0IAIvG1.js";import"./use-registry-app-Cqp0RcKu.js";import"./use-mcp-tools-Ds6vRkno.js";import"./github-repo-scope-CKSTLD3W.js";import"./authenticate-and-persist-oauth-CYAmEm23.js";import"./mcp-oauth-CSNCpmPq.js";import"./extract-connection-data-DV9ilPpM.js";import"./metadata-dUsYcpuu.js";import"./dropdown-menu-C6KbRlri.js";import"./command-C8JQ6fDH.js";import"./index-CHxi5qA7.js";import"./companions-core-XkORCpwR.js";import"./tabs-C6hrxr6a.js";import"./toggle-group-CRooMtRv.js";import"./use-deco-credits-baDwitBx.js";import"./alert-dialog-lKGaIGJ0.js";import"./toolbar-yFGKx-ED.js";import"./skeleton-CGU246-L.js";import"./github-repo-picker-BjxldoVh.js";import"./use-debounced-value-c9xf8WS9.js";import"./provision-repo-scoped-github-connection-Dp638N7g.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CAxRM9Mg.js";import"./use-registry-connections-BPeS8-S0.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-x-bE9Bxs.js";import"./connection-form-helpers-BJFFbUQU.js";import"./collection-tabs-rQ-lQQ1f.js";import"./badge-Bt07rmj0.js";import"./connect-desktop-dialog-ePivWtSb.js";import"./select-model-B1FCO1sL.js";import"./checkbox-L_8J0VEc.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DK8lFIzK.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dl0inIB_.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-kDNoyWdY.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-Diqe229X.js";import"./use-debounced-autosave-v1sdssj4.js";import"./index-DRZiVvJy.js";import"./search-input-Cs8XLlxq.js";import"./switch-C4OvS2MT.js";import"./use-secrets-DNpJcNyZ.js";import"./useQueries-BaAVLqaJ.js";import"./use-file-configs-DN8YUUYy.js";import"./automation-list-row-BNoWYkqJ.js";function Pt(l,t){const p=(l.title||l.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),u=/^[A-Za-z]/.test(p)&&p.length>0?p:"Section",n=wt(t,u);return{blockKey:n,data:{__resolveType:l.resolveType,name:n}}}function Br(l){const t=gt.c(80),{orgSlug:p,virtualMcpId:u,branch:n,blockKey:i,block:c,meta:m,decofile:d,title:Z,excludeFields:G,schemaPending:nt,previewBaseUrl:ct}=l,J=nt===void 0?!1:nt,x=ct===void 0?null:ct,s=yt(),b=typeof c?.__resolveType=="string"?c.__resolveType:"";let R;t[0]!==G||t[1]!==m||t[2]!==b?(R=Et(b,m,G),t[0]=G,t[1]=m,t[2]=b,t[3]=R):R=t[3];const h=R;let C;t[4]!==h?(C=!!h&&Object.keys(h.properties??{}).length>0,t[4]=h,t[5]=C):C=t[5];const Q=C;let K;t[6]!==c||t[7]!==i||t[8]!==m||t[9]!==Z?(K=Z??(c?Nt(i,c,m):i),t[6]=c,t[7]=i,t[8]=m,t[9]=Z,t[10]=K):K=t[10];const v=K;let T;t[11]!==n||t[12]!==p||t[13]!==u?(T={orgSlug:p,virtualMcpId:u,branch:n},t[11]=n,t[12]=p,t[13]=u,t[14]=T):T=t[14];const{save:S,flush:W,isPending:X}=Rt(T);let F;t[15]!==n||t[16]!==p||t[17]!==u?(F={orgSlug:p,virtualMcpId:u,branch:n},t[15]=n,t[16]=p,t[17]=u,t[18]=F):F=t[18];const Y=Ct(F);let $;t[19]!==S?($=Ft((e,r)=>S(e,r)),t[19]=S,t[20]=$):$=t[20];const tt=$,[ht,bt]=w.useState(i),[et,dt]=w.useState(null),[ot,ft]=w.useState(0);let P;t[21]===Symbol.for("react.memo_cache_sentinel")?(P=[],t[21]=P):P=t[21];const[a,ut]=w.useState(P),[rt,it]=w.useState(!1),O=w.useRef(null);ht!==i&&(bt(i),dt(null),ft(zt),ut([]));let z;t[22]!==c?(z=c??{},t[22]=c,t[23]=z):z=t[23];const mt=z;let g;t[24]!==et?(g=et??{},t[24]=et,t[25]=g):g=t[25];let I;t[26]!==mt||t[27]!==g?(I={...mt,...g},t[26]=mt,t[27]=g,t[28]=I):I=t[28];const st=I;let V;t[29]!==i||t[30]!==b||t[31]!==S?(V=e=>{const r=e;dt(r),S(i,{...r,__resolveType:b})},t[29]=i,t[30]=b,t[31]=S,t[32]=V):V=t[32];const pt=V;let q;t[33]===Symbol.for("react.memo_cache_sentinel")?(q=e=>{ut(e)},t[33]=q):q=t[33];const at=q;let L;t[34]!==d||t[35]!==W||t[36]!==Y||t[37]!==s?(L=async(e,r)=>{try{const{blockKey:f,data:N}=Pt(e,d);await Y.mutateAsync({blockKey:f,data:N}),xt.success(s("sandbox.appEditor.createdSection",{name:f})),r({__resolveType:f}),W()}catch(f){const N=f,St=N instanceof Error?N.message:s("sandbox.appEditor.failedAddSection");throw xt.error(St),N}},t[34]=d,t[35]=W,t[36]=Y,t[37]=s,t[38]=L):L=t[38];const y=L;let U;t[39]===Symbol.for("react.memo_cache_sentinel")?(U=e=>{O.current=e.append,it(!0)},t[39]=U):U=t[39];const vt=U;let D;t[40]!==y?(D=async e=>{const r=O.current;if(r)try{await y(e,f=>{r(f),it(!1),O.current=null})}catch{}},t[40]=y,t[41]=D):D=t[41];const lt=D;let H;t[42]!==a||t[43]!==v?(H=a.length>0?[v,...a]:[],t[42]=a,t[43]=v,t[44]=H):H=t[44];const E=H;let k;t[45]!==a||t[46]!==E||t[47]!==s||t[48]!==v?(k=E.length>0?o.jsx("nav",{"aria-label":s("sandbox.appEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:E.map((e,r)=>{const f=r===E.length-1;return o.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[r>0&&o.jsx(jt,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("button",{type:"button",onClick:()=>{at(r===0?[]:Kt(a,r)),ft(Ot)},title:e,className:kt("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",f?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:e})]},`${e}-${r}`)})}):o.jsx("span",{className:"text-sm font-medium",children:v}),t[45]=a,t[46]=E,t[47]=s,t[48]=v,t[49]=k):k=t[49];let _;t[50]!==X?(_=o.jsx($t,{isPending:X,isError:!1}),t[50]=X,t[51]=_):_=t[51];let j;t[52]!==k||t[53]!==_?(j=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[k,_]}),t[52]=k,t[53]=_,t[54]=j):j=t[54];let B;t[55]!==i||t[56]!==a||t[57]!==d||t[58]!==st||t[59]!==ot||t[60]!==y||t[61]!==pt||t[62]!==Q||t[63]!==m||t[64]!==x||t[65]!==tt||t[66]!==h||t[67]!==J||t[68]!==s?(B=o.jsx(Bt,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl",children:Q?o.jsx(Tt,{schema:h,value:st,onChange:pt,basePath:"",breadcrumbPath:a,onBreadcrumbChange:at,decofile:d,meta:m,onSaveReferencedBlock:tt,previewBaseUrl:x,onAddSectionItem:y,onRequestAddSection:vt},`${i}:${ot}`):J?o.jsxs("div",{className:"flex flex-col items-center gap-2 py-6 text-center text-xs text-muted-foreground",children:[o.jsx(_t,{size:16,className:"animate-spin"}),s("sandbox.appEditor.loadingSchema")]}):o.jsx("div",{className:"py-6 text-center text-xs text-muted-foreground",children:s("sandbox.appEditor.noEditableSchema")})})})}),t[55]=i,t[56]=a,t[57]=d,t[58]=st,t[59]=ot,t[60]=y,t[61]=pt,t[62]=Q,t[63]=m,t[64]=x,t[65]=tt,t[66]=h,t[67]=J,t[68]=s,t[69]=B):B=t[69];let A;t[70]!==rt||t[71]!==d||t[72]!==lt||t[73]!==m||t[74]!==x?(A=x&&o.jsx(At,{open:rt,onOpenChange:e=>{it(e),e||(O.current=null)},meta:m,decofile:d,previewBaseUrl:x,onSelect:e=>{lt(e)}}),t[70]=rt,t[71]=d,t[72]=lt,t[73]=m,t[74]=x,t[75]=A):A=t[75];let M;return t[76]!==j||t[77]!==B||t[78]!==A?(M=o.jsxs("div",{className:"flex h-full flex-col",children:[j,B,A]}),t[76]=j,t[77]=B,t[78]=A,t[79]=M):M=t[79],M}function Ot(l){return l+1}function zt(l){return l+1}export{Br as AppEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as he,b as je,r as de,j as t,k as ye,B as ne}from"./index-3s9Tew9h.js";import{E as ue}from"./agent-icon-C_Bcs5w3.js";import{i as ke}from"./X-DM8kZX3_.js";import{L as ce}from"./label-IYRseMIB.js";import{ak as xe,al as Ne}from"./index-ItRmrjqK.js";import{S as Ce,a as Pe,b as Se,c as ve,d as _e}from"./select-BVLvxRY_.js";import{T as Te,a as we,c as Be}from"./tooltip-DDodsVeB.js";import"./AlertCircle-B-jqRzEl.js";import"./Tool01-D6778Lob.js";import"./ArrowUp-8wVhqZbY.js";import"./Settings02-CyPLPNW_.js";import"./Tool02-Z0l-5_iB.js";import"./XCircle-Mi8kCDLZ.js";import"./ArrowUpRight-C79Mz0y9.js";import"./TrendUp01-B0vVWAUw.js";import"./ZapSquare-D_Ea99yn.js";import"./Users03-Da7W4Ncu.js";import"./CheckCircle-CagdexBy.js";import"./Check-D2OTmp9f.js";import"./ChevronDown-6d9u53mr.js";import"./ChevronRight-CNc7IJBh.js";import"./ChevronUp-CFeWkGPA.js";import"./DotsVertical-C3lcToNm.js";import"./Stars02-BUKsUmOb.js";import"./Copy01-DAcswqJ-.js";import"./Eye-5baqKWh-.js";import"./FilterLines-DdzesZPL.js";import"./Star01-CYWNL4zV.js";import"./Palette-DIrZPBgO.js";import"./SwitchHorizontal01-CzML4bwn.js";import"./HardDrive-BKIKC-Q_.js";import"./Key01-fqq_MFu4.js";import"./LayoutLeft-CuMVXGUK.js";import"./LinkExternal01-BqkooxOV.js";import"./LogOut01-B8UpmR8a.js";import"./Monitor01-BLwSOYdr.js";import"./Sun-Bls3wdhD.js";import"./Play-b1Vma0LR.js";import"./Plus-Dn7E2MbI.js";import"./SearchLg-CcdcmJuJ.js";import"./SearchMd-BE8PZTOt.js";import"./Shield01-CcpD-xYP.js";import"./Stars01-CNYsGUE-.js";import"./Trash01--va9a-rZ.js";import"./Upload01-DJH5T0zl.js";import"./User01-BIYw5tFf.js";import"./Users01-CJQ3NAZn.js";import"./XClose-CnleH_rn.js";import"./Zap-Caskj5Xs.js";import"./chat-context-CRLCG-7m.js";import"./tab-id-BPYTTZ6r.js";import"./hooks-UN_3FMZE.js";import"./use-mcp-client-S8Ro9wXt.js";import"./auth-CyQvgFY_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CG8MNCkB.js";import"./studio-tools-VGyC9GwV.js";import"./use-virtual-mcp-BerfEExf.js";import"./use-ai-providers-DVmSse-1.js";import"./use-decopilot-events-DZ9DZDbU.js";import"./use-organization-settings-CzkVoVdP.js";import"./automation-runs-BCXsq8ct.js";import"./useInfiniteQuery-DVRcq0Og.js";import"./use-infinite-scroll-B7GLw7FT.js";import"./use-connection-ChhJlAvS.js";import"./card-BJkx-TlV.js";import"./sidebar-CDXYvtn9.js";import"./use-mobile-BvKWcALO.js";import"./table-ZV_kuvYr.js";import"./empty-state-Dd-cQnoB.js";import"./use-members-1gWDO4iq.js";import"./use-org-auth-client-CjJB7VYj.js";import"./use-clock-tick-BayrL0TS.js";import"./use-automations-CLUBhaHO.js";import"./useSuspenseInfiniteQuery-B2iCNXWP.js";import"./avatar-D-26TcjI.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-i2NkP3Jk.js";import"./dialog-D33iO7_V.js";import"./monaco-editor-CG32495o.js";import"./index-BMkx_fVM.js";import"./calendar-D-kF2A1V.js";import"./shell-layout-BijKU0-I.js";import"./required-auth-layout-pECQLZu3.js";import"./use-org-sso-BwEUjK1Y.js";import"./integration-icon-efY4xiAf.js";import"./use-navigate-to-agent-BizqM7da.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BiVN9Rbg.js";import"./form-DU_fCIQ-.js";import"./input-BfYMrULt.js";import"./drawer-DEBuno2i.js";import"./collection-search-BP_osQGg.js";import"./index-DdPmVGw1.js";import"./get-initials-D-f_fDFw.js";import"./popover-B0IAIvG1.js";import"./use-registry-app-Cqp0RcKu.js";import"./use-mcp-tools-Ds6vRkno.js";import"./github-repo-scope-CKSTLD3W.js";import"./authenticate-and-persist-oauth-CYAmEm23.js";import"./mcp-oauth-CSNCpmPq.js";import"./extract-connection-data-DV9ilPpM.js";import"./metadata-dUsYcpuu.js";import"./dropdown-menu-C6KbRlri.js";import"./command-C8JQ6fDH.js";import"./index-CHxi5qA7.js";import"./companions-core-XkORCpwR.js";import"./tabs-C6hrxr6a.js";import"./toggle-group-CRooMtRv.js";import"./use-deco-credits-baDwitBx.js";import"./alert-dialog-lKGaIGJ0.js";import"./toolbar-yFGKx-ED.js";import"./skeleton-CGU246-L.js";import"./github-repo-picker-BjxldoVh.js";import"./use-debounced-value-c9xf8WS9.js";import"./provision-repo-scoped-github-connection-Dp638N7g.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CAxRM9Mg.js";import"./use-registry-connections-BPeS8-S0.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-x-bE9Bxs.js";import"./connection-form-helpers-BJFFbUQU.js";import"./collection-tabs-rQ-lQQ1f.js";import"./badge-Bt07rmj0.js";import"./connect-desktop-dialog-ePivWtSb.js";import"./select-model-B1FCO1sL.js";import"./checkbox-L_8J0VEc.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DK8lFIzK.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dl0inIB_.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-kDNoyWdY.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-Diqe229X.js";import"./use-debounced-autosave-v1sdssj4.js";import"./index-DRZiVvJy.js";import"./search-input-Cs8XLlxq.js";import"./switch-C4OvS2MT.js";import"./use-secrets-DNpJcNyZ.js";import"./useQueries-BaAVLqaJ.js";import"./use-file-configs-DN8YUUYy.js";import"./automation-list-row-BNoWYkqJ.js";function hi(i){const e=he.c(121),{posts:X,categories:r,initialSlug:le,isPending:s,onApply:re,onClose:p}=i,o=je(),[m,fe]=de.useState(le&&r.some(a=>a.slug===le)?le:r[0]?.slug??""),[n,ge]=de.useState("add");let Y;if(e[0]!==r||e[1]!==m){let a;e[3]!==m?(a=be=>be.slug===m,e[3]=m,e[4]=a):a=e[4],Y=r.find(a),e[0]=r,e[1]=m,e[2]=Y}else Y=e[2];const c=Y,l=X.length,me=String(l);let d;e[5]!==o||e[6]!==me?(d=o("sandbox.bulkCategoryPanel.selectedCount",{count:me}),e[5]=o,e[6]=me,e[7]=d):d=e[7];let x;e[8]!==d?(x=t.jsx("span",{className:"truncate text-sm font-medium",children:d}),e[8]=d,e[9]=x):x=e[9];let u;e[10]!==o?(u=o("sandbox.bulkCategoryPanel.exitSelection"),e[10]=o,e[11]=u):u=e[11];let Z;e[12]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(ke,{size:14}),e[12]=Z):Z=e[12];let f;e[13]!==s||e[14]!==p||e[15]!==u?(f=t.jsx(Te,{asChild:!0,children:t.jsx(ne,{type:"button",variant:"ghost",size:"icon",disabled:s,onClick:p,"aria-label":u,children:Z})}),e[13]=s,e[14]=p,e[15]=u,e[16]=f):f=e[16];let g;e[17]!==o?(g=o("sandbox.bulkCategoryPanel.exitSelection"),e[17]=o,e[18]=g):g=e[18];let b;e[19]!==g?(b=t.jsx(we,{side:"bottom",children:g}),e[19]=g,e[20]=b):b=e[20];let h;e[21]!==f||e[22]!==b?(h=t.jsxs(Be,{children:[f,b]}),e[21]=f,e[22]=b,e[23]=h):h=e[23];let j;e[24]!==h||e[25]!==x?(j=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[x,h]}),e[24]=h,e[25]=x,e[26]=j):j=e[26];let y;e[27]!==o?(y=o("sandbox.bulkCategoryPanel.title"),e[27]=o,e[28]=y):y=e[28];let k;e[29]!==y?(k=t.jsx("h2",{className:"text-2xl font-bold text-foreground",children:y}),e[29]=y,e[30]=k):k=e[30];let N;e[31]!==l||e[32]!==o?(N=l===0?o("sandbox.bulkCategoryPanel.descriptionEmpty"):o("sandbox.bulkCategoryPanel.descriptionWithCount",{count:String(l)}),e[31]=l,e[32]=o,e[33]=N):N=e[33];let C;e[34]!==N?(C=t.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:N}),e[34]=N,e[35]=C):C=e[35];let P;e[36]!==o?(P=o("sandbox.bulkCategoryPanel.categoryLabel"),e[36]=o,e[37]=P):P=e[37];let S;e[38]!==P?(S=t.jsx(ce,{children:P}),e[38]=P,e[39]=S):S=e[39];let v;e[40]!==r||e[41]!==m||e[42]!==o?(v=r.length===0?t.jsx("p",{className:"text-sm text-muted-foreground",children:o("sandbox.bulkCategoryPanel.noCategoriesMessage")}):t.jsxs(Ce,{value:m,onValueChange:fe,children:[t.jsx(Pe,{className:"w-full",children:t.jsx(Se,{placeholder:o("sandbox.bulkCategoryPanel.selectCategoryPlaceholder")})}),t.jsx(ve,{children:r.map(ze)})]}),e[40]=r,e[41]=m,e[42]=o,e[43]=v):v=e[43];let _;e[44]!==S||e[45]!==v?(_=t.jsxs("div",{className:"space-y-2",children:[S,v]}),e[44]=S,e[45]=v,e[46]=_):_=e[46];let ee;e[47]===Symbol.for("react.memo_cache_sentinel")?(ee=a=>ge(a),e[47]=ee):ee=e[47];let te;e[48]===Symbol.for("react.memo_cache_sentinel")?(te=t.jsx(xe,{value:"add",id:"cat-mode-add",className:"mt-0.5"}),e[48]=te):te=e[48];let T;e[49]!==o?(T=o("sandbox.bulkCategoryPanel.modeAddTitle"),e[49]=o,e[50]=T):T=e[50];let w;e[51]!==T?(w=t.jsx("span",{className:"block text-sm font-medium",children:T}),e[51]=T,e[52]=w):w=e[52];let B;e[53]!==o?(B=o("sandbox.bulkCategoryPanel.modeAddDescription"),e[53]=o,e[54]=B):B=e[54];let R;e[55]!==B?(R=t.jsx("span",{className:"block text-xs text-muted-foreground",children:B}),e[55]=B,e[56]=R):R=e[56];let z;e[57]!==w||e[58]!==R?(z=t.jsxs(ce,{htmlFor:"cat-mode-add",className:"flex cursor-pointer items-start gap-2.5 rounded-lg border p-3",children:[te,t.jsxs("span",{className:"space-y-0.5",children:[w,R]})]}),e[57]=w,e[58]=R,e[59]=z):z=e[59];let oe;e[60]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx(xe,{value:"replace",id:"cat-mode-replace",className:"mt-0.5"}),e[60]=oe):oe=e[60];let E;e[61]!==o?(E=o("sandbox.bulkCategoryPanel.modeReplaceTitle"),e[61]=o,e[62]=E):E=e[62];let L;e[63]!==E?(L=t.jsx("span",{className:"block text-sm font-medium",children:E}),e[63]=E,e[64]=L):L=e[64];let A;e[65]!==o?(A=o("sandbox.bulkCategoryPanel.modeReplaceDescription"),e[65]=o,e[66]=A):A=e[66];let F;e[67]!==A?(F=t.jsx("span",{className:"block text-xs text-muted-foreground",children:A}),e[67]=A,e[68]=F):F=e[68];let M;e[69]!==L||e[70]!==F?(M=t.jsxs(ce,{htmlFor:"cat-mode-replace",className:"flex cursor-pointer items-start gap-2.5 rounded-lg border p-3",children:[oe,t.jsxs("span",{className:"space-y-0.5",children:[L,F]})]}),e[69]=L,e[70]=F,e[71]=M):M=e[71];let V;e[72]!==n||e[73]!==z||e[74]!==M?(V=t.jsxs(Ne,{value:n,onValueChange:ee,className:"gap-2",children:[z,M]}),e[72]=n,e[73]=z,e[74]=M,e[75]=V):V=e[75];let $;e[76]!==o?($=o("sandbox.bulkCategoryPanel.cancelButton"),e[76]=o,e[77]=$):$=e[77];let D;e[78]!==s||e[79]!==p||e[80]!==$?(D=t.jsx(ne,{type:"button",variant:"outline",onClick:p,disabled:s,children:$}),e[78]=s,e[79]=p,e[80]=$,e[81]=D):D=e[81];const ae=!c||s||l===0;let G;e[82]!==n||e[83]!==re||e[84]!==c?(G=()=>c&&re(n,{name:c.name,slug:c.slug}),e[82]=n,e[83]=re,e[84]=c,e[85]=G):G=e[85];let I;e[86]!==s||e[87]!==o?(I=s?t.jsxs(t.Fragment,{children:[t.jsx(ye,{size:14,className:"animate-spin"}),o("sandbox.bulkCategoryPanel.updatingButton")]}):o("sandbox.bulkCategoryPanel.applyButton"),e[86]=s,e[87]=o,e[88]=I):I=e[88];let W;e[89]!==ae||e[90]!==G||e[91]!==I?(W=t.jsx(ne,{type:"button",disabled:ae,onClick:G,children:I}),e[89]=ae,e[90]=G,e[91]=I,e[92]=W):W=e[92];let q;e[93]!==D||e[94]!==W?(q=t.jsxs("div",{className:"flex justify-end gap-2",children:[D,W]}),e[93]=D,e[94]=W,e[95]=q):q=e[95];let H;e[96]!==_||e[97]!==V||e[98]!==q?(H=t.jsxs("div",{className:"mt-6 space-y-4",children:[_,V,q]}),e[96]=_,e[97]=V,e[98]=q,e[99]=H):H=e[99];let ie;e[100]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(ue,{size:16,className:"shrink-0 text-muted-foreground"}),e[100]=ie):ie=e[100];const pe=String(l);let J;e[101]!==o||e[102]!==pe?(J=o("sandbox.bulkCategoryPanel.selectedPostsLabel",{count:pe}),e[101]=o,e[102]=pe,e[103]=J):J=e[103];let K;e[104]!==J?(K=t.jsxs("div",{className:"flex items-center gap-2 px-4 py-3",children:[ie,t.jsx("span",{className:"text-sm",children:J})]}),e[104]=J,e[105]=K):K=e[105];let O;e[106]!==l||e[107]!==X||e[108]!==o?(O=l===0?t.jsx("p",{className:"border-t bg-background px-4 py-3 text-sm text-muted-foreground",children:o("sandbox.bulkCategoryPanel.noPostsSelectedMessage")}):t.jsx("ul",{className:"divide-y border-t bg-background",children:X.map(Re)}),e[106]=l,e[107]=X,e[108]=o,e[109]=O):O=e[109];let Q;e[110]!==K||e[111]!==O?(Q=t.jsxs("div",{className:"mt-8 overflow-hidden rounded-lg border bg-muted/30",children:[K,O]}),e[110]=K,e[111]=O,e[112]=Q):Q=e[112];let U;e[113]!==k||e[114]!==C||e[115]!==H||e[116]!==Q?(U=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-2xl px-8 py-8",children:[k,C,H,Q]})}),e[113]=k,e[114]=C,e[115]=H,e[116]=Q,e[117]=U):U=e[117];let se;return e[118]!==j||e[119]!==U?(se=t.jsxs("div",{className:"flex h-full flex-col",children:[j,U]}),e[118]=j,e[119]=U,e[120]=se):se=e[120],se}function Re(i){return t.jsxs("li",{className:"flex items-center gap-2.5 px-4 py-2.5",children:[t.jsx(ue,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:i.title}),i.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:i.slug})]})]},i.key)}function ze(i){return t.jsx(_e,{value:i.slug,children:t.jsx("span",{className:"truncate",children:i.name})},i.slug)}export{hi as BulkCategoryPanel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as J,r as k,m as V,j as t,b as X,B as I,k as Y,t as $}from"./index-3s9Tew9h.js";import{i as Z}from"./XCircle-Mi8kCDLZ.js";import{b1 as _,E as U}from"./agent-icon-C_Bcs5w3.js";import{n as K}from"./LinkExternal01-BqkooxOV.js";import{A as tt,a as ot,b as et,c as rt,d as it,e as st,f as at,g as nt}from"./alert-dialog-lKGaIGJ0.js";import{I as W}from"./input-BfYMrULt.js";import{L as H}from"./label-IYRseMIB.js";import{P as mt,O as lt,Q as pt,ai as ct,I as dt,T as B,W as gt,aj as ut,U as xt}from"./index-ItRmrjqK.js";import{c as ft,B as ht,a as yt}from"./block-document-DHwqz4ng.js";import{u as bt}from"./use-autosave-Dzaioffs.js";import{t as jt}from"./ChevronDown-6d9u53mr.js";import{t as vt,v as Et,r as Nt}from"./automation-runs-BCXsq8ct.js";import{s as b,E as Ct}from"./primitives-TeELpOAu.js";import"./AlertCircle-B-jqRzEl.js";import"./Tool01-D6778Lob.js";import"./ArrowUp-8wVhqZbY.js";import"./Settings02-CyPLPNW_.js";import"./Tool02-Z0l-5_iB.js";import"./ArrowUpRight-C79Mz0y9.js";import"./TrendUp01-B0vVWAUw.js";import"./ZapSquare-D_Ea99yn.js";import"./Users03-Da7W4Ncu.js";import"./CheckCircle-CagdexBy.js";import"./Check-D2OTmp9f.js";import"./ChevronRight-CNc7IJBh.js";import"./ChevronUp-CFeWkGPA.js";import"./DotsVertical-C3lcToNm.js";import"./Stars02-BUKsUmOb.js";import"./Copy01-DAcswqJ-.js";import"./Eye-5baqKWh-.js";import"./FilterLines-DdzesZPL.js";import"./Star01-CYWNL4zV.js";import"./Palette-DIrZPBgO.js";import"./SwitchHorizontal01-CzML4bwn.js";import"./HardDrive-BKIKC-Q_.js";import"./Key01-fqq_MFu4.js";import"./LayoutLeft-CuMVXGUK.js";import"./LogOut01-B8UpmR8a.js";import"./Monitor01-BLwSOYdr.js";import"./Sun-Bls3wdhD.js";import"./Play-b1Vma0LR.js";import"./Plus-Dn7E2MbI.js";import"./SearchLg-CcdcmJuJ.js";import"./SearchMd-BE8PZTOt.js";import"./Shield01-CcpD-xYP.js";import"./Stars01-CNYsGUE-.js";import"./Trash01--va9a-rZ.js";import"./Upload01-DJH5T0zl.js";import"./User01-BIYw5tFf.js";import"./Users01-CJQ3NAZn.js";import"./XClose-CnleH_rn.js";import"./X-DM8kZX3_.js";import"./Zap-Caskj5Xs.js";import"./chat-context-CRLCG-7m.js";import"./tab-id-BPYTTZ6r.js";import"./hooks-UN_3FMZE.js";import"./use-mcp-client-S8Ro9wXt.js";import"./auth-CyQvgFY_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CG8MNCkB.js";import"./studio-tools-VGyC9GwV.js";import"./use-virtual-mcp-BerfEExf.js";import"./use-ai-providers-DVmSse-1.js";import"./use-decopilot-events-DZ9DZDbU.js";import"./use-organization-settings-CzkVoVdP.js";import"./tooltip-DDodsVeB.js";import"./dialog-D33iO7_V.js";import"./drawer-DEBuno2i.js";import"./collection-search-BP_osQGg.js";import"./use-mobile-BvKWcALO.js";import"./AreaChart-BiVN9Rbg.js";import"./index-BMkx_fVM.js";import"./calendar-D-kF2A1V.js";import"./shell-layout-BijKU0-I.js";import"./avatar-D-26TcjI.js";import"./required-auth-layout-pECQLZu3.js";import"./use-org-sso-BwEUjK1Y.js";import"./index-DdPmVGw1.js";import"./get-initials-D-f_fDFw.js";import"./popover-B0IAIvG1.js";import"./use-registry-app-Cqp0RcKu.js";import"./use-mcp-tools-Ds6vRkno.js";import"./use-connection-ChhJlAvS.js";import"./github-repo-scope-CKSTLD3W.js";import"./authenticate-and-persist-oauth-CYAmEm23.js";import"./mcp-oauth-CSNCpmPq.js";import"./extract-connection-data-DV9ilPpM.js";import"./metadata-dUsYcpuu.js";import"./use-members-1gWDO4iq.js";import"./use-org-auth-client-CjJB7VYj.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dropdown-menu-C6KbRlri.js";import"./use-copy-i2NkP3Jk.js";import"./command-C8JQ6fDH.js";import"./index-CHxi5qA7.js";import"./companions-core-XkORCpwR.js";import"./form-DU_fCIQ-.js";import"./select-BVLvxRY_.js";import"./tabs-C6hrxr6a.js";import"./toggle-group-CRooMtRv.js";import"./use-deco-credits-baDwitBx.js";import"./sidebar-CDXYvtn9.js";import"./toolbar-yFGKx-ED.js";import"./skeleton-CGU246-L.js";import"./github-repo-picker-BjxldoVh.js";import"./use-debounced-value-c9xf8WS9.js";import"./use-navigate-to-agent-BizqM7da.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-Dp638N7g.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CAxRM9Mg.js";import"./use-registry-connections-BPeS8-S0.js";import"./useInfiniteQuery-DVRcq0Og.js";import"./use-infinite-scroll-B7GLw7FT.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./card-BJkx-TlV.js";import"./integration-icon-efY4xiAf.js";import"./textarea-x-bE9Bxs.js";import"./connection-form-helpers-BJFFbUQU.js";import"./collection-tabs-rQ-lQQ1f.js";import"./badge-Bt07rmj0.js";import"./useSuspenseInfiniteQuery-B2iCNXWP.js";import"./connect-desktop-dialog-ePivWtSb.js";import"./select-model-B1FCO1sL.js";import"./checkbox-L_8J0VEc.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DK8lFIzK.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dl0inIB_.js";import"./empty-state-Dd-cQnoB.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-kDNoyWdY.js";import"./monaco-editor-CG32495o.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-Diqe229X.js";import"./use-debounced-autosave-v1sdssj4.js";import"./index-DRZiVvJy.js";import"./search-input-Cs8XLlxq.js";import"./switch-C4OvS2MT.js";import"./use-secrets-DNpJcNyZ.js";import"./useQueries-BaAVLqaJ.js";import"./use-file-configs-DN8YUUYy.js";import"./use-automations-CLUBhaHO.js";import"./automation-list-row-BNoWYkqJ.js";import"./table-ZV_kuvYr.js";import"./use-clock-tick-BayrL0TS.js";function St(j){const o=J.c(18),{icon:x,title:m,defaultOpen:v,children:u}=j,w=v===void 0?!1:v,[f,P]=k.useState(w);let l;o[0]!==x?(l=t.jsx(x,{size:15}),o[0]=x,o[1]=l):l=o[1];let r;o[2]!==m?(r=t.jsx("span",{className:"flex-1 text-left",children:m}),o[2]=m,o[3]=r):r=o[3];const a=f&&"rotate-180";let p;o[4]!==a?(p=V("transition-transform",a),o[4]=a,o[5]=p):p=o[5];let i;o[6]!==p?(i=t.jsx(jt,{size:15,className:p}),o[6]=p,o[7]=i):i=o[7];let c;o[8]!==l||o[9]!==r||o[10]!==i?(c=t.jsx(vt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[l,r,i]})}),o[8]=l,o[9]=r,o[10]=i,o[11]=c):c=o[11];let d;o[12]!==u?(d=t.jsx(Et,{className:"px-2 pt-4",children:u}),o[12]=u,o[13]=d):d=o[13];let n;return o[14]!==f||o[15]!==c||o[16]!==d?(n=t.jsxs(Nt,{open:f,onOpenChange:P,className:"mt-4",children:[c,d]}),o[14]=f,o[15]=c,o[16]=d,o[17]=n):n=o[17],n}function ur({orgSlug:j,virtualMcpId:o,branch:x,blockKey:m,block:v,decofile:u,meta:w,onManagePosts:f,onOpenPost:P,previewBaseUrl:l}){const r=X(),a=mt({orgSlug:j,virtualMcpId:o,branch:x,packagePath:lt(o)}),p=pt(v,"categories"),[i,c,d]=bt(p,e=>{a.mutate({blockKey:m,data:B(m,"categories",e)})}),n=(e,S)=>c({...i,[e]:S}),A=ft({decofile:u,category:i,previewBaseUrl:l}),s=b(i.slug),[D,y]=k.useState(s),[g,E]=k.useState(null),[N,T]=k.useState(!1),z=s?ct(u).filter(e=>e.categorySlugs.includes(s)):[],C=z.length,M=e=>n("slug",e),Q=async(e,S)=>{const G=b(i.name);T(!0);try{let h=0;for(const{key:O,payload:R}of gt(u,"posts")){const L=ut(R,e,{name:G,slug:S});L!==R&&(await a.mutateAsync({blockKey:O,data:B(O,"posts",xt(L))}),h+=1)}const F={...i,slug:S};await a.mutateAsync({blockKey:m,data:B(m,"categories",F)}),d(F),$.success(h>0?r("sandbox.categoryEditor.renameSuccessWithPosts",{count:String(h)}):r("sandbox.categoryEditor.renameSuccessNoPosts")),E(null)}catch(h){y(e),E(null),$.error(h instanceof Error?h.message:r("sandbox.categoryEditor.renameFailed"))}finally{T(!1)}},q=()=>{const e=D.trim();if(e===s){D!==e&&y(e);return}if(!e){y(s);return}if(C===0){M(e);return}E({oldSlug:s,newSlug:e,count:C})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:b(i.name)||r("sandbox.categoryEditor.untitledCategory")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(dt,{isPending:a.isPending,isError:a.isError}),A&&t.jsxs(I,{type:"button",variant:"outline",size:"sm",title:r("sandbox.categoryEditor.previewTooltip"),onClick:()=>window.open(A,"_blank","noopener,noreferrer"),children:[t.jsx(K,{size:14}),r("sandbox.categoryEditor.seeCategoryPreview")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(Ct,{value:b(i.name),onChange:e=>n("name",e),placeholder:r("sandbox.categoryEditor.categoryNamePlaceholder"),className:"py-1 text-3xl font-bold text-foreground"}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-slug",children:r("sandbox.categoryEditor.slugLabel")}),t.jsx(W,{id:"category-slug",value:D,onChange:e=>y(e.target.value),onBlur:q,placeholder:r("sandbox.categoryEditor.slugPlaceholder"),className:"h-10"})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-description",children:r("sandbox.categoryEditor.descriptionLabel")}),t.jsx(W,{id:"category-description",value:b(i.description),onChange:e=>n("description",e.target.value),placeholder:r("sandbox.categoryEditor.descriptionPlaceholder"),className:"h-10"})]}),t.jsx(St,{icon:_,title:r("sandbox.categoryEditor.contentTitle"),defaultOpen:!0,children:t.jsx(ht,{value:yt(i.sections),onChange:e=>n("sections",e),meta:w,sandboxRef:{orgSlug:j,virtualMcpId:o,branch:x},emptyMessage:r("sandbox.categoryEditor.noContentEmpty")})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(U,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:r("sandbox.categoryEditor.postsInCategory",{count:String(C)})})]}),t.jsxs(I,{type:"button",variant:"outline",size:"sm",disabled:!s,title:r(s?"sandbox.categoryEditor.pickPostsTooltip":"sandbox.categoryEditor.setSlugTooltip"),onClick:()=>f(s),children:[r("sandbox.categoryEditor.addPostsButton"),t.jsx(Z,{size:14})]})]}),C>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:z.map(e=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>P(e.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer",children:[t.jsx(U,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:e.title||r("sandbox.categoryEditor.untitledPost")}),e.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:e.slug})]})]})},e.key))})]})]})})]}),t.jsx(tt,{open:!!g,onOpenChange:e=>{e||N||(y(s),E(null))},children:t.jsxs(ot,{children:[t.jsxs(et,{children:[t.jsx(rt,{children:r("sandbox.categoryEditor.renameDialogTitle")}),t.jsx(it,{children:g?r("sandbox.categoryEditor.renameDialogDescription",{oldSlug:g.oldSlug,newSlug:g.newSlug,count:String(g.count)}):null})]}),t.jsxs(st,{children:[t.jsx(at,{disabled:N,children:r("sandbox.categoryEditor.cancelButton")}),t.jsx(nt,{onClick:e=>{e.preventDefault(),g&&Q(g.oldSlug,g.newSlug)},disabled:N,children:N?t.jsxs(t.Fragment,{children:[t.jsx(Y,{size:14,className:"animate-spin"}),r("sandbox.categoryEditor.renamingLabel")]}):r("sandbox.categoryEditor.renameActionButton")})]})]})})]})}export{ur as CategoryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as d,m as i,j as n}from"./index-3s9Tew9h.js";import{_ as m}from"./index-CHxi5qA7.js";import{e as k,b as N,h as j,a as b,d as w}from"./dialog-D33iO7_V.js";import{i as y}from"./SearchMd-BE8PZTOt.js";function C(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function S(a){const e=d.c(24);let t,s,o,l,r;e[0]!==a?({title:l,description:r,children:t,className:s,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5]);const _=l===void 0?"Command Palette":l,v=r===void 0?"Search for a command to run...":r;let c;e[6]!==_?(c=n.jsx(N,{children:_}),e[6]=_,e[7]=c):c=e[7];let p;e[8]!==v?(p=n.jsx(j,{children:v}),e[8]=v,e[9]=p):p=e[9];let u;e[10]!==c||e[11]!==p?(u=n.jsxs(b,{className:"sr-only",children:[c,p]}),e[10]=c,e[11]=p,e[12]=u):u=e[12];let f;e[13]!==s?(f=i("overflow-hidden p-0",s),e[13]=s,e[14]=f):f=e[14];let x;e[15]!==t?(x=n.jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[15]=t,e[16]=x):x=e[16];let g;e[17]!==f||e[18]!==x?(g=n.jsx(w,{className:f,closeButtonClassName:"hidden",children:x}),e[17]=f,e[18]=x,e[19]=g):g=e[19];let h;return e[20]!==o||e[21]!==u||e[22]!==g?(h=n.jsxs(k,{...o,children:[u,g]}),e[20]=o,e[21]=u,e[22]=g,e[23]=h):h=e[23],h}function z(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(y,{className:"size-5 shrink-0 text-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function G(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{G as C,L as a,R as b,H as c,z as d,C as e,S as f,B as g};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as se,b as Me,r as u,j as r,k as fe,B as De,d_ as Jt,az as Zt,aF as xe,d$ as en,e0 as tn,e1 as nn,e2 as rn,bI as on,e3 as sn,e4 as lt,aB as an,e5 as ln,e6 as cn,e7 as dn,e8 as un,e9 as fn,ea as pn,eb as mn,ec as xn,ed as hn,m as le,o as gn,t as ne,K as Ze}from"./index-3s9Tew9h.js";import{F as bn,l as yn}from"./monaco-editor-CG32495o.js";import{F as vn,h as Cn,a$ as wn,b0 as Nn}from"./agent-icon-C_Bcs5w3.js";import{s as jn}from"./XClose-CnleH_rn.js";import{n as En}from"./automation-runs-BCXsq8ct.js";import{c as et,T as tt,a as nt}from"./tooltip-DDodsVeB.js";import{b as Sn}from"./chat-context-CRLCG-7m.js";import{u as Dn}from"./shell-layout-BijKU0-I.js";import{i as Mn,E as Rn,a as Ae,b as Tn,f as Pn,g as Fn,c as kn,t as re,d as we,e as Le,h as Ne,j as Oe,k as Ie,l as An,s as Ln,v as On,m as $e,n as je,o as rt,p as In,q as Ee,r as Ke,w as $n,x as Kn,y as zn,z as _n}from"./index-ItRmrjqK.js";import{b as Gn,h as Bn,a as Vn,c as Un,d as Hn,e as qn}from"./dialog-D33iO7_V.js";import{I as ot}from"./input-BfYMrULt.js";import{c as Wn,d as Qn,b as Xn,f as Yn,g as Jn,e as Zn,a as er,A as tr}from"./alert-dialog-lKGaIGJ0.js";import{t as nr}from"./ChevronDown-6d9u53mr.js";import{i as rr}from"./ChevronRight-CNc7IJBh.js";import"./delay-CnY5UFtP.js";import"./AlertCircle-B-jqRzEl.js";import"./Tool01-D6778Lob.js";import"./ArrowUp-8wVhqZbY.js";import"./Settings02-CyPLPNW_.js";import"./Tool02-Z0l-5_iB.js";import"./XCircle-Mi8kCDLZ.js";import"./ArrowUpRight-C79Mz0y9.js";import"./TrendUp01-B0vVWAUw.js";import"./ZapSquare-D_Ea99yn.js";import"./Users03-Da7W4Ncu.js";import"./CheckCircle-CagdexBy.js";import"./Check-D2OTmp9f.js";import"./ChevronUp-CFeWkGPA.js";import"./DotsVertical-C3lcToNm.js";import"./Stars02-BUKsUmOb.js";import"./Copy01-DAcswqJ-.js";import"./Eye-5baqKWh-.js";import"./FilterLines-DdzesZPL.js";import"./Star01-CYWNL4zV.js";import"./Palette-DIrZPBgO.js";import"./SwitchHorizontal01-CzML4bwn.js";import"./HardDrive-BKIKC-Q_.js";import"./Key01-fqq_MFu4.js";import"./LayoutLeft-CuMVXGUK.js";import"./LinkExternal01-BqkooxOV.js";import"./LogOut01-B8UpmR8a.js";import"./Monitor01-BLwSOYdr.js";import"./Sun-Bls3wdhD.js";import"./Play-b1Vma0LR.js";import"./Plus-Dn7E2MbI.js";import"./SearchLg-CcdcmJuJ.js";import"./SearchMd-BE8PZTOt.js";import"./Shield01-CcpD-xYP.js";import"./Stars01-CNYsGUE-.js";import"./Trash01--va9a-rZ.js";import"./Upload01-DJH5T0zl.js";import"./User01-BIYw5tFf.js";import"./Users01-CJQ3NAZn.js";import"./X-DM8kZX3_.js";import"./Zap-Caskj5Xs.js";import"./select-BVLvxRY_.js";import"./useInfiniteQuery-DVRcq0Og.js";import"./use-infinite-scroll-B7GLw7FT.js";import"./use-connection-ChhJlAvS.js";import"./use-mcp-client-S8Ro9wXt.js";import"./auth-CyQvgFY_.js";import"./use-virtual-mcp-BerfEExf.js";import"./card-BJkx-TlV.js";import"./sidebar-CDXYvtn9.js";import"./use-mobile-BvKWcALO.js";import"./table-ZV_kuvYr.js";import"./empty-state-Dd-cQnoB.js";import"./use-members-1gWDO4iq.js";import"./use-org-auth-client-CjJB7VYj.js";import"./use-clock-tick-BayrL0TS.js";import"./use-automations-CLUBhaHO.js";import"./studio-tools-VGyC9GwV.js";import"./useSuspenseInfiniteQuery-B2iCNXWP.js";import"./avatar-D-26TcjI.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-i2NkP3Jk.js";import"./tab-id-BPYTTZ6r.js";import"./hooks-UN_3FMZE.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CG8MNCkB.js";import"./index-BMkx_fVM.js";import"./calendar-D-kF2A1V.js";import"./integration-icon-efY4xiAf.js";import"./use-navigate-to-agent-BizqM7da.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BiVN9Rbg.js";import"./form-DU_fCIQ-.js";import"./label-IYRseMIB.js";import"./use-ai-providers-DVmSse-1.js";import"./use-decopilot-events-DZ9DZDbU.js";import"./use-organization-settings-CzkVoVdP.js";import"./required-auth-layout-pECQLZu3.js";import"./use-org-sso-BwEUjK1Y.js";import"./drawer-DEBuno2i.js";import"./collection-search-BP_osQGg.js";import"./index-DdPmVGw1.js";import"./get-initials-D-f_fDFw.js";import"./popover-B0IAIvG1.js";import"./use-registry-app-Cqp0RcKu.js";import"./use-mcp-tools-Ds6vRkno.js";import"./github-repo-scope-CKSTLD3W.js";import"./authenticate-and-persist-oauth-CYAmEm23.js";import"./mcp-oauth-CSNCpmPq.js";import"./extract-connection-data-DV9ilPpM.js";import"./metadata-dUsYcpuu.js";import"./dropdown-menu-C6KbRlri.js";import"./command-C8JQ6fDH.js";import"./index-CHxi5qA7.js";import"./companions-core-XkORCpwR.js";import"./tabs-C6hrxr6a.js";import"./toggle-group-CRooMtRv.js";import"./use-deco-credits-baDwitBx.js";import"./toolbar-yFGKx-ED.js";import"./skeleton-CGU246-L.js";import"./github-repo-picker-BjxldoVh.js";import"./use-debounced-value-c9xf8WS9.js";import"./provision-repo-scoped-github-connection-Dp638N7g.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-CAxRM9Mg.js";import"./use-registry-connections-BPeS8-S0.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-x-bE9Bxs.js";import"./connection-form-helpers-BJFFbUQU.js";import"./collection-tabs-rQ-lQQ1f.js";import"./badge-Bt07rmj0.js";import"./connect-desktop-dialog-ePivWtSb.js";import"./select-model-B1FCO1sL.js";import"./checkbox-L_8J0VEc.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DK8lFIzK.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dl0inIB_.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-kDNoyWdY.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-Diqe229X.js";import"./use-debounced-autosave-v1sdssj4.js";import"./index-DRZiVvJy.js";import"./search-input-Cs8XLlxq.js";import"./switch-C4OvS2MT.js";import"./use-secrets-DNpJcNyZ.js";import"./useQueries-BaAVLqaJ.js";import"./use-file-configs-DN8YUUYy.js";import"./automation-list-row-BNoWYkqJ.js";const or={"new-file":{titleKey:"sandbox.fileExplorerNameDialog.newFileTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFileDescription",submitKey:"sandbox.fileExplorerNameDialog.newFileSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFilePlaceholder"},"new-folder":{titleKey:"sandbox.fileExplorerNameDialog.newFolderTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFolderDescription",submitKey:"sandbox.fileExplorerNameDialog.newFolderSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFolderPlaceholder"},rename:{titleKey:"sandbox.fileExplorerNameDialog.renameTitle",descriptionKey:"sandbox.fileExplorerNameDialog.renameDescription",submitKey:"sandbox.fileExplorerNameDialog.renameSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.renamePlaceholder"}};function sr(i){const e=se.c(71),{open:s,mode:a,initialName:l,parentLabel:m,isPending:h,onSubmit:f,onOpenChange:v}=i,j=l===void 0?"":l,d=h===void 0?!1:h,x=Me(),[g,F]=u.useState(j),[Z,q]=u.useState(s),y=or[a];s!==Z&&(q(s),s&&F(j));let b;e[0]!==d||e[1]!==v?(b=_=>{!_&&!d&&v(!1)},e[0]=d,e[1]=v,e[2]=b):b=e[2];const k=b;let A;e[3]!==d||e[4]!==g||e[5]!==f?(A=async _=>{_.preventDefault();const te=g.trim();!te||d||await f(te)},e[3]=d,e[4]=g,e[5]=f,e[6]=A):A=e[6];const I=A;let S;e[7]!==y.titleKey||e[8]!==x?(S=x(y.titleKey),e[7]=y.titleKey,e[8]=x,e[9]=S):S=e[9];let P;e[10]!==S?(P=r.jsx(Gn,{children:S}),e[10]=S,e[11]=P):P=e[11];let D;e[12]!==y.descriptionKey||e[13]!==x?(D=x(y.descriptionKey),e[12]=y.descriptionKey,e[13]=x,e[14]=D):D=e[14];let M;e[15]!==D?(M=r.jsx(Bn,{children:D}),e[15]=D,e[16]=M):M=e[16];let N;e[17]!==P||e[18]!==M?(N=r.jsxs(Vn,{children:[P,M]}),e[17]=P,e[18]=M,e[19]=N):N=e[19];let R;e[20]!==m||e[21]!==x?(R=m&&r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:x("sandbox.fileExplorerNameDialog.location")}),r.jsx(ot,{value:m,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[20]=m,e[21]=x,e[22]=R):R=e[22];let E;e[23]!==x?(E=x("sandbox.fileExplorerNameDialog.name"),e[23]=x,e[24]=E):E=e[24];let T;e[25]!==E?(T=r.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:E}),e[25]=E,e[26]=T):T=e[26];let Q;e[27]===Symbol.for("react.memo_cache_sentinel")?(Q=_=>F(_.target.value),e[27]=Q):Q=e[27];let X;e[28]!==y.placeholderKey||e[29]!==x?(X=x(y.placeholderKey),e[28]=y.placeholderKey,e[29]=x,e[30]=X):X=e[30];let Y;e[31]!==d||e[32]!==g||e[33]!==X?(Y=r.jsx(ot,{id:"file-explorer-name",value:g,onChange:Q,placeholder:X,autoFocus:!0,disabled:d}),e[31]=d,e[32]=g,e[33]=X,e[34]=Y):Y=e[34];let G;e[35]!==T||e[36]!==Y?(G=r.jsxs("div",{className:"space-y-1.5",children:[T,Y]}),e[35]=T,e[36]=Y,e[37]=G):G=e[37];let $;e[38]!==R||e[39]!==G?($=r.jsxs("div",{className:"space-y-4 py-4",children:[R,G]}),e[38]=R,e[39]=G,e[40]=$):$=e[40];let W;e[41]!==v?(W=()=>v(!1),e[41]=v,e[42]=W):W=e[42];let K;e[43]!==x?(K=x("sandbox.fileExplorerNameDialog.cancel"),e[43]=x,e[44]=K):K=e[44];let z;e[45]!==d||e[46]!==W||e[47]!==K?(z=r.jsx(De,{type:"button",variant:"outline",onClick:W,disabled:d,children:K}),e[45]=d,e[46]=W,e[47]=K,e[48]=z):z=e[48];let B;e[49]!==d||e[50]!==g?(B=!g.trim()||d,e[49]=d,e[50]=g,e[51]=B):B=e[51];let L;e[52]!==y.submitKey||e[53]!==d||e[54]!==x?(L=d?r.jsxs(r.Fragment,{children:[r.jsx(fe,{size:14,className:"animate-spin"}),x("sandbox.fileExplorerNameDialog.saving")]}):x(y.submitKey),e[52]=y.submitKey,e[53]=d,e[54]=x,e[55]=L):L=e[55];let V;e[56]!==B||e[57]!==L?(V=r.jsx(De,{type:"submit",disabled:B,children:L}),e[56]=B,e[57]=L,e[58]=V):V=e[58];let O;e[59]!==z||e[60]!==V?(O=r.jsxs(Un,{children:[z,V]}),e[59]=z,e[60]=V,e[61]=O):O=e[61];let U;e[62]!==I||e[63]!==$||e[64]!==O||e[65]!==N?(U=r.jsx(Hn,{className:"sm:max-w-md",children:r.jsxs("form",{onSubmit:I,children:[N,$,O]})}),e[62]=I,e[63]=$,e[64]=O,e[65]=N,e[66]=U):U=e[66];let ee;return e[67]!==k||e[68]!==s||e[69]!==U?(ee=r.jsx(qn,{open:s,onOpenChange:k,children:U}),e[67]=k,e[68]=s,e[69]=U,e[70]=ee):ee=e[70],ee}function ar(i){const e=se.c(47),{deleteTarget:s,deleteDirtyPaths:a,fsActionPending:l,onOpenChange:m,onConfirm:h}=i,f=Me(),v=s?.kind==="directory",j=s!==null,d=v?"sandbox.fileExplorerDeleteDialog.titleFolder":"sandbox.fileExplorerDeleteDialog.titleFile";let x;e[0]!==f||e[1]!==d?(x=f(d),e[0]=f,e[1]=d,e[2]=x):x=e[2];let g;e[3]!==x?(g=r.jsx(Wn,{children:x}),e[3]=x,e[4]=g):g=e[4];let F;e[5]!==f?(F=f("sandbox.fileExplorerDeleteDialog.description"),e[5]=f,e[6]=F):F=e[6];const Z=s?.name;let q;e[7]!==Z?(q=r.jsx("span",{className:"font-mono",children:Z}),e[7]=Z,e[8]=q):q=e[8];let y;e[9]!==v||e[10]!==f?(y=v?f("sandbox.fileExplorerDeleteDialog.folderSuffix"):".",e[9]=v,e[10]=f,e[11]=y):y=e[11];let b;e[12]!==a.length||e[13]!==f?(b=a.length>0&&r.jsxs(r.Fragment,{children:[" ",a.length===1?f("sandbox.fileExplorerDeleteDialog.unsavedChangesOne"):f("sandbox.fileExplorerDeleteDialog.unsavedChangesMany",{count:a.length})]}),e[12]=a.length,e[13]=f,e[14]=b):b=e[14];let k;e[15]!==F||e[16]!==q||e[17]!==y||e[18]!==b?(k=r.jsxs(Qn,{children:[F," ",q,y,b]}),e[15]=F,e[16]=q,e[17]=y,e[18]=b,e[19]=k):k=e[19];let A;e[20]!==k||e[21]!==g?(A=r.jsxs(Xn,{children:[g,k]}),e[20]=k,e[21]=g,e[22]=A):A=e[22];let I;e[23]!==f?(I=f("sandbox.fileExplorerDeleteDialog.cancel"),e[23]=f,e[24]=I):I=e[24];let S;e[25]!==l||e[26]!==I?(S=r.jsx(Yn,{disabled:l,children:I}),e[25]=l,e[26]=I,e[27]=S):S=e[27];const P=l||!s;let D;e[28]!==s||e[29]!==h?(D=Q=>{Q.preventDefault(),s&&h(s)},e[28]=s,e[29]=h,e[30]=D):D=e[30];let M;e[31]!==f?(M=f("sandbox.fileExplorerDeleteDialog.delete"),e[31]=f,e[32]=M):M=e[32];let N;e[33]!==P||e[34]!==D||e[35]!==M?(N=r.jsx(Jn,{disabled:P,onClick:D,children:M}),e[33]=P,e[34]=D,e[35]=M,e[36]=N):N=e[36];let R;e[37]!==S||e[38]!==N?(R=r.jsxs(Zn,{children:[S,N]}),e[37]=S,e[38]=N,e[39]=R):R=e[39];let E;e[40]!==A||e[41]!==R?(E=r.jsxs(er,{children:[A,R]}),e[40]=A,e[41]=R,e[42]=E):E=e[42];let T;return e[43]!==m||e[44]!==j||e[45]!==E?(T=r.jsx(tr,{open:j,onOpenChange:m,children:E}),e[43]=m,e[44]=j,e[45]=E,e[46]=T):T=e[46],T}var ze="ContextMenu",[ir]=an(ze,[lt]),J=lt(),[lr,ct]=ir(ze),dt=i=>{const{__scopeContextMenu:e,children:s,onOpenChange:a,dir:l,modal:m=!0}=i,[h,f]=u.useState(!1),v=J(e),j=on(a),d=u.useCallback(x=>{f(x),j(x)},[j]);return r.jsx(lr,{scope:e,open:h,onOpenChange:d,modal:m,children:r.jsx(sn,{...v,dir:l,open:h,onOpenChange:d,modal:m,children:s})})};dt.displayName=ze;var ut="ContextMenuTrigger",ft=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,disabled:a=!1,...l}=i,m=ct(ut,s),h=J(s),f=u.useRef({x:0,y:0}),v=u.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...f.current})}),j=u.useRef(0),d=u.useCallback(()=>window.clearTimeout(j.current),[]),x=g=>{f.current={x:g.clientX,y:g.clientY},m.onOpenChange(!0)};return u.useEffect(()=>d,[d]),u.useEffect(()=>{a&&d()},[a,d]),r.jsxs(r.Fragment,{children:[r.jsx(Jt,{...h,virtualRef:v}),r.jsx(Zt.span,{"data-state":m.open?"open":"closed","data-disabled":a?"":void 0,...l,ref:e,style:{WebkitTouchCallout:"none",...i.style},onContextMenu:a?i.onContextMenu:xe(i.onContextMenu,g=>{d(),x(g),g.preventDefault()}),onPointerDown:a?i.onPointerDown:xe(i.onPointerDown,Se(g=>{d(),j.current=window.setTimeout(()=>x(g),700)})),onPointerMove:a?i.onPointerMove:xe(i.onPointerMove,Se(d)),onPointerCancel:a?i.onPointerCancel:xe(i.onPointerCancel,Se(d)),onPointerUp:a?i.onPointerUp:xe(i.onPointerUp,Se(d))})]})});ft.displayName=ut;var cr="ContextMenuPortal",pt=i=>{const{__scopeContextMenu:e,...s}=i,a=J(e);return r.jsx(nn,{...a,...s})};pt.displayName=cr;var mt="ContextMenuContent",xt=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=ct(mt,s),m=J(s),h=u.useRef(!1);return r.jsx(rn,{...m,...a,ref:e,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:f=>{i.onCloseAutoFocus?.(f),!f.defaultPrevented&&h.current&&f.preventDefault(),h.current=!1},onInteractOutside:f=>{i.onInteractOutside?.(f),!f.defaultPrevented&&!l.modal&&(h.current=!0)},style:{...i.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)"}})});xt.displayName=mt;var dr="ContextMenuGroup",ur=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(ln,{...l,...a,ref:e})});ur.displayName=dr;var fr="ContextMenuLabel",pr=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(cn,{...l,...a,ref:e})});pr.displayName=fr;var mr="ContextMenuItem",ht=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(en,{...l,...a,ref:e})});ht.displayName=mr;var xr="ContextMenuCheckboxItem",hr=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(dn,{...l,...a,ref:e})});hr.displayName=xr;var gr="ContextMenuRadioGroup",br=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(un,{...l,...a,ref:e})});br.displayName=gr;var yr="ContextMenuRadioItem",vr=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(fn,{...l,...a,ref:e})});vr.displayName=yr;var Cr="ContextMenuItemIndicator",wr=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(pn,{...l,...a,ref:e})});wr.displayName=Cr;var Nr="ContextMenuSeparator",gt=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(tn,{...l,...a,ref:e})});gt.displayName=Nr;var jr="ContextMenuArrow",Er=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(mn,{...l,...a,ref:e})});Er.displayName=jr;var Sr="ContextMenuSubTrigger",Dr=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(xn,{...l,...a,ref:e})});Dr.displayName=Sr;var Mr="ContextMenuSubContent",Rr=u.forwardRef((i,e)=>{const{__scopeContextMenu:s,...a}=i,l=J(s);return r.jsx(hn,{...l,...a,ref:e,style:{...i.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)"}})});Rr.displayName=Mr;function Se(i){return e=>e.pointerType!=="mouse"?i(e):void 0}var Tr=dt,Pr=ft,Fr=pt,kr=xt,Ar=ht,Lr=gt;function Or(i){const e=se.c(4);let s;e[0]!==i?({...s}=i,e[0]=i,e[1]=s):s=e[1];let a;return e[2]!==s?(a=r.jsx(Tr,{"data-slot":"context-menu",...s}),e[2]=s,e[3]=a):a=e[3],a}function Ir(i){const e=se.c(4);let s;e[0]!==i?({...s}=i,e[0]=i,e[1]=s):s=e[1];let a;return e[2]!==s?(a=r.jsx(Pr,{"data-slot":"context-menu-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function $r(i){const e=se.c(8);let s,a;e[0]!==i?({className:s,...a}=i,e[0]=i,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let l;e[3]!==s?(l=le("notranslate 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",s),e[3]=s,e[4]=l):l=e[4];let m;return e[5]!==a||e[6]!==l?(m=r.jsx(Fr,{children:r.jsx(kr,{"data-slot":"context-menu-content",translate:"no",className:l,...a})}),e[5]=a,e[6]=l,e[7]=m):m=e[7],m}function ue(i){const e=se.c(12);let s,a,l,m;e[0]!==i?({className:s,inset:a,variant:m,...l}=i,e[0]=i,e[1]=s,e[2]=a,e[3]=l,e[4]=m):(s=e[1],a=e[2],l=e[3],m=e[4]);const h=m===void 0?"default":m;let f;e[5]!==s?(f=le("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",s),e[5]=s,e[6]=f):f=e[6];let v;return e[7]!==a||e[8]!==l||e[9]!==f||e[10]!==h?(v=r.jsx(Ar,{"data-slot":"context-menu-item","data-inset":a,"data-variant":h,className:f,...l}),e[7]=a,e[8]=l,e[9]=f,e[10]=h,e[11]=v):v=e[11],v}function st(i){const e=se.c(8);let s,a;e[0]!==i?({className:s,...a}=i,e[0]=i,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let l;e[3]!==s?(l=le("bg-border -mx-1 my-1 h-px",s),e[3]=s,e[4]=l):l=e[4];let m;return e[5]!==a||e[6]!==l?(m=r.jsx(Lr,{"data-slot":"context-menu-separator",className:l,...a}),e[5]=a,e[6]=l,e[7]=m):m=e[7],m}const Kr="#d9a441";function zr(i){const e=se.c(63),{node:s,depth:a,isExpanded:l,isSelected:m,isLoading:h,fileVisual:f,onOpen:v,onSelect:j,onNewFile:d,onNewFolder:x,onCopyPath:g,onCopyRelativePath:F,onRename:Z,onDelete:q}=i,y=h===void 0?!1:h,b=Me(),k=s.kind==="directory",{Icon:A,color:I}=f,S=m&&"bg-accent";let P;e[0]!==S?(P=le("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",S),e[0]=S,e[1]=P):P=e[1];const D=`${a*14+8}px`;let M;e[2]!==D?(M={paddingLeft:D},e[2]=D,e[3]=M):M=e[3];let N;e[4]!==v||e[5]!==j?(N=()=>{j(),v()},e[4]=v,e[5]=j,e[6]=N):N=e[6];let R;e[7]!==A||e[8]!==I||e[9]!==k||e[10]!==l||e[11]!==y?(R=k?r.jsxs(r.Fragment,{children:[y?r.jsx(fe,{size:14,className:"shrink-0 animate-spin text-muted-foreground"}):l?r.jsx(nr,{size:14,className:"shrink-0 text-muted-foreground"}):r.jsx(rr,{size:14,className:"shrink-0 text-muted-foreground"}),r.jsx(vn,{size:16,className:"shrink-0",style:{color:Kr}})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"w-3.5 shrink-0"}),r.jsx(A,{size:16,className:"shrink-0",style:{color:I}})]}),e[7]=A,e[8]=I,e[9]=k,e[10]=l,e[11]=y,e[12]=R):R=e[12];let E;e[13]!==s.name?(E=r.jsx("span",{className:"truncate",children:s.name}),e[13]=s.name,e[14]=E):E=e[14];let T;e[15]!==P||e[16]!==M||e[17]!==N||e[18]!==R||e[19]!==E?(T=r.jsx(Ir,{asChild:!0,children:r.jsxs("button",{type:"button",className:P,style:M,onClick:N,children:[R,E]})}),e[15]=P,e[16]=M,e[17]=N,e[18]=R,e[19]=E,e[20]=T):T=e[20];let Q;e[21]!==b?(Q=b("sandbox.fileTreeRow.newFile"),e[21]=b,e[22]=Q):Q=e[22];let X;e[23]!==d||e[24]!==Q?(X=r.jsx(ue,{onSelect:d,children:Q}),e[23]=d,e[24]=Q,e[25]=X):X=e[25];let Y;e[26]!==b?(Y=b("sandbox.fileTreeRow.newFolder"),e[26]=b,e[27]=Y):Y=e[27];let G;e[28]!==x||e[29]!==Y?(G=r.jsx(ue,{onSelect:x,children:Y}),e[28]=x,e[29]=Y,e[30]=G):G=e[30];let $;e[31]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx(st,{}),e[31]=$):$=e[31];let W;e[32]!==b?(W=b("sandbox.fileTreeRow.copyPath"),e[32]=b,e[33]=W):W=e[33];let K;e[34]!==g||e[35]!==W?(K=r.jsx(ue,{onSelect:g,children:W}),e[34]=g,e[35]=W,e[36]=K):K=e[36];let z;e[37]!==b?(z=b("sandbox.fileTreeRow.copyRelativePath"),e[37]=b,e[38]=z):z=e[38];let B;e[39]!==F||e[40]!==z?(B=r.jsx(ue,{onSelect:F,children:z}),e[39]=F,e[40]=z,e[41]=B):B=e[41];let L;e[42]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(st,{}),e[42]=L):L=e[42];let V;e[43]!==b?(V=b("sandbox.fileTreeRow.rename"),e[43]=b,e[44]=V):V=e[44];let O;e[45]!==Z||e[46]!==V?(O=r.jsx(ue,{onSelect:Z,children:V}),e[45]=Z,e[46]=V,e[47]=O):O=e[47];let U;e[48]!==b?(U=b("sandbox.fileTreeRow.delete"),e[48]=b,e[49]=U):U=e[49];let ee;e[50]!==q||e[51]!==U?(ee=r.jsx(ue,{variant:"destructive",onSelect:q,children:U}),e[50]=q,e[51]=U,e[52]=ee):ee=e[52];let _;e[53]!==X||e[54]!==G||e[55]!==K||e[56]!==B||e[57]!==O||e[58]!==ee?(_=r.jsxs($r,{className:"w-52",children:[X,G,$,K,B,L,O,ee]}),e[53]=X,e[54]=G,e[55]=K,e[56]=B,e[57]=O,e[58]=ee,e[59]=_):_=e[59];let te;return e[60]!==_||e[61]!==T?(te=r.jsxs(Or,{children:[T,_]}),e[60]=_,e[61]=T,e[62]=te):te=e[62],te}yn.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});const at=200,_r=2,Gr=250,it=200;function Br(i,e,s,a){return`/api/${i}/sandbox/${encodeURIComponent(e)}/${encodeURIComponent(s)}/${a}`}function Vr(i){const e=se.c(9),{text:s,query:a}=i;let l,m,h;if(e[0]!==a||e[1]!==s){const{leadingEllipsis:v,segments:j}=An(s,a);l="truncate font-mono text-muted-foreground",m=v&&r.jsx("span",{className:"text-muted-foreground/50",children:"…"}),h=j.map(Ur),e[0]=a,e[1]=s,e[2]=l,e[3]=m,e[4]=h}else l=e[2],m=e[3],h=e[4];let f;return e[5]!==l||e[6]!==m||e[7]!==h?(f=r.jsxs("span",{className:l,children:[m,h]}),e[5]=l,e[6]=m,e[7]=h,e[8]=f):f=e[8],f}function Ur(i,e){return i.match?r.jsx("span",{className:"rounded-[2px] bg-primary/20 text-foreground",children:i.text},e):r.jsx("span",{children:i.text},e)}function Pa({orgSlug:i,virtualMcpId:e,branch:s,openPath:a}){const[l,m]=u.useState({files:[],directories:[],truncated:!1}),{files:h,directories:f}=l,[v,j]=u.useState(new Set),[d,x]=u.useState(null),[g,F]=u.useState(null),[Z,q]=u.useState([]),[y,b]=u.useState(""),[k,A]=u.useState(null),[I,S]=u.useState(null),[P,D]=u.useState(!1),[M,N]=u.useState(!1),[R,E]=u.useState(!1),[T,Q]=u.useState(!1),[,X]=u.useState(new Set),[Y,G]=u.useState(new Set),$=u.useRef(0),W=u.useRef(null),K=u.useRef(new Set),z=u.useRef(new Map),B=u.useRef(null),L=u.useRef(0),V=u.useRef(null),O=u.useRef(null),U=u.useRef(null);function ee(t){X(n=>{const o=typeof t=="function"?t(n):t;return K.current=o,o})}const[_,te]=u.useState(new Map),Re=u.useRef(null),[ae,he]=u.useState(null),{sendMessage:bt}=Sn(),{openSidePanel:yt}=Dn(),ge=gn(),[H,oe]=u.useState(null),[Te,Pe]=u.useState(null),[be,ye]=u.useState(!1);async function ie(t,n){const o=await fetch(Br(i,e,s,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!o.ok){const c=await o.json().catch(()=>({}));throw new Error(c.error??`Request failed (${o.status})`)}return o.json()}async function ve(){ge.invalidateQueries({queryKey:rt(i,e,s)})}function _e(t,n,o){navigator.clipboard.writeText(o).then(()=>ne.success(t("sandbox.fileExplorer.textCopied",{label:n})),()=>ne.error(t("sandbox.fileExplorer.failedToCopyText",{label:n.toLowerCase()})))}function vt(t){const n=zn(t);if(!n)return;const o=`${i}/${e}/${s}`;ge.setQueryData(Ze.decofile(o),c=>{if(!c)return c;const{[n]:p,...C}=c;return C}),ge.invalidateQueries({queryKey:Ze.liveMeta(i,e,s)})}function Ct(t){const n=t.kind==="file"?[t.path]:h.filter(o=>o.startsWith(".deco/blocks/")).map(o=>we(o)).filter(o=>o===t.path||o.startsWith(`${t.path}/`));for(const o of n)vt(o)}function wt(t){const n=we(t);return Z.filter(o=>{if(o!==n&&!o.startsWith(`${n}/`))return!1;const c=_.get(o);return!!(c?.loaded&&c.editorValue!==c.savedContent)})}function Ge(t){q(n=>n.map(o=>t(o)).filter(o=>o!==null)),x(n=>n&&t(n)),te(n=>{const o=new Map;for(const[c,p]of n){const C=t(c);C&&o.set(C,p)}return o}),F(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 Nt(t){const n=we(t);F(o=>o&&(o.path===n||o.path.startsWith(`${n}/`)?null:o)),Ge(o=>o===n||o.startsWith(`${n}/`)?null:o)}async function jt(t,n){if(!H)return;const o=Ee(H.parentDir,n);if(Ke(o,h,f))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("write",{path:re(o),content:""}),await pe(),await ve(),oe(null),me(o)}async function Et(t,n){if(!H)return;const o=Ee(H.parentDir,n);if(Ke(o,h,f))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));const c=re(o);await ie("mkdir",{path:c}),m(p=>({...p,directories:p.directories.includes(c)?p.directories:[...p.directories,c]})),await pe(),await ve(),oe(null),j(p=>{const C=new Set(p);for(const ce of Ie(o))C.add(ce);return C.add(o),C}),F({name:n,path:o,kind:"directory",children:[]})}async function St(t,n){if(!H)return;const o=H.node.path,c=Ne(o),p=Ee(c,n);if(p===o){oe(null);return}if(Ke(p,h,f))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("rename",{from:re(o),to:re(p)}),Ge(C=>C===o?p:C.startsWith(`${o}/`)?Ee(p,C.slice(o.length+1)):C),await pe(),await ve(),oe(null)}async function Dt(t,n){ye(!0);try{await ie("unlink",{path:re(n.path),recursive:n.kind==="directory"}),Ct(n),Nt(n.path),await pe(),await ve(),Pe(null),ne.success(t("sandbox.fileExplorer.fileDeleted",{name:n.name}))}catch(o){ne.error(o instanceof Error?o.message:t("sandbox.fileExplorer.deleteFailed"))}finally{ye(!1)}}async function Mt(t,n){const o=On(n);if(o){ne.error(o);return}ye(!0);try{H?.mode==="new-file"?(await jt(t,n),ne.success(t("sandbox.fileExplorer.fileCreated",{name:n}))):H?.mode==="new-folder"?(await Et(t,n),ne.success(t("sandbox.fileExplorer.folderCreated",{name:n}))):H?.mode==="rename"&&(await St(t,n),ne.success(t("sandbox.fileExplorer.renamedTo",{name:n})))}catch(c){ne.error(c instanceof Error?c.message:t("sandbox.fileExplorer.operationFailed"))}finally{ye(!1)}}const Be=u.useRef(!1);Be.current||(Be.current=!0,W.current=pe());const[Rt,Tt]=u.useState(null),w=Me();if(a&&a!==Rt){Tt(a);const t=a;queueMicrotask(()=>{Mn(t)&&me(t)})}async function Fe(t){const n=await ie("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Ve(t,n,o){if(o!==$.current)return!1;let c=!1;return m(p=>{const C=n?_n(p.files,p.directories,t,p.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return c=!!C.truncated,{files:C.files,directories:C.directories,truncated:c}}),c&&ne.warning(w("sandbox.fileExplorer.fileListTruncated")),c}async function Pt(t){const n=z.current.get(t);if(n)return n;const o=$.current,c=(async()=>{const p=await Fe({pattern:"**/*",path:re(t),limit:Ae}),C=Ve(p,!0,o);return!C&&o===$.current&&ee(ce=>{const Ce=new Set(ce);return Ce.add(t),Ce}),C})();z.current.set(t,c);try{return await c}finally{z.current.delete(t)}}async function Ue(t){if(!$e(t,K.current))return!1;G(n=>new Set(n).add(t));try{return await Pt(t)}finally{G(n=>{const o=new Set(n);return o.delete(t),o})}}async function Ft(t,n){const o=new Set(K.current);for(const c of Ie(n)){if(!$e(c,o))continue;if(await Ue(c))throw new Error(t("sandbox.fileExplorer.folderListingTruncated"));o.add(c)}}async function pe(){const t=++$.current;V.current=null,O.current=null,z.current.clear(),E(!0),ee(new Set),j(new Set),G(new Set);try{const n=await Fe({pattern:"**/*",limit:Ae,maxDepth:Rn});Ve(n,!1,t),Q(!0)}catch{T&&ne.error(w("sandbox.fileExplorer.failedToRefreshFileTree"))}finally{E(!1)}}async function He(t){if(!_.get(t)?.loaded){te(o=>{const c=new Map(o);return c.set(t,{savedContent:"",editorValue:"",loaded:!1}),c});try{const o=await ie("read",{path:re(t),full:!0}),c=Ln(o.content??"");te(p=>{const C=new Map(p);return C.set(t,{savedContent:c,editorValue:c,loaded:!0}),C})}catch{}}}function kt(){L.current++,A(null),S(null),D(!1),N(!1)}async function At(){const t=$.current,n=V.current;if(n&&n.generation===t)return n.files;const o=O.current;if(o&&o.generation===t)return o.promise;const c=(async()=>{const p=await Fe({pattern:"**/*",limit:Ae});return $.current===t&&(V.current={generation:t,files:p.files}),p.files})();O.current={generation:t,promise:c};try{return await c}finally{O.current?.generation===t&&(O.current=null)}}async function Lt(t,n){try{const o=await At();if(n!==L.current)return;A($n(o,t,it))}catch{if(n!==L.current)return;A([])}}async function Ot(t,n){D(!0);try{const o=await ie("grep",{pattern:t,output_mode:"content",ignore_case:!0,fixed_strings:!0,limit:at});if(n!==L.current)return;S(Kn(o.results??"")),N((o.matchCount??0)>=at)}catch{if(n!==L.current)return;S([]),N(!1)}finally{n===L.current&&D(!1)}}function It(t){const n=t.trim(),o=++L.current;Lt(n,o),n.length<_r?(S(null),D(!1),N(!1)):Ot(n,o)}function $t(t){if(b(t),B.current&&clearTimeout(B.current),!t.trim()){kt();return}B.current=setTimeout(()=>{It(t)},Gr)}function qe(t){const n=U.current;if(!n||n.path!==d)return;U.current=null;const o=Math.max(1,n.line);t.revealLineInCenter(o),t.setPosition({lineNumber:o,column:1}),t.focus()}function Kt(t){U.current={path:t.path,line:t.line};const n=d===t.path&&_.get(t.path)?.loaded;me(t.path),n&&Re.current&&qe(Re.current)}async function zt(t,n){try{await ie("write",{path:re(t),content:n}),je("file saved via sandbox /write",{path:t}),ge.invalidateQueries({queryKey:rt(i,e,s)});try{const o=await In(i,e,s);je("git status after save",o)}catch(o){je("git status after save failed",{path:t,error:o instanceof Error?o.message:String(o)})}te(o=>{const c=new Map(o),p=c.get(t);return p&&c.set(t,{...p,savedContent:n}),c})}catch(o){je("file save failed",{path:t,error:o instanceof Error?o.message:String(o)})}}function _t(t){x(t),F({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),he(null),Z.includes(t)||q(n=>[...n,t]),He(t)}function Gt(t){q(n=>{const o=n.filter(c=>c!==t);return d===t&&x(o[o.length-1]??null),o}),te(n=>{const o=new Map(n);return o.delete(t),o})}function We(t){j(n=>{const o=new Set(n);return o.has(t)?o.delete(t):o.add(t),o})}async function Bt(t){if($e(t,K.current))try{if(await Ue(t))return}catch(n){ne.error(n instanceof Error?n.message:w("sandbox.fileExplorer.failedToLoadFolder"));return}We(t)}async function Vt(t,n){if(n){We(t);return}await Bt(t)}async function Ut(t){await W.current,await Ft(w,t);const n=Ie(t);j(o=>{const c=new Set(o);for(const p of n)c.add(p);return c}),_t(t)}function me(t){Ut(t).catch(n=>{ne.error(n instanceof Error?n.message:w("sandbox.fileExplorer.failedToOpenFile"))})}function Ht(){return g?.kind==="directory"?g.path:g?.kind==="file"?Ne(g.path):d?Ne(d):"/"}function Qe(t){const n=Ht();oe({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const qt=Tn(h,f),Xe=Pn(qt,v),ke=k?.length??0,Ye=Fn(I??[]),Je=I?.length??0,de=d?_.get(d):null,Wt=de?.loaded&&de.editorValue!==de.savedContent,Qt=Te?wt(Te.path):[],Xt=(t,n)=>{Re.current=t,qe(t),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!d)return;const o=t.getValue();await zt(d,o)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const o=t.getSelection(),c=t.getModel();if(!o||!c||!d)return;const p=c.getValueInRange(o);he({filePath:d,lineStart:o.startLineNumber,lineEnd:o.endLineNumber,selectedCode:p})})};function Yt(t){if(!ae)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${ae.filePath}\``,`**Lines:** ${ae.lineStart}–${ae.lineEnd}`];if(ae.selectedCode){const o=Oe(ae.filePath),c=ae.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+o,c,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),yt("chat"),bt({parts:[{type:"text",text:n.join(`
|
|
2
|
-
`)}]}),he(null)}return R&&!T?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(fe,{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(Cn,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),r.jsx("input",{type:"text",value:y,onChange:t=>$t(t.target.value),placeholder:w("sandbox.fileExplorer.searchFilesPlaceholder"),"aria-label":w("sandbox.fileExplorer.searchFilesLabel"),className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus:ring-1 focus:ring-ring"})]}),r.jsxs(et,{children:[r.jsx(tt,{asChild:!0,children:r.jsx(De,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":w("sandbox.fileExplorer.newFileLabel"),onClick:()=>Qe("new-file"),children:r.jsx(wn,{size:14})})}),r.jsx(nt,{side:"bottom",children:w("sandbox.fileExplorer.newFile")})]}),r.jsxs(et,{children:[r.jsx(tt,{asChild:!0,children:r.jsx(De,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":w("sandbox.fileExplorer.newFolderLabel"),onClick:()=>Qe("new-folder"),children:r.jsx(Nn,{size:14})})}),r.jsx(nt,{side:"bottom",children:w("sandbox.fileExplorer.newFolder")})]})]}),r.jsx(En,{className:"flex-1",children:r.jsxs("div",{className:"py-1",children:[!y&&Xe.map(t=>{const{node:n,depth:o}=t,c=n.kind==="directory",p=v.has(n.path),C=g?.path===n.path,ce=kn(n.path,n.kind),Ce=c&&Y.has(n.path);return r.jsx(zr,{node:n,depth:o,isExpanded:p,isSelected:C,isLoading:Ce,fileVisual:Le(n.name),onSelect:()=>F(n),onOpen:()=>{c?Vt(n.path,p):me(n.path)},onNewFile:()=>oe({mode:"new-file",node:n,parentDir:ce}),onNewFolder:()=>oe({mode:"new-folder",node:n,parentDir:ce}),onCopyPath:()=>_e(w,"Path",we(n.path)),onCopyRelativePath:()=>_e(w,"Relative path",re(n.path)),onRename:()=>oe({mode:"rename",node:n,parentDir:ce}),onDelete:()=>Pe(n)},n.path)}),!y&&T&&Xe.length===0&&r.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:w("sandbox.fileExplorer.noFilesFound")}),y&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[r.jsx("span",{children:w("sandbox.fileExplorer.files")}),ke>0&&r.jsxs("span",{className:"normal-case tracking-normal text-muted-foreground/70",children:[ke,ke>=it?"+":""]})]}),k!==null&&k.length===0&&r.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:w("sandbox.fileExplorer.noFileNamesMatch")}),k?.map(t=>{const n=t.split("/").pop()??t,o=Ne(t),{Icon:c,color:p}=Le(n),C=d===t;return r.jsxs("button",{type:"button",onClick:()=>me(t),title:t,className:le("flex w-full items-center gap-1.5 px-3 py-1 text-left text-xs hover:bg-accent",C&&"bg-accent"),children:[r.jsx(c,{size:14,className:le("shrink-0",p)}),r.jsx("span",{className:"max-w-40 shrink-0 truncate",children:n}),o!=="/"&&r.jsx("span",{className:"truncate text-muted-foreground/60",children:o})]},t)})]}),y&&r.jsxs("div",{className:"mt-1 border-t pt-1",children:[r.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[r.jsx("span",{children:w("sandbox.fileExplorer.inFiles")}),Je>0&&r.jsxs("span",{className:"text-muted-foreground/70 normal-case tracking-normal",children:[Je,M?"+":""]}),P&&r.jsx(fe,{size:10,className:"animate-spin"})]}),!P&&I!==null&&Ye.length===0&&r.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:w("sandbox.fileExplorer.noMatchesInFileContents")}),Ye.map(t=>{const n=t.path.split("/").pop()??t.path,{Icon:o,color:c}=Le(n);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 text-xs text-muted-foreground",children:[r.jsx(o,{size:14,className:le("shrink-0",c)}),r.jsx("span",{className:"truncate",children:n}),r.jsx("span",{className:"text-muted-foreground/60",children:t.matches.length})]}),t.matches.map(p=>r.jsxs("button",{type:"button",onClick:()=>Kt(p),title:`${t.path}:${p.line}`,className:"flex w-full items-baseline gap-2 pl-8 pr-3 py-0.5 text-left text-xs hover:bg-accent",children:[r.jsx("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:p.line}),r.jsx(Vr,{text:p.text,query:y})]},`${t.path}:${p.line}`))]},t.path)})]})]})})]}),r.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[Z.length>0&&r.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:Z.map(t=>{const n=_.get(t),o=n?.loaded&&n.editorValue!==n.savedContent,c=d===t,p=t.split("/").pop()??t;return r.jsxs("div",{className:le("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",c?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{x(t),He(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":c,children:[r.jsx("span",{className:"truncate max-w-32",children:p}),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:C=>{C.stopPropagation(),Gt(t)},children:r.jsx(jn,{size:12})})]},t)})}),ae&&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()&&Yt(o.value)},children:[r.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:w("sandbox.fileExplorer.askTheAiPlaceholder"),className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&he(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:w("sandbox.fileExplorer.send"),children:r.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[r.jsx("title",{children:w("sandbox.fileExplorer.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&&de?.loaded?r.jsx(bn,{language:Oe(d),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:de.editorValue,path:d,onChange:t=>{const n=d;n&&te(o=>{const c=new Map(o),p=c.get(n);return p&&c.set(n,{...p,editorValue:t??""}),c})},onMount:Xt,loading:r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(fe,{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&&!de?.loaded?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(fe,{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:w("sandbox.fileExplorer.selectFileToEdit")})}),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:[w(Wt?"sandbox.fileExplorer.modified":"sandbox.fileExplorer.saved")," ","· ",Oe(d)]})]})]}),r.jsx(sr,{open:H!==null,mode:H?.mode??"new-file",initialName:H?.mode==="rename"?H.node.name:"",parentLabel:H&&H.mode!=="rename"?H.parentDir==="/"?"/":re(H.parentDir):void 0,isPending:be,onSubmit:t=>Mt(w,t),onOpenChange:t=>{!t&&!be&&oe(null)}}),r.jsx(ar,{deleteTarget:Te,deleteDirtyPaths:Qt,fsActionPending:be,onOpenChange:t=>{!t&&!be&&Pe(null)},onConfirm:t=>{Dt(w,t)}})]})}export{Pa as FileExplorer};
|