decocms 4.429.9 → 4.429.10
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-D6fR9-Kh.js → AlertCircle-DKmCApDa.js} +1 -1
- package/dist/client/assets/{AreaChart-D3g6jK1A.js → AreaChart-DIXuz0Cd.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DiOkGCI1.js → ArrowLeft-BwFqyUG8.js} +1 -1
- package/dist/client/assets/{ArrowRight-DNObFWEA.js → ArrowRight-CHV05UUB.js} +1 -1
- package/dist/client/assets/{ArrowUp-Qm1_vfBa.js → ArrowUp-BJY8NUma.js} +1 -1
- package/dist/client/assets/{CartesianChart-CIQ2bcnU.js → CartesianChart-BuoW_-QK.js} +1 -1
- package/dist/client/assets/{Check-p5ZrYqb6.js → Check-DNTKbOF1.js} +1 -1
- package/dist/client/assets/{CheckCircle-DjVa5rwp.js → CheckCircle-Dk8xW2dQ.js} +1 -1
- package/dist/client/assets/{ChevronUp-CQ_Ndmgv.js → ChevronUp-DGldI0Ph.js} +1 -1
- package/dist/client/assets/{Copy01-no2ZZAoV.js → Copy01-6fj6p2dr.js} +1 -1
- package/dist/client/assets/{CreditCard01-BPdTH-LK.js → CreditCard01-BIdq_aTI.js} +1 -1
- package/dist/client/assets/{DotsVertical-FLvQTkZX.js → DotsVertical-CgKNtAHX.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-Bf9yjefH.js → ErrorBarContext-BBG_EAjz.js} +1 -1
- package/dist/client/assets/{Image01-Bjku8bco.js → Image01-0p0qVrVu.js} +1 -1
- package/dist/client/assets/{Key01-D548PT0E.js → Key01-D7BOKCsv.js} +1 -1
- package/dist/client/assets/{Line-BSHtBz42.js → Line-CJ6HzoSY.js} +1 -1
- package/dist/client/assets/{Link01-DX6Qdft3.js → Link01-BY6r9e0W.js} +1 -1
- package/dist/client/assets/{LinkExternal01-o2rJBAh0.js → LinkExternal01-7OpzTzCD.js} +1 -1
- package/dist/client/assets/{Monitor01-De6BgGjU.js → Monitor01-Wlo-v8rP.js} +1 -1
- package/dist/client/assets/{Palette-CTKkYfpz.js → Palette-DZVSqT20.js} +1 -1
- package/dist/client/assets/{Plus-7DucV5vT.js → Plus-BZ-9hfZe.js} +1 -1
- package/dist/client/assets/{SearchMd-QN2wlvPm.js → SearchMd-CtjLEzGO.js} +1 -1
- package/dist/client/assets/{Sector-6zmPiR9T.js → Sector-DG2ZMYxc.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-D7jpE92Z.js → ShoppingBag01-DznHZPA0.js} +1 -1
- package/dist/client/assets/{Sun-CF1vsofy.js → Sun-eXH36H9e.js} +1 -1
- package/dist/client/assets/{Tool01-7fCUFk4M.js → Tool01-Dk2ye-LU.js} +1 -1
- package/dist/client/assets/{Trash01-CiA3gHsE.js → Trash01-Gu3_9b_o.js} +1 -1
- package/dist/client/assets/{Upload01-aKM-oPPY.js → Upload01-uetj4iXc.js} +1 -1
- package/dist/client/assets/{User01-vQ2joBqZ.js → User01-D1mABHDT.js} +1 -1
- package/dist/client/assets/{UserSquare-D6OSjogb.js → UserSquare-lb7I00eF.js} +1 -1
- package/dist/client/assets/{Users01-C3PXAlQO.js → Users01-CobN2IHd.js} +1 -1
- package/dist/client/assets/{X-DCDQ3QOD.js → X-BdLoi6uz.js} +1 -1
- package/dist/client/assets/{XAxis-QiWeOkaO.js → XAxis-BgPA12lx.js} +1 -1
- package/dist/client/assets/{XClose-DPKustWd.js → XClose-C5QcJ6D0.js} +1 -1
- package/dist/client/assets/{ZoomOut-Cx0_RhkV.js → ZoomOut-BWkCTBCz.js} +1 -1
- package/dist/client/assets/{access-gate-da5dSFPS.js → access-gate-Cey1OqXz.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DZDyC_s4.js → add-connection-dialog-1ztWzBZ8.js} +1 -1
- package/dist/client/assets/{agent-analytics-FvD3tKln.js → agent-analytics-Gt7o_wzT.js} +1 -1
- package/dist/client/assets/agent-app-Dbe-7vgH.js +1 -0
- package/dist/client/assets/{agent-assets-BOqP65qC.js → agent-assets-CuDfZttC.js} +1 -1
- package/dist/client/assets/{agent-automation-DGwvVKUF.js → agent-automation-CoOBVhBN.js} +1 -1
- package/dist/client/assets/{agent-automations-DrLCjBc3.js → agent-automations-CO-xugvW.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-B6lH7pxN.js → agent-connect-sources-Ca8AD8mq.js} +1 -1
- package/dist/client/assets/agent-deck-CSLkMaif.js +1 -0
- package/dist/client/assets/{agent-e2e-CN41euIX.js → agent-e2e-BK7Euu9m.js} +1 -1
- package/dist/client/assets/{agent-experiments-CI9HL_qf.js → agent-experiments-nyAADWuK.js} +1 -1
- package/dist/client/assets/{agent-file-DG6THDTg.js → agent-file-D-xcqFZI.js} +1 -1
- package/dist/client/assets/{agent-git-BEB-ZRI3.js → agent-git-BfL9IA4Y.js} +1 -1
- package/dist/client/assets/{agent-hosting-B7gL6NW3.js → agent-hosting-Dut4cUJc.js} +1 -1
- package/dist/client/assets/{agent-icon-CU0i04so.js → agent-icon-vRJX06Pc.js} +1 -1
- package/dist/client/assets/agent-library-ZvK_jjQF.js +1 -0
- package/dist/client/assets/agent-library-file-54TS4_RN.js +1 -0
- package/dist/client/assets/{agent-monitor-CvE7W-kh.js → agent-monitor-CviCJRUD.js} +1 -1
- package/dist/client/assets/{agent-overview-ymvObxGX.js → agent-overview-9muBKyf7.js} +1 -1
- package/dist/client/assets/agent-settings-BAsOnUPJ.js +1 -0
- package/dist/client/assets/{agent-site-editor-VM0cGdql.js → agent-site-editor-DRo4ld7V.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-BdzLMsuB.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-C1bhzwk0.js → agent-site-editor-content-CqksOsD1.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-CMRwVo8Z.js → agent-site-editor-preview-DdNev6__.js} +3 -3
- package/dist/client/assets/agent-view-CLQ9a3Xs.js +1 -0
- package/dist/client/assets/{agent-view-guard-ONCvFPsE.js → agent-view-guard-CMm4aT4X.js} +1 -1
- package/dist/client/assets/{agents-list-Ccm2cM2d.js → agents-list-C2WRI5B_.js} +1 -1
- package/dist/client/assets/{ai-providers-Dg72o8bX.js → ai-providers-DUEvqOGo.js} +1 -1
- package/dist/client/assets/{alert-dialog-D2qUdh2f.js → alert-dialog-D1CSBuVt.js} +1 -1
- package/dist/client/assets/{alert-zg70ln5j.js → alert-m4enA-72.js} +1 -1
- package/dist/client/assets/{analytics-sections-F1MA5NJa.js → analytics-sections-DWzLfe6K.js} +1 -1
- package/dist/client/assets/{api-keys-Ddl2zKRP.js → api-keys-D3W3-bn5.js} +1 -1
- package/dist/client/assets/api-keys-DXx_tj2n.js +1 -0
- package/dist/client/assets/{app-editor-DhlDIvP_.js → app-editor-BrO4LSqn.js} +1 -1
- package/dist/client/assets/{asset-utils-DdnFk1ID.js → asset-utils-Cs-9a-z2.js} +1 -1
- package/dist/client/assets/{auth-catchall-Dvxy-XoT.js → auth-catchall-CCf0yXyK.js} +1 -1
- package/dist/client/assets/{auth-entry-BJqMofGi.js → auth-entry-DcyQGSPS.js} +1 -1
- package/dist/client/assets/{auth-BME_-CgD.js → auth-oZFMRz6f.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D8xVEYCp.js → auth-split-layout-BL2AdBXg.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BoehZcx9.js → authenticate-and-persist-oauth-Dz4Ev2mn.js} +1 -1
- package/dist/client/assets/{automation-list-row-DdsKAMX_.js → automation-list-row-vzvjcxcS.js} +1 -1
- package/dist/client/assets/{automation-runs-ByAFFz8U.js → automation-runs-Cj0X1wWP.js} +1 -1
- package/dist/client/assets/{automations-DgDBnY3i.js → automations-x6-pockc.js} +1 -1
- package/dist/client/assets/{autosend-CTahflnC.js → autosend-BR-AxRqX.js} +1 -1
- package/dist/client/assets/{avatar-BrhFB-vr.js → avatar-CVyfIjHq.js} +1 -1
- package/dist/client/assets/{badge-B9v8v8eG.js → badge-DKTieZTi.js} +1 -1
- package/dist/client/assets/{block-document-Bkth-ApC.js → block-document-RyWbjZfD.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BwDAcqvZ.js → blocks-preview-workspace-context-BGHIo01Y.js} +1 -1
- package/dist/client/assets/{buckets-J5lW_PXM.js → buckets-BRECsjIs.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C4UobK7K.js → build-improve-prompt-doc-CGhfAuK4.js} +1 -1
- package/dist/client/assets/{calendar-DTTqJkwq.js → calendar-CxuTxwoq.js} +1 -1
- package/dist/client/assets/{capability-load-error-tbPsNSsn.js → capability-load-error-N5DqAlNc.js} +1 -1
- package/dist/client/assets/{category-editor-CzagSeDk.js → category-editor-1NaveyUf.js} +1 -1
- package/dist/client/assets/{chart-C3Z9gE6e.js → chart-DFFsotOE.js} +1 -1
- package/dist/client/assets/{chat-context-D1RQ0hn6.js → chat-context-CHMvG291.js} +1 -1
- package/dist/client/assets/{chat-draft-Rop4w833.js → chat-draft-2zID_cRw.js} +1 -1
- package/dist/client/assets/{checkbox-CdMaRU6A.js → checkbox-CijMXhyl.js} +1 -1
- package/dist/client/assets/{choose-editor-CFBBTZj5.js → choose-editor-BIgunT0x.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-DbTpDsdS.js → claim-phase-copy-Cf-QyyNw.js} +1 -1
- package/dist/client/assets/{cli-auth-success-OgyK1vp5.js → cli-auth-success-Dyfd46XD.js} +1 -1
- package/dist/client/assets/{client-icons-CjK-B4SQ.js → client-icons-C_FQZmqO.js} +1 -1
- package/dist/client/assets/{collapsible-DCazOdpt.js → collapsible-CmaYMPSs.js} +1 -1
- package/dist/client/assets/{collection-detail-BNiGcnH_.js → collection-detail-CvQdogjL.js} +1 -1
- package/dist/client/assets/{collection-display-button-B8SvlYyL.js → collection-display-button-CJaFMQ5Q.js} +1 -1
- package/dist/client/assets/{collection-search-BF8lJCHd.js → collection-search-VYsS9TLc.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CuE_VJ7G.js → collection-table-wrapper--hFtmZm7.js} +1 -1
- package/dist/client/assets/{collection-tabs-D3itJSz3.js → collection-tabs-AcGOMqBb.js} +1 -1
- package/dist/client/assets/{combobox-Bw5wYR-0.js → combobox-uLE3dkRC.js} +1 -1
- package/dist/client/assets/{command-B--xK9e7.js → command-B3-BMEIX.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C-Jd6iHr.js → companion-mcps-section-BZIKI587.js} +1 -1
- package/dist/client/assets/{config-DQXaNT9g.js → config-DQZquT9x.js} +1 -1
- package/dist/client/assets/{connect-B5I2xOR7.js → connect-Cf7v5Bzx.js} +1 -1
- package/dist/client/assets/{connect-layout-DzGD_Odc.js → connect-layout-BhHjDcvb.js} +1 -1
- package/dist/client/assets/{connection--ml1d00t.js → connection-Bxp8CJIF.js} +1 -1
- package/dist/client/assets/{connection-card-wiltHPZ1.js → connection-card-GKtXOpG9.js} +1 -1
- package/dist/client/assets/{connection-detail-pIzH_4h3.js → connection-detail-DUhnrG9K.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-goLtSvt6.js → connection-form-helpers-my3nU4YI.js} +1 -1
- package/dist/client/assets/{connections-JUHnLgfe.js → connections-B0H64xaE.js} +1 -1
- package/dist/client/assets/{context-PWYHxIhk.js → context-DhI4bt3K.js} +1 -1
- package/dist/client/assets/{context-menu-CZLB6_c8.js → context-menu-D8wMMh_Q.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CO0wJH61.js → create-organization-dialog-CUp0pkrl.js} +1 -1
- package/dist/client/assets/{daily-pulse-BaFwFPPZ.js → daily-pulse-Cn1ARmzt.js} +1 -1
- package/dist/client/assets/{decopilot-BSgekotY.js → decopilot-zV1W4LOx.js} +1 -1
- package/dist/client/assets/{dialog-DQNNu_f1.js → dialog-Dlbcts3k.js} +1 -1
- package/dist/client/assets/{discover-BfrAOTVO.js → discover-DK_xCp7V.js} +1 -1
- package/dist/client/assets/{domain-settings-BEcdmXJZ.js → domain-settings-wtMFvdQc.js} +1 -1
- package/dist/client/assets/{download-app-dialog-CD7kK8MH.js → download-app-dialog-eZatHcib.js} +1 -1
- package/dist/client/assets/{drawer-BzY4tdXy.js → drawer-DspCN2Yn.js} +1 -1
- package/dist/client/assets/{editor-CJ05XGg1.js → editor-AvxByRxT.js} +1 -1
- package/dist/client/assets/{empty-state-CtEq3xuD.js → empty-state-CZAXET6T.js} +1 -1
- package/dist/client/assets/{empty-state-CadUnitN.js → empty-state-DuvEAg1G.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BhLqPUG4.js → extract-connection-data-Du6rlDFh.js} +1 -1
- package/dist/client/assets/{feature-gate-DNLsHU30.js → feature-gate-DDoeGDb8.js} +1 -1
- package/dist/client/assets/{feature-paywall-D0PH-I-M.js → feature-paywall-CCumYX5V.js} +1 -1
- package/dist/client/assets/{file-explorer-DLGs4T_f.js → file-explorer-CnDhlMyr.js} +1 -1
- package/dist/client/assets/{file-preview-CigrKhHQ.js → file-preview-DNltN574.js} +1 -1
- package/dist/client/assets/{file-share-button-CIGySu_4.js → file-share-button-C7miXF89.js} +1 -1
- package/dist/client/assets/{file-type-icon-D4fy_gBA.js → file-type-icon-BYKr6xB1.js} +1 -1
- package/dist/client/assets/flat-project-DCpSTtn-.js +1 -0
- package/dist/client/assets/{folder-icon-BesYWk0I.js → folder-icon-jYk3JQng.js} +1 -1
- package/dist/client/assets/{form-PPys9GfZ.js → form-iuvY0qFv.js} +1 -1
- package/dist/client/assets/{gateway-client-B_5Pnywu.js → gateway-client-C_0iBipI.js} +1 -1
- package/dist/client/assets/{general-CylsKp5I.js → general-Be31QF3E.js} +1 -1
- package/dist/client/assets/{home-BaaBv835.js → home-DN7k7NzJ.js} +1 -1
- package/dist/client/assets/{icon-button-BQIN0baN.js → icon-button-CAsMR7wt.js} +1 -1
- package/dist/client/assets/{index-CqBgee54.js → index-4xsRRDQ0.js} +1 -1
- package/dist/client/assets/{index-DZBQ5pnK.js → index-BHW38fGm.js} +2 -2
- package/dist/client/assets/{index-DR9xwPLz.js → index-BonzOgjL.js} +1 -1
- package/dist/client/assets/{index-DsDNebU_.js → index-CIf44JW3.js} +1 -1
- package/dist/client/assets/{index-Dzu1eSUT.js → index-CckhdqK3.js} +1 -1
- package/dist/client/assets/{index-CZzS4-kW.js → index-ChE2ezk7.js} +1 -1
- package/dist/client/assets/{index-DYpm1LTw.js → index-Cpvm6arG.js} +1 -1
- package/dist/client/assets/{index-5C5Y6fog.js → index-CtqgTxfG.js} +1 -1
- package/dist/client/assets/{index-CKELzPxK.js → index-DABxIqAx.js} +1 -1
- package/dist/client/assets/{index-DHuw79Pq.js → index-DE0-9ECf.js} +3 -3
- package/dist/client/assets/{index-D8-n4neo.js → index-Du_VeRVE.js} +1 -1
- package/dist/client/assets/{index-D94jgO7k.js → index-Dv3h3cqm.js} +1 -1
- package/dist/client/assets/{index-C6j8vkbx.js → index-EKW9WLpv.js} +1 -1
- package/dist/client/assets/{index-redirect-BnyH-Hi_.js → index-redirect-DrJRfytP.js} +1 -1
- package/dist/client/assets/{index-DYebWDZA.js → index-t_eDpwK9.js} +1 -1
- package/dist/client/assets/{index-O3cKdi88.js → index-vOT5DJhb.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Db8Je-eI.js → infiniteQueryObserver-C4v_Tvdc.js} +1 -1
- package/dist/client/assets/{infra-billing-CO97-my3.js → infra-billing-VbIz9yIS.js} +1 -1
- package/dist/client/assets/{input-BiNRWxFp.js → input-Bgau-d45.js} +1 -1
- package/dist/client/assets/{input-D7Pveqzt.js → input-DPbtX44w.js} +1 -1
- package/dist/client/assets/{input-5TfImLgg.js → input-Dtm4W-QI.js} +3 -3
- package/dist/client/assets/{integration-icon-Dznni3P6.js → integration-icon-C8GyVZME.js} +1 -1
- package/dist/client/assets/{label-CbGYdCUa.js → label-BHCiWeM9.js} +1 -1
- package/dist/client/assets/{last-preview-page-B66iZ_7L.js → last-preview-page-CZQ-9qtW.js} +1 -1
- package/dist/client/assets/{layout-JghjWMYu.js → layout-V7H1wMvJ.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DwiyiXhB.js → legacy-agents-deep-GOrA2Nmb.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-vYtsnLSf.js → legacy-main-redirect-yNAuK_Xl.js} +1 -1
- package/dist/client/assets/library-CbAjcyVz.js +1 -0
- package/dist/client/assets/{library-tab-BXidRO6s.js → library-tab-D6ZlaAwG.js} +1 -1
- package/dist/client/assets/{login-BHm4mxjj.js → login-ClvQ5CFn.js} +1 -1
- package/dist/client/assets/{markdown-toDOgADF.js → markdown-D2cGXSVI.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Bom1W11v.js → mcp-app-renderer-CG-JWdEV.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DMXsQOs9.js → mcp-oauth-DtCcr-SV.js} +1 -1
- package/dist/client/assets/{members-DiAGMgH5.js → members-CO5ga5kN.js} +1 -1
- package/dist/client/assets/{message-templates-D5rRhch8.js → message-templates-DxEMICkA.js} +1 -1
- package/dist/client/assets/{mini-report-page-DjC3-YlE.js → mini-report-page-PQj3eFhR.js} +1 -1
- package/dist/client/assets/{mock-board-CKJpTOR8.js → mock-board-hewQy5Jn.js} +1 -1
- package/dist/client/assets/{monaco-editor-XLslvLAa.js → monaco-editor-DzZjrazj.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C5wJXWvg.js → monitoring-stats-row-GGwy01IS.js} +1 -1
- package/dist/client/assets/{multi-select-CK1qihl4.js → multi-select-CjR3J1AB.js} +1 -1
- package/dist/client/assets/{mustache-DVPV68lR.js → mustache-DM5IbMl5.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BkEZfgZM.js → new-project-dialog-CNtRe0-Y.js} +1 -1
- package/dist/client/assets/{oauth-callback-DxIQPlFn.js → oauth-callback-B1YQQR4V.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Cux-r-iC.js → oauth-callback-ai-provider-BIoknp12.js} +1 -1
- package/dist/client/assets/{onboarding-D_3hO5Zi.js → onboarding-C4RJxyrL.js} +1 -1
- package/dist/client/assets/{openai-conversation-oM48RqXg.js → openai-conversation-C0Q_JdxR.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BxEtZaho.js → optimistic-project-sidebar-views-CPz7V3PC.js} +1 -1
- package/dist/client/assets/{org-file-open-context-BkAoUQAN.js → org-file-open-context-UWr7N1Z6.js} +1 -1
- package/dist/client/assets/{organization-choice-B23Ys-4G.js → organization-choice-hd0X96eE.js} +1 -1
- package/dist/client/assets/{orgs-Bi6PVtkA.js → orgs-cTxDbxPG.js} +1 -1
- package/dist/client/assets/{page-seo-form-gzaghpQQ.js → page-seo-form-UZBab-aN.js} +1 -1
- package/dist/client/assets/{pair-C-DSqZ6u.js → pair-CZInYVHx.js} +1 -1
- package/dist/client/assets/{plan-ladder-BX8e_J6O.js → plan-ladder-DKLtAA-T.js} +1 -1
- package/dist/client/assets/{popover-DHUcPo1r.js → popover-BSszguOU.js} +1 -1
- package/dist/client/assets/{post-calendar-BuVcXO7I.js → post-calendar-2XlrWH-t.js} +1 -1
- package/dist/client/assets/{post-editor-DRKVpniU.js → post-editor-jcqkk7um.js} +1 -1
- package/dist/client/assets/{preview-content-C2zuZls8.js → preview-content-BTNwFllc.js} +1 -1
- package/dist/client/assets/{preview-dialog-Div-6vzY.js → preview-dialog--VxiYPfE.js} +1 -1
- package/dist/client/assets/{profile-w-U1YUy-.js → profile-BGHQuceX.js} +1 -1
- package/dist/client/assets/{project-app-view-CTkkJXZf.js → project-app-view-Ca7TdLgY.js} +1 -1
- package/dist/client/assets/{project-feed-CIKKDaUv.js → project-feed-Dj2xUGdB.js} +1 -1
- package/dist/client/assets/{project-icon-Dv5T9UXQ.js → project-icon-CEvmcihT.js} +1 -1
- package/dist/client/assets/project-reports-CBenIcsf.js +1 -0
- package/dist/client/assets/project-tasks-CEyu6nsw.js +1 -0
- package/dist/client/assets/{projects-0mPeWaUw.js → projects-DVM1GvN-.js} +1 -1
- package/dist/client/assets/{projects-empty-state-qRbFEP1a.js → projects-empty-state-OJ8FQpgE.js} +1 -1
- package/dist/client/assets/{prompts-FPQYcY8_.js → prompts-B1WNDS5-.js} +1 -1
- package/dist/client/assets/record-editor-BjakPc8B.js +1 -0
- package/dist/client/assets/{redirect-editor-DGJ9lwKX.js → redirect-editor-D8l9UTlG.js} +1 -1
- package/dist/client/assets/reports-CPtD3Fqy.js +1 -0
- package/dist/client/assets/{reports-BmFsfB-t.js → reports-Dlh0FA1v.js} +1 -1
- package/dist/client/assets/{reports-onboarding-6XVICcRr.js → reports-onboarding-C0v_SWM2.js} +1 -1
- package/dist/client/assets/{reports-tab-CKAtnV_W.js → reports-tab-BtxDljzK.js} +2 -2
- package/dist/client/assets/{repositories-Kx63fHV7.js → repositories-BHtWIvsV.js} +1 -1
- package/dist/client/assets/{repository-binding-D2nl3E9m.js → repository-binding-BT7w56g8.js} +1 -1
- package/dist/client/assets/{repository-import-picker-C4UUR7Lt.js → repository-import-picker-BvwCcqd0.js} +1 -1
- package/dist/client/assets/{repository-picker-C9g49n3G.js → repository-picker-WnaJ3OBj.js} +1 -1
- package/dist/client/assets/{require-capability-DGjTQApq.js → require-capability-D0xfatZe.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DH23GR15.js → required-auth-layout-oADKB4ry.js} +1 -1
- package/dist/client/assets/{reset-password-BwSzqw0H.js → reset-password-Dio__1ur.js} +1 -1
- package/dist/client/assets/{resizable-MsT9Iquy.js → resizable-BNj764ip.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-Cx-bOLi-.js → resolve-tab-icon-xbN42Afa.js} +1 -1
- package/dist/client/assets/{review-settings-D9CPsAF9.js → review-settings-LtoHVq4j.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-DfuAHVFX.js → rich-text-link-control-CU6p-_ze.js} +1 -1
- package/dist/client/assets/{roles-DKVk8OJh.js → roles-D2prme-T.js} +1 -1
- package/dist/client/assets/{route-cksgldWz.js → route-BTaie41e.js} +1 -1
- package/dist/client/assets/route-C60qUrLW.js +1 -0
- package/dist/client/assets/route-CxrJTCMU.js +1 -0
- package/dist/client/assets/{runnable-block-editor-oGO4SpDx.js → runnable-block-editor-LWTXtTvm.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DeDlVqJ-.js → sandbox-lifecycle-context-2SHs2v83.js} +1 -1
- package/dist/client/assets/{schema-C5Lr3NgE.js → schema-HLNkH6Wb.js} +1 -1
- package/dist/client/assets/{scroll-area-Bjp7MJ8C.js → scroll-area-DKRRTLu0.js} +1 -1
- package/dist/client/assets/{search-input-_rysHpm7.js → search-input-BHYasbw5.js} +1 -1
- package/dist/client/assets/{search-toggle-D88qbPIv.js → search-toggle-BQKj1zgn.js} +1 -1
- package/dist/client/assets/{secret-picker-5ZvS8PcI.js → secret-picker-RqDX5vq4.js} +1 -1
- package/dist/client/assets/{secrets-BR1Uct_E.js → secrets-uW3Eg9z0.js} +1 -1
- package/dist/client/assets/{sections-editor-EcDLaZRZ.js → sections-editor-BktUgYu2.js} +1 -1
- package/dist/client/assets/{select-Cz-o9PEJ.js → select-D-HKKCDO.js} +1 -1
- package/dist/client/assets/{select-model-BuAbRLcQ.js → select-model-BEjnrAnQ.js} +1 -1
- package/dist/client/assets/{seo-editor-CHNZw1_K.js → seo-editor-ClLbbOJB.js} +1 -1
- package/dist/client/assets/{separator-BkBMsQ_7.js → separator-CzRdsgWL.js} +1 -1
- package/dist/client/assets/{settings-tab-D9bw6k3t.js → settings-tab-DPXMGLLf.js} +1 -1
- package/dist/client/assets/{sheet-DsThkx1E.js → sheet-BUa8giCx.js} +1 -1
- package/dist/client/assets/{shell-layout-DBvOp7at.js → shell-layout-C1uyapYT.js} +1 -1
- package/dist/client/assets/{skills-B_K2qpIo.js → skills-DsfyBgy9.js} +1 -1
- package/dist/client/assets/{sso-DTHpDJVQ.js → sso-vpLekJCG.js} +1 -1
- package/dist/client/assets/{suggestion-BoL4aGbo.js → suggestion--qxJAqqv.js} +1 -1
- package/dist/client/assets/{switch-DcWJRerK.js → switch-Bb9pIsgz.js} +1 -1
- package/dist/client/assets/{synced-repos-CACQuO21.js → synced-repos-DviEZ_Mw.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CtbRVkli.js → tab-icon-glyph-C74gExPD.js} +1 -1
- package/dist/client/assets/{table-wfzNVXjf.js → table-Cfz5hCc5.js} +1 -1
- package/dist/client/assets/{tabs-Cjw7-YIz.js → tabs-ocmvOnqQ.js} +1 -1
- package/dist/client/assets/{task-board-UgijzwOv.js → task-board-CV8L72bN.js} +1 -1
- package/dist/client/assets/{task-route-BJNk9z_I.js → task-route-Ou0nHr59.js} +1 -1
- package/dist/client/assets/{task-status-BTLSYdOf.js → task-status-BfR7W4Fk.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-B_uCO32V.js → taskboard-analytics-k3X2sZNx.js} +1 -1
- package/dist/client/assets/tasks-BU2rWe18.js +1 -0
- package/dist/client/assets/{tasks-D-IkMJYR.js → tasks-BYskW7rM.js} +1 -1
- package/dist/client/assets/{textarea-yG3fP7UK.js → textarea-ah6ZJJWF.js} +1 -1
- package/dist/client/assets/{thread-analytics-BrZzoT4x.js → thread-analytics-BV7N5Ioq.js} +1 -1
- package/dist/client/assets/{thread-intent-D45ZuXub.js → thread-intent-DVeAqXLf.js} +1 -1
- package/dist/client/assets/{thread-route-hhzohhx0.js → thread-route-CyO6ijat.js} +1 -1
- package/dist/client/assets/{thread-route-Cc8Rnkyi.js → thread-route-D8LjpvTD.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-GfOZtMv2.js → thread-sheet-body-BON5_bQt.js} +1 -1
- package/dist/client/assets/{toggle-group-hKLMSDYW.js → toggle-group-DE4I1qS9.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CmvWHMWS.js → toolbar-icon-button-DxlBQUA0.js} +1 -1
- package/dist/client/assets/{tooltip-V0jMCwI1.js → tooltip-PjEixjdK.js} +1 -1
- package/dist/client/assets/{track-ClA9bvTA.js → track-BLVj1ZUT.js} +1 -1
- package/dist/client/assets/{types-Bfx6WemM.js → types-CPdp5CPi.js} +1 -1
- package/dist/client/assets/{usage-stats-8fJ3lLlx.js → usage-stats-Cfj19dMy.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BiezPBdC.js → use-ai-providers-D89dN8IX.js} +1 -1
- package/dist/client/assets/{use-automations-CzJvLh6y.js → use-automations-CeEadf4K.js} +1 -1
- package/dist/client/assets/{use-autosave-C5AE6tVZ.js → use-autosave-CBseprgx.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-Bjv6Kmqp.js → use-chat-layout-state-Do-NwJXn.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Edkf4-6e.js → use-connect-companion-38CXwgKO.js} +1 -1
- package/dist/client/assets/{use-connection-TzIfXScd.js → use-connection-Dv9IwOJe.js} +1 -1
- package/dist/client/assets/{use-copy-yiXmKlwe.js → use-copy-DJcJjSfR.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B8iud2Sc.js → use-create-virtual-mcp-pS0pWpnu.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DEFDZEQ8.js → use-date-fns-locale-BS-G9k3y.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CqmmZdyR.js → use-debounced-autosave-CcAIWC5r.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BeO0DJwg.js → use-debounced-value-BmJwJfAX.js} +1 -1
- package/dist/client/assets/{use-deco-credits-aHYDh6Nu.js → use-deco-credits-DVM8T-vX.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-d7FsiRbY.js → use-decopilot-events-Dz3T4koV.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C6-e1hl2.js → use-delete-connection-BA2uXHip.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D4Aiw9gd.js → use-deployment-admin-eFdraYGL.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-C2NMaYVu.js → use-fast-preview-draft-url-DftYyPUL.js} +1 -1
- package/dist/client/assets/{use-file-configs-Bb5i5kzp.js → use-file-configs-CYpkv-K6.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-M-6zbbsB.js → use-infinite-scroll-DRg5D3Ci.js} +1 -1
- package/dist/client/assets/{use-join-requests-DdJv9q2n.js → use-join-requests-BcHXx_vJ.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DfNPCvDK.js → use-main-panel-tabs-DFEF_AsU.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BGPcEhML.js → use-mcp-auth-status-CU2sLwi7.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DGrcPC5r.js → use-mcp-client-BXMLDsCy.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-IUYMfB-t.js → use-mcp-prompts-BeUMXZG4.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CqzyWLqP.js → use-mcp-tools-CzIY_sDu.js} +1 -1
- package/dist/client/assets/{use-members-BFVKg_WJ.js → use-members-CqgWLfoS.js} +1 -1
- package/dist/client/assets/{use-mobile-BbZ9Bk36.js → use-mobile-DIdf1Sl6.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-v6_M_Lv8.js → use-navigate-to-agent-w4dyiPcQ.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-Cf8IZn6F.js +1 -0
- package/dist/client/assets/{use-open-billing-url-CBRV16pr.js → use-open-billing-url-D8WOGdFe.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-s3yV-gCV.js → use-org-auth-client-CPcci4x9.js} +1 -1
- package/dist/client/assets/{use-org-fs-DLLHrevC.js → use-org-fs-DGDwjtxZ.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DCNujM3B.js → use-org-repo-syncs-BO-YlCPV.js} +1 -1
- package/dist/client/assets/{use-org-sso-GuXeEBOc.js → use-org-sso-Cccoz5_e.js} +1 -1
- package/dist/client/assets/{use-organization-roles-ZmVwWDLk.js → use-organization-roles-7OfC34Y2.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Bud8t-pB.js → use-organization-settings-DrCEGV8b.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-P-qoUN3Y.js → use-panel-navigate-Cz0Mqgtu.js} +1 -1
- package/dist/client/assets/{use-project-scope-CKrmwpiF.js → use-project-scope-BVOC74Pv.js} +1 -1
- package/dist/client/assets/{use-releases-C1Rf328o.js → use-releases-CenNp5C8.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-B1Shnig3.js → use-reports-diagnostic-CrsbISH4.js} +1 -1
- package/dist/client/assets/{use-secrets-Diaq210I.js → use-secrets-Ewd87uQe.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-vrUWdFAS.js → use-section-preview-base-DLJ0mf7i.js} +1 -1
- package/dist/client/assets/{use-session-runtime-Dd4IC7IN.js → use-session-runtime-CP-CHF9M.js} +1 -1
- package/dist/client/assets/{use-tags-BrQETtMc.js → use-tags-CiSSC1Zw.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-C1XXYkja.js → use-task-board-analytics-DQ9orTZ3.js} +1 -1
- package/dist/client/assets/{use-task-board-events-DW_ymOYd.js → use-task-board-events-S4eOT-Db.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CHJgQsit.js → use-task-metadata-Y6hbPlVY.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-XGBihKjG.js → use-thread-analytics-mI_QslnV.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CZi91IMj.js → use-thread-outputs-D36c0oXJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C-pCSug8.js +1 -0
- package/dist/client/assets/{useQueries-Cii8MVzd.js → useQueries-JvyAIObw.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BJb93R4Z.js +1 -0
- package/dist/client/assets/{users-C-N_QqPz.js → users-a6pfGwXa.js} +1 -1
- package/dist/client/assets/{utils-DdYfsNrk.js → utils-7K5OBDxA.js} +1 -1
- package/dist/client/assets/{variant-calendar-CbolY3W4.js → variant-calendar-CC6Z4TJm.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-BE-XpZUe.js → variant-matcher-override-B0LIaNEX.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-UcflwKbx.js → view-mode-toggle-CR4yGwhs.js} +1 -1
- package/dist/client/assets/{virtual-mcp-5qC_v8pJ.js → virtual-mcp-Bjm883Pp.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BhmwaXpz.js +0 -1
- package/dist/client/assets/agent-deck-Cyl90eqt.js +0 -1
- package/dist/client/assets/agent-library-Ev_ZnLTN.js +0 -1
- package/dist/client/assets/agent-library-file-CVAOCG3S.js +0 -1
- package/dist/client/assets/agent-settings-Dg4hz_AU.js +0 -1
- package/dist/client/assets/agent-site-editor-code-IIouddwd.js +0 -2
- package/dist/client/assets/agent-view-5kLPHs5Y.js +0 -1
- package/dist/client/assets/api-keys-CNrhvLa5.js +0 -1
- package/dist/client/assets/flat-project-D7xgVWbZ.js +0 -1
- package/dist/client/assets/library-Cj7GFkYr.js +0 -1
- package/dist/client/assets/project-reports-R2nxKE9N.js +0 -1
- package/dist/client/assets/project-tasks-B-TqLh_E.js +0 -1
- package/dist/client/assets/record-editor-BdDJOWw7.js +0 -1
- package/dist/client/assets/reports-DsLoZ4VI.js +0 -1
- package/dist/client/assets/route-CHyxOjjb.js +0 -1
- package/dist/client/assets/route-XD1IeFV8.js +0 -1
- package/dist/client/assets/tasks-BMYAskJr.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-C-Vw3tr-.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Pi2cEwSS.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-3wEhSKVP.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as oe,b as ae,X as de,o as re,a2 as ce,r as me,K as ie,m as ge,e as W,q as ue,t as N,j as s,ee as fe,B as te,ed as xe,ec as Se}from"./index-
|
|
1
|
+
import{c as oe,b as ae,X as de,o as re,a2 as ce,r as me,K as ie,m as ge,e as W,q as ue,t as N,j as s,ee as fe,B as te,ed as xe,ec as Se}from"./index-BHW38fGm.js";import{B as ne}from"./badge-DKTieZTi.js";import{I as je}from"./input-DPbtX44w.js";import{S as pe,b as he,a as Ne,d as ve,c as se}from"./select-D-HKKCDO.js";function Me(e,t,o){switch(e){case"auto":return o("settings.domainSettings.joinModeHelpAuto",{domain:t});case"request":return o("settings.domainSettings.joinModeHelpRequest",{domain:t});default:return o("settings.domainSettings.joinModeHelpOff")}}function ye(){const e=oe.c(101),t=ae(),{org:o}=de(),p=re(),i=ce(),[d,v]=me.useState("");let c;e[0]!==o.id?(c=ie.organizationDomains(o.id),e[0]=o.id,e[1]=c):c=e[1];let m;e[2]!==i?(m=()=>i.call("ORGANIZATION_DOMAIN_LIST",{}),e[2]=i,e[3]=m):m=e[3];let x;e[4]!==c||e[5]!==m?(x={queryKey:c,queryFn:m},e[4]=c,e[5]=m,e[6]=x):x=e[6];const{data:h,isPending:M}=ge(x);let S;e[7]!==o.id||e[8]!==p?(S=()=>p.invalidateQueries({queryKey:ie.organizationDomains(o.id)}),e[7]=o.id,e[8]=p,e[9]=S):S=e[9];const a=S;let g;e[10]!==i?(g=n=>i.call("ORGANIZATION_DOMAIN_ADD",{domain:n}),e[10]=i,e[11]=g):g=e[11];let u;e[12]!==a||e[13]!==o.id||e[14]!==t?(u=()=>{ue("organization_domain_added",{organization_id:o.id}),v(""),a(),N.success(t("settings.domainSettings.domainAdded"))},e[12]=a,e[13]=o.id,e[14]=t,e[15]=u):u=e[15];let f;e[16]!==t?(f=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedAddDomain")),e[16]=t,e[17]=f):f=e[17];let j;e[18]!==g||e[19]!==u||e[20]!==f?(j={mutationFn:g,onSuccess:u,onError:f},e[18]=g,e[19]=u,e[20]=f,e[21]=j):j=e[21];const r=W(j);let I;e[22]!==i?(I=n=>{const{id:l,joinMode:D}=n;return i.call("ORGANIZATION_DOMAIN_UPDATE",{id:l,joinMode:D})},e[22]=i,e[23]=I):I=e[23];let A;e[24]!==a||e[25]!==t?(A=()=>{a(),N.success(t("settings.domainSettings.joinModeUpdated"))},e[24]=a,e[25]=t,e[26]=A):A=e[26];let O;e[27]!==t?(O=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedUpdate")),e[27]=t,e[28]=O):O=e[28];let U;e[29]!==O||e[30]!==I||e[31]!==A?(U={mutationFn:I,onSuccess:A,onError:O},e[29]=O,e[30]=I,e[31]=A,e[32]=U):U=e[32];const Q=W(U);let b;e[33]!==i?(b=n=>i.call("ORGANIZATION_DOMAIN_VERIFY",{id:n}),e[33]=i,e[34]=b):b=e[34];let y;e[35]!==a||e[36]!==t?(y=n=>{a(),n.verified?N.success(t("settings.domainSettings.domainVerified")):N.error(t("settings.domainSettings.txtRecordNotFound"))},e[35]=a,e[36]=t,e[37]=y):y=e[37];let E;e[38]!==t?(E=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedVerify")),e[38]=t,e[39]=E):E=e[39];let Y;e[40]!==b||e[41]!==y||e[42]!==E?(Y={mutationFn:b,onSuccess:y,onError:E},e[40]=b,e[41]=y,e[42]=E,e[43]=Y):Y=e[43];const R=W(Y);let C;e[44]!==i?(C=n=>i.call("ORGANIZATION_DOMAIN_REMOVE",{id:n}),e[44]=i,e[45]=C):C=e[45];let P;e[46]!==a||e[47]!==t?(P=()=>{a(),N.success(t("settings.domainSettings.domainRemoved"))},e[46]=a,e[47]=t,e[48]=P):P=e[48];let _;e[49]!==t?(_=n=>N.error(n instanceof Error?n.message:t("settings.domainSettings.failedRemove")),e[49]=t,e[50]=_):_=e[50];let $;e[51]!==C||e[52]!==P||e[53]!==_?($={mutationFn:C,onSuccess:P,onError:_},e[51]=C,e[52]=P,e[53]=_,e[54]=$):$=e[54];const T=W($);if(M)return null;let L;e[55]!==h?.domains?(L=h?.domains??[],e[55]=h?.domains,e[56]=L):L=e[56];const ee=L;let V;e[57]!==t?(V=t("settings.domainSettings.emailDomains"),e[57]=t,e[58]=V):V=e[58];let q;e[59]!==t?(q=t("settings.domainSettings.emailDomainsDescription"),e[59]=t,e[60]=q):q=e[60];let k;if(e[61]!==ee||e[62]!==T||e[63]!==t||e[64]!==Q||e[65]!==R){let n;e[67]!==T||e[68]!==t||e[69]!==Q||e[70]!==R?(n=l=>{const D=l.verificationStatus==="verified";return s.jsx(fe,{title:s.jsxs("span",{className:"flex items-center gap-2",children:[l.domain,D?s.jsx(ne,{variant:"secondary",children:t("settings.domainSettings.verified")}):s.jsx(ne,{variant:"outline",children:t("settings.domainSettings.pending")})]}),description:D?Me(l.joinMode,l.domain,t):t("settings.domainSettings.addDnsRecordInstruction"),action:s.jsxs("div",{className:"flex items-center gap-2",children:[D&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:t("settings.domainSettings.joinMode")}),s.jsxs(pe,{value:l.joinMode,onValueChange:le=>Q.mutate({id:l.id,joinMode:le}),children:[s.jsx(he,{className:"w-44",size:"sm",children:s.jsx(Ne,{})}),s.jsxs(ve,{children:[s.jsx(se,{value:"off",children:t("settings.domainSettings.joinModeOff")}),s.jsx(se,{value:"auto",children:t("settings.domainSettings.joinModeAuto")}),s.jsx(se,{value:"request",children:t("settings.domainSettings.joinModeRequest")})]})]})]}),!D&&s.jsx(te,{size:"sm",variant:"outline",onClick:()=>R.mutate(l.id),disabled:R.isPending,children:t("settings.domainSettings.verify")}),s.jsx(te,{size:"sm",variant:"ghost",onClick:()=>T.mutate(l.id),disabled:T.isPending,children:t("settings.domainSettings.remove")})]}),children:!D&&l.recordName&&l.recordValue&&s.jsx(Ie,{recordName:l.recordName,recordValue:l.recordValue})},l.id)},e[67]=T,e[68]=t,e[69]=Q,e[70]=R,e[71]=n):n=e[71],k=ee.map(n),e[61]=ee,e[62]=T,e[63]=t,e[64]=Q,e[65]=R,e[66]=k}else k=e[66];let X;e[72]===Symbol.for("react.memo_cache_sentinel")?(X=n=>v(n.target.value),e[72]=X):X=e[72];let z;e[73]!==t?(z=t("settings.domainSettings.domainPlaceholder"),e[73]=t,e[74]=z):z=e[74];let F;e[75]!==d||e[76]!==z?(F=s.jsx(je,{value:d,onChange:X,placeholder:z,className:"max-w-xs"}),e[75]=d,e[76]=z,e[77]=F):F=e[77];let w;e[78]!==r||e[79]!==d?(w=()=>r.mutate(d.trim()),e[78]=r,e[79]=d,e[80]=w):w=e[80];let G;e[81]!==r.isPending||e[82]!==d?(G=!d.trim()||r.isPending,e[81]=r.isPending,e[82]=d,e[83]=G):G=e[83];let Z;e[84]!==r.isPending||e[85]!==t?(Z=r.isPending?t("settings.domainSettings.adding"):t("settings.domainSettings.addDomain"),e[84]=r.isPending,e[85]=t,e[86]=Z):Z=e[86];let B;e[87]!==w||e[88]!==G||e[89]!==Z?(B=s.jsx(te,{size:"sm",onClick:w,disabled:G,children:Z}),e[87]=w,e[88]=G,e[89]=Z,e[90]=B):B=e[90];let H;e[91]!==F||e[92]!==B?(H=s.jsxs("div",{className:"flex items-center gap-2 p-4",children:[F,B]}),e[91]=F,e[92]=B,e[93]=H):H=e[93];let K;e[94]!==k||e[95]!==H?(K=s.jsxs(xe,{children:[k,H]}),e[94]=k,e[95]=H,e[96]=K):K=e[96];let J;return e[97]!==V||e[98]!==q||e[99]!==K?(J=s.jsx(Se,{title:V,description:q,children:K}),e[97]=V,e[98]=q,e[99]=K,e[100]=J):J=e[100],J}function Ie(e){const t=oe.c(34),{recordName:o,recordValue:p}=e,i=ae();let d;t[0]!==i?(d=I=>{navigator.clipboard?.writeText(I),N.success(i("settings.domainSettings.copied"))},t[0]=i,t[1]=d):d=t[1];const v=d;let c;t[2]!==i?(c=i("settings.domainSettings.dnsInstructions"),t[2]=i,t[3]=c):c=t[3];let m;t[4]!==c?(m=s.jsx("p",{className:"text-muted-foreground",children:c}),t[4]=c,t[5]=m):m=t[5];let x;t[6]!==v||t[7]!==o?(x=()=>v(o),t[6]=v,t[7]=o,t[8]=x):x=t[8];let h;t[9]!==i?(h=i("settings.domainSettings.txt"),t[9]=i,t[10]=h):h=t[10];let M;t[11]!==h?(M=s.jsxs("span",{className:"text-muted-foreground",children:[h," "]}),t[11]=h,t[12]=M):M=t[12];let S;t[13]!==o||t[14]!==x||t[15]!==M?(S=s.jsxs("button",{type:"button",className:"text-left font-mono break-all hover:underline",onClick:x,children:[M,o]}),t[13]=o,t[14]=x,t[15]=M,t[16]=S):S=t[16];let a;t[17]!==v||t[18]!==p?(a=()=>v(p),t[17]=v,t[18]=p,t[19]=a):a=t[19];let g;t[20]!==i?(g=i("settings.domainSettings.value"),t[20]=i,t[21]=g):g=t[21];let u;t[22]!==g?(u=s.jsxs("span",{className:"text-muted-foreground",children:[g," "]}),t[22]=g,t[23]=u):u=t[23];let f;t[24]!==p||t[25]!==u||t[26]!==a?(f=s.jsxs("button",{type:"button",className:"text-left font-mono break-all hover:underline",onClick:a,children:[u,p]}),t[24]=p,t[25]=u,t[26]=a,t[27]=f):f=t[27];let j;t[28]!==f||t[29]!==S?(j=s.jsxs("div",{className:"grid gap-1",children:[S,f]}),t[28]=f,t[29]=S,t[30]=j):j=t[30];let r;return t[31]!==j||t[32]!==m?(r=s.jsxs("div",{className:"mt-3 rounded-lg border border-border bg-muted/40 p-3 text-xs space-y-2",children:[m,j]}),t[31]=j,t[32]=m,t[33]=r):r=t[33],r}export{ye as D};
|
package/dist/client/assets/{download-app-dialog-CD7kK8MH.js → download-app-dialog-eZatHcib.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,b as D,j as l,B as y,r as L}from"./index-
|
|
1
|
+
import{c as _,b as D,j as l,B as y,r as L}from"./index-BHW38fGm.js";import{d as S,h as N,c as C,b as I,D as $}from"./dialog-Dlbcts3k.js";import{i as k}from"./Check-DNTKbOF1.js";import{a as E}from"./Copy01-6fj6p2dr.js";import{n as H}from"./Image01-0p0qVrVu.js";const R="https://github.com/decocms/studio/releases";function T(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function z(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function P(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function B(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function M(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function v(e){const t=_.c(12),{copiedLabel:a}=e,r=D(),[s,c]=L.useState(!1);let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=T(),t[0]=d):d=t[0];const n=d;let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:n}),t[1]=o):o=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{M(navigator.clipboard,n).then(m=>{m&&(c(!0),setTimeout(()=>c(!1),2e3))})},t[2]=i):i=t[2];let f;t[3]!==s?(f=s?l.jsx(k,{size:16}):l.jsx(E,{size:16}),t[3]=s,t[4]=f):f=t[4];let p;t[5]!==s||t[6]!==a||t[7]!==r?(p=s?a:r("downloadApp.copyLabel"),t[5]=s,t[6]=a,t[7]=r,t[8]=p):p=t[8];let x;return t[9]!==f||t[10]!==p?(x=l.jsxs("div",{className:"flex flex-col gap-3",children:[o,l.jsxs(y,{type:"button",className:"w-full gap-2",onClick:i,children:[f,p]})]}),t[9]=f,t[10]=p,t[11]=x):x=t[11],x}function F(){const e=_.c(18),t=D();let a;e[0]!==t?(a=t("downloadApp.copiedLabel"),e[0]=t,e[1]=a):a=e[1];let r;e[2]!==a?(r=l.jsx(v,{copiedLabel:a}),e[2]=a,e[3]=r):r=e[3];let s;e[4]!==t?(s=t("downloadApp.terminalHint"),e[4]=t,e[5]=s):s=e[5];let c;e[6]!==s?(c=l.jsx("p",{children:s}),e[6]=s,e[7]=c):c=e[7];let d;e[8]!==t?(d=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=d):d=e[9];let n;e[10]!==d?(n=l.jsx("p",{children:d}),e[10]=d,e[11]=n):n=e[11];let o;e[12]!==c||e[13]!==n?(o=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[c,n]}),e[12]=c,e[13]=n,e[14]=o):o=e[14];let i;return e[15]!==r||e[16]!==o?(i=l.jsxs(l.Fragment,{children:[r,o]}),e[15]=r,e[16]=o,e[17]=i):i=e[17],i}function U(){const e=_.c(42),t=D();let a;e[0]!==t?(a=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=a):a=e[1];let r;e[2]!==a?(r=l.jsx(v,{copiedLabel:a}),e[2]=a,e[3]=r):r=e[3];let s;e[4]!==t?(s=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=s):s=e[5];let c;e[6]!==s?(c=l.jsx("p",{children:s}),e[6]=s,e[7]=c):c=e[7];let d;e[8]!==t?(d=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=d):d=e[9];let n;e[10]!==d?(n=l.jsx("p",{children:d}),e[10]=d,e[11]=n):n=e[11];let o;e[12]!==c||e[13]!==n?(o=l.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[c,n]}),e[12]=c,e[13]=n,e[14]=o):o=e[14];let i;e[15]!==t?(i=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=i):i=e[16];let f;e[17]!==i?(f=l.jsx("p",{children:i}),e[17]=i,e[18]=f):f=e[18];let p;e[19]===Symbol.for("react.memo_cache_sentinel")?(p=z("4.429.10"),e[19]=p):p=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx(H,{size:14}),e[20]=x):x=e[20];let m;e[21]!==t?(m=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=m):m=e[22];let u;e[23]!==m?(u=l.jsx(y,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:l.jsxs("a",{href:p,rel:"noreferrer",children:[x,m]})}),e[23]=m,e[24]=u):u=e[24];let h;e[25]!==t?(h=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=h):h=e[26];let g;e[27]!==h?(g=l.jsx("p",{children:h}),e[27]=h,e[28]=g):g=e[28];let j;e[29]!==t?(j=t("downloadApp.allReleases"),e[29]=t,e[30]=j):j=e[30];let w;e[31]!==j?(w=l.jsx("a",{href:R,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:j}),e[31]=j,e[32]=w):w=e[32];let b;e[33]!==u||e[34]!==g||e[35]!==w||e[36]!==f?(b=l.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[f,u,g,w]}),e[33]=u,e[34]=g,e[35]=w,e[36]=f,e[37]=b):b=e[37];let A;return e[38]!==r||e[39]!==b||e[40]!==o?(A=l.jsxs(l.Fragment,{children:[r,o,b]}),e[38]=r,e[39]=b,e[40]=o,e[41]=A):A=e[41],A}function Q(e){const t=_.c(19),{open:a,onOpenChange:r}=e,s=D();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=B(),t[0]=c):c=t[0];const d=c;let n;t[1]!==s?(n=s("downloadApp.title"),t[1]=s,t[2]=n):n=t[2];let o;t[3]!==n?(o=l.jsx(S,{children:n}),t[3]=n,t[4]=o):o=t[4];let i;t[5]!==s?(i=s(d?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=s,t[6]=i):i=t[6];let f;t[7]!==i?(f=l.jsx(N,{children:i}),t[7]=i,t[8]=f):f=t[8];let p;t[9]!==o||t[10]!==f?(p=l.jsxs(C,{children:[o,f]}),t[9]=o,t[10]=f,t[11]=p):p=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=d?l.jsx(U,{}):l.jsx(F,{}),t[12]=x):x=t[12];let m;t[13]!==p?(m=l.jsxs(I,{className:"sm:max-w-md",children:[p,x]}),t[13]=p,t[14]=m):m=t[14];let u;return t[15]!==r||t[16]!==a||t[17]!==m?(u=l.jsx($,{open:a,onOpenChange:r,children:m}),t[15]=r,t[16]=a,t[17]=m,t[18]=u):u=t[18],u}export{Q as D,B as a,P as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as s,dX as i,l as c}from"./index-
|
|
1
|
+
import{c as d,j as s,dX as i,l as c}from"./index-BHW38fGm.js";function x(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Root,{"data-slot":"drawer",...t}),e[2]=t,e[3]=a):a=e[3],a}function v(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Trigger,{"data-slot":"drawer-trigger",...t}),e[2]=t,e[3]=a):a=e[3],a}function w(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Portal,{"data-slot":"drawer-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function b(l){const e=d.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=s.jsx(i.Close,{"data-slot":"drawer-close",...t}),e[2]=t,e[3]=a):a=e[3],a}function m(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx(i.Overlay,{"data-slot":"drawer-overlay",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function g(l){const e=d.c(12);let t,a,r;e[0]!==l?({className:a,children:t,...r}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=r):(t=e[1],a=e[2],r=e[3]);let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(m,{}),e[4]=o):o=e[4];let n;e[5]!==a?(n=c("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[95vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",a),e[5]=a,e[6]=n):n=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e[7]=f):f=e[7];let u;return e[8]!==t||e[9]!==r||e[10]!==n?(u=s.jsxs(w,{"data-slot":"drawer-portal",children:[o,s.jsxs(i.Content,{"data-slot":"drawer-content",className:n,...r,children:[f,t]})]}),e[8]=t,e[9]=r,e[10]=n,e[11]=u):u=e[11],u}function h(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("flex flex-col gap-1.5 px-4 py-2",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx("div",{"data-slot":"drawer-header",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function j(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("mt-auto flex flex-col gap-2 p-4",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx("div",{"data-slot":"drawer-footer",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function D(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("text-foreground font-semibold",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx(i.Title,{"data-slot":"drawer-title",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}function N(l){const e=d.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let r;e[3]!==t?(r=c("text-muted-foreground text-sm",t),e[3]=t,e[4]=r):r=e[4];let o;return e[5]!==a||e[6]!==r?(o=s.jsx(i.Description,{"data-slot":"drawer-description",className:r,...a}),e[5]=a,e[6]=r,e[7]=o):o=e[7],o}export{x as D,g as a,D as b,v as c,h as d,N as e,b as f,j as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,ep as R}from"./index-
|
|
1
|
+
import{r as a,ep as R}from"./index-BHW38fGm.js";function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function be(e){if(Array.isArray(e))return e}function we(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function Oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oe(Object(r),!0).forEach(function(n){we(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function je(e,t){if(e==null)return{};var r,n,o=Me(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Pe(e,t){return be(e)||ye(e,t)||Re(e,t)||Oe()}function Ee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e){var t=Ee(e,"string");return typeof t=="symbol"?t:t+""}function Re(e,t){if(e){if(typeof e=="string")return ne(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(r),!0).forEach(function(n){Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function L(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function z(e){return{}.toString.call(e).includes("Object")}function Ce(e){return!Object.keys(e).length}function D(e){return typeof e=="function"}function Ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e,t){return z(t)||P("changeType"),Object.keys(t).some(function(r){return!Ae(e,r)})&&P("changeField"),t}function $e(e){D(e)||P("selectorType")}function De(e){D(e)||z(e)||P("handlerType"),z(e)&&Object.values(e).some(function(t){return!D(t)})&&P("handlersType")}function Ve(e){e||P("initialIsRequired"),z(e)||P("initialType"),Ce(e)&&P("initialContent")}function xe(e,t){throw new Error(e[t]||e.default)}var Ne={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},P=L(xe)(Ne),U={changes:Le,selector:$e,handler:De,initial:Ve};function Ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};U.initial(e),U.handler(t);var r={current:e},n=L(Fe)(r,t),o=L(ze)(r),i=L(U.changes)(e),c=L(qe)(r);function s(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(j){return j};return U.selector(p),p(r.current)}function f(p){Ie(n,o,i,c)(p)}return[s,f]}function qe(e,t){return D(t)?t(e.current):t}function ze(e,t){return e.current=ue(ue({},e.current),t),t}function Fe(e,t,r){return D(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var He={create:Ue},We={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function _e(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function ke(e){return{}.toString.call(e).includes("Object")}function Ke(e){return e||ce("configIsRequired"),ke(e)||ce("configType"),e.urls?(Be(),{paths:{vs:e.urls.monacoBase}}):e}function Be(){console.warn(le.deprecation)}function Ge(e,t){throw new Error(e[t]||e.default)}var le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
3
|
You are using deprecated way of configuration.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,l as h,j as t,B as g}from"./index-
|
|
1
|
+
import{c as b,l as h,j as t,B as g}from"./index-BHW38fGm.js";function y(N){const e=b.c(21),{icon:o,illustration:a,title:u,description:d,buttonProps:s,buttonComponent:x,className:j,children:p}=N;let l;e[0]!==j?(l=h("flex flex-col items-center justify-center py-16 text-center",j),e[0]=j,e[1]=l):l=e[1];let i;e[2]!==o||e[3]!==a?(i=a?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:a}):o?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:o}):null,e[2]=o,e[3]=a,e[4]=i):i=e[4];let n;e[5]!==u?(n=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:u}),e[5]=u,e[6]=n):n=e[6];let c;e[7]!==d?(c=d&&t.jsx("div",{className:"text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==n||e[10]!==c?(r=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[n,c]}),e[9]=n,e[10]=c,e[11]=r):r=e[11];let m;e[12]!==x||e[13]!==s?(m=(x??s)&&t.jsx("div",{className:"mt-4",children:x??(s&&t.jsx(g,{size:"sm",className:h(s?.className),...s}))}),e[12]=x,e[13]=s,e[14]=m):m=e[14];let f;return e[15]!==p||e[16]!==l||e[17]!==i||e[18]!==r||e[19]!==m?(f=t.jsxs("div",{className:l,children:[i,r,m,p]}),e[15]=p,e[16]=l,e[17]=i,e[18]=r,e[19]=m,e[20]=f):f=e[20],f}export{y as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as N,j as t}from"./index-
|
|
1
|
+
import{c as v,l as N,j as t}from"./index-BHW38fGm.js";function y(){const x=v.c(1);let e;return x[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("img",{src:"/empty-state-cards.png",alt:"",width:336,height:320,"aria-hidden":"true"}),x[0]=e):e=x[0],e}function C(x){const e=v.c(24),{image:f,title:p,description:u,actions:o,className:h,descriptionClassName:j,actionsClassName:g}=x;let s;e[0]!==h?(s=N("flex flex-1 flex-col items-center justify-center gap-8 p-4",h),e[0]=h,e[1]=s):s=e[1];let l;e[2]!==f?(l=f!==null&&t.jsx("div",{className:"flex items-center justify-center",children:f??t.jsx(y,{})}),e[2]=f,e[3]=l):l=e[3];let i;e[4]!==p?(i=t.jsx("h3",{className:"text-center text-lg font-medium text-foreground",children:p}),e[4]=p,e[5]=i):i=e[5];let c;e[6]!==j?(c=N("text-sm text-muted-foreground text-center max-w-[300px]",j),e[6]=j,e[7]=c):c=e[7];let a;e[8]!==u||e[9]!==c?(a=t.jsx("div",{className:c,children:u}),e[8]=u,e[9]=c,e[10]=a):a=e[10];let n;e[11]!==i||e[12]!==a?(n=t.jsxs("div",{className:"flex flex-col items-center gap-2",children:[i,a]}),e[11]=i,e[12]=a,e[13]=n):n=e[13];let r;e[14]!==o||e[15]!==g?(r=o&&t.jsx("div",{className:N("flex items-center gap-2",g),children:o}),e[14]=o,e[15]=g,e[16]=r):r=e[16];let m;e[17]!==n||e[18]!==r?(m=t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[n,r]}),e[17]=n,e[18]=r,e[19]=m):m=e[19];let d;return e[20]!==s||e[21]!==l||e[22]!==m?(d=t.jsxs("div",{className:s,children:[l,m]}),e[20]=s,e[21]=l,e[22]=m,e[23]=d):d=e[23],d}export{C as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as k,a as O}from"./metadata-D72DunRR.js";import{O as R}from"./connection
|
|
1
|
+
import{g as k,a as O}from"./metadata-D72DunRR.js";import{O as R}from"./connection-Bxp8CJIF.js";const D={"streamable-http":"HTTP",http:"HTTP",sse:"SSE",stdio:"STDIO",websocket:"Websocket"};function H(e){return e?D[e]??e.toUpperCase():null}let V="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",E=(e=21)=>{let n="",s=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)n+=V[s[e]&63];return n};function $(e){return`${e}_${E()}`}function L(e){const n=k(e._meta),s=e.id==="deco/github-mcp"?"mcp-github":e.server?.name;return n?.appName||s||null}function W(e){if(!e?.url)return"Unknown";try{return new URL(e.url).hostname}catch{return e.url}}function j(e){const n=e?.identifier||e?.name;return n?n.replace(/^@[^/]+\//,"").replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase()):"Unknown"}function q(e,n,s,r){const t=e.server,o=k(e._meta),m=new Date().toISOString(),S=o?.friendlyName||o?.friendly_name||e.title||t?.title||t?.name||"Unnamed MCP Server",v=t?.description||null,N=t?.icons?.[0]?.src||O(t?.repository)||null,h=R.safeParse(o?.oauth_config),P=h.success?h.data:null,T=o?.configuration_state,C=o?.configuration_scopes,I=t?.repository?{url:t.repository.url,source:t.repository.source,subfolder:t.repository.subfolder}:null,p=t?.packages??[],d=t?.remotes??[],x=r?.packageIndex??0,w=r?.remoteIndex??0,_=p.length>0&&(r?.packageIndex!==void 0||d.length===0),a=_?p[x]:null,i=_?null:d[w];let l,u,b=null;if(a){const c=a.identifier||a.name;l="STDIO",u="";const f={};if(a.environmentVariables)for(const y of a.environmentVariables)y.name&&(f[y.name]="");b={command:"npx",args:c?["-y",c]:[],...Object.keys(f).length>0&&{envVars:f}}}else if(i){const c=H(i.type);l=c==="SSE"||c==="Websocket"?c:"HTTP",u=i.url||""}else l="HTTP",u="";const U=d.length>1,A=p.length>1;let g="";a&&A?g=` (${j(a)})`:i&&U&&(g=` (${W(i)})`);const M=S+g;return{id:$("conn"),title:M,description:v,icon:N,app_name:L(e),app_id:o?.id||e.id||null,connection_type:l,connection_url:u,connection_token:null,connection_headers:b,oauth_config:P,configuration_state:T??null,configuration_scopes:C??null,metadata:{source:"store",registry_item_id:e.id,verified:o?.verified??!1,scopeName:o?.scopeName??null,toolsCount:o?.tools?.length??0,publishedAt:o?.publishedAt??null,repository:I},created_at:m,updated_at:m,created_by:s,organization_id:n,tools:null,bindings:null,status:"inactive"}}export{L as a,q as e,$ as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,u as d,j as l,aS as m}from"./index-
|
|
1
|
+
import{c as x,u as d,j as l,aS as m}from"./index-BHW38fGm.js";import{F as j}from"./feature-paywall-CCumYX5V.js";import{e as S,f as v}from"./use-decopilot-events-Dz3T4koV.js";import{a as F}from"./use-panel-navigate-Cz0Mqgtu.js";function g(f){const e=x.c(10),{feature:a,backdrop:o,children:u}=f,{openPanel:c}=F();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const{mainpanel:p}=d(r),h=S(a);if(!v()){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3 p-4",children:[l.jsx(m,{className:"h-8 w-48"}),l.jsx(m,{className:"min-h-0 flex-1 w-full"})]}),e[1]=i):i=e[1],i}if(h)return u;if(p===!1)return null;let s;e[2]!==c?(s=()=>c("overview"),e[2]=c,e[3]=s):s=e[3];let t;e[4]!==a||e[5]!==s?(t=l.jsx(j,{feature:a,onDismiss:s,onSeePlans:w}),e[4]=a,e[5]=s,e[6]=t):t=e[6];let n;return e[7]!==o||e[8]!==t?(n=l.jsxs("div",{className:"relative h-full min-h-0",children:[o,t]}),e[7]=o,e[8]=t,e[9]=n):n=e[9],n}function w(){}export{g as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,l as F,j as t,b as R,d as S,X as O,x as H,a6 as M,B as _}from"./index-
|
|
1
|
+
import{c as B,l as F,j as t,b as R,d as S,X as O,x as H,a6 as M,B as _}from"./index-BHW38fGm.js";import{i as W}from"./Check-DNTKbOF1.js";import{d as X,h as q,c as G,b as I,D as J}from"./dialog-Dlbcts3k.js";import{u as K,a as Q,p as V,b as Y,c as Z,P as ee,f as te}from"./plan-ladder-DKLtAA-T.js";import{a as se}from"./use-decopilot-events-Dz3T4koV.js";function le(N){const e=B.c(37),{open:a,onDismiss:n,accentClassName:i,icon:k,title:s,description:P,highlights:D,price:v,action:C,dismissAction:E}=N,A=a===void 0?!0:a,w=i??"text-muted-foreground";let c;e[0]!==n?(c=T=>!T&&n?.(),e[0]=n,e[1]=c):c=e[1];let o;e[2]!==w?(o=F("pointer-events-none",w),e[2]=w,e[3]=o):o=e[3];let h,b;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"absolute inset-x-0 top-0 h-60 opacity-60 dark:opacity-30",style:{background:"radial-gradient(ellipse 70% 100% at 50% 0%, currentColor 0%, transparent 72%)"}}),b=t.jsx("div",{className:"absolute inset-x-8 top-0 h-px bg-gradient-to-r from-transparent via-current to-transparent opacity-80 dark:opacity-60"}),e[4]=h,e[5]=b):(h=e[4],b=e[5]);let r;e[6]!==o?(r=t.jsxs("div",{"aria-hidden":"true",className:o,children:[h,b]}),e[6]=o,e[7]=r):r=e[7];let p;e[8]!==k?(p=t.jsx("div",{className:"mb-7",children:k}),e[8]=k,e[9]=p):p=e[9];let m;e[10]!==s?(m=t.jsx(X,{className:"text-2xl font-semibold leading-tight tracking-tight text-balance",children:s}),e[10]=s,e[11]=m):m=e[11];let d;e[12]!==P?(d=P&&t.jsx(q,{className:"mx-auto max-w-[32ch] text-sm leading-relaxed text-pretty",children:P}),e[12]=P,e[13]=d):d=e[13];let g;e[14]!==m||e[15]!==d?(g=t.jsxs(G,{className:"gap-2",children:[m,d]}),e[14]=m,e[15]=d,e[16]=g):g=e[16];let u;e[17]!==D?(u=D&&t.jsx("div",{className:"mt-6 w-fit",children:D}),e[17]=D,e[18]=u):u=e[18];let x;e[19]!==v?(x=v&&t.jsx("div",{className:"mt-7",children:v}),e[19]=v,e[20]=x):x=e[20];let f;e[21]!==C||e[22]!==E?(f=t.jsxs("div",{className:"mt-8 flex w-full flex-col items-center gap-2",children:[C,E]}),e[21]=C,e[22]=E,e[23]=f):f=e[23];let j;e[24]!==g||e[25]!==u||e[26]!==x||e[27]!==f||e[28]!==p?(j=t.jsxs("div",{className:"flex flex-col items-center px-8 pt-10 pb-8 text-center",children:[p,g,u,x,f]}),e[24]=g,e[25]=u,e[26]=x,e[27]=f,e[28]=p,e[29]=j):j=e[29];let y;e[30]!==j||e[31]!==r?(y=t.jsxs(I,{className:"gap-0 overflow-hidden p-0 sm:max-w-[480px]",onOpenAutoFocus:ae,children:[r,j]}),e[30]=j,e[31]=r,e[32]=y):y=e[32];let l;return e[33]!==A||e[34]!==y||e[35]!==c?(l=t.jsx(J,{open:A,onOpenChange:c,children:y}),e[33]=A,e[34]=y,e[35]=c,e[36]=l):l=e[36],l}function ae(N){return N.preventDefault()}function ne(N,e){if(!N||!e)return null;const a=N.findIndex(i=>i.id===e)+1,n=a>0?N[a]:void 0;return n?{plan:n,index:a}:null}const $={kanban:["settings.paywall.bullets.kanban.1","settings.paywall.bullets.kanban.2","settings.paywall.bullets.kanban.3"],cms:["settings.paywall.bullets.cms.1","settings.paywall.bullets.cms.2","settings.paywall.bullets.cms.3"],monitoring:["settings.paywall.bullets.monitoring.1","settings.paywall.bullets.monitoring.2","settings.paywall.bullets.monitoring.3"]},ie=["settings.paywall.bullets.allowance.1","settings.paywall.bullets.allowance.2","settings.paywall.bullets.allowance.3"];function de(N){const e=B.c(42),{feature:a,copy:n,onDismiss:i,onSeePlans:k}=N,s=R(),P=S(),{org:D}=O(),{data:v}=K(),{data:C}=se(),{data:E}=Q(),[A]=H();let w,c,o,h,b,r,p,m;if(e[0]!==n||e[1]!==C?.plan||e[2]!==a||e[3]!==i||e[4]!==v||e[5]!==A||e[6]!==E||e[7]!==s){const y=s(`settings.planUsage.feature.${a}`),l=n?ne(v,C?.plan.id):V(v,a),T=l?Y(l.index):void 0,z=l?Z(E,l.plan.id):void 0,L=n?ie:a in $?$[a]:null;w=le,c=i,o=T,h=l?t.jsx(ee,{index:l.index,className:"size-20"}):t.jsx(M,{className:"size-12 text-muted-foreground"}),b=n?.title??(l?s("settings.paywall.upgradeTitle",{plan:l.plan.name,feature:y}):y),r=n?.description??(L?void 0:l?s("settings.paywall.upgradeDescription"):s("settings.paywall.description",{feature:y})),p=L&&t.jsx("ul",{className:"flex flex-col gap-2.5 text-left",children:L.map(U=>t.jsxs("li",{className:"flex items-center gap-3 text-sm",children:[t.jsx(W,{size:16,className:F("shrink-0",T)}),t.jsx("span",{children:s(U)})]},U))}),m=z!==void 0?t.jsxs("span",{className:"flex items-baseline justify-center gap-1.5",children:[t.jsx("span",{className:"text-2xl font-semibold tabular-nums tracking-tight",children:te(z,A.language)}),t.jsx("span",{className:"text-sm text-muted-foreground",children:s("settings.plans.perMonth")})]}):void 0,e[0]=n,e[1]=C?.plan,e[2]=a,e[3]=i,e[4]=v,e[5]=A,e[6]=E,e[7]=s,e[8]=w,e[9]=c,e[10]=o,e[11]=h,e[12]=b,e[13]=r,e[14]=p,e[15]=m}else w=e[8],c=e[9],o=e[10],h=e[11],b=e[12],r=e[13],p=e[14],m=e[15];let d;e[16]!==P||e[17]!==i||e[18]!==k||e[19]!==D.slug?(d=()=>{P({to:"/$org/settings/ai-providers",params:{org:D.slug}}),(k??i)?.()},e[16]=P,e[17]=i,e[18]=k,e[19]=D.slug,e[20]=d):d=e[20];let g;e[21]!==s?(g=s("settings.paywall.seePlans"),e[21]=s,e[22]=g):g=e[22];let u;e[23]!==d||e[24]!==g?(u=t.jsx(_,{size:"lg",className:"w-full",onClick:d,children:g}),e[23]=d,e[24]=g,e[25]=u):u=e[25];let x;e[26]!==s?(x=s("settings.paywall.dismiss"),e[26]=s,e[27]=x):x=e[27];let f;e[28]!==i||e[29]!==x?(f=t.jsx(_,{variant:"ghost",size:"lg",className:"w-full",onClick:i,children:x}),e[28]=i,e[29]=x,e[30]=f):f=e[30];let j;return e[31]!==w||e[32]!==c||e[33]!==u||e[34]!==f||e[35]!==o||e[36]!==h||e[37]!==b||e[38]!==r||e[39]!==p||e[40]!==m?(j=t.jsx(w,{onDismiss:c,accentClassName:o,icon:h,title:b,description:r,highlights:p,price:m,action:u,dismissAction:f}),e[31]=w,e[32]=c,e[33]=u,e[34]=f,e[35]=o,e[36]=h,e[37]=b,e[38]=r,e[39]=p,e[40]=m,e[41]=j):j=e[41],j}export{de as F};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as Se,b as ve,r as f,j as s,h as fe,B as Ce,l as xe,ak as It,o as Gt,t as ee,K as Je}from"./index-DZBQ5pnK.js";import{l as Bt,E as Vt,bA as qt,bB as Ht}from"./agent-icon-CU0i04so.js";import{s as Wt}from"./XClose-DPKustWd.js";import{S as Qt}from"./scroll-area-Bjp7MJ8C.js";import{b as Ze,T as _e,a as et}from"./tooltip-V0jMCwI1.js";import{a as Ut}from"./chat-context-D1RQ0hn6.js";import{F as Xt}from"./editor-CJ05XGg1.js";import{a as Yt}from"./shell-layout-DBvOp7at.js";import{s as je}from"./save-changes-debug-nBi-n9eV.js";import{o as tt,f as Jt}from"./sandbox-git-api-B1R0585s.js";import{d as Zt,h as _t,c as en,e as tn,b as nn,D as rn}from"./dialog-DQNNu_f1.js";import{I as nt}from"./input-D7Pveqzt.js";import{A as sn,a as ln,b as on,c as an,g as cn,d as dn,e as fn,f as un}from"./alert-dialog-D2qUdh2f.js";import{f as pn,C as de,d as rt,g as xn,e as mn}from"./context-menu-CZLB6_c8.js";import{t as hn}from"./ChevronUp-CQ_Ndmgv.js";import{b as gn}from"./sandbox-url-D3mC8qhT.js";import{i as bn,E as yn,c as Pe,e as wn,f as jn,h as Nn,j as Dn,t as ne,k as Ne,l as Me,m as De,g as Ke,n as Ae,o as En,s as Cn,v as Sn,p as Oe,q as Ee,r as ze,u as vn,w as Fn,x as kn,y as Tn}from"./utils-DdYfsNrk.js";import"./AlertCircle-D6fR9-Kh.js";import"./Tool01-7fCUFk4M.js";import"./ArrowUp-Qm1_vfBa.js";import"./ArrowLeft-DiOkGCI1.js";import"./ArrowRight-DNObFWEA.js";import"./ShoppingBag01-D7jpE92Z.js";import"./ZoomOut-Cx0_RhkV.js";import"./Palette-CTKkYfpz.js";import"./CheckCircle-DjVa5rwp.js";import"./Check-p5ZrYqb6.js";import"./UserSquare-D6OSjogb.js";import"./Copy01-no2ZZAoV.js";import"./CreditCard01-BPdTH-LK.js";import"./DotsVertical-FLvQTkZX.js";import"./Image01-Bjku8bco.js";import"./Key01-D548PT0E.js";import"./Link01-DX6Qdft3.js";import"./LinkExternal01-o2rJBAh0.js";import"./Monitor01-De6BgGjU.js";import"./Sun-CF1vsofy.js";import"./Plus-7DucV5vT.js";import"./SearchMd-QN2wlvPm.js";import"./Trash01-CiA3gHsE.js";import"./Upload01-aKM-oPPY.js";import"./User01-vQ2joBqZ.js";import"./Users01-C3PXAlQO.js";import"./X-DCDQ3QOD.js";import"./select-Cz-o9PEJ.js";import"./index-DYpm1LTw.js";import"./use-panel-navigate-P-qoUN3Y.js";import"./thread-route-Cc8Rnkyi.js";import"./use-project-scope-CKrmwpiF.js";import"./repository-binding-D2nl3E9m.js";import"./use-mcp-client-DGrcPC5r.js";import"./auth-BME_-CgD.js";import"./autosend-CTahflnC.js";import"./thread-intent-D45ZuXub.js";import"./backoff-8mStPHYB.js";import"./task-board-UgijzwOv.js";import"./schema-C5Lr3NgE.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-d7FsiRbY.js";import"./use-ai-providers-BiezPBdC.js";import"./location-DBePU4bz.js";import"./use-organization-settings-Bud8t-pB.js";import"./avatar-BrhFB-vr.js";import"./download-app-dialog-CD7kK8MH.js";import"./command-B--xK9e7.js";import"./index-O3cKdi88.js";import"./integration-icon-Dznni3P6.js";import"./project-icon-Dv5T9UXQ.js";import"./new-project-dialog-BkEZfgZM.js";import"./label-CbGYdCUa.js";import"./repository-import-picker-C4UUR7Lt.js";import"./use-navigate-to-agent-v6_M_Lv8.js";import"./repository-picker-C9g49n3G.js";import"./useInfiniteQuery-Pi2cEwSS.js";import"./infiniteQueryObserver-Db8Je-eI.js";import"./collection-search-BF8lJCHd.js";import"./use-debounced-value-BeO0DJwg.js";import"./required-auth-layout-DH23GR15.js";import"./use-org-sso-GuXeEBOc.js";const Rn={"new-file":{titleKey:"sandbox.fileExplorerNameDialog.newFileTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFileDescription",submitKey:"sandbox.fileExplorerNameDialog.newFileSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFilePlaceholder"},"new-folder":{titleKey:"sandbox.fileExplorerNameDialog.newFolderTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFolderDescription",submitKey:"sandbox.fileExplorerNameDialog.newFolderSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFolderPlaceholder"},rename:{titleKey:"sandbox.fileExplorerNameDialog.renameTitle",descriptionKey:"sandbox.fileExplorerNameDialog.renameDescription",submitKey:"sandbox.fileExplorerNameDialog.renameSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.renamePlaceholder"}};function Ln(A){const e=Se.c(71),{open:p,mode:X,initialName:y,parentLabel:N,isPending:L,onSubmit:d,onOpenChange:w}=A,O=y===void 0?"":y,x=L===void 0?!1:L,a=ve(),[o,P]=f.useState(O),[Y,M]=f.useState(p),m=Rn[X];p!==Y&&(M(p),p&&P(O));let c;e[0]!==x||e[1]!==w?(c=U=>{!U&&!x&&w(!1)},e[0]=x,e[1]=w,e[2]=c):c=e[2];const C=c;let z;e[3]!==x||e[4]!==o||e[5]!==d?(z=async U=>{U.preventDefault();const te=o.trim();!te||x||await d(te)},e[3]=x,e[4]=o,e[5]=d,e[6]=z):z=e[6];const R=z;let S;e[7]!==m.titleKey||e[8]!==a?(S=a(m.titleKey),e[7]=m.titleKey,e[8]=a,e[9]=S):S=e[9];let v;e[10]!==S?(v=s.jsx(Zt,{children:S}),e[10]=S,e[11]=v):v=e[11];let D;e[12]!==m.descriptionKey||e[13]!==a?(D=a(m.descriptionKey),e[12]=m.descriptionKey,e[13]=a,e[14]=D):D=e[14];let j;e[15]!==D?(j=s.jsx(_t,{children:D}),e[15]=D,e[16]=j):j=e[16];let g;e[17]!==v||e[18]!==j?(g=s.jsxs(en,{children:[v,j]}),e[17]=v,e[18]=j,e[19]=g):g=e[19];let E;e[20]!==N||e[21]!==a?(E=N&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:a("sandbox.fileExplorerNameDialog.location")}),s.jsx(nt,{value:N,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[20]=N,e[21]=a,e[22]=E):E=e[22];let b;e[23]!==a?(b=a("sandbox.fileExplorerNameDialog.name"),e[23]=a,e[24]=b):b=e[24];let k;e[25]!==b?(k=s.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:b}),e[25]=b,e[26]=k):k=e[26];let H;e[27]===Symbol.for("react.memo_cache_sentinel")?(H=U=>P(U.target.value),e[27]=H):H=e[27];let $;e[28]!==m.placeholderKey||e[29]!==a?($=a(m.placeholderKey),e[28]=m.placeholderKey,e[29]=a,e[30]=$):$=e[30];let J;e[31]!==x||e[32]!==o||e[33]!==$?(J=s.jsx(nt,{id:"file-explorer-name",value:o,onChange:H,placeholder:$,autoFocus:!0,disabled:x}),e[31]=x,e[32]=o,e[33]=$,e[34]=J):J=e[34];let Z;e[35]!==k||e[36]!==J?(Z=s.jsxs("div",{className:"space-y-1.5",children:[k,J]}),e[35]=k,e[36]=J,e[37]=Z):Z=e[37];let _;e[38]!==E||e[39]!==Z?(_=s.jsxs("div",{className:"space-y-4 py-4",children:[E,Z]}),e[38]=E,e[39]=Z,e[40]=_):_=e[40];let I;e[41]!==w?(I=()=>w(!1),e[41]=w,e[42]=I):I=e[42];let T;e[43]!==a?(T=a("sandbox.fileExplorerNameDialog.cancel"),e[43]=a,e[44]=T):T=e[44];let W;e[45]!==x||e[46]!==I||e[47]!==T?(W=s.jsx(Ce,{type:"button",variant:"outline",onClick:I,disabled:x,children:T}),e[45]=x,e[46]=I,e[47]=T,e[48]=W):W=e[48];let K;e[49]!==x||e[50]!==o?(K=!o.trim()||x,e[49]=x,e[50]=o,e[51]=K):K=e[51];let Q;e[52]!==m.submitKey||e[53]!==x||e[54]!==a?(Q=x?s.jsxs(s.Fragment,{children:[s.jsx(fe,{className:"size-3.5"}),a("sandbox.fileExplorerNameDialog.saving")]}):a(m.submitKey),e[52]=m.submitKey,e[53]=x,e[54]=a,e[55]=Q):Q=e[55];let G;e[56]!==K||e[57]!==Q?(G=s.jsx(Ce,{type:"submit",disabled:K,children:Q}),e[56]=K,e[57]=Q,e[58]=G):G=e[58];let F;e[59]!==W||e[60]!==G?(F=s.jsxs(tn,{children:[W,G]}),e[59]=W,e[60]=G,e[61]=F):F=e[61];let B;e[62]!==R||e[63]!==_||e[64]!==F||e[65]!==g?(B=s.jsx(nn,{className:"sm:max-w-md",children:s.jsxs("form",{onSubmit:R,children:[g,_,F]})}),e[62]=R,e[63]=_,e[64]=F,e[65]=g,e[66]=B):B=e[66];let V;return e[67]!==C||e[68]!==p||e[69]!==B?(V=s.jsx(rn,{open:p,onOpenChange:C,children:B}),e[67]=C,e[68]=p,e[69]=B,e[70]=V):V=e[70],V}function Pn(A){const e=Se.c(47),{deleteTarget:p,deleteDirtyPaths:X,fsActionPending:y,onOpenChange:N,onConfirm:L}=A,d=ve(),w=p?.kind==="directory",O=p!==null,x=w?"sandbox.fileExplorerDeleteDialog.titleFolder":"sandbox.fileExplorerDeleteDialog.titleFile";let a;e[0]!==d||e[1]!==x?(a=d(x),e[0]=d,e[1]=x,e[2]=a):a=e[2];let o;e[3]!==a?(o=s.jsx(sn,{children:a}),e[3]=a,e[4]=o):o=e[4];let P;e[5]!==d?(P=d("sandbox.fileExplorerDeleteDialog.description"),e[5]=d,e[6]=P):P=e[6];const Y=p?.name;let M;e[7]!==Y?(M=s.jsx("span",{className:"font-mono",children:Y}),e[7]=Y,e[8]=M):M=e[8];let m;e[9]!==w||e[10]!==d?(m=w?d("sandbox.fileExplorerDeleteDialog.folderSuffix"):".",e[9]=w,e[10]=d,e[11]=m):m=e[11];let c;e[12]!==X.length||e[13]!==d?(c=X.length>0&&s.jsxs(s.Fragment,{children:[" ",X.length===1?d("sandbox.fileExplorerDeleteDialog.unsavedChangesOne"):d("sandbox.fileExplorerDeleteDialog.unsavedChangesMany",{count:X.length})]}),e[12]=X.length,e[13]=d,e[14]=c):c=e[14];let C;e[15]!==P||e[16]!==M||e[17]!==m||e[18]!==c?(C=s.jsxs(ln,{children:[P," ",M,m,c]}),e[15]=P,e[16]=M,e[17]=m,e[18]=c,e[19]=C):C=e[19];let z;e[20]!==C||e[21]!==o?(z=s.jsxs(on,{children:[o,C]}),e[20]=C,e[21]=o,e[22]=z):z=e[22];let R;e[23]!==d?(R=d("sandbox.fileExplorerDeleteDialog.cancel"),e[23]=d,e[24]=R):R=e[24];let S;e[25]!==y||e[26]!==R?(S=s.jsx(an,{disabled:y,children:R}),e[25]=y,e[26]=R,e[27]=S):S=e[27];const v=y||!p;let D;e[28]!==p||e[29]!==L?(D=H=>{H.preventDefault(),p&&L(p)},e[28]=p,e[29]=L,e[30]=D):D=e[30];let j;e[31]!==d?(j=d("sandbox.fileExplorerDeleteDialog.delete"),e[31]=d,e[32]=j):j=e[32];let g;e[33]!==v||e[34]!==D||e[35]!==j?(g=s.jsx(cn,{disabled:v,onClick:D,children:j}),e[33]=v,e[34]=D,e[35]=j,e[36]=g):g=e[36];let E;e[37]!==S||e[38]!==g?(E=s.jsxs(dn,{children:[S,g]}),e[37]=S,e[38]=g,e[39]=E):E=e[39];let b;e[40]!==z||e[41]!==E?(b=s.jsxs(fn,{children:[z,E]}),e[40]=z,e[41]=E,e[42]=b):b=e[42];let k;return e[43]!==N||e[44]!==O||e[45]!==b?(k=s.jsx(un,{open:O,onOpenChange:N,children:b}),e[43]=N,e[44]=O,e[45]=b,e[46]=k):k=e[46],k}const Mn="#d9a441";function Kn(A){const e=Se.c(63),{node:p,depth:X,isExpanded:y,isSelected:N,isLoading:L,fileVisual:d,onOpen:w,onSelect:O,onNewFile:x,onNewFolder:a,onCopyPath:o,onCopyRelativePath:P,onRename:Y,onDelete:M}=A,m=L===void 0?!1:L,c=ve(),C=p.kind==="directory",{Icon:z,color:R}=d,S=N&&"bg-accent";let v;e[0]!==S?(v=xe("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",S),e[0]=S,e[1]=v):v=e[1];const D=`${X*14+8}px`;let j;e[2]!==D?(j={paddingLeft:D},e[2]=D,e[3]=j):j=e[3];let g;e[4]!==w||e[5]!==O?(g=()=>{O(),w()},e[4]=w,e[5]=O,e[6]=g):g=e[6];let E;e[7]!==z||e[8]!==R||e[9]!==C||e[10]!==y||e[11]!==m?(E=C?s.jsxs(s.Fragment,{children:[m?s.jsx(fe,{className:"size-3.5 shrink-0 text-muted-foreground"}):y?s.jsx(hn,{size:14,className:"shrink-0 text-muted-foreground"}):s.jsx(It,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx(Bt,{size:16,className:"shrink-0",style:{color:Mn}})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-3.5 shrink-0"}),s.jsx(z,{size:16,className:"shrink-0",style:{color:R}})]}),e[7]=z,e[8]=R,e[9]=C,e[10]=y,e[11]=m,e[12]=E):E=e[12];let b;e[13]!==p.name?(b=s.jsx("span",{className:"truncate",children:p.name}),e[13]=p.name,e[14]=b):b=e[14];let k;e[15]!==v||e[16]!==j||e[17]!==g||e[18]!==E||e[19]!==b?(k=s.jsx(pn,{asChild:!0,children:s.jsxs("button",{type:"button",className:v,style:j,onClick:g,children:[E,b]})}),e[15]=v,e[16]=j,e[17]=g,e[18]=E,e[19]=b,e[20]=k):k=e[20];let H;e[21]!==c?(H=c("sandbox.fileTreeRow.newFile"),e[21]=c,e[22]=H):H=e[22];let $;e[23]!==x||e[24]!==H?($=s.jsx(de,{onSelect:x,children:H}),e[23]=x,e[24]=H,e[25]=$):$=e[25];let J;e[26]!==c?(J=c("sandbox.fileTreeRow.newFolder"),e[26]=c,e[27]=J):J=e[27];let Z;e[28]!==a||e[29]!==J?(Z=s.jsx(de,{onSelect:a,children:J}),e[28]=a,e[29]=J,e[30]=Z):Z=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(rt,{}),e[31]=_):_=e[31];let I;e[32]!==c?(I=c("sandbox.fileTreeRow.copyPath"),e[32]=c,e[33]=I):I=e[33];let T;e[34]!==o||e[35]!==I?(T=s.jsx(de,{onSelect:o,children:I}),e[34]=o,e[35]=I,e[36]=T):T=e[36];let W;e[37]!==c?(W=c("sandbox.fileTreeRow.copyRelativePath"),e[37]=c,e[38]=W):W=e[38];let K;e[39]!==P||e[40]!==W?(K=s.jsx(de,{onSelect:P,children:W}),e[39]=P,e[40]=W,e[41]=K):K=e[41];let Q;e[42]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(rt,{}),e[42]=Q):Q=e[42];let G;e[43]!==c?(G=c("sandbox.fileTreeRow.rename"),e[43]=c,e[44]=G):G=e[44];let F;e[45]!==Y||e[46]!==G?(F=s.jsx(de,{onSelect:Y,children:G}),e[45]=Y,e[46]=G,e[47]=F):F=e[47];let B;e[48]!==c?(B=c("sandbox.fileTreeRow.delete"),e[48]=c,e[49]=B):B=e[49];let V;e[50]!==M||e[51]!==B?(V=s.jsx(de,{variant:"destructive",onSelect:M,children:B}),e[50]=M,e[51]=B,e[52]=V):V=e[52];let U;e[53]!==$||e[54]!==Z||e[55]!==T||e[56]!==K||e[57]!==F||e[58]!==V?(U=s.jsxs(xn,{className:"w-52",children:[$,Z,_,T,K,Q,F,V]}),e[53]=$,e[54]=Z,e[55]=T,e[56]=K,e[57]=F,e[58]=V,e[59]=U):U=e[59];let te;return e[60]!==U||e[61]!==k?(te=s.jsxs(mn,{children:[k,U]}),e[60]=U,e[61]=k,e[62]=te):te=e[62],te}const st=200,An=2,On=250,it=200;function zn(A,e){return gn(A,e)}function $n(A){const e=Se.c(9),{text:p,query:X}=A;let y,N,L;if(e[0]!==X||e[1]!==p){const{leadingEllipsis:w,segments:O}=En(p,X);y="truncate font-mono text-muted-foreground",N=w&&s.jsx("span",{className:"text-muted-foreground/50",children:"…"}),L=O.map(In),e[0]=X,e[1]=p,e[2]=y,e[3]=N,e[4]=L}else y=e[2],N=e[3],L=e[4];let d;return e[5]!==y||e[6]!==N||e[7]!==L?(d=s.jsxs("span",{className:y,children:[N,L]}),e[5]=y,e[6]=N,e[7]=L,e[8]=d):d=e[8],d}function In(A,e){return A.match?s.jsx("span",{className:"rounded-[2px] bg-primary/20 text-foreground",children:A.text},e):s.jsx("span",{children:A.text},e)}function ps({orgSlug:A,virtualMcpId:e,branch:p,threadId:X,openPath:y}){const N={orgSlug:A,virtualMcpId:e,branch:p,threadId:X},[L,d]=f.useState({files:[],directories:[],truncated:!1}),{files:w,directories:O}=L,[x,a]=f.useState(new Set),[o,P]=f.useState(null),[Y,M]=f.useState(null),[m,c]=f.useState([]),[C,z]=f.useState(""),[R,S]=f.useState(null),[v,D]=f.useState(null),[j,g]=f.useState(!1),[E,b]=f.useState(!1),[k,H]=f.useState(!1),[$,J]=f.useState(!1),[,Z]=f.useState(new Set),[_,I]=f.useState(new Set),T=f.useRef(0),W=f.useRef(null),K=f.useRef(new Set),Q=f.useRef(new Map),G=f.useRef(null),F=f.useRef(0),B=f.useRef(null),V=f.useRef(null),U=f.useRef(null);function te(t){Z(n=>{const r=typeof t=="function"?t(n):t;return K.current=r,r})}const[oe,ae]=f.useState(new Map),Fe=f.useRef(null),[se,me]=f.useState(null),{sendMessage:lt}=Ut(),{openSidePanel:ot}=Yt(),he=Gt(),[q,re]=f.useState(null),[ke,Te]=f.useState(null),[ge,be]=f.useState(!1);async function ie(t,n){const r=await fetch(zn(N,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`Request failed (${r.status})`)}return r.json()}async function ye(){he.invalidateQueries({queryKey:tt(N)})}function $e(t,n,r){navigator.clipboard.writeText(r).then(()=>ee.success(t("sandbox.fileExplorer.textCopied",{label:n})),()=>ee.error(t("sandbox.fileExplorer.failedToCopyText",{label:n.toLowerCase()})))}function at(t){const n=kn(t);if(!n)return;const r=`${A}/${e}/${p}`;he.setQueryData(Je.decofile(r),i=>{if(!i)return i;const{[n]:l,...u}=i;return u}),he.invalidateQueries({queryKey:Je.liveMeta(A,e,p)})}function ct(t){const n=t.kind==="file"?[t.path]:w.filter(r=>r.startsWith(".deco/blocks/")).map(r=>Ne(r)).filter(r=>r===t.path||r.startsWith(`${t.path}/`));for(const r of n)at(r)}function dt(t){const n=Ne(t);return m.filter(r=>{if(r!==n&&!r.startsWith(`${n}/`))return!1;const i=oe.get(r);return!!(i?.loaded&&i.editorValue!==i.savedContent)})}function Ie(t){c(n=>n.map(r=>t(r)).filter(r=>r!==null)),P(n=>n&&t(n)),ae(n=>{const r=new Map;for(const[i,l]of n){const u=t(i);u&&r.set(u,l)}return r}),M(n=>{if(!n)return n;const r=t(n.path);return r?r===n.path?n:{...n,path:r,name:r.split("/").pop()??r}:null})}function ft(t){const n=Ne(t);M(r=>r&&(r.path===n||r.path.startsWith(`${n}/`)?null:r)),Ie(r=>r===n||r.startsWith(`${n}/`)?null:r)}async function ut(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("write",{path:ne(r),content:""}),await ue(),await ye(),re(null),pe(r)}async function pt(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));const i=ne(r);await ie("mkdir",{path:i}),d(l=>({...l,directories:l.directories.includes(i)?l.directories:[...l.directories,i]})),await ue(),await ye(),re(null),a(l=>{const u=new Set(l);for(const le of Ae(r))u.add(le);return u.add(r),u}),M({name:n,path:r,kind:"directory",children:[]})}async function xt(t,n){if(!q)return;const r=q.node.path,i=De(r),l=Ee(i,n);if(l===r){re(null);return}if(ze(l,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("rename",{from:ne(r),to:ne(l)}),Ie(u=>u===r?l:u.startsWith(`${r}/`)?Ee(l,u.slice(r.length+1)):u),await ue(),await ye(),re(null)}async function mt(t,n){be(!0);try{await ie("unlink",{path:ne(n.path),recursive:n.kind==="directory"}),ct(n),ft(n.path),await ue(),await ye(),Te(null),ee.success(t("sandbox.fileExplorer.fileDeleted",{name:n.name}))}catch(r){ee.error(r instanceof Error?r.message:t("sandbox.fileExplorer.deleteFailed"))}finally{be(!1)}}async function ht(t,n){const r=Sn(n);if(r){ee.error(r);return}be(!0);try{q?.mode==="new-file"?(await ut(t,n),ee.success(t("sandbox.fileExplorer.fileCreated",{name:n}))):q?.mode==="new-folder"?(await pt(t,n),ee.success(t("sandbox.fileExplorer.folderCreated",{name:n}))):q?.mode==="rename"&&(await xt(t,n),ee.success(t("sandbox.fileExplorer.renamedTo",{name:n})))}catch(i){ee.error(i instanceof Error?i.message:t("sandbox.fileExplorer.operationFailed"))}finally{be(!1)}}const Ge=f.useRef(!1);Ge.current||(Ge.current=!0,W.current=ue());const[gt,bt]=f.useState(null),h=ve();if(y&&y!==gt){bt(y);const t=y;queueMicrotask(()=>{bn(t)&&pe(t)})}async function Re(t){const n=await ie("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Be(t,n,r){if(r!==T.current)return!1;let i=!1;return d(l=>{const u=n?Tn(l.files,l.directories,t,l.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return i=!!u.truncated,{files:u.files,directories:u.directories,truncated:i}}),i&&ee.warning(h("sandbox.fileExplorer.fileListTruncated")),i}async function yt(t){const n=Q.current.get(t);if(n)return n;const r=T.current,i=(async()=>{const l=await Re({pattern:"**/*",path:ne(t),limit:Pe}),u=Be(l,!0,r);return!u&&r===T.current&&te(le=>{const we=new Set(le);return we.add(t),we}),u})();Q.current.set(t,i);try{return await i}finally{Q.current.delete(t)}}async function Ve(t){if(!Oe(t,K.current))return!1;I(n=>new Set(n).add(t));try{return await yt(t)}finally{I(n=>{const r=new Set(n);return r.delete(t),r})}}async function wt(t,n){const r=new Set(K.current);for(const i of Ae(n)){if(!Oe(i,r))continue;if(await Ve(i))throw new Error(t("sandbox.fileExplorer.folderListingTruncated"));r.add(i)}}async function ue(){const t=++T.current;B.current=null,V.current=null,Q.current.clear(),H(!0),te(new Set),a(new Set),I(new Set);try{const n=await Re({pattern:"**/*",limit:Pe,maxDepth:yn});Be(n,!1,t),J(!0)}catch{$&&ee.error(h("sandbox.fileExplorer.failedToRefreshFileTree"))}finally{H(!1)}}async function qe(t){if(!oe.get(t)?.loaded){ae(r=>{const i=new Map(r);return i.set(t,{savedContent:"",editorValue:"",loaded:!1}),i});try{const r=await ie("read",{path:ne(t),full:!0}),i=Cn(r.content??"");ae(l=>{const u=new Map(l);return u.set(t,{savedContent:i,editorValue:i,loaded:!0}),u})}catch{}}}function jt(){F.current++,S(null),D(null),g(!1),b(!1)}async function Nt(){const t=T.current,n=B.current;if(n&&n.generation===t)return n.files;const r=V.current;if(r&&r.generation===t)return r.promise;const i=(async()=>{const l=await Re({pattern:"**/*",limit:Pe});return T.current===t&&(B.current={generation:t,files:l.files}),l.files})();V.current={generation:t,promise:i};try{return await i}finally{V.current?.generation===t&&(V.current=null)}}async function Dt(t,n){try{const r=await Nt();if(n!==F.current)return;S(vn(r,t,it))}catch{if(n!==F.current)return;S([])}}async function Et(t,n){g(!0);try{const r=await ie("grep",{pattern:t,output_mode:"content",ignore_case:!0,fixed_strings:!0,limit:st});if(n!==F.current)return;D(Fn(r.results??"")),b((r.matchCount??0)>=st)}catch{if(n!==F.current)return;D([]),b(!1)}finally{n===F.current&&g(!1)}}function Ct(t){const n=t.trim(),r=++F.current;Dt(n,r),n.length<An?(D(null),g(!1),b(!1)):Et(n,r)}function St(t){if(z(t),G.current&&clearTimeout(G.current),!t.trim()){jt();return}G.current=setTimeout(()=>{Ct(t)},On)}function He(t){const n=U.current;if(!n||n.path!==o)return;U.current=null;const r=Math.max(1,n.line);t.revealLineInCenter(r),t.setPosition({lineNumber:r,column:1}),t.focus()}function vt(t){U.current={path:t.path,line:t.line};const n=o===t.path&&oe.get(t.path)?.loaded;pe(t.path),n&&Fe.current&&He(Fe.current)}async function Ft(t,n){try{await ie("write",{path:ne(t),content:n}),je("file saved via sandbox /write",{path:t}),he.invalidateQueries({queryKey:tt(N)});try{const r=await Jt(N);je("git status after save",r)}catch(r){je("git status after save failed",{path:t,error:r instanceof Error?r.message:String(r)})}ae(r=>{const i=new Map(r),l=i.get(t);return l&&i.set(t,{...l,savedContent:n}),i})}catch(r){je("file save failed",{path:t,error:r instanceof Error?r.message:String(r)})}}function kt(t){P(t),M({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),me(null),m.includes(t)||c(n=>[...n,t]),qe(t)}function Tt(t){const n=oe.get(t);n?.loaded&&n.editorValue!==n.savedContent&&!window.confirm(h("sandbox.fileExplorer.discardUnsavedChangesConfirm"))||(c(i=>{const l=i.filter(u=>u!==t);return o===t&&P(l[l.length-1]??null),l}),ae(i=>{const l=new Map(i);return l.delete(t),l}))}function We(t){a(n=>{const r=new Set(n);return r.has(t)?r.delete(t):r.add(t),r})}async function Rt(t){if(Oe(t,K.current))try{if(await Ve(t))return}catch(n){ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToLoadFolder"));return}We(t)}async function Lt(t,n){if(n){We(t);return}await Rt(t)}async function Pt(t){await W.current,await wt(h,t);const n=Ae(t);a(r=>{const i=new Set(r);for(const l of n)i.add(l);return i}),kt(t)}function pe(t){Pt(t).catch(n=>{ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToOpenFile"))})}function Mt(){return Y?.kind==="directory"?Y.path:Y?.kind==="file"?De(Y.path):o?De(o):"/"}function Qe(t){const n=Mt();re({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const Kt=wn(w,O),Ue=jn(Kt,x),Le=R?.length??0,Xe=Nn(v??[]),Ye=v?.length??0,ce=o?oe.get(o):null,At=ce?.loaded&&ce.editorValue!==ce.savedContent,Ot=ke?dt(ke.path):[],zt=(t,n)=>{Fe.current=t,He(t),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!o)return;const r=t.getValue();await Ft(o,r)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const r=t.getSelection(),i=t.getModel();if(!r||!i||!o)return;const l=i.getValueInRange(r);me({filePath:o,lineStart:r.startLineNumber,lineEnd:r.endLineNumber,selectedCode:l})})};function $t(t){if(!se)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${se.filePath}\``,`**Lines:** ${se.lineStart}–${se.lineEnd}`];if(se.selectedCode){const r=Ke(se.filePath),i=se.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+r,i,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),ot(),lt({parts:[{type:"text",text:n.join(`
|
|
1
|
+
import{c as Se,b as ve,r as f,j as s,h as fe,B as Ce,l as xe,ak as It,o as Gt,t as ee,K as Je}from"./index-BHW38fGm.js";import{l as Bt,E as Vt,bA as qt,bB as Ht}from"./agent-icon-vRJX06Pc.js";import{s as Wt}from"./XClose-C5QcJ6D0.js";import{S as Qt}from"./scroll-area-DKRRTLu0.js";import{b as Ze,T as _e,a as et}from"./tooltip-PjEixjdK.js";import{a as Ut}from"./chat-context-CHMvG291.js";import{F as Xt}from"./editor-AvxByRxT.js";import{a as Yt}from"./shell-layout-C1uyapYT.js";import{s as je}from"./save-changes-debug-nBi-n9eV.js";import{o as tt,f as Jt}from"./sandbox-git-api-B1R0585s.js";import{d as Zt,h as _t,c as en,e as tn,b as nn,D as rn}from"./dialog-Dlbcts3k.js";import{I as nt}from"./input-DPbtX44w.js";import{A as sn,a as ln,b as on,c as an,g as cn,d as dn,e as fn,f as un}from"./alert-dialog-D1CSBuVt.js";import{f as pn,C as de,d as rt,g as xn,e as mn}from"./context-menu-D8wMMh_Q.js";import{t as hn}from"./ChevronUp-DGldI0Ph.js";import{b as gn}from"./sandbox-url-D3mC8qhT.js";import{i as bn,E as yn,c as Pe,e as wn,f as jn,h as Nn,j as Dn,t as ne,k as Ne,l as Me,m as De,g as Ke,n as Ae,o as En,s as Cn,v as Sn,p as Oe,q as Ee,r as ze,u as vn,w as Fn,x as kn,y as Tn}from"./utils-7K5OBDxA.js";import"./AlertCircle-DKmCApDa.js";import"./Tool01-Dk2ye-LU.js";import"./ArrowUp-BJY8NUma.js";import"./ArrowLeft-BwFqyUG8.js";import"./ArrowRight-CHV05UUB.js";import"./ShoppingBag01-DznHZPA0.js";import"./ZoomOut-BWkCTBCz.js";import"./Palette-DZVSqT20.js";import"./CheckCircle-Dk8xW2dQ.js";import"./Check-DNTKbOF1.js";import"./UserSquare-lb7I00eF.js";import"./Copy01-6fj6p2dr.js";import"./CreditCard01-BIdq_aTI.js";import"./DotsVertical-CgKNtAHX.js";import"./Image01-0p0qVrVu.js";import"./Key01-D7BOKCsv.js";import"./Link01-BY6r9e0W.js";import"./LinkExternal01-7OpzTzCD.js";import"./Monitor01-Wlo-v8rP.js";import"./Sun-eXH36H9e.js";import"./Plus-BZ-9hfZe.js";import"./SearchMd-CtjLEzGO.js";import"./Trash01-Gu3_9b_o.js";import"./Upload01-uetj4iXc.js";import"./User01-D1mABHDT.js";import"./Users01-CobN2IHd.js";import"./X-BdLoi6uz.js";import"./select-D-HKKCDO.js";import"./index-Cpvm6arG.js";import"./use-panel-navigate-Cz0Mqgtu.js";import"./thread-route-D8LjpvTD.js";import"./use-project-scope-BVOC74Pv.js";import"./repository-binding-BT7w56g8.js";import"./use-mcp-client-BXMLDsCy.js";import"./auth-oZFMRz6f.js";import"./autosend-BR-AxRqX.js";import"./thread-intent-DVeAqXLf.js";import"./backoff-8mStPHYB.js";import"./task-board-CV8L72bN.js";import"./schema-HLNkH6Wb.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-Dz3T4koV.js";import"./use-ai-providers-D89dN8IX.js";import"./location-DBePU4bz.js";import"./use-organization-settings-DrCEGV8b.js";import"./avatar-CVyfIjHq.js";import"./download-app-dialog-eZatHcib.js";import"./command-B3-BMEIX.js";import"./index-vOT5DJhb.js";import"./integration-icon-C8GyVZME.js";import"./project-icon-CEvmcihT.js";import"./new-project-dialog-CNtRe0-Y.js";import"./label-BHCiWeM9.js";import"./repository-import-picker-BvwCcqd0.js";import"./use-navigate-to-agent-w4dyiPcQ.js";import"./repository-picker-WnaJ3OBj.js";import"./useInfiniteQuery-C-pCSug8.js";import"./infiniteQueryObserver-C4v_Tvdc.js";import"./collection-search-VYsS9TLc.js";import"./use-debounced-value-BmJwJfAX.js";import"./required-auth-layout-oADKB4ry.js";import"./use-org-sso-Cccoz5_e.js";const Rn={"new-file":{titleKey:"sandbox.fileExplorerNameDialog.newFileTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFileDescription",submitKey:"sandbox.fileExplorerNameDialog.newFileSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFilePlaceholder"},"new-folder":{titleKey:"sandbox.fileExplorerNameDialog.newFolderTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFolderDescription",submitKey:"sandbox.fileExplorerNameDialog.newFolderSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFolderPlaceholder"},rename:{titleKey:"sandbox.fileExplorerNameDialog.renameTitle",descriptionKey:"sandbox.fileExplorerNameDialog.renameDescription",submitKey:"sandbox.fileExplorerNameDialog.renameSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.renamePlaceholder"}};function Ln(A){const e=Se.c(71),{open:p,mode:X,initialName:y,parentLabel:N,isPending:L,onSubmit:d,onOpenChange:w}=A,O=y===void 0?"":y,x=L===void 0?!1:L,a=ve(),[o,P]=f.useState(O),[Y,M]=f.useState(p),m=Rn[X];p!==Y&&(M(p),p&&P(O));let c;e[0]!==x||e[1]!==w?(c=U=>{!U&&!x&&w(!1)},e[0]=x,e[1]=w,e[2]=c):c=e[2];const C=c;let z;e[3]!==x||e[4]!==o||e[5]!==d?(z=async U=>{U.preventDefault();const te=o.trim();!te||x||await d(te)},e[3]=x,e[4]=o,e[5]=d,e[6]=z):z=e[6];const R=z;let S;e[7]!==m.titleKey||e[8]!==a?(S=a(m.titleKey),e[7]=m.titleKey,e[8]=a,e[9]=S):S=e[9];let v;e[10]!==S?(v=s.jsx(Zt,{children:S}),e[10]=S,e[11]=v):v=e[11];let D;e[12]!==m.descriptionKey||e[13]!==a?(D=a(m.descriptionKey),e[12]=m.descriptionKey,e[13]=a,e[14]=D):D=e[14];let j;e[15]!==D?(j=s.jsx(_t,{children:D}),e[15]=D,e[16]=j):j=e[16];let g;e[17]!==v||e[18]!==j?(g=s.jsxs(en,{children:[v,j]}),e[17]=v,e[18]=j,e[19]=g):g=e[19];let E;e[20]!==N||e[21]!==a?(E=N&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:a("sandbox.fileExplorerNameDialog.location")}),s.jsx(nt,{value:N,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[20]=N,e[21]=a,e[22]=E):E=e[22];let b;e[23]!==a?(b=a("sandbox.fileExplorerNameDialog.name"),e[23]=a,e[24]=b):b=e[24];let k;e[25]!==b?(k=s.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:b}),e[25]=b,e[26]=k):k=e[26];let H;e[27]===Symbol.for("react.memo_cache_sentinel")?(H=U=>P(U.target.value),e[27]=H):H=e[27];let $;e[28]!==m.placeholderKey||e[29]!==a?($=a(m.placeholderKey),e[28]=m.placeholderKey,e[29]=a,e[30]=$):$=e[30];let J;e[31]!==x||e[32]!==o||e[33]!==$?(J=s.jsx(nt,{id:"file-explorer-name",value:o,onChange:H,placeholder:$,autoFocus:!0,disabled:x}),e[31]=x,e[32]=o,e[33]=$,e[34]=J):J=e[34];let Z;e[35]!==k||e[36]!==J?(Z=s.jsxs("div",{className:"space-y-1.5",children:[k,J]}),e[35]=k,e[36]=J,e[37]=Z):Z=e[37];let _;e[38]!==E||e[39]!==Z?(_=s.jsxs("div",{className:"space-y-4 py-4",children:[E,Z]}),e[38]=E,e[39]=Z,e[40]=_):_=e[40];let I;e[41]!==w?(I=()=>w(!1),e[41]=w,e[42]=I):I=e[42];let T;e[43]!==a?(T=a("sandbox.fileExplorerNameDialog.cancel"),e[43]=a,e[44]=T):T=e[44];let W;e[45]!==x||e[46]!==I||e[47]!==T?(W=s.jsx(Ce,{type:"button",variant:"outline",onClick:I,disabled:x,children:T}),e[45]=x,e[46]=I,e[47]=T,e[48]=W):W=e[48];let K;e[49]!==x||e[50]!==o?(K=!o.trim()||x,e[49]=x,e[50]=o,e[51]=K):K=e[51];let Q;e[52]!==m.submitKey||e[53]!==x||e[54]!==a?(Q=x?s.jsxs(s.Fragment,{children:[s.jsx(fe,{className:"size-3.5"}),a("sandbox.fileExplorerNameDialog.saving")]}):a(m.submitKey),e[52]=m.submitKey,e[53]=x,e[54]=a,e[55]=Q):Q=e[55];let G;e[56]!==K||e[57]!==Q?(G=s.jsx(Ce,{type:"submit",disabled:K,children:Q}),e[56]=K,e[57]=Q,e[58]=G):G=e[58];let F;e[59]!==W||e[60]!==G?(F=s.jsxs(tn,{children:[W,G]}),e[59]=W,e[60]=G,e[61]=F):F=e[61];let B;e[62]!==R||e[63]!==_||e[64]!==F||e[65]!==g?(B=s.jsx(nn,{className:"sm:max-w-md",children:s.jsxs("form",{onSubmit:R,children:[g,_,F]})}),e[62]=R,e[63]=_,e[64]=F,e[65]=g,e[66]=B):B=e[66];let V;return e[67]!==C||e[68]!==p||e[69]!==B?(V=s.jsx(rn,{open:p,onOpenChange:C,children:B}),e[67]=C,e[68]=p,e[69]=B,e[70]=V):V=e[70],V}function Pn(A){const e=Se.c(47),{deleteTarget:p,deleteDirtyPaths:X,fsActionPending:y,onOpenChange:N,onConfirm:L}=A,d=ve(),w=p?.kind==="directory",O=p!==null,x=w?"sandbox.fileExplorerDeleteDialog.titleFolder":"sandbox.fileExplorerDeleteDialog.titleFile";let a;e[0]!==d||e[1]!==x?(a=d(x),e[0]=d,e[1]=x,e[2]=a):a=e[2];let o;e[3]!==a?(o=s.jsx(sn,{children:a}),e[3]=a,e[4]=o):o=e[4];let P;e[5]!==d?(P=d("sandbox.fileExplorerDeleteDialog.description"),e[5]=d,e[6]=P):P=e[6];const Y=p?.name;let M;e[7]!==Y?(M=s.jsx("span",{className:"font-mono",children:Y}),e[7]=Y,e[8]=M):M=e[8];let m;e[9]!==w||e[10]!==d?(m=w?d("sandbox.fileExplorerDeleteDialog.folderSuffix"):".",e[9]=w,e[10]=d,e[11]=m):m=e[11];let c;e[12]!==X.length||e[13]!==d?(c=X.length>0&&s.jsxs(s.Fragment,{children:[" ",X.length===1?d("sandbox.fileExplorerDeleteDialog.unsavedChangesOne"):d("sandbox.fileExplorerDeleteDialog.unsavedChangesMany",{count:X.length})]}),e[12]=X.length,e[13]=d,e[14]=c):c=e[14];let C;e[15]!==P||e[16]!==M||e[17]!==m||e[18]!==c?(C=s.jsxs(ln,{children:[P," ",M,m,c]}),e[15]=P,e[16]=M,e[17]=m,e[18]=c,e[19]=C):C=e[19];let z;e[20]!==C||e[21]!==o?(z=s.jsxs(on,{children:[o,C]}),e[20]=C,e[21]=o,e[22]=z):z=e[22];let R;e[23]!==d?(R=d("sandbox.fileExplorerDeleteDialog.cancel"),e[23]=d,e[24]=R):R=e[24];let S;e[25]!==y||e[26]!==R?(S=s.jsx(an,{disabled:y,children:R}),e[25]=y,e[26]=R,e[27]=S):S=e[27];const v=y||!p;let D;e[28]!==p||e[29]!==L?(D=H=>{H.preventDefault(),p&&L(p)},e[28]=p,e[29]=L,e[30]=D):D=e[30];let j;e[31]!==d?(j=d("sandbox.fileExplorerDeleteDialog.delete"),e[31]=d,e[32]=j):j=e[32];let g;e[33]!==v||e[34]!==D||e[35]!==j?(g=s.jsx(cn,{disabled:v,onClick:D,children:j}),e[33]=v,e[34]=D,e[35]=j,e[36]=g):g=e[36];let E;e[37]!==S||e[38]!==g?(E=s.jsxs(dn,{children:[S,g]}),e[37]=S,e[38]=g,e[39]=E):E=e[39];let b;e[40]!==z||e[41]!==E?(b=s.jsxs(fn,{children:[z,E]}),e[40]=z,e[41]=E,e[42]=b):b=e[42];let k;return e[43]!==N||e[44]!==O||e[45]!==b?(k=s.jsx(un,{open:O,onOpenChange:N,children:b}),e[43]=N,e[44]=O,e[45]=b,e[46]=k):k=e[46],k}const Mn="#d9a441";function Kn(A){const e=Se.c(63),{node:p,depth:X,isExpanded:y,isSelected:N,isLoading:L,fileVisual:d,onOpen:w,onSelect:O,onNewFile:x,onNewFolder:a,onCopyPath:o,onCopyRelativePath:P,onRename:Y,onDelete:M}=A,m=L===void 0?!1:L,c=ve(),C=p.kind==="directory",{Icon:z,color:R}=d,S=N&&"bg-accent";let v;e[0]!==S?(v=xe("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",S),e[0]=S,e[1]=v):v=e[1];const D=`${X*14+8}px`;let j;e[2]!==D?(j={paddingLeft:D},e[2]=D,e[3]=j):j=e[3];let g;e[4]!==w||e[5]!==O?(g=()=>{O(),w()},e[4]=w,e[5]=O,e[6]=g):g=e[6];let E;e[7]!==z||e[8]!==R||e[9]!==C||e[10]!==y||e[11]!==m?(E=C?s.jsxs(s.Fragment,{children:[m?s.jsx(fe,{className:"size-3.5 shrink-0 text-muted-foreground"}):y?s.jsx(hn,{size:14,className:"shrink-0 text-muted-foreground"}):s.jsx(It,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx(Bt,{size:16,className:"shrink-0",style:{color:Mn}})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-3.5 shrink-0"}),s.jsx(z,{size:16,className:"shrink-0",style:{color:R}})]}),e[7]=z,e[8]=R,e[9]=C,e[10]=y,e[11]=m,e[12]=E):E=e[12];let b;e[13]!==p.name?(b=s.jsx("span",{className:"truncate",children:p.name}),e[13]=p.name,e[14]=b):b=e[14];let k;e[15]!==v||e[16]!==j||e[17]!==g||e[18]!==E||e[19]!==b?(k=s.jsx(pn,{asChild:!0,children:s.jsxs("button",{type:"button",className:v,style:j,onClick:g,children:[E,b]})}),e[15]=v,e[16]=j,e[17]=g,e[18]=E,e[19]=b,e[20]=k):k=e[20];let H;e[21]!==c?(H=c("sandbox.fileTreeRow.newFile"),e[21]=c,e[22]=H):H=e[22];let $;e[23]!==x||e[24]!==H?($=s.jsx(de,{onSelect:x,children:H}),e[23]=x,e[24]=H,e[25]=$):$=e[25];let J;e[26]!==c?(J=c("sandbox.fileTreeRow.newFolder"),e[26]=c,e[27]=J):J=e[27];let Z;e[28]!==a||e[29]!==J?(Z=s.jsx(de,{onSelect:a,children:J}),e[28]=a,e[29]=J,e[30]=Z):Z=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(rt,{}),e[31]=_):_=e[31];let I;e[32]!==c?(I=c("sandbox.fileTreeRow.copyPath"),e[32]=c,e[33]=I):I=e[33];let T;e[34]!==o||e[35]!==I?(T=s.jsx(de,{onSelect:o,children:I}),e[34]=o,e[35]=I,e[36]=T):T=e[36];let W;e[37]!==c?(W=c("sandbox.fileTreeRow.copyRelativePath"),e[37]=c,e[38]=W):W=e[38];let K;e[39]!==P||e[40]!==W?(K=s.jsx(de,{onSelect:P,children:W}),e[39]=P,e[40]=W,e[41]=K):K=e[41];let Q;e[42]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(rt,{}),e[42]=Q):Q=e[42];let G;e[43]!==c?(G=c("sandbox.fileTreeRow.rename"),e[43]=c,e[44]=G):G=e[44];let F;e[45]!==Y||e[46]!==G?(F=s.jsx(de,{onSelect:Y,children:G}),e[45]=Y,e[46]=G,e[47]=F):F=e[47];let B;e[48]!==c?(B=c("sandbox.fileTreeRow.delete"),e[48]=c,e[49]=B):B=e[49];let V;e[50]!==M||e[51]!==B?(V=s.jsx(de,{variant:"destructive",onSelect:M,children:B}),e[50]=M,e[51]=B,e[52]=V):V=e[52];let U;e[53]!==$||e[54]!==Z||e[55]!==T||e[56]!==K||e[57]!==F||e[58]!==V?(U=s.jsxs(xn,{className:"w-52",children:[$,Z,_,T,K,Q,F,V]}),e[53]=$,e[54]=Z,e[55]=T,e[56]=K,e[57]=F,e[58]=V,e[59]=U):U=e[59];let te;return e[60]!==U||e[61]!==k?(te=s.jsxs(mn,{children:[k,U]}),e[60]=U,e[61]=k,e[62]=te):te=e[62],te}const st=200,An=2,On=250,it=200;function zn(A,e){return gn(A,e)}function $n(A){const e=Se.c(9),{text:p,query:X}=A;let y,N,L;if(e[0]!==X||e[1]!==p){const{leadingEllipsis:w,segments:O}=En(p,X);y="truncate font-mono text-muted-foreground",N=w&&s.jsx("span",{className:"text-muted-foreground/50",children:"…"}),L=O.map(In),e[0]=X,e[1]=p,e[2]=y,e[3]=N,e[4]=L}else y=e[2],N=e[3],L=e[4];let d;return e[5]!==y||e[6]!==N||e[7]!==L?(d=s.jsxs("span",{className:y,children:[N,L]}),e[5]=y,e[6]=N,e[7]=L,e[8]=d):d=e[8],d}function In(A,e){return A.match?s.jsx("span",{className:"rounded-[2px] bg-primary/20 text-foreground",children:A.text},e):s.jsx("span",{children:A.text},e)}function ps({orgSlug:A,virtualMcpId:e,branch:p,threadId:X,openPath:y}){const N={orgSlug:A,virtualMcpId:e,branch:p,threadId:X},[L,d]=f.useState({files:[],directories:[],truncated:!1}),{files:w,directories:O}=L,[x,a]=f.useState(new Set),[o,P]=f.useState(null),[Y,M]=f.useState(null),[m,c]=f.useState([]),[C,z]=f.useState(""),[R,S]=f.useState(null),[v,D]=f.useState(null),[j,g]=f.useState(!1),[E,b]=f.useState(!1),[k,H]=f.useState(!1),[$,J]=f.useState(!1),[,Z]=f.useState(new Set),[_,I]=f.useState(new Set),T=f.useRef(0),W=f.useRef(null),K=f.useRef(new Set),Q=f.useRef(new Map),G=f.useRef(null),F=f.useRef(0),B=f.useRef(null),V=f.useRef(null),U=f.useRef(null);function te(t){Z(n=>{const r=typeof t=="function"?t(n):t;return K.current=r,r})}const[oe,ae]=f.useState(new Map),Fe=f.useRef(null),[se,me]=f.useState(null),{sendMessage:lt}=Ut(),{openSidePanel:ot}=Yt(),he=Gt(),[q,re]=f.useState(null),[ke,Te]=f.useState(null),[ge,be]=f.useState(!1);async function ie(t,n){const r=await fetch(zn(N,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`Request failed (${r.status})`)}return r.json()}async function ye(){he.invalidateQueries({queryKey:tt(N)})}function $e(t,n,r){navigator.clipboard.writeText(r).then(()=>ee.success(t("sandbox.fileExplorer.textCopied",{label:n})),()=>ee.error(t("sandbox.fileExplorer.failedToCopyText",{label:n.toLowerCase()})))}function at(t){const n=kn(t);if(!n)return;const r=`${A}/${e}/${p}`;he.setQueryData(Je.decofile(r),i=>{if(!i)return i;const{[n]:l,...u}=i;return u}),he.invalidateQueries({queryKey:Je.liveMeta(A,e,p)})}function ct(t){const n=t.kind==="file"?[t.path]:w.filter(r=>r.startsWith(".deco/blocks/")).map(r=>Ne(r)).filter(r=>r===t.path||r.startsWith(`${t.path}/`));for(const r of n)at(r)}function dt(t){const n=Ne(t);return m.filter(r=>{if(r!==n&&!r.startsWith(`${n}/`))return!1;const i=oe.get(r);return!!(i?.loaded&&i.editorValue!==i.savedContent)})}function Ie(t){c(n=>n.map(r=>t(r)).filter(r=>r!==null)),P(n=>n&&t(n)),ae(n=>{const r=new Map;for(const[i,l]of n){const u=t(i);u&&r.set(u,l)}return r}),M(n=>{if(!n)return n;const r=t(n.path);return r?r===n.path?n:{...n,path:r,name:r.split("/").pop()??r}:null})}function ft(t){const n=Ne(t);M(r=>r&&(r.path===n||r.path.startsWith(`${n}/`)?null:r)),Ie(r=>r===n||r.startsWith(`${n}/`)?null:r)}async function ut(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("write",{path:ne(r),content:""}),await ue(),await ye(),re(null),pe(r)}async function pt(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));const i=ne(r);await ie("mkdir",{path:i}),d(l=>({...l,directories:l.directories.includes(i)?l.directories:[...l.directories,i]})),await ue(),await ye(),re(null),a(l=>{const u=new Set(l);for(const le of Ae(r))u.add(le);return u.add(r),u}),M({name:n,path:r,kind:"directory",children:[]})}async function xt(t,n){if(!q)return;const r=q.node.path,i=De(r),l=Ee(i,n);if(l===r){re(null);return}if(ze(l,w,O))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("rename",{from:ne(r),to:ne(l)}),Ie(u=>u===r?l:u.startsWith(`${r}/`)?Ee(l,u.slice(r.length+1)):u),await ue(),await ye(),re(null)}async function mt(t,n){be(!0);try{await ie("unlink",{path:ne(n.path),recursive:n.kind==="directory"}),ct(n),ft(n.path),await ue(),await ye(),Te(null),ee.success(t("sandbox.fileExplorer.fileDeleted",{name:n.name}))}catch(r){ee.error(r instanceof Error?r.message:t("sandbox.fileExplorer.deleteFailed"))}finally{be(!1)}}async function ht(t,n){const r=Sn(n);if(r){ee.error(r);return}be(!0);try{q?.mode==="new-file"?(await ut(t,n),ee.success(t("sandbox.fileExplorer.fileCreated",{name:n}))):q?.mode==="new-folder"?(await pt(t,n),ee.success(t("sandbox.fileExplorer.folderCreated",{name:n}))):q?.mode==="rename"&&(await xt(t,n),ee.success(t("sandbox.fileExplorer.renamedTo",{name:n})))}catch(i){ee.error(i instanceof Error?i.message:t("sandbox.fileExplorer.operationFailed"))}finally{be(!1)}}const Ge=f.useRef(!1);Ge.current||(Ge.current=!0,W.current=ue());const[gt,bt]=f.useState(null),h=ve();if(y&&y!==gt){bt(y);const t=y;queueMicrotask(()=>{bn(t)&&pe(t)})}async function Re(t){const n=await ie("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Be(t,n,r){if(r!==T.current)return!1;let i=!1;return d(l=>{const u=n?Tn(l.files,l.directories,t,l.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return i=!!u.truncated,{files:u.files,directories:u.directories,truncated:i}}),i&&ee.warning(h("sandbox.fileExplorer.fileListTruncated")),i}async function yt(t){const n=Q.current.get(t);if(n)return n;const r=T.current,i=(async()=>{const l=await Re({pattern:"**/*",path:ne(t),limit:Pe}),u=Be(l,!0,r);return!u&&r===T.current&&te(le=>{const we=new Set(le);return we.add(t),we}),u})();Q.current.set(t,i);try{return await i}finally{Q.current.delete(t)}}async function Ve(t){if(!Oe(t,K.current))return!1;I(n=>new Set(n).add(t));try{return await yt(t)}finally{I(n=>{const r=new Set(n);return r.delete(t),r})}}async function wt(t,n){const r=new Set(K.current);for(const i of Ae(n)){if(!Oe(i,r))continue;if(await Ve(i))throw new Error(t("sandbox.fileExplorer.folderListingTruncated"));r.add(i)}}async function ue(){const t=++T.current;B.current=null,V.current=null,Q.current.clear(),H(!0),te(new Set),a(new Set),I(new Set);try{const n=await Re({pattern:"**/*",limit:Pe,maxDepth:yn});Be(n,!1,t),J(!0)}catch{$&&ee.error(h("sandbox.fileExplorer.failedToRefreshFileTree"))}finally{H(!1)}}async function qe(t){if(!oe.get(t)?.loaded){ae(r=>{const i=new Map(r);return i.set(t,{savedContent:"",editorValue:"",loaded:!1}),i});try{const r=await ie("read",{path:ne(t),full:!0}),i=Cn(r.content??"");ae(l=>{const u=new Map(l);return u.set(t,{savedContent:i,editorValue:i,loaded:!0}),u})}catch{}}}function jt(){F.current++,S(null),D(null),g(!1),b(!1)}async function Nt(){const t=T.current,n=B.current;if(n&&n.generation===t)return n.files;const r=V.current;if(r&&r.generation===t)return r.promise;const i=(async()=>{const l=await Re({pattern:"**/*",limit:Pe});return T.current===t&&(B.current={generation:t,files:l.files}),l.files})();V.current={generation:t,promise:i};try{return await i}finally{V.current?.generation===t&&(V.current=null)}}async function Dt(t,n){try{const r=await Nt();if(n!==F.current)return;S(vn(r,t,it))}catch{if(n!==F.current)return;S([])}}async function Et(t,n){g(!0);try{const r=await ie("grep",{pattern:t,output_mode:"content",ignore_case:!0,fixed_strings:!0,limit:st});if(n!==F.current)return;D(Fn(r.results??"")),b((r.matchCount??0)>=st)}catch{if(n!==F.current)return;D([]),b(!1)}finally{n===F.current&&g(!1)}}function Ct(t){const n=t.trim(),r=++F.current;Dt(n,r),n.length<An?(D(null),g(!1),b(!1)):Et(n,r)}function St(t){if(z(t),G.current&&clearTimeout(G.current),!t.trim()){jt();return}G.current=setTimeout(()=>{Ct(t)},On)}function He(t){const n=U.current;if(!n||n.path!==o)return;U.current=null;const r=Math.max(1,n.line);t.revealLineInCenter(r),t.setPosition({lineNumber:r,column:1}),t.focus()}function vt(t){U.current={path:t.path,line:t.line};const n=o===t.path&&oe.get(t.path)?.loaded;pe(t.path),n&&Fe.current&&He(Fe.current)}async function Ft(t,n){try{await ie("write",{path:ne(t),content:n}),je("file saved via sandbox /write",{path:t}),he.invalidateQueries({queryKey:tt(N)});try{const r=await Jt(N);je("git status after save",r)}catch(r){je("git status after save failed",{path:t,error:r instanceof Error?r.message:String(r)})}ae(r=>{const i=new Map(r),l=i.get(t);return l&&i.set(t,{...l,savedContent:n}),i})}catch(r){je("file save failed",{path:t,error:r instanceof Error?r.message:String(r)})}}function kt(t){P(t),M({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),me(null),m.includes(t)||c(n=>[...n,t]),qe(t)}function Tt(t){const n=oe.get(t);n?.loaded&&n.editorValue!==n.savedContent&&!window.confirm(h("sandbox.fileExplorer.discardUnsavedChangesConfirm"))||(c(i=>{const l=i.filter(u=>u!==t);return o===t&&P(l[l.length-1]??null),l}),ae(i=>{const l=new Map(i);return l.delete(t),l}))}function We(t){a(n=>{const r=new Set(n);return r.has(t)?r.delete(t):r.add(t),r})}async function Rt(t){if(Oe(t,K.current))try{if(await Ve(t))return}catch(n){ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToLoadFolder"));return}We(t)}async function Lt(t,n){if(n){We(t);return}await Rt(t)}async function Pt(t){await W.current,await wt(h,t);const n=Ae(t);a(r=>{const i=new Set(r);for(const l of n)i.add(l);return i}),kt(t)}function pe(t){Pt(t).catch(n=>{ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToOpenFile"))})}function Mt(){return Y?.kind==="directory"?Y.path:Y?.kind==="file"?De(Y.path):o?De(o):"/"}function Qe(t){const n=Mt();re({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const Kt=wn(w,O),Ue=jn(Kt,x),Le=R?.length??0,Xe=Nn(v??[]),Ye=v?.length??0,ce=o?oe.get(o):null,At=ce?.loaded&&ce.editorValue!==ce.savedContent,Ot=ke?dt(ke.path):[],zt=(t,n)=>{Fe.current=t,He(t),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!o)return;const r=t.getValue();await Ft(o,r)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const r=t.getSelection(),i=t.getModel();if(!r||!i||!o)return;const l=i.getValueInRange(r);me({filePath:o,lineStart:r.startLineNumber,lineEnd:r.endLineNumber,selectedCode:l})})};function $t(t){if(!se)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${se.filePath}\``,`**Lines:** ${se.lineStart}–${se.lineEnd}`];if(se.selectedCode){const r=Ke(se.filePath),i=se.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+r,i,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),ot(),lt({parts:[{type:"text",text:n.join(`
|
|
2
2
|
`)}]}),me(null)}return k&&!$?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[s.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[s.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[s.jsxs("div",{className:"relative min-w-0 flex-1",children:[s.jsx(Vt,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),s.jsx("input",{type:"text",value:C,onChange:t=>St(t.target.value),placeholder:h("sandbox.fileExplorer.searchFilesPlaceholder"),"aria-label":h("sandbox.fileExplorer.searchFilesLabel"),className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus:ring-1 focus:ring-ring"})]}),s.jsxs(Ze,{children:[s.jsx(_e,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":h("sandbox.fileExplorer.newFileLabel"),onClick:()=>Qe("new-file"),children:s.jsx(qt,{size:14})})}),s.jsx(et,{side:"bottom",children:h("sandbox.fileExplorer.newFile")})]}),s.jsxs(Ze,{children:[s.jsx(_e,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":h("sandbox.fileExplorer.newFolderLabel"),onClick:()=>Qe("new-folder"),children:s.jsx(Ht,{size:14})})}),s.jsx(et,{side:"bottom",children:h("sandbox.fileExplorer.newFolder")})]})]}),s.jsx(Qt,{className:"flex-1",children:s.jsxs("div",{className:"py-1",children:[!C&&Ue.map(t=>{const{node:n,depth:r}=t,i=n.kind==="directory",l=x.has(n.path),u=Y?.path===n.path,le=Dn(n.path,n.kind),we=i&&_.has(n.path);return s.jsx(Kn,{node:n,depth:r,isExpanded:l,isSelected:u,isLoading:we,fileVisual:Me(n.name),onSelect:()=>M(n),onOpen:()=>{i?Lt(n.path,l):pe(n.path)},onNewFile:()=>re({mode:"new-file",node:n,parentDir:le}),onNewFolder:()=>re({mode:"new-folder",node:n,parentDir:le}),onCopyPath:()=>$e(h,"Path",Ne(n.path)),onCopyRelativePath:()=>$e(h,"Relative path",ne(n.path)),onRename:()=>re({mode:"rename",node:n,parentDir:le}),onDelete:()=>Te(n)},n.path)}),!C&&$&&Ue.length===0&&s.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFilesFound")}),C&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.files")}),Le>0&&s.jsxs("span",{className:"normal-case tracking-normal text-muted-foreground/70",children:[Le,Le>=it?"+":""]})]}),R!==null&&R.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFileNamesMatch")}),R?.map(t=>{const n=t.split("/").pop()??t,r=De(t),{Icon:i,color:l}=Me(n),u=o===t;return s.jsxs("button",{type:"button",onClick:()=>pe(t),title:t,className:xe("flex w-full items-center gap-1.5 px-3 py-1 text-left text-xs hover:bg-accent",u&&"bg-accent"),children:[s.jsx(i,{size:14,className:xe("shrink-0",l)}),s.jsx("span",{className:"max-w-40 shrink-0 truncate",children:n}),r!=="/"&&s.jsx("span",{className:"truncate text-muted-foreground/60",children:r})]},t)})]}),C&&s.jsxs("div",{className:"mt-1 border-t pt-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.inFiles")}),Ye>0&&s.jsxs("span",{className:"text-muted-foreground/70 normal-case tracking-normal",children:[Ye,E?"+":""]}),j&&s.jsx(fe,{className:"size-[10px]"})]}),!j&&v!==null&&Xe.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noMatchesInFileContents")}),Xe.map(t=>{const n=t.path.split("/").pop()??t.path,{Icon:r,color:i}=Me(n);return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 text-xs text-muted-foreground",children:[s.jsx(r,{size:14,className:xe("shrink-0",i)}),s.jsx("span",{className:"truncate",children:n}),s.jsx("span",{className:"text-muted-foreground/60",children:t.matches.length})]}),t.matches.map(l=>s.jsxs("button",{type:"button",onClick:()=>vt(l),title:`${t.path}:${l.line}`,className:"flex w-full items-baseline gap-2 pl-8 pr-3 py-0.5 text-left text-xs hover:bg-accent",children:[s.jsx("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:l.line}),s.jsx($n,{text:l.text,query:C})]},`${t.path}:${l.line}`))]},t.path)})]})]})})]}),s.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[m.length>0&&s.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:m.map(t=>{const n=oe.get(t),r=n?.loaded&&n.editorValue!==n.savedContent,i=o===t,l=t.split("/").pop()??t;return s.jsxs("div",{className:xe("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",i?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{P(t),qe(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":i,children:[s.jsx("span",{className:"truncate max-w-32",children:l}),r&&s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),s.jsx("button",{type:"button",className:"ml-1 p-0.5 hover:bg-accent-foreground/10 rounded-lg",onClick:u=>{u.stopPropagation(),Tt(t)},children:s.jsx(Wt,{size:12})})]},t)})}),se&&s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:s.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl border border-border bg-background/95 px-3 py-1.5 shadow-lg backdrop-blur",onSubmit:t=>{t.preventDefault();const r=t.currentTarget.elements.namedItem("askAiInput");r.value.trim()&&$t(r.value)},children:[s.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:h("sandbox.fileExplorer.askTheAiPlaceholder"),className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&me(null)}}),s.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-lg bg-foreground text-background transition-opacity",title:h("sandbox.fileExplorer.send"),children:s.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[s.jsx("title",{children:h("sandbox.fileExplorer.send")}),s.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),s.jsx("div",{className:"flex-1 overflow-hidden",children:o&&ce?.loaded?s.jsx(Xt,{language:Ke(o),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:ce.editorValue,path:o,onChange:t=>{const n=o;n&&ae(r=>{const i=new Map(r),l=i.get(n);return l&&i.set(n,{...l,editorValue:t??""}),i})},onMount:zt,loading:s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},o):o&&!ce?.loaded?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:h("sandbox.fileExplorer.selectFileToEdit")})}),o&&s.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-[11px] text-muted-foreground shrink-0",children:[s.jsx("span",{className:"truncate",children:o}),s.jsxs("span",{children:[h(At?"sandbox.fileExplorer.modified":"sandbox.fileExplorer.saved")," ","· ",Ke(o)]})]})]}),s.jsx(Ln,{open:q!==null,mode:q?.mode??"new-file",initialName:q?.mode==="rename"?q.node.name:"",parentLabel:q&&q.mode!=="rename"?q.parentDir==="/"?"/":ne(q.parentDir):void 0,isPending:ge,onSubmit:t=>ht(h,t),onOpenChange:t=>{!t&&!ge&&re(null)}}),s.jsx(Pn,{deleteTarget:ke,deleteDirtyPaths:Ot,fsActionPending:ge,onOpenChange:t=>{!t&&!ge&&Te(null)},onConfirm:t=>{mt(h,t)}})]})}export{ps as FileExplorer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,x as g,j as s,h as v,B as b,aS as w}from"./index-
|
|
1
|
+
import{c as x,x as g,j as s,h as v,B as b,aS as w}from"./index-BHW38fGm.js";import{n as y}from"./Image01-0p0qVrVu.js";import{c as N}from"./use-org-fs-DGDwjtxZ.js";import{g as S}from"./utils-7K5OBDxA.js";import{F as _}from"./editor-AvxByRxT.js";import{F as k}from"./file-type-icon-BYKr6xB1.js";import{M as z}from"./markdown-D2cGXSVI.js";function U(n){const e=x.c(11),{value:l,filename:i}=n,[t]=g(),c=t.theme==="dark"||t.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==i?(o=S(i),e[0]=i,e[1]=o):o=e[1];const m=c?"vs-dark":"light";let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(v,{className:"size-5 text-muted-foreground"})}),e[2]=a):a=e[2];let r,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(r={enabled:!1},d={top:12,bottom:12},e[3]=r,e[4]=d):(r=e[3],d=e[4]);let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:r,padding:d,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=f):f=e[5];let u;return e[6]!==i||e[7]!==o||e[8]!==m||e[9]!==l?(u=s.jsx(_,{path:i,language:o,value:l,theme:m,loading:a,options:f},i),e[6]=i,e[7]=o,e[8]=m,e[9]=l,e[10]=u):u=e[10],u}function E(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const F=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),T=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),h=2*1024*1024;function $(n,e){const l=n.split(".").pop()?.toLowerCase()??"";return F.has(l)?"image":l==="pdf"?"pdf":l==="html"||l==="htm"?"html":l==="md"||l==="markdown"?e<=h?"markdown":"download":T.has(l)&&e<=h?"text":"download"}function M(){const n=x.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(w,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let l;return n[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(w,{className:"h-3 w-full"}),s.jsx(w,{className:"h-3 w-5/6"}),s.jsx(w,{className:"h-3 w-2/3"})]})]})}),n[1]=l):l=n[1],l}function j(n){const e=x.c(20),{file:l,note:i}=n;let t;e[0]!==l.filename?(t=s.jsx(k,{filename:l.filename,className:"h-12 w-10"}),e[0]=l.filename,e[1]=t):t=e[1];let c;e[2]!==l.filename?(c=s.jsx("span",{className:"text-sm font-medium text-foreground",children:l.filename}),e[2]=l.filename,e[3]=c):c=e[3];let o;e[4]!==l.size?(o=E(l.size),e[4]=l.size,e[5]=o):o=e[5];const m=i?` · ${i}`:"";let a;e[6]!==o||e[7]!==m?(a=s.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,m]}),e[6]=o,e[7]=m,e[8]=a):a=e[8];let r;e[9]!==c||e[10]!==a?(r=s.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[c,a]}),e[9]=c,e[10]=a,e[11]=r):r=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(y,{size:14}),e[12]=d):d=e[12];let f;e[13]!==l.downloadUrl||e[14]!==l.filename?(f=s.jsx(b,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:l.downloadUrl,download:l.filename,children:[d,"Download"]})}),e[13]=l.downloadUrl,e[14]=l.filename,e[15]=f):f=e[15];let u;return e[16]!==t||e[17]!==r||e[18]!==f?(u=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[t,r,f]})}),e[16]=t,e[17]=r,e[18]=f,e[19]=u):u=e[19],u}function p(n){const e=x.c(9),{file:l,markdown:i}=n,{data:t,isPending:c,isError:o}=N(l.downloadUrl);if(c){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(M,{}),e[0]=a):a=e[0],a}if(o||!t){let a;return e[1]!==l?(a=s.jsx(j,{file:l,note:"preview unavailable"}),e[1]=l,e[2]=a):a=e[2],a}if(i){const a=`file-preview-${l.key}`;let r;return e[3]!==t||e[4]!==a?(r=s.jsx("div",{className:"h-full overflow-y-auto",children:s.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:s.jsx(z,{id:a,text:t})})}),e[3]=t,e[4]=a,e[5]=r):r=e[5],r}let m;return e[6]!==t||e[7]!==l.filename?(m=s.jsx(U,{value:t,filename:l.filename}),e[6]=t,e[7]=l.filename,e[8]=m):m=e[8],m}function I(n){const e=x.c(15),{file:l}=n;switch($(l.filename,l.size)){case"image":{let t;return e[0]!==l.downloadUrl||e[1]!==l.filename?(t=s.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:s.jsx("img",{src:l.downloadUrl,alt:l.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=l.downloadUrl,e[1]=l.filename,e[2]=t):t=e[2],t}case"pdf":{let t;return e[3]!==l.downloadUrl||e[4]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-same-origin allow-downloads",className:"block h-full w-full bg-white"}),e[3]=l.downloadUrl,e[4]=l.filename,e[5]=t):t=e[5],t}case"html":{let t;return e[6]!==l.downloadUrl||e[7]!==l.filename?(t=s.jsx("iframe",{src:l.downloadUrl,title:l.filename,sandbox:"allow-scripts allow-downloads",className:"block h-full w-full bg-white"}),e[6]=l.downloadUrl,e[7]=l.filename,e[8]=t):t=e[8],t}case"markdown":{let t;return e[9]!==l?(t=s.jsx(p,{file:l,markdown:!0}),e[9]=l,e[10]=t):t=e[10],t}case"text":{let t;return e[11]!==l?(t=s.jsx(p,{file:l,markdown:!1}),e[11]=l,e[12]=t):t=e[12],t}default:{let t;return e[13]!==l?(t=s.jsx(j,{file:l}),e[13]=l,e[14]=t):t=e[14],t}}}export{I as F,M as a,E as f};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as ee,b as te,j as t,B as R,aJ as ce,l as se,I as ue,F as fe,H as he,G as re,X as me,o as pe,r as S,t as G,K as ie,a6 as xe}from"./index-
|
|
1
|
+
import{c as ee,b as te,j as t,B as R,aJ as ce,l as se,I as ue,F as fe,H as he,G as re,X as me,o as pe,r as S,t as G,K as ie,a6 as xe}from"./index-BHW38fGm.js";import{b as Q,T as Y,a as X}from"./tooltip-PjEixjdK.js";import{n as oe}from"./Image01-0p0qVrVu.js";import{j as be,am as we,aZ as ke,a as ge,b as ae,a_ as ve}from"./agent-icon-vRJX06Pc.js";import{n as ye}from"./LinkExternal01-7OpzTzCD.js";import{d as Se,e as je,g as Te,u as Me}from"./use-org-fs-DGDwjtxZ.js";import{c as Ce,d as De,b as Pe,D as Ne}from"./dialog-Dlbcts3k.js";import{I as Ee}from"./input-DPbtX44w.js";import{a as Oe,b as $e,P as Be}from"./popover-BSszguOU.js";import{i as ze}from"./Check-DNTKbOF1.js";import{a as Re}from"./Copy01-6fj6p2dr.js";import{i as Ie}from"./Key01-D7BOKCsv.js";function Le(a){const e=ee.c(52),{readUrl:c,editor:i,downloadName:p,trailing:m}=a,r=te();let u;e[0]!==c?(u=new URL(c,window.location.origin).toString(),e[0]=c,e[1]=u):u=e[1];const s=u;let n;e[2]!==i||e[3]!==r?(n=i.deckDetected&&t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(R,{variant:i.railOpen?"secondary":"ghost",size:"icon","aria-label":i.railOpen?r("deck.deckToolbar.hideSlideList"):r("deck.deckToolbar.showSlideList"),onClick:()=>i.setRailOpen(!i.railOpen),children:t.jsx(be,{size:14})})}),t.jsx(X,{side:"bottom",children:i.railOpen?r("deck.deckToolbar.hideSlideList"):r("deck.deckToolbar.showSlideList")})]}),e[2]=i,e[3]=r,e[4]=n):n=e[4];let f;e[5]!==s?(f=()=>window.open(s,"_blank","noopener"),e[5]=s,e[6]=f):f=e[6];let h;e[7]!==s?(h=t.jsx("span",{className:"truncate",children:s}),e[7]=s,e[8]=h):h=e[8];let g;e[9]!==s||e[10]!==f||e[11]!==h?(g=t.jsx("button",{type:"button",onClick:f,className:"flex min-w-0 flex-1 items-center rounded-lg px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:s,children:h}),e[9]=s,e[10]=f,e[11]=h,e[12]=g):g=e[12];let k;e[13]!==i.agentUpdated||e[14]!==i.reload||e[15]!==r?(k=i.agentUpdated&&t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsxs(R,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:i.reload,children:[t.jsx(ce,{size:12}),r("deck.deckToolbar.agentUpdatedReload")]})}),t.jsx(X,{side:"bottom",children:r("deck.deckToolbar.agentRewriteWarning")})]}),e[13]=i.agentUpdated,e[14]=i.reload,e[15]=r,e[16]=k):k=e[16];let x;e[17]!==i.saving||e[18]!==r?(x=i.saving&&t.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:r("deck.deckToolbar.saving")}),e[17]=i.saving,e[18]=r,e[19]=x):x=e[19];let b;e[20]!==i||e[21]!==r?(b=i.deckDetected&&i.writable&&t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(R,{variant:i.editMode?"secondary":"ghost",size:"icon","aria-label":i.editMode?r("deck.deckToolbar.doneEditing"):r("deck.deckToolbar.editInline"),className:se(i.editMode&&"text-primary"),onClick:()=>i.setEditMode(!i.editMode),children:t.jsx(we,{size:14})})}),t.jsx(X,{side:"bottom",children:i.editMode?r("deck.deckToolbar.doneEditing"):r("deck.deckToolbar.editInlineTooltip")})]}),e[20]=i,e[21]=r,e[22]=b):b=e[22];let C;e[23]!==s||e[24]!==p||e[25]!==i.deckDetected||e[26]!==r?(C=i.deckDetected?t.jsxs(ue,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(R,{variant:"ghost",size:"icon","aria-label":r("deck.deckToolbar.download"),children:t.jsx(oe,{size:14})})}),t.jsxs(he,{align:"end",children:[t.jsxs(re,{onClick:()=>window.open(`${s}#print`,"_blank","noopener"),children:[t.jsx(ke,{size:14}),r("deck.deckToolbar.exportAsPdf")]}),t.jsx(re,{asChild:!0,children:t.jsxs("a",{href:s,download:p,children:[t.jsx(ge,{size:14}),r("deck.deckToolbar.downloadHtml")]})})]})]}):t.jsxs(Q,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(R,{variant:"ghost",size:"icon","aria-label":r("deck.deckToolbar.download"),asChild:!0,children:t.jsx("a",{href:s,download:p,children:t.jsx(oe,{size:14})})})}),t.jsx(X,{side:"bottom",children:r("deck.deckToolbar.download")})]}),e[23]=s,e[24]=p,e[25]=i.deckDetected,e[26]=r,e[27]=C):C=e[27];let j;e[28]!==r?(j=r("deck.deckToolbar.openInNewTab"),e[28]=r,e[29]=j):j=e[29];let v;e[30]!==s?(v=()=>window.open(s,"_blank","noopener"),e[30]=s,e[31]=v):v=e[31];let P;e[32]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(ye,{size:14}),e[32]=P):P=e[32];let D;e[33]!==j||e[34]!==v?(D=t.jsx(Y,{asChild:!0,children:t.jsx(R,{variant:"ghost",size:"icon","aria-label":j,onClick:v,children:P})}),e[33]=j,e[34]=v,e[35]=D):D=e[35];let N;e[36]!==r?(N=r("deck.deckToolbar.openInNewTab"),e[36]=r,e[37]=N):N=e[37];let M;e[38]!==N?(M=t.jsx(X,{side:"bottom",children:N}),e[38]=N,e[39]=M):M=e[39];let l;e[40]!==D||e[41]!==M?(l=t.jsxs(Q,{children:[D,M]}),e[40]=D,e[41]=M,e[42]=l):l=e[42];let E;return e[43]!==l||e[44]!==n||e[45]!==g||e[46]!==k||e[47]!==x||e[48]!==b||e[49]!==C||e[50]!==m?(E=t.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[n,g,k,x,b,C,l,m]}),e[43]=l,e[44]=n,e[45]=g,e[46]=k,e[47]=x,e[48]=b,e[49]=C,e[50]=m,e[51]=E):E=e[51],E}const Z=1;function Ue(a){if(typeof a!="object"||a===null||a.v!==Z||a.source!=="deck-viewer")return null;const e=a;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class U extends Error{constructor(e,c){super(e),this.code=c,this.name="DeckOpError"}code}function le(a){return[...a.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function _e(a){const c=new DOMParser().parseFromString(a,"text/html").querySelector("deck-viewer");return c?le(c).length:null}function Ae(a,e){const c=new DOMParser().parseFromString(a,"text/html"),i=c.querySelector("deck-viewer");if(!i)throw new U("no <deck-viewer> element in source","no-viewer");const p=le(i),m=e.kind==="move"?e.from:e.at,r=p[m];if(!r)throw new U(`slide index ${m} out of range (${p.length})`,"stale-index");switch(e.kind){case"remove":{if(p.length<=1)throw new U("cannot remove the last slide","bad-op");r.remove();break}case"duplicate":{const s=r.cloneNode(!0);s.removeAttribute("id");for(const n of s.querySelectorAll("[id]"))n.removeAttribute("id");r.after(s);break}case"move":{if(e.to<0||e.to>=p.length)throw new U(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const s=e.to<e.from?p[e.to]:p[e.to].nextSibling;i.insertBefore(r,s)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new U(`invalid attribute name: ${e.name}`,"bad-op");r.setAttribute(e.name,e.value);break}case"remove-attr":{r.removeAttribute(e.name);break}case"replace":{const n=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!n)throw new U("replace html has no root element","bad-op");r.replaceWith(c.importNode(n,!0));break}default:throw new U(`unknown op kind: ${e.kind}`,"bad-op")}return`${a.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
2
2
|
`:""}${c.documentElement.outerHTML}
|
|
3
3
|
`}const ne="home",Fe=400,qe=800;function Ke(a){const e=a.savePath!==void 0,{org:c}=me(),i=pe(),p=Se(ne),[m,r]=S.useState(!1),[u,s]=S.useState(!1),[n,f]=S.useState(!1),[h,g]=S.useState(!1),[k,x]=S.useState(!1),[b,C]=S.useState(!1),[j,v]=S.useState(null),[P,D]=S.useState(null),[N,M]=S.useState(0),[l]=S.useState(()=>({iframe:null,source:null,queue:Promise.resolve(),saveTimer:null,selfMarkers:new Set})),E=m||b||k,A=()=>{a.savePath!==void 0&&(i.invalidateQueries({queryKey:ie.orgFsStat(c.id,ne,a.savePath)}),i.invalidateQueries({queryKey:ie.orgFsRecent(c.id)}))},y=o=>{l.iframe?.contentWindow?.postMessage(o,"*")},$=()=>{l.source=null,g(!1),P&&v(P),M(o=>o+1),A()};a.statMarker!==P&&(D(a.statMarker),a.statMarker!==null&&(j===null?v(a.statMarker):l.selfMarkers.has(a.statMarker)||a.statMarker!==j&&(E?g(!0):(l.source=null,v(a.statMarker)))));const F=async()=>{l.saveTimer=null;const o=l.source;if(o===null){C(!1);return}x(!0);try{const d=await p.mutateAsync({path:a.savePath,body:o});l.selfMarkers.add(je(d)),A()}catch(d){console.error("[deck-editor] save failed",d),G.error("Couldn't save deck edits — reloading the preview."),T.current.reload()}finally{x(!1),C(!1)}},q=o=>{C(!0),l.saveTimer&&clearTimeout(l.saveTimer),l.saveTimer=setTimeout(()=>{T.current.flushSave()},o)},O=(o,d,w)=>{y({v:Z,type:"ack",opId:o,ok:d,error:w})},B=async o=>{if(!e){O(o.opId,!1,"read-only preview");return}try{if(l.source===null){const w=await fetch(a.readUrl,{credentials:"include"});if(!w.ok)throw new Error(`HTTP ${w.status}`);l.source=await w.text()}const d=_e(l.source);if(d===null||d!==o.witness.childCount)throw new U(`slide count drifted (source ${d}, iframe ${o.witness.childCount})`,"stale-index");l.source=Ae(l.source,o.op),O(o.opId,!0),q(o.op.kind==="replace"?qe:Fe)}catch(d){console.error("[deck-editor] op failed",o.op,d),O(o.opId,!1,d instanceof Error?d.message:String(d)),G.error("That edit couldn't be saved — reloading the preview."),T.current.reload()}},z=o=>{if(!l.iframe||o.source!==l.iframe.contentWindow)return;const d=Ue(o.data);if(d){if(d.type==="ready"){s(!0),T.current.editMode?y({v:Z,type:"set-edit-mode",enabled:!0}):T.current.railOpen&&y({v:Z,type:"set-rail",open:!0});return}d.type==="op"&&(l.queue=l.queue.then(()=>T.current.handleOp(d)).catch(()=>{}))}},T=S.useRef({onMessage:z,handleOp:B,flushSave:F,reload:$,editMode:m,railOpen:n});T.current={onMessage:z,handleOp:B,flushSave:F,reload:$,editMode:m,railOpen:n};const[I]=S.useState(()=>{let o=null;return d=>{if(d){l.iframe=d;const w=_=>T.current.onMessage(_);window.addEventListener("message",w),o=()=>window.removeEventListener("message",w)}else o?.(),o=null,l.iframe=null}}),L=o=>{f(o),y({v:Z,type:"set-rail",open:o})},K=o=>{r(o),y({v:Z,type:"set-edit-mode",enabled:o}),o&&f(!0),!o&&h&&!b&&!k&&$()};return{iframeRef:I,deckDetected:u,writable:e,displayedMarker:j===null?null:`${j}.${N}`,editMode:m,setEditMode:K,railOpen:n,setRailOpen:L,saving:k,agentUpdated:h,reload:$,postToIframe:y}}const He=300;function ot({readUrl:a,marker:e,title:c,savePath:i,trailing:p}){const m=Ke({readUrl:a,statMarker:e,savePath:i}),[r,u]=S.useState(null);if(m.displayedMarker===null)return null;const s=a.includes("?")?"&":"?",n=`${a}${s}v=${encodeURIComponent(m.displayedMarker)}`,f=r===n;return t.jsxs("div",{className:"flex h-full w-full flex-col bg-background",children:[t.jsx(Le,{readUrl:a,editor:m,downloadName:c.split("/").pop()??c,trailing:p}),t.jsx("div",{className:"relative flex-1",children:t.jsx("iframe",{ref:m.iframeRef,src:n,onLoad:()=>u(n),sandbox:"allow-scripts allow-downloads",className:se("absolute inset-0 block h-full w-full bg-white","transition-opacity ease-out",f?"opacity-100":"opacity-0"),style:{transitionDuration:`${He}ms`},title:c},n)})]})}const We=[{mode:"private",labelKey:"library.fileShareButton.modeOrgOnly",Icon:xe},{mode:"public",labelKey:"library.fileShareButton.modePublic",Icon:ae},{mode:"password",labelKey:"library.fileShareButton.modePassword",Icon:Ie}];function de(a){const e=ee.c(56),{volume:c,path:i,kind:p,shareMode:m,effectivePublic:r,url:u}=a,s=te(),n=Te(c),{data:f}=Me(c,i),h=f?.shareMode??m,k=(f?.effectivePublic??r)&&h==="private",x=p==="dir",b=x?"folder":"file",[C,j]=S.useState(!1),[v,P]=S.useState(""),[D,N]=S.useState(!1);let M;e[0]!==i||e[1]!==n||e[2]!==b||e[3]!==s?(M=(o,d)=>{n.mutate({path:i,mode:o,password:d},{onSuccess:()=>{j(!1),P(""),G.success(o==="private"?s("library.fileShareButton.toastOrgOnly",{subject:b}):o==="public"?s("library.fileShareButton.toastPublic",{subject:b}):s("library.fileShareButton.toastPassword",{subject:b}))},onError:w=>G.error(w instanceof Error?w.message:s("library.fileShareButton.failedUpdateSharing"))})},e[0]=i,e[1]=n,e[2]=b,e[3]=s,e[4]=M):M=e[4];const l=M;let E;e[5]!==l?(E=o=>{if(o==="password"){j(!0);return}j(!1),l(o)},e[5]=l,e[6]=E):E=e[6];const A=E,y=C?"password":h;let $;e[7]!==s||e[8]!==u?($=async()=>{u&&(await navigator.clipboard.writeText(u),N(!0),G.success(s("library.fileShareButton.linkCopied")),setTimeout(()=>N(!1),2e3))},e[7]=s,e[8]=u,e[9]=$):$=e[9];const F=$;let q;e[10]!==D||e[11]!==F||e[12]!==s||e[13]!==u?(q=u?t.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-input bg-muted/50 px-2 py-1.5",children:[t.jsx("code",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:u}),t.jsx(R,{variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:F,"aria-label":s("library.fileShareButton.copyLink"),children:D?t.jsx(ze,{size:12,className:"text-success"}):t.jsx(Re,{size:12})})]}):null,e[10]=D,e[11]=F,e[12]=s,e[13]=u,e[14]=q):q=e[14];const O=q;if(k){let o;e[15]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:t.jsx(ae,{size:16})}),e[15]=o):o=e[15];let d;e[16]!==s?(d=s("library.fileShareButton.sharedViaParent"),e[16]=s,e[17]=d):d=e[17];let w;e[18]!==d?(w=t.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),e[18]=d,e[19]=w):w=e[19];const _=x?"files in this folder":"this file";let H;e[20]!==s||e[21]!==_?(H=s("library.fileShareButton.inheritedDescription",{target:_}),e[20]=s,e[21]=_,e[22]=H):H=e[22];let W;e[23]!==H?(W=t.jsx("span",{className:"text-xs text-muted-foreground",children:H}),e[23]=H,e[24]=W):W=e[24];let V;e[25]!==W||e[26]!==w?(V=t.jsxs("div",{className:"flex items-start gap-3",children:[o,t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[w,W]})]}),e[25]=W,e[26]=w,e[27]=V):V=e[27];let J;return e[28]!==O||e[29]!==V?(J=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[V,O]}),e[28]=O,e[29]=V,e[30]=J):J=e[30],J}let B;e[31]!==y||e[32]!==A||e[33]!==n.isPending||e[34]!==s?(B=We.map(o=>{const{mode:d,labelKey:w,Icon:_}=o;return t.jsxs("button",{type:"button",disabled:n.isPending,onClick:()=>A(d),className:se("flex flex-col items-center gap-1 rounded-lg px-2 py-2 text-xs font-medium transition-colors disabled:opacity-60",y===d?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[t.jsx(_,{size:15}),s(w)]},d)}),e[31]=y,e[32]=A,e[33]=n.isPending,e[34]=s,e[35]=B):B=e[35];let z;e[36]!==B?(z=t.jsx("div",{className:"grid grid-cols-3 gap-1 rounded-lg bg-muted p-1",children:B}),e[36]=B,e[37]=z):z=e[37];let T;e[38]!==y||e[39]!==x||e[40]!==s?(T=y==="private"?s("library.fileShareButton.privateDescription",{target:x?"these files":"this link"}):y==="public"?s(x?"library.fileShareButton.publicFolderDescription":"library.fileShareButton.publicFileDescription"):s("library.fileShareButton.passwordDescription",{target:x?"files in this folder":"this file"}),e[38]=y,e[39]=x,e[40]=s,e[41]=T):T=e[41];let I;e[42]!==T?(I=t.jsx("p",{className:"text-xs text-muted-foreground",children:T}),e[42]=T,e[43]=I):I=e[43];let L;e[44]!==y||e[45]!==l||e[46]!==h||e[47]!==v||e[48]!==n.isPending||e[49]!==s?(L=y==="password"&&t.jsxs("form",{className:"flex items-center gap-2",onSubmit:o=>{o.preventDefault(),v&&l("password",v)},children:[t.jsx(Ee,{type:"password",value:v,onChange:o=>P(o.target.value),placeholder:s(h==="password"?"library.fileShareButton.newPasswordPlaceholder":"library.fileShareButton.passwordPlaceholder"),autoComplete:"new-password",className:"h-8 text-xs"}),t.jsx(R,{type:"submit",size:"sm",className:"shrink-0",disabled:!v||n.isPending,children:s(h==="password"?"library.fileShareButton.buttonUpdate":"library.fileShareButton.buttonSet")})]}),e[44]=y,e[45]=l,e[46]=h,e[47]=v,e[48]=n.isPending,e[49]=s,e[50]=L):L=e[50];let K;return e[51]!==O||e[52]!==z||e[53]!==I||e[54]!==L?(K=t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3",children:[z,I,L,O]}),e[51]=O,e[52]=z,e[53]=I,e[54]=L,e[55]=K):K=e[55],K}function nt(a){const e=ee.c(21),{volume:c,path:i,shareMode:p,effectivePublic:m,url:r}=a,u=te();let s;e[0]!==u?(s=u("library.fileShareButton.share"),e[0]=u,e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ve,{size:14}),e[2]=n):n=e[2];let f;e[3]!==s?(f=t.jsx(Y,{asChild:!0,children:t.jsx(Oe,{asChild:!0,children:t.jsx(R,{variant:"ghost",size:"icon","aria-label":s,children:n})})}),e[3]=s,e[4]=f):f=e[4];let h;e[5]!==u?(h=u("library.fileShareButton.share"),e[5]=u,e[6]=h):h=e[6];let g;e[7]!==h?(g=t.jsx(X,{side:"bottom",children:h}),e[7]=h,e[8]=g):g=e[8];let k;e[9]!==f||e[10]!==g?(k=t.jsxs(Q,{children:[f,g]}),e[9]=f,e[10]=g,e[11]=k):k=e[11];let x;e[12]!==m||e[13]!==i||e[14]!==p||e[15]!==r||e[16]!==c?(x=t.jsx($e,{align:"end",className:"w-80 p-3",children:t.jsx(de,{volume:c,path:i,kind:"file",shareMode:p,effectivePublic:m,url:r})}),e[12]=m,e[13]=i,e[14]=p,e[15]=r,e[16]=c,e[17]=x):x=e[17];let b;return e[18]!==k||e[19]!==x?(b=t.jsxs(Be,{children:[k,x]}),e[18]=k,e[19]=x,e[20]=b):b=e[20],b}function at(a){const e=ee.c(14),{target:c,onOpenChange:i}=a,p=te(),m=!!c,r=c?.kind==="dir"?"folder":"file";let u;e[0]!==p||e[1]!==r?(u=p("library.fileShareButton.shareDialogTitle",{type:r}),e[0]=p,e[1]=r,e[2]=u):u=e[2];let s;e[3]!==u?(s=t.jsx(Ce,{children:t.jsx(De,{children:u})}),e[3]=u,e[4]=s):s=e[4];let n;e[5]!==c?(n=c&&t.jsx(de,{...c}),e[5]=c,e[6]=n):n=e[6];let f;e[7]!==s||e[8]!==n?(f=t.jsxs(Pe,{className:"sm:max-w-md",children:[s,n]}),e[7]=s,e[8]=n,e[9]=f):f=e[9];let h;return e[10]!==i||e[11]!==m||e[12]!==f?(h=t.jsx(Ne,{open:m,onOpenChange:i,children:f}),e[10]=i,e[11]=m,e[12]=f,e[13]=h):h=e[13],h}export{nt as F,ot as H,at as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,j as o}from"./index-
|
|
1
|
+
import{c as g,j as o}from"./index-BHW38fGm.js";const h={pdf:"#D92D20",doc:"#155EEF",docx:"#155EEF",txt:"#475467",md:"#475467",xls:"#099250",xlsx:"#099250",csv:"#099250",tsv:"#099250",json:"#475467",xml:"#475467",yaml:"#475467",yml:"#475467",ppt:"#DC6803",pptx:"#DC6803",key:"#DC6803",png:"#7F56D9",jpg:"#7F56D9",jpeg:"#7F56D9",gif:"#7F56D9",webp:"#7F56D9",svg:"#7F56D9",avif:"#7F56D9",mp3:"#DD2590",wav:"#DD2590",mp4:"#DD2590",mov:"#DD2590",webm:"#DD2590",zip:"#475467",tar:"#475467",gz:"#475467",rar:"#475467",html:"#DC6803",htm:"#DC6803",css:"#155EEF",js:"#155EEF",jsx:"#155EEF",ts:"#155EEF",tsx:"#155EEF",py:"#155EEF",sql:"#155EEF",sh:"#475467"},F="#475467",D={pdf:"PDF",doc:"Word document",docx:"Word document",txt:"Text file",md:"Markdown",xls:"Excel file",xlsx:"Excel file",csv:"CSV file",tsv:"TSV file",json:"JSON file",xml:"XML file",yaml:"YAML file",yml:"YAML file",ppt:"Presentation",pptx:"Presentation",key:"Presentation",png:"Image",jpg:"Image",jpeg:"Image",gif:"Image",webp:"Image",svg:"Image",avif:"Image",mp3:"Audio",wav:"Audio",mp4:"Video",mov:"Video",webm:"Video",zip:"Archive",tar:"Archive",gz:"Archive",rar:"Archive",html:"HTML file",htm:"HTML file"};function v(l){const e=f(l);return e?D[e]??`${e.toUpperCase()} file`:"File"}function f(l){const e=l.lastIndexOf(".");if(e<=0||e===l.length-1)return null;const t=l.slice(e+1).toLowerCase();return t.length>4||!/^[a-z0-9]+$/.test(t)?null:t}function u(l){const e=g.c(17);let t,n;e[0]!==l?({filename:t,...n}=l,e[0]=l,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s,i,a;e[3]!==t?(i=f(t),s=i?h[i]??F:null,a=i?.toUpperCase()??"",e[3]=t,e[4]=s,e[5]=i,e[6]=a):(s=e[4],i=e[5],a=e[6]);const c=a,m=Math.min(8+c.length*4.6,28);let p,x;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx("path",{d:"M19.5 1H8a4 4 0 0 0-4 4v30a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V9.5L19.5 1Z",className:"fill-background stroke-border",strokeWidth:"1.5"}),x=o.jsx("path",{d:"M19.5 1v4.5a4 4 0 0 0 4 4H28",className:"stroke-border",strokeWidth:"1.5"}),e[7]=p,e[8]=x):(p=e[7],x=e[8]);let r;e[9]!==m||e[10]!==s||e[11]!==i||e[12]!==c?(r=i&&s&&o.jsxs(o.Fragment,{children:[o.jsx("rect",{x:"1",y:"20",width:m,height:"12",rx:"3",fill:s}),o.jsx("text",{x:1+m/2,y:"29",textAnchor:"middle",fontSize:"7",fontWeight:"700",letterSpacing:"0.2",fill:"#FFFFFF",style:{fontFamily:"inherit"},children:c})]}),e[9]=m,e[10]=s,e[11]=i,e[12]=c,e[13]=r):r=e[13];let d;return e[14]!==n||e[15]!==r?(d=o.jsxs("svg",{viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...n,children:[p,x,r]}),e[14]=n,e[15]=r,e[16]=d):d=e[16],d}export{u as F,v as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as b,u as v,j as r,r as _,h as y,X as S,ad as k,n as w,b as C,d as N,P as T}from"./index-BHW38fGm.js";import{l as F}from"./agent-icon-vRJX06Pc.js";import{c as V}from"./XClose-C5QcJ6D0.js";import{V as E}from"./view-mode-toggle-CR4yGwhs.js";import{C as L}from"./index-CtqgTxfG.js";import{r as R}from"./icon-button-CAsMR7wt.js";import{P as $}from"./projects-empty-state-OJ8FQpgE.js";import{T as I}from"./index-DE0-9ECf.js";import{p as M,L as z}from"./library-tab-D6ZlaAwG.js";import{s as B}from"./use-project-scope-BVOC74Pv.js";import{b as O}from"./repository-binding-BT7w56g8.js";import"./AlertCircle-DKmCApDa.js";import"./Tool01-Dk2ye-LU.js";import"./ArrowUp-BJY8NUma.js";import"./ArrowLeft-BwFqyUG8.js";import"./ArrowRight-CHV05UUB.js";import"./ShoppingBag01-DznHZPA0.js";import"./ZoomOut-BWkCTBCz.js";import"./Palette-DZVSqT20.js";import"./CheckCircle-Dk8xW2dQ.js";import"./Check-DNTKbOF1.js";import"./ChevronUp-DGldI0Ph.js";import"./UserSquare-lb7I00eF.js";import"./Copy01-6fj6p2dr.js";import"./CreditCard01-BIdq_aTI.js";import"./DotsVertical-CgKNtAHX.js";import"./Image01-0p0qVrVu.js";import"./Key01-D7BOKCsv.js";import"./Link01-BY6r9e0W.js";import"./LinkExternal01-7OpzTzCD.js";import"./Monitor01-Wlo-v8rP.js";import"./Sun-eXH36H9e.js";import"./Plus-BZ-9hfZe.js";import"./SearchMd-CtjLEzGO.js";import"./Trash01-Gu3_9b_o.js";import"./Upload01-uetj4iXc.js";import"./User01-D1mABHDT.js";import"./Users01-CobN2IHd.js";import"./X-BdLoi6uz.js";import"./tooltip-PjEixjdK.js";import"./index-Cpvm6arG.js";import"./use-mobile-DIdf1Sl6.js";import"./resizable-BNj764ip.js";import"./use-chat-layout-state-Do-NwJXn.js";import"./use-file-configs-CYpkv-K6.js";import"./use-organization-settings-DrCEGV8b.js";import"./schema-HLNkH6Wb.js";import"./task-board-CV8L72bN.js";import"./site-slug-DebpOoQq.js";import"./thread-route-D8LjpvTD.js";import"./use-panel-navigate-Cz0Mqgtu.js";import"./thread-intent-DVeAqXLf.js";import"./use-mcp-client-BXMLDsCy.js";import"./auth-oZFMRz6f.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./toolbar-icon-button-DxlBQUA0.js";import"./sheet-BUa8giCx.js";import"./shell-layout-C1uyapYT.js";import"./avatar-CVyfIjHq.js";import"./download-app-dialog-eZatHcib.js";import"./dialog-Dlbcts3k.js";import"./command-B3-BMEIX.js";import"./index-vOT5DJhb.js";import"./integration-icon-C8GyVZME.js";import"./project-icon-CEvmcihT.js";import"./new-project-dialog-CNtRe0-Y.js";import"./input-DPbtX44w.js";import"./label-BHCiWeM9.js";import"./repository-import-picker-BvwCcqd0.js";import"./use-navigate-to-agent-w4dyiPcQ.js";import"./repository-picker-WnaJ3OBj.js";import"./useInfiniteQuery-C-pCSug8.js";import"./infiniteQueryObserver-C4v_Tvdc.js";import"./collection-search-VYsS9TLc.js";import"./use-debounced-value-BmJwJfAX.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-oADKB4ry.js";import"./autosend-BR-AxRqX.js";import"./use-org-sso-Cccoz5_e.js";import"./rich-text-link-control-CU6p-_ze.js";import"./use-task-board-analytics-DQ9orTZ3.js";import"./combobox-uLE3dkRC.js";import"./popover-BSszguOU.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-BQKj1zgn.js";import"./config-DQZquT9x.js";import"./use-task-board-events-S4eOT-Db.js";import"./use-decopilot-events-Dz3T4koV.js";import"./use-members-CqgWLfoS.js";import"./use-org-auth-client-CPcci4x9.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-CiSSC1Zw.js";import"./task-route-Ou0nHr59.js";import"./calendar-CxuTxwoq.js";import"./alert-m4enA-72.js";import"./collapsible-CmaYMPSs.js";import"./use-copy-DJcJjSfR.js";import"./markdown-D2cGXSVI.js";import"./org-file-open-context-UWr7N1Z6.js";import"./index-BonzOgjL.js";import"./index-EKW9WLpv.js";import"./gateway-client-C_0iBipI.js";import"./form-iuvY0qFv.js";import"./utils-CVEq3hMx.js";import"./suggestion--qxJAqqv.js";import"./index-4xsRRDQ0.js";import"./use-org-fs-DGDwjtxZ.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-connection-Dv9IwOJe.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-BON5_bQt.js";import"./useSuspenseInfiniteQuery-BJb93R4Z.js";import"./pair-CZInYVHx.js";import"./usage-stats-Cfj19dMy.js";import"./chat-context-CHMvG291.js";import"./use-ai-providers-D89dN8IX.js";import"./location-DBePU4bz.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CG-JWdEV.js";import"./types-CPdp5CPi.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-prompts-BeUMXZG4.js";import"./use-thread-outputs-D36c0oXJ.js";import"./file-type-icon-BYKr6xB1.js";import"./use-infinite-scroll-DRg5D3Ci.js";import"./task-status-BfR7W4Fk.js";import"./use-open-billing-url-D8WOGdFe.js";import"./chat-draft-2zID_cRw.js";import"./badge-DKTieZTi.js";import"./separator-CzRdsgWL.js";import"./alert-dialog-D1CSBuVt.js";import"./use-org-repo-syncs-BO-YlCPV.js";import"./textarea-ah6ZJJWF.js";import"./file-share-button-C7miXF89.js";import"./preview-dialog--VxiYPfE.js";import"./preview-content-BTNwFllc.js";import"./file-preview-DNltN574.js";import"./utils-7K5OBDxA.js";import"./editor-AvxByRxT.js";import"./folder-icon-jYk3JQng.js";import"./skill-md-ChfVs4uF.js";import"./table-Cfz5hCc5.js";function A(o){const t=b.c(21),{files:m}=o,s=C(),i=N();let e;t[0]!==i?(e=n=>i({to:".",search:P=>({...P,files:n,...n?{task:void 0}:{}})}),t[0]=i,t[1]=e):e=t[1];const p=e,h=m?"files":"project";let u;t[2]!==p?(u=n=>p(n==="files"?!0:void 0),t[2]=p,t[3]=u):u=t[3];let x;t[4]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(V,{}),t[4]=x):x=t[4];let l;t[5]!==s?(l=s("projects.flat.viewProject"),t[5]=s,t[6]=l):l=t[6];let a;t[7]!==l?(a={value:"project",icon:x,label:l},t[7]=l,t[8]=a):a=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(F,{}),t[9]=f):f=t[9];let c;t[10]!==s?(c=s("projects.flat.viewFiles"),t[10]=s,t[11]=c):c=t[11];let j;t[12]!==c?(j={value:"files",icon:f,label:c},t[12]=c,t[13]=j):j=t[13];let d;t[14]!==a||t[15]!==j?(d=[a,j],t[14]=a,t[15]=j,t[16]=d):d=t[16];let g;return t[17]!==d||t[18]!==h||t[19]!==u?(g=r.jsx(T.Topbar.Right.Portal,{children:r.jsx("div",{className:"shrink-0",children:r.jsx(E,{value:h,onValueChange:u,options:d})})}),t[17]=d,t[18]=h,t[19]=u,t[20]=g):g=t[20],g}function X(o){const t=b.c(6),{project:m}=o,s=m.id;let i;t[0]!==m?(i=M(m),t[0]=m,t[1]=i):i=t[1];const e=m.title??void 0;let p;return t[2]!==m.id||t[3]!==i||t[4]!==e?(p=r.jsx(z,{root:i,rootLabel:e,filePreview:"dialog"},s),t[2]=m.id,t[3]=i,t[4]=e,t[5]=p):p=t[5],p}function q(o){const t=b.c(21),{projectId:m,taskOpen:s,files:i}=o,{org:e}=S(),{granted:p}=k("agents:manage");let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={pageSize:1e3},t[0]=h):h=t[0];const u=O(h);let x,l;if(t[1]!==u||t[2]!==p||t[3]!==e||t[4]!==m){l=Symbol.for("react.early_return_sentinel");t:{let d;t[7]!==e?(d=n=>n.id!==e.id,t[7]=e,t[8]=d):d=t[8];const g=B(u).filter(d);if(g.length===0){let n;t[9]!==p?(n=r.jsx($,{canCreate:p}),t[9]=p,t[10]=n):n=t[10],l=n;break t}x=g.find(n=>n.id===m)??[...g].sort(D)[0]}t[1]=u,t[2]=p,t[3]=e,t[4]=m,t[5]=x,t[6]=l}else x=t[5],l=t[6];if(l!==Symbol.for("react.early_return_sentinel"))return l;const a=x;if(!a)return null;let f;t[11]!==i?(f=r.jsx(A,{files:i}),t[11]=i,t[12]=f):f=t[12];let c;t[13]!==i||t[14]!==e||t[15]!==a||t[16]!==s?(c=i?r.jsx(X,{project:a}):r.jsxs(r.Fragment,{children:[!s&&r.jsx(w.Container,{className:"flex max-w-[1680px] shrink-0 flex-col gap-4 pb-6",children:r.jsx(R,{project:a,orgSlug:e.slug})}),r.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",children:r.jsx(I,{scopeProject:a,inlineTabs:!0,taskInSearch:!0})})]}),t[13]=i,t[14]=e,t[15]=a,t[16]=s,t[17]=c):c=t[17];let j;return t[18]!==f||t[19]!==c?(j=r.jsxs("div",{className:"@container flex h-full min-h-0 min-w-0 flex-col",children:[f,c]}),t[18]=f,t[19]=c,t[20]=j):j=t[20],j}function D(o,t){return(t.updated_at??"").localeCompare(o.updated_at??"")}function Tr(){const o=b.c(6);let t;o[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},o[0]=t):t=o[0];const m=v(t);let s;o[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"flex min-h-64 items-center justify-center",children:r.jsx(y,{className:"size-5 text-muted-foreground"})}),o[1]=s):s=o[1];const i=!!m.task,e=!!m.files;let p;return o[2]!==m.project||o[3]!==i||o[4]!==e?(p=r.jsx(L.Content,{children:r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(_.Suspense,{fallback:s,children:r.jsx(q,{projectId:m.project,taskOpen:i,files:e})})})}),o[2]=m.project,o[3]=i,o[4]=e,o[5]=p):p=o[5],p}export{Tr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,j as t,r as O,aS as L,l as A,B as U}from"./index-
|
|
1
|
+
import{c as M,j as t,r as O,aS as L,l as A,B as U}from"./index-BHW38fGm.js";import{b as _,D as G,d as H,i as W}from"./dialog-Dlbcts3k.js";import{i as I}from"./X-BdLoi6uz.js";import{i as K}from"./ZoomOut-BWkCTBCz.js";import{M as R}from"./markdown-D2cGXSVI.js";import{F as V}from"./file-preview-DNltN574.js";import{F as Z}from"./file-type-icon-BYKr6xB1.js";import{h as q,c as J,j as Q}from"./use-org-fs-DGDwjtxZ.js";import{p as X,b as E}from"./location-DBePU4bz.js";import{p as Y}from"./skill-md-ChfVs4uF.js";import{s as ee}from"./Image01-0p0qVrVu.js";function te(i){const e=M.c(18),{skillPath:o,onClose:r,variant:l}=i,a=X(o),{volume:n,dirPath:F}=a,$=q(),s=$(n??"",`${F}/SKILL.md`),w=J(s),D=Q(n??"",F);let v;e[0]!==F?(v=E(F),e[0]=F,e[1]=v):v=e[1];const z=v;let x;e[2]!==w.data?(x=w.data?Y(w.data):null,e[2]=w.data,e[3]=x):x=e[3];const h=x,C=le;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=(f,P)=>C(f.path)?-1:C(P.path)?1:E(f.path).localeCompare(E(P.path)),e[4]=p):p=e[4];const B=(D.data??[]).filter(se).sort(p),[k,S]=O.useState(null),c=k===null?null:B.find(f=>f.path===k)??null,u=h?.name??z;let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:t.jsx(K,{size:18})}),e[5]=g):g=e[5];let d;e[6]!==u||e[7]!==l?(d=l==="dialog"?t.jsx(H,{className:"flex-1 truncate text-base font-medium text-foreground",children:u}):t.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:u}),e[6]=u,e[7]=l,e[8]=d):d=e[8];let m;e[9]!==r||e[10]!==l?(m=l==="dialog"?t.jsx(W,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:t.jsx(I,{size:16})})}):t.jsx(U,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:r,children:t.jsx(I,{size:16})}),e[9]=r,e[10]=l,e[11]=m):m=e[11];let j;e[12]!==d||e[13]!==m?(j=t.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[g,d,m]}),e[12]=d,e[13]=m,e[14]=j):j=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=b):b=e[15];const T="relative flex min-w-0 flex-1 flex-col overflow-y-auto",y=c?t.jsx(V,{file:{key:c.path,filename:E(c.path),size:c.size,downloadUrl:$(n??"",c.path)}}):w.isPending?t.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[t.jsx(L,{className:"h-4 w-1/3"}),t.jsx(L,{className:"h-3 w-full"}),t.jsx(L,{className:"h-3 w-5/6"}),t.jsx(L,{className:"h-3 w-2/3"})]}):w.isError||!h?t.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),t.jsx("p",{className:"text-base text-muted-foreground",children:h.description??"Claude Code skill"})]}),t.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:t.jsx(R,{id:`skill-preview-${o}`,text:h.body})})]});let N;return e[16]!==y?(N=t.jsx("div",{className:T,children:y}),e[16]=y,e[17]=N):N=e[17],t.jsxs(t.Fragment,{children:[j,t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[b,D.isPending?t.jsx(L,{className:"mx-2 h-4 w-24"}):B.map(f=>{const P=C(f.path)?c===null:k===f.path;return t.jsxs("button",{type:"button",onClick:()=>S(C(f.path)?null:f.path),className:A("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",P?"bg-background shadow-sm":"hover:bg-muted/60"),children:[t.jsx(Z,{filename:E(f.path),className:"h-6 w-5 shrink-0"}),t.jsx("span",{className:A("truncate text-sm",P?"text-foreground":"text-muted-foreground"),children:E(f.path)})]},f.path)})]}),N]})]})}function se(i){return i.kind==="file"}function le(i){return E(i)==="SKILL.md"}function je(i){const e=M.c(8),{skillPath:o,onClose:r}=i;let l;e[0]!==r?(l=F=>{F||r()},e[0]=r,e[1]=l):l=e[1];let a;e[2]!==r||e[3]!==o?(a=t.jsx(_,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:t.jsx(te,{skillPath:o,onClose:r,variant:"dialog"})}),e[2]=r,e[3]=o,e[4]=a):a=e[4];let n;return e[5]!==l||e[6]!==a?(n=t.jsx(G,{open:!0,onOpenChange:l,children:a}),e[5]=l,e[6]=a,e[7]=n):n=e[7],n}const re={default:{backFrom:"#4D87DF",backTo:"#296FE8",frontFrom:"#72B6FA",frontTo:"#5BB1EF",stripe:"#84CDFB",glyph:"#014AC9"},system:{backFrom:"#8A94A6",backTo:"#6B7687",frontFrom:"#B6BEC9",frontTo:"#A3ADBA",stripe:"#D5DBE3",glyph:"#3D4757"}},ie=[-7,0,7];function be(i){const e=M.c(50);let o,r,l,a,n;e[0]!==i?({glyph:o,readOnly:l,tone:a,sheets:n,...r}=i,e[0]=i,e[1]=o,e[2]=r,e[3]=l,e[4]=a,e[5]=n):(o=e[1],r=e[2],l=e[3],a=e[4],n=e[5]);const F=a===void 0?"default":a,$=n===void 0?0:n,s=re[F],w=O.useId(),D=`${w}-back`,v=`${w}-front`,z=`url(#${D})`;let x;e[6]!==z?(x=t.jsx("path",{d:"M2.53738 2.55C1.13602 2.55 0 3.68602 0 5.08738V11.535H31.931V7.65326C31.931 6.23616 30.7822 5.08738 29.3651 5.08738H14.7681L13.8775 5.02542C13.3886 4.99141 12.9197 4.81809 12.5261 4.52596L10.7726 3.22419C10.1828 2.78638 9.46784 2.55 8.73334 2.55H2.53738Z",fill:z}),e[6]=z,e[7]=x):x=e[7];let h;e[8]!==$?(h=ie.slice(0,Math.min(Math.max($,0),3)).map(oe),e[8]=$,e[9]=h):h=e[9];const C=`url(#${v})`;let p;e[10]!==C?(p=t.jsx("rect",{y:"8.72",width:"32",height:"21",rx:"2.566",fill:C}),e[10]=C,e[11]=p):p=e[11];let B;e[12]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("rect",{x:"0.3",y:"8.86",width:"31.4",height:"0.55",rx:"0.275",fill:"#FFFFFF",opacity:"0.25"}),e[12]=B):B=e[12];let k,S;e[13]!==s.stripe?(S=t.jsx("rect",{y:"25.81",width:"32",height:"0.552",fill:s.stripe}),k=t.jsx("rect",{y:"27.05",width:"32",height:"0.552",fill:s.stripe}),e[13]=s.stripe,e[14]=k,e[15]=S):(k=e[14],S=e[15]);let c;e[16]!==o||e[17]!==s.glyph?(c=o&&t.jsx(o,{x:10.5,y:13.2,width:11,height:11,strokeWidth:2.2,style:{color:s.glyph,opacity:.55}}),e[16]=o,e[17]=s.glyph,e[18]=c):c=e[18];let u;e[19]!==l?(u=l&&t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"25.5",cy:"25.5",r:"6.2",strokeWidth:"1",className:"fill-background stroke-border"}),t.jsx(ee,{x:22.1,y:22.1,width:6.8,height:6.8,strokeWidth:2.2,className:"text-muted-foreground"})]}),e[19]=l,e[20]=u):u=e[20];let g;e[21]!==s.backFrom?(g=t.jsx("stop",{offset:"0.3",stopColor:s.backFrom}),e[21]=s.backFrom,e[22]=g):g=e[22];let d;e[23]!==s.backTo?(d=t.jsx("stop",{offset:"1",stopColor:s.backTo}),e[23]=s.backTo,e[24]=d):d=e[24];let m;e[25]!==D||e[26]!==g||e[27]!==d?(m=t.jsxs("linearGradient",{id:D,x1:"15.97",y1:"2.55",x2:"15.97",y2:"9.53",gradientUnits:"userSpaceOnUse",children:[g,d]}),e[25]=D,e[26]=g,e[27]=d,e[28]=m):m=e[28];let j;e[29]!==s.frontFrom?(j=t.jsx("stop",{stopColor:s.frontFrom}),e[29]=s.frontFrom,e[30]=j):j=e[30];let b;e[31]!==s.frontTo?(b=t.jsx("stop",{offset:"1",stopColor:s.frontTo}),e[31]=s.frontTo,e[32]=b):b=e[32];let T;e[33]!==v||e[34]!==j||e[35]!==b?(T=t.jsxs("radialGradient",{id:v,cx:"0",cy:"0",r:"10",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1.6 0 0 2.1538 16 19.22)",children:[j,b]}),e[33]=v,e[34]=j,e[35]=b,e[36]=T):T=e[36];let y;e[37]!==m||e[38]!==T?(y=t.jsxs("defs",{children:[m,T]}),e[37]=m,e[38]=T,e[39]=y):y=e[39];let N;return e[40]!==r||e[41]!==k||e[42]!==c||e[43]!==u||e[44]!==y||e[45]!==x||e[46]!==h||e[47]!==p||e[48]!==S?(N=t.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...r,children:[x,h,p,B,S,k,c,u,y]}),e[40]=r,e[41]=k,e[42]=c,e[43]=u,e[44]=y,e[45]=x,e[46]=h,e[47]=p,e[48]=S,e[49]=N):N=e[49],N}function oe(i){return t.jsx("rect",{x:"9",y:"3.4",width:"14",height:"12",rx:"1.2",fill:"#F4F6F9",stroke:"#C9D2DC",strokeWidth:"0.7",transform:`rotate(${i} 16 12)`},i)}export{be as F,je as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dk as C,c as d,j as c,aU as j,r as f,l as p,bd as b,dl as v,dm as h}from"./index-
|
|
1
|
+
import{dk as C,c as d,j as c,aU as j,r as f,l as p,bd as b,dl as v,dm as h}from"./index-BHW38fGm.js";import{L as N}from"./label-BHCiWeM9.js";const E=C,g=f.createContext({}),M=t=>{const e=d.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(j,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=d.c(13),e=f.useContext(g),s=f.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=f.createContext({});function w(t){const e=d.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=f.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=d.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(b,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=d.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-BHW38fGm.js";function i(t){let r=2166136261;for(let e=0;e<t.length;e++)r=Math.imul(r^t.charCodeAt(e),16777619);return`a${(r>>>0).toString(36).padStart(6,"0").slice(-6)}`}function l(t){if(t&&typeof t=="object"&&"gatewayClientId"in t&&typeof t.gatewayClientId=="string")return t.gatewayClientId}function o(t,r){if(!r)return t;const e=`${i(r)}_`;return t.startsWith(e)?t.slice(e.length):t}function a(t,r){return o(t,r).replace(/[_-]/g," ").toLowerCase()}export{a as d,l as g,o as s};
|