decocms 4.526.2 → 4.528.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/{ActiveShapeUtils-CwNMVlsU.js → ActiveShapeUtils-Br894ljM.js} +1 -1
- package/dist/client/assets/{AlertCircle-BQ7gdGwO.js → AlertCircle-DwVsFaci.js} +1 -1
- package/dist/client/assets/{AreaChart-2TBYeD3-.js → AreaChart-BpoQ8IcB.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CzKuuRT3.js → ArrowLeft-D0U_UeWA.js} +1 -1
- package/dist/client/assets/{ArrowUp-hmPXempM.js → ArrowUp-BHvj9x12.js} +1 -1
- package/dist/client/assets/{BarChart-CqU2QH_G.js → BarChart-DSUrCO19.js} +1 -1
- package/dist/client/assets/{Building02-BP04ade-.js → Building02-4g278Kck.js} +1 -1
- package/dist/client/assets/{CartesianChart-B5qhARMe.js → CartesianChart-B8sjFfWU.js} +1 -1
- package/dist/client/assets/{CategoricalChart-GePqKrAt.js → CategoricalChart-C9NLmvFO.js} +1 -1
- package/dist/client/assets/{CheckCircle-BVnx66vP.js → CheckCircle-0mdIkBLG.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-D6sC3Vmb.js → ChevronSelectorVertical-BRbuqJl7.js} +1 -1
- package/dist/client/assets/{ChevronUp-B84nbyaB.js → ChevronUp-Cn8PaBxH.js} +1 -1
- package/dist/client/assets/{Copy01-Bac6SVw1.js → Copy01-D6STLVd9.js} +1 -1
- package/dist/client/assets/{CreditCard01-t317btce.js → CreditCard01-CAW-vU_p.js} +1 -1
- package/dist/client/assets/{DotsVertical-DjAfwlFJ.js → DotsVertical-C5Wc2qWf.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DRnbzo4s.js → ErrorBarContext-ClrUuJb8.js} +1 -1
- package/dist/client/assets/{Globe04-DSBhW1To.js → Globe04-COPfJ3z-.js} +1 -1
- package/dist/client/assets/{Image01-CNDErtLw.js → Image01-D00jtGx4.js} +1 -1
- package/dist/client/assets/{Key01-C_7n0i1h.js → Key01-CiK2_UxI.js} +1 -1
- package/dist/client/assets/{Link01-kTPC8Qx-.js → Link01-CEOBycf2.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Ps7Q2TgQ.js → LinkBroken01-Bg7pBcuJ.js} +1 -1
- package/dist/client/assets/{Minus-DwgwDeRT.js → Minus-_SQ5lvlh.js} +1 -1
- package/dist/client/assets/{Monitor01-DLFV9f_c.js → Monitor01-DyqIpSTl.js} +1 -1
- package/dist/client/assets/{Play-CQGngRNi.js → Play-BnWEmJaV.js} +1 -1
- package/dist/client/assets/{Plus-DOCl9FQV.js → Plus-BPVKrQFz.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BW-WOxqj.js → ReferenceLine-_tT0r7bG.js} +1 -1
- package/dist/client/assets/{SearchMd-BbTaBsWc.js → SearchMd-OaBCBVrZ.js} +1 -1
- package/dist/client/assets/{Sector-CZev-ohv.js → Sector-mFZOIMSW.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-2qRSy_0A.js → ShoppingBag01-GpZCrbBR.js} +1 -1
- package/dist/client/assets/{Sun-Cdvulc3r.js → Sun-BG4-BfE7.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DM99h8Bb.js → SwitchHorizontal01-CMpEiSPu.js} +1 -1
- package/dist/client/assets/{Tool01-C4vr_Fbq.js → Tool01-CIeMmnyv.js} +1 -1
- package/dist/client/assets/{Trash01-7cnh0-6j.js → Trash01-BLXgUBsw.js} +1 -1
- package/dist/client/assets/{Upload01-DJferCdW.js → Upload01-CgYtU1Ux.js} +1 -1
- package/dist/client/assets/{UserSquare-CBDcV-Sr.js → UserSquare-pnEdx237.js} +1 -1
- package/dist/client/assets/{Users01-hfFVY4Rg.js → Users01-D-rlhQmk.js} +1 -1
- package/dist/client/assets/{XClose-B2l9VhGF.js → XClose-yFNn0LgD.js} +1 -1
- package/dist/client/assets/{ZoomOut-CeC9MLz9.js → ZoomOut-D8_eDbPl.js} +1 -1
- package/dist/client/assets/{access-gate-BanurxIu.js → access-gate-CCmKpIU6.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DarQ1krm.js → add-connection-dialog-MrHyqJnn.js} +1 -1
- package/dist/client/assets/agent-analytics-wllTP-xB.js +1 -0
- package/dist/client/assets/agent-app-MGvu076D.js +1 -0
- package/dist/client/assets/{agent-assets-vnboyQof.js → agent-assets-DX3JCZz_.js} +1 -1
- package/dist/client/assets/{agent-automation-DXTohqIP.js → agent-automation-BoPrO5n1.js} +1 -1
- package/dist/client/assets/{agent-automations-BFozFJzs.js → agent-automations-Dj9SJC8y.js} +1 -1
- package/dist/client/assets/agent-calendar-CFKavSr7.js +1 -0
- package/dist/client/assets/{agent-connect-sources-CwKjdmVU.js → agent-connect-sources-guJSE0A3.js} +1 -1
- package/dist/client/assets/agent-deck-CdHFig9V.js +1 -0
- package/dist/client/assets/{agent-e2e-DinWmv8w.js → agent-e2e--KzDh_gU.js} +1 -1
- package/dist/client/assets/agent-experiments-pgMnsFIB.js +1 -0
- package/dist/client/assets/{agent-file-CXwfpXiU.js → agent-file-Cdm4fL8A.js} +1 -1
- package/dist/client/assets/{agent-hosting-Drya8fUU.js → agent-hosting-DewUrxzP.js} +1 -1
- package/dist/client/assets/agent-icon-I45DkNr8.js +1 -0
- package/dist/client/assets/agent-library-DjU97YsS.js +1 -0
- package/dist/client/assets/agent-library-file-DXHCBJAM.js +1 -0
- package/dist/client/assets/agent-monitor-Bucu2iO3.js +1 -0
- package/dist/client/assets/{agent-overview-mxgKSo__.js → agent-overview-D6KewKsA.js} +1 -1
- package/dist/client/assets/agent-releases-K-5ZFdWb.js +2 -0
- package/dist/client/assets/agent-settings-w-cNQlVy.js +1 -0
- package/dist/client/assets/{agent-site-editor-BSG_1jHk.js → agent-site-editor-5gjIAuRv.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-B432kGPM.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CQYunysB.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CLsSdnEd.js +1 -0
- package/dist/client/assets/agent-view-DP6mfHYN.js +1 -0
- package/dist/client/assets/{agent-view-guard-BHNxFqz2.js → agent-view-guard-CiKD3WZM.js} +1 -1
- package/dist/client/assets/{agents-list-LjE12uZe.js → agents-list-Bm03MUBc.js} +1 -1
- package/dist/client/assets/{ai-providers-BnPLndR5.js → ai-providers--gYjttQ2.js} +1 -1
- package/dist/client/assets/alert-CRToIlco.js +1 -0
- package/dist/client/assets/{analytics-sections-BwRAKayH.js → analytics-sections-CNk_D8Ba.js} +1 -1
- package/dist/client/assets/{analytics-tab-KcCM-OzF.js → analytics-tab-BmUlDGzX.js} +2 -2
- package/dist/client/assets/api-keys-8RAAQTX6.js +1 -0
- package/dist/client/assets/{api-keys-BYiu4OiJ.js → api-keys-MdTn4EBK.js} +1 -1
- package/dist/client/assets/app-editor-DLDQxSbu.js +1 -0
- package/dist/client/assets/{asset-utils-BFPFspZC.js → asset-utils-B46ygA_L.js} +1 -1
- package/dist/client/assets/{auth-BRizJz1-.js → auth-AQB7DTaB.js} +1 -1
- package/dist/client/assets/{auth-catchall-D1S0_WyO.js → auth-catchall-WOw2KABS.js} +1 -1
- package/dist/client/assets/{auth-entry-Bh9wXS29.js → auth-entry-D8h4o_s7.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BvrJixVI.js → auth-split-layout-D1niEerJ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DzQvKWuf.js → authenticate-and-persist-oauth-08aLFUVr.js} +1 -1
- package/dist/client/assets/{automation-list-row-DH4mXmBN.js → automation-list-row-D9muuYwH.js} +1 -1
- package/dist/client/assets/{automation-runs-DJix-DxY.js → automation-runs-Cu7hhQJb.js} +1 -1
- package/dist/client/assets/{automations-BGTqqP4a.js → automations-Ct6FcxrV.js} +1 -1
- package/dist/client/assets/{autosend-DweeW6OU.js → autosend-CxxtAFJ_.js} +1 -1
- package/dist/client/assets/{badge-6mumabZP.js → badge-zxuYXquF.js} +1 -1
- package/dist/client/assets/{block-document-6D9S2QJM.js → block-document-D4CMkt4c.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-CQlVHIqR.js → blocks-preview-workspace-context-LeIpajCL.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-5o0yQDwk.js → blocks-tab-states-BrRgLQ_Y.js} +1 -1
- package/dist/client/assets/{blog-schema-B1vhzoV7.js → blog-schema-B4i8W-yj.js} +1 -1
- package/dist/client/assets/{buckets-BXoMxN54.js → buckets-CQWPtT87.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CNSfu0YZ.js → build-improve-prompt-doc-CpbAFEGo.js} +1 -1
- package/dist/client/assets/{calendar-lhJ8p0qo.js → calendar-C7teLmhJ.js} +1 -1
- package/dist/client/assets/{capability-load-error-C3GmqKPQ.js → capability-load-error-lTXihmQk.js} +1 -1
- package/dist/client/assets/category-editor-BrbTG2-B.js +1 -0
- package/dist/client/assets/{cdn-tab-MGIcjUqn.js → cdn-tab-BstEuIpQ.js} +1 -1
- package/dist/client/assets/{chart-DgE2oixW.js → chart-DVgatavr.js} +1 -1
- package/dist/client/assets/{chat-context-BfN3Aasc.js → chat-context-DIvwe-Wr.js} +5 -5
- package/dist/client/assets/{chat-draft-1H_chlRR.js → chat-draft-DByw699W.js} +1 -1
- package/dist/client/assets/{checkbox-BGizxNX2.js → checkbox-CW4Dzojp.js} +1 -1
- package/dist/client/assets/{choose-editor-DPHanNqQ.js → choose-editor-zIlz3nud.js} +1 -1
- package/dist/client/assets/{cli-auth-success-KhIa1i1d.js → cli-auth-success-CYE6hkOe.js} +1 -1
- package/dist/client/assets/{client-icons-BB7vt0gq.js → client-icons-DL1p9F4w.js} +1 -1
- package/dist/client/assets/cms-settings-editor-D8-PKCcN.js +1 -0
- package/dist/client/assets/{collapsible-BN3qlGJC.js → collapsible-zPk-2gi_.js} +1 -1
- package/dist/client/assets/{collection-detail-BaXvekU8.js → collection-detail-Drfng1H4.js} +1 -1
- package/dist/client/assets/{collection-display-button-CFQaHfMS.js → collection-display-button-DPvQVdd-.js} +1 -1
- package/dist/client/assets/{collection-search-INMm_CkT.js → collection-search-kUVZkueq.js} +1 -1
- package/dist/client/assets/collection-table-wrapper-vDq2vkVG.js +1 -0
- package/dist/client/assets/{collection-tabs-SEBBjtRQ.js → collection-tabs-C3pu5E-Q.js} +1 -1
- package/dist/client/assets/{column-rules-BL4ZPS3s.js → column-rules-Dz5XFx3r.js} +1 -1
- package/dist/client/assets/{combobox-BO0oi3KV.js → combobox-BZSt-sf0.js} +1 -1
- package/dist/client/assets/{command-Cn1kHhQA.js → command-CSPNVB8c.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C6y38zop.js → companion-mcps-section-HHphF1lt.js} +1 -1
- package/dist/client/assets/{config-BmU_9L81.js → config-B7tLWM1b.js} +1 -1
- package/dist/client/assets/{connect-Bf0Ja-ij.js → connect-BK8j-UfV.js} +1 -1
- package/dist/client/assets/{connect-layout-fE-7a2Jq.js → connect-layout-BC5qZusj.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-Cxd2UcNI.js → connect-source-dialog-Ch0tynWX.js} +1 -1
- package/dist/client/assets/{connection-Dizw96b7.js → connection-amzL9L9Z.js} +1 -1
- package/dist/client/assets/{connection-card-D3-Gdl0S.js → connection-card-D8aS8J6Q.js} +1 -1
- package/dist/client/assets/{connection-detail-Chq5IDv2.js → connection-detail-Cu7F0ogE.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DYxyLK9S.js → connection-form-helpers-TT6AKW6f.js} +1 -1
- package/dist/client/assets/{connections-Ba6gsUgY.js → connections-B29MQqZW.js} +1 -1
- package/dist/client/assets/content-tab-BhOwV-AC.js +22 -0
- package/dist/client/assets/context-CgB14LeY.js +1 -0
- package/dist/client/assets/{context-menu-gP7nFahM.js → context-menu-CFt3f_Gb.js} +1 -1
- package/dist/client/assets/{context-shell-sMRc_A5o.js → context-shell-KhGmYnbX.js} +5 -5
- package/dist/client/assets/{core.esm-BdDh475y.js → core.esm-Brf7c66K.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Ci-3-YrG.js → create-organization-dialog-Dshiy6sU.js} +1 -1
- package/dist/client/assets/daily-pulse-DglWu2t-.js +1 -0
- package/dist/client/assets/{discover-Dgk-X72W.js → discover-BLv8PWTL.js} +1 -1
- package/dist/client/assets/{domain-settings-DXLwO71Z.js → domain-settings-7tpPEEzB.js} +1 -1
- package/dist/client/assets/{drawer-LA3NkA0S.js → drawer-w05H8pBO.js} +1 -1
- package/dist/client/assets/{editor-C2vaY1i0.js → editor-CiOoO-Ym.js} +1 -1
- package/dist/client/assets/{editor-classes-wrVHQOxp.js → editor-classes-DNAm8ZAW.js} +1 -1
- package/dist/client/assets/{empty-state-DHgdXyfD.js → empty-state-BiIeVz7z.js} +1 -1
- package/dist/client/assets/{empty-state-BIXUpBao.js → empty-state-ErDRcN-P.js} +1 -1
- package/dist/client/assets/experiments-tab-BghFguNv.js +1 -0
- package/dist/client/assets/{experiments-tab-choice-DdG3xkHn.js → experiments-tab-choice-CY-Qbhut.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BPic6jPp.js → extract-connection-data-C02FZ5zb.js} +1 -1
- package/dist/client/assets/{feature-gate-uVlfgQri.js → feature-gate-CE1MLoN2.js} +1 -1
- package/dist/client/assets/{feature-paywall-0Gw_Q4lr.js → feature-paywall-C560RaP5.js} +1 -1
- package/dist/client/assets/{file-explorer-DgWEbnfC.js → file-explorer-CVmiakjw.js} +1 -1
- package/dist/client/assets/{file-preview-BHY7-Pu0.js → file-preview-Cc6_BSbv.js} +1 -1
- package/dist/client/assets/{file-share-button-Dj47FtSF.js → file-share-button-Do4wEYep.js} +1 -1
- package/dist/client/assets/{file-type-icon-D98G7WK4.js → file-type-icon-CeBZX69W.js} +1 -1
- package/dist/client/assets/{folder-icon-CMFoNGkh.js → folder-icon-DgtIAyY7.js} +2 -2
- package/dist/client/assets/{form-oXstmc9Q.js → form-nJy5zMPE.js} +1 -1
- package/dist/client/assets/{general-Dg84kr26.js → general-BOPFN5z3.js} +1 -1
- package/dist/client/assets/{held-block-view-CpXdgp7m.js → held-block-view-tvHMvR4T.js} +3 -3
- package/dist/client/assets/{home-DzHhk92o.js → home-CcsI1NKl.js} +1 -1
- package/dist/client/assets/hosted-publish-feedback-DxOmBJxT.js +1 -0
- package/dist/client/assets/{icon-button-vGME3QbC.js → icon-button-Xe7zTqiw.js} +1 -1
- package/dist/client/assets/{index-20HoU-20.js → index-B8jtRR0H.js} +2 -2
- package/dist/client/assets/{index-CKwkOVRk.js → index-BD0IquFc.js} +1 -1
- package/dist/client/assets/{index-DMyWhhx4.js → index-BJTbyKBB.js} +1 -1
- package/dist/client/assets/{index-BVIkRnC2.js → index-BK_RqkJq.js} +1 -1
- package/dist/client/assets/{index-BcT8d0Ct.js → index-BzwMZ-96.js} +1 -1
- package/dist/client/assets/{index-BBCK9r3-.js → index-CcnAFkjW.js} +1 -1
- package/dist/client/assets/{index-DampV2dK.js → index-Ce7G0he3.js} +44 -44
- package/dist/client/assets/{index-BcOdVYcr.js → index-Cjzst5W1.js} +1 -1
- package/dist/client/assets/{index-B0CHXOni.js → index-ComxOMRa.js} +1 -1
- package/dist/client/assets/{index-DgIUPTVB.js → index-DZ7OjEm4.js} +1 -1
- package/dist/client/assets/{index-CAdTS9ZX.js → index-DjOPmK0D.js} +1 -1
- package/dist/client/assets/{index-C4-Z_rKB.js → index-Dm-21QtS.js} +1 -1
- package/dist/client/assets/{index-redirect-BcArEk0h.js → index-redirect-BRlBNfxv.js} +1 -1
- package/dist/client/assets/{index-BapUxZWk.js → index-tffbmy1v.js} +1 -1
- package/dist/client/assets/index-u-z_8GjU.css +1 -0
- package/dist/client/assets/{index-CUZ1Ro0y.js → index-uE3tVNL6.js} +1 -1
- package/dist/client/assets/{index-CTcO2Era.js → index-xw_Jw9LH.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-koP9jk4d.js → infiniteQueryObserver-BJujpYxh.js} +1 -1
- package/dist/client/assets/{infra-billing-Dh0UUr_Y.js → infra-billing-C0m6hfZU.js} +1 -1
- package/dist/client/assets/{input-nNYp-8x6.js → input-B45cW293.js} +4 -4
- package/dist/client/assets/{input-B3p7vRnZ.js → input-CzPtcD68.js} +1 -1
- package/dist/client/assets/{integration-icon-CiAW8rDV.js → integration-icon-Cs3IASPS.js} +1 -1
- package/dist/client/assets/{jira-icon-CPygEn4Q.js → jira-icon-BuriBSdU.js} +1 -1
- package/dist/client/assets/{label-CjCrcKeN.js → label-ivnVLsJB.js} +1 -1
- package/dist/client/assets/{layout-BdGh_t6z.js → layout-CZlIpVTU.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Cm0fVoJt.js → legacy-agents-deep-DMpNnXol.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-yklNT500.js → legacy-main-redirect-CBL3GGt7.js} +1 -1
- package/dist/client/assets/library-CdY45oa5.js +1 -0
- package/dist/client/assets/{login-zLCkg8LX.js → login-ByMZv8aL.js} +1 -1
- package/dist/client/assets/{markdown-Cqcjq3Xf.js → markdown-UmudOdor.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-dATLexqT.js → mcp-app-renderer-PAwZvEJj.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CfI4AoXx.js → mcp-oauth-Cz4RwYAs.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CJZC8nld.js → mcp-oauth-qpkBxX91.js} +1 -1
- package/dist/client/assets/{members-4PYMHLuR.js → members-DcVu4FNR.js} +1 -1
- package/dist/client/assets/{memory-C6HI5VGy.js → memory-C_hVYwsN.js} +2 -2
- package/dist/client/assets/{mini-report-page-pa3awJPv.js → mini-report-page-DqysKZ5e.js} +1 -1
- package/dist/client/assets/mock-board-BSsrmRDS.js +81 -0
- package/dist/client/assets/{monaco-editor-5y8rZvs2.js → monaco-editor-Cc-5fhHI.js} +1 -1
- package/dist/client/assets/monitoring-DVujO52F.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-CKIqhhys.js → monitoring-stats-row-DosbF5BV.js} +1 -1
- package/dist/client/assets/{multi-select-B11Nwxds.js → multi-select-DHn_nlnM.js} +1 -1
- package/dist/client/assets/mustache-CKGDjf9j.js +4 -0
- package/dist/client/assets/{named-rule-uses-ZJHANdK7.js → named-rule-uses-Drzf8cgA.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BVdmAMTF.js → new-project-dialog-D3vjD1Ks.js} +1 -1
- package/dist/client/assets/{oauth-callback-Clp9_mQH.js → oauth-callback-D5wWKok2.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B50P_7pe.js → oauth-callback-ai-provider-BKG0BbMN.js} +1 -1
- package/dist/client/assets/{onboarding-zwPhPqAT.js → onboarding-Ci8OMwC9.js} +1 -1
- package/dist/client/assets/{openai-conversation-BH7MRGH3.js → openai-conversation-D9RDSbbV.js} +2 -2
- package/dist/client/assets/{optimistic-project-sidebar-views-p4b0qW4M.js → optimistic-project-sidebar-views-L0iLKNqt.js} +1 -1
- package/dist/client/assets/{order-monitor-day-CqO3tTmM.js → order-monitor-day-CYrv-YPX.js} +1 -1
- package/dist/client/assets/{organization-choice-9p7y5Qyt.js → organization-choice-DS1Td5mt.js} +1 -1
- package/dist/client/assets/{orgs-mkCn2L3g.js → orgs-BdW5vuy7.js} +1 -1
- package/dist/client/assets/{page-seo-form-BsL_nGoH.js → page-seo-form-4Td1Bwhl.js} +1 -1
- package/dist/client/assets/{pair-BlVTZ-F_.js → pair-D40XxJSs.js} +1 -1
- package/dist/client/assets/{parse-sections-D3_nSXsH.js → parse-sections-6LYwkRXc.js} +1 -1
- package/dist/client/assets/{plan-ea0rrjrS.js → plan-B5MpX63p.js} +1 -1
- package/dist/client/assets/{plan-ladder-BQnQ-c-o.js → plan-ladder-DyKNTGpe.js} +1 -1
- package/dist/client/assets/{popover-C6LRW83t.js → popover-BF3N_cWR.js} +1 -1
- package/dist/client/assets/post-calendar-BtEPuDia.js +1 -0
- package/dist/client/assets/{post-editor-CEWlJ8jo.js → post-editor-DlfqwxIk.js} +2 -2
- package/dist/client/assets/{preview-content-C-60FNpz.js → preview-content-BV8Fh5Qw.js} +1 -1
- package/dist/client/assets/{preview-dialog-CrPz9LUi.js → preview-dialog-BmUPiPPl.js} +1 -1
- package/dist/client/assets/{preview-panel-tI2aO6cK.js → preview-panel-llvMLYPZ.js} +1 -1
- package/dist/client/assets/{preview-tab-CZ3Cot3B.js → preview-tab-DieLxroc.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-JbKEmFSB.js → product-picker-dialog-DVInlx3E.js} +1 -1
- package/dist/client/assets/{profile-tb3VLWGr.js → profile-BeQa-VCG.js} +1 -1
- package/dist/client/assets/project-app-view-Cey1t0qJ.js +1 -0
- package/dist/client/assets/{project-apps-CUVHvRf7.js → project-apps-B_x_Bovr.js} +1 -1
- package/dist/client/assets/{project-feed-BUL7QZMR.js → project-feed-CFTw8-Bu.js} +1 -1
- package/dist/client/assets/{project-icon-C4YSWqLo.js → project-icon-Cgbmeoa9.js} +1 -1
- package/dist/client/assets/project-reports-BuglSKY2.js +1 -0
- package/dist/client/assets/project-tasks-CwzdWFfG.js +1 -0
- package/dist/client/assets/{projects-Dd92LlpW.js → projects-Cadx_2S-.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BkJevxQj.js → projects-empty-state-B0sxQqwF.js} +1 -1
- package/dist/client/assets/{prompts-CjZHwr1o.js → prompts-B6yRUPTQ.js} +1 -1
- package/dist/client/assets/record-editor-1SlOHcz4.js +1 -0
- package/dist/client/assets/redirect-editor-UO7ym99V.js +1 -0
- package/dist/client/assets/releases-api-Dz4kituq.js +1 -0
- package/dist/client/assets/{reports-CjzKQyjq.js → reports-BN03l_kE.js} +1 -1
- package/dist/client/assets/reports-DuuFM9rE.js +1 -0
- package/dist/client/assets/{reports-onboarding-PhZdbYYv.js → reports-onboarding-CXYw21hI.js} +1 -1
- package/dist/client/assets/{reports-tab-Cl5b6xq6.js → reports-tab-DNDxSx2i.js} +2 -2
- package/dist/client/assets/{repositories-Df9FHJII.js → repositories-DkDpuhbE.js} +1 -1
- package/dist/client/assets/repositories-Dvbq5CpF.js +1 -0
- package/dist/client/assets/{repository-binding-DSYWyWQk.js → repository-binding-Dg4XMxXs.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CSAKO3X5.js → repository-import-picker-BZ7PPi9W.js} +1 -1
- package/dist/client/assets/{repository-picker-3tqi2Hvb.js → repository-picker-aA12wSzy.js} +1 -1
- package/dist/client/assets/{require-capability-CLXh_YYN.js → require-capability-CXN6JJ5S.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DMJ9p0SW.js → required-auth-layout-pDiTStrv.js} +1 -1
- package/dist/client/assets/{reset-password-C8ez-uKX.js → reset-password-CRhNEOOs.js} +1 -1
- package/dist/client/assets/{resizable-CWhIVRKn.js → resizable-HiC69AzM.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-l6kvyo7T.js → resolve-tab-icon-DdbyVt-l.js} +1 -1
- package/dist/client/assets/{review-settings-CXbKpHZd.js → review-settings-BdnOsmg6.js} +1 -1
- package/dist/client/assets/{roles-DSB-aYYs.js → roles-C54CSjKN.js} +1 -1
- package/dist/client/assets/{route-C4rRmU6W.js → route-19TfZ9Nu.js} +1 -1
- package/dist/client/assets/{route-BDXg8II4.js → route-ChUurj1a.js} +1 -1
- package/dist/client/assets/route-CkPY6J06.js +1 -0
- package/dist/client/assets/{sandbox-git-api-CH_-QFpD.js → sandbox-git-api-DcqI6XE4.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BVJJp5p1.js → sandbox-lifecycle-context-C-6LRZKK.js} +1 -1
- package/dist/client/assets/schema-4d6JAPZJ.js +1 -0
- package/dist/client/assets/{schema-BcGVNeII.js → schema-DjHUnA9X.js} +1 -1
- package/dist/client/assets/{scroll-area-Dbl0Ja6M.js → scroll-area-DmCvljJ6.js} +1 -1
- package/dist/client/assets/{search-input-CI-RscAC.js → search-input-DuxKe01B.js} +1 -1
- package/dist/client/assets/{search-toggle-DfEbn4An.js → search-toggle-5fjHehxP.js} +1 -1
- package/dist/client/assets/{secret-picker-Cki8V7fz.js → secret-picker-gnCLcdHl.js} +1 -1
- package/dist/client/assets/{secrets-CiPY8Xbn.js → secrets-1Q0KkbT2.js} +1 -1
- package/dist/client/assets/{section-array-field-DvT6jzl0.js → section-array-field-DJWSUlEO.js} +1 -1
- package/dist/client/assets/{sections-qI0m5KhX.js → sections-BFagCGU_.js} +1 -1
- package/dist/client/assets/sections-editor-Cd0e4qhb.js +1 -0
- package/dist/client/assets/{select-BjOZT7HR.js → select-BU91L4uy.js} +1 -1
- package/dist/client/assets/{select-model-DkLK9HGj.js → select-model-CtxoaFb9.js} +1 -1
- package/dist/client/assets/{seo-editor-D05ebZyJ.js → seo-editor-dOpYS1fH.js} +1 -1
- package/dist/client/assets/{separator-CjZHveNE.js → separator-C2eDbIfB.js} +1 -1
- package/dist/client/assets/settings-tab-D7WyDwD7.js +1 -0
- package/dist/client/assets/{sheet-DfTFlGFH.js → sheet-CyFkbR9Y.js} +1 -1
- package/dist/client/assets/{shell-layout-DDrdQOKB.js → shell-layout-DjxWvBNL.js} +1 -1
- package/dist/client/assets/site-draft-actions-Ck3uf8oy.js +3 -0
- package/dist/client/assets/site-draft-view-DmpsxvZd.js +2 -0
- package/dist/client/assets/site-editor-BXDxn3xb.js +1 -0
- package/dist/client/assets/site-editor-toast-DwH2UhLV.js +1 -0
- package/dist/client/assets/{skills-B_QDMWu_.js → skills-CEjNG6HD.js} +1 -1
- package/dist/client/assets/{slider-DrOo7_UG.js → slider-wRMQIU5C.js} +1 -1
- package/dist/client/assets/{sortable.esm-bTAsk8Vk.js → sortable.esm-GfRDqHVM.js} +1 -1
- package/dist/client/assets/{sso-BwNLNHyD.js → sso-ou3AfF03.js} +1 -1
- package/dist/client/assets/{suggestion-D6r-qU7q.js → suggestion-GTJqe6wD.js} +2 -2
- package/dist/client/assets/{switch-BaweF4ir.js → switch-Be6f0Lf5.js} +1 -1
- package/dist/client/assets/{symbol-CJnTkOND.js → symbol-D9upvJXv.js} +1 -1
- package/dist/client/assets/{synced-repos-BD02afV5.js → synced-repos-BMxqOtvT.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Dka1P8cQ.js → tab-icon-glyph-ixZicBgd.js} +1 -1
- package/dist/client/assets/{table-ByFmIMk8.js → table-Sgqiv7ow.js} +1 -1
- package/dist/client/assets/{tabs-C_tuCc9E.js → tabs-CTBn6AHY.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-pNz0ct84.js → task-assignee-avatar-CgqfXsXT.js} +1 -1
- package/dist/client/assets/{task-board-CFm7hWmU.js → task-board-B-WXUk04.js} +1 -1
- package/dist/client/assets/{task-route-CroNqaC_.js → task-route-D7L_AjBa.js} +1 -1
- package/dist/client/assets/{task-status-SVf_UHQ8.js → task-status-D47mg_UC.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BPmcL0th.js → taskboard-analytics-BXOv_DdG.js} +1 -1
- package/dist/client/assets/tasks-CDonOW9g.js +1 -0
- package/dist/client/assets/{tasks-CcIwJnqw.js → tasks-DRiqBj-N.js} +3 -3
- package/dist/client/assets/{textarea-CiRqIfaf.js → textarea-CiBj0MLq.js} +1 -1
- package/dist/client/assets/{thread-analytics-VH5cv6lu.js → thread-analytics-apzZ--go.js} +1 -1
- package/dist/client/assets/{thread-intent-BAI3Rlfu.js → thread-intent-ClCyX82j.js} +1 -1
- package/dist/client/assets/{thread-route-Nzl7YVXC.js → thread-route-CFct_VQa.js} +1 -1
- package/dist/client/assets/{thread-route-DCxAnsEA.js → thread-route-D14ghtgQ.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CpP9OOWv.js → thread-sheet-body-BCarr4x7.js} +1 -1
- package/dist/client/assets/{time-range-picker-8OmeiBBB.js → time-range-picker-C3_uZ5O2.js} +1 -1
- package/dist/client/assets/{toggle-group-DkOJZdVq.js → toggle-group-BVSslRda.js} +1 -1
- package/dist/client/assets/{tool-namespace-MjGHB-2n.js → tool-namespace-C-2tGGMF.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DPdWBHmX.js → toolbar-icon-button-3L1Mfrbu.js} +1 -1
- package/dist/client/assets/{tooltip-DZKcSDR4.js → tooltip-BHLCIkH9.js} +1 -1
- package/dist/client/assets/{tooltipContext-J8gN2jYl.js → tooltipContext-BMB7e6XT.js} +1 -1
- package/dist/client/assets/{track-CPKI19Qd.js → track-DUL7obAK.js} +1 -1
- package/dist/client/assets/{types-D-tO7eft.js → types-9H7KFAzM.js} +3 -3
- package/dist/client/assets/{url-slug-B3-3kua2.js → url-slug-CrYfl8wu.js} +1 -1
- package/dist/client/assets/{usage-stats-D7pL8W8y.js → usage-stats-CtXF_bWd.js} +1 -1
- package/dist/client/assets/{use-ai-providers-t0yXUakZ.js → use-ai-providers-DmHiyABc.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-x6zm2qwO.js → use-apply-named-rule-DnrC-2Y6.js} +1 -1
- package/dist/client/assets/{use-automations-DvxXx4v3.js → use-automations-BeX04Bm6.js} +1 -1
- package/dist/client/assets/{use-autosave-CKJcAkk6.js → use-autosave-Civ5dqYG.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-Be7PCK7m.js → use-chat-layout-state-DEHPkPVs.js} +1 -1
- package/dist/client/assets/{use-clock-tick-_wcwwysm.js → use-clock-tick-C1thlLib.js} +1 -1
- package/dist/client/assets/use-cms-publish-actions-Ca_6MHNE.js +10 -0
- package/dist/client/assets/{use-connect-companion-DqnlsCkr.js → use-connect-companion-XN72CB3K.js} +1 -1
- package/dist/client/assets/{use-connection-BwtjQBnQ.js → use-connection-DdV5v_sO.js} +1 -1
- package/dist/client/assets/{use-copy-CRYT_lEh.js → use-copy-DGCMROZD.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B7toVaXI.js → use-create-virtual-mcp-CYamK9uo.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DF7pxcBk.js → use-date-fns-locale-RvTpk_ov.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CQ0k7XU4.js → use-debounced-autosave-CCKD06RC.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BgU5Mlo6.js → use-debounced-value-D4hMc82O.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DRFtUrcE.js → use-deco-credits-8Cm_6S2l.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-aPDwNsv_.js → use-decopilot-events-CMhdGvid.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DB3Kupec.js → use-delete-connection-DczFLZ2h.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-2Gp9fLRN.js → use-deployment-admin-D33YqaOd.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DfZ_rD3i.js → use-fast-preview-draft-url-5-OqnV1z.js} +1 -1
- package/dist/client/assets/{use-file-configs-DG6lQxbS.js → use-file-configs-B-dtUlcn.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BAUqtwyl.js → use-inbox-feed-DgAPUhXS.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-_QxCAV2S.js → use-infinite-scroll-Boo11DpH.js} +1 -1
- package/dist/client/assets/{use-join-requests-6CPF_lfc.js → use-join-requests-WGDHodyD.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CKFNH0cz.js → use-main-panel-tabs-D8UhTy5h.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CG_Nglqa.js → use-mcp-auth-status-Ue891t8t.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Db3WwHkW.js → use-mcp-client-B9-9jnHW.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D76okIQm.js → use-mcp-prompts-Duq-F4uG.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BqAiOdl2.js → use-mcp-tools-DvCVc1NG.js} +1 -1
- package/dist/client/assets/{use-mobile-BihCEjWm.js → use-mobile-BZz7cwuI.js} +1 -1
- package/dist/client/assets/use-move-blocks-DUpXqrhw.js +1 -0
- package/dist/client/assets/{use-navigate-to-agent-DH-wfLLT.js → use-navigate-to-agent-CEpb-TPy.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BRN6W4Vx.js → use-open-billing-url-AHjpaAXa.js} +1 -1
- package/dist/client/assets/{use-org-fs-DYzo-CVk.js → use-org-fs-8kFrjmMH.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D2UZHvP3.js → use-org-repo-syncs-DHiYUCj6.js} +1 -1
- package/dist/client/assets/{use-org-sso-dGa9sTJw.js → use-org-sso-l3h7LAOC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DNM22dA7.js → use-organization-roles-DWGBtp2u.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DOUb81j1.js → use-organization-settings-DAQWwUyU.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BYbZXvp4.js → use-panel-navigate-C-mQZt-r.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DaDkyw-s.js → use-project-native-view-presence-D2zRgAqZ.js} +1 -1
- package/dist/client/assets/{use-project-scope-JP7EfYKk.js → use-project-scope-DYBc2cnp.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CXehLx4B.js → use-recent-apps-CahLdkOq.js} +1 -1
- package/dist/client/assets/{use-releases-BN_Y86Es.js → use-releases-Drxi11Hn.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-R8fOEnxQ.js → use-reports-diagnostic-C0y8CLzl.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-DoS1U6Xg.js → use-sandbox-events-DKnAt9WL.js} +1 -1
- package/dist/client/assets/{use-secrets-D5GrKapk.js → use-secrets-CCJcL_mR.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DoGRuc7-.js → use-section-preview-base-yGU9kv3R.js} +1 -1
- package/dist/client/assets/{use-session-runtime-Bp29dZ9K.js → use-session-runtime-CL3Ry0XG.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-B3wyR6wL.js → use-sidebar-collapsed-CbzeRAk-.js} +1 -1
- package/dist/client/assets/{use-tags-CyP6VoHu.js → use-tags-Af_mmSB1.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DIHarjfC.js → use-task-board-analytics-BkPBycom.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BWNw3HI5.js → use-task-board-events-Bs2sMvhO.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BhBkGpQk.js → use-task-board-item-prs-DtKTjCYS.js} +1 -1
- package/dist/client/assets/{use-task-metadata-B9_EDVoX.js → use-task-metadata-CaEOmtPV.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DJ-a1GYM.js → use-thread-analytics-DFAhXiiU.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-C5vhvZFZ.js → use-thread-outputs-wHP5lV5E.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DAGt4Ai1.js +1 -0
- package/dist/client/assets/{useQueries-DQ6fzXUk.js → useQueries-bayVPMWC.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BCXHmK3t.js +1 -0
- package/dist/client/assets/{users-CQ7ISHLn.js → users-BXC7BZTC.js} +1 -1
- package/dist/client/assets/{utils-rLTU2EyK.js → utils-C_XIOzcP.js} +1 -1
- package/dist/client/assets/{variant-calendar-Cc7Av7n-.js → variant-calendar-DqsG-wJ9.js} +1 -1
- package/dist/client/assets/variant-matcher-override-BfAJFrjh.js +1 -0
- package/dist/client/assets/view-header-BlWEzmVd.js +1 -0
- package/dist/client/assets/{virtual-mcp-D2W6CtJ3.js → virtual-mcp-BfSfmNNT.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Cue4trO6.js → watch-sse-pool-D5nA1051.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/migrate.js +195 -195
- package/dist/server/server.js +846 -828
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-Cazr3KtN.js +0 -1
- package/dist/client/assets/agent-app-C_2G2yFw.js +0 -1
- package/dist/client/assets/agent-calendar-DVHehu_x.js +0 -1
- package/dist/client/assets/agent-deck-DvlsuAfl.js +0 -1
- package/dist/client/assets/agent-experiments-mSZe2g7e.js +0 -1
- package/dist/client/assets/agent-icon-Bo37g0fF.js +0 -1
- package/dist/client/assets/agent-library-CF5liEzt.js +0 -1
- package/dist/client/assets/agent-library-file-CdQ4OD0k.js +0 -1
- package/dist/client/assets/agent-monitor-D_MkJVMA.js +0 -1
- package/dist/client/assets/agent-releases-Bg7ZL_Eh.js +0 -2
- package/dist/client/assets/agent-settings-DEMD2MSc.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CN1FjAA8.js +0 -2
- package/dist/client/assets/agent-site-editor-content-243OnENt.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BMX4-2ho.js +0 -1
- package/dist/client/assets/agent-view-CC8vCjbP.js +0 -1
- package/dist/client/assets/alert-DGv9RNV8.js +0 -1
- package/dist/client/assets/api-keys-Ix_KjoIE.js +0 -1
- package/dist/client/assets/app-editor-Dhabc6r3.js +0 -1
- package/dist/client/assets/category-editor-B-uVQjgp.js +0 -1
- package/dist/client/assets/cms-settings-editor-DwHv5VFb.js +0 -1
- package/dist/client/assets/collection-table-wrapper-Dt2ctjEE.js +0 -1
- package/dist/client/assets/content-tab-gYwhAZMG.js +0 -22
- package/dist/client/assets/context-2BuuIfvl.js +0 -1
- package/dist/client/assets/daily-pulse-Ir1cHSjy.js +0 -1
- package/dist/client/assets/experiments-tab-DOsWoa0_.js +0 -1
- package/dist/client/assets/index-DfpwvZQG.css +0 -1
- package/dist/client/assets/library-DxYyWAwR.js +0 -1
- package/dist/client/assets/mock-board-DKq30aNi.js +0 -81
- package/dist/client/assets/monitoring-CGJWrng1.js +0 -1
- package/dist/client/assets/mustache-C57uA7K3.js +0 -4
- package/dist/client/assets/post-calendar-DScrSJbD.js +0 -1
- package/dist/client/assets/project-app-view-BN5-NmcY.js +0 -1
- package/dist/client/assets/project-reports-BkL-vra7.js +0 -1
- package/dist/client/assets/project-tasks-CkDZssBo.js +0 -1
- package/dist/client/assets/record-editor-dqXrhJSK.js +0 -1
- package/dist/client/assets/redirect-editor-CbLBgrtr.js +0 -1
- package/dist/client/assets/releases-api-BXtcXUmK.js +0 -1
- package/dist/client/assets/reports-Dqbx9vvQ.js +0 -1
- package/dist/client/assets/repositories-CXJpDO8c.js +0 -1
- package/dist/client/assets/route-CBQzhShl.js +0 -1
- package/dist/client/assets/schema-C1grSGu6.js +0 -1
- package/dist/client/assets/sections-editor-B5DUhp2P.js +0 -1
- package/dist/client/assets/settings-tab-D7kokq_E.js +0 -1
- package/dist/client/assets/site-draft-actions-CGinyKcf.js +0 -12
- package/dist/client/assets/site-draft-view-zFIJN3xy.js +0 -2
- package/dist/client/assets/site-editor-toast-SKvfrYhz.js +0 -1
- package/dist/client/assets/site-editor-uqa8dwZT.js +0 -1
- package/dist/client/assets/tasks-CAcr5cg4.js +0 -1
- package/dist/client/assets/use-content-sync-Cnva7d9w.js +0 -1
- package/dist/client/assets/use-move-blocks-CkTgDd_J.js +0 -1
- package/dist/client/assets/useInfiniteQuery-gMQYsgHb.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-huohnS0M.js +0 -1
- package/dist/client/assets/variant-matcher-override-CMTA6uf4.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as P,q as z,m as M,K as h,eP as ct,aK as zt,aL as Xt,r as j,a as Zt,az as pe,a4 as qt,eQ as lt,eR as Ce,bh as be,eS as ue,eT as _e,eU as Ne,ax as Kt,bq as ut,eV as F,eW as ee,eX as we,eY as He,eZ as en,t as q,j as G}from"./index-DampV2dK.js";import{u as dt}from"./use-session-runtime-Bp29dZ9K.js";import{s as Ge}from"./thread-intent-BAI3Rlfu.js";import{u as Re,b as tn}from"./experiments-tab-choice-DdG3xkHn.js";import{b as de}from"./sandbox-url-D3mC8qhT.js";import{s as nn}from"./utils-rLTU2EyK.js";import{a as on}from"./repository-binding-DSYWyWQk.js";import{u as rn}from"./chat-context-BfN3Aasc.js";import{i as sn,u as an}from"./use-sandbox-events-DoS1U6Xg.js";import{a as cn}from"./sandbox-git-api-CH_-QFpD.js";import{e as ln}from"./backoff-CrEUbyZT.js";const S={MethodNotFound:-32601,InvalidParams:-32602,InternalError:-32603,NotFound:-32001,Conflict:-32002,InvalidBlock:-32003,ReadOnly:-32005,Unsupported:-32006,LimitExceeded:-32007,Unavailable:-32008,Unauthorized:-32010};class D extends Error{code;data;constructor(t,n,o){super(n),this.name="ContentProtocolError",this.code=t,this.data=o}toJSON(){return this.data===void 0?{code:this.code,message:this.message}:{code:this.code,message:this.message,data:this.data}}static from(t){return new D(t.code,t.message,t.data)}}const Z="deco-content",Se={major:1},ft=1;async function un(e){let t=new Uint8Array(await e.arrayBuffer());if(t[0]===31&&t[1]===139){const n=new Blob([t]).stream().pipeThrough(new DecompressionStream("gzip"));t=new Uint8Array(await new Response(n).arrayBuffer())}return JSON.parse(new TextDecoder().decode(t))}const ye={major:Se.major,minor:ft},ht=`the endpoint speaks an older ${Z} than this client needs (${ye.major}.${ye.minor} or newer): update @decocms/blocks in the site (8.2.0 or newer) and start deco serve again`;function ne(e,t,n){const o={reason:t,required:{...ye}};if(n){o.actual={protocol:n.protocol,major:n.version?.major,minor:n.version?.minor};const r=n.server;typeof r?.name=="string"&&typeof r.version=="string"&&(o.server={name:r.name,version:r.version})}return new D(S.Unsupported,e,o)}function gt(e){const t=e??{},{protocol:n,version:o}=t;if(n!==Z)throw ne(`the endpoint speaks ${JSON.stringify(n)}, not ${Z}`,"protocol",t);if(o?.major!==Se.major)throw ne(`the endpoint speaks ${Z} ${String(o?.major)}.x; this client speaks ${Se.major}.x`,"major",t);if(typeof o.minor!="number"||o.minor<ft)throw ne(ht,"outdated",t);return e}function Je(e,t){return t.code===S.MethodNotFound&&e.startsWith("changes.")?ne(ht,"outdated"):D.from(t)}function xe(e){const t=e.fetch??(s=>fetch(s));let n=1;async function o(s){const i={"content-type":"application/json",accept:"application/json",...e.headers},a=await t(new Request(e.endpoint,{method:"POST",headers:i,body:JSON.stringify(s)}));let l;try{l=await un(a)}catch{throw new D(S.Unavailable,`the endpoint answered HTTP ${a.status} without a JSON-RPC body`)}if(!a.ok||!Array.isArray(l)&&l?.id===null){const c=l?.error;throw c?D.from(c):new D(S.Unavailable,`the endpoint answered HTTP ${a.status}`)}return l}const r=async(s,i)=>{const a=n++,l=await o({jsonrpc:"2.0",id:a,method:s,params:i??{}});if(l.error)throw Je(s,l.error);return l.result};return{call:r,describe:async()=>gt(await r("describe")),schemaGet:s=>r("schema.get",s),blocksList:s=>r("blocks.list",s),blocksApply:s=>r("blocks.apply",s),changesList:s=>r("changes.list",s),changesGet:s=>r("changes.get",s),changesDiscard:s=>r("changes.discard",s),async batch(s){const i=s.map(()=>n++),a=await o(s.map((c,u)=>({jsonrpc:"2.0",id:i[u],method:c.method,params:c.params??{}}))),l=new Map(a.map(c=>[c.id,c]));return i.map((c,u)=>{const d=l.get(c);return d?d.error?{ok:!1,error:Je(s[u].method,d.error)}:{ok:!0,result:d.result}:{ok:!1,error:new D(S.InternalError,"no response for this call")}})}}}function vt(e){return e&&!e.edited?{ifNoneMatch:e.revision}:{}}const We=20,Ye=5,ze=500;function Pe(e){return e instanceof D?e.code===S.MethodNotFound?!0:e.code===S.Unsupported&&e.data?.reason==="outdated":!1}function Ee(e,t){return t.notModified?e?{...e,base:t.base}:null:{revision:t.revision,base:t.base,changes:t.changes}}async function dn(e,t,n){const o=h.contentChanges(n),r=e.getQueryData(o),s=await t.changesList(vt(r)),i=Ee(r,s);if(i)return i;const a=await t.changesList({});return Ee(void 0,a)}async function fn(e,t){const n=[];for(let s=0;s<t.length;s+=We)n.push(t.slice(s,s+We));const o=Object.create(null),r=[];for(let s=0;s<n.length;s+=Ye){const i=await e.batch(n.slice(s,s+Ye).map(a=>({method:"changes.get",params:{names:a}})));for(const a of i){if(!a.ok)throw a.error;const l=a.result;Object.assign(o,l.entries),r.push(...l.diagnostics)}}return{entries:o,diagnostics:r}}async function Jo(e,t){let n={revision:"",versions:{}};for(let o=0;o<t.length;o+=ze){const r=t.slice(o,o+ze),s=await e.changesDiscard({names:r.map(i=>i.name),ifMatch:Object.fromEntries(r.map(i=>[i.name,i.version]))});n={revision:s.revision,versions:{...n.versions,...s.versions}}}return n}function Wo(e){return e instanceof D&&e.code===S.Conflict}function mt(e){return e?.kind==="protocol"?e:null}function Yo(e,t,n){const o=P.c(14);let r;o[0]!==n?(r={},o[0]=n,o[1]=r):r=o[1];const s=r,i=z();let a;o[2]!==e?(a=mt(e),o[2]=e,o[3]=a):a=o[3];const l=a,c=!!l&&!!t&&s.enabled!==!1;let u;o[4]!==t?(u=h.contentChanges(t??""),o[4]=t,o[5]=u):u=o[5];let d;o[6]!==t||o[7]!==c||o[8]!==l||o[9]!==i?(d=c?()=>dn(i,l.client,t):ct,o[6]=t,o[7]=c,o[8]=l,o[9]=i,o[10]=d):d=o[10];let g;return o[11]!==u||o[12]!==d?(g={queryKey:u,queryFn:d,staleTime:0},o[11]=u,o[12]=d,o[13]=g):g=o[13],M(g)}function zo(e,t,n){const o=P.c(14);let r;o[0]!==e?(r=mt(e),o[0]=e,o[1]=r):r=o[1];const s=r;let i;o[2]!==n?(i=n?Object.keys(n.changes):[],o[2]=n,o[3]=i):i=o[3];const a=i,l=!!s&&!!t&&!!n&&a.length>0;let c;o[4]!==t||o[5]!==n?.revision?(c=h.contentChangeSides(t??"",n?.revision??""),o[4]=t,o[5]=n?.revision,o[6]=c):c=o[6];let u;o[7]!==l||o[8]!==a||o[9]!==s?(u=l?()=>fn(s.client,a):ct,o[7]=l,o[8]=a,o[9]=s,o[10]=u):u=o[10];let d;return o[11]!==c||o[12]!==u?(d={queryKey:c,queryFn:u,staleTime:Number.POSITIVE_INFINITY},o[11]=c,o[12]=u,o[13]=d):d=o[13],M(d)}function pt(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")return!1;const n=t.hostname.toLowerCase();return n==="127.0.0.1"||n==="[::1]"||n==="localhost"}catch{return!1}}function ie(e){try{const t=new URL(e);return(t.hostname==="127.0.0.1"||t.hostname==="[::1]")&&(t.hostname="localhost"),t.href}catch{return e}}const bt=zt({endpoint:Xt().max(2048).refine(e=>pt(e)&&new URL(e).pathname==="/rpc").transform(ie)});function Xo(e){const t=new URLSearchParams(e.replace(/^#/,"")),n=bt.safeParse({endpoint:t.get("endpoint")??""});return n.success?n.data:null}function wt(e){const t=bt.safeParse(e);return t.success?t.data:null}const St="studio:deco-serve-last";function Zo(e){try{localStorage.setItem(St,JSON.stringify(e))}catch{}}function qo(){try{const e=localStorage.getItem(St);return e?wt(JSON.parse(e)):null}catch{return null}}function Ko(e){try{return new URL(ie(e)).host}catch{return e}}function hn(e,t=1e4){return Math.min(1e3*2**Math.max(0,e-1),t)}const gn="http://localhost:4545/rpc",er="npx @decocms/blocks serve",tr="npx @decocms/blocks schema";class $e extends Error{constructor(t="the endpoint isn't deco serve"){super(t),this.name="NotDecoServeError"}}function vn(e){if(e instanceof $e)return{reason:"not-deco-serve"};if(!(e instanceof D))return{reason:"not-answering"};switch(e.code){case S.Unauthorized:case S.MethodNotFound:return{reason:"outdated"};case S.Unsupported:return Pe(e)?{reason:"outdated"}:{reason:"version-mismatch"};case S.Unavailable:return/^the endpoint answered HTTP/.test(e.message)?{reason:"not-deco-serve"}:{reason:"error",detail:e.message};default:return{reason:"error",detail:e.message}}}function nr(e,t){if(e)return[ie(e.endpoint)];const n=[t?.endpoint,gn].filter(o=>!!o).map(ie);return[...new Set(n)]}const yt=j.createContext(null);function mn(e){const t=P.c(27),n=j.useContext(yt),o=Re(n?null:e),{data:r}=Zt.useSession(),s=r?.user?.id??"",i=!!e&&!!s;let a;t[0]!==i||t[1]!==s||t[2]!==e?(a=i?pe.decoServeConnection(s,e):null,t[0]=i,t[1]=s,t[2]=e,t[3]=a):a=t[3];const[l,c]=Ze(a);let u;t[4]!==i||t[5]!==s||t[6]!==e?(u=i?pe.decoServeEndpoint(s,e):null,t[4]=i,t[5]=s,t[6]=e,t[7]=u):u=t[7];const[d,g]=Ze(u);if(n)return n;let f;t[8]!==l||t[9]!==i?(f=i?wt(l):null,t[8]=l,t[9]=i,t[10]=f):f=t[10];const v=f,b=!!v;let w;t[11]!==o||t[12]!==b?(w=pn(o,b),t[11]=o,t[12]=b,t[13]=w):w=t[13];const{applies:I,undecided:T}=w,x=I?v:null,_=i&&o==="v8"&&typeof d=="string"?d:null;let C;t[14]!==g||t[15]!==c||t[16]!==i?(C=N=>{i&&(c(N),g(N.endpoint))},t[14]=g,t[15]=c,t[16]=i,t[17]=C):C=t[17];let E;t[18]!==c||t[19]!==i?(E=()=>{i&&c(null)},t[18]=c,t[19]=i,t[20]=E):E=t[20];let k;return t[21]!==x||t[22]!==_||t[23]!==C||t[24]!==E||t[25]!==T?(k={connection:x,undecided:T,lastEndpoint:_,set:C,clear:E},t[21]=x,t[22]=_,t[23]=C,t[24]=E,t[25]=T,t[26]=k):k=t[26],k}function pn(e,t){return t?e==="loading"?{applies:!1,undecided:!0}:{applies:e==="v8"||e==="error",undecided:!1}:{applies:!1,undecided:!1}}function Xe(e){try{const t=localStorage.getItem(e);return t===null?null:JSON.parse(t)}catch{return null}}function Ze(e){const t=P.c(17),n=z(),o=e??"";let r;t[0]!==o?(r=["localStorage",o],t[0]=o,t[1]=r):r=t[1];const s=r;let i,a;t[2]!==e?(i=()=>e?Xe(e):null,a=()=>e?Xe(e):null,t[2]=e,t[3]=i,t[4]=a):(i=t[3],a=t[4]);const l=!!e;let c;t[5]!==s||t[6]!==i||t[7]!==a||t[8]!==l?(c={queryKey:s,queryFn:i,initialData:a,enabled:l,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[5]=s,t[6]=i,t[7]=a,t[8]=l,t[9]=c):c=t[9];const{data:u}=M(c);let d;t[10]!==e||t[11]!==n||t[12]!==s?(d=b=>{if(e){try{b===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(b))}catch{}n.setQueryData(s,b)}},t[10]=e,t[11]=n,t[12]=s,t[13]=d):d=t[13];const g=d,f=e?u??null:null;let v;return t[14]!==g||t[15]!==f?(v=[f,g],t[14]=g,t[15]=f,t[16]=v):v=t[16],v}function or(e){return e.kind==="protocol"||e.kind==="unavailable"}function rr(e){const t=e.hasOrg?e.orgFlag:!1,{backend:n}=e;return n==="protocol"||n==="unavailable"?!0:n==="pending"?t===!0?!0:void 0:t}function sr(e,t,n){return t!=="github"||n!=="v8"?!1:e.kind==="pending"?!0:e.kind==="unavailable"&&e.siteNotOwned?!1:(e.kind==="protocol"||e.kind==="unavailable")&&e.source==="github"}function ir(e){if(e.kind!=="protocol"||e.source!=="local")return null;const t=e.describe.preview?.url;return t&&pt(t)?t:null}function ar(e,t){return e.kind!=="protocol"||e.source!=="local"||!e.describe.assets||!t?null:new URL(t.endpoint).origin}function Et(e){return e.hasServeConnection?"local":e.runtime==="sandbox"?"sandbox":"github"}function bn(e){if(!e.hasProject)return"legacy";const t=Et(e);if(t==="local")return"protocol-local";if(e.serveConnectionUndecided)return"pending";if(t==="sandbox"){const o=e.sandboxSite;return o==="v8"?"protocol-sandbox":o==="v7"?"legacy":o==="error"?e.markedV8?"retrying-sandbox":"legacy":"pending"}if(e.mainSchema==="loading")return"pending";if(e.mainSchema==="error")return"retrying-github";if(e.mainSchema==="v7")return"legacy";const n=e.githubSite;return n==="v8"?"protocol-github":n==="not-owned"?"site-not-owned-github":n==="error"?"unavailable-github":n==="v7"?"legacy":"pending"}function wn(e){return{github:e.mode==="github"&&e.mainSchema==="v8",sandbox:e.mode==="sandbox"&&e.workingTreeReady}}function qe(e){return e.isError||e.errorUpdateCount>0}function Sn(e,t,n){if(!t||n.size===0)return e;const o={...e};for(const r of n)Object.hasOwn(t,r)?o[r]=t[r]:delete o[r];return o}function yn(e){if(!e||typeof e!="object")return[];const t=e,n=[];return typeof t.blockKey=="string"&&n.push(t.blockKey),t.writes&&typeof t.writes=="object"&&n.push(...Object.keys(t.writes)),Array.isArray(t.deletes)&&n.push(...t.deletes.filter(o=>typeof o=="string")),n}const kt="__noSchema";function En(){return{manifest:{blocks:{}},schema:{definitions:{},root:{}},[kt]:!0}}function cr(e){return!!e&&e[kt]===!0}function Ot(e){if(!e.ok)return e.error.code===S.NotFound;const t=e.result;return t.notModified===!1&&t.schema===null}function kn(e,t){return(typeof t.name=="string"?t.name.trim():"")||e}const On=(e,t)=>e.label.localeCompare(t.label)||e.key.localeCompare(t.key);function lr(e){const t=new Map;for(const[n,o]of Object.entries(e)){const r=o&&typeof o=="object"&&!Array.isArray(o)?o:{},s=typeof r.__resolveType=="string"?r.__resolveType:null,i=t.get(s)??[];i.push({key:n,label:kn(n,r)}),t.set(s,i)}return[...t.entries()].map(([n,o])=>({resolveType:n,blocks:o.sort(On)})).sort((n,o)=>n.resolveType===null?1:o.resolveType===null?-1:Ke(n.resolveType).localeCompare(Ke(o.resolveType))||n.resolveType.localeCompare(o.resolveType))}function Ke(e){return(e.split("/").filter(Boolean).at(-1)??e).replace(/\.(tsx?|jsx?)$/,"")||e}function et(e,t,n){if(t.length===0)return n;const[o,...r]=t;if(Array.isArray(e)&&typeof o=="number"){const s=e.slice();return s[o]=et(e[o],r,n),s}if(e&&typeof e=="object"&&typeof o=="string"){const s=e,i={};for(const a of Object.keys(s))i[a]=a===o?et(s[a],r,n):s[a];return i}return e}function ur(e){if(e.trim()==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}class tt extends Error{}class nt extends Error{}const Dt="site-not-owned";async function Dn(e){return e.status!==409?!1:(await e.clone().json().catch(()=>null))?.code==="site_not_owned"}async function Tn(e,t=r=>fetch(r),n,o){const r=xe({endpoint:e,fetch:async s=>{const i=new Request(s);for(const[l,c]of Object.entries(ue("v8")))i.headers.set(l,c);const a=await t(i);if(await Dn(a))throw new nt;if(await _e(a))throw n?.(),new Ne;return a}});try{const s=await Le(r,be(o)?{schema:o}:void 0);return s.v8Schema?s:null}catch(s){if(s instanceof nt)return Dt;throw s}}const Ae=5e3;function In(e){return new URL(`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}/rpc`,window.location.origin).href}function Cn(e){return new URL(de(e,"rpc"),window.location.origin).href}async function Le(e,t){const[n,o]=await e.batch(t?[{method:"describe"}]:[{method:"describe"},{method:"schema.get"}]);if(!n?.ok)throw n?.error??new Error("no describe");if(n.result?.protocol!==Z)throw new $e;const s=gt(n.result);if(t)return{client:e,describe:s,hasSchema:t.schema!=null,v8Schema:be(t.schema)};if(!o)throw new Error("no schema.get");if(Ot(o))return{client:e,describe:s,hasSchema:!1,v8Schema:!1};if(o.ok){const i=o.result;return{client:e,describe:s,hasSchema:!0,v8Schema:be(i?.schema)}}throw o.error}async function _n(e,t=n=>fetch(n)){const n=xe({endpoint:e,fetch:async o=>{const r=await t(o);if(r.status===404)throw new tt;return r}});try{const o=await Le(n);return o.v8Schema?o:null}catch(o){if(o instanceof tt)return null;throw o}}function Tt(e,t){const n=P.c(53),{org:o}=qt(),{connection:r,undecided:s}=mn(e),{runtime:i}=dt(e),a=j.useContext(yt),l=Re(a?null:e),c=tn(e),u=Et({hasServeConnection:!!r,runtime:i}),d=rn()?.taskId??null,g=sn(an().lifecycle.phase),f=z(),v=wn({mode:u,mainSchema:l,workingTreeReady:g}),b=v.github&&!!o.slug&&!!e&&!!t;let w;n[0]!==t||n[1]!==o.slug||n[2]!==f||n[3]!==e?(w=()=>Tn(In({orgSlug:o.slug,virtualMcpId:e,branch:t}),void 0,()=>Ce(f,o.slug,e),lt(f,o.slug,e)?.schema),n[0]=t,n[1]=o.slug,n[2]=f,n[3]=e,n[4]=w):w=n[4];const I=M({queryKey:h.contentBackend(o.slug,e??"",t??"","github"),queryFn:w,enabled:b,staleTime:Number.POSITIVE_INFINITY,...ot}),T=v.sandbox&&!!o.slug&&!!e&&!!t;let x;n[5]!==t||n[6]!==o.slug||n[7]!==d||n[8]!==e?(x=async()=>_n(Cn({orgSlug:o.slug,virtualMcpId:e,branch:t,threadId:d})),n[5]=t,n[6]=o.slug,n[7]=d,n[8]=e,n[9]=x):x=n[9];const _=M({queryKey:h.contentBackend(o.slug,e??"",t??"","sandbox",d??""),queryFn:x,enabled:T,staleTime:Number.POSITIVE_INFINITY,...ot}),C=!!r;let E;n[10]!==r?.endpoint||n[11]!==o.slug||n[12]!==e?(E=h.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[10]=r?.endpoint,n[11]=o.slug,n[12]=e,n[13]=E):E=n[13];let k;n[14]!==r?(k=()=>Le(xe({endpoint:r.endpoint})),n[14]=r,n[15]=k):k=n[15];let N;n[16]!==C||n[17]!==E||n[18]!==k?(N={queryKey:E,queryFn:k,enabled:C,staleTime:Number.POSITIVE_INFINITY,retry:xn,retryDelay:Rn,refetchInterval:Nn},n[16]=C,n[17]=E,n[18]=k,n[19]=N):N=n[19];const p=M(N);let O;n[20]!==r?.endpoint||n[21]!==o.slug||n[22]!==e?(O=h.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[20]=r?.endpoint,n[21]=o.slug,n[22]=e,n[23]=O):O=n[23];const $=O;let y;n[24]!==r?.endpoint||n[25]!==o.slug||n[26]!==e?(y=h.contentBackend(o.slug,e??"","local-describe",r?.endpoint??""),n[24]=r?.endpoint,n[25]=o.slug,n[26]=e,n[27]=y):y=n[27];let R;n[28]!==p.data||n[29]!==$||n[30]!==f?(R=async()=>{try{return await p.data.client.describe()}catch(m){const Y=m;throw f.invalidateQueries({queryKey:$,exact:!0},{cancelRefetch:!1}),Y}},n[28]=p.data,n[29]=$,n[30]=f,n[31]=R):R=n[31];const A=!!p.data&&!a;let U;n[32]!==y||n[33]!==R||n[34]!==A?(U={queryKey:y,queryFn:R,enabled:A,refetchInterval:Ae,retry:!1},n[32]=y,n[33]=R,n[34]=A,n[35]=U):U=n[35];const V=M(U).data??p.data?.describe,L=bn({hasProject:!!e,hasServeConnection:!!r,serveConnectionUndecided:s,runtime:i,mainSchema:l,githubSite:I.data===Dt?"not-owned":I.data?"v8":I.data===null?"v7":qe(I)?"error":"loading",sandboxSite:Pn({data:_.data,isError:qe(_),workingTreeReady:g}),markedV8:c});if(L==="pending"){let m;return n[36]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"pending"},n[36]=m):m=n[36],m}if(L==="retrying-github"){let m;return n[37]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"pending",retrying:"github"},n[37]=m):m=n[37],m}if(L==="retrying-sandbox"){let m;return n[38]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"pending",retrying:"sandbox"},n[38]=m):m=n[38],m}if(L==="legacy"){let m;return n[39]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"legacy"},n[39]=m):m=n[39],m}if(L==="protocol-github"){const m=I.data;let Y;return n[40]!==m?(Y=ke("github",m,""),n[40]=m,n[41]=Y):Y=n[41],Y}if(L==="site-not-owned-github"){let m;return n[42]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"unavailable",source:"github",siteNotOwned:!0},n[42]=m):m=n[42],m}if(L==="protocol-sandbox"){let m;return n[43]!==_.data?(m=ke("sandbox",_.data,":sandbox"),n[43]=_.data,n[44]=m):m=n[44],m}if(L==="unavailable-github"){let m;return n[45]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"unavailable",source:"github"},n[45]=m):m=n[45],m}const W=p.error??p.failureReason,ve=r?.endpoint??"";let te;return n[46]!==V||n[47]!==p.data||n[48]!==p.failureCount||n[49]!==p.isError||n[50]!==W||n[51]!==ve?(te=An({probed:p.data,isError:p.isError,failureCount:p.failureCount,failure:W,describe:V,endpoint:ve}),n[46]=V,n[47]=p.data,n[48]=p.failureCount,n[49]=p.isError,n[50]=W,n[51]=ve,n[52]=te):te=n[52],te}function Nn(e){return e.state.status==="error"||e.state.data?.v8Schema===!1?Ae:!1}function Rn(e){return hn(e+1)}function xn(e,t){return!(t instanceof D)&&!(t instanceof $e)}function Pn(e){return e.data!==void 0?e.data?"v8":"v7":e.workingTreeReady?e.isError?"error":"loading":"unavailable"}const $n=3;function An(e){if(e.probed?.hasSchema&&!e.probed.v8Schema)return{kind:"unavailable",source:"local",problem:{reason:"not-v8"}};const t=e.probed?ke("local",{...e.probed,describe:e.describe??e.probed.describe},`:serve:${e.endpoint}`):null;return e.isError||e.failureCount>0?t?.kind==="protocol"&&!e.isError&&e.failureCount<$n?t:{kind:"unavailable",source:"local",problem:vn(e.failure)}:t??{kind:"pending"}}const ot={retry:2,refetchInterval:e=>e.state.status==="error"?Ae:!1};function ke(e,t,n){return{kind:"protocol",source:e,client:t.client,describe:t.describe,cacheKeySuffix:n,hasSchema:t.hasSchema}}function It(e){const t=P.c(13);let n;t[0]!==e?(n=pe.localPreviewUrl(e??""),t[0]=e,t[1]=n):n=t[1];const o=n,[r,s]=Kt(o,null),i=Re(e);let a;if(t[2]!==i||t[3]!==r||t[4]!==e){const g=e?Ge(r):null;a=Ln({saved:g,main:i}),t[2]=i,t[3]=r,t[4]=e,t[5]=a}else a=t[5];const l=a;let c,u;t[6]!==s?(c=g=>s(Ge(g)),u=()=>s(null),t[6]=s,t[7]=c,t[8]=u):(c=t[7],u=t[8]);let d;return t[9]!==l||t[10]!==c||t[11]!==u?(d={...l,setUrl:c,clear:u},t[9]=l,t[10]=c,t[11]=u,t[12]=d):d=t[12],d}function Ln(e){return e.saved?e.main==="v7"?{url:e.saved,undecided:!1}:e.main==="v8"?{url:null,undecided:!1}:{url:null,undecided:!0}:{url:null,undecided:!1}}function jn(e,t){const n=(e??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${t}`:t}function rt(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!="object"||t===null||Array.isArray(t)?null:t}class je extends Error{constructor(t,n,o=[],r=!1){super(n),this.blocks=t,this.fields=o,this.carriedStored=r,this.name="BlockConflictError"}blocks;fields;carriedStored}function Ue(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function fe(e,t,n){return["decofile-write",e,t,n]}function Un(e,t,n){return{id:fe(e,t,n).join(":")}}function Me(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function Mn(e,t){const n=await e.json().catch(()=>({}));throw new Error(n.error??`${t} failed (${e.status})`)}function Fn(e,t,n){e.setQueryData(h.decofileDraft(Ue(t)),n)}function Qn(e,t){return e.getQueryData(h.decofileDraft(Ue(t)))??null}async function Bn(e,t){const n=await fetch(Me(e),{cache:"no-store",headers:{...ue("v7"),"if-none-match":`"${t}"`}}).catch(()=>null);return n?.status===200||n?.status===409}function dr(e){const t=P.c(4);let n;t[0]!==e?(n=h.decofileDraft(e?Ue(e):""),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:Vn,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=M(o);return r??null}async function Vn(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function Hn(e,t){const n=await fetch(Me(t),{cache:"no-store",headers:ue("v7")});if(await _e(n))throw Ce(e,t.orgSlug,t.virtualMcpId),new Ne;if(!n.ok){const r=new Error(`Failed to fetch decofile: ${n.status}`);throw r.status=n.status,r}const o=await n.json();return o.token&&Fn(e,t,{version:o.version,token:o.token,apiHost:o.apiHost??window.location.host}),o.decofile}async function fr(e,t){const n=await fetch(Me(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(n.status===409){const r=await n.json().catch(()=>({}));throw r.code==="block-conflict"?new je(r.blocks??[],r.error??"Block changed"):new Error(r.error??`Save failed (${n.status})`)}if(!n.ok)return Mn(n,"Save");const o=await n.json();return{...o,apiHost:o.apiHost??window.location.host}}const Ct=3e3,Gn=15e3,Jn=2*6e4,_t={now:()=>Date.now(),setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),hidden:()=>typeof document<"u"&&document.visibilityState==="hidden"};function Wn(e){return e<Jn?Ct:Gn}function Yn(e,t=_t){const n=t.now();let o=!1,r=!1,s=null;const i=()=>{o||(s=t.setTimeout(a,Wn(t.now()-n)))},a=()=>{if(s=null,o)return;const{read:l,skip:c}=e();if(r||t.hidden()||c?.()){i();return}r=!0;let u;try{u=l()}catch{u=void 0}Promise.resolve(u).catch(()=>{}).finally(()=>{r=!1}),i()};return i(),()=>{o=!0,s!==null&&t.clearTimeout(s)}}const st=()=>0;function zn(e,t,n=_t){const o=j.useRef(t);o.current=t;const[r]=j.useState(()=>({polling:()=>Yn(()=>o.current,n),idle:()=>()=>{}}));j.useSyncExternalStore(e?r.polling:r.idle,st,st)}function Nt(e,t){return de(e,t)}function Xn(e,t){return de(e,"preview-fetch",{path:t})}function hr(e){return Nt(e,"preview-invoke")}function gr(e){return Nt(e,"catalog-invoke")}function Rt(e){try{const{hostname:t}=new URL(e);return t==="localhost"||t.endsWith(".localhost")||t==="127.0.0.1"||t==="::1"}catch{return!1}}function Zn(){if(typeof document>"u")return null;const e=Array.from(document.querySelectorAll("iframe"));for(const t of e){const n=t.getAttribute("src");if(n&&Rt(n))return n}return null}function qn(e,t){const n=e.previewUrl??e.getFallbackPreviewUrl?.()??Zn();return n&&Rt(n)?new URL(t,n).toString():Xn(e,t)}function Kn(e){return qn(e,"/.decofile")}function eo(e){return e===400?"absent":e===404?"unavailable":e>=200&&e<300?"ok":"error"}function it(e){return e.liveOk||e.committedAbsent?404:e.liveStatus??502}async function to(e,t){const n=de(e,"read"),o=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:t,full:!0})}),r=eo(o.status);if(r==="absent")return{kind:"absent"};if(r==="unavailable")return{kind:"unavailable"};if(r==="error"){const i=new Error(`Failed to read ${t}: ${o.status}`);throw i.status=o.status,i}const s=await o.json();return typeof s.content!="string"?{kind:"unavailable"}:{kind:"data",data:nn(s.content)}}async function no(e,t){const n=await to(e,t);if(n.kind!=="data")return n;try{return{kind:"data",data:JSON.parse(n.data)}}catch{return{kind:"unavailable"}}}async function vr(e){const t=`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}/meta`,n=await fetch(t,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const o=new Error(`Failed to read committed meta: ${n.status}`);throw o.status=n.status,o}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function oo(e){return on(e)?.metadata?.runtime?.path??null}class xt extends Error{constructor(t){super(t instanceof Error?t.message:String(t),{cause:t}),this.name="ServeLostError"}}function mr(e){return e instanceof D&&e.code===S.Conflict}function Pt(e){const t=e.data?.violations;return!Array.isArray(t)||t.length===0?e.message:t.slice(0,3).map(n=>n.message).join("; ")}class Fe extends Error{constructor(){super("The draft's changes couldn't be read"),this.name="HostedDraftUnreadError"}}class Qe extends Error{constructor(){super("The blocks kept changing while the change was saved"),this.name="HostedKeptChangingError"}}function pr(e,t){return(t instanceof Fe||t instanceof Qe)&&(t.message=$t(e,t,"github")),t}function $t(e,t,n){if(t instanceof Fe)return e("siteEditor.save.draftUnread");if(t instanceof Qe)return e("siteEditor.save.keptChanging");if(t instanceof je)return t.message;if(n==="local")return so(e,t);if(t instanceof D)switch(t.code){case S.Conflict:return e("siteEditor.save.conflict");case S.ReadOnly:return e("siteEditor.save.readOnly");case S.InvalidBlock:case S.InvalidParams:return e("siteEditor.save.invalid");case S.LimitExceeded:return e("siteEditor.save.tooLarge")}return e("siteEditor.save.failed")}function ro(e,t){if(t==="local"||e instanceof je||e instanceof Fe||e instanceof Qe)return null;if(e instanceof D){const n=e.code===S.InvalidBlock||e.code===S.InvalidParams?Pt(e):e.message;return n?`${e.code}: ${n}`:null}return e.message||null}function so(e,t){if(t instanceof xt)return e("decoServe.save.serverGone");if(t instanceof D)switch(t.code){case S.Conflict:return e("decoServe.save.conflict");case S.ReadOnly:return e("decoServe.save.readOnly");case S.InvalidBlock:case S.InvalidParams:return e("decoServe.save.invalid",{detail:Pt(t)});case S.LimitExceeded:return e("decoServe.save.tooLarge")}return e("sectionsEditor.sectionsEditor.saveFailed",{error:t.message})}function io(e,t,n){return e===null?0:Math.max(0,n-Math.max(0,t-e))}function ao(e,t){const[n,o]=j.useState(e),r=j.useRef(null);return e&&!n&&o(!0),j.useEffect(()=>{if(e){r.current??=Date.now();return}if(!n)return;const s=()=>{r.current=null,o(!1)},i=io(r.current,Date.now(),t);if(i===0){s();return}const a=setTimeout(s,i);return()=>clearTimeout(a)},[e,n,t]),n}const co="decocms:content-writes",Oe=new Set;let H;function At(){if(H!==void 0)return H;H=null;try{typeof BroadcastChannel=="function"&&(H=new BroadcastChannel(co),H.addEventListener("message",e=>{const t=e.data?.cacheKey;if(typeof t=="string")for(const n of[...Oe])n(t)}))}catch{H=null}return H}function lo(e){try{At()?.postMessage({cacheKey:e})}catch{}}function uo(e){return At(),Oe.add(e),()=>{Oe.delete(e)}}const Lt={phase:"idle",inFlight:0,reload:{seq:0,navigates:!1},epoch:0},fo=15e3,ae=new Map;function J(e,t){return`${e}/${t}`}function Q(e){let t=ae.get(e);return t||(t={state:Lt,listeners:new Set,previews:0,timer:null,discardListeners:new Set},ae.set(e,t)),t}function B(e,t){const n=Q(e);n.state={...n.state,...t};for(const o of n.listeners)o()}function he(e){e.timer&&clearTimeout(e.timer),e.timer=null}function Be(e){return ae.get(e)?.state??Lt}function ho(e,t){const n=Q(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}function br(e){const t=Q(e);return t.previews++,()=>{t.previews--,t.previews===0&&t.state.phase==="reloading"&&(he(t),B(e,{phase:"idle"}))}}function wr(e){const t=ae.get(e);!t||t.state.phase!=="reloading"||(he(t),B(e,{phase:"idle"}))}function jt(e){const t=Q(e);he(t),B(e,{phase:"saving",inFlight:t.state.inFlight+1})}function oe(e,t){const n=Q(e),o=Math.max(0,n.state.inFlight-1);if(o>0){B(e,{inFlight:o});return}if(!t.ok||n.previews===0){B(e,{phase:"idle",inFlight:o});return}Ut(e,t.navigates,o)}function Ut(e,t,n=0){const o=Q(e);he(o),o.timer=setTimeout(()=>{o.timer=null,o.state.phase==="reloading"&&B(e,{phase:"idle"})},fo),B(e,{phase:"reloading",inFlight:n,reload:{seq:o.state.reload.seq+1,navigates:t}})}function go(e){return e?.kind==="protocol"&&e.source==="github"}async function re(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s,backend:i,cacheKey:a}=e,l=t.kind==="publish"||t.kind==="reapply"?n.invalidateQueries({queryKey:h.hostedReleases(o,r)}):null;if(i?.kind!=="protocol")return await l,{navigates:!1};const c=s?h.protocolDraftRead(o,r,s):null,u=c?JSON.stringify(n.getQueryData(c)??null):null,d=l?[l]:[];if(a&&t.reread&&d.push(n.invalidateQueries({queryKey:h.decofile(a)})),a&&!t.adopted&&d.push(n.invalidateQueries({queryKey:h.contentChanges(a)})),s&&i.source==="sandbox"&&d.push(n.invalidateQueries({queryKey:cn(o,r,s)})),go(i)&&c&&!t.adopted&&d.push(n.invalidateQueries({queryKey:c})),await Promise.all(d),t.kind!=="edit"){const v=J(o,r);B(v,{epoch:Be(v).epoch+1})}const g=c?JSON.stringify(n.getQueryData(c)??null):null,f=u!==g;return f&&await new Promise(v=>ut.schedule(v)),{navigates:f}}async function vo(e,t){return jt(J(e.orgSlug,e.virtualMcpId)),Mt(e,t)}function at(e){return e.branch?JSON.stringify(e.queryClient.getQueryData(h.protocolDraftRead(e.orgSlug,e.virtualMcpId,e.branch))??null):null}async function Mt(e,t){const n=J(e.orgSlug,e.virtualMcpId),o=t.adopted?at(e):null;let r;try{r=await t.write()}catch(i){throw oe(n,{ok:!1,navigates:!1}),t.refreshOnError&&re(e,{kind:t.kind,reread:!0}).catch(()=>{}),i}if(e.backend?.kind==="protocol"&&e.cacheKey&&lo(e.cacheKey),t.adopted){const i=at(e)!==o;return i&&await new Promise(a=>ut.schedule(a)),oe(n,{ok:!0,navigates:i}),t.reread&&re(e,t).catch(()=>{}),r}let s=!1;try{({navigates:s}=await re(e,t))}catch{}finally{oe(n,{ok:!0,navigates:s})}return r}function Sr(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s}=e,i=J(o,r),a=new Set(t.blockKeys);for(const u of[...Q(i).discardListeners])u(a);jt(i);let l=!1;const c=()=>(l=!0,Mt(e,{kind:"discard",reread:!0,write:t.write}));return s?n.getMutationCache().build(n,{mutationKey:fe(o,r,s),scope:Un(o,r,s),mutationFn:c}).execute(void 0).catch(u=>{throw l||oe(i,{ok:!1,navigates:!1}),u}):c()}function yr(e,t,n){const o=P.c(8);let r;o[0]!==e||o[1]!==t?(r=J(e,t),o[0]=e,o[1]=t,o[2]=r):r=o[2];const s=r;let i;o[3]!==n||o[4]!==s?(i=()=>{const l=Q(s).discardListeners;return l.add(n),()=>{l.delete(n)}},o[3]=n,o[4]=s,o[5]=i):i=o[5];let a;o[6]!==s?(a=[s],o[6]=s,o[7]=a):a=o[7],j.useEffect(i,a)}function mo(e){const t=J(e.orgSlug,e.virtualMcpId);Be(t).inFlight>0||re(e,{kind:"external"}).then(({navigates:n})=>{const o=Q(t);o.previews>0&&o.state.inFlight===0&&Ut(t,n)}).catch(()=>{})}function po(e,t){const n=P.c(7);let o;n[0]!==e||n[1]!==t?(o=J(e,t),n[0]=e,n[1]=t,n[2]=o):o=n[2];const r=o;let s;n[3]!==r?(s=c=>ho(r,c),n[3]=r,n[4]=s):s=n[4];const i=s;let a;n[5]!==r?(a=()=>Be(r),n[5]=r,n[6]=a):a=n[6];const l=a;return j.useSyncExternalStore(i,l,l)}const bo=500;function Er(e,t){const{phase:n}=po(e,t);return ao(n!=="idle",bo)}function wo(e){const t=new Error(`${e} unavailable (content server unreachable)`);return t.status=502,t}function So(e,t){return h.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,`protocol${t.cacheKeySuffix}`,"")}function kr(e,t,n,o){if(o?.source==="github")return yo(e,t,n);const r=e.getQueryData(h.contentVersions(t));if(!r)return;if(Object.hasOwn(r,n))return r[n];const s=e.getQueryData(h.decofile(t));return s&&Object.hasOwn(s,n)?void 0:null}function K(e,t){if(Object.hasOwn(e.changes,t))return e.changes[t];const n=F(t),o=Object.keys(e.changes).find(r=>F(r)===n);return o===void 0?void 0:e.changes[o]}function yo(e,t,n){const o=e.getQueryData(h.contentChanges(t));if(o)return Ft(o,ge(e,t),n)}function Ft(e,t,n){const o=K(e,n);return o?.kind==="delete"?o.version??we:o?o.version:t.has(F(n))?we:null}function Or(e,t,n){const o=e.getQueryData(h.contentChanges(t));if(!o)return!1;const r=K(o,n);return r?r.kind==="set"&&r.baseVersion===null:ge(e,t).has(F(n))}function Dr(e,t){const n=e.getQueryData(h.decofile(t)),o=e.getQueryData(h.contentChanges(t));if(!n||!o)return null;const r=ge(e,t);return{blocks:n,versionOf:s=>Ft(o,r,s)}}function ge(e,t){return new Set(e.getQueryData(h.contentDraftTombstones(t)))}function ce(e,t,n,o){const r=F(n),s=ge(e,t);s.has(r)!==o&&(o?s.add(r):s.delete(r),ee(e),e.setQueryData(h.contentDraftTombstones(t),[...s]))}function Eo(e,t,n,o){const r=He(o.revision),s=e.getQueryData(h.contentRevision(n))?.revision,i=s?He(s):null,a=r&&!r.main&&i?en(i.main,r.draft):o.revision,l=e.getQueryData(h.contentVersions(n)),c=Object.entries(o.versions??{}).map(([f,v])=>[f,v===we?null:v]),u=e.getQueryData(h.contentChanges(n)),d=new Set(c.flatMap(([f])=>{const v=u?K(u,f):void 0;return(v?v.baseVersion:l?.[f]??null)===null?[f]:[]})),g=new Set(c.flatMap(([f,v])=>v===null?[]:[F(f)]));e.setQueryData(h.contentChanges(n),f=>{if(!f)return f;const v={...f.changes};for(const[b,w]of c){const I=K(f,b),T=I?I.baseVersion:l?.[b]??null;w!==null?v[b]={kind:"set",version:w,baseVersion:T}:T!==null?v[b]={kind:"delete",version:null,baseVersion:T}:delete v[b]}return{...f,changes:v,edited:!0}});for(const[f,v]of c)v!==null?ce(e,n,f,!1):!g.has(F(f))&&d.has(f)&&ce(e,n,f,!0);return r&&r.draft!=="none"&&e.setQueryData(h.protocolDraftRead(t.orgSlug,t.virtualMcpId,t.branch),f=>f&&{...f,version:r.draft}),a}function Ve(e,t,n){ee(e),e.setQueryData(h.contentVersions(t),o=>{const r={...o};for(const[s,i]of Object.entries(n))i===null?delete r[s]:r[s]=i;return r})}function ko(e,t){const n=e.getMutationCache().findAll({mutationKey:fe(t.orgSlug,t.virtualMcpId,t.branch),status:"pending"});return new Set(n.flatMap(o=>yn(o.state.variables)))}function De(e,t){e.resetQueries({queryKey:h.contentBackend(t.orgSlug,t.virtualMcpId,"local")})}async function le(e,t,n,o){try{return await o()}catch(r){const s=!(r instanceof D);throw t.source==="local"&&s?(De(e,n),new xt(r)):(t.source==="local"&&Pe(r)&&De(e,n),r)}}const se=new Map;function Qt(e,t,n,o){const r=se.get(o);if(r)return r;const s=Bt(e,t,n,o,!0);return se.set(o,s),s.finally(()=>se.delete(o))}const me=new Set;function Oo(e,t,n){const o=P.c(8),r=z(),s=t?.orgSlug,i=t?.virtualMcpId,a=t?.branch;let l,c;o[0]!==e||o[1]!==a||o[2]!==n||o[3]!==s||o[4]!==r||o[5]!==i?(l=()=>{if(!e||!s||!i||!a)return;const u={orgSlug:s,virtualMcpId:i,branch:a};return uo(d=>{d===n&&(me.has(n)||(me.add(n),To(r,e,u,n).catch(Do).finally(()=>me.delete(n))))})},c=[r,e,s,i,a,n],o[0]=e,o[1]=a,o[2]=n,o[3]=s,o[4]=r,o[5]=i,o[6]=l,o[7]=c):(l=o[6],c=o[7]),j.useEffect(l,c)}function Do(){}async function To(e,t,n,o){const r=se.get(o);return r&&await r.catch(()=>{}),Qt(e,t,n,o)}async function Bt(e,t,n,o,r){ee(e);const s=h.decofile(o),i=So(n,t),a=h.contentRevision(o),l=h.contentVersions(o),c=e.getQueryData(s),u=e.getQueryData(l),d=e.getQueryData(i),g=e.getQueryData(a)??void 0,f=t.source==="github"&&!d?lt(e,n.orgSlug,n.virtualMcpId):void 0,v=f?.isV8&&f.schema&&f.version?f:void 0,b=d??v?.schema,w=v?{...g,schemaVersion:v.version}:g,I=r&&c&&u?w?.revision:void 0,T=r&&b?w?.schemaVersion:void 0,x=h.contentChanges(o),_=e.getQueryData(x),[C,E,k]=await le(e,t,n,()=>t.client.batch([{method:"blocks.list",params:I?{ifNoneMatch:I}:{}},{method:"schema.get",params:T?{ifNoneMatch:T}:{}},{method:"changes.list",params:vt(_)}])),N=e.getQueryData(a)?.revision,p=N!==void 0&&N!==w?.revision;if(k?.ok){const X=p?null:Ee(_,k.result);X&&e.setQueryData(x,X)}else k&&t.source==="local"&&Pe(k.error)&&De(e,n);if(!C?.ok)throw C?.error??new Error("no blocks.list");if(!E)throw new Error("no schema.get");const O=C.result,$=Ot(E),y=E.ok&&!$?E.result:null;if(O.notModified&&(!c||!u)||y?.notModified&&!b)return Bt(e,t,n,o,!1);const R=O.notModified?new Set:ko(e,n),A=O.notModified?c:Sn(O.blocks,c,R),U=$?En():y?y.notModified?b:y.schema:E.error;if(e.setQueryData(a,{revision:p?N:O.notModified?w?.revision:O.revision,schemaVersion:y?y.notModified?w?.schemaVersion:y.version??void 0:void 0}),e.setQueryData(s,A),!O.notModified){const X=e.getQueryData(l),V={...O.versions};for(const L of R){const W=X?.[L];W!==void 0?V[L]=W:delete V[L]}e.setQueryData(l,V)}return U instanceof D||e.setQueryData(i,U),!p&&!O.notModified&&c&&w?.revision&&O.revision!==w.revision&&mo({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o}),{blocks:A,meta:U}}async function Tr(e,t,n,o,r,s){if(t.source==="github"){const a=[...Object.keys(r.set??{}),...r.delete??[]].filter(l=>!s||!Object.hasOwn(s,l));if(a.length>0)throw new Error(`A hosted save needs a precondition for every block it touches (missing: ${a.join(", ")})`)}return vo({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o},{kind:"edit",adopted:t.source==="github",write:async()=>{const i=await le(e,t,n,()=>t.client.blocksApply({set:r.set,delete:r.delete,...s?{ifMatch:s}:{}}));ee(e);const a=t.source==="github"?Eo(e,n,o,i):i.revision;e.setQueryData(h.contentRevision(o),c=>({...c,revision:a}));const l=i.versions??{};return Ve(e,o,l),{revision:a,versions:l}}})}function Vt(e,t){if(!(e instanceof D))return;const n=e.data?.draft;if(!n||typeof n!="object"||!Object.hasOwn(n,t))return;const o=n[t];return o&&typeof o.version=="string"?o:void 0}function Ht(e,t,n){if(!(n instanceof D))return;const o=n.data?.draft;if(!(!o||typeof o!="object"))for(const[r,s]of Object.entries(o))s===null&&ce(e,t,r,!1)}function Gt(e,t,n,o){ee(e);const r=o.block===null,s=e.getQueryData(h.contentVersions(t)),i=e.getQueryData(h.contentChanges(t)),a=i?K(i,n):void 0,l=a?a.baseVersion:s?.[n]??null;if(i){const c=F(n),u=Object.fromEntries(Object.entries(i.changes).filter(([d])=>F(d)!==c));r?l!==null&&(u[n]={kind:"delete",version:null,baseVersion:l}):u[n]={kind:"set",version:o.version,baseVersion:l},e.setQueryData(h.contentChanges(t),{...i,changes:u,edited:!0})}ce(e,t,n,r&&l===null),e.setQueryData(h.decofile(t),c=>{const u={...c};return r?delete u[n]:u[n]=o.block,u}),Ve(e,t,{[n]:r?null:o.version})}function Ir(e,t,n,o){if(t.source!=="github"||!(o instanceof D))return!1;Ht(e,n,o);const r=o.data?.draft;if(!r||typeof r!="object")return!1;const s=Object.keys(r),i=s.map(a=>Vt(o,a));return s.length===0||i.some(a=>a===void 0)?!1:(e.cancelQueries({queryKey:h.decofile(n)}),s.forEach((a,l)=>{Gt(e,n,a,i[l])}),!0)}async function Cr(e,t,n,o,r,s){t.source==="github"&&Ht(e,o,s);const i=t.source==="github"?Vt(s,r):void 0;if(i)return e.cancelQueries({queryKey:h.decofile(o)}),Gt(e,o,r,i),!0;await e.invalidateQueries({queryKey:h.decofile(o)});let a;try{const c=(await le(e,t,n,()=>t.client.changesGet({names:[r]}))).entries[r];if(c&&c.after===null&&c.version!==null)return!1;a={value:c?.after??null,version:c?.version??null},t.source==="github"&&e.setQueryData(h.contentChanges(o),u=>{if(!u)return u;const d={...u.changes};return c?.kind?d[r]={kind:c.kind,version:c.version,baseVersion:c.baseVersion}:delete d[r],{...u,changes:d,edited:!0}})}catch{const l=await le(e,t,n,()=>t.client.blocksList({}));if(l.notModified)return!1;a={value:l.blocks[r]??null,version:l.versions[r]??null}}return e.setQueryData(h.decofile(o),l=>{const c={...l};return a.value===null?delete c[r]:c[r]=a.value,c}),Ve(e,o,{[r]:a.version}),!1}function Io(e){const t=P.c(15),n=z();let o;t[0]!==e?.branch||t[1]!==e?.orgSlug||t[2]!==e?.virtualMcpId?(o=h.protocolDraftRead(e?.orgSlug??"",e?.virtualMcpId??"",e?.branch??""),t[0]=e?.branch,t[1]=e?.orgSlug,t[2]=e?.virtualMcpId,t[3]=o):o=t[3];let r;t[4]!==e||t[5]!==n?(r=async()=>{const f=await fetch(`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`,{cache:"no-store",headers:ue("v8")});if(await _e(f))throw Ce(n,e.orgSlug,e.virtualMcpId),new Ne;if(!f.ok)throw new Error(`draft pointer read failed: ${f.status}`);return await f.json()},t[4]=e,t[5]=n,t[6]=r):r=t[6];const s=!!e;let i;t[7]!==o||t[8]!==r||t[9]!==s?(i={queryKey:o,queryFn:r,enabled:s,staleTime:Number.POSITIVE_INFINITY},t[7]=o,t[8]=r,t[9]=s,t[10]=i):i=t[10];const{data:a,isPending:l,isError:c}=M(i),u=!!e&&l&&!c;if(!e||!a?.draft||!a.version){let f;return t[11]!==u?(f={pointer:null,pending:u},t[11]=u,t[12]=f):f=t[12],f}const d=`${a.draft}@${a.version}`;let g;return t[13]!==d?(g={pointer:d,pending:!1},t[13]=d,t[14]=g):g=t[14],g}function _r(e){return Io(e).pointer}function Nr(e){const t=P.c(4);let n;t[0]!==e?(n=h.contentRevision(e),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:Co,staleTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=M(o);return r?.revision}async function Co(){throw new Error("content revisions are set by reads and writes")}function Te(e){const t=`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`;return e.protocolSuffix?`${t}${e.protocolSuffix}`:e.localPreviewUrl?`${t}:local:${e.localPreviewUrl}`:t}function Rr(e,t){return Te({...e,protocolSuffix:t.cacheKeySuffix})}function _o(e,t){const n=P.c(6),{url:o}=It(e?.virtualMcpId),r=Tt(e?.virtualMcpId,e?.branch);if(!e)return"";let s;return n[0]!==r.cacheKeySuffix||n[1]!==r.kind||n[2]!==o||n[3]!==t?.tunnel||n[4]!==e?(s=r.kind==="protocol"?Te({...e,protocolSuffix:r.cacheKeySuffix}):Te({...e,localPreviewUrl:t?.tunnel===!1?null:o}),n[0]=r.cacheKeySuffix,n[1]=r.kind,n[2]=o,n[3]=t?.tunnel,n[4]=e,n[5]=s):s=n[5],s}function xr(e,t){const n=P.c(39),{url:o,undecided:r}=It(e?.virtualMcpId),s=!!o,i=Tt(e?.virtualMcpId,e?.branch),a=i.kind==="protocol"?i:null,l=_o(e),c=t?.fetchEnabled??!0,u=oo(e?.virtualMcpId),d=dt(e?.virtualMcpId).runtime==="cms",g=z();let f;n[0]!==l?(f=h.decofile(l),n[0]=l,n[1]=f):f=n[1];const v=f;Oo(a,a&&e?e:null,l);let b;n[2]!==e||n[3]!==g||n[4]!==v?(b=()=>{if(!e||g.isMutating({mutationKey:fe(e.orgSlug,e.virtualMcpId,e.branch)})>0)return!0;const p=g.getQueryState(v);return p?.fetchStatus==="fetching"||Date.now()-(p?.dataUpdatedAt??0)<Ct/2},n[2]=e,n[3]=g,n[4]=v,n[5]=b):b=n[5];let w;n[6]!==d||n[7]!==s||n[8]!==e||n[9]!==a||n[10]!==g||n[11]!==v?(w=async()=>{if(e){if(!a&&d&&!s){const p=Qn(g,e)?.version;if(p&&!await Bn(e,p))return}await g.refetchQueries({queryKey:v,exact:!0},{cancelRefetch:!1})}},n[6]=d,n[7]=s,n[8]=e,n[9]=a,n[10]=g,n[11]=v,n[12]=w):w=n[12];let I;n[13]!==b||n[14]!==w?(I={skip:b,read:w},n[13]=b,n[14]=w,n[15]=I):I=n[15],zn(!!t?.pollWhile&&!!e,I);let T;n[16]!==i.kind||n[17]!==d||n[18]!==c||n[19]!==l||n[20]!==s||n[21]!==o||n[22]!==u||n[23]!==e||n[24]!==a||n[25]!==g?(T=async()=>{if(a)return(await Qt(g,a,e,l)).blocks;if(i.kind==="unavailable")throw wo("decofile");if(s){const y=await fetch(new URL("/.decofile",o).toString(),{cache:"no-store"}).catch(xo),R=y?.ok?rt(await y.text()):null;if(R)return R;const A=new Error("decofile unavailable (local tunnel unreachable)");throw A.status=502,A}if(d)return Hn(g,e);const p=()=>no(e,jn(u,".deco/blocks.gen.json"));if(c){const y=await fetch(Kn(e),{cache:"no-store"}).catch(Ro);if(y?.ok){const U=rt(await y.text());if(U)return U}const R=await p();if(R.kind==="data")return R.data;const A=new Error(`Failed to fetch decofile: ${y?.status??"network error"}`);throw A.status=it({liveOk:!!y?.ok,liveStatus:y?.status,committedAbsent:R.kind==="absent"}),A}const O=await p();if(O.kind==="data")return O.data;const $=new Error("decofile unavailable (preview down, no committed snapshot)");throw $.status=it({liveOk:!1,committedAbsent:O.kind==="absent"}),$},n[16]=i.kind,n[17]=d,n[18]=c,n[19]=l,n[20]=s,n[21]=o,n[22]=u,n[23]=e,n[24]=a,n[25]=g,n[26]=T):T=n[26];const x=!!e&&i.kind!=="pending"&&!r,_=a?0:3e4,C=a?.describe.pollIntervalMs,E=a?"always":void 0;let k;n[27]!==d||n[28]!==s||n[29]!==a?(k=(p,O)=>{if(a||d||s)return p<3;const $=O.status;return $!==502&&$!==404&&p<2},n[27]=d,n[28]=s,n[29]=a,n[30]=k):k=n[30];let N;return n[31]!==v||n[32]!==T||n[33]!==x||n[34]!==_||n[35]!==C||n[36]!==E||n[37]!==k?(N={queryKey:v,queryFn:T,enabled:x,staleTime:_,refetchInterval:C,refetchIntervalInBackground:!1,refetchOnWindowFocus:E,retry:k,retryDelay:No},n[31]=v,n[32]=T,n[33]=x,n[34]=_,n[35]=C,n[36]=E,n[37]=k,n[38]=N):N=n[38],M(N)}function No(e){return ln(5e3,1e3,e,2,0)}function Ro(){return null}function xo(){return null}const Po="site-editor-save",Jt={id:Po,description:void 0,action:void 0,cancel:void 0},Pr="site-editor-undo",Ie="site-editor-publish";function $o(e){const t=P.c(7),{label:n,detail:o}=e;let r;t[0]!==n?(r=G.jsx("summary",{className:"cursor-pointer select-none text-muted-foreground",children:n}),t[0]=n,t[1]=r):r=t[1];let s;t[2]!==o?(s=G.jsx("p",{className:"mt-1 whitespace-pre-wrap break-words font-mono text-muted-foreground",children:o}),t[2]=o,t[3]=s):s=t[3];let i;return t[4]!==r||t[5]!==s?(i=G.jsxs("details",{className:"mt-1 text-xs",children:[r,s]}),t[4]=r,t[5]=s,t[6]=i):i=t[6],i}function Wt(e,t){return t?G.jsx($o,{label:e("siteEditor.details"),detail:t}):void 0}function $r(e,t,n){q.error($t(e,t,n),{...Jt,description:Wt(e,ro(t,n))})}function Ar(e,t,n=!1){q.info(e(t?"sectionsEditor.reconcile.leftDeleted":"sectionsEditor.reconcile.keptTheirs"),{...Jt,description:e(t?n?"sectionsEditor.reconcile.leftDeletedNeverPublishedHint":"sectionsEditor.reconcile.leftDeletedHint":"sectionsEditor.reconcile.keptTheirsHint")})}const Yt={action:void 0,duration:void 0};function Lr(e,t){q.success(t?e("siteEditor.publish.publishedOn",{host:t}):e("siteEditor.publish.published"),{...Yt,id:Ie,description:void 0})}function jr(e,{headline:t,body:n,detail:o,retry:r,pending:s,tone:i="error"}){const a=Wt(e,o??null);q[i](t,{id:Ie,description:n&&a?G.jsxs(G.Fragment,{children:[G.jsx("p",{children:n}),a]}):n??a,action:r?{label:e("siteEditor.tryAgain"),onClick:l=>{l.preventDefault(),q.loading(s??e("thread.publishPopover.publishing"),{...Yt,id:Ie,description:void 0}),r()}}:void 0,duration:r?Number.POSITIVE_INFINITY:void 0})}function Ur(e){return e instanceof Error?e.message||null:e==null?null:String(e)}export{Dr as $,br as A,po as B,wr as C,_o as D,Nr as E,Un as F,fe as G,vo as H,to as I,Mn as J,Ar as K,Or as L,pr as M,je as N,mr as O,To as P,Fe as Q,Tr as R,er as S,yt as T,Cr as U,$r as V,kr as W,So as X,Fn as Y,fr as Z,yr as _,nr as a,rr as a0,lr as a1,Ke as a2,et as a3,ur as a4,tr as a5,qn as a6,ar as a7,Rr as a8,gn as a9,S as aA,gr as aB,Wt as aa,Ur as ab,Lr as ac,Sr as ad,Jo as ae,Wo as af,Pe as ag,zo as ah,dn as ai,$o as aj,Yo as ak,Qt as al,wo as am,vr as an,no as ao,Qe as ap,Ir as aq,dr as ar,_r as as,jr as at,Ie as au,Yt as av,Pr as aw,Jt as ax,ko as ay,D as az,mn as b,It as c,hn as d,Ko as e,vn as f,Le as g,xe as h,pt as i,hr as j,Xn as k,xr as l,or as m,cr as n,oo as o,Xo as p,jn as q,qo as r,Zo as s,Et as t,Tt as u,ir as v,Er as w,sr as x,Io as y,J as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,r as g,j as n,H as F,$ as G,a0 as H,a as E,k as P,b as O,n as y,L as M}from"./index-DampV2dK.js";import{C as V}from"./chat-context-BfN3Aasc.js";import{C as x}from"./index-CUZ1Ro0y.js";import{L}from"./index-CTcO2Era.js";import{B as K}from"./blocks-preview-workspace-context-CQlVHIqR.js";import{e as T,p as W,s as J,a as U,r as z,T as $,u as R,b as q}from"./site-editor-toast-SKvfrYhz.js";import{u as Q,L as B,P as X,S as Y}from"./preview-tab-CZ3Cot3B.js";import{C as Z}from"./content-tab-gYwhAZMG.js";import{T as tt}from"./tab-icon-glyph-Dka1P8cQ.js";import{r as et}from"./resolve-tab-icon-l6kvyo7T.js";import ot from"./agent-site-editor-BSG_1jHk.js";import"./use-panel-navigate-BYbZXvp4.js";import"./thread-route-DCxAnsEA.js";import"./use-project-scope-JP7EfYKk.js";import"./repository-binding-DSYWyWQk.js";import"./use-mcp-client-Db3WwHkW.js";import"./auth-BRizJz1-.js";import"./autosend-DweeW6OU.js";import"./thread-intent-BAI3Rlfu.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Cue4trO6.js";import"./task-board-CFm7hWmU.js";import"./schema-C1grSGu6.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-aPDwNsv_.js";import"./use-ai-providers-t0yXUakZ.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-DOUb81j1.js";import"./use-mobile-BihCEjWm.js";import"./use-sidebar-collapsed-B3wyR6wL.js";import"./use-chat-layout-state-Be7PCK7m.js";import"./agent-icon-Bo37g0fF.js";import"./AlertCircle-BQ7gdGwO.js";import"./Tool01-C4vr_Fbq.js";import"./ArrowUp-hmPXempM.js";import"./ArrowLeft-CzKuuRT3.js";import"./LinkBroken01-Ps7Q2TgQ.js";import"./ShoppingBag01-2qRSy_0A.js";import"./ZoomOut-CeC9MLz9.js";import"./Building02-BP04ade-.js";import"./CheckCircle-BVnx66vP.js";import"./ChevronUp-B84nbyaB.js";import"./ChevronSelectorVertical-D6sC3Vmb.js";import"./UserSquare-CBDcV-Sr.js";import"./Copy01-Bac6SVw1.js";import"./CreditCard01-t317btce.js";import"./DotsVertical-DjAfwlFJ.js";import"./Image01-CNDErtLw.js";import"./Globe04-DSBhW1To.js";import"./SwitchHorizontal01-DM99h8Bb.js";import"./Key01-C_7n0i1h.js";import"./Link01-kTPC8Qx-.js";import"./Minus-DwgwDeRT.js";import"./Monitor01-DLFV9f_c.js";import"./Sun-Cdvulc3r.js";import"./Play-CQGngRNi.js";import"./Plus-DOCl9FQV.js";import"./SearchMd-BbTaBsWc.js";import"./Trash01-7cnh0-6j.js";import"./Upload01-DJferCdW.js";import"./Users01-hfFVY4Rg.js";import"./XClose-B2l9VhGF.js";import"./tooltip-DZKcSDR4.js";import"./index-DgIUPTVB.js";import"./toolbar-icon-button-DPdWBHmX.js";import"./shell-layout-DDrdQOKB.js";import"./use-clock-tick-_wcwwysm.js";import"./command-Cn1kHhQA.js";import"./index-DMyWhhx4.js";import"./integration-icon-CiAW8rDV.js";import"./project-icon-C4YSWqLo.js";import"./new-project-dialog-BVdmAMTF.js";import"./label-CjCrcKeN.js";import"./repository-import-picker-CSAKO3X5.js";import"./use-navigate-to-agent-DH-wfLLT.js";import"./repository-picker-3tqi2Hvb.js";import"./useInfiniteQuery-gMQYsgHb.js";import"./infiniteQueryObserver-koP9jk4d.js";import"./collection-search-INMm_CkT.js";import"./use-debounced-value-BgU5Mlo6.js";import"./required-auth-layout-DMJ9p0SW.js";import"./use-org-sso-dGa9sTJw.js";import"./sheet-DfTFlGFH.js";import"./resizable-CWhIVRKn.js";import"./core.esm-BdDh475y.js";import"./sortable.esm-bTAsk8Vk.js";import"./context-menu-gP7nFahM.js";import"./create-organization-dialog-Ci-3-YrG.js";import"./form-oXstmc9Q.js";import"./project-apps-CUVHvRf7.js";import"./use-recent-apps-CXehLx4B.js";import"./use-session-runtime-Bp29dZ9K.js";import"./experiments-tab-choice-DdG3xkHn.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-rLTU2EyK.js";import"./use-sandbox-events-DoS1U6Xg.js";import"./sandbox-git-api-CH_-QFpD.js";import"./held-block-view-CpXdgp7m.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BlVTZ-F_.js";import"./collapsible-BN3qlGJC.js";import"./use-copy-CRYT_lEh.js";import"./usage-stats-D7pL8W8y.js";import"./tool-namespace-MjGHB-2n.js";import"./utils-CVEq3hMx.js";import"./markdown-Cqcjq3Xf.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-dATLexqT.js";import"./types-D-tO7eft.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-connection-BwtjQBnQ.js";import"./use-mcp-prompts-D76okIQm.js";import"./use-thread-outputs-C5vhvZFZ.js";import"./file-type-icon-D98G7WK4.js";import"./section-array-field-DvT6jzl0.js";import"./alert-DGv9RNV8.js";import"./parse-sections-D3_nSXsH.js";import"./blocks-tab-states-5o0yQDwk.js";import"./slider-DrOo7_UG.js";import"./index-CAdTS9ZX.js";import"./index-BdQq_4o_.js";import"./tooltipContext-J8gN2jYl.js";import"./CategoricalChart-GePqKrAt.js";import"./index-BapUxZWk.js";import"./ActiveShapeUtils-CwNMVlsU.js";import"./Sector-CZev-ohv.js";import"./symbol-CJnTkOND.js";import"./empty-state-DHgdXyfD.js";import"./switch-BaweF4ir.js";import"./textarea-CiRqIfaf.js";import"./popover-C6LRW83t.js";import"./scroll-area-Dbl0Ja6M.js";import"./monaco-editor-5y8rZvs2.js";import"./editor-C2vaY1i0.js";import"./calendar-lhJ8p0qo.js";import"./select-BjOZT7HR.js";import"./editor-classes-wrVHQOxp.js";import"./toggle-group-DkOJZdVq.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BO0oi3KV.js";import"./search-input-CI-RscAC.js";import"./tabs-C_tuCc9E.js";import"./use-file-configs-DG6lQxbS.js";import"./asset-utils-BFPFspZC.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-lifecycle-context-BVJJp5p1.js";import"./variant-matcher-override-CMTA6uf4.js";import"./variant-draft-pointer-BeAKcq_c.js";import"./section-preview-url-7zfngvgW.js";import"./use-fast-preview-draft-url-DfZ_rD3i.js";import"./preview-link-C762yHOt.js";import"./useQueries-DQ6fzXUk.js";import"./device-hint-SeLRi17j.js";import"./virtual-mcp-D2W6CtJ3.js";import"./url-slug-B3-3kua2.js";import"./app-preview-url-9Od4s8Sz.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-B9_EDVoX.js";import"./mustache-C57uA7K3.js";import"./use-content-sync-Cnva7d9w.js";import"./checkbox-BGizxNX2.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-CkTgDd_J.js";import"./badge-6mumabZP.js";import"./empty-state-BIXUpBao.js";import"./site-draft-actions-CGinyKcf.js";import"./separator-CjZHveNE.js";import"./use-releases-BN_Y86Es.js";import"./serial-task-queue-CGOeQgpr.js";import"./index-BVIkRnC2.js";import"./drawer-LA3NkA0S.js";import"./input-nNYp-8x6.js";import"./icon-button-vGME3QbC.js";import"./chat-draft-1H_chlRR.js";import"./use-deco-credits-DRFtUrcE.js";import"./use-open-billing-url-BRN6W4Vx.js";import"./index-20HoU-20.js";import"./ai-providers-logos-DD3qZ33J.js";import"./input-B3p7vRnZ.js";import"./suggestion-D6r-qU7q.js";import"./use-org-fs-DYzo-CVk.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-0Gw_Q4lr.js";import"./plan-ladder-BQnQ-c-o.js";import"./add-connection-dialog-DarQ1krm.js";import"./extract-connection-data-BPic6jPp.js";import"./metadata-D72DunRR.js";import"./connection-Dizw96b7.js";import"./connection-card-D3-Gdl0S.js";import"./connection-slug-CITJ0kGN.js";import"./schema-BcGVNeII.js";import"./connection-form-helpers-DYxyLK9S.js";import"./authenticate-and-persist-oauth-DzQvKWuf.js";import"./mcp-oauth-CfI4AoXx.js";import"./mcp-oauth-CJZC8nld.js";import"./collection-tabs-SEBBjtRQ.js";import"./use-infinite-scroll-_QxCAV2S.js";import"./useSuspenseInfiniteQuery-huohnS0M.js";import"./use-task-board-events-BWNw3HI5.js";import"./releases-api-BXtcXUmK.js";import"./named-rule-uses-ZJHANdK7.js";import"./save-changes-debug-nBi-n9eV.js";function I(e){return e.kind==="unavailable"&&e.source==="local"&&(e.problem?.reason??"not-answering")==="not-answering"}const it=e=>e;function rt(e){const t=u.c(10),{candidates:o,invalidLink:c,shell:m,editor:i}=e,r=c===void 0?!1:c,s=m===void 0?it:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==o||t[5]!==r?(a=n.jsx(nt,{candidates:o,invalidLink:r,onConnect:l}),t[4]=o,t[5]=r,t[6]=a):a=t[6];let d;return t[7]!==s||t[8]!==a?(d=s(a),t[7]=s,t[8]=a,t[9]=d):d=t[9],d}function nt(e){const t=u.c(17),{candidates:o,invalidLink:c,onConnect:m}=e,i=c===void 0?!1:c,[r]=F(),{language:s}=r;let p;t[0]!==m?(p=D=>m({endpoint:D}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==o||t[3]!==p?(l={candidates:o,onFound:p},t[2]=o,t[3]=p,t[4]=l):l=t[4];const a=Q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==o||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(o.map(T)),t[5]=o,t[6]=s,t[7]=k):k=t[7];const C=k;let j;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(j=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=j):j=t[12];const _=j;let S;return t[13]!==C||t[14]!==i||t[15]!==_?(S=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=S):S=t[16],S}const v="deco-serve",w="working-tree",st={id:"",slug:"",name:"",logo:null},mt={id:v,slug:v},pt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function at(){const e=window.location.hash,t=new URLSearchParams(e.replace(/^#/,"")).has("endpoint"),o=t?W(e):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o&&J(o),{candidates:U(o,z()),invalidLink:t&&!o}}const ct=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function lt(){const e=u.c(6),t=O();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:dt},e[0]=o):o=e[0];const c=P(o);let m;e[1]!==t||e[2]!==c?(m=ct.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(M,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(tt,{icon:et({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),e[1]=t,e[2]=c,e[3]=m):m=e[3];let i;return e[4]!==m?(i=n.jsx(y.Tabs,{children:m}),e[4]=m,e[5]=i):i=e[5],i}function dt(e){return e.matches.at(-1)?.staticData.siteEditorView}function N(e){const t=u.c(14),{children:o}=e,c=O(),{connection:m}=q(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==o||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=o;break t}if(i.kind!=="unavailable"||I(i)){s=n.jsx(Y,{headingLevel:2,waiting:!0,title:c("decoServe.connect.reaching",{host:r})});break t}}t[0]=i,t[1]=o,t[2]=m,t[3]=c,t[4]=r,t[5]=s}else r=t[4],s=t[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let p;t[6]!==i.problem?(p=i.problem??{reason:"not-answering"},t[6]=i.problem,t[7]=p):p=t[7];let l;t[8]!==r||t[9]!==p?(l={kind:"problem",problem:p,host:r},t[8]=r,t[9]=p,t[10]=l):l=t[10];let a;return t[11]!==r||t[12]!==l?(a=n.jsx(B,{wait:l,hosts:r}),t[11]=r,t[12]=l,t[13]=a):a=t[13],a}function ut(e){const t=u.c(6),{onLost:o}=e,c=R(v,w);let m;t[0]!==c?(m=I(c),t[0]=c,t[1]=m):m=t[1];const i=m;let r,s;return t[2]!==i||t[3]!==o?(r=()=>{i&&o()},s=[i,o],t[2]=i,t[3]=o,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const A={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ft(){const e=u.c(11),{data:t}=E.useSession();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:ht},e[0]=o):o=e[0];const c=P(o),m=!!t?.user;let i;e[1]!==m?(i={rail:m},e[1]=m,e[2]=i):i=e[2];const r=c??"preview";let s,p,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(lt,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(ot,{}),e[3]=s,e[4]=p,e[5]=l):(s=e[3],p=e[4],l=e[5]);let a;e[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),e[6]=r,e[7]=a):a=e[7];let d;return e[8]!==i||e[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),e[8]=i,e[9]=a,e[10]=d):d=e[10],d}function ht(e){return e.matches.at(-1)?.staticData.siteEditorView}function vt(e){const t=u.c(8),{children:o}=e,{data:c}=E.useSession(),m=!!c?.user;let i;t[0]!==m?(i={rail:m},t[0]=m,t[1]=i):i=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(x.Thread,{children:null}),t[2]=r):r=t[2];let s;t[3]!==o?(s=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:o})]})}),t[3]=o,t[4]=s):s=t[4];let p;return t[5]!==i||t[6]!==s?(p=n.jsx(L,{outsideOrg:i,children:s}),t[5]=i,t[6]=s,t[7]=p):p=t[7],p}const b=()=>{},xt={connection:null,set:b,clear:b};function pr(){const e=u.c(3),[t]=g.useState(at);let o;return e[0]!==t.candidates||e[1]!==t.invalidLink?(o=n.jsx(G,{value:!0,children:n.jsx(H,{org:st,project:mt,children:n.jsx(rt,{candidates:t.candidates,invalidLink:t.invalidLink,shell:jt,editor:kt})})}),e[0]=t.candidates,e[1]=t.invalidLink,e[2]=o):o=e[2],o}function kt(e,t){return n.jsxs($.Provider,{value:{connection:e,set:b,clear:b},children:[n.jsx(ut,{onLost:t}),n.jsx(V,{value:pt,children:n.jsx(K,{children:n.jsx(ft,{})})})]})}function jt(e){return n.jsx($.Provider,{value:xt,children:n.jsx(vt,{children:e})})}function ar(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(X,{virtualMcpId:v})}),e[0]=t):t=e[0],t}function cr(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Z,{virtualMcpId:v})}),e[0]=t):t=e[0],t}export{cr as SiteEditorContent,ar as SiteEditorPreview,pr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,a4 as n,j as r,K as f}from"./index-DampV2dK.js";import{C as d}from"./index-CUZ1Ro0y.js";import{m as u,P as x,T as h}from"./mock-board-DKq30aNi.js";import{F as j}from"./feature-gate-uVlfgQri.js";import"./use-mobile-BihCEjWm.js";import"./use-sidebar-collapsed-B3wyR6wL.js";import"./use-chat-layout-state-Be7PCK7m.js";import"./thread-route-DCxAnsEA.js";import"./use-panel-navigate-BYbZXvp4.js";import"./use-project-scope-JP7EfYKk.js";import"./repository-binding-DSYWyWQk.js";import"./use-mcp-client-Db3WwHkW.js";import"./auth-BRizJz1-.js";import"./thread-intent-BAI3Rlfu.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Cue4trO6.js";import"./task-board-CFm7hWmU.js";import"./schema-C1grSGu6.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-Bo37g0fF.js";import"./AlertCircle-BQ7gdGwO.js";import"./Tool01-C4vr_Fbq.js";import"./ArrowUp-hmPXempM.js";import"./ArrowLeft-CzKuuRT3.js";import"./LinkBroken01-Ps7Q2TgQ.js";import"./ShoppingBag01-2qRSy_0A.js";import"./ZoomOut-CeC9MLz9.js";import"./Building02-BP04ade-.js";import"./CheckCircle-BVnx66vP.js";import"./ChevronUp-B84nbyaB.js";import"./ChevronSelectorVertical-D6sC3Vmb.js";import"./UserSquare-CBDcV-Sr.js";import"./Copy01-Bac6SVw1.js";import"./CreditCard01-t317btce.js";import"./DotsVertical-DjAfwlFJ.js";import"./Image01-CNDErtLw.js";import"./Globe04-DSBhW1To.js";import"./SwitchHorizontal01-DM99h8Bb.js";import"./Key01-C_7n0i1h.js";import"./Link01-kTPC8Qx-.js";import"./Minus-DwgwDeRT.js";import"./Monitor01-DLFV9f_c.js";import"./Sun-Cdvulc3r.js";import"./Play-CQGngRNi.js";import"./Plus-DOCl9FQV.js";import"./SearchMd-BbTaBsWc.js";import"./Trash01-7cnh0-6j.js";import"./Upload01-DJferCdW.js";import"./Users01-hfFVY4Rg.js";import"./XClose-B2l9VhGF.js";import"./tooltip-DZKcSDR4.js";import"./index-DgIUPTVB.js";import"./toolbar-icon-button-DPdWBHmX.js";import"./shell-layout-DDrdQOKB.js";import"./use-clock-tick-_wcwwysm.js";import"./command-Cn1kHhQA.js";import"./index-DMyWhhx4.js";import"./integration-icon-CiAW8rDV.js";import"./project-icon-C4YSWqLo.js";import"./new-project-dialog-BVdmAMTF.js";import"./label-CjCrcKeN.js";import"./repository-import-picker-CSAKO3X5.js";import"./use-navigate-to-agent-DH-wfLLT.js";import"./repository-picker-3tqi2Hvb.js";import"./useInfiniteQuery-gMQYsgHb.js";import"./infiniteQueryObserver-koP9jk4d.js";import"./collection-search-INMm_CkT.js";import"./use-debounced-value-BgU5Mlo6.js";import"./use-organization-settings-DOUb81j1.js";import"./required-auth-layout-DMJ9p0SW.js";import"./autosend-DweeW6OU.js";import"./use-org-sso-dGa9sTJw.js";import"./sheet-DfTFlGFH.js";import"./resizable-CWhIVRKn.js";import"./core.esm-BdDh475y.js";import"./sortable.esm-bTAsk8Vk.js";import"./use-task-board-analytics-DIHarjfC.js";import"./combobox-BO0oi3KV.js";import"./popover-C6LRW83t.js";import"./usage-stats-D7pL8W8y.js";import"./tool-namespace-MjGHB-2n.js";import"./form-oXstmc9Q.js";import"./utils-CVEq3hMx.js";import"./markdown-Cqcjq3Xf.js";import"./use-copy-CRYT_lEh.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-aPDwNsv_.js";import"./chat-context-BfN3Aasc.js";import"./use-ai-providers-t0yXUakZ.js";import"./suggestion-D6r-qU7q.js";import"./column-rules-BL4ZPS3s.js";import"./badge-6mumabZP.js";import"./icon-button-vGME3QbC.js";import"./switch-BaweF4ir.js";import"./textarea-CiRqIfaf.js";import"./use-org-fs-DYzo-CVk.js";import"./use-automations-DvxXx4v3.js";import"./search-toggle-DfEbn4An.js";import"./context-menu-gP7nFahM.js";import"./daily-pulse-Ir1cHSjy.js";import"./use-task-board-events-BWNw3HI5.js";import"./config-BmU_9L81.js";import"./select-BjOZT7HR.js";import"./index-BdQq_4o_.js";import"./task-route-CroNqaC_.js";import"./task-key-BCHdFiOO.js";import"./task-assignee-avatar-pNz0ct84.js";import"./use-tags-CyP6VoHu.js";import"./calendar-lhJ8p0qo.js";import"./alert-DGv9RNV8.js";import"./collapsible-BN3qlGJC.js";import"./index-B0CHXOni.js";import"./editor-classes-wrVHQOxp.js";import"./index-BcT8d0Ct.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-BhBkGpQk.js";import"./use-connection-BwtjQBnQ.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-CpP9OOWv.js";import"./useSuspenseInfiniteQuery-huohnS0M.js";import"./pair-BlVTZ-F_.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-dATLexqT.js";import"./types-D-tO7eft.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-D76okIQm.js";import"./use-thread-outputs-C5vhvZFZ.js";import"./file-type-icon-D98G7WK4.js";import"./use-infinite-scroll-_QxCAV2S.js";import"./task-status-SVf_UHQ8.js";import"./use-open-billing-url-BRN6W4Vx.js";import"./chat-draft-1H_chlRR.js";import"./separator-CjZHveNE.js";import"./feature-paywall-0Gw_Q4lr.js";import"./plan-ladder-BQnQ-c-o.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(h,{})}),t[0]=o):o=t[0],o}function Mo(){const t=l.c(8),{locator:o}=n();let i;t[0]!==o?(i=c=>c.setQueryData(f.taskBoardItems(o),u()),t[0]=o,t[1]=i):i=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let m;t[3]!==i?(m=r.jsx(x,{seed:i,children:p}),t[3]=i,t[4]=m):m=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==m?(s=r.jsx(d.Content,{children:r.jsx(j,{feature:"kanban",backdrop:m,children:e})}),t[6]=m,t[7]=s):s=t[7],s}export{Mo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as i,q as y}from"./index-DampV2dK.js";import{u as f,D as m}from"./site-editor-toast-SKvfrYhz.js";function K(l){const e=i.c(11),r=y(),{orgSlug:n,virtualMcpId:c,branch:t}=l,u=f(c,t);let o;e[0]!==t||e[1]!==n||e[2]!==c?(o=t?{orgSlug:n,virtualMcpId:c,branch:t}:null,e[0]=t,e[1]=n,e[2]=c,e[3]=o):o=e[3];const a=m(o)||null;let s;return e[4]!==u||e[5]!==t||e[6]!==n||e[7]!==r||e[8]!==a||e[9]!==c?(s={queryClient:r,orgSlug:n,virtualMcpId:c,branch:t,backend:u,cacheKey:a},e[4]=u,e[5]=t,e[6]=n,e[7]=r,e[8]=a,e[9]=c,e[10]=s):s=e[10],s}export{K as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as x,b as F,e as H,K as C,bp as j}from"./index-DampV2dK.js";import{u as v}from"./use-session-runtime-Bp29dZ9K.js";import{o as B,c as J,u as R,D as L,R as N,H as S,F as U,G as W,K as A,L as G,M as Y,O as z,ap as Z,Z as _,Y as V,q as D,J as b}from"./site-editor-toast-SKvfrYhz.js";import{s as X}from"./sandbox-git-api-CH_-QFpD.js";import{u as $}from"./chat-context-BfN3Aasc.js";import{F as g,H as M}from"./blocks-tab-states-5o0yQDwk.js";import{b as O}from"./sandbox-url-D3mC8qhT.js";import{d as Q}from"./utils-rLTU2EyK.js";function fe({orgSlug:i,virtualMcpId:t,branch:o}){const s=x(),y=$()?.taskId??null,P=B(t),T=v(t).runtime==="cms",{url:q}=J(t),k=R(t,o),f=k.kind==="protocol"?k:null,d=L({orgSlug:i,virtualMcpId:t,branch:o}),m=C.decofile(d),K=F(),E=async(a,c)=>{if(q)return{ok:!0};if(T){const r=await _({orgSlug:i,virtualMcpId:t,branch:o},{set:a,delete:c});return V(s,{orgSlug:i,virtualMcpId:t,branch:o},r),await s.invalidateQueries({queryKey:X({orgSlug:i,virtualMcpId:t,branch:o,threadId:y})}),r}const u={orgSlug:i,virtualMcpId:t,branch:o,threadId:y};for(const[r,n]of Object.entries(a)){const e=await fetch(O(u,"write"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:D(P,Q(r)),content:JSON.stringify(n,null,2)})});if(!e.ok)return b(e,"Write")}for(const r of c){const n=await fetch(O(u,"unlink"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:D(P,Q(r))})});if(!n.ok)return b(n,"Delete")}return{ok:!0}},p=H({mutationKey:W(i,t,o),scope:U(i,t,o),mutationFn:async({writes:a,deletes:c,copies:u,shown:r})=>{const n=f?.source==="github"?a:j(a);return f?.source==="github"?g({queryClient:s,backend:f,params:{orgSlug:i,virtualMcpId:t,branch:o},cacheKey:d},{writes:n,deletes:c.filter(e=>!(e in n))},u,r?.()):f?N(s,f,{orgSlug:i,virtualMcpId:t,branch:o},d,{set:n,delete:c.filter(e=>!(e in n))}):S({queryClient:s,orgSlug:i,virtualMcpId:t,branch:o,backend:k,cacheKey:d},{kind:"edit",write:()=>E(n,c)})},onSuccess:()=>{f?.source!=="github"&&s.invalidateQueries({queryKey:C.liveMeta(i,t,o)})}});return{move:async(a,c)=>{const u=[...Object.keys(a.writes),...a.deletes],r=s.getQueryData(m),n=new Map;for(const e of u)r&&e in r&&n.set(e,r[e]);s.setQueryData(m,e=>I(e,a)),s.cancelQueries({queryKey:m});try{return await p.mutateAsync({...a,copies:r,shown:c?.shown})}catch(e){throw e instanceof M?(A(K,e.deleted,e.deleted&&a.deletes.length>0&&a.deletes.every(l=>G(s,d,l))),e):(Y(K,e),f?.source==="github"&&(z(e)||e instanceof Z)||s.setQueryData(m,l=>{if(!l)return l;const w={...l};for(const h of u)n.has(h)?w[h]=n.get(h):delete w[h];return w}),e)}},isPending:p.isPending,isError:p.isError}}function I(i,{writes:t,deletes:o}){const s={...i??{},...t};for(const y of o)y in t||delete s[y];return s}export{I as a,fe as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-koP9jk4d.js";import{eq as i}from"./index-DampV2dK.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-koP9jk4d.js";import{eq as u,ex as n}from"./index-DampV2dK.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Z as $,W as f}from"./parse-sections-D3_nSXsH.js";const v="x-deco-matchers-override";function h({pageKey:n,prefix:r,variants:t,selectedIndex:a,decofile:i,meta:s}){if(!n||a<0||a>=t.length)return[];const o=[];for(let e=0;e<=a;e++){const u=t[e];if(!u)continue;const c=u.rule,l=e===a?"1":"0",d=($(c,i,s)?f(c,i,s):null)??`${n}@${r}.${e}.rule`;o.push(`${d}=${l}`)}return o}function p(n,r,t,a){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:n,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:a})}function x({pageKey:n,page:r,sectionIndex:t,sectionLazy:a,mvObj:i,selectedVariantIndex:s,decofile:o,meta:e}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value${r.lazyValues?".value":""}`:"sections"}.${t}${a?".section":""}.variants`,l=Array.isArray(i.variants)?i.variants:[];return h({pageKey:n,prefix:c,variants:l,selectedIndex:s,decofile:o,meta:e})}function y(n,r){const t=`${r}@`;return n.map(a=>a.startsWith(t)?`props.${a.slice(t.length)}`:a)}function B(n,r){if(r.length===0)return n;try{const t=new URL(n,"http://local");t.searchParams.delete(v);for(const a of r)t.searchParams.append(v,a);return n.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return n}}export{x as a,p as b,y as i,B as w};
|