decocms 4.403.3 → 4.405.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-YzP1ItvL.js → AlertCircle-DsUEjB1y.js} +1 -1
- package/dist/client/assets/{AreaChart-alLvZOvR.js → AreaChart-BRDOpSI-.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CYpMPcOZ.js → ArrowLeft-CxRjfeZc.js} +1 -1
- package/dist/client/assets/{ArrowRight-Cx_2CtPy.js → ArrowRight-eKUb0n2T.js} +1 -1
- package/dist/client/assets/{ArrowUp-qgp0EG1S.js → ArrowUp-CX6DmOcK.js} +1 -1
- package/dist/client/assets/{CartesianChart-DG44bZ81.js → CartesianChart-CqtpuEW2.js} +1 -1
- package/dist/client/assets/{Check-DMZ0RIwh.js → Check-C47vZGc9.js} +1 -1
- package/dist/client/assets/{CheckCircle-gIlSms3T.js → CheckCircle-bbegiaBM.js} +1 -1
- package/dist/client/assets/{ChevronUp-G7F3VYIf.js → ChevronUp-CpSCTQZS.js} +1 -1
- package/dist/client/assets/{Copy01-B-dz9iXg.js → Copy01-BJU01N4U.js} +1 -1
- package/dist/client/assets/{CreditCard01-CAP8dDsb.js → CreditCard01-DC24GL_m.js} +1 -1
- package/dist/client/assets/{DotsVertical-BdurgnSh.js → DotsVertical-DZNzJWKj.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DvWdYR3c.js → ErrorBarContext-DSBwGBE1.js} +1 -1
- package/dist/client/assets/{Eye-ZgodVkyQ.js → Eye-CNkWuzWx.js} +1 -1
- package/dist/client/assets/{Globe04-Dy5lW2tL.js → Globe04-DhVTbcPw.js} +1 -1
- package/dist/client/assets/{Image01-GZwmFlKM.js → Image01-B3RqtHm-.js} +1 -1
- package/dist/client/assets/{Key01-Da1KKUib.js → Key01-Cp3mTBvm.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DbkGyzH4.js → LayoutLeft-R0hY03zy.js} +1 -1
- package/dist/client/assets/{Line-C4t6yXJk.js → Line-CH538az5.js} +1 -1
- package/dist/client/assets/{Link01-BdK1ByU5.js → Link01-B54Jeukm.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D-eEFhKO.js → LinkExternal01-ZYxwJi4c.js} +1 -1
- package/dist/client/assets/{Monitor01-Dqm9KsCN.js → Monitor01-DKi30I8e.js} +1 -1
- package/dist/client/assets/{Palette-H8aWBRVl.js → Palette-CB7RyOHv.js} +1 -1
- package/dist/client/assets/{Plus-Cc4ubNGu.js → Plus-K9ZpzFJZ.js} +1 -1
- package/dist/client/assets/{SearchMd-CqrAQSvB.js → SearchMd-Bs1QtwQ9.js} +1 -1
- package/dist/client/assets/{Sector-CtG8V90b.js → Sector-DPVvirap.js} +1 -1
- package/dist/client/assets/{Share07-DGVeEnhS.js → Share07-BSBmBJl6.js} +1 -1
- package/dist/client/assets/{Sun-C7ngZDnN.js → Sun-Dp-NCeHB.js} +1 -1
- package/dist/client/assets/{Tool01-PaohPsXN.js → Tool01-Cg6st-mQ.js} +1 -1
- package/dist/client/assets/{Trash01-DngK_rxV.js → Trash01-Pso5bybc.js} +1 -1
- package/dist/client/assets/{Upload01-BM_RpwaJ.js → Upload01-JoSAzPxB.js} +1 -1
- package/dist/client/assets/{User01--_GcM9Nm.js → User01-B6NQ0PY-.js} +1 -1
- package/dist/client/assets/{UserSquare-DrIVMzs5.js → UserSquare-JAwDD8yK.js} +1 -1
- package/dist/client/assets/{Users01-CbmiNtCo.js → Users01-DdaptQvV.js} +1 -1
- package/dist/client/assets/{X-DqB0NFUe.js → X-Cf3B8UPs.js} +1 -1
- package/dist/client/assets/{XClose-CbmBXBAq.js → XClose-Db8fLrAk.js} +1 -1
- package/dist/client/assets/{Zap-BoM6OXqO.js → Zap-CGkZfZn3.js} +1 -1
- package/dist/client/assets/{ZoomOut-BikQEs2y.js → ZoomOut-CqDz8pWP.js} +1 -1
- package/dist/client/assets/{access-gate-AAHSu0hl.js → access-gate-CpD0T0Z7.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-D8Ox25XG.js → add-connection-dialog-BvGiaD4j.js} +1 -1
- package/dist/client/assets/{agent-analytics-DDhZ0jKs.js → agent-analytics-DJ0jHUU_.js} +1 -1
- package/dist/client/assets/agent-app-s83EqitU.js +1 -0
- package/dist/client/assets/{agent-assets-Dq2zZ9iD.js → agent-assets-Y6S9Evzj.js} +1 -1
- package/dist/client/assets/{agent-automation-BSGdVlGr.js → agent-automation-DS33AtWX.js} +1 -1
- package/dist/client/assets/{agent-automations-BZuhHWAh.js → agent-automations-D5Cs6slq.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-7OiLp97R.js → agent-connect-sources-C19Ncb9i.js} +1 -1
- package/dist/client/assets/agent-deck-WZJTTBYj.js +1 -0
- package/dist/client/assets/{agent-e2e-1LEoDd2q.js → agent-e2e-DiFXrwdb.js} +1 -1
- package/dist/client/assets/{agent-experiments-DwT1YuHQ.js → agent-experiments-krT8jDwR.js} +1 -1
- package/dist/client/assets/{agent-file-CqIOzRIE.js → agent-file-_AMAGkCi.js} +1 -1
- package/dist/client/assets/{agent-git-B7cORj3l.js → agent-git-Nuk-Z_IW.js} +1 -1
- package/dist/client/assets/{agent-hosting-CXGg7nzG.js → agent-hosting-37l2SBDK.js} +1 -1
- package/dist/client/assets/{agent-icon-Jo8-4dPq.js → agent-icon-2JtFJ4_g.js} +1 -1
- package/dist/client/assets/agent-library-file-jhD05a-J.js +1 -0
- package/dist/client/assets/{agent-monitor-D64P2JxS.js → agent-monitor-BPp6ZGvE.js} +1 -1
- package/dist/client/assets/{agent-overview-C8Kpohcu.js → agent-overview-D6EMAXSv.js} +1 -1
- package/dist/client/assets/agent-settings-C7Qj41jR.js +1 -0
- package/dist/client/assets/{agent-site-editor-Dh6Uc_LN.js → agent-site-editor-DeGeacW9.js} +11 -11
- package/dist/client/assets/agent-site-editor-code-3cz8fGiG.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-CnwpjMKB.js → agent-site-editor-content-1fuHnPdU.js} +6 -6
- package/dist/client/assets/{agent-site-editor-preview-CiPkNvAv.js → agent-site-editor-preview-Cw6g-T0N.js} +3 -3
- package/dist/client/assets/agent-view-Dvx7sTES.js +1 -0
- package/dist/client/assets/{agent-view-guard-C89vuUCE.js → agent-view-guard-z6x7Nm-M.js} +1 -1
- package/dist/client/assets/{agents-list-CqGVCx09.js → agents-list-CL1iCZzE.js} +1 -1
- package/dist/client/assets/{ai-providers-DnvYOkAI.js → ai-providers-C5ektYHB.js} +1 -1
- package/dist/client/assets/{alert-Dd873hHW.js → alert-Dl6kFooW.js} +1 -1
- package/dist/client/assets/{alert-dialog-BLhLimu7.js → alert-dialog-i3oXAGgD.js} +1 -1
- package/dist/client/assets/{analytics-sections-BzoIN8JU.js → analytics-sections-qrxE64IW.js} +1 -1
- package/dist/client/assets/api-keys-CRIX4At_.js +1 -0
- package/dist/client/assets/{api-keys-DB430lDw.js → api-keys-DGIbcgfp.js} +1 -1
- package/dist/client/assets/app-editor-Jk9A4xW_.js +1 -0
- package/dist/client/assets/{asset-utils-BkBA20sO.js → asset-utils-B6oJ7SUl.js} +1 -1
- package/dist/client/assets/{auth-gtdPpHjL.js → auth-DZGX-aYF.js} +1 -1
- package/dist/client/assets/{auth-catchall-Dn3z6qzW.js → auth-catchall-Cjy0xwd1.js} +1 -1
- package/dist/client/assets/{auth-entry-Dxse2891.js → auth-entry-OuVKDzQ_.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DufynUa0.js → auth-split-layout-BnmWVJas.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CVOY3bdK.js → authenticate-and-persist-oauth-CbvB7TLO.js} +1 -1
- package/dist/client/assets/{automation-list-row-E5XRelXF.js → automation-list-row-OQeKNB2H.js} +1 -1
- package/dist/client/assets/{automation-runs-CK8TUduc.js → automation-runs-BM7Yw2Eq.js} +1 -1
- package/dist/client/assets/{automations-CgsdwCbr.js → automations-efhes8rR.js} +1 -1
- package/dist/client/assets/{autosend-D8qwra7k.js → autosend-DJOIimLd.js} +1 -1
- package/dist/client/assets/{avatar-DzaDPlqs.js → avatar-FPeNmw2i.js} +1 -1
- package/dist/client/assets/{badge-DAnEDAAp.js → badge-Bm2rr-BJ.js} +1 -1
- package/dist/client/assets/{block-document-GGgZ2xCN.js → block-document-BBVUlehr.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-yC0xLA11.js → blocks-preview-workspace-context-C2RrHeY4.js} +1 -1
- package/dist/client/assets/{buckets-CzFhrvYl.js → buckets-C3-HQjpu.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CfF_OZho.js → build-improve-prompt-doc-BF8D4qJT.js} +1 -1
- package/dist/client/assets/{calendar-C6S4gjZ0.js → calendar-CcQzKXt2.js} +1 -1
- package/dist/client/assets/{capability-load-error-CAPXk7c8.js → capability-load-error-CIXQEGJJ.js} +1 -1
- package/dist/client/assets/{cards-D5iviFJy.js → cards-Ba18JLi3.js} +1 -1
- package/dist/client/assets/category-editor-8gMuA_qk.js +1 -0
- package/dist/client/assets/{chart-CfF7_1qV.js → chart-CMWlO3gW.js} +1 -1
- package/dist/client/assets/{chat-context-CNmaHg6E.js → chat-context-gHGpwBR0.js} +1 -1
- package/dist/client/assets/{chat-draft-BAXNdbwi.js → chat-draft-DALA5d_a.js} +1 -1
- package/dist/client/assets/{checkbox-CCgxRg-G.js → checkbox-X3rwkbl_.js} +1 -1
- package/dist/client/assets/{choose-editor-SFRWj4Nc.js → choose-editor-DkEu4jVj.js} +1 -1
- package/dist/client/assets/claim-phase-copy-Cm4suJFn.js +1 -0
- package/dist/client/assets/{cli-auth-success-DJgHS1fA.js → cli-auth-success-Da8SJJAt.js} +1 -1
- package/dist/client/assets/{client-icons-BB73IOAY.js → client-icons-Dxr8Yq32.js} +1 -1
- package/dist/client/assets/{collapsible-ATnyEj_S.js → collapsible-K7HXR552.js} +1 -1
- package/dist/client/assets/{collection-detail-BDR04Kq5.js → collection-detail-BZUXDRPJ.js} +1 -1
- package/dist/client/assets/{collection-display-button-IgFAgqXL.js → collection-display-button-BjojfXU0.js} +1 -1
- package/dist/client/assets/{collection-search-CQtm6ZPr.js → collection-search-CkBXUEir.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BaIEnIrf.js → collection-table-wrapper-DN6s2ezH.js} +1 -1
- package/dist/client/assets/{collection-tabs-Ctgaf4Pj.js → collection-tabs-h69TId83.js} +1 -1
- package/dist/client/assets/{combobox-Ce_kogEm.js → combobox-Dtm1D1Gx.js} +1 -1
- package/dist/client/assets/{command-Be1FiAet.js → command-CVsrsI4m.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-TmU46bmw.js → companion-mcps-section-BuP-DvjF.js} +1 -1
- package/dist/client/assets/{connect-T9gYLRQ1.js → connect-BoYDAi_l.js} +1 -1
- package/dist/client/assets/{connect-layout-BJyoZgZp.js → connect-layout-DoSkHXO9.js} +1 -1
- package/dist/client/assets/{connection-card-Cbi3TS91.js → connection-card-KAiDM8CK.js} +1 -1
- package/dist/client/assets/{connection-detail-D_VF5iTl.js → connection-detail-CzNkVerg.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B6j-CkAe.js → connection-form-helpers-DXZ3P4tF.js} +1 -1
- package/dist/client/assets/{connection-DpBbRAF7.js → connection-hgnPVi5k.js} +1 -1
- package/dist/client/assets/{connections-BWtz94mz.js → connections-CnlMLJZm.js} +1 -1
- package/dist/client/assets/context-Bd72LbTF.js +1 -0
- package/dist/client/assets/{create-organization-dialog-DH-ikDWk.js → create-organization-dialog-i0CZVTID.js} +1 -1
- package/dist/client/assets/{decopilot-Dvgnn1td.js → decopilot-BI4MNQek.js} +1 -1
- package/dist/client/assets/{dialog-DdqSoRM9.js → dialog-Dz5U96w4.js} +1 -1
- package/dist/client/assets/{discover-DTBbmewn.js → discover-najCHmTL.js} +1 -1
- package/dist/client/assets/{domain-settings-BdmwwZJl.js → domain-settings-DNwTY7PM.js} +1 -1
- package/dist/client/assets/{download-app-dialog-BlOmHAsj.js → download-app-dialog-DGOmfby-.js} +1 -1
- package/dist/client/assets/{drawer-DD_EvNka.js → drawer-D10zZUJc.js} +1 -1
- package/dist/client/assets/{editor-oQiihuTN.js → editor-D2xPr_F4.js} +1 -1
- package/dist/client/assets/{empty-state-B0qH2Kts.js → empty-state-C3Y4Vd_i.js} +1 -1
- package/dist/client/assets/{empty-state-CdcwJcHp.js → empty-state-C9c8w1ej.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BYZdGxJz.js → extract-connection-data-DHIKYRMr.js} +1 -1
- package/dist/client/assets/{feature-gate-DnBD8lbt.js → feature-gate-B48tqaZu.js} +1 -1
- package/dist/client/assets/{feature-paywall-CXAok1MA.js → feature-paywall-qXQ1HIVx.js} +1 -1
- package/dist/client/assets/{file-explorer-CprZ5S2c.js → file-explorer-DSXowg_W.js} +1 -1
- package/dist/client/assets/{file-preview-D-fY1vxt.js → file-preview-C6JgW7Ry.js} +1 -1
- package/dist/client/assets/{file-share-button-BojriL0f.js → file-share-button-CXdrjH5i.js} +1 -1
- package/dist/client/assets/{file-type-icon-BDgGUbiO.js → file-type-icon-C5jBCqyr.js} +1 -1
- package/dist/client/assets/{folder-icon-DYCGfqo_.js → folder-icon-CLfej4Jo.js} +1 -1
- package/dist/client/assets/{form-DDN0fmnr.js → form-dzTiwEC8.js} +1 -1
- package/dist/client/assets/{gateway-client-aZG77Xf7.js → gateway-client-CQ99_F9N.js} +1 -1
- package/dist/client/assets/{general-Br7EOWl5.js → general-BOFVBpvc.js} +1 -1
- package/dist/client/assets/{github-icon-BgXpeChB.js → github-icon-DQKhcsF7.js} +1 -1
- package/dist/client/assets/{home-BuOEAUJy.js → home-BJL80DBy.js} +1 -1
- package/dist/client/assets/{hooks-BaT6zpiH.js → hooks-CIjNCBKM.js} +1 -1
- package/dist/client/assets/{icon-button-D7VZdfmT.js → icon-button-BTyh33gY.js} +1 -1
- package/dist/client/assets/{index-DP-N5syJ.js → index-3B-rQ9Sg.js} +1 -1
- package/dist/client/assets/{index-BEaxoeD8.js → index-BwIM1E_p.js} +1 -1
- package/dist/client/assets/{index-N9XVciQ5.js → index-C8m20OOl.js} +1 -1
- package/dist/client/assets/{index-A41c0be0.js → index-CDrqgvtL.js} +1 -1
- package/dist/client/assets/{index-DbfsNkVH.js → index-CHgxICOu.js} +1 -1
- package/dist/client/assets/{index-CK2jC1b8.js → index-CKFxHbnr.js} +41 -41
- package/dist/client/assets/{index-DS0-Afd0.js → index-CUHMaDus.js} +1 -1
- package/dist/client/assets/{index-Xi29qi2J.js → index-CWhfWvDv.js} +1 -1
- package/dist/client/assets/{index-CovgzY-C.js → index-D6K21KS-.js} +1 -1
- package/dist/client/assets/{index-DBDtjD9g.js → index-DRZWAo_x.js} +1 -1
- package/dist/client/assets/{index-oBvqCihi.js → index-DYsgV6Ph.js} +1 -1
- package/dist/client/assets/{index-C2zAJxiS.js → index-DsMZ3RYm.js} +1 -1
- package/dist/client/assets/{index-itMUnfUX.js → index-fDTFynqB.js} +1 -1
- package/dist/client/assets/{index-redirect-BH1-KtOd.js → index-redirect-DdIeh8Z8.js} +1 -1
- package/dist/client/assets/{index-BOV18OwN.js → index-vfgVsYie.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-r-3Zb0hn.js → infiniteQueryObserver-DhhqlhlM.js} +1 -1
- package/dist/client/assets/{infra-billing-C_fJnzvO.js → infra-billing-CvukVSxB.js} +1 -1
- package/dist/client/assets/{input-DdZYEeuc.js → input-BwYzPEPU.js} +1 -1
- package/dist/client/assets/{input-BCcJ8Hmw.js → input-CkB9UxHQ.js} +1 -1
- package/dist/client/assets/{input-BSlf0cIW.js → input-DxQMUEiU.js} +1 -1
- package/dist/client/assets/{integration-icon-CicyoW2g.js → integration-icon-B1VfMW51.js} +1 -1
- package/dist/client/assets/{label-C32hF8xr.js → label-Byavsfld.js} +1 -1
- package/dist/client/assets/last-preview-page-DUWcbCE7.js +1 -0
- package/dist/client/assets/{layout-C7aLhCIT.js → layout-B-sEL084.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-B5qs0t-f.js → legacy-agents-deep-DQRfRExe.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-4eY9-lqG.js → legacy-main-redirect-DEsEEeKY.js} +1 -1
- package/dist/client/assets/{library-ZONMv_NM.js → library-DT6klu8j.js} +1 -1
- package/dist/client/assets/{login-C_WqcNro.js → login-MIjocvdU.js} +1 -1
- package/dist/client/assets/{markdown-CCVwyZmB.js → markdown-CtPprix1.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CutrdRC_.js → mcp-app-renderer-Cu2_lqRx.js} +1 -1
- package/dist/client/assets/{mcp-oauth-aTwtgi6X.js → mcp-oauth-t4nAyfWQ.js} +1 -1
- package/dist/client/assets/{members-BOvPF0VE.js → members-C0H81MGh.js} +1 -1
- package/dist/client/assets/{message-templates-CGfvrmF4.js → message-templates-BLVZkLuU.js} +1 -1
- package/dist/client/assets/{mini-report-page-CMXtHyKe.js → mini-report-page-B0R6DrC-.js} +1 -1
- package/dist/client/assets/mock-board-DkPAOTPZ.js +10 -0
- package/dist/client/assets/{monaco-editor-Em6ZNkGd.js → monaco-editor-CviGEIDQ.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BvzAoKRs.js → monitoring-stats-row-DKRFV8Sj.js} +1 -1
- package/dist/client/assets/{multi-select-CrUYDIyH.js → multi-select-CASCfNC5.js} +1 -1
- package/dist/client/assets/{mustache-DR3KrOjx.js → mustache-xJcbJqt3.js} +2 -2
- package/dist/client/assets/{oauth-callback-DpcsaVMs.js → oauth-callback-DgK7voTw.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Bj131oo2.js → oauth-callback-ai-provider-C7khkRGZ.js} +1 -1
- package/dist/client/assets/{onboarding-90UHPvM3.js → onboarding-ByYhY5XE.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DCTKx36B.js → optimistic-project-sidebar-views-B_oHISvm.js} +1 -1
- package/dist/client/assets/{org-file-open-context-8FCTmLsE.js → org-file-open-context-Bwu-baYU.js} +1 -1
- package/dist/client/assets/{organization-choice-CxhUiOOZ.js → organization-choice-CCBX3ogL.js} +1 -1
- package/dist/client/assets/{orgs-25uEO8Z8.js → orgs-AS92pNs0.js} +1 -1
- package/dist/client/assets/{page-seo-form-BnNRoPEM.js → page-seo-form-D5Sws58P.js} +1 -1
- package/dist/client/assets/{pair-DNtCa00h.js → pair-MV6enRyS.js} +1 -1
- package/dist/client/assets/{plan-ladder-yAJPPpd3.js → plan-ladder-Czwx75Rs.js} +1 -1
- package/dist/client/assets/{popover-D9fLEvti.js → popover-BdCX7ryo.js} +1 -1
- package/dist/client/assets/post-calendar-B-Mf8ZWz.js +1 -0
- package/dist/client/assets/{post-editor-DnRxf2PZ.js → post-editor-Ar3Q7Pip.js} +2 -2
- package/dist/client/assets/{preview-content-B0ztTWdM.js → preview-content-s5k1Cbyz.js} +1 -1
- package/dist/client/assets/{preview-dialog-BPCHz2nB.js → preview-dialog-DuTtXNNd.js} +1 -1
- package/dist/client/assets/{profile-DOoWHc2h.js → profile-CzeUr_Ho.js} +1 -1
- package/dist/client/assets/{project-app-view-CXQWtLpt.js → project-app-view-CoKvxaNv.js} +1 -1
- package/dist/client/assets/{project-feed-w07TksiO.js → project-feed-Bffo6UQZ.js} +1 -1
- package/dist/client/assets/{project-icon-D4PJG-i0.js → project-icon-Be-Ni96A.js} +1 -1
- package/dist/client/assets/project-reports-DGtApGn_.js +1 -0
- package/dist/client/assets/project-tasks-C6bTWPYs.js +1 -0
- package/dist/client/assets/{prompts-CXImayyy.js → prompts-bcmTsSOK.js} +1 -1
- package/dist/client/assets/record-editor-BmfhaIV0.js +1 -0
- package/dist/client/assets/redirect-editor-CffiC-_L.js +1 -0
- package/dist/client/assets/{reports-D5Ws-Z-Z.js → reports-B9J-0pwm.js} +1 -1
- package/dist/client/assets/reports-D__MXfnc.js +1 -0
- package/dist/client/assets/{reports-onboarding-C3LauMpv.js → reports-onboarding-BaQ-4i_2.js} +1 -1
- package/dist/client/assets/{reports-tab-CrHdPk7J.js → reports-tab-CyOnuHv8.js} +2 -2
- package/dist/client/assets/{repositories-D8nv7Xk5.js → repositories-Bbpp5SgW.js} +1 -1
- package/dist/client/assets/{repository-import-picker-B_yB2gqJ.js → repository-import-picker-B5FDCmL1.js} +1 -1
- package/dist/client/assets/{repository-picker-BEpNu3ZO.js → repository-picker-Hzd_E6oP.js} +1 -1
- package/dist/client/assets/{require-capability-DJOR9y0I.js → require-capability-BiVnHM5-.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DB5JpRTU.js → required-auth-layout-BIF9HPgK.js} +1 -1
- package/dist/client/assets/{reset-password-kvrUhFut.js → reset-password-B1vGE6sA.js} +1 -1
- package/dist/client/assets/{resizable-DTOjgT4Y.js → resizable-eQlpFDx1.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DRTn2NwY.js → resolve-tab-icon-CRRFoIat.js} +1 -1
- package/dist/client/assets/{review-settings-E3kmj1nz.js → review-settings-CCgGhKT8.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-D3evQDCf.js → rich-text-link-control-z-Yv55rX.js} +1 -1
- package/dist/client/assets/{roles-BzYnDfEr.js → roles-CpvpHgz9.js} +1 -1
- package/dist/client/assets/{route-DGBW5u-y.js → route-8dVhoFE6.js} +1 -1
- package/dist/client/assets/{route-BK1UYpJJ.js → route-CE5dJ4Bv.js} +1 -1
- package/dist/client/assets/route-DJiiQ0FB.js +1 -0
- package/dist/client/assets/{route-page-header-DsLKRhCA.js → route-page-header-CU_K_kqW.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-CTcUBv1Z.js → runnable-block-editor-DO1y86de.js} +4 -4
- package/dist/client/assets/{sandbox-lifecycle-context-DVklx5ib.js → sandbox-lifecycle-context-uLRMQhBA.js} +1 -1
- package/dist/client/assets/{schema-YWMvOOES.js → schema-CnqoZ8XQ.js} +1 -1
- package/dist/client/assets/{scroll-area-DCufqOiC.js → scroll-area-mXx1_HGL.js} +1 -1
- package/dist/client/assets/{search-input-DZ5LjK8B.js → search-input-CrsnKDit.js} +1 -1
- package/dist/client/assets/{search-toggle-MqWnt0CW.js → search-toggle-CQ_ABEOc.js} +1 -1
- package/dist/client/assets/{secret-picker-B0gTMC8S.js → secret-picker-DftAn2T4.js} +1 -1
- package/dist/client/assets/{secrets-BSAIgPVP.js → secrets-BenDeLd0.js} +1 -1
- package/dist/client/assets/sections-editor-CPzIAZe_.js +1 -0
- package/dist/client/assets/{select-D4vELKrF.js → select-BxPDCCiu.js} +1 -1
- package/dist/client/assets/{select-model-CRu7b7k2.js → select-model-DqVMLwya.js} +1 -1
- package/dist/client/assets/seo-editor-CMhOrU3n.js +1 -0
- package/dist/client/assets/{separator-HBV5anuo.js → separator-BGdDqiZ3.js} +1 -1
- package/dist/client/assets/{settings-tab-C59u0Vwx.js → settings-tab-CnB_ZxAu.js} +1 -1
- package/dist/client/assets/{sheet-6Vxtignr.js → sheet-BtadI1Rc.js} +1 -1
- package/dist/client/assets/{shell-layout-0w3S7Z17.js → shell-layout-DLejAPNB.js} +1 -1
- package/dist/client/assets/{skill-preview-CNZdtGsC.js → skill-preview-BFvfROVY.js} +1 -1
- package/dist/client/assets/{skills-BtaqsxQu.js → skills-DbhvAlhu.js} +1 -1
- package/dist/client/assets/{sso--qHgD-FF.js → sso-KEEpxd2V.js} +1 -1
- package/dist/client/assets/{suggestion-CTZ4P7Cg.js → suggestion-BmwmNKL9.js} +1 -1
- package/dist/client/assets/{switch-DCOUunxF.js → switch-C-nd7OoO.js} +1 -1
- package/dist/client/assets/{synced-repos-CfI16RaS.js → synced-repos-C9tzSlRg.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-AK9UZj7M.js → tab-icon-glyph-kI1zUO91.js} +1 -1
- package/dist/client/assets/{table-CcJ0WsFv.js → table-Bkx16DCE.js} +1 -1
- package/dist/client/assets/{tabs-C_SkK0zq.js → tabs-D4SJ_C0_.js} +1 -1
- package/dist/client/assets/task-board-BiZDtBvo.js +1 -0
- package/dist/client/assets/{task-route-PE3bfn_g.js → task-route-CP0YfIgz.js} +1 -1
- package/dist/client/assets/{task-status-BVK9hOjZ.js → task-status-B6r3yHWv.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CiXYmN63.js → taskboard-analytics-DmlVpaFB.js} +1 -1
- package/dist/client/assets/tasks-BvH9oEPg.js +1 -0
- package/dist/client/assets/{tasks-BjZo5Fo1.js → tasks-DnfB9nFq.js} +1 -1
- package/dist/client/assets/{textarea-Crbkqbuz.js → textarea-DNWE-6Y9.js} +1 -1
- package/dist/client/assets/{thread-analytics-CGJ4dU6A.js → thread-analytics-CP3fz6fJ.js} +1 -1
- package/dist/client/assets/{thread-button-Iiae4spP.js → thread-button-FFo62BGk.js} +1 -1
- package/dist/client/assets/{thread-intent-3sZpI08X.js → thread-intent-Bq726Q6v.js} +1 -1
- package/dist/client/assets/{thread-route-BAA8UtFQ.js → thread-route-B-izFvIN.js} +1 -1
- package/dist/client/assets/{thread-route-Bvyqd7wd.js → thread-route-Dd8d9CtW.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DqxbC3Or.js → thread-sheet-body-Bgz2ZRh4.js} +1 -1
- package/dist/client/assets/{toggle-group-7Dr1QRv7.js → toggle-group-C87FhCR6.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CkizyPM4.js → toolbar-icon-button-C5f-3a6j.js} +1 -1
- package/dist/client/assets/{tooltip-BX_EIFZx.js → tooltip-FnCBMECQ.js} +1 -1
- package/dist/client/assets/{track-vmG-nRxn.js → track-FnF5w7SG.js} +1 -1
- package/dist/client/assets/{types-D5TGgE6N.js → types-BDMWnOnU.js} +1 -1
- package/dist/client/assets/{usage-stats-CvltoOBH.js → usage-stats-PqvLrMvL.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BBTYyg8P.js → use-ai-providers-DX5RCTyk.js} +1 -1
- package/dist/client/assets/{use-automations-BlZlh8mp.js → use-automations-B52bw_uU.js} +1 -1
- package/dist/client/assets/{use-autosave-xXDIWIWJ.js → use-autosave-Cr1_mFYt.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BSbW_Ju3.js → use-connect-companion-BMwg9HX5.js} +1 -1
- package/dist/client/assets/{use-connection-CrE81qJi.js → use-connection-f-a8Qdyq.js} +1 -1
- package/dist/client/assets/{use-copy-D4TIbhMe.js → use-copy-CtPa5sGC.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CuRBfvLz.js → use-create-virtual-mcp-BnP_uBRN.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BhHWTG3K.js → use-date-fns-locale-u1XmWKbn.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Bw4o3_Zw.js → use-debounced-autosave-BnUeJQls.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DfVIFpLg.js → use-debounced-value-D_DsKTtH.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CF4bywq4.js → use-deco-credits-DxZywp4f.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-YF4HlwXb.js → use-decopilot-events-V3tZf_dX.js} +1 -1
- package/dist/client/assets/{use-delete-connection-wMr9Uu7f.js → use-delete-connection-ClW0p9w1.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Mn0HEYuD.js → use-deployment-admin-D2HwbKOU.js} +1 -1
- package/dist/client/assets/{use-entitlements-yqpltSF-.js → use-entitlements-CRnZA3kQ.js} +1 -1
- package/dist/client/assets/use-fast-preview-draft-url-DGcapIoW.js +1 -0
- package/dist/client/assets/{use-file-configs-MemDO-me.js → use-file-configs-BFXH2dey.js} +1 -1
- package/dist/client/assets/{use-in-settings-DB0hw1zu.js → use-in-settings-Go9vg8-w.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Cbikj4Pq.js → use-infinite-scroll-DN7aYmR0.js} +1 -1
- package/dist/client/assets/{use-join-requests-TjFchFSd.js → use-join-requests-DpMQ4JQd.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-r00ZOqDA.js → use-main-panel-tabs-DwGgMMyl.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Myd-JPfa.js → use-mcp-auth-status-BSKhuKI8.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BR_DXeP8.js → use-mcp-client-BbE5oF5S.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DkqcWZgO.js → use-mcp-prompts-OVQRwZ_K.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Be3QJcU4.js → use-mcp-tools-NGNtMvWY.js} +1 -1
- package/dist/client/assets/{use-members-D-Y2ThV6.js → use-members-CmZKIOqi.js} +1 -1
- package/dist/client/assets/{use-mobile-Conlu_a3.js → use-mobile-DMGxFZym.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-EF0ZR5Ia.js → use-navigate-to-agent-IjoqsC0h.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-De_dcOCW.js → use-open-billing-url-BbRW82Lk.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CttLYCV5.js → use-org-auth-client-CZApnVJs.js} +1 -1
- package/dist/client/assets/{use-org-fs-CkOSi_FE.js → use-org-fs-COWrCwL3.js} +1 -1
- package/dist/client/assets/{use-org-sso-B2X6FOxf.js → use-org-sso-BZq8Xs3N.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DylX1P3j.js → use-organization-roles-DJmiqdhn.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DSpO89g3.js → use-organization-settings-WcEHLqay.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DA-8PNPm.js → use-panel-navigate-F2B5eu7B.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DBUyMyFo.js → use-project-native-view-presence-D919Yq9m.js} +1 -1
- package/dist/client/assets/{use-project-scope-3ou33Tvp.js → use-project-scope-CCu6T1jl.js} +1 -1
- package/dist/client/assets/{use-releases-KBXbo7MP.js → use-releases-aCBEyP2H.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-B3bhjY1I.js → use-reports-diagnostic-CvnCzOKZ.js} +1 -1
- package/dist/client/assets/{use-route-default-main-CGb0z4AT.js → use-route-default-main-Kkt1_YCq.js} +1 -1
- package/dist/client/assets/{use-secrets-C9OyvdtH.js → use-secrets-D53eEmvY.js} +1 -1
- package/dist/client/assets/use-section-preview-base-4k4D7MWH.js +1 -0
- package/dist/client/assets/{use-session-runtime-PHj1tP1Y.js → use-session-runtime-DtQVGbHh.js} +1 -1
- package/dist/client/assets/{use-tags-B-gLtKGQ.js → use-tags-FWLb-Jps.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-D1MMktP0.js → use-task-board-analytics-DTSpZdm9.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BcDrCgHz.js → use-task-metadata-Cz142Q4d.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-Dfm_RqUN.js → use-thread-analytics-BCI9hL1f.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-uJ7yrzFy.js → use-thread-outputs-CuBHQW76.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C01zDEqD.js → use-virtual-mcp-DTQxhTEh.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ESd3SKYM.js +1 -0
- package/dist/client/assets/{useQueries-BP5GI7XD.js → useQueries-lYCE6ZBe.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BeckhPCo.js +1 -0
- package/dist/client/assets/{users-CaTn1vrt.js → users-Caiu8Aay.js} +1 -1
- package/dist/client/assets/{utils-jA0q__Q1.js → utils-D_RcVxGX.js} +1 -1
- package/dist/client/assets/variant-calendar-BGSsg1ox.js +1 -0
- package/dist/client/assets/{variant-matcher-override-CSncXAh3.js → variant-matcher-override-BhczYSjn.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-XPVtRrri.js → view-mode-toggle-CA00KZ7m.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CYKM5gcZ.js → virtual-mcp-BcOOKIcs.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +10 -10
- package/dist/server/server.js +9 -9
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DN3mfpdd.js +0 -1
- package/dist/client/assets/agent-deck-BDt03CDi.js +0 -1
- package/dist/client/assets/agent-library-file-dLd73eS3.js +0 -1
- package/dist/client/assets/agent-settings-C0xneLZn.js +0 -1
- package/dist/client/assets/agent-site-editor-code-ZlbxO6EJ.js +0 -2
- package/dist/client/assets/agent-view-Bsid6CA8.js +0 -1
- package/dist/client/assets/api-keys-i6Dia0kF.js +0 -1
- package/dist/client/assets/app-editor-DdsWZBEq.js +0 -1
- package/dist/client/assets/category-editor-BJE37M_v.js +0 -1
- package/dist/client/assets/claim-phase-copy-DiN3tSVA.js +0 -1
- package/dist/client/assets/context-CPyDNVl0.js +0 -1
- package/dist/client/assets/decofile-api-lyYnBz8F.js +0 -1
- package/dist/client/assets/last-preview-page-CUM_HBZO.js +0 -1
- package/dist/client/assets/mock-board-CGPXSvqq.js +0 -10
- package/dist/client/assets/post-calendar-CjmW0tkz.js +0 -1
- package/dist/client/assets/project-reports-BMIOfd4b.js +0 -1
- package/dist/client/assets/project-tasks-CCRlEBDq.js +0 -1
- package/dist/client/assets/record-editor-DcZoL5j2.js +0 -1
- package/dist/client/assets/redirect-editor-CZyQzBp3.js +0 -1
- package/dist/client/assets/reports-CzJ4b030.js +0 -1
- package/dist/client/assets/route-BWaewmAq.js +0 -1
- package/dist/client/assets/sections-editor-DuMAlIKj.js +0 -1
- package/dist/client/assets/seo-editor-DJJVGtAU.js +0 -1
- package/dist/client/assets/task-board-CD8iA_oi.js +0 -1
- package/dist/client/assets/tasks-DcpRISSh.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-BOIphrSf.js +0 -1
- package/dist/client/assets/use-section-preview-base-CalUCZhG.js +0 -1
- package/dist/client/assets/useInfiniteQuery-RDUps_Fq.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CUJCDA4c.js +0 -1
- package/dist/client/assets/variant-calendar-CU0P3xXN.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c,j as s,M as u}from"./index-CK2jC1b8.js";import{ChatLayout as f}from"./index-DS0-Afd0.js";import{a as x}from"./thread-route-Bvyqd7wd.js";import{u as g}from"./use-task-metadata-BcDrCgHz.js";import{AppViewContent as h}from"./project-app-view-CXQWtLpt.js";import"./use-mobile-Conlu_a3.js";import"./thread-button-Iiae4spP.js";import"./use-in-settings-DB0hw1zu.js";import"./sheet-6Vxtignr.js";import"./X-DqB0NFUe.js";import"./tooltip-BX_EIFZx.js";import"./index-BEaxoeD8.js";import"./use-panel-navigate-DA-8PNPm.js";import"./use-project-scope-3ou33Tvp.js";import"./use-virtual-mcp-C01zDEqD.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-CGb0z4AT.js";import"./hooks-BaT6zpiH.js";import"./backoff-8mStPHYB.js";import"./task-board-CD8iA_oi.js";import"./schema-YWMvOOES.js";import"./agent-icon-Jo8-4dPq.js";import"./AlertCircle-YzP1ItvL.js";import"./Tool01-PaohPsXN.js";import"./ArrowUp-qgp0EG1S.js";import"./ArrowLeft-CYpMPcOZ.js";import"./ArrowRight-Cx_2CtPy.js";import"./ZoomOut-BikQEs2y.js";import"./Globe04-Dy5lW2tL.js";import"./CheckCircle-gIlSms3T.js";import"./Check-DMZ0RIwh.js";import"./ChevronUp-G7F3VYIf.js";import"./UserSquare-DrIVMzs5.js";import"./Copy01-B-dz9iXg.js";import"./CreditCard01-CAP8dDsb.js";import"./DotsVertical-BdurgnSh.js";import"./Eye-ZgodVkyQ.js";import"./Share07-DGVeEnhS.js";import"./XClose-CbmBXBAq.js";import"./Image01-GZwmFlKM.js";import"./Key01-Da1KKUib.js";import"./LayoutLeft-DbkGyzH4.js";import"./Link01-BdK1ByU5.js";import"./LinkExternal01-D-eEFhKO.js";import"./Monitor01-Dqm9KsCN.js";import"./Sun-C7ngZDnN.js";import"./Palette-H8aWBRVl.js";import"./Plus-Cc4ubNGu.js";import"./SearchMd-CqrAQSvB.js";import"./Trash01-DngK_rxV.js";import"./Upload01-BM_RpwaJ.js";import"./User01--_GcM9Nm.js";import"./Users01-CbmiNtCo.js";import"./Zap-BoM6OXqO.js";import"./toolbar-icon-button-CkizyPM4.js";import"./shell-layout-0w3S7Z17.js";import"./avatar-DzaDPlqs.js";import"./download-app-dialog-BlOmHAsj.js";import"./dialog-DdqSoRM9.js";import"./command-Be1FiAet.js";import"./index-CovgzY-C.js";import"./integration-icon-CicyoW2g.js";import"./project-icon-D4PJG-i0.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DB5JpRTU.js";import"./autosend-D8qwra7k.js";import"./use-org-sso-B2X6FOxf.js";import"./resizable-DTOjgT4Y.js";import"./route-page-header-DsLKRhCA.js";import"./gateway-client-aZG77Xf7.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-tools-Be3QJcU4.js";import"./sandbox-lifecycle-context-DVklx5ib.js";import"./use-session-runtime-PHj1tP1Y.js";import"./thread-intent-3sZpI08X.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-CNmaHg6E.js";import"./use-entitlements-yqpltSF-.js";import"./use-ai-providers-BBTYyg8P.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-YF4HlwXb.js";import"./use-organization-settings-DSpO89g3.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CutrdRC_.js";import"./types-D5TGgE6N.js";import"./site-url-en5df9c-.js";import"./use-connect-companion-BSbW_Ju3.js";import"./companions-core-BnuxEm_5.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C8GSbvaz.js";import"./form-DDN0fmnr.js";import"./label-C32hF8xr.js";import"./input-BCcJ8Hmw.js";import"./use-debounced-value-DfVIFpLg.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./useQueries-BP5GI7XD.js";import"./authenticate-and-persist-oauth-CVOY3bdK.js";import"./mcp-oauth-aTwtgi6X.js";import"./track-vmG-nRxn.js";import"./extract-connection-data-BYZdGxJz.js";import"./connection-DpBbRAF7.js";const $=u("/shell/$org/org-shell/agent-shell/projects/$agentId/apps/$connectionId/$toolName");function j(){const t=c.c(9),{connectionId:o,toolName:r}=$.useParams(),l=x(),i=g(l);let p;t[0]!==o||t[1]!==i?.expanded_tools||t[2]!==r?(p=i?.expanded_tools?.find(a=>a.appId===o&&a.toolName===r),t[0]=o,t[1]=i?.expanded_tools,t[2]=r,t[3]=p):p=t[3];const d=p,e=`${o}:${r}`,n=d?.args;let m;return t[4]!==o||t[5]!==e||t[6]!==n||t[7]!==r?(m=s.jsx(h,{connectionId:o,toolName:r,args:n},e),t[4]=o,t[5]=e,t[6]=n,t[7]=r,t[8]=m):m=t[8],m}function $o(){const t=c.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(f.Content,{children:s.jsx(j,{})}),t[0]=o):o=t[0],o}export{$o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c,j as e,aP as b,u as g}from"./index-CK2jC1b8.js";import{ChatLayout as j}from"./index-DS0-Afd0.js";import{F as v,H as S}from"./file-share-button-BojriL0f.js";import{u as k,b as y,e as _}from"./use-org-fs-CkOSi_FE.js";import{S as P}from"./settings-tab-C59u0Vwx.js";import{b as w}from"./thread-route-Bvyqd7wd.js";import"./use-mobile-Conlu_a3.js";import"./thread-button-Iiae4spP.js";import"./use-in-settings-DB0hw1zu.js";import"./sheet-6Vxtignr.js";import"./X-DqB0NFUe.js";import"./tooltip-BX_EIFZx.js";import"./index-BEaxoeD8.js";import"./use-panel-navigate-DA-8PNPm.js";import"./use-project-scope-3ou33Tvp.js";import"./use-virtual-mcp-C01zDEqD.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-CGb0z4AT.js";import"./hooks-BaT6zpiH.js";import"./backoff-8mStPHYB.js";import"./task-board-CD8iA_oi.js";import"./schema-YWMvOOES.js";import"./agent-icon-Jo8-4dPq.js";import"./AlertCircle-YzP1ItvL.js";import"./Tool01-PaohPsXN.js";import"./ArrowUp-qgp0EG1S.js";import"./ArrowLeft-CYpMPcOZ.js";import"./ArrowRight-Cx_2CtPy.js";import"./ZoomOut-BikQEs2y.js";import"./Globe04-Dy5lW2tL.js";import"./CheckCircle-gIlSms3T.js";import"./Check-DMZ0RIwh.js";import"./ChevronUp-G7F3VYIf.js";import"./UserSquare-DrIVMzs5.js";import"./Copy01-B-dz9iXg.js";import"./CreditCard01-CAP8dDsb.js";import"./DotsVertical-BdurgnSh.js";import"./Eye-ZgodVkyQ.js";import"./Share07-DGVeEnhS.js";import"./XClose-CbmBXBAq.js";import"./Image01-GZwmFlKM.js";import"./Key01-Da1KKUib.js";import"./LayoutLeft-DbkGyzH4.js";import"./Link01-BdK1ByU5.js";import"./LinkExternal01-D-eEFhKO.js";import"./Monitor01-Dqm9KsCN.js";import"./Sun-C7ngZDnN.js";import"./Palette-H8aWBRVl.js";import"./Plus-Cc4ubNGu.js";import"./SearchMd-CqrAQSvB.js";import"./Trash01-DngK_rxV.js";import"./Upload01-BM_RpwaJ.js";import"./User01--_GcM9Nm.js";import"./Users01-CbmiNtCo.js";import"./Zap-BoM6OXqO.js";import"./toolbar-icon-button-CkizyPM4.js";import"./shell-layout-0w3S7Z17.js";import"./avatar-DzaDPlqs.js";import"./download-app-dialog-BlOmHAsj.js";import"./dialog-DdqSoRM9.js";import"./command-Be1FiAet.js";import"./index-CovgzY-C.js";import"./integration-icon-CicyoW2g.js";import"./project-icon-D4PJG-i0.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DB5JpRTU.js";import"./autosend-D8qwra7k.js";import"./use-org-sso-B2X6FOxf.js";import"./resizable-DTOjgT4Y.js";import"./route-page-header-DsLKRhCA.js";import"./input-BCcJ8Hmw.js";import"./popover-D9fLEvti.js";import"./extract-connection-data-BYZdGxJz.js";import"./metadata-D72DunRR.js";import"./connection-DpBbRAF7.js";import"./chat-context-CNmaHg6E.js";import"./thread-intent-3sZpI08X.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-yqpltSF-.js";import"./use-ai-providers-BBTYyg8P.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-YF4HlwXb.js";import"./use-organization-settings-DSpO89g3.js";import"./build-improve-prompt-doc-CfF_OZho.js";import"./empty-state-B0qH2Kts.js";import"./use-date-fns-locale-BhHWTG3K.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-CrE81qJi.js";import"./mcp-oauth-aTwtgi6X.js";import"./alert-dialog-BLhLimu7.js";import"./textarea-Crbkqbuz.js";import"./use-debounced-autosave-Bw4o3_Zw.js";import"./add-connection-dialog-D8Ox25XG.js";import"./collection-search-CQtm6ZPr.js";import"./connection-card-Cbi3TS91.js";import"./useInfiniteQuery-RDUps_Fq.js";import"./infiniteQueryObserver-r-3Zb0hn.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-DD_EvNka.js";import"./form-DDN0fmnr.js";import"./label-C32hF8xr.js";import"./select-D4vELKrF.js";import"./connection-form-helpers-B6j-CkAe.js";import"./authenticate-and-persist-oauth-CVOY3bdK.js";import"./collection-tabs-Ctgaf4Pj.js";import"./badge-DAnEDAAp.js";import"./use-infinite-scroll-Cbikj4Pq.js";import"./useSuspenseInfiniteQuery-CUJCDA4c.js";import"./file-type-icon-BDgGUbiO.js";import"./checkbox-CCgxRg-G.js";import"./search-input-DZ5LjK8B.js";import"./use-mcp-auth-status-Myd-JPfa.js";import"./types-D5TGgE6N.js";import"./use-mcp-tools-Be3QJcU4.js";import"./use-mcp-prompts-DkqcWZgO.js";import"./utils-CVEq3hMx.js";import"./switch-DCOUunxF.js";import"./scroll-area-DCufqOiC.js";import"./use-project-native-view-presence-DBUyMyFo.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-MemDO-me.js";import"./site-slug-DebpOoQq.js";import"./optimistic-project-sidebar-views-DCTKx36B.js";import"./virtual-mcp-CYKM5gcZ.js";import"./repository-import-picker-B_yB2gqJ.js";import"./use-navigate-to-agent-EF0ZR5Ia.js";import"./repository-picker-BEpNu3ZO.js";import"./github-icon-BgXpeChB.js";import"./use-debounced-value-DfVIFpLg.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-B0gTMC8S.js";import"./use-secrets-C9OyvdtH.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const x="home";function M(i){const t=c.c(5),{label:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx(b,{className:"aspect-video w-2/3 max-w-xl"}),t[0]=p):p=t[0];let o;t[1]!==r?(o=r&&e.jsx("p",{className:"text-xs text-muted-foreground",children:r}),t[1]=r,t[2]=o):o=t[2];let m;return t[3]!==o?(m=e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 bg-background",children:[p,o]}),t[3]=o,t[4]=m):m=t[4],m}function D(i){const t=c.c(15),{path:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={refetchIntervalWhenAbsent:2e3},t[0]=p):p=t[0];const o=k(x,r,p),m=y(x)(r);if(o.isPending||!o.data){const h=!o.isPending&&!o.data?"Waiting for the deck to sync…":void 0;let l;return t[1]!==h?(l=e.jsx(M,{label:h}),t[1]=h,t[2]=l):l=t[2],l}let s;t[3]!==o.data?(s=_(o.data),t[3]=o.data,t[4]=s):s=t[4];const f=o.data.shareMode??"private",u=o.data.effectivePublic??!1,d=window.location.origin+m;let a;t[5]!==r||t[6]!==f||t[7]!==u||t[8]!==d?(a=e.jsx(v,{volume:x,path:r,shareMode:f,effectivePublic:u,url:d}),t[5]=r,t[6]=f,t[7]=u,t[8]=d,t[9]=a):a=t[9];let n;return t[10]!==r||t[11]!==m||t[12]!==s||t[13]!==a?(n=e.jsx(S,{readUrl:m,marker:s,title:r,savePath:r,trailing:a}),t[10]=r,t[11]=m,t[12]=s,t[13]=a,t[14]=n):n=t[14],n}function E(){const i=c.c(4);let t;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},i[0]=t):t=i[0];const r=g(t),p=w(),o="path"in r&&typeof r.path=="string"?r.path:void 0;let m;return i[1]!==o||i[2]!==p?(m=o?e.jsx(D,{path:o},o):e.jsx(P,{virtualMcpId:p}),i[1]=o,i[2]=p,i[3]=m):m=i[3],m}function pr(){const i=c.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(j.Content,{children:e.jsx(E,{})}),i[0]=t):t=i[0],t}export{pr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,j as s,u as a}from"./index-CK2jC1b8.js";import{ChatLayout as l}from"./index-DS0-Afd0.js";import{L as c}from"./preview-content-B0ztTWdM.js";import{a as f}from"./use-panel-navigate-DA-8PNPm.js";import{S as u}from"./settings-tab-C59u0Vwx.js";import{b as h}from"./thread-route-Bvyqd7wd.js";import"./use-mobile-Conlu_a3.js";import"./thread-button-Iiae4spP.js";import"./use-in-settings-DB0hw1zu.js";import"./sheet-6Vxtignr.js";import"./X-DqB0NFUe.js";import"./tooltip-BX_EIFZx.js";import"./index-BEaxoeD8.js";import"./use-route-default-main-CGb0z4AT.js";import"./hooks-BaT6zpiH.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./backoff-8mStPHYB.js";import"./task-board-CD8iA_oi.js";import"./schema-YWMvOOES.js";import"./agent-icon-Jo8-4dPq.js";import"./AlertCircle-YzP1ItvL.js";import"./Tool01-PaohPsXN.js";import"./ArrowUp-qgp0EG1S.js";import"./ArrowLeft-CYpMPcOZ.js";import"./ArrowRight-Cx_2CtPy.js";import"./ZoomOut-BikQEs2y.js";import"./Globe04-Dy5lW2tL.js";import"./CheckCircle-gIlSms3T.js";import"./Check-DMZ0RIwh.js";import"./ChevronUp-G7F3VYIf.js";import"./UserSquare-DrIVMzs5.js";import"./Copy01-B-dz9iXg.js";import"./CreditCard01-CAP8dDsb.js";import"./DotsVertical-BdurgnSh.js";import"./Eye-ZgodVkyQ.js";import"./Share07-DGVeEnhS.js";import"./XClose-CbmBXBAq.js";import"./Image01-GZwmFlKM.js";import"./Key01-Da1KKUib.js";import"./LayoutLeft-DbkGyzH4.js";import"./Link01-BdK1ByU5.js";import"./LinkExternal01-D-eEFhKO.js";import"./Monitor01-Dqm9KsCN.js";import"./Sun-C7ngZDnN.js";import"./Palette-H8aWBRVl.js";import"./Plus-Cc4ubNGu.js";import"./SearchMd-CqrAQSvB.js";import"./Trash01-DngK_rxV.js";import"./Upload01-BM_RpwaJ.js";import"./User01--_GcM9Nm.js";import"./Users01-CbmiNtCo.js";import"./Zap-BoM6OXqO.js";import"./toolbar-icon-button-CkizyPM4.js";import"./shell-layout-0w3S7Z17.js";import"./avatar-DzaDPlqs.js";import"./download-app-dialog-BlOmHAsj.js";import"./dialog-DdqSoRM9.js";import"./use-project-scope-3ou33Tvp.js";import"./use-virtual-mcp-C01zDEqD.js";import"./github-repo-BknN0SVI.js";import"./command-Be1FiAet.js";import"./index-CovgzY-C.js";import"./integration-icon-CicyoW2g.js";import"./project-icon-D4PJG-i0.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DB5JpRTU.js";import"./autosend-D8qwra7k.js";import"./use-org-sso-B2X6FOxf.js";import"./resizable-DTOjgT4Y.js";import"./route-page-header-DsLKRhCA.js";import"./file-preview-D-fY1vxt.js";import"./use-org-fs-CkOSi_FE.js";import"./utils-jA0q__Q1.js";import"./editor-oQiihuTN.js";import"./file-type-icon-BDgGUbiO.js";import"./markdown-CCVwyZmB.js";import"./org-file-open-context-8FCTmLsE.js";import"./file-share-button-BojriL0f.js";import"./input-BCcJ8Hmw.js";import"./popover-D9fLEvti.js";import"./location-oTTXFrSF.js";import"./extract-connection-data-BYZdGxJz.js";import"./metadata-D72DunRR.js";import"./connection-DpBbRAF7.js";import"./chat-context-CNmaHg6E.js";import"./thread-intent-3sZpI08X.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-yqpltSF-.js";import"./use-ai-providers-BBTYyg8P.js";import"./use-decopilot-events-YF4HlwXb.js";import"./use-organization-settings-DSpO89g3.js";import"./build-improve-prompt-doc-CfF_OZho.js";import"./empty-state-B0qH2Kts.js";import"./use-date-fns-locale-BhHWTG3K.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-CrE81qJi.js";import"./mcp-oauth-aTwtgi6X.js";import"./alert-dialog-BLhLimu7.js";import"./textarea-Crbkqbuz.js";import"./use-debounced-autosave-Bw4o3_Zw.js";import"./add-connection-dialog-D8Ox25XG.js";import"./collection-search-CQtm6ZPr.js";import"./connection-card-Cbi3TS91.js";import"./useInfiniteQuery-RDUps_Fq.js";import"./infiniteQueryObserver-r-3Zb0hn.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-DD_EvNka.js";import"./form-DDN0fmnr.js";import"./label-C32hF8xr.js";import"./select-D4vELKrF.js";import"./connection-form-helpers-B6j-CkAe.js";import"./authenticate-and-persist-oauth-CVOY3bdK.js";import"./collection-tabs-Ctgaf4Pj.js";import"./badge-DAnEDAAp.js";import"./use-infinite-scroll-Cbikj4Pq.js";import"./useSuspenseInfiniteQuery-CUJCDA4c.js";import"./checkbox-CCgxRg-G.js";import"./search-input-DZ5LjK8B.js";import"./use-mcp-auth-status-Myd-JPfa.js";import"./types-D5TGgE6N.js";import"./use-mcp-tools-Be3QJcU4.js";import"./use-mcp-prompts-DkqcWZgO.js";import"./utils-CVEq3hMx.js";import"./switch-DCOUunxF.js";import"./scroll-area-DCufqOiC.js";import"./use-project-native-view-presence-DBUyMyFo.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-MemDO-me.js";import"./site-slug-DebpOoQq.js";import"./optimistic-project-sidebar-views-DCTKx36B.js";import"./virtual-mcp-CYKM5gcZ.js";import"./repository-import-picker-B_yB2gqJ.js";import"./use-navigate-to-agent-EF0ZR5Ia.js";import"./repository-picker-BEpNu3ZO.js";import"./github-icon-BgXpeChB.js";import"./use-debounced-value-DfVIFpLg.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-B0gTMC8S.js";import"./use-secrets-C9OyvdtH.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";function b(r){const t=n.c(4),{previewPath:m,onClose:p,showSeeInLibrary:o}=r,i=o===void 0?!1:o;let e;return t[0]!==p||t[1]!==m||t[2]!==i?(e=s.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:s.jsx(c,{previewPath:m,onClose:p,showSeeInLibrary:i,variant:"panel"})}),t[0]=p,t[1]=m,t[2]=i,t[3]=e):e=t[3],e}function x(r){const t=n.c(5),{path:m}=r,{closePanel:p}=f();let o;t[0]!==p?(o=()=>p(),t[0]=p,t[1]=o):o=t[1];const i=o;let e;return t[2]!==i||t[3]!==m?(e=s.jsx(b,{previewPath:m,onClose:i,showSeeInLibrary:!0}),t[2]=i,t[3]=m,t[4]=e):e=t[4],e}function y(){const r=n.c(4);let t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},r[0]=t):t=r[0];const m=a(t),p=h(),o="path"in m&&typeof m.path=="string"?m.path:void 0;let i;return r[1]!==o||r[2]!==p?(i=o?s.jsx(x,{path:o},o):s.jsx(u,{virtualMcpId:p}),r[1]=o,r[2]=p,r[3]=i):i=r[3],i}function Yr(){const r=n.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(l.Content,{children:s.jsx(y,{})}),r[0]=t):t=r[0],t}export{Yr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,j as i}from"./index-CK2jC1b8.js";import{ChatLayout as p}from"./index-DS0-Afd0.js";import{S as e}from"./settings-tab-C59u0Vwx.js";import{b as n}from"./thread-route-Bvyqd7wd.js";import"./use-mobile-Conlu_a3.js";import"./thread-button-Iiae4spP.js";import"./use-in-settings-DB0hw1zu.js";import"./sheet-6Vxtignr.js";import"./X-DqB0NFUe.js";import"./tooltip-BX_EIFZx.js";import"./index-BEaxoeD8.js";import"./use-panel-navigate-DA-8PNPm.js";import"./use-project-scope-3ou33Tvp.js";import"./use-virtual-mcp-C01zDEqD.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-CGb0z4AT.js";import"./hooks-BaT6zpiH.js";import"./backoff-8mStPHYB.js";import"./task-board-CD8iA_oi.js";import"./schema-YWMvOOES.js";import"./agent-icon-Jo8-4dPq.js";import"./AlertCircle-YzP1ItvL.js";import"./Tool01-PaohPsXN.js";import"./ArrowUp-qgp0EG1S.js";import"./ArrowLeft-CYpMPcOZ.js";import"./ArrowRight-Cx_2CtPy.js";import"./ZoomOut-BikQEs2y.js";import"./Globe04-Dy5lW2tL.js";import"./CheckCircle-gIlSms3T.js";import"./Check-DMZ0RIwh.js";import"./ChevronUp-G7F3VYIf.js";import"./UserSquare-DrIVMzs5.js";import"./Copy01-B-dz9iXg.js";import"./CreditCard01-CAP8dDsb.js";import"./DotsVertical-BdurgnSh.js";import"./Eye-ZgodVkyQ.js";import"./Share07-DGVeEnhS.js";import"./XClose-CbmBXBAq.js";import"./Image01-GZwmFlKM.js";import"./Key01-Da1KKUib.js";import"./LayoutLeft-DbkGyzH4.js";import"./Link01-BdK1ByU5.js";import"./LinkExternal01-D-eEFhKO.js";import"./Monitor01-Dqm9KsCN.js";import"./Sun-C7ngZDnN.js";import"./Palette-H8aWBRVl.js";import"./Plus-Cc4ubNGu.js";import"./SearchMd-CqrAQSvB.js";import"./Trash01-DngK_rxV.js";import"./Upload01-BM_RpwaJ.js";import"./User01--_GcM9Nm.js";import"./Users01-CbmiNtCo.js";import"./Zap-BoM6OXqO.js";import"./toolbar-icon-button-CkizyPM4.js";import"./shell-layout-0w3S7Z17.js";import"./avatar-DzaDPlqs.js";import"./download-app-dialog-BlOmHAsj.js";import"./dialog-DdqSoRM9.js";import"./command-Be1FiAet.js";import"./index-CovgzY-C.js";import"./integration-icon-CicyoW2g.js";import"./project-icon-D4PJG-i0.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DB5JpRTU.js";import"./autosend-D8qwra7k.js";import"./use-org-sso-B2X6FOxf.js";import"./resizable-DTOjgT4Y.js";import"./route-page-header-DsLKRhCA.js";import"./extract-connection-data-BYZdGxJz.js";import"./metadata-D72DunRR.js";import"./connection-DpBbRAF7.js";import"./chat-context-CNmaHg6E.js";import"./thread-intent-3sZpI08X.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-yqpltSF-.js";import"./use-ai-providers-BBTYyg8P.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-YF4HlwXb.js";import"./use-organization-settings-DSpO89g3.js";import"./build-improve-prompt-doc-CfF_OZho.js";import"./empty-state-B0qH2Kts.js";import"./use-date-fns-locale-BhHWTG3K.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-CrE81qJi.js";import"./mcp-oauth-aTwtgi6X.js";import"./alert-dialog-BLhLimu7.js";import"./textarea-Crbkqbuz.js";import"./use-debounced-autosave-Bw4o3_Zw.js";import"./add-connection-dialog-D8Ox25XG.js";import"./collection-search-CQtm6ZPr.js";import"./connection-card-Cbi3TS91.js";import"./useInfiniteQuery-RDUps_Fq.js";import"./infiniteQueryObserver-r-3Zb0hn.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-DD_EvNka.js";import"./form-DDN0fmnr.js";import"./label-C32hF8xr.js";import"./input-BCcJ8Hmw.js";import"./select-D4vELKrF.js";import"./connection-form-helpers-B6j-CkAe.js";import"./authenticate-and-persist-oauth-CVOY3bdK.js";import"./collection-tabs-Ctgaf4Pj.js";import"./badge-DAnEDAAp.js";import"./use-infinite-scroll-Cbikj4Pq.js";import"./useSuspenseInfiniteQuery-CUJCDA4c.js";import"./file-type-icon-BDgGUbiO.js";import"./use-org-fs-CkOSi_FE.js";import"./checkbox-CCgxRg-G.js";import"./search-input-DZ5LjK8B.js";import"./use-mcp-auth-status-Myd-JPfa.js";import"./types-D5TGgE6N.js";import"./use-mcp-tools-Be3QJcU4.js";import"./use-mcp-prompts-DkqcWZgO.js";import"./utils-CVEq3hMx.js";import"./switch-DCOUunxF.js";import"./popover-D9fLEvti.js";import"./scroll-area-DCufqOiC.js";import"./use-project-native-view-presence-DBUyMyFo.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-MemDO-me.js";import"./site-slug-DebpOoQq.js";import"./optimistic-project-sidebar-views-DCTKx36B.js";import"./virtual-mcp-CYKM5gcZ.js";import"./repository-import-picker-B_yB2gqJ.js";import"./use-navigate-to-agent-EF0ZR5Ia.js";import"./repository-picker-BEpNu3ZO.js";import"./github-icon-BgXpeChB.js";import"./use-debounced-value-DfVIFpLg.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-B0gTMC8S.js";import"./use-secrets-C9OyvdtH.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";function s(){const t=m.c(2),o=n();let r;return t[0]!==o?(r=i.jsx(e,{virtualMcpId:o}),t[0]=o,t[1]=r):r=t[1],r}function zo(){const t=m.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(p.Content,{children:i.jsx(s,{})}),t[0]=o):o=t[0],o}export{zo as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/file-explorer-CprZ5S2c.js","assets/index-CK2jC1b8.js","assets/index-DFsKuQKl.css","assets/agent-icon-Jo8-4dPq.js","assets/AlertCircle-YzP1ItvL.js","assets/Tool01-PaohPsXN.js","assets/ArrowUp-qgp0EG1S.js","assets/ArrowLeft-CYpMPcOZ.js","assets/ArrowRight-Cx_2CtPy.js","assets/ZoomOut-BikQEs2y.js","assets/Globe04-Dy5lW2tL.js","assets/CheckCircle-gIlSms3T.js","assets/Check-DMZ0RIwh.js","assets/ChevronUp-G7F3VYIf.js","assets/UserSquare-DrIVMzs5.js","assets/Copy01-B-dz9iXg.js","assets/CreditCard01-CAP8dDsb.js","assets/DotsVertical-BdurgnSh.js","assets/Eye-ZgodVkyQ.js","assets/Share07-DGVeEnhS.js","assets/XClose-CbmBXBAq.js","assets/Image01-GZwmFlKM.js","assets/Key01-Da1KKUib.js","assets/LayoutLeft-DbkGyzH4.js","assets/Link01-BdK1ByU5.js","assets/LinkExternal01-D-eEFhKO.js","assets/Monitor01-Dqm9KsCN.js","assets/Sun-C7ngZDnN.js","assets/Palette-H8aWBRVl.js","assets/Plus-Cc4ubNGu.js","assets/SearchMd-CqrAQSvB.js","assets/Trash01-DngK_rxV.js","assets/Upload01-BM_RpwaJ.js","assets/User01--_GcM9Nm.js","assets/Users01-CbmiNtCo.js","assets/X-DqB0NFUe.js","assets/Zap-BoM6OXqO.js","assets/scroll-area-DCufqOiC.js","assets/select-D4vELKrF.js","assets/index-BEaxoeD8.js","assets/tooltip-BX_EIFZx.js","assets/chat-context-CNmaHg6E.js","assets/use-panel-navigate-DA-8PNPm.js","assets/thread-route-Bvyqd7wd.js","assets/use-project-scope-3ou33Tvp.js","assets/use-virtual-mcp-C01zDEqD.js","assets/use-mcp-client-BR_DXeP8.js","assets/auth-gtdPpHjL.js","assets/github-repo-BknN0SVI.js","assets/autosend-D8qwra7k.js","assets/thread-intent-3sZpI08X.js","assets/slugify-CEUa2lfQ.js","assets/hooks-BaT6zpiH.js","assets/backoff-8mStPHYB.js","assets/task-board-CD8iA_oi.js","assets/schema-YWMvOOES.js","assets/use-is-desktop-app-BNujXJc_.js","assets/use-entitlements-yqpltSF-.js","assets/use-ai-providers-BBTYyg8P.js","assets/location-oTTXFrSF.js","assets/use-decopilot-events-YF4HlwXb.js","assets/use-organization-settings-DSpO89g3.js","assets/editor-oQiihuTN.js","assets/shell-layout-0w3S7Z17.js","assets/avatar-DzaDPlqs.js","assets/download-app-dialog-BlOmHAsj.js","assets/dialog-DdqSoRM9.js","assets/command-Be1FiAet.js","assets/index-CovgzY-C.js","assets/integration-icon-CicyoW2g.js","assets/project-icon-D4PJG-i0.js","assets/required-auth-layout-DB5JpRTU.js","assets/use-org-sso-B2X6FOxf.js","assets/shell-layout-CE2Eihra.css","assets/save-changes-debug-nBi-n9eV.js","assets/sandbox-git-api-B1R0585s.js","assets/sandbox-url-D3mC8qhT.js","assets/input-BCcJ8Hmw.js","assets/alert-dialog-BLhLimu7.js","assets/utils-jA0q__Q1.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as _,m as w,K as P,b as F,X as R,j as p,r as k,aF as A,h as N,u as q}from"./index-CK2jC1b8.js";import{A as C}from"./agent-view-guard-C89vuUCE.js";import{F as B}from"./feature-gate-DnBD8lbt.js";import{b as K}from"./chat-context-CNmaHg6E.js";import{d as M,c as $}from"./sandbox-lifecycle-context-DVklx5ib.js";import{b as z}from"./sandbox-url-D3mC8qhT.js";import{E as G}from"./empty-state-B0qH2Kts.js";import{u as L}from"./use-is-desktop-app-BNujXJc_.js";import"./use-main-panel-tabs-r00ZOqDA.js";import"./use-route-default-main-CGb0z4AT.js";import"./Share07-DGVeEnhS.js";import"./Monitor01-Dqm9KsCN.js";import"./use-connection-CrE81qJi.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./use-mcp-tools-Be3QJcU4.js";import"./use-virtual-mcp-C01zDEqD.js";import"./types-D5TGgE6N.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-3ou33Tvp.js";import"./github-repo-BknN0SVI.js";import"./index-C2zAJxiS.js";import"./ArrowUp-qgp0EG1S.js";import"./gateway-client-aZG77Xf7.js";import"./tooltip-BX_EIFZx.js";import"./index-BEaxoeD8.js";import"./dialog-DdqSoRM9.js";import"./X-DqB0NFUe.js";import"./drawer-DD_EvNka.js";import"./collection-search-CQtm6ZPr.js";import"./SearchMd-CqrAQSvB.js";import"./use-mobile-Conlu_a3.js";import"./use-mcp-prompts-DkqcWZgO.js";import"./index-A41c0be0.js";import"./form-DDN0fmnr.js";import"./label-C32hF8xr.js";import"./input-BCcJ8Hmw.js";import"./org-file-open-context-8FCTmLsE.js";import"./use-panel-navigate-DA-8PNPm.js";import"./thread-route-Bvyqd7wd.js";import"./input-BSlf0cIW.js";import"./shell-layout-0w3S7Z17.js";import"./avatar-DzaDPlqs.js";import"./User01--_GcM9Nm.js";import"./Globe04-Dy5lW2tL.js";import"./UserSquare-DrIVMzs5.js";import"./agent-icon-Jo8-4dPq.js";import"./AlertCircle-YzP1ItvL.js";import"./Tool01-PaohPsXN.js";import"./ArrowLeft-CYpMPcOZ.js";import"./ArrowRight-Cx_2CtPy.js";import"./ZoomOut-BikQEs2y.js";import"./CheckCircle-gIlSms3T.js";import"./Check-DMZ0RIwh.js";import"./ChevronUp-G7F3VYIf.js";import"./Copy01-B-dz9iXg.js";import"./CreditCard01-CAP8dDsb.js";import"./DotsVertical-BdurgnSh.js";import"./Eye-ZgodVkyQ.js";import"./XClose-CbmBXBAq.js";import"./Image01-GZwmFlKM.js";import"./Key01-Da1KKUib.js";import"./LayoutLeft-DbkGyzH4.js";import"./Link01-BdK1ByU5.js";import"./LinkExternal01-D-eEFhKO.js";import"./Sun-C7ngZDnN.js";import"./Palette-H8aWBRVl.js";import"./Plus-Cc4ubNGu.js";import"./Trash01-DngK_rxV.js";import"./Upload01-BM_RpwaJ.js";import"./Users01-CbmiNtCo.js";import"./Zap-BoM6OXqO.js";import"./download-app-dialog-BlOmHAsj.js";import"./command-Be1FiAet.js";import"./index-CovgzY-C.js";import"./integration-icon-CicyoW2g.js";import"./project-icon-D4PJG-i0.js";import"./hooks-BaT6zpiH.js";import"./backoff-8mStPHYB.js";import"./task-board-CD8iA_oi.js";import"./schema-YWMvOOES.js";import"./required-auth-layout-DB5JpRTU.js";import"./autosend-D8qwra7k.js";import"./use-org-sso-B2X6FOxf.js";import"./chat-draft-BAXNdbwi.js";import"./use-session-runtime-PHj1tP1Y.js";import"./thread-intent-3sZpI08X.js";import"./slugify-CEUa2lfQ.js";import"./select-D4vELKrF.js";import"./usage-stats-CvltoOBH.js";import"./use-copy-D4TIbhMe.js";import"./markdown-CCVwyZmB.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-entitlements-yqpltSF-.js";import"./tabs-C_SkK0zq.js";import"./use-deco-credits-CF4bywq4.js";import"./use-ai-providers-BBTYyg8P.js";import"./toggle-group-7Dr1QRv7.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-De_dcOCW.js";import"./decopilot-Dvgnn1td.js";import"./checkbox-CCgxRg-G.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-D9fLEvti.js";import"./use-organization-settings-DSpO89g3.js";import"./index-DBDtjD9g.js";import"./input-DdZYEeuc.js";import"./suggestion-CTZ4P7Cg.js";import"./use-org-fs-CkOSi_FE.js";import"./question-004-sINsf4GQ.js";import"./use-members-D-Y2ThV6.js";import"./use-org-auth-client-CttLYCV5.js";import"./feature-paywall-CXAok1MA.js";import"./plan-ladder-yAJPPpd3.js";import"./add-connection-dialog-D8Ox25XG.js";import"./extract-connection-data-BYZdGxJz.js";import"./metadata-D72DunRR.js";import"./connection-DpBbRAF7.js";import"./connection-card-Cbi3TS91.js";import"./useInfiniteQuery-RDUps_Fq.js";import"./infiniteQueryObserver-r-3Zb0hn.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-Crbkqbuz.js";import"./connection-form-helpers-B6j-CkAe.js";import"./authenticate-and-persist-oauth-CVOY3bdK.js";import"./mcp-oauth-aTwtgi6X.js";import"./collection-tabs-Ctgaf4Pj.js";import"./badge-DAnEDAAp.js";import"./use-infinite-scroll-Cbikj4Pq.js";import"./useSuspenseInfiniteQuery-CUJCDA4c.js";import"./pair-DNtCa00h.js";import"./collapsible-ATnyEj_S.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CutrdRC_.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-6Vxtignr.js";import"./use-navigate-to-agent-EF0ZR5Ia.js";import"./use-thread-outputs-uJ7yrzFy.js";import"./file-type-icon-BDgGUbiO.js";import"./resolve-tab-icon-DRTn2NwY.js";import"./use-task-metadata-BcDrCgHz.js";import"./use-project-native-view-presence-DBUyMyFo.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-MemDO-me.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-CYKM5gcZ.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-YF4HlwXb.js";import"./sandbox-start-errors-BK_aDCyt.js";function V(e){const t=_.c(14),{orgSlug:m,virtualMcpId:i,branch:o,threadId:r,enabled:b}=e,s=b===void 0?!0:b;let l;t[0]!==o||t[1]!==m||t[2]!==r||t[3]!==i?(l=P.sandboxRepoDir(m,i,o,r),t[0]=o,t[1]=m,t[2]=r,t[3]=i,t[4]=l):l=t[4];let n;t[5]!==o||t[6]!==m||t[7]!==r||t[8]!==i?(n=async()=>{const h=z({orgSlug:m,virtualMcpId:i,branch:o,threadId:r},"config"),c=await fetch(h);return c.ok?(await c.json()).repoDir??null:null},t[5]=o,t[6]=m,t[7]=r,t[8]=i,t[9]=n):n=t[9];let a;return t[10]!==s||t[11]!==l||t[12]!==n?(a={queryKey:l,queryFn:n,enabled:s,staleTime:1/0},t[10]=s,t[11]=l,t[12]=n,t[13]=a):a=t[13],w(a).data??null}const O=k.lazy(()=>A(()=>import("./file-explorer-CprZ5S2c.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79])).then(e=>({default:e.FileExplorer})));function Q(e){const t=_.c(26),{openPath:m}=e,i=F(),{org:o}=R(),{currentBranch:r,taskId:b,virtualMcpId:s}=K(),l=L(),n=M(),a=$();n.vmEntry,a.lifecycle.phase;const D=l,h=s??"",c=r??"",g=b??null,E=D;let y;t[0]!==o.slug||t[1]!==h||t[2]!==c||t[3]!==g||t[4]!==E?(y={orgSlug:o.slug,virtualMcpId:h,branch:c,threadId:g,enabled:E},t[0]=o.slug,t[1]=h,t[2]=c,t[3]=g,t[4]=E,t[5]=y):y=t[5],V(y);const I=null;if(!s||!r){let d;t[6]!==i?(d=i("mainPanelTabs.codeTab.noSandboxToBrowse"),t[6]=i,t[7]=d):d=t[7];let x;t[8]!==i?(x=i("mainPanelTabs.codeTab.noSandboxToBrowseDescription"),t[8]=i,t[9]=x):x=t[9];let j;return t[10]!==d||t[11]!==x?(j=p.jsx(G,{className:"h-full",title:d,description:x}),t[10]=d,t[11]=x,t[12]=j):j=t[12],j}let u;t[13]!==I||t[14]!==i?(u=I,t[13]=I,t[14]=i,t[15]=u):u=t[15];let S;t[16]===Symbol.for("react.memo_cache_sentinel")?(S=p.jsx("div",{className:"h-full flex items-center justify-center",children:p.jsx(N,{className:"size-5 text-muted-foreground"})}),t[16]=S):S=t[16];const T=b??null;let f;t[17]!==r||t[18]!==m||t[19]!==o.slug||t[20]!==T||t[21]!==s?(f=p.jsx("div",{className:"flex-1 relative overflow-hidden bg-background",children:p.jsx(k.Suspense,{fallback:S,children:p.jsx(O,{orgSlug:o.slug,virtualMcpId:s,branch:r,threadId:T,openPath:m})})}),t[17]=r,t[18]=m,t[19]=o.slug,t[20]=T,t[21]=s,t[22]=f):f=t[22];let v;return t[23]!==u||t[24]!==f?(v=p.jsxs("div",{className:"flex flex-col w-full h-full",children:[u,f]}),t[23]=u,t[24]=f,t[25]=v):v=t[25],v}function Cr(){const e=_.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const m=q(t),o=("file"in m&&typeof m.file=="string"?m.file:void 0)??null;let r;return e[1]!==o?(r=p.jsx(C,{tabId:"code",children:p.jsx(B,{feature:"cms",children:p.jsx(Q,{openPath:o})})}),e[1]=o,e[2]=r):r=e[2],r}export{Cr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as s,j as e,M as l}from"./index-CK2jC1b8.js";import{ChatLayout as u}from"./index-DS0-Afd0.js";import{AppViewContent as c}from"./project-app-view-CXQWtLpt.js";import{S as d}from"./settings-tab-C59u0Vwx.js";import{a as f}from"./use-virtual-mcp-C01zDEqD.js";import"./use-mobile-Conlu_a3.js";import"./thread-button-Iiae4spP.js";import"./use-in-settings-DB0hw1zu.js";import"./sheet-6Vxtignr.js";import"./X-DqB0NFUe.js";import"./tooltip-BX_EIFZx.js";import"./index-BEaxoeD8.js";import"./thread-route-Bvyqd7wd.js";import"./use-panel-navigate-DA-8PNPm.js";import"./use-project-scope-3ou33Tvp.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-CGb0z4AT.js";import"./hooks-BaT6zpiH.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./backoff-8mStPHYB.js";import"./task-board-CD8iA_oi.js";import"./schema-YWMvOOES.js";import"./agent-icon-Jo8-4dPq.js";import"./AlertCircle-YzP1ItvL.js";import"./Tool01-PaohPsXN.js";import"./ArrowUp-qgp0EG1S.js";import"./ArrowLeft-CYpMPcOZ.js";import"./ArrowRight-Cx_2CtPy.js";import"./ZoomOut-BikQEs2y.js";import"./Globe04-Dy5lW2tL.js";import"./CheckCircle-gIlSms3T.js";import"./Check-DMZ0RIwh.js";import"./ChevronUp-G7F3VYIf.js";import"./UserSquare-DrIVMzs5.js";import"./Copy01-B-dz9iXg.js";import"./CreditCard01-CAP8dDsb.js";import"./DotsVertical-BdurgnSh.js";import"./Eye-ZgodVkyQ.js";import"./Share07-DGVeEnhS.js";import"./XClose-CbmBXBAq.js";import"./Image01-GZwmFlKM.js";import"./Key01-Da1KKUib.js";import"./LayoutLeft-DbkGyzH4.js";import"./Link01-BdK1ByU5.js";import"./LinkExternal01-D-eEFhKO.js";import"./Monitor01-Dqm9KsCN.js";import"./Sun-C7ngZDnN.js";import"./Palette-H8aWBRVl.js";import"./Plus-Cc4ubNGu.js";import"./SearchMd-CqrAQSvB.js";import"./Trash01-DngK_rxV.js";import"./Upload01-BM_RpwaJ.js";import"./User01--_GcM9Nm.js";import"./Users01-CbmiNtCo.js";import"./Zap-BoM6OXqO.js";import"./toolbar-icon-button-CkizyPM4.js";import"./shell-layout-0w3S7Z17.js";import"./avatar-DzaDPlqs.js";import"./download-app-dialog-BlOmHAsj.js";import"./dialog-DdqSoRM9.js";import"./command-Be1FiAet.js";import"./index-CovgzY-C.js";import"./integration-icon-CicyoW2g.js";import"./project-icon-D4PJG-i0.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DB5JpRTU.js";import"./autosend-D8qwra7k.js";import"./use-org-sso-B2X6FOxf.js";import"./resizable-DTOjgT4Y.js";import"./route-page-header-DsLKRhCA.js";import"./gateway-client-aZG77Xf7.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-tools-Be3QJcU4.js";import"./sandbox-lifecycle-context-DVklx5ib.js";import"./use-session-runtime-PHj1tP1Y.js";import"./thread-intent-3sZpI08X.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-CNmaHg6E.js";import"./use-entitlements-yqpltSF-.js";import"./use-ai-providers-BBTYyg8P.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-YF4HlwXb.js";import"./use-organization-settings-DSpO89g3.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CutrdRC_.js";import"./types-D5TGgE6N.js";import"./site-url-en5df9c-.js";import"./use-connect-companion-BSbW_Ju3.js";import"./companions-core-BnuxEm_5.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C8GSbvaz.js";import"./form-DDN0fmnr.js";import"./label-C32hF8xr.js";import"./input-BCcJ8Hmw.js";import"./use-debounced-value-DfVIFpLg.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./useQueries-BP5GI7XD.js";import"./authenticate-and-persist-oauth-CVOY3bdK.js";import"./mcp-oauth-aTwtgi6X.js";import"./track-vmG-nRxn.js";import"./extract-connection-data-BYZdGxJz.js";import"./connection-DpBbRAF7.js";import"./build-improve-prompt-doc-CfF_OZho.js";import"./empty-state-B0qH2Kts.js";import"./use-date-fns-locale-BhHWTG3K.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-CrE81qJi.js";import"./alert-dialog-BLhLimu7.js";import"./textarea-Crbkqbuz.js";import"./use-debounced-autosave-Bw4o3_Zw.js";import"./add-connection-dialog-D8Ox25XG.js";import"./collection-search-CQtm6ZPr.js";import"./connection-card-Cbi3TS91.js";import"./useInfiniteQuery-RDUps_Fq.js";import"./infiniteQueryObserver-r-3Zb0hn.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-DD_EvNka.js";import"./select-D4vELKrF.js";import"./connection-form-helpers-B6j-CkAe.js";import"./collection-tabs-Ctgaf4Pj.js";import"./badge-DAnEDAAp.js";import"./use-infinite-scroll-Cbikj4Pq.js";import"./useSuspenseInfiniteQuery-CUJCDA4c.js";import"./file-type-icon-BDgGUbiO.js";import"./use-org-fs-CkOSi_FE.js";import"./checkbox-CCgxRg-G.js";import"./search-input-DZ5LjK8B.js";import"./use-mcp-auth-status-Myd-JPfa.js";import"./use-mcp-prompts-DkqcWZgO.js";import"./utils-CVEq3hMx.js";import"./switch-DCOUunxF.js";import"./popover-D9fLEvti.js";import"./scroll-area-DCufqOiC.js";import"./use-project-native-view-presence-DBUyMyFo.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-MemDO-me.js";import"./site-slug-DebpOoQq.js";import"./optimistic-project-sidebar-views-DCTKx36B.js";import"./virtual-mcp-CYKM5gcZ.js";import"./repository-import-picker-B_yB2gqJ.js";import"./use-navigate-to-agent-EF0ZR5Ia.js";import"./repository-picker-BEpNu3ZO.js";import"./github-icon-BgXpeChB.js";import"./secret-picker-B0gTMC8S.js";import"./use-secrets-C9OyvdtH.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const g=l("/shell/$org/org-shell/agent-shell/projects/$agentId/views/$viewId");function w(){const t=s.c(7),{agentId:o,viewId:i}=g.useParams(),a=f(o);let m;t[0]!==a?.metadata?.ui?.layout?.tabs||t[1]!==i?(m=a?.metadata?.ui?.layout?.tabs?.find(n=>n.id===i),t[0]=a?.metadata?.ui?.layout?.tabs,t[1]=i,t[2]=m):m=t[2];const r=m;let p;return t[3]!==o||t[4]!==r||t[5]!==i?(p=r?e.jsx(c,{connectionId:r.view.appId,toolName:r.id,args:r.view.args},i):e.jsx(d,{virtualMcpId:o}),t[3]=o,t[4]=r,t[5]=i,t[6]=p):p=t[6],p}function ei(){const t=s.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(u.Content,{children:e.jsx(w,{})}),t[0]=o):o=t[0],o}export{ei as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o,j as r}from"./index-CK2jC1b8.js";import{O as m}from"./api-keys-DB430lDw.js";import{R as p}from"./require-capability-DJOR9y0I.js";import"./AlertCircle-YzP1ItvL.js";import"./Copy01-B-dz9iXg.js";import"./Key01-Da1KKUib.js";import"./Plus-Cc4ubNGu.js";import"./Trash01-DngK_rxV.js";import"./alert-dialog-BLhLimu7.js";import"./dialog-DdqSoRM9.js";import"./X-DqB0NFUe.js";import"./input-BCcJ8Hmw.js";import"./label-C32hF8xr.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./access-gate-AAHSu0hl.js";import"./capability-load-error-CAPXk7c8.js";function A(){const t=o.c(1);let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(p,{capability:"api-keys:manage",area:"api-keys",children:r.jsx(m,{})}),t[0]=i):i=t[0],i}export{A as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as jt,b as Bt,r as A,j as o,ak as _t,l as wt,h as At,t as ht}from"./index-CK2jC1b8.js";import{u as Et}from"./chat-context-CNmaHg6E.js";import{S as Nt}from"./scroll-area-DCufqOiC.js";import{u as Rt,A as Tt}from"./use-section-preview-base-CalUCZhG.js";import{o as Ct}from"./claim-phase-copy-DiN3tSVA.js";import{j as Kt,u as Pt,x as Ft,aZ as Ot,y as Ut,d as $t,a_ as It}from"./runnable-block-editor-CTcUBv1Z.js";import{n as zt,r as Lt}from"./agent-site-editor-content-CnwpjMKB.js";import"./use-panel-navigate-DA-8PNPm.js";import"./thread-route-Bvyqd7wd.js";import"./use-project-scope-3ou33Tvp.js";import"./use-virtual-mcp-C01zDEqD.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./github-repo-BknN0SVI.js";import"./autosend-D8qwra7k.js";import"./thread-intent-3sZpI08X.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BaT6zpiH.js";import"./backoff-8mStPHYB.js";import"./task-board-CD8iA_oi.js";import"./schema-YWMvOOES.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-yqpltSF-.js";import"./use-ai-providers-BBTYyg8P.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-YF4HlwXb.js";import"./use-organization-settings-DSpO89g3.js";import"./select-D4vELKrF.js";import"./index-BEaxoeD8.js";import"./Check-DMZ0RIwh.js";import"./ChevronUp-G7F3VYIf.js";import"./UserSquare-DrIVMzs5.js";import"./Share07-DGVeEnhS.js";import"./agent-icon-Jo8-4dPq.js";import"./AlertCircle-YzP1ItvL.js";import"./Tool01-PaohPsXN.js";import"./ArrowUp-qgp0EG1S.js";import"./ArrowLeft-CYpMPcOZ.js";import"./ArrowRight-Cx_2CtPy.js";import"./ZoomOut-BikQEs2y.js";import"./Globe04-Dy5lW2tL.js";import"./CheckCircle-gIlSms3T.js";import"./Copy01-B-dz9iXg.js";import"./CreditCard01-CAP8dDsb.js";import"./DotsVertical-BdurgnSh.js";import"./Eye-ZgodVkyQ.js";import"./XClose-CbmBXBAq.js";import"./Image01-GZwmFlKM.js";import"./Key01-Da1KKUib.js";import"./LayoutLeft-DbkGyzH4.js";import"./Link01-BdK1ByU5.js";import"./LinkExternal01-D-eEFhKO.js";import"./Monitor01-Dqm9KsCN.js";import"./Sun-C7ngZDnN.js";import"./Palette-H8aWBRVl.js";import"./Plus-Cc4ubNGu.js";import"./SearchMd-CqrAQSvB.js";import"./Trash01-DngK_rxV.js";import"./Upload01-BM_RpwaJ.js";import"./User01--_GcM9Nm.js";import"./Users01-CbmiNtCo.js";import"./X-DqB0NFUe.js";import"./Zap-BoM6OXqO.js";import"./dialog-DdqSoRM9.js";import"./input-BCcJ8Hmw.js";import"./section-preview-url-Csj0_ZDg.js";import"./use-session-runtime-PHj1tP1Y.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DNtCa00h.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-ATnyEj_S.js";import"./use-copy-D4TIbhMe.js";import"./usage-stats-CvltoOBH.js";import"./markdown-CCVwyZmB.js";import"./org-file-open-context-8FCTmLsE.js";import"./use-mobile-Conlu_a3.js";import"./tooltip-BX_EIFZx.js";import"./shell-layout-0w3S7Z17.js";import"./avatar-DzaDPlqs.js";import"./download-app-dialog-BlOmHAsj.js";import"./command-Be1FiAet.js";import"./index-CovgzY-C.js";import"./integration-icon-CicyoW2g.js";import"./project-icon-D4PJG-i0.js";import"./required-auth-layout-DB5JpRTU.js";import"./use-org-sso-B2X6FOxf.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CutrdRC_.js";import"./types-D5TGgE6N.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-aZG77Xf7.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./sheet-6Vxtignr.js";import"./use-connection-CrE81qJi.js";import"./use-navigate-to-agent-EF0ZR5Ia.js";import"./use-mcp-prompts-DkqcWZgO.js";import"./index-A41c0be0.js";import"./form-DDN0fmnr.js";import"./label-C32hF8xr.js";import"./use-thread-outputs-uJ7yrzFy.js";import"./file-type-icon-BDgGUbiO.js";import"./popover-D9fLEvti.js";import"./utils-jA0q__Q1.js";import"./monaco-editor-Em6ZNkGd.js";import"./editor-oQiihuTN.js";import"./calendar-C6S4gjZ0.js";import"./textarea-Crbkqbuz.js";import"./rich-text-link-control-D3evQDCf.js";import"./switch-DCOUunxF.js";import"./combobox-Ce_kogEm.js";import"./alert-dialog-BLhLimu7.js";import"./sandbox-url-D3mC8qhT.js";import"./search-input-DZ5LjK8B.js";import"./tabs-C_SkK0zq.js";import"./use-debounced-value-DfVIFpLg.js";import"./use-file-configs-MemDO-me.js";import"./asset-utils-BkBA20sO.js";import"./useInfiniteQuery-RDUps_Fq.js";import"./infiniteQueryObserver-r-3Zb0hn.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-7Dr1QRv7.js";import"./decofile-api-lyYnBz8F.js";import"./sandbox-git-api-B1R0585s.js";import"./agent-view-guard-C89vuUCE.js";import"./use-main-panel-tabs-r00ZOqDA.js";import"./use-route-default-main-CGb0z4AT.js";import"./use-mcp-tools-Be3QJcU4.js";import"./index-C2zAJxiS.js";import"./drawer-DD_EvNka.js";import"./collection-search-CQtm6ZPr.js";import"./input-BSlf0cIW.js";import"./chat-draft-BAXNdbwi.js";import"./use-deco-credits-CF4bywq4.js";import"./use-open-billing-url-De_dcOCW.js";import"./decopilot-Dvgnn1td.js";import"./checkbox-CCgxRg-G.js";import"./ai-providers-logos-DD3qZ33J.js";import"./index-DBDtjD9g.js";import"./input-DdZYEeuc.js";import"./suggestion-CTZ4P7Cg.js";import"./use-org-fs-CkOSi_FE.js";import"./question-004-sINsf4GQ.js";import"./use-members-D-Y2ThV6.js";import"./use-org-auth-client-CttLYCV5.js";import"./feature-paywall-CXAok1MA.js";import"./plan-ladder-yAJPPpd3.js";import"./add-connection-dialog-D8Ox25XG.js";import"./extract-connection-data-BYZdGxJz.js";import"./metadata-D72DunRR.js";import"./connection-DpBbRAF7.js";import"./connection-card-Cbi3TS91.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-B6j-CkAe.js";import"./authenticate-and-persist-oauth-CVOY3bdK.js";import"./mcp-oauth-aTwtgi6X.js";import"./collection-tabs-Ctgaf4Pj.js";import"./badge-DAnEDAAp.js";import"./use-infinite-scroll-Cbikj4Pq.js";import"./useSuspenseInfiniteQuery-CUJCDA4c.js";import"./sandbox-lifecycle-context-DVklx5ib.js";import"./resolve-tab-icon-DRTn2NwY.js";import"./use-task-metadata-BcDrCgHz.js";import"./use-project-native-view-presence-DBUyMyFo.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-CYKM5gcZ.js";import"./feature-gate-DnBD8lbt.js";import"./mustache-DR3KrOjx.js";import"./empty-state-CdcwJcHp.js";import"./empty-state-B0qH2Kts.js";import"./github-icon-BgXpeChB.js";import"./repository-import-picker-B_yB2gqJ.js";import"./repository-picker-BEpNu3ZO.js";function Vt(n,t){const m=(n.title||n.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),i=/^[A-Za-z]/.test(m)&&m.length>0?m:"Section",s=zt(t,i);return{blockKey:s,data:{__resolveType:n.resolveType,name:s}}}function ii(n){const t=jt.c(79),{orgSlug:m,virtualMcpId:i,branch:s,blockKey:p,block:x,meta:a,decofile:l,title:bt,excludeFields:M,schemaPending:lt,previewBaseUrl:ct}=n,D=lt===void 0?!1:lt,H=ct===void 0?null:ct,G=Et()?.taskId??null,c=Bt();let N;t[0]!==H||t[1]!==i?(N={virtualMcpId:i,sandboxUrl:H},t[0]=H,t[1]=i,t[2]=N):N=t[2];const h=Rt(N),v=typeof x?.__resolveType=="string"?x.__resolveType:"";let R;t[3]!==M||t[4]!==a||t[5]!==v?(R=Lt(v,a,M),t[3]=M,t[4]=a,t[5]=v,t[6]=R):R=t[6];const b=R;let T;t[7]!==b?(T=!!b&&Object.keys(b.properties??{}).length>0,t[7]=b,t[8]=T):T=t[8];const J=T,dt=bt??(x?Ct(p,x,a):p);let C;t[9]!==s||t[10]!==m||t[11]!==i?(C={orgSlug:m,virtualMcpId:i,branch:s},t[9]=s,t[10]=m,t[11]=i,t[12]=C):C=t[12];const{save:S,flush:Q,isPending:W}=Kt(C);let K;t[13]!==s||t[14]!==m||t[15]!==i?(K={orgSlug:m,virtualMcpId:i,branch:s},t[13]=s,t[14]=m,t[15]=i,t[16]=K):K=t[16];const X=Pt(K);let P;t[17]!==S?(P=$t((e,r)=>S(e,r)),t[17]=S,t[18]=P):P=t[18];const Y=P,[vt,St]=A.useState(p),[tt,ut]=A.useState(null),[et,ft]=A.useState(0);let F;t[19]===Symbol.for("react.memo_cache_sentinel")?(F=[],t[19]=F):F=t[19];const[g,xt]=A.useState(F),[ot,d]=A.useState(!1),O=A.useRef(null);vt!==p&&(St(p),ut(null),ft(Zt),xt([]));let U;t[20]!==x?(U=x??{},t[20]=x,t[21]=U):U=t[21];const rt=U;let y;t[22]!==tt?(y=tt??{},t[22]=tt,t[23]=y):y=t[23];let $;t[24]!==rt||t[25]!==y?($={...rt,...y},t[24]=rt,t[25]=y,t[26]=$):$=t[26];const it=$;let I;t[27]!==p||t[28]!==v||t[29]!==S?(I=e=>{const r=e;ut(r),S(p,{...r,__resolveType:v})},t[27]=p,t[28]=v,t[29]=S,t[30]=I):I=t[30];const mt=I;let z;t[31]===Symbol.for("react.memo_cache_sentinel")?(z=e=>{xt(e)},t[31]=z):z=t[31];const E=z;let L;t[32]!==l||t[33]!==Q||t[34]!==X||t[35]!==c?(L=async(e,r)=>{try{const{blockKey:u,data:f}=Vt(e,l);await X.mutateAsync({blockKey:u,data:f}),ht.success(c("sandbox.appEditor.createdSection",{name:u})),r({__resolveType:u}),Q()}catch(u){const f=u,kt=f instanceof Error?f.message:c("sandbox.appEditor.failedAddSection");throw ht.error(kt),f}},t[32]=l,t[33]=Q,t[34]=X,t[35]=c,t[36]=L):L=t[36];const k=L;let V;t[37]!==d?(V=e=>{O.current=e.append,d(!0)},t[37]=d,t[38]=V):V=t[38];const st=V;let q;t[39]!==k||t[40]!==d?(q=async e=>{const r=O.current;if(r)try{await k(e,u=>{r(u),d(!1),O.current=null})}catch{}},t[39]=k,t[40]=d,t[41]=q):q=t[41];const pt=q,at=g.length>0?[dt,...g]:[],gt="flex h-full flex-col",yt="flex h-12 shrink-0 items-center justify-between border-b px-6",nt=at.length>0?o.jsx("nav",{"aria-label":c("sandbox.appEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:at.map((e,r)=>{const u=r===at.length-1,f=Ft(e);return o.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[r>0&&o.jsx(_t,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("button",{type:"button",onClick:()=>{E(r===0?[]:Ot(g,r)),ft(qt)},title:f,className:wt("min-w-0 truncate rounded-lg px-1 py-0.5 text-left transition-colors",u?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:f})]},`${f}-${r}`)})}):o.jsx("span",{className:"text-sm font-medium",children:dt});let j;t[42]!==W?(j=o.jsx(It,{isPending:W,isError:!1}),t[42]=W,t[43]=j):j=t[43];let B;t[44]!==nt||t[45]!==j?(B=o.jsxs("div",{className:yt,children:[nt,j]}),t[44]=nt,t[45]=j,t[46]=B):B=t[46];let _;t[47]!==p||t[48]!==s||t[49]!==g||t[50]!==l||t[51]!==it||t[52]!==et||t[53]!==k||t[54]!==E||t[55]!==mt||t[56]!==st||t[57]!==J||t[58]!==a||t[59]!==m||t[60]!==Y||t[61]!==b||t[62]!==D||t[63]!==h||t[64]!==c||t[65]!==G||t[66]!==i?(_=o.jsx(Nt,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl",children:J?o.jsx(Ut,{schema:b,value:it,onChange:mt,basePath:"",breadcrumbPath:g,onBreadcrumbChange:E,decofile:l,meta:a,onSaveReferencedBlock:Y,previewBaseUrl:h,onAddSectionItem:k,onRequestAddSection:st,sandbox:{orgSlug:m,virtualMcpId:i,branch:s,threadId:G}},`${p}:${et}`):D?o.jsxs("div",{className:"flex flex-col items-center gap-2 py-6 text-center text-xs text-muted-foreground",children:[o.jsx(At,{className:"size-4"}),c("sandbox.appEditor.loadingSchema")]}):o.jsx("div",{className:"py-6 text-center text-xs text-muted-foreground",children:c("sandbox.appEditor.noEditableSchema")})})})}),t[47]=p,t[48]=s,t[49]=g,t[50]=l,t[51]=it,t[52]=et,t[53]=k,t[54]=E,t[55]=mt,t[56]=st,t[57]=J,t[58]=a,t[59]=m,t[60]=Y,t[61]=b,t[62]=D,t[63]=h,t[64]=c,t[65]=G,t[66]=i,t[67]=_):_=t[67];let w;t[68]!==ot||t[69]!==l||t[70]!==pt||t[71]!==a||t[72]!==h||t[73]!==d?(w=h&&o.jsx(Tt,{open:ot,onOpenChange:e=>{d(e),e||(O.current=null)},meta:a,decofile:l,previewBaseUrl:h,onSelect:e=>{pt(e)}}),t[68]=ot,t[69]=l,t[70]=pt,t[71]=a,t[72]=h,t[73]=d,t[74]=w):w=t[74];let Z;return t[75]!==B||t[76]!==_||t[77]!==w?(Z=o.jsxs("div",{className:gt,children:[B,_,w]}),t[75]=B,t[76]=_,t[77]=w,t[78]=Z):Z=t[78],Z}function qt(n){return n+1}function Zt(n){return n+1}export{ii as AppEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as X,r as k,l as Y,j as t,b as Z,B as $,h as _,t as U}from"./index-CK2jC1b8.js";import{u as K}from"./chat-context-CNmaHg6E.js";import{i as tt}from"./ArrowRight-Cx_2CtPy.js";import{i as W}from"./ZoomOut-BikQEs2y.js";import{n as ot}from"./LinkExternal01-D-eEFhKO.js";import{a0 as et}from"./agent-icon-Jo8-4dPq.js";import{f as rt,e as it,b as st,A as at,a as nt,d as mt,c as lt,g as pt}from"./alert-dialog-BLhLimu7.js";import{I as q}from"./input-BCcJ8Hmw.js";import{L as H}from"./label-C32hF8xr.js";import{g as ct,q as A,s as j,l as dt,E as ut,f as gt,O as xt,c as ft}from"./agent-site-editor-content-CnwpjMKB.js";import{d as ht,B as yt,c as bt}from"./block-document-GGgZ2xCN.js";import{u as jt,a_ as vt}from"./runnable-block-editor-CTcUBv1Z.js";import{a as Et}from"./use-fast-preview-draft-url-BOIphrSf.js";import{u as Ct}from"./use-autosave-xXDIWIWJ.js";import{t as Nt}from"./ChevronUp-G7F3VYIf.js";import{C as St,a as wt,b as kt}from"./collapsible-ATnyEj_S.js";import"./use-panel-navigate-DA-8PNPm.js";import"./thread-route-Bvyqd7wd.js";import"./use-project-scope-3ou33Tvp.js";import"./use-virtual-mcp-C01zDEqD.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./github-repo-BknN0SVI.js";import"./autosend-D8qwra7k.js";import"./thread-intent-3sZpI08X.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BaT6zpiH.js";import"./backoff-8mStPHYB.js";import"./task-board-CD8iA_oi.js";import"./schema-YWMvOOES.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-yqpltSF-.js";import"./use-ai-providers-BBTYyg8P.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-YF4HlwXb.js";import"./use-organization-settings-DSpO89g3.js";import"./AlertCircle-YzP1ItvL.js";import"./Tool01-PaohPsXN.js";import"./ArrowUp-qgp0EG1S.js";import"./ArrowLeft-CYpMPcOZ.js";import"./Globe04-Dy5lW2tL.js";import"./CheckCircle-gIlSms3T.js";import"./Check-DMZ0RIwh.js";import"./UserSquare-DrIVMzs5.js";import"./Copy01-B-dz9iXg.js";import"./CreditCard01-CAP8dDsb.js";import"./DotsVertical-BdurgnSh.js";import"./Eye-ZgodVkyQ.js";import"./Share07-DGVeEnhS.js";import"./XClose-CbmBXBAq.js";import"./Image01-GZwmFlKM.js";import"./Key01-Da1KKUib.js";import"./LayoutLeft-DbkGyzH4.js";import"./Link01-BdK1ByU5.js";import"./Monitor01-Dqm9KsCN.js";import"./Sun-C7ngZDnN.js";import"./Palette-H8aWBRVl.js";import"./Plus-Cc4ubNGu.js";import"./SearchMd-CqrAQSvB.js";import"./Trash01-DngK_rxV.js";import"./Upload01-BM_RpwaJ.js";import"./User01--_GcM9Nm.js";import"./Users01-CbmiNtCo.js";import"./X-DqB0NFUe.js";import"./Zap-BoM6OXqO.js";import"./agent-view-guard-C89vuUCE.js";import"./use-main-panel-tabs-r00ZOqDA.js";import"./use-route-default-main-CGb0z4AT.js";import"./use-connection-CrE81qJi.js";import"./use-mcp-tools-Be3QJcU4.js";import"./types-D5TGgE6N.js";import"./utils-CVEq3hMx.js";import"./index-C2zAJxiS.js";import"./gateway-client-aZG77Xf7.js";import"./tooltip-BX_EIFZx.js";import"./index-BEaxoeD8.js";import"./dialog-DdqSoRM9.js";import"./drawer-DD_EvNka.js";import"./collection-search-CQtm6ZPr.js";import"./use-mobile-Conlu_a3.js";import"./use-mcp-prompts-DkqcWZgO.js";import"./index-A41c0be0.js";import"./form-DDN0fmnr.js";import"./org-file-open-context-8FCTmLsE.js";import"./input-BSlf0cIW.js";import"./shell-layout-0w3S7Z17.js";import"./avatar-DzaDPlqs.js";import"./download-app-dialog-BlOmHAsj.js";import"./command-Be1FiAet.js";import"./index-CovgzY-C.js";import"./integration-icon-CicyoW2g.js";import"./project-icon-D4PJG-i0.js";import"./required-auth-layout-DB5JpRTU.js";import"./use-org-sso-B2X6FOxf.js";import"./chat-draft-BAXNdbwi.js";import"./use-session-runtime-PHj1tP1Y.js";import"./select-D4vELKrF.js";import"./usage-stats-CvltoOBH.js";import"./use-copy-D4TIbhMe.js";import"./markdown-CCVwyZmB.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-C_SkK0zq.js";import"./use-deco-credits-CF4bywq4.js";import"./toggle-group-7Dr1QRv7.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-De_dcOCW.js";import"./decopilot-Dvgnn1td.js";import"./checkbox-CCgxRg-G.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-D9fLEvti.js";import"./index-DBDtjD9g.js";import"./input-DdZYEeuc.js";import"./suggestion-CTZ4P7Cg.js";import"./use-org-fs-CkOSi_FE.js";import"./question-004-sINsf4GQ.js";import"./use-members-D-Y2ThV6.js";import"./use-org-auth-client-CttLYCV5.js";import"./feature-paywall-CXAok1MA.js";import"./plan-ladder-yAJPPpd3.js";import"./add-connection-dialog-D8Ox25XG.js";import"./extract-connection-data-BYZdGxJz.js";import"./metadata-D72DunRR.js";import"./connection-DpBbRAF7.js";import"./connection-card-Cbi3TS91.js";import"./useInfiniteQuery-RDUps_Fq.js";import"./infiniteQueryObserver-r-3Zb0hn.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-Crbkqbuz.js";import"./connection-form-helpers-B6j-CkAe.js";import"./authenticate-and-persist-oauth-CVOY3bdK.js";import"./mcp-oauth-aTwtgi6X.js";import"./collection-tabs-Ctgaf4Pj.js";import"./badge-DAnEDAAp.js";import"./use-infinite-scroll-Cbikj4Pq.js";import"./useSuspenseInfiniteQuery-CUJCDA4c.js";import"./pair-DNtCa00h.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CutrdRC_.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-6Vxtignr.js";import"./use-navigate-to-agent-EF0ZR5Ia.js";import"./use-thread-outputs-uJ7yrzFy.js";import"./file-type-icon-BDgGUbiO.js";import"./sandbox-lifecycle-context-DVklx5ib.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./resolve-tab-icon-DRTn2NwY.js";import"./use-task-metadata-BcDrCgHz.js";import"./use-project-native-view-presence-DBUyMyFo.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-MemDO-me.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-CYKM5gcZ.js";import"./feature-gate-DnBD8lbt.js";import"./scroll-area-DCufqOiC.js";import"./claim-phase-copy-DiN3tSVA.js";import"./mustache-DR3KrOjx.js";import"./decofile-api-lyYnBz8F.js";import"./sandbox-git-api-B1R0585s.js";import"./utils-jA0q__Q1.js";import"./monaco-editor-Em6ZNkGd.js";import"./editor-oQiihuTN.js";import"./empty-state-CdcwJcHp.js";import"./rich-text-link-control-D3evQDCf.js";import"./empty-state-B0qH2Kts.js";import"./github-icon-BgXpeChB.js";import"./repository-import-picker-B_yB2gqJ.js";import"./repository-picker-BEpNu3ZO.js";import"./use-debounced-value-DfVIFpLg.js";import"./section-preview-url-Csj0_ZDg.js";import"./index-Xi29qi2J.js";import"./calendar-C6S4gjZ0.js";import"./switch-DCOUunxF.js";import"./combobox-Ce_kogEm.js";import"./search-input-DZ5LjK8B.js";import"./asset-utils-BkBA20sO.js";function Pt(h){const o=X.c(18),{icon:d,title:n,defaultOpen:v,children:u}=h,P=v===void 0?!1:v,[g,D]=k.useState(P);let m;o[0]!==d?(m=t.jsx(d,{size:15}),o[0]=d,o[1]=m):m=o[1];let r;o[2]!==n?(r=t.jsx("span",{className:"flex-1 text-left",children:n}),o[2]=n,o[3]=r):r=o[3];const y=g&&"rotate-180";let s;o[4]!==y?(s=Y("transition-transform",y),o[4]=y,o[5]=s):s=o[5];let l;o[6]!==s?(l=t.jsx(Nt,{size:15,className:s}),o[6]=s,o[7]=l):l=o[7];let p;o[8]!==m||o[9]!==r||o[10]!==l?(p=t.jsx(St,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[m,r,l]})}),o[8]=m,o[9]=r,o[10]=l,o[11]=p):p=o[11];let i;o[12]!==u?(i=t.jsx(wt,{className:"px-2 pt-4",children:u}),o[12]=u,o[13]=i):i=o[13];let x;return o[14]!==g||o[15]!==p||o[16]!==i?(x=t.jsxs(kt,{open:g,onOpenChange:D,className:"mt-4",children:[p,i]}),o[14]=g,o[15]=p,o[16]=i,o[17]=x):x=o[17],x}function Gr({orgSlug:h,virtualMcpId:o,branch:d,blockKey:n,block:v,decofile:u,meta:P,onManagePosts:g,onOpenPost:D,previewBaseUrl:m}){const r=Z(),y=K()?.taskId??null,s=jt({orgSlug:h,virtualMcpId:o,branch:d}),l=Et({orgSlug:h,virtualMcpId:o,branch:d}),p=ct(v,"categories"),[i,x,M]=Ct(p,e=>{s.mutate({blockKey:n,data:A(n,"categories",e)})},{isSaving:s.isPending}),E=(e,w)=>x({...i,[e]:w}),T=ht({decofile:u,category:i,previewBaseUrl:m,draftPointer:l}),a=j(i.slug),[B,b]=k.useState(a),[c,C]=k.useState(null),[N,z]=k.useState(!1),O=a?dt(u).filter(e=>e.categorySlugs.includes(a)):[],S=O.length,G=e=>E("slug",e),J=async(e,w)=>{const V=j(i.name);z(!0);try{let f=0;for(const{key:R,payload:I}of gt(u,"posts")){const L=xt(I,e,{name:V,slug:w});L!==I&&(await s.mutateAsync({blockKey:R,data:A(R,"posts",ft(L))}),f+=1)}const F={...i,slug:w};await s.mutateAsync({blockKey:n,data:A(n,"categories",F)}),M(F),U.success(f>0?r("sandbox.categoryEditor.renameSuccessWithPosts",{count:String(f)}):r("sandbox.categoryEditor.renameSuccessNoPosts")),C(null)}catch(f){b(e),C(null),U.error(f instanceof Error?f.message:r("sandbox.categoryEditor.renameFailed"))}finally{z(!1)}},Q=()=>{const e=B.trim();if(e===a){B!==e&&b(e);return}if(!e){b(a);return}if(S===0){G(e);return}C({oldSlug:a,newSlug:e,count:S})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:j(i.name)||r("sandbox.categoryEditor.untitledCategory")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(vt,{isPending:s.isPending,isError:s.isError}),T&&t.jsxs($,{type:"button",variant:"outline",size:"sm",title:r("sandbox.categoryEditor.previewTooltip"),onClick:()=>window.open(T,"_blank","noopener,noreferrer"),children:[t.jsx(ot,{size:14}),r("sandbox.categoryEditor.seeCategoryPreview")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(ut,{value:j(i.name),onChange:e=>E("name",e),placeholder:r("sandbox.categoryEditor.categoryNamePlaceholder"),className:"py-1 text-3xl font-bold text-foreground"}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-slug",children:r("sandbox.categoryEditor.slugLabel")}),t.jsx(q,{id:"category-slug",value:B,onChange:e=>b(e.target.value),onBlur:Q,placeholder:r("sandbox.categoryEditor.slugPlaceholder"),className:"h-10"})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-description",children:r("sandbox.categoryEditor.descriptionLabel")}),t.jsx(q,{id:"category-description",value:j(i.description),onChange:e=>E("description",e.target.value),placeholder:r("sandbox.categoryEditor.descriptionPlaceholder"),className:"h-10"})]}),t.jsx(Pt,{icon:et,title:r("sandbox.categoryEditor.contentTitle"),defaultOpen:!0,children:t.jsx(yt,{value:bt(i.sections),onChange:e=>E("sections",e),meta:P,sandboxRef:{orgSlug:h,virtualMcpId:o,branch:d,threadId:y},emptyMessage:r("sandbox.categoryEditor.noContentEmpty")})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(W,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:r("sandbox.categoryEditor.postsInCategory",{count:String(S)})})]}),t.jsxs($,{type:"button",variant:"outline",size:"sm",disabled:!a,title:r(a?"sandbox.categoryEditor.pickPostsTooltip":"sandbox.categoryEditor.setSlugTooltip"),onClick:()=>g(a),children:[r("sandbox.categoryEditor.addPostsButton"),t.jsx(tt,{size:14})]})]}),S>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:O.map(e=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>D(e.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer",children:[t.jsx(W,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:e.title||r("sandbox.categoryEditor.untitledPost")}),e.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:e.slug})]})]})},e.key))})]})]})})]}),t.jsx(rt,{open:!!c,onOpenChange:e=>{e||N||(b(a),C(null))},children:t.jsxs(it,{children:[t.jsxs(st,{children:[t.jsx(at,{children:r("sandbox.categoryEditor.renameDialogTitle")}),t.jsx(nt,{children:c?r("sandbox.categoryEditor.renameDialogDescription",{oldSlug:c.oldSlug,newSlug:c.newSlug,count:String(c.count)}):null})]}),t.jsxs(mt,{children:[t.jsx(lt,{disabled:N,children:r("sandbox.categoryEditor.cancelButton")}),t.jsx(pt,{onClick:e=>{e.preventDefault(),c&&J(c.oldSlug,c.newSlug)},disabled:N,children:N?t.jsxs(t.Fragment,{children:[t.jsx(_,{className:"size-3.5"}),r("sandbox.categoryEditor.renamingLabel")]}):r("sandbox.categoryEditor.renameActionButton")})]})]})})]})}export{Gr as CategoryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Ne,U as Ke,V as Ge}from"./index-CK2jC1b8.js";import{s as Ae}from"./thread-intent-3sZpI08X.js";function Pt(e){const t=Ne.c(12);let r;t[0]!==e?(r=Ge.localPreviewUrl(e??""),t[0]=e,t[1]=r):r=t[1];const n=r,[c,o]=Ke(n,null);let a;t[2]!==c||t[3]!==e?(a=e?Ae(c):null,t[2]=c,t[3]=e,t[4]=a):a=t[4];const f=a;let m,S;t[5]!==o?(m=k=>o(Ae(k)),S=()=>o(null),t[5]=o,t[6]=m,t[7]=S):(m=t[6],S=t[7]);let C;return t[8]!==m||t[9]!==S||t[10]!==f?(C={url:f,setUrl:m,clear:S},t[8]=m,t[9]=S,t[10]=f,t[11]=C):C=t[11],C}function He(e){return e.replace(/\/+$/,"")||"/"}function kt(e){return e.trim().replace(/^\/+|\/+$/g,"")}function ze(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function $t(e){const t=e.trim();return t?ze(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const te=/:([A-Za-z0-9_-]+)|\*/g;function jt(e){const t=[];for(const r of e.matchAll(te)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function Oe(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function wt(e){e=Oe(e);const t=[];let r=0;for(const n of e.matchAll(te))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function Bt(e,t){return Oe(e).replace(te,(r,n)=>{const c=t[n??"*"]?.trim();return c?n!==void 0?encodeURIComponent(c):c.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}function ve(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Lt(e){return e.includes("@")}function be(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function Ct(e,t){if(e===t)return!0;const r=be(e);return r?t===r||be(t)===r:!1}function re(e,t){const r=e.manifest?.blocks??{};for(const[n,c]of Object.entries(r))if(t in c)return n;return null}function ne(e,t){const r=re(e,t);return r!==null&&r.includes("sections")}function Xe(e,t){const r=re(e,t);return r!==null&&r.includes("apps")}function xt(e,t){const r=re(e,t);return r!==null&&r.includes("matchers")}function Re(e){return!(!e||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function Pe(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const Ut="oklch(0.7278 0.151 289)",Qe="website/matchers/always.ts",It="website/matchers/never.ts",Ze="website/flags/multivariate.ts",ke="website/flags/multivariate/section.ts";function Mt(){return{__resolveType:Qe}}function V(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())||e}const Je=12,et=8,X=32,tt=40,rt="__SECTION_REF__";function Q(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Te(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const c=r.properties?.__resolveType?.enum;return Array.isArray(c)&&typeof c[0]=="string"}const nt="VideoWidget";function D(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function $e(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function ie(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function oe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function je(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function se(e,t){const r=t.manifest?.blocks??{};for(const f of Object.values(r))if(f[e])return f[e];const n=ie(e)??oe(e);if(n){for(const f of je(n.vendor,n.app))for(const m of Object.values(r))if(m[f])return m[f]}const c=$e(e);for(const f of Object.values(r))if(f[c])return f[c];const o=t.schema??{};return(o.$defs??o.definitions??{})[c]?{$ref:`#/definitions/${c}`}:{}}function we(e,t){if(Xe(e,t))return!0;const r=ie(t)??oe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(je(r.vendor,r.app).some(a=>a in n))return!0;const c=$e(t),o=e.schema?.$defs??e.schema?.definitions??{};return c in o}function it(e){return e==="site/apps/site.ts"?!1:ie(e)!==null||oe(e)!==null}function ot(e,t){const r=t.schema??{},n=se(e,t),c=r.$defs??r.definitions??{},o=r.root??{},a=s=>{if(s.startsWith("#/root/")){const i=s.slice(7);return o[i]??{}}const y=s.split("/").pop()??"",g=c[y];return g||(y===rt?o.sections??{}:{})};let f;typeof n.$ref=="string"?f=a(n.$ref):Object.keys(n).length>0?f=n:f=r;const m=s=>typeof s.$ref=="string"?a(s.$ref):s,S=s=>{const g=m(s).properties?.type;if(g){if(typeof g.const=="string")return g.const;if(typeof g.default=="string")return g.default;if(Array.isArray(g.enum)&&typeof g.enum[0]=="string")return g.enum[0]}},C=(s,y)=>{const g=m(s);return typeof g.title=="string"&&!g.title.startsWith("#")?g.title:y},k=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const g=s.$ref.split("/").pop()??"";return!g||y.has(g)?s:k(a(s.$ref),new Set([...y,g]))},j=s=>{const y=s.hide;return y===!0||y==="true"},fe=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),q=(s,y=new Set,g=0)=>{if(g>Je)return{};if(typeof s.$ref=="string"){const R=s.$ref.split("/").pop()??"";return y.has(R)?{}:q(a(s.$ref),new Set([...y,R]),g+1)}let i={};s.properties&&typeof s.properties=="object"&&(i={...i,...s.properties}),Array.isArray(s.required)&&(i.__required=[...D(i.__required),...D(s.required)]);for(const R of["allOf","anyOf","oneOf"]){const O=s[R];if(Array.isArray(O))for(const w of O){const B=D(i.__required),I=q(w,y,g+1);i={...i,...I};const $=R==="allOf"?[...B,...D(I.__required)]:B;$.length>0?i.__required=$:delete i.__required}}return i},x=(s,y=0,g=new Set)=>{let i=s,R;if(typeof s.$ref=="string"){i=a(s.$ref);const A=s.$ref.split("/").pop()??"";R=A,A===nt&&!i.format&&(i={...i,format:"video-uri"})}i=k(i);const O=R!==void 0&&g.has(R),w=R!==void 0?new Set([...g,R]):g,B=(A,u,v,_=!0)=>!O&&(!_||v<=tt)&&u<et?x(A,u,w):void 0;let I;{const A=i.anyOf??i.oneOf;if(Array.isArray(A)){const u=A.filter(_=>!(_.type==="null"||_.type===null)),v=_=>{if(typeof _.const=="string"||typeof _.const=="number")return _.const;if(Array.isArray(_.enum)&&_.enum.length===1&&(typeof _.enum[0]=="string"||typeof _.enum[0]=="number"))return _.enum[0]};u.length>0&&u.every(_=>v(_)!==void 0)&&(I=u.map(_=>v(_)))}}let $,W,ye=!1;if(i.type)$=Array.isArray(i.type)?String(i.type.find(A=>A!=="null")??i.type[0]):String(i.type);else if(i.anyOf||i.oneOf){const u=(i.anyOf??i.oneOf).filter(v=>!(v.type==="null"||v.type===null));if(u.length===0)$="null";else if(u.length===1){const v=u[0];W=v,$=v.type?Array.isArray(v.type)?String(v.type[0]):String(v.type):typeof v.$ref=="string"?"object":"string"}else{if(I){const p=l=>typeof s[l]=="string"?s[l]:typeof i[l]=="string"?i[l]:void 0;return{type:"string",title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,enum:I,format:p("format"),options:p("options")}}const v=u.filter(p=>{const l=p.properties?.__resolveType?.enum;return Array.isArray(l)&&typeof l[0]=="string"}),_=u.map(p=>k(p)).find(Q),H=u.filter(p=>!Q(k(p))).every(p=>typeof p.$ref=="string"||v.includes(p)),Ye=v.some(p=>{const l=p.properties?.__resolveType?.enum;return Array.isArray(l)&&l[0]===Ze});if(_){if(!Te(_,a)&&u.length>1&&H){const l=x(_,y+1,w);return{...l,type:"array",title:typeof i.title=="string"?i.title:l.title,description:typeof i.description=="string"?i.description:l.description}}if(Ye){const l=x(_,y+1,w);return{...l,type:"array",title:typeof i.title=="string"?i.title:l.title,description:typeof i.description=="string"?i.description:l.description}}}if(v.length>0){const p=v.map(h=>{const P=h.properties?.__resolveType?.enum??[],L=String(P[0]);return{resolveType:L,title:typeof h.title=="string"?h.title:V(L),description:typeof h.description=="string"?h.description:void 0,schema:B(h,y+1,u.length)}}),l=[];for(const h of u){if(v.includes(h)||typeof h.$ref!="string")continue;const T=a(h.$ref);let P;const L=T.properties?.__resolveType;if(Array.isArray(L?.enum)&&typeof L.enum[0]=="string"&&(P=L.enum[0]),!P&&Array.isArray(T.allOf))for(const Fe of T.allOf){const z=Fe.properties?.__resolveType?.enum;if(Array.isArray(z)&&typeof z[0]=="string"){P=z[0];break}}P&&l.push({resolveType:P,title:typeof T.title=="string"&&!T.title.startsWith("#")?T.title:V(P),description:typeof T.description=="string"?T.description:void 0,schema:B(T,y+1,u.length)})}const d=new Set(p.map(h=>h.resolveType)),b=[...p,...l.filter(h=>!d.has(h.resolveType))],E=u.filter(h=>!v.includes(h)),U=E.length===1&&!O?x(E[0],y+1,w):void 0;return{type:"block-ref",title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,anyOfRefs:b,plainSchema:U,hidden:j(i)||j(s)?!0:void 0}}const ge=p=>{const l=m(p);if(typeof l.title=="string"&&ve(l.title))return!0;const d=l.properties?.__resolveType?.enum;if(Array.isArray(d)&&typeof d[0]=="string")return!0;if(Array.isArray(l.allOf))for(const b of l.allOf){const E=b.properties?.__resolveType?.enum;if(Array.isArray(E)&&typeof E[0]=="string")return!0}return!1},me=u.map(p=>S(p));if(u.length>1&&me.every(p=>typeof p=="string")&&!u.some(ge)){const p=u.map((l,d)=>{const b=m(l),E=me[d];return{resolveType:E,title:C(l,E),description:typeof b.description=="string"?b.description:void 0,discriminatorValue:E,schema:B(b,y+1,u.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof i.title=="string"?i.title:void 0,description:typeof s.description=="string"?s.description:typeof i.description=="string"?i.description:void 0,discriminatorKey:"type",anyOfRefs:p,hidden:j(i)||j(s)?!0:void 0}}const _e=p=>{if(ge(p))return!1;const l=m(p);return l.type==="object"||!!l.properties},qe=p=>{const l=k(p);return Q(l)?!Te(l,a):!1},he=y<X&&u.every(p=>_e(p)||qe(p))&&u.some(_e);if(u.every(p=>typeof p.$ref=="string")&&!he){const p=[];for(const l of u){const d=a(l.$ref);let b,E;if(typeof d.title=="string"){const h=ve(d.title);h&&(b=h.blockId,E=h.blockId)}if(!b&&Array.isArray(d.allOf))for(const h of d.allOf){const L=((h.properties??{}).__resolveType??{}).enum;if(Array.isArray(L)&&typeof L[0]=="string"){b=L[0];break}}if(!b){const T=d.properties?.__resolveType?.enum;Array.isArray(T)&&typeof T[0]=="string"&&(b=T[0])}b||(b=l.$ref.split("/").pop()??"");const U=b.includes("/")?void 0:S(l);!U&&!b.includes("/")||p.push({resolveType:U??b,title:E??(typeof d.title=="string"&&!d.title.startsWith("#")?d.title:V(b)),description:typeof d.description=="string"?d.description:void 0,discriminatorValue:U,schema:B(d,y+1,u.length)})}return{type:"block-ref",title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,anyOfRefs:p,hidden:j(i)||j(s)?!0:void 0}}if(he){const p=d=>{if(typeof d.const=="string"||typeof d.const=="number"||typeof d.const=="boolean")return d.const;if(Array.isArray(d.enum)&&d.enum.length===1&&(typeof d.enum[0]=="string"||typeof d.enum[0]=="number"||typeof d.enum[0]=="boolean"))return d.enum[0]},l=u.map((d,b)=>{const E=m(d).properties??{},U={};for(const[h,T]of Object.entries(E)){const P=p(T);P!==void 0&&(U[h]=P)}return{title:C(d,`Option ${b+1}`),schema:x(d,y+1),discriminators:Object.keys(U).length?U:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,inlineUnionBranches:l,hidden:j(i)||j(s)?!0:void 0}}$="object"}}else i.allOf?($="object",ye=fe(i.title)):typeof s.$ref=="string"&&($="object");let K,de;if(y<X){const A=q(i),u=D(A.__required);u.length>0&&(de=u);const v=Object.entries(A).filter(([_])=>!_.startsWith("__")&&_!=="@type");if(v.length>0){K={};for(const[_,H]of v)K[_]=x(H,y+1,w)}}let G;if(($==="array"||i.type==="array")&&y<X){let A=i.items;A&&(typeof A.$ref=="string"&&(A=a(A.$ref)),G=x(A,y+1,w),typeof A.title=="string"&&A.title.includes("{{")&&(G.titleBy=A.title))}const M=A=>{const u=W?.[A];return typeof u=="string"?u:void 0},We=()=>{if("default"in s)return s.default;if("default"in i)return i.default;if(W&&"default"in W)return W.default};return{type:$??"string",title:typeof s.title=="string"?s.title:!ye&&typeof i.title=="string"?i.title:M("title"),description:typeof s.description=="string"?s.description:typeof i.description=="string"?i.description:M("description"),default:We(),enum:Array.isArray(i.enum)?i.enum:I??void 0,format:typeof s.format=="string"?s.format:typeof i.format=="string"?i.format:M("format"),properties:K,required:de,items:G,hidden:j(i)||j(s)?!0:void 0,titleBy:typeof i.titleBy=="string"?i.titleBy:M("titleBy"),image:typeof i.image=="string"?i.image:M("image"),options:typeof s.options=="string"?s.options:typeof i.options=="string"?i.options:M("options")}},le=f.properties??{},Ve=Object.keys(le).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&Ve){const s=le.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const g of f.allOf){const i=k(g);if(!(Array.isArray(i.anyOf)||Array.isArray(i.oneOf))||i.properties)continue;const O=x(i,0);if(O.type==="inline-union"&&O.inlineUnionBranches){const w=fe(O.title);return{...O,title:w?void 0:O.title,inlineUnionBranches:y?O.inlineUnionBranches.map(B=>({...B,discriminators:{...B.discriminators??{},__resolveType:y}})):O.inlineUnionBranches}}}}const pe=q(f),N={};for(const[s,y]of Object.entries(pe))s.startsWith("__")||s==="@type"||(N[s]=x(y,0));if(Object.keys(N).length===0)return null;const ue=D(pe.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:N,required:ue.length>0?ue:void 0}}function Dt(e,t){const r=t.schema??{},n=se(e,t),c=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?c[n.$ref.split("/").pop()??""]??{}:n,a=o.properties??{};if(Object.keys(a).some(S=>!S.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const m=a.__resolveType;return!!m&&Array.isArray(m.enum)&&m.enum[0]===e}function Vt(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const c={};for(const[o,a]of Object.entries(n))o.startsWith("__")||(c[o]=t(a));return{type:"object",properties:c}}default:return{type:"string"}}},r={};for(const[n,c]of Object.entries(e))n.startsWith("__")||(r[n]=t(c));return Object.keys(r).length===0?null:{type:"object",properties:r}}function ce(e,t){const r=t.schema??{},n=se(e,t),c=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?c[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},a=o.icon,f=o.logo,m=o,S=k=>k===!0||k==="true",C=S(m.hide)||S(m.ignore)||S(m.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof a=="string"?a:void 0,logo:typeof f=="string"?f:void 0,hidden:C||void 0}}const st=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],Wt="website/sections/Rendering/Lazy.tsx";function Be(e){return st.some(t=>e.endsWith(t))}const Le=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Ce=new Set(Le),ct=new Set(["site/sections/Theme/Theme.tsx"]);function F(e){return!!(ct.has(e)||Be(e)||e.toLowerCase().includes("preview"))}function at(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(Ce.has(n))return n;return Le[0]}function Z(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Z(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...Z(r));return t}return[]}function ft(e){const t=e.manifest?.blocks??{},r=[];for(const[n,c]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(c)){if(F(o))continue;const a=ce(o,e);r.push({resolveType:o,title:a.title??V(o),description:a.description,previewBlock:o,isSavedBlock:!1})}return r}function Yt(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,c]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(c))F(o)||r.has(o)||r.set(o,{resolveType:o,title:V(o)});return[...r.values()].sort((n,c)=>n.title.localeCompare(c.title))}function xe(e,t){const r=t.__resolveType;if(typeof r!="string")return"";if(r!==ke)return r;const n=t.variants;if(!Array.isArray(n))return r;for(const c of n){const o=c?.value;if(!o)continue;let a=o.__resolveType;if(typeof a=="string"&&Be(a)&&(a=o.section?.__resolveType??a),typeof a=="string"&&ne(e,a))return a}return r}function lt(e,t){return xe(e,t)!==t.__resolveType}function Ue(e,t){const r=[];for(const[n,c]of Object.entries(t)){if(n.includes("/")||Pe(n)||!c||typeof c!="object"||Array.isArray(c))continue;const o=c,a=o.__resolveType;typeof a!="string"||Ce.has(a)||typeof o.path=="string"||F(a)||!(ne(e,a)||a===ke&<(e,o))||r.push({resolveType:n,title:n,description:typeof o.name=="string"?o.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function pt(e,t){const r=Re(t.resolveType),n=r?{}:ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||V(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function qt(e,t){const r=at(e),n=ot(r,e),c=Z(n?.properties?.sections),o=new Map,a=f=>{if(!F(f.resolveType)){if(Re(f.resolveType)){Pe(f.resolveType)||o.set(f.resolveType,f);return}ne(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of ft(e))a(f);for(const f of c)a(pt(e,f));for(const f of Ue(e,t))a(f);return[...o.values()].sort((f,m)=>f.title.localeCompare(m.title))}function Ft(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const ae="website/loaders/redirect.ts",Nt=new Set([ae,"website/loaders/redirects.ts"]),Kt={temporary:307,permanent:301},Se=e=>typeof e=="string"?e:"",ut=e=>e==="permanent"?"permanent":"temporary";function Ie(e){const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:Se(t.from),to:Se(t.to),type:ut(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function yt(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const c=n;if(c.__resolveType!==ae)continue;const{from:o,to:a,type:f,discardQueryParameters:m}=Ie(c);t.push({key:r,from:o,to:a,type:f,discardQueryParameters:m})}return t}function Gt(e){return Ie(e)}function Ht(e){const t={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(t.discardQueryParameters=!0),{redirect:t,__resolveType:ae}}function dt(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const gt=1e3;function zt(e,t){const r=dt(t);for(let n=0;n<gt;n++){const c=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,c))return c}throw new Error("Could not generate a unique redirect block key")}function mt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function Xt(e,t){const{pageId:r,path:n,pathTemplate:c}=t;if(r){const o=e.find(f=>f.key===r);if(o)return o;const a=e.find(f=>f.key.endsWith(`-${r}`));if(a)return a}if(c){const o=Ee(e,c);if(o)return o}if(n){const o=Ee(e,n);if(o)return o}return null}function Ee(e,t,r){const n=He;if(r){const o=e.find(a=>a.key===r);if(o)return o}const c=e.filter(o=>n(o.path)===n(t));return c.length===0?null:c.length===1?c[0]??null:[...c].sort((o,a)=>o.key.localeCompare(a.key))[0]??null}const Me=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),Y="site",De="site/apps/site.ts";function J(e,t){return e===Y?!0:t.__resolveType===De}function Qt(e,t){return e?ht(e).length>0||yt(e).length>0?!0:t?Tt(e,t).length>0||vt(e,t)?!0:bt(e,t).length>0:!1:!1}function _t(e,t){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Me.has(r.__resolveType)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:mt(e),path:r.path}}function ht(e){const t=[];for(const[r,n]of Object.entries(e)){const c=_t(r,n);c&&t.push(c)}return t}function At(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function ee(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",c=n?ce(n,r):{};if(c.title)return c.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function vt(e,t){const r=e[Y];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,c=n.__resolveType;if(typeof c=="string"&&(J(Y,n)||we(t,c)))return{key:Y,name:ee(Y,n,t),resolveType:c}}for(const[n,c]of Object.entries(e)){if(n.includes("/")||!c||typeof c!="object"||Array.isArray(c))continue;const o=c;if(!J(n,o))continue;const a=typeof o.__resolveType=="string"?o.__resolveType:De;return{key:n,name:ee(n,o,t),resolveType:a}}return null}function bt(e,t){const r=[];for(const[n,c]of Object.entries(e)){if(n.includes("/")||!c||typeof c!="object"||Array.isArray(c))continue;const o=c,a=o.__resolveType;typeof a=="string"&&(Me.has(a)||typeof o.path!="string"&&(J(n,o)||!we(t,a)&&!it(a)||r.push({key:n,name:ee(n,o,t),resolveType:a})))}return r.sort((n,c)=>n.name.localeCompare(c.name))}function Tt(e,t){return Ue(t,e).map(r=>{const n=e[r.resolveType],c=xe(t,n);return{key:r.resolveType,name:r.description??At(r.resolveType,n),resolveType:c}}).sort((r,n)=>r.name.localeCompare(n.name))}const Zt={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};export{Re as A,Pe as B,Zt as C,xt as D,ke as E,V as F,Ut as G,Mt as H,Nt as I,Ct as J,ve as K,Wt as L,be as M,It as N,Qe as O,Ze as P,Lt as Q,Kt as R,De as S,Z as T,qt as U,Dt as V,Vt as W,Ft as X,jt as Y,Gt as Z,mt as a,Be as b,kt as c,Tt as d,ht as e,Bt as f,At as g,Qt as h,J as i,Ee as j,at as k,ce as l,it as m,He as n,ee as o,_t as p,Xt as q,ot as r,wt as s,yt as t,Pt as u,$t as v,Yt as w,vt as x,zt as y,Ht as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as X,a3 as Ne,r as L,j as t,B as U,l as Q,c as _,t as z,ak as ne}from"./index-CK2jC1b8.js";import{t as re}from"./ChevronUp-G7F3VYIf.js";import{Z as se,R as Z}from"./agent-icon-Jo8-4dPq.js";import{I as ee}from"./input-BCcJ8Hmw.js";import{L as V}from"./label-C32hF8xr.js";import{T as Te}from"./textarea-Crbkqbuz.js";import{P as Re,a as Le,b as Fe}from"./popover-D9fLEvti.js";import{u as Ke}from"./use-ai-providers-BBTYyg8P.js";import{e as ke}from"./index-itMUnfUX.js";import{u as ie,a_ as Be}from"./runnable-block-editor-CTcUBv1Z.js";import{u as Ce}from"./mustache-DR3KrOjx.js";import{e as ze}from"./claim-phase-copy-DiN3tSVA.js";import{u as oe}from"./use-autosave-xXDIWIWJ.js";import{RecordEditor as De}from"./record-editor-DcZoL5j2.js";import{CategoryEditor as Oe}from"./category-editor-BJE37M_v.js";import{B as ae,t as xe,v as H,w as He,x as $e,y as Ie,s as S,z as G,C as Ge,D as _e,G as Me,R as le,H as We,A as de,J as ue,K as Ye,L as be,M as Ue,q as Ve,N as Xe}from"./agent-site-editor-content-CnwpjMKB.js";import"./AlertCircle-YzP1ItvL.js";import"./Tool01-PaohPsXN.js";import"./ArrowUp-qgp0EG1S.js";import"./ArrowLeft-CYpMPcOZ.js";import"./ArrowRight-Cx_2CtPy.js";import"./ZoomOut-BikQEs2y.js";import"./Globe04-Dy5lW2tL.js";import"./CheckCircle-gIlSms3T.js";import"./Check-DMZ0RIwh.js";import"./UserSquare-DrIVMzs5.js";import"./Copy01-B-dz9iXg.js";import"./CreditCard01-CAP8dDsb.js";import"./DotsVertical-BdurgnSh.js";import"./Eye-ZgodVkyQ.js";import"./Share07-DGVeEnhS.js";import"./XClose-CbmBXBAq.js";import"./Image01-GZwmFlKM.js";import"./Key01-Da1KKUib.js";import"./LayoutLeft-DbkGyzH4.js";import"./Link01-BdK1ByU5.js";import"./LinkExternal01-D-eEFhKO.js";import"./Monitor01-Dqm9KsCN.js";import"./Sun-C7ngZDnN.js";import"./Palette-H8aWBRVl.js";import"./Plus-Cc4ubNGu.js";import"./SearchMd-CqrAQSvB.js";import"./Trash01-DngK_rxV.js";import"./Upload01-BM_RpwaJ.js";import"./User01--_GcM9Nm.js";import"./Users01-CbmiNtCo.js";import"./X-DqB0NFUe.js";import"./Zap-BoM6OXqO.js";import"./index-A41c0be0.js";import"./gateway-client-aZG77Xf7.js";import"./dialog-DdqSoRM9.js";import"./form-DDN0fmnr.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-8FCTmLsE.js";import"./use-mobile-Conlu_a3.js";import"./use-panel-navigate-DA-8PNPm.js";import"./thread-route-Bvyqd7wd.js";import"./use-project-scope-3ou33Tvp.js";import"./use-virtual-mcp-C01zDEqD.js";import"./use-mcp-client-BR_DXeP8.js";import"./auth-gtdPpHjL.js";import"./github-repo-BknN0SVI.js";import"./tooltip-BX_EIFZx.js";import"./index-BEaxoeD8.js";import"./suggestion-CTZ4P7Cg.js";import"./index-Xi29qi2J.js";import"./rich-text-link-control-D3evQDCf.js";import"./markdown-CCVwyZmB.js";import"./avatar-DzaDPlqs.js";import"./command-Be1FiAet.js";import"./index-CovgzY-C.js";import"./get-initials-D-f_fDFw.js";import"./use-org-auth-client-CttLYCV5.js";import"./use-org-fs-CkOSi_FE.js";import"./use-session-runtime-PHj1tP1Y.js";import"./thread-intent-3sZpI08X.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-CNmaHg6E.js";import"./autosend-D8qwra7k.js";import"./hooks-BaT6zpiH.js";import"./backoff-8mStPHYB.js";import"./task-board-CD8iA_oi.js";import"./schema-YWMvOOES.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-yqpltSF-.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-YF4HlwXb.js";import"./use-organization-settings-DSpO89g3.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DNtCa00h.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-ATnyEj_S.js";import"./use-copy-D4TIbhMe.js";import"./usage-stats-CvltoOBH.js";import"./shell-layout-0w3S7Z17.js";import"./download-app-dialog-BlOmHAsj.js";import"./integration-icon-CicyoW2g.js";import"./project-icon-D4PJG-i0.js";import"./required-auth-layout-DB5JpRTU.js";import"./use-org-sso-B2X6FOxf.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CutrdRC_.js";import"./types-D5TGgE6N.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./sheet-6Vxtignr.js";import"./use-connection-CrE81qJi.js";import"./use-navigate-to-agent-EF0ZR5Ia.js";import"./use-mcp-prompts-DkqcWZgO.js";import"./use-thread-outputs-uJ7yrzFy.js";import"./file-type-icon-BDgGUbiO.js";import"./utils-jA0q__Q1.js";import"./scroll-area-DCufqOiC.js";import"./select-D4vELKrF.js";import"./monaco-editor-Em6ZNkGd.js";import"./editor-oQiihuTN.js";import"./calendar-C6S4gjZ0.js";import"./switch-DCOUunxF.js";import"./combobox-Ce_kogEm.js";import"./alert-dialog-BLhLimu7.js";import"./sandbox-url-D3mC8qhT.js";import"./search-input-DZ5LjK8B.js";import"./tabs-C_SkK0zq.js";import"./use-debounced-value-DfVIFpLg.js";import"./use-file-configs-MemDO-me.js";import"./asset-utils-BkBA20sO.js";import"./useInfiniteQuery-RDUps_Fq.js";import"./infiniteQueryObserver-r-3Zb0hn.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-7Dr1QRv7.js";import"./decofile-api-lyYnBz8F.js";import"./sandbox-git-api-B1R0585s.js";import"./agent-view-guard-C89vuUCE.js";import"./use-main-panel-tabs-r00ZOqDA.js";import"./use-route-default-main-CGb0z4AT.js";import"./use-mcp-tools-Be3QJcU4.js";import"./index-C2zAJxiS.js";import"./drawer-DD_EvNka.js";import"./collection-search-CQtm6ZPr.js";import"./input-BSlf0cIW.js";import"./chat-draft-BAXNdbwi.js";import"./use-deco-credits-CF4bywq4.js";import"./use-open-billing-url-De_dcOCW.js";import"./decopilot-Dvgnn1td.js";import"./checkbox-CCgxRg-G.js";import"./ai-providers-logos-DD3qZ33J.js";import"./index-DBDtjD9g.js";import"./input-DdZYEeuc.js";import"./question-004-sINsf4GQ.js";import"./use-members-D-Y2ThV6.js";import"./feature-paywall-CXAok1MA.js";import"./plan-ladder-yAJPPpd3.js";import"./add-connection-dialog-D8Ox25XG.js";import"./extract-connection-data-BYZdGxJz.js";import"./metadata-D72DunRR.js";import"./connection-DpBbRAF7.js";import"./connection-card-Cbi3TS91.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-B6j-CkAe.js";import"./authenticate-and-persist-oauth-CVOY3bdK.js";import"./mcp-oauth-aTwtgi6X.js";import"./collection-tabs-Ctgaf4Pj.js";import"./badge-DAnEDAAp.js";import"./use-infinite-scroll-Cbikj4Pq.js";import"./useSuspenseInfiniteQuery-CUJCDA4c.js";import"./sandbox-lifecycle-context-DVklx5ib.js";import"./resolve-tab-icon-DRTn2NwY.js";import"./use-task-metadata-BcDrCgHz.js";import"./use-project-native-view-presence-DBUyMyFo.js";import"./site-slug-DebpOoQq.js";import"./virtual-mcp-CYKM5gcZ.js";import"./feature-gate-DnBD8lbt.js";import"./empty-state-CdcwJcHp.js";import"./empty-state-B0qH2Kts.js";import"./github-icon-BgXpeChB.js";import"./repository-import-picker-B_yB2gqJ.js";import"./repository-picker-BEpNu3ZO.js";import"./block-document-GGgZ2xCN.js";import"./section-preview-url-Csj0_ZDg.js";import"./use-fast-preview-draft-url-BOIphrSf.js";const qe={},Je={},Ze=["description","tone","targetAudience"],Qe=["values","dos","avoid","competitors"],et=[{id:"basics",label:"sandbox.blogBrand.tabBasics"},{id:"dos",label:"sandbox.blogBrand.tabDos"},{id:"guardrails",label:"sandbox.blogBrand.tabGuardrails"},{id:"extra",label:"sandbox.blogBrand.tabExtra"}],ge="sandbox.blogBrand.phaseReading",he="sandbox.formats.phaseReading",fe="sandbox.pillars.phaseReading";function tt(B,e){return{name:B("sandbox.formats.starterName"),value:e.length?B("sandbox.formats.starterBody",{sections:e.map(o=>`@${o}`).join(", ")}):B("sandbox.formats.starterBodyNoSections")}}function Ba({orgSlug:B,virtualMcpId:e,branch:o,decofile:r,meta:d,onOpenPost:a,onManageCategoryPosts:u}){const p=r[ae],s=X(),m=Ne(),x=ie({orgSlug:B,virtualMcpId:e,branch:o}),b=Ke().length>0,[i,j]=oe(p??qe,n=>{x.mutate({blockKey:ae,data:n})}),v=(n,g)=>j({...i,[n]:g}),P=r[xe],[E,A]=oe(P??Je,n=>x.mutate({blockKey:xe,data:n})),y=H(E.formats),f=n=>A({...E,formats:n}),c=He(d),N=c.map(n=>n.name),w={items:c,hint:s("sandbox.formats.mentionHint"),emptyLabel:s("sandbox.formats.mentionEmpty")},[C,l]=L.useState(!1),[h,k]=L.useState(he),[F,O]=L.useState(!1),[$,I]=L.useState(ge),[q,me]=L.useState(0),[D,M]=L.useState("brand"),[ce,Pe]=L.useState("basics"),W=$e(r,ze(r).map(n=>n.key)),we=async()=>{if(W.length===0)return;O(!0),I(ge);const n=[setTimeout(()=>I("sandbox.blogBrand.phaseInferring"),4e3),setTimeout(()=>I("sandbox.blogBrand.phaseSearching"),15e3)];try{const g=await m.call("BLOG_BRAND_EXTRACT",{blocks:W}),T={...i},R=[];!S(T.companyName)&&g.companyName&&(T.companyName=g.companyName,R.push("companyName")),!S(T.language)&&g.language&&(T.language=g.language,R.push("language"));for(const K of Ze)!S(T[K])&&g[K]&&(T[K]=g[K],R.push(K));for(const K of Qe)G(H(T[K])).length===0&&g[K]?.length&&(T[K]=g[K],R.push(K));j(T),me(K=>K+1),z.success(R.length>0?s("sandbox.blogBrand.extractFilled",{count:String(R.length)}):s("sandbox.blogBrand.extractNothingEmpty")),g.searchedCompetitors&&g.competitors.length===0&&z.info(s("sandbox.blogBrand.noCompetitorsFound"))}catch(g){z.error(g instanceof Error?g.message:s("sandbox.blogBrand.extractFailed"))}finally{for(const g of n)clearTimeout(g);O(!1)}},pe=n=>{const g=new Set(y.map(R=>ue(R.name))),T=n.filter(R=>R.name.trim()&&!g.has(ue(R.name)));return T.length===0?0:(f([...y,...T]),me(R=>R+1),T.length)},Se=()=>{if(pe([tt(s,Ge(N))])===0){z.info(s("sandbox.formats.noNewFormats"));return}z.success(s("sandbox.formats.starterAdded"))},Ee=async()=>{l(!0),k(he);const n=setTimeout(()=>k("sandbox.formats.phaseWriting"),6e3);try{const g=await m.call("BLOG_FORMAT_SUGGEST",{brand:{companyName:S(i.companyName),description:S(i.description),language:S(i.language),tone:S(i.tone),targetAudience:S(i.targetAudience),dos:G(H(i.dos)),avoid:G(H(i.avoid))},sections:c,postStructures:_e(r).map(R=>({title:R.title,sections:R.sections}))}),T=pe(g.formats);if(T===0){z.info(s("sandbox.formats.noNewFormats"));return}z.success(s("sandbox.formats.suggested",{count:String(T)}))}catch(g){z.error(g instanceof Error?g.message:s("sandbox.formats.suggestFailed"))}finally{clearTimeout(n),l(!1)}},J=(n,g)=>t.jsx(je,{rules:H(i[n]),onChange:T=>v(n,T),revision:q,idPrefix:n,...g}),Ae=()=>{switch(ce){case"basics":return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[t.jsx(ye,{id:"brand-company-name",label:s("sandbox.blogBrand.companyNameLabel"),value:S(i.companyName),onChange:n=>v("companyName",n)}),t.jsx(ye,{id:"brand-language",label:s("sandbox.blogBrand.languageLabel"),placeholder:"pt-BR",value:S(i.language),onChange:n=>v("language",n)})]}),t.jsx(te,{id:"brand-description",label:s("sandbox.blogBrand.descriptionLabel"),value:S(i.description),onChange:n=>v("description",n)}),t.jsx(te,{id:"brand-tone",label:s("sandbox.blogBrand.toneLabel"),hint:s("sandbox.blogBrand.toneHint"),value:S(i.tone),onChange:n=>v("tone",n),rows:5}),t.jsx(te,{id:"brand-audience",label:s("sandbox.blogBrand.audienceLabel"),value:S(i.targetAudience),onChange:n=>v("targetAudience",n)})]});case"dos":return t.jsxs("div",{className:"space-y-3",children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:s("sandbox.blogBrand.dosHint")}),J("dos",{add:s("sandbox.blogBrand.addDo"),namePlaceholder:s("sandbox.blogBrand.dosNamePlaceholder"),bodyPlaceholder:s("sandbox.blogBrand.dosBodyPlaceholder")})]});case"guardrails":return t.jsxs("div",{className:"space-y-3",children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:s("sandbox.blogBrand.dontsHint")}),J("avoid",{add:s("sandbox.blogBrand.addDont"),namePlaceholder:s("sandbox.blogBrand.dontsNamePlaceholder"),bodyPlaceholder:s("sandbox.blogBrand.dontsBodyPlaceholder")})]});case"extra":return t.jsxs("div",{className:"space-y-8",children:[t.jsxs("section",{className:"space-y-2",children:[t.jsx(V,{children:s("sandbox.blogBrand.valuesLabel")}),J("values",{add:s("sandbox.blogBrand.addValue"),namePlaceholder:s("sandbox.blogBrand.valuesNamePlaceholder"),bodyPlaceholder:s("sandbox.blogBrand.valuesBodyPlaceholder")})]}),t.jsxs("section",{className:"space-y-2",children:[t.jsx(V,{children:s("sandbox.blogBrand.competitorsLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("sandbox.blogBrand.competitorsHint")}),J("competitors",{add:s("sandbox.blogBrand.addCompetitor"),namePlaceholder:s("sandbox.blogBrand.competitorsNamePlaceholder"),bodyPlaceholder:s("sandbox.blogBrand.competitorsBodyPlaceholder")})]})]})}};return t.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[t.jsxs("div",{className:"flex shrink-0 items-start justify-between gap-4 px-8 pt-6",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx("h2",{className:"text-lg font-semibold",children:s("sandbox.blogContext.title")}),t.jsx("p",{className:"text-sm text-muted-foreground",children:s("sandbox.blogContext.subtitle")})]}),t.jsx(Be,{isPending:x.isPending,isError:x.isError})]}),t.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b px-8",children:[t.jsxs("div",{className:"flex gap-1",children:[t.jsx(Y,{active:D==="brand",onClick:()=>M("brand"),children:s("sandbox.blogContext.tabBrand")}),t.jsx(Y,{active:D==="formats",onClick:()=>M("formats"),children:s("sandbox.blogContext.tabFormats")}),t.jsx(Y,{active:D==="pillars",onClick:()=>M("pillars"),children:s("sandbox.blogContext.tabPillars")}),t.jsx(Y,{active:D==="authors",onClick:()=>M("authors"),children:s("sandbox.blogContext.tabAuthors")}),t.jsx(Y,{active:D==="categories",onClick:()=>M("categories"),children:s("sandbox.blogContext.tabCategories")})]}),D==="brand"&&t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[F&&t.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground","aria-live":"polite",role:"status",children:[t.jsx(se,{size:12,className:"shrink-0 animate-spin"}),t.jsx("span",{className:"truncate",children:s($)})]}),t.jsxs(U,{type:"button",variant:"outline",size:"sm",className:"my-2 shrink-0",disabled:F||W.length===0||!b,title:b?W.length>0?s("sandbox.blogBrand.extractHint",{count:String(W.length)}):s("sandbox.blogBrand.extractNoContent"):s("sandbox.autonomous.noAiProvider"),onClick:()=>{we()},children:[t.jsx(Z,{size:14}),s("sandbox.blogBrand.extractButton")]})]}),D==="formats"&&t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[C&&t.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground","aria-live":"polite",role:"status",children:[t.jsx(se,{size:12,className:"shrink-0 animate-spin"}),t.jsx("span",{className:"truncate",children:s(h)})]}),t.jsx(U,{type:"button",variant:"ghost",size:"sm",className:"my-2 shrink-0",title:s("sandbox.formats.starterHint"),onClick:Se,children:s("sandbox.formats.starterButton")}),t.jsxs(U,{type:"button",variant:"outline",size:"sm",className:"my-2 shrink-0",disabled:C||!b,title:s(b?"sandbox.formats.suggestHint":"sandbox.autonomous.noAiProvider"),onClick:()=>{Ee()},children:[t.jsx(Z,{size:14}),s("sandbox.formats.suggestButton")]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:D==="authors"?t.jsx(ve,{kind:"authors",orgSlug:B,virtualMcpId:e,branch:o,decofile:r,hint:s("sandbox.blogContext.authorsHint"),addLabel:s("sandbox.blogContext.addAuthor"),emptyLabel:s("sandbox.blogContext.authorsEmpty"),renderEditor:n=>t.jsx(De,{orgSlug:B,virtualMcpId:e,branch:o,kind:"authors",blockKey:n,block:r[n]},`author:${n}`)}):D==="categories"?t.jsx(ve,{kind:"categories",orgSlug:B,virtualMcpId:e,branch:o,decofile:r,hint:s("sandbox.blogContext.categoriesHint"),addLabel:s("sandbox.blogContext.addCategory"),emptyLabel:s("sandbox.blogContext.categoriesEmpty"),renderEditor:n=>t.jsx(Oe,{orgSlug:B,virtualMcpId:e,branch:o,blockKey:n,block:r[n],decofile:r,meta:d,onManagePosts:g=>u?.(g),onOpenPost:g=>a?.(g)},`category:${n}`)}):D==="pillars"?t.jsx(st,{orgSlug:B,virtualMcpId:e,branch:o,decofile:r,hasAi:b}):D==="formats"?t.jsxs("div",{className:"min-w-0 max-w-3xl space-y-3 px-8 py-6",children:[t.jsx("p",{className:"text-xs text-muted-foreground",children:s("sandbox.formats.hint")}),t.jsx(je,{rules:y,onChange:f,revision:q,idPrefix:"format",add:s("sandbox.formats.add"),namePlaceholder:s("sandbox.formats.namePlaceholder"),bodyPlaceholder:s("sandbox.formats.bodyPlaceholder"),mentions:w,citationWarning:n=>{const g=Ie(n,N);return g.length===0?null:s("sandbox.formats.unknownCitations",{names:g.map(T=>`@${T}`).join(", ")})}})]}):t.jsxs("div",{className:"grid grid-cols-[240px_1fr] gap-8 px-8 py-6",children:[t.jsx("nav",{className:"sticky top-0 h-fit space-y-0.5 rounded-xl border bg-card p-1.5",children:et.map(n=>t.jsx("button",{type:"button",onClick:()=>Pe(n.id),className:Q("w-full rounded-lg px-2.5 py-2 text-left text-sm transition-colors cursor-pointer",ce===n.id?"bg-muted font-medium text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:s(n.label)},n.id))}),t.jsx("div",{className:"min-w-0 max-w-3xl",children:Ae()})]})})]})}function Y(B){const e=_.c(6),{active:o,onClick:r,children:d}=B,a=o?"border-foreground font-medium text-foreground":"border-transparent text-muted-foreground hover:text-foreground";let u;e[0]!==a?(u=Q("-mb-px border-b-2 px-3 py-3 text-sm transition-colors cursor-pointer",a),e[0]=a,e[1]=u):u=e[1];let p;return e[2]!==d||e[3]!==r||e[4]!==u?(p=t.jsx("button",{type:"button",onClick:r,className:u,children:d}),e[2]=d,e[3]=r,e[4]=u,e[5]=p):p=e[5],p}function ye(B){const e=_.c(13),{id:o,label:r,value:d,onChange:a,placeholder:u}=B;let p;e[0]!==o||e[1]!==r?(p=t.jsx(V,{htmlFor:o,children:r}),e[0]=o,e[1]=r,e[2]=p):p=e[2];let s;e[3]!==a?(s=b=>a(b.target.value),e[3]=a,e[4]=s):s=e[4];let m;e[5]!==o||e[6]!==u||e[7]!==s||e[8]!==d?(m=t.jsx(ee,{id:o,value:d,placeholder:u,onChange:s,className:"h-10"}),e[5]=o,e[6]=u,e[7]=s,e[8]=d,e[9]=m):m=e[9];let x;return e[10]!==p||e[11]!==m?(x=t.jsxs("div",{className:"space-y-2",children:[p,m]}),e[10]=p,e[11]=m,e[12]=x):x=e[12],x}function te(B){const e=_.c(16),{id:o,label:r,hint:d,value:a,onChange:u,rows:p}=B,s=p===void 0?3:p;let m;e[0]!==o||e[1]!==r?(m=t.jsx(V,{htmlFor:o,children:r}),e[0]=o,e[1]=r,e[2]=m):m=e[2];let x;e[3]!==d?(x=d&&t.jsx("p",{className:"text-xs text-muted-foreground",children:d}),e[3]=d,e[4]=x):x=e[4];let b;e[5]!==u?(b=v=>u(v.target.value),e[5]=u,e[6]=b):b=e[6];let i;e[7]!==o||e[8]!==s||e[9]!==b||e[10]!==a?(i=t.jsx(Te,{id:o,value:a,rows:s,onChange:b}),e[7]=o,e[8]=s,e[9]=b,e[10]=a,e[11]=i):i=e[11];let j;return e[12]!==m||e[13]!==x||e[14]!==i?(j=t.jsxs("div",{className:"space-y-2",children:[m,x,i]}),e[12]=m,e[13]=x,e[14]=i,e[15]=j):j=e[15],j}function je(B){const e=_.c(40),{rules:o,onChange:r,revision:d,idPrefix:a,add:u,namePlaceholder:p,bodyPlaceholder:s,mentions:m,citationWarning:x}=B,b=X(),[i,j]=L.useState(null);let v;e[0]!==r||e[1]!==o?(v=(C,l)=>r(o.map((h,k)=>k===C?{...h,...l}:h)),e[0]=r,e[1]=o,e[2]=v):v=e[2];const P=v;let E;e[3]!==r||e[4]!==o?(E=C=>{r(o.filter((l,h)=>h!==C)),j(l=>l===null||l<C?l:null)},e[3]=r,e[4]=o,e[5]=E):E=e[5];const A=E;let y;if(e[6]!==s||e[7]!==x||e[8]!==a||e[9]!==m||e[10]!==p||e[11]!==i||e[12]!==A||e[13]!==P||e[14]!==d||e[15]!==o||e[16]!==b){let C;e[18]!==s||e[19]!==x||e[20]!==a||e[21]!==m||e[22]!==p||e[23]!==i||e[24]!==A||e[25]!==P||e[26]!==d||e[27]!==b?(C=(l,h)=>{const k=i===h,F=k?x?.(l.value):null;return t.jsxs("li",{className:"group/item bg-card",children:[t.jsxs("div",{className:"flex items-center gap-1 pr-2",children:[t.jsxs("button",{type:"button",onClick:()=>j(k?null:h),"aria-expanded":k,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors hover:bg-muted/50",children:[k?t.jsx(re,{size:14,className:"shrink-0"}):t.jsx(ne,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:Q("truncate",!l.name&&"text-muted-foreground"),children:l.name||b("sandbox.blogBrand.untitledRule")})]}),t.jsx(le,{label:b("sandbox.blogBrand.removeItem"),onClick:()=>A(h)})]}),k&&t.jsxs("div",{className:"space-y-3 border-t bg-background px-3 py-3",children:[t.jsx(ee,{value:l.name,placeholder:p,onChange:O=>P(h,{name:O.target.value}),className:"h-9 font-medium"}),t.jsx(ke,{defaultValue:l.value,placeholder:s,attachments:!1,mentions:m,onChange:O=>P(h,{value:O})},`${a}-${h}-${d}`),F&&t.jsx("p",{className:"text-xs text-warning",children:F})]})]},h)},e[18]=s,e[19]=x,e[20]=a,e[21]=m,e[22]=p,e[23]=i,e[24]=A,e[25]=P,e[26]=d,e[27]=b,e[28]=C):C=e[28],y=o.map(C),e[6]=s,e[7]=x,e[8]=a,e[9]=m,e[10]=p,e[11]=i,e[12]=A,e[13]=P,e[14]=d,e[15]=o,e[16]=b,e[17]=y}else y=e[17];let f;e[29]!==y?(f=t.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:y}),e[29]=y,e[30]=f):f=e[30];let c;e[31]!==r||e[32]!==o?(c=()=>{r([...o,{name:"",value:""}]),j(o.length)},e[31]=r,e[32]=o,e[33]=c):c=e[33];let N;e[34]!==u||e[35]!==c?(N=t.jsx(de,{label:u,onClick:c}),e[34]=u,e[35]=c,e[36]=N):N=e[36];let w;return e[37]!==f||e[38]!==N?(w=t.jsxs("div",{className:"space-y-2",children:[f,N]}),e[37]=f,e[38]=N,e[39]=w):w=e[39],w}function st({orgSlug:B,virtualMcpId:e,branch:o,decofile:r,hasAi:d}){const a=X(),u=Ne(),p=ie({orgSlug:B,virtualMcpId:e,branch:o}),s=Ce({orgSlug:B,virtualMcpId:e,branch:o}),[m,x]=L.useState(null),[b,i]=L.useState(""),[j,v]=L.useState(!1),[P,E]=L.useState(!1),[A,y]=L.useState(fe),f=We(r),c=r[ae]??{},N=!!(S(c.companyName)||S(c.description)),w=()=>{const l=be();p.mutate({blockKey:l,data:{title:"",body:"",createdAt:new Date().toISOString()}}),x(l)},C=async()=>{E(!0),y(fe);const l=setTimeout(()=>y("sandbox.pillars.phaseWriting"),4e3);try{const h=await u.call("BLOG_PILLAR_SUGGEST",{brand:{companyName:S(c.companyName),description:S(c.description),language:S(c.language),tone:S(c.tone),targetAudience:S(c.targetAudience),values:G(H(c.values)),dos:G(H(c.dos)),avoid:G(H(c.avoid))},existingPillars:f.map($=>$.title).filter(Boolean),guidance:b.trim()||void 0}),k=Ye(f.map($=>$.title),h.pillars);if(k.length===0){z.info(a("sandbox.pillars.noNew"));return}const F=Date.now();let O=0;for(const[$,I]of k.entries())try{await p.mutateAsync({blockKey:be(),data:{title:I.title,body:I.body,createdAt:new Date(F-$).toISOString()}}),O++}catch(q){console.warn("[pillars] could not save a suggested pillar",q)}if(O===0){z.error(a("sandbox.pillars.suggestFailed"));return}z.success(a("sandbox.pillars.suggested",{count:String(O)}))}catch(h){z.error(h instanceof Error?h.message:a("sandbox.pillars.suggestFailed"))}finally{clearTimeout(l),E(!1)}};return t.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3 px-8 pb-3 pt-4",children:[t.jsx("p",{className:"max-w-xl text-xs text-muted-foreground",children:a("sandbox.pillars.hint")}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[P&&t.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground","aria-live":"polite",role:"status",children:[t.jsx(se,{size:12,className:"shrink-0 animate-spin"}),t.jsx("span",{className:"truncate",children:a(A)})]}),t.jsxs(Re,{open:j,onOpenChange:v,children:[t.jsx(Le,{asChild:!0,children:t.jsxs(U,{type:"button",variant:"outline",size:"sm",className:"shrink-0",disabled:P||!N||!d,title:a(d?N?"sandbox.pillars.suggestHint":"sandbox.pillars.suggestNoBrand":"sandbox.autonomous.noAiProvider"),children:[t.jsx(Z,{size:14}),a("sandbox.pillars.suggest")]})}),t.jsxs(Fe,{align:"end",className:"w-80 space-y-3",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx(V,{htmlFor:"pillar-guidance",children:a("sandbox.pillars.guidanceLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("sandbox.pillars.guidanceHint")})]}),t.jsx(ee,{id:"pillar-guidance",value:b,onChange:l=>i(l.target.value),placeholder:a("sandbox.pillars.guidancePlaceholder"),onKeyDown:l=>{l.key==="Enter"&&(l.preventDefault(),v(!1),C())},className:"h-9"}),t.jsxs(U,{type:"button",size:"sm",className:"w-full",onClick:()=>{v(!1),C()},children:[t.jsx(Z,{size:14}),a("sandbox.pillars.suggest")]})]})]}),t.jsx(Be,{isPending:p.isPending||s.isPending,isError:p.isError||s.isError})]})]}),t.jsxs("div",{className:"min-w-0 flex-1 space-y-3 overflow-y-auto px-8 pb-6",children:[f.length===0?t.jsx("p",{className:"text-sm text-muted-foreground",children:a("sandbox.pillars.empty")}):t.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:f.map(l=>t.jsx(ot,{blockKey:l.key,block:r[l.key],open:m===l.key,onToggle:()=>x(h=>h===l.key?null:l.key),onRemove:()=>{s.mutate({blockKey:l.key}),x(h=>h===l.key?null:h)},onSave:h=>p.mutate({blockKey:l.key,data:h})},l.key))}),t.jsx(de,{label:a("sandbox.pillars.add"),onClick:w})]})]})}function ot(B){const e=_.c(35),{blockKey:o,block:r,open:d,onToggle:a,onRemove:u,onSave:p}=B,s=X(),[m,x]=oe(r,p);let b;e[0]!==m.title?(b=S(m.title),e[0]=m.title,e[1]=b):b=e[1];const i=b;let j;e[2]!==d?(j=d?t.jsx(re,{size:14,className:"shrink-0"}):t.jsx(ne,{size:14,className:"shrink-0 text-muted-foreground"}),e[2]=d,e[3]=j):j=e[3];const v=!i&&"text-muted-foreground";let P;e[4]!==v?(P=Q("truncate",v),e[4]=v,e[5]=P):P=e[5];let E;e[6]!==s||e[7]!==i?(E=i||s("sandbox.pillars.untitled"),e[6]=s,e[7]=i,e[8]=E):E=e[8];let A;e[9]!==P||e[10]!==E?(A=t.jsx("span",{className:P,children:E}),e[9]=P,e[10]=E,e[11]=A):A=e[11];let y;e[12]!==a||e[13]!==d||e[14]!==j||e[15]!==A?(y=t.jsxs("button",{type:"button",onClick:a,"aria-expanded":d,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors hover:bg-muted/50",children:[j,A]}),e[12]=a,e[13]=d,e[14]=j,e[15]=A,e[16]=y):y=e[16];let f;e[17]!==s?(f=s("sandbox.pillars.remove"),e[17]=s,e[18]=f):f=e[18];let c;e[19]!==u||e[20]!==f?(c=t.jsx(le,{label:f,onClick:u}),e[19]=u,e[20]=f,e[21]=c):c=e[21];let N;e[22]!==y||e[23]!==c?(N=t.jsxs("div",{className:"flex items-center gap-1 pr-2",children:[y,c]}),e[22]=y,e[23]=c,e[24]=N):N=e[24];let w;e[25]!==o||e[26]!==m||e[27]!==d||e[28]!==x||e[29]!==s||e[30]!==i?(w=d&&t.jsxs("div",{className:"space-y-3 border-t bg-background px-3 py-3",children:[t.jsx(ee,{value:i,placeholder:s("sandbox.pillars.namePlaceholder"),onChange:l=>x({...m,title:l.target.value}),className:"h-9 font-medium"}),t.jsx(ke,{defaultValue:S(m.body),placeholder:s("sandbox.pillars.bodyPlaceholder"),attachments:!1,onChange:l=>x({...m,body:l})},o)]}),e[25]=o,e[26]=m,e[27]=d,e[28]=x,e[29]=s,e[30]=i,e[31]=w):w=e[31];let C;return e[32]!==N||e[33]!==w?(C=t.jsxs("li",{className:"group/item bg-card",children:[N,w]}),e[32]=N,e[33]=w,e[34]=C):C=e[34],C}function ve(B){const e=_.c(35),{kind:o,orgSlug:r,virtualMcpId:d,branch:a,decofile:u,hint:p,addLabel:s,emptyLabel:m,renderEditor:x}=B,b=X();let i;e[0]!==a||e[1]!==r||e[2]!==d?(i={orgSlug:r,virtualMcpId:d,branch:a},e[0]=a,e[1]=r,e[2]=d,e[3]=i):i=e[3];const j=ie(i);let v;e[4]!==a||e[5]!==r||e[6]!==d?(v={orgSlug:r,virtualMcpId:d,branch:a},e[4]=a,e[5]=r,e[6]=d,e[7]=v):v=e[7];const P=Ce(v),[E,A]=L.useState(null);let y,f,c,N;if(e[8]!==u||e[9]!==P||e[10]!==m||e[11]!==p||e[12]!==o||e[13]!==E||e[14]!==x||e[15]!==j||e[16]!==b){const l=Me(u)[o];let h;e[21]!==u||e[22]!==o||e[23]!==j?(h=()=>{const k=Ue(u,o);j.mutate({blockKey:k,data:Ve(k,o,Xe(o))}),A(k)},e[21]=u,e[22]=o,e[23]=j,e[24]=h):h=e[24],y=h,f="min-w-0 max-w-3xl space-y-3 px-8 py-6",e[25]!==p?(c=t.jsx("p",{className:"text-xs text-muted-foreground",children:p}),e[25]=p,e[26]=c):c=e[26],N=l.length===0?t.jsx("p",{className:"text-sm text-muted-foreground",children:m}):t.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:l.map(k=>{const F=E===k.key;return t.jsxs("li",{className:"group/item bg-card",children:[t.jsxs("div",{className:"flex items-center gap-1 pr-2",children:[t.jsxs("button",{type:"button",onClick:()=>A(F?null:k.key),"aria-expanded":F,className:"flex min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors hover:bg-muted/50",children:[F?t.jsx(re,{size:14,className:"shrink-0"}):t.jsx(ne,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"truncate",children:k.label}),k.subtitle&&t.jsx("span",{className:"truncate text-xs text-muted-foreground",children:k.subtitle})]}),t.jsx(le,{label:b("sandbox.blogContext.removeEntry"),onClick:()=>{P.mutate({blockKey:k.key}),F&&A(null)}})]}),F&&t.jsx("div",{className:"border-t bg-background px-4 py-4",children:x(k.key)})]},k.key)})}),e[8]=u,e[9]=P,e[10]=m,e[11]=p,e[12]=o,e[13]=E,e[14]=x,e[15]=j,e[16]=b,e[17]=y,e[18]=f,e[19]=c,e[20]=N}else y=e[17],f=e[18],c=e[19],N=e[20];let w;e[27]!==y||e[28]!==s?(w=t.jsx(de,{label:s,onClick:y}),e[27]=y,e[28]=s,e[29]=w):w=e[29];let C;return e[30]!==f||e[31]!==c||e[32]!==N||e[33]!==w?(C=t.jsxs("div",{className:f,children:[c,N,w]}),e[30]=f,e[31]=c,e[32]=N,e[33]=w,e[34]=C):C=e[34],C}export{Ba as BlogContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as r,c as f,m as u}from"./index-CK2jC1b8.js";function c(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function l(e,t,o){return["decofile-write",e,t,o]}function S(e,t,o){return{id:l(e,t,o).join(":")}}function s(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function a(e,t){const o=await e.json().catch(()=>({}));throw new Error(o.error??`${t} failed (${e.status})`)}function d(e,t,o){e.setQueryData(r.decofileDraft(c(t)),o)}function I(e){const t=f.c(4);let o;t[0]!==e?(o=r.decofileDraft(e?c(e):""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==o?(n={queryKey:o,enabled:!1,queryFn:h,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=o,t[3]=n):n=t[3];const{data:i}=u(n);return i??null}async function h(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function b(e,t){const o=await fetch(s(t),{cache:"no-store"});if(!o.ok){const i=new Error(`Failed to fetch decofile: ${o.status}`);throw i.status=o.status,i}const n=await o.json();return n.token&&d(e,t,{version:n.version,token:n.token,apiHost:n.apiHost??window.location.host}),n.decofile}const y=2880*60*1e3;function D(e,t,o=y){if(!e)return!1;const n=new Date(e).getTime();return Number.isNaN(n)?!1:t-n>o}async function w(e){const t=await fetch(`${s(e)}/status`,{cache:"no-store"});return t.ok?await t.json():a(t,"Status")}function N(e){return{queryKey:r.decofileStatus(c(e)),queryFn:()=>w(e),staleTime:3e4}}async function $(e,t){const o=await fetch(s(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(!o.ok)return a(o,"Save");const n=await o.json();return{...n,apiHost:n.apiHost??window.location.host}}export{l as a,S as b,N as d,b as f,D as i,$ as p,d as s,a as t,I as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as f}from"./index-CK2jC1b8.js";import{g as c}from"./sandbox-lifecycle-context-DVklx5ib.js";import{a as l}from"./decofile-api-lyYnBz8F.js";function p(e,t,n){return e===null?0:Math.max(0,n-Math.max(0,t-e))}function m(e,t){const[n,r]=o.useState(e),a=o.useRef(null);return e&&!n&&r(!0),o.useEffect(()=>{if(e){a.current??=Date.now();return}if(!n)return;const s=()=>{a.current=null,r(!1)},i=p(a.current,Date.now(),t);if(i===0){s();return}const u=setTimeout(s,i);return()=>clearTimeout(u)},[e,n,t]),n}const y=500;function K(e,t,n){const r=f.c(6);let a;r[0]!==n||r[1]!==e||r[2]!==t?(a=l(e,t,n),r[0]=n,r[1]=e,r[2]=t,r[3]=a):a=r[3];let s;r[4]!==a?(s={mutationKey:a},r[4]=a,r[5]=s):s=r[5];const i=c(s)>0;return m(i,y)}function d(e,t,n){return`deco:preview:last-page:${e}:${t}:${n}`}function g(e){if(!e)return null;try{const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t)||typeof t.path!="string"||!t.path.startsWith("/"))return null;const n=typeof t.pageKey=="string"?t.pageKey:null,r={};if(t.params&&typeof t.params=="object")for(const[a,s]of Object.entries(t.params))typeof s=="string"&&(r[a]=s);return{path:t.path,pageKey:n,params:r}}catch{return null}}function x(e){try{return g(localStorage.getItem(e))}catch{return null}}function A(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}export{d as l,x as r,K as u,A as w};
|