decocms 4.568.0 → 4.568.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-4XjOBzzr.js → AlertCircle-C8Ovs13g.js} +1 -1
- package/dist/client/assets/{AreaChart-U2booYre.js → AreaChart-BPZ71FQT.js} +1 -1
- package/dist/client/assets/{ArrowLeft-FLGKBq3z.js → ArrowLeft-BevitLPy.js} +1 -1
- package/dist/client/assets/{ArrowUp-Lwcx-ceL.js → ArrowUp-LKVB7Ud3.js} +1 -1
- package/dist/client/assets/{CartesianChart-BcKhfNJ4.js → CartesianChart-BKvZsEJJ.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Du8Ljv-7.js → CategoricalChart-BAz9vqhr.js} +1 -1
- package/dist/client/assets/{CheckCircle-DFL7pw-c.js → CheckCircle-6PthhUL2.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DujPgcUo.js → ChevronSelectorVertical-DPCJGeHn.js} +1 -1
- package/dist/client/assets/{ChevronUp-BvHbQNBW.js → ChevronUp-CpgR3_nb.js} +1 -1
- package/dist/client/assets/{CreditCard01-BwD4GYuP.js → CreditCard01-C2oB4pfr.js} +1 -1
- package/dist/client/assets/{Globe04-Wakfx0G2.js → Globe04-BhKEHcph.js} +1 -1
- package/dist/client/assets/{Key01-D8VFHgU4.js → Key01-BSJHIVa1.js} +1 -1
- package/dist/client/assets/{LinkBroken01--Z9NHGsb.js → LinkBroken01-BBFDlqgt.js} +1 -1
- package/dist/client/assets/{Minus-mLwaHX_9.js → Minus-CVdaI4Fm.js} +1 -1
- package/dist/client/assets/{Monitor01-xd6_AGZa.js → Monitor01-Cuob4vSq.js} +1 -1
- package/dist/client/assets/{Play-Bd4GTUnl.js → Play-Da9nWpcs.js} +1 -1
- package/dist/client/assets/{Plus-Cq9NYyX9.js → Plus-_9GNTGSE.js} +1 -1
- package/dist/client/assets/ReferenceLine-DsOcULXV.js +1 -0
- package/dist/client/assets/{SearchMd-BxQmfb5s.js → SearchMd-CW3ppy8-.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CYCT2jnZ.js → ShoppingBag01-B5QyiZLr.js} +1 -1
- package/dist/client/assets/{Sun-COkqP7iJ.js → Sun-BDkIkIw6.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-TPw7EzQJ.js → SwitchHorizontal01-Mkrao4SC.js} +1 -1
- package/dist/client/assets/{Tool01-BqhX4Lir.js → Tool01-B3AGNBtQ.js} +1 -1
- package/dist/client/assets/{Tooltip-Rsr656vO.js → Tooltip-VyzG-XyD.js} +1 -1
- package/dist/client/assets/{Trash01-BsqfSoas.js → Trash01-BMv3ZifH.js} +1 -1
- package/dist/client/assets/{Upload01-CjUA7jDn.js → Upload01-C0aUrRmk.js} +1 -1
- package/dist/client/assets/{UserSquare-DLTddIeU.js → UserSquare-Vj3086v1.js} +1 -1
- package/dist/client/assets/{Users01-C0dAo1hK.js → Users01-B9jA9cs-.js} +1 -1
- package/dist/client/assets/{XClose-BmPamPKb.js → XClose-BIHWtUjo.js} +1 -1
- package/dist/client/assets/{Zap-CNah22BF.js → Zap-TomaYxmL.js} +1 -1
- package/dist/client/assets/{access-gate-KNoXvQR4.js → access-gate-Kza0R1uM.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CoeePYAP.js → add-connection-dialog-P67nq7X-.js} +1 -1
- package/dist/client/assets/agent-app-Da9CCDUf.js +1 -0
- package/dist/client/assets/{agent-assets-BFTAqbZ2.js → agent-assets-DtbqMuB9.js} +1 -1
- package/dist/client/assets/{agent-automation-DQSsp-Qq.js → agent-automation-DAvuTlAb.js} +1 -1
- package/dist/client/assets/{agent-automations-HvNPVcR1.js → agent-automations-NySBiOWw.js} +1 -1
- package/dist/client/assets/{agent-calendar-D1UuIhb8.js → agent-calendar-CH42INb4.js} +1 -1
- package/dist/client/assets/{agent-capabilities-D2A31nji.js → agent-capabilities-W9vBXHXR.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-anUeuGw0.js → agent-connect-sources-DhfPL4pD.js} +1 -1
- package/dist/client/assets/agent-deck-BAqsiSU8.js +1 -0
- package/dist/client/assets/{agent-e2e-BFTeY8yw.js → agent-e2e-BU2QcQtT.js} +1 -1
- package/dist/client/assets/agent-experiments-D_FXRK8m.js +1 -0
- package/dist/client/assets/{agent-file-CRchtrX1.js → agent-file-3PXh2x7T.js} +1 -1
- package/dist/client/assets/{agent-hosting-G7B4MOee.js → agent-hosting-DP-fQO-C.js} +1 -1
- package/dist/client/assets/{agent-icon-DGjvzBU0.js → agent-icon-CqeITJaa.js} +1 -1
- package/dist/client/assets/agent-library-file-CClO1HJb.js +1 -0
- package/dist/client/assets/agent-library-jdBUMrX4.js +1 -0
- package/dist/client/assets/agent-overview-CozHgqWw.js +1 -0
- package/dist/client/assets/{agent-releases-CHTMMSg0.js → agent-releases-BUU1ZC1p.js} +1 -1
- package/dist/client/assets/agent-settings-DFWwpeNN.js +1 -0
- package/dist/client/assets/agent-site-editor-code-Y9S3Tflm.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DQIMpOhN.js +1 -0
- package/dist/client/assets/{agent-site-editor-Cbl8939c.js → agent-site-editor-mLmsToBw.js} +1 -1
- package/dist/client/assets/agent-site-editor-preview-Cmd7Qr1A.js +1 -0
- package/dist/client/assets/agent-view-CECuI8u1.js +1 -0
- package/dist/client/assets/{agent-view-guard-DNJq8WJa.js → agent-view-guard-CEF0TLXe.js} +1 -1
- package/dist/client/assets/{ai-providers-Cj1o2PDA.js → ai-providers-Bk0b8lBS.js} +1 -1
- package/dist/client/assets/{alert-CkisSQR8.js → alert-DVyXeSP0.js} +1 -1
- package/dist/client/assets/{analytics-sections-CPw_3198.js → analytics-sections-HglAPM52.js} +1 -1
- package/dist/client/assets/{api-keys-DvsVEDYM.js → api-keys-CPcOhmA3.js} +1 -1
- package/dist/client/assets/api-keys-CeUptd-H.js +1 -0
- package/dist/client/assets/{app-editor-D_UGcnYy.js → app-editor-BuVYUcC0.js} +1 -1
- package/dist/client/assets/{asset-utils-BMQvttAs.js → asset-utils-B_PFTFoC.js} +1 -1
- package/dist/client/assets/{auth-D2Lcha9t.js → auth-DmpUBIs7.js} +1 -1
- package/dist/client/assets/{auth-catchall-DyFlHo48.js → auth-catchall-CFzPqvha.js} +1 -1
- package/dist/client/assets/{auth-entry-DDLQ2T30.js → auth-entry-wXfEcyl9.js} +1 -1
- package/dist/client/assets/{auth-split-layout-C64FoWws.js → auth-split-layout-BjY-DDgX.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BXtcfltM.js → authenticate-and-persist-oauth-DaaDxUin.js} +1 -1
- package/dist/client/assets/{automation-list-row-Cbotm6BG.js → automation-list-row-DXb5up2E.js} +1 -1
- package/dist/client/assets/{automation-runs-uTz7ccV0.js → automation-runs-BAUKeHIB.js} +1 -1
- package/dist/client/assets/automations-BvaZrGnV.js +1 -0
- package/dist/client/assets/{autosend-BeP-7Z9T.js → autosend-BVZJx1Ct.js} +1 -1
- package/dist/client/assets/{badge-37ZrebMM.js → badge-DzMp3mdM.js} +1 -1
- package/dist/client/assets/{block-document-AH_Uk3nK.js → block-document-bjE6-3hu.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-wN3COmWz.js → blocks-preview-workspace-context-BL9PsmSD.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-CERDbw5g.js → blocks-tab-states-ifXBK4F2.js} +1 -1
- package/dist/client/assets/{blog-schema-DUx1yOEj.js → blog-schema-rddaOm3X.js} +1 -1
- package/dist/client/assets/{buckets-CncRgLSv.js → buckets-BzOMugSD.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BWQkcKAa.js → build-improve-prompt-doc-BYoR7ku5.js} +1 -1
- package/dist/client/assets/{calendar-ESmP-ay5.js → calendar-BJC2oYOH.js} +1 -1
- package/dist/client/assets/{capability-load-error-D91RsAwR.js → capability-load-error-N3peg2W6.js} +1 -1
- package/dist/client/assets/{category-editor-C7jYzChE.js → category-editor-11ETFMeQ.js} +1 -1
- package/dist/client/assets/{chart-yg_E5Zl2.js → chart-BaW3HlzU.js} +1 -1
- package/dist/client/assets/{chat-context-DSkOndUS.js → chat-context-Bc7GhR8U.js} +1 -1
- package/dist/client/assets/{chat-draft-CCm5Ov2V.js → chat-draft-CnT-R9KP.js} +1 -1
- package/dist/client/assets/{checkbox-DS3fV3cm.js → checkbox-Djgrt1vS.js} +1 -1
- package/dist/client/assets/{choose-editor-O-d7ISrT.js → choose-editor-BY15-a1C.js} +1 -1
- package/dist/client/assets/{cli-auth-success-1kH4GC4v.js → cli-auth-success-Wkek8Nxt.js} +1 -1
- package/dist/client/assets/{client-icons-C8Uj1zsT.js → client-icons-DUqNvNJS.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BOlrMR3T.js → cms-settings-editor-CMQtdcSG.js} +1 -1
- package/dist/client/assets/cms-store-drafts-BakCAk7K.js +1 -0
- package/dist/client/assets/{collapsible-DRuNeeSr.js → collapsible-Cu2ykx45.js} +1 -1
- package/dist/client/assets/{collection-detail-DpUbmPF3.js → collection-detail-CnJWnmsp.js} +1 -1
- package/dist/client/assets/{collection-display-button-Bwz5aQUh.js → collection-display-button-NSxOZ5TH.js} +1 -1
- package/dist/client/assets/{collection-search-BQWTlXQF.js → collection-search-ClV5mqoe.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CbyF6Nov.js → collection-table-wrapper-Dh8uL3pb.js} +1 -1
- package/dist/client/assets/{collection-tabs-D3WnD7EM.js → collection-tabs-T0QGfCDZ.js} +1 -1
- package/dist/client/assets/{combobox-CT2qCKie.js → combobox-Cx-C-l4z.js} +1 -1
- package/dist/client/assets/{command-D37uN5J-.js → command-DgSBNjBh.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BFZVF2RC.js → companion-mcps-section-zXENoXl8.js} +1 -1
- package/dist/client/assets/{config-CZ3pUlCW.js → config-1zqgWIk2.js} +1 -1
- package/dist/client/assets/{connect-71FB3CXN.js → connect-DrCZmYlD.js} +3 -3
- package/dist/client/assets/{connect-layout-CKRVOgzj.js → connect-layout-DQ4O9ewt.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-CNca8slt.js → connect-source-dialog-BFfL8MZO.js} +1 -1
- package/dist/client/assets/{connection-DESaeNZx.js → connection-DHqLhyYm.js} +1 -1
- package/dist/client/assets/{connection-card-t63ssUn-.js → connection-card-yh4MTPg_.js} +1 -1
- package/dist/client/assets/{connection-detail-DuRyDzXg.js → connection-detail-CLMyx8eY.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DL8JpgdC.js → connection-form-helpers-Bp0P0TC9.js} +1 -1
- package/dist/client/assets/{connection-slug-Bv1gCwRj.js → connection-slug-nir9u1BL.js} +1 -1
- package/dist/client/assets/{connections-CdsCJmtK.js → connections-DvAElJBj.js} +1 -1
- package/dist/client/assets/{content-tab-Bh7FUKC3.js → content-tab-ClOEdPwZ.js} +3 -3
- package/dist/client/assets/{context-DLjNZH7d.js → context-Duc_mQnE.js} +1 -1
- package/dist/client/assets/{context-menu-CugaroNR.js → context-menu-Cxk9gBC0.js} +1 -1
- package/dist/client/assets/{context-shell-DYGyde-Z.js → context-shell-DUWqXQZN.js} +3 -3
- package/dist/client/assets/{core.esm-CTG2N8v2.js → core.esm-DAx4DJuz.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CogPW5s2.js → create-organization-dialog-BjqA3lpc.js} +1 -1
- package/dist/client/assets/{device-hint-CD49lDbc.js → device-hint-DPZT-Xea.js} +1 -1
- package/dist/client/assets/{discover-BM-XQVCu.js → discover-BY4Mr8uM.js} +1 -1
- package/dist/client/assets/{domain-settings-Bt06PPmF.js → domain-settings-CbT821rp.js} +1 -1
- package/dist/client/assets/{drawer-DsjbbVTG.js → drawer-BFx-bd_L.js} +1 -1
- package/dist/client/assets/{editor-BpBeMMun.js → editor-C09OhWY7.js} +1 -1
- package/dist/client/assets/{editor-classes-CS7nwV3G.js → editor-classes-CBvy4Zr6.js} +1 -1
- package/dist/client/assets/{empty-state-CPetbKsr.js → empty-state-DUTglEtg.js} +1 -1
- package/dist/client/assets/{empty-state-CgDxl1cN.js → empty-state-UqiTRa_b.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-Ckqo9bHe.js → experiments-tab-choice-DVTcfAT7.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BoY4cFA7.js → extract-connection-data-Dc6vmoBL.js} +1 -1
- package/dist/client/assets/{feature-gate-D4S13Ohw.js → feature-gate-DIvD2qXm.js} +1 -1
- package/dist/client/assets/{feature-paywall-BPHi9qtV.js → feature-paywall-Ds90JgjK.js} +1 -1
- package/dist/client/assets/{feedback-UOqcYnsR.js → feedback-JjHaNOsE.js} +1 -1
- package/dist/client/assets/{file-explorer-R1XT7WuQ.js → file-explorer-CluRXZ37.js} +1 -1
- package/dist/client/assets/{file-preview-Bn_lFKvb.js → file-preview-D8Si3yqg.js} +1 -1
- package/dist/client/assets/{file-share-button-BbBCmHML.js → file-share-button-BMnJAgQ5.js} +1 -1
- package/dist/client/assets/{file-type-icon-DwSbw3u_.js → file-type-icon-CNSXAyFe.js} +1 -1
- package/dist/client/assets/{folder-icon-22cZTm1q.js → folder-icon-C89oXJaH.js} +1 -1
- package/dist/client/assets/{form-xPNilXk8.js → form-DpIMBI8y.js} +1 -1
- package/dist/client/assets/{general-BNCy0qRP.js → general-DHFARAaC.js} +1 -1
- package/dist/client/assets/{github-icon-M98rwFqR.js → github-icon-DewiI3zK.js} +1 -1
- package/dist/client/assets/{home-CX-I119p.js → home-DUBEI8qS.js} +1 -1
- package/dist/client/assets/{home-overview-BImgFzPA.js → home-overview-BoEkJpNz.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-B_zakWIj.js → hosted-reconcile-97iAdZVR.js} +1 -1
- package/dist/client/assets/{icon-button-nAmR0pUP.js → icon-button-BfxFpZIz.js} +1 -1
- package/dist/client/assets/{index-CcQukHqg.js → index-7uos3LCQ.js} +1 -1
- package/dist/client/assets/{index-2pjgY723.js → index-B64fyQ1o.js} +1 -1
- package/dist/client/assets/{index-CM9G2Opl.js → index-BA4wFQV0.js} +1 -1
- package/dist/client/assets/{index-oG6UN7--.js → index-BIHeqmlu.js} +1 -1
- package/dist/client/assets/{index-C24rff9A.js → index-BLlatKRp.js} +1 -1
- package/dist/client/assets/{index-CpdAUi_L.js → index-BqI8ssrO.js} +1 -1
- package/dist/client/assets/{index-CkRd4yOd.js → index-Bv7_FvT_.js} +1 -1
- package/dist/client/assets/{index-DUYaR34S.js → index-CYEUdIaI.js} +1 -1
- package/dist/client/assets/{index-CiqUNjUm.js → index-D3yQzMmD.js} +1 -1
- package/dist/client/assets/{index-Bx0EGvvq.js → index-DYz5vKDK.js} +1 -1
- package/dist/client/assets/{index-B6xZxtVu.js → index-DnPa3j4q.js} +1 -1
- package/dist/client/assets/{index-ucJDxPyE.js → index-YAbWBpI2.js} +4 -4
- package/dist/client/assets/{index-CopIngND.js → index-_xfuQegh.js} +1 -1
- package/dist/client/assets/{index-H80WMTvM.js → index-cBEKd_zd.js} +1 -1
- package/dist/client/assets/{index-DYRhQ9nm.js → index-ooZoGt7g.js} +1 -1
- package/dist/client/assets/{index-redirect-BLueVivV.js → index-redirect-o6Cxf_-C.js} +1 -1
- package/dist/client/assets/{index-ChbLGWhe.js → index-sUdqwSqQ.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bd4S1JAr.js → infiniteQueryObserver-BetHfx9E.js} +1 -1
- package/dist/client/assets/{infra-billing-Cg1YMKnB.js → infra-billing-C4-Upy26.js} +1 -1
- package/dist/client/assets/{input-D-wXYNeQ.js → input-BwL2yzTb.js} +3 -3
- package/dist/client/assets/{input-egigpNvJ.js → input-DD9yaa2N.js} +1 -1
- package/dist/client/assets/{integration-icon-a40gN_z1.js → integration-icon-BJPq2ynB.js} +1 -1
- package/dist/client/assets/{jira-icon-DIaDl6Sc.js → jira-icon-BJ1Yqfz3.js} +1 -1
- package/dist/client/assets/{label-CxjTL0R_.js → label-ERMWTDM1.js} +1 -1
- package/dist/client/assets/{layout-DeMWwMag.js → layout-Clyb314Q.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-maguvV0Q.js → legacy-agents-deep-DXqg162W.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CrJ1J4b6.js → legacy-main-redirect-DnsMd1-f.js} +1 -1
- package/dist/client/assets/library-D5ziXpSY.js +1 -0
- package/dist/client/assets/{library-tab-CqHQSOSi.js → library-tab-B4AZKZNW.js} +1 -1
- package/dist/client/assets/{login-GqA0qMx7.js → login-DoyIZZDV.js} +1 -1
- package/dist/client/assets/{markdown-Cs2UsOW2.js → markdown-XW6Y_EoI.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Da9_HDDx.js → mcp-app-renderer-DL7gNCl6.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DB6dlajV.js → mcp-oauth-PRMkVXh1.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CwgKK51G.js → mcp-oauth-rHESfw1u.js} +1 -1
- package/dist/client/assets/{members-kUrSWAB8.js → members-DBffdKOk.js} +1 -1
- package/dist/client/assets/{memory-68_RSYrN.js → memory-DTe7ai10.js} +1 -1
- package/dist/client/assets/{mock-board-CthDdMFD.js → mock-board-Dcrv6S29.js} +3 -3
- package/dist/client/assets/{monaco-editor-0eOa-DPV.js → monaco-editor-Bomp4HmR.js} +1 -1
- package/dist/client/assets/{monitoring-CajYiFMp.js → monitoring-CKTJkohg.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Badkrd8m.js → monitoring-stats-row-BVMN-DLg.js} +1 -1
- package/dist/client/assets/{multi-select-Dc3qkP9e.js → multi-select-D9N-nXLY.js} +1 -1
- package/dist/client/assets/{mustache-FPu-BUlH.js → mustache-eb_Bg87y.js} +1 -1
- package/dist/client/assets/{named-rule-view-Iopjwm11.js → named-rule-view-zp9L0ztj.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CcXdYQOA.js → new-project-dialog-CxL0mjQ3.js} +1 -1
- package/dist/client/assets/{oauth-callback-CtKUneJ3.js → oauth-callback-BXFUoube.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BW86dzZR.js → oauth-callback-ai-provider-C-SfsQUr.js} +1 -1
- package/dist/client/assets/{oauth-consent-ImI0sTuT.js → oauth-consent-hR2Ry0UE.js} +1 -1
- package/dist/client/assets/{onboarding-BWsm-6Ib.js → onboarding-IOMBN2u3.js} +1 -1
- package/dist/client/assets/{openai-conversation-x0vBTDcX.js → openai-conversation-U4xBjBfE.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DQpn9Pgs.js → optimistic-project-sidebar-views-DlG0FgvT.js} +1 -1
- package/dist/client/assets/{order-monitor-day-CDgLweRg.js → order-monitor-day-DHO_k1R7.js} +1 -1
- package/dist/client/assets/{organization-choice-CRVdDLQi.js → organization-choice-SsLKJxTz.js} +1 -1
- package/dist/client/assets/{orgs-CT9apq2g.js → orgs-CN24uHaU.js} +1 -1
- package/dist/client/assets/{own-accounts-section-BRHD0772.js → own-accounts-section-DiMchtro.js} +1 -1
- package/dist/client/assets/{pair-mfml6eLi.js → pair-BzX9EpMl.js} +1 -1
- package/dist/client/assets/{parse-sections-11L0xusW.js → parse-sections-UGlsQq9_.js} +3 -3
- package/dist/client/assets/{plan-DRqprlax.js → plan-CwrMkHhz.js} +1 -1
- package/dist/client/assets/{plan-ladder-BoOM3V_X.js → plan-ladder-BmHzS4XX.js} +1 -1
- package/dist/client/assets/{plan-usage-card-C52vk1JD.js → plan-usage-card-BPrhaw5t.js} +2 -2
- package/dist/client/assets/{popover-BaWxRQRQ.js → popover-eKoh4-Z1.js} +1 -1
- package/dist/client/assets/{post-calendar-B7v9fy1f.js → post-calendar-5-RTMM86.js} +1 -1
- package/dist/client/assets/{post-editor-B5pVpoGq.js → post-editor-bG2s_3vv.js} +1 -1
- package/dist/client/assets/{preview-content-VAE9VX_a.js → preview-content-B0_lha9p.js} +1 -1
- package/dist/client/assets/{preview-dialog-vZA6Vkch.js → preview-dialog-Ci3FAVDm.js} +1 -1
- package/dist/client/assets/{preview-panel-CmtR7uJm.js → preview-panel-BuqHC95v.js} +1 -1
- package/dist/client/assets/{preview-tab-COW5YDet.js → preview-tab-ChwoL7Do.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-Di0GUuGQ.js → product-picker-dialog-DkygTQUe.js} +1 -1
- package/dist/client/assets/{profile-DbHjYdB0.js → profile-GstFURmM.js} +1 -1
- package/dist/client/assets/project-app-view-BML0V8pu.js +1 -0
- package/dist/client/assets/{project-apps-DKkSorHl.js → project-apps-BFVy6oqU.js} +1 -1
- package/dist/client/assets/{project-icon-BDGMpF2P.js → project-icon-DRALSoCE.js} +1 -1
- package/dist/client/assets/{project-index-BXdjh86r.js → project-index-0ZlMTyxM.js} +1 -1
- package/dist/client/assets/project-reports-Db25ahlS.js +1 -0
- package/dist/client/assets/{project-sidebar-views-DxAssfab.js → project-sidebar-views-IsAuRqFR.js} +1 -1
- package/dist/client/assets/project-tasks-8KIU2G_G.js +1 -0
- package/dist/client/assets/{projects-DWtsTPdq.js → projects-Cwfayn5A.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CA380eV8.js → projects-empty-state-BLo1oUuy.js} +1 -1
- package/dist/client/assets/{prompts-BHFq_gsc.js → prompts-geIlmCw0.js} +1 -1
- package/dist/client/assets/record-editor-B_4KV28Z.js +1 -0
- package/dist/client/assets/{redirect-editor-BwLrArGh.js → redirect-editor-CZ8Jt6Rk.js} +1 -1
- package/dist/client/assets/reports-BCF6hR_E.js +1 -0
- package/dist/client/assets/{reports-Dvv0WRgv.js → reports-SAO6FB-Y.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DqGzGU-U.js → reports-onboarding-8dWVmpHn.js} +1 -1
- package/dist/client/assets/{reports-tab-C-YlOqTD.js → reports-tab-ICX3CL8K.js} +2 -2
- package/dist/client/assets/{repositories-COBSE7nS.js → repositories-CEe5dTCI.js} +1 -1
- package/dist/client/assets/repositories-CaGUOsCY.js +1 -0
- package/dist/client/assets/{repository-binding-BWkpkFiy.js → repository-binding-BEFtyvwg.js} +1 -1
- package/dist/client/assets/{repository-picker-TrkRysRA.js → repository-picker-dYbX0JPX.js} +1 -1
- package/dist/client/assets/{require-capability-DmJgWdQR.js → require-capability-C_BedkF8.js} +1 -1
- package/dist/client/assets/{required-auth-layout-sIreaYcR.js → required-auth-layout-B2yDP8xU.js} +1 -1
- package/dist/client/assets/{reset-password-B2HAlTO4.js → reset-password-HMJAQkaR.js} +1 -1
- package/dist/client/assets/{resizable-e7KAJlT2.js → resizable-CXcYWQyr.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DnOPa8fE.js → resolve-tab-icon-CSavMQhX.js} +1 -1
- package/dist/client/assets/{review-settings-BZ6UQlsU.js → review-settings-HR5AJuT5.js} +1 -1
- package/dist/client/assets/{role-color-DKoRr7_O.js → role-color-XqQUBPY2.js} +1 -1
- package/dist/client/assets/{roles-BzRIIi-m.js → roles-WFtvt_td.js} +1 -1
- package/dist/client/assets/{route-uBGz5xtE.js → route-BeJKDC7d.js} +1 -1
- package/dist/client/assets/{route-cawoaLGc.js → route-CUPbBKJB.js} +1 -1
- package/dist/client/assets/route-Dvj1xiWd.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-DzPeV1F2.js → sandbox-lifecycle-context-CFqytSKR.js} +1 -1
- package/dist/client/assets/{schema-kWZLxlYI.js → schema-CU--MvCG.js} +1 -1
- package/dist/client/assets/{schema-tSFLTBrW.js → schema-s_8X_Pq7.js} +1 -1
- package/dist/client/assets/{scroll-area-BEM410Qx.js → scroll-area-V--N6BXn.js} +1 -1
- package/dist/client/assets/{search-input-BeN2Dgcn.js → search-input-BQcAdCac.js} +1 -1
- package/dist/client/assets/{search-toggle-c4jDK8W2.js → search-toggle-BQnVnCJm.js} +1 -1
- package/dist/client/assets/{secret-picker-Cjv-JfME.js → secret-picker-kAED7ZfH.js} +1 -1
- package/dist/client/assets/{secrets-CevHfsbC.js → secrets-CI8FkMIy.js} +1 -1
- package/dist/client/assets/{section-array-field-DJyNG6r7.js → section-array-field-D45EV3Ua.js} +1 -1
- package/dist/client/assets/{sections-9yqUizm4.js → sections-ChpddIHY.js} +1 -1
- package/dist/client/assets/{sections-editor-DeOAChIV.js → sections-editor-DGs8wpRP.js} +1 -1
- package/dist/client/assets/{select-MFmOiD7V.js → select-BkMg57qf.js} +1 -1
- package/dist/client/assets/{select-model-CQpO4P5t.js → select-model-Dxh581PI.js} +1 -1
- package/dist/client/assets/{seo-editor-C2CaIIDv.js → seo-editor-46VthC2w.js} +1 -1
- package/dist/client/assets/{separator-BiskJWog.js → separator-XP0nOrIu.js} +1 -1
- package/dist/client/assets/settings-tab-D_5Bm5aU.js +1 -0
- package/dist/client/assets/{sheet-MLWNRYhQ.js → sheet-B4T7-RMg.js} +1 -1
- package/dist/client/assets/{shell-layout-CMz_aZCA.js → shell-layout-BejViDQa.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CmIfl7aD.js → site-draft-actions-QFmuYxUg.js} +1 -1
- package/dist/client/assets/{site-draft-view-DMPeif4U.js → site-draft-view-ffleha4j.js} +1 -1
- package/dist/client/assets/site-editor-By5ShAZu.js +1 -0
- package/dist/client/assets/site-editor-toast-B1S7n1Id.js +1 -0
- package/dist/client/assets/{skills-BqxMFGPE.js → skills-BIRzMqs8.js} +1 -1
- package/dist/client/assets/{slider-D87k16tL.js → slider-B7-Cm7k7.js} +1 -1
- package/dist/client/assets/{sortable.esm-JloqmUYv.js → sortable.esm-CW_p4INX.js} +1 -1
- package/dist/client/assets/{sso-DQRc1SkX.js → sso-BsU2HJVe.js} +1 -1
- package/dist/client/assets/{suggestion-DSascTGX.js → suggestion-DbrJ_AD8.js} +1 -1
- package/dist/client/assets/{switch-CnGPtCHB.js → switch-B_lDpEA0.js} +1 -1
- package/dist/client/assets/{synced-repos-D_gHr2cZ.js → synced-repos-DCv_vlRR.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph--BvwD-9q.js → tab-icon-glyph-6tkQpk4Q.js} +1 -1
- package/dist/client/assets/{table--lSGBU5J.js → table-C6s_VKOi.js} +1 -1
- package/dist/client/assets/{tabs-Cl2CsEMh.js → tabs-DlRJfLwT.js} +1 -1
- package/dist/client/assets/{task-board-BzsqXAQD.js → task-board-DUco_y7A.js} +1 -1
- package/dist/client/assets/{task-route-BCP5p_Kg.js → task-route-CRs-eXmU.js} +1 -1
- package/dist/client/assets/{task-status-C10P7bk5.js → task-status-BOHpGrk3.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-tig154_J.js → taskboard-analytics-fFVrXogo.js} +1 -1
- package/dist/client/assets/tasks-B4qczLXa.js +1 -0
- package/dist/client/assets/{tasks-C-AxxRS8.js → tasks-SWTgaFVa.js} +1 -1
- package/dist/client/assets/{textarea-BA6pOE5t.js → textarea-OklqAHMd.js} +1 -1
- package/dist/client/assets/{thread-analytics-Chj_yROn.js → thread-analytics-DTuM9ZEl.js} +1 -1
- package/dist/client/assets/{thread-intent-CI_dX-N0.js → thread-intent-C1wXk8R2.js} +1 -1
- package/dist/client/assets/{thread-route-jBbjjKNR.js → thread-route-DicZMCve.js} +1 -1
- package/dist/client/assets/{thread-route-BAKmNNyY.js → thread-route-LSwEDNk3.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-kWzPcNxq.js → thread-sheet-body-CEMon8kR.js} +1 -1
- package/dist/client/assets/{time-range-picker-D3aABZRy.js → time-range-picker-C6ZqhnIM.js} +1 -1
- package/dist/client/assets/{toggle-group-Dh3zyTAy.js → toggle-group-5MHxVWOz.js} +1 -1
- package/dist/client/assets/{tool-namespace-DWzf9fHX.js → tool-namespace-Ceqr3QyQ.js} +1 -1
- package/dist/client/assets/{tool-set-selector-Ct1WdfRK.js → tool-set-selector-DLUu043H.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DLr3JTpB.js → toolbar-icon-button-DEBmHG_e.js} +1 -1
- package/dist/client/assets/{tooltip-D_WhUD2W.js → tooltip-DAuc-B32.js} +1 -1
- package/dist/client/assets/{tooltipContext-DBg9OJee.js → tooltipContext-1vhchD6-.js} +1 -1
- package/dist/client/assets/{track-DnomIQY8.js → track-YH0kfWd_.js} +1 -1
- package/dist/client/assets/{types-ASWejG-h.js → types-DyZTbbkk.js} +1 -1
- package/dist/client/assets/{url-slug-C7rIIBEj.js → url-slug-DIlgbobQ.js} +1 -1
- package/dist/client/assets/{usage-stats-XRbUuNdg.js → usage-stats-BebN-2hd.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CP8hIgY3.js → use-ai-providers-DcAVgXsj.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-NujXCbVj.js → use-apply-named-rule-B_Z446Ry.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-Ta68GLzt.js +1 -0
- package/dist/client/assets/{use-automations-QnSiBJK1.js → use-automations-nJoSSUFU.js} +1 -1
- package/dist/client/assets/{use-autosave-vzKNIh7N.js → use-autosave-D5M1H1ld.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DcWNpXou.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-CZu4sqCQ.js → use-chat-layout-state-DlqdI6ik.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BsAhW6oR.js → use-cms-publish-actions-sdbq0KPV.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BPvHx0lV.js → use-connect-companion-DXp8DxZm.js} +1 -1
- package/dist/client/assets/{use-connection-Bh4mFZP8.js → use-connection-Dht5w7Xq.js} +1 -1
- package/dist/client/assets/{use-content-sync-DwMQ9IL5.js → use-content-sync-TbLiRz5C.js} +1 -1
- package/dist/client/assets/{use-copy-Bs4XYM8b.js → use-copy-D33RiL7q.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BsWCfsQ_.js → use-date-fns-locale-BRlda5oW.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CvEiuLQU.js → use-debounced-autosave-DE6eSc27.js} +1 -1
- package/dist/client/assets/{use-debounced-value-pGYMxzxk.js → use-debounced-value-CzIv9NaE.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DYCNC_rr.js → use-deco-credits-BaQvGBEw.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-d_M9Hjhx.js → use-decopilot-events-DjIuYjOP.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C4bEnWu4.js → use-delete-connection-aPrSXyAj.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DbaoxO_S.js → use-deployment-admin-CUut_j3Q.js} +1 -1
- package/dist/client/assets/{use-entitlements-CpaMfout.js → use-entitlements-D3oGZGk4.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-D7lYg71A.js → use-fast-preview-draft-url-axvbwLaV.js} +1 -1
- package/dist/client/assets/{use-file-configs-DXg7w0ah.js → use-file-configs-5QRblAyS.js} +1 -1
- package/dist/client/assets/{use-id-selection-BUJSoF-P.js → use-id-selection-BvQC2CH0.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-dFlcVIpe.js → use-inbox-feed-B_E5DqhG.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-oh57fQW8.js → use-infinite-scroll-DUyqnU8Z.js} +1 -1
- package/dist/client/assets/{use-join-requests-rNOmuzaG.js → use-join-requests-Dz7yS88x.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-ChV3O5om.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-CHVe_UL9.js → use-mcp-auth-status-BwIqp-AR.js} +1 -1
- package/dist/client/assets/{use-mcp-client-TeUnMSC4.js → use-mcp-client-Ce3gHVGN.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DDyg7FMp.js → use-mcp-prompts-Dq9WwEe3.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dfsa_hrX.js → use-mcp-tools-DuEgTWI8.js} +1 -1
- package/dist/client/assets/{use-mobile-BbP62vju.js → use-mobile-CW1BshYp.js} +1 -1
- package/dist/client/assets/{use-move-blocks-Bi-2K9Wd.js → use-move-blocks-B6bkFBMu.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-8ajznGe2.js → use-navigate-to-agent-DEmRYJP2.js} +1 -1
- package/dist/client/assets/{use-org-fs-Bz2ywQpd.js → use-org-fs-Dj3nhg6p.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-zcGBRnsE.js → use-org-repo-syncs-BssG7LDG.js} +1 -1
- package/dist/client/assets/{use-org-sso-YfhiI7Na.js → use-org-sso-CPPSm2_k.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BRBR1fOm.js → use-organization-settings-Bxmr_gqX.js} +1 -1
- package/dist/client/assets/{use-project-scope-GFa4JvNG.js → use-project-scope-Cp4z8A1-.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CWh8PA7D.js → use-recent-apps-BZ6rxv5O.js} +1 -1
- package/dist/client/assets/use-reports-diagnostic-C7WA1MXv.js +1 -0
- package/dist/client/assets/{use-sandbox-events-68YztdQP.js → use-sandbox-events-D_ekj7qC.js} +1 -1
- package/dist/client/assets/{use-secrets-BhPSZQfa.js → use-secrets-CaIOigN4.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-3lOa0tAM.js → use-section-preview-base-C1Vehe6q.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CfApMrjn.js → use-sidebar-collapsed-BzixWcm4.js} +1 -1
- package/dist/client/assets/{use-tags-rAc8X0bx.js → use-tags-CKT9rJaQ.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BEP1IVqq.js → use-task-board-analytics-GfBHZgc-.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BQOt8K6j.js → use-task-board-events-B65L1qbJ.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Dpg9J2j_.js → use-task-board-item-prs-BVht1yZk.js} +1 -1
- package/dist/client/assets/{use-task-board-items-rcG1gNIH.js → use-task-board-items-D_dsOzO4.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-OFKn7DUf.js → use-task-board-prompts-CNi_885P.js} +1 -1
- package/dist/client/assets/{use-task-metadata-PVdfMsAN.js → use-task-metadata-CVbCX8pH.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-B_TAH3sz.js → use-thread-outputs-BgwiVnbA.js} +1 -1
- package/dist/client/assets/{use-voice-input-Dx_WJHtm.js → use-voice-input-qp904jOd.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CCCREFcj.js +1 -0
- package/dist/client/assets/{useQueries-CR738UlN.js → useQueries-_uQRl1Uh.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CIdX85h2.js +1 -0
- package/dist/client/assets/{users-CMO3k4s-.js → users-D-5oJ2Ks.js} +1 -1
- package/dist/client/assets/{utils-Bbsz503j.js → utils-CWqleJYQ.js} +1 -1
- package/dist/client/assets/{variant-calendar-BHsjE51A.js → variant-calendar-WDduM77l.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-_Rve3iRZ.js → variant-matcher-override-Bb9J_WJV.js} +1 -1
- package/dist/client/assets/{view-header-C--lK37a.js → view-header-BdEbmY1e.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CAdekzcm.js → virtual-mcp-B5SyuXEj.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DhHWqGJ6.js → watch-sse-pool-BQPiLe0y.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +616 -616
- package/package.json +1 -1
- package/dist/client/assets/ReferenceLine-CEoolREz.js +0 -1
- package/dist/client/assets/agent-app-h9dvewo_.js +0 -1
- package/dist/client/assets/agent-deck-BCxKCrzx.js +0 -1
- package/dist/client/assets/agent-experiments-DCgjZH4p.js +0 -1
- package/dist/client/assets/agent-library-Mjv8f5mE.js +0 -1
- package/dist/client/assets/agent-library-file-jHy8SGkc.js +0 -1
- package/dist/client/assets/agent-overview-vbL61vSj.js +0 -1
- package/dist/client/assets/agent-settings-C2R4yKuP.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CPa8HId6.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DPYtm9fq.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DlIkhRRY.js +0 -1
- package/dist/client/assets/agent-view-AO-J0D6v.js +0 -1
- package/dist/client/assets/api-keys-Ca6cGjfN.js +0 -1
- package/dist/client/assets/automations-CgCrXng3.js +0 -1
- package/dist/client/assets/cms-store-drafts-Cmau_Xpk.js +0 -1
- package/dist/client/assets/library-YQBdctuF.js +0 -1
- package/dist/client/assets/project-app-view-oayAW59Y.js +0 -1
- package/dist/client/assets/project-reports-D6yXFUI4.js +0 -1
- package/dist/client/assets/project-tasks-CxdDJlKX.js +0 -1
- package/dist/client/assets/record-editor-D0DXAuHN.js +0 -1
- package/dist/client/assets/reports-CH4MzjC3.js +0 -1
- package/dist/client/assets/repositories-Bvcf-KuW.js +0 -1
- package/dist/client/assets/route-DgZ0eIWH.js +0 -1
- package/dist/client/assets/settings-tab-DQ4iDk73.js +0 -1
- package/dist/client/assets/site-editor-Br6S_qwB.js +0 -1
- package/dist/client/assets/site-editor-toast-6KgkdfPr.js +0 -1
- package/dist/client/assets/tasks-CE1MQpDZ.js +0 -1
- package/dist/client/assets/use-ask-in-chat-D3qra8L7.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-CrOozSZ7.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-_zYm5HQh.js +0 -1
- package/dist/client/assets/use-reports-diagnostic-BrE3eDqC.js +0 -1
- package/dist/client/assets/useInfiniteQuery-v4D5ym6Y.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DOWp786v.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eP as P,eQ as S,c as R,q as Z,i as F,K as g,eR as je,aB as wn,aF as Sn,aG as yn,r as L,a as En,at as ke,a5 as On,by as yt,eS as Dn,eT as kn,eU as Et,ar as In,bo as Ot,bh as B,eV as _n,eW as Tn,eX as q,eY as Pn,eZ as Rn,e_ as fe,e$ as xn,f0 as Dt,f1 as kt,f2 as $n,f3 as Nn,a3 as jn,f4 as Cn,t as ee,j as Y}from"./index-ucJDxPyE.js";import{u as It}from"./use-voice-input-Dx_WJHtm.js";import{s as et}from"./thread-intent-CI_dX-N0.js";import{u as Ce}from"./use-blocks-v8-project-CrOozSZ7.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{s as An}from"./utils-Bbsz503j.js";import{u as Ae}from"./repository-binding-BWkpkFiy.js";import{u as Un}from"./chat-context-DSkOndUS.js";import{i as Mn,u as Ln}from"./use-sandbox-events-68YztdQP.js";import{a as Fn}from"./sandbox-git-api-DcqI6XE4.js";const K="deco-content",Ie={major:1},_t=1;async function Qn(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 _e={major:Ie.major,minor:_t},Tt=`the endpoint speaks an older ${K} than this client needs (${_e.major}.${_e.minor} or newer): update @decocms/blocks in the site (8.2.0 or newer) and start deco serve again`;function se(e,t,n){const o={reason:t,required:{..._e}};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 P(S.Unsupported,e,o)}function Pt(e){const t=e??{},{protocol:n,version:o}=t;if(n!==K)throw se(`the endpoint speaks ${JSON.stringify(n)}, not ${K}`,"protocol",t);if(o?.major!==Ie.major)throw se(`the endpoint speaks ${K} ${String(o?.major)}.x; this client speaks ${Ie.major}.x`,"major",t);if(typeof o.minor!="number"||o.minor<_t)throw se(Tt,"outdated",t);return e}function tt(e,t){return t.code===S.MethodNotFound&&e.startsWith("changes.")?se(Tt,"outdated"):P.from(t)}function Ue(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 c;try{c=await Qn(a)}catch{throw new P(S.Unavailable,`the endpoint answered HTTP ${a.status} without a JSON-RPC body`)}if(!a.ok||!Array.isArray(c)&&c?.id===null){const l=c?.error;throw l?P.from(l):new P(S.Unavailable,`the endpoint answered HTTP ${a.status}`)}return c}const r=async(s,i)=>{const a=n++,c=await o({jsonrpc:"2.0",id:a,method:s,params:i??{}});if(c.error)throw tt(s,c.error);return c.result};return{call:r,describe:async()=>Pt(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((l,f)=>({jsonrpc:"2.0",id:i[f],method:l.method,params:l.params??{}}))),c=new Map(a.map(l=>[l.id,l]));return i.map((l,f)=>{const u=c.get(l);return u?u.error?{ok:!1,error:tt(s[f].method,u.error)}:{ok:!0,result:u.result}:{ok:!1,error:new P(S.InternalError,"no response for this call")}})}}}function Me(e){return e&&!e.edited?{ifNoneMatch:e.revision}:{}}const nt=20,ot=5,rt=500;function Le(e){return e instanceof P?e.code===S.MethodNotFound?!0:e.code===S.Unsupported&&e.data?.reason==="outdated":!1}function de(e,t){return t.notModified?e?{...e,base:t.base}:null:{revision:t.revision,base:t.base,changes:t.changes}}async function Vn(e,t,n){const o=g.contentChanges(n),r=e.getQueryData(o),s=await t.changesList(Me(r)),i=de(r,s);if(i)return i;const a=await t.changesList({});return de(void 0,a)}async function Rt(e,t){const n=[];for(let s=0;s<t.length;s+=nt)n.push(t.slice(s,s+nt));const o=Object.create(null),r=[];for(let s=0;s<n.length;s+=ot){const i=await e.batch(n.slice(s,s+ot).map(a=>({method:"changes.get",params:{names:a}})));for(const a of i){if(!a.ok)throw a.error;const c=a.result;Object.assign(o,c.entries),r.push(...c.diagnostics)}}return{entries:o,diagnostics:r}}async function Vr(e,t){let n={revision:"",versions:{}};for(let o=0;o<t.length;o+=rt){const r=t.slice(o,o+rt),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 Br(e){return e instanceof P&&e.code===S.Conflict}function Fe(e){return e?.kind==="protocol"?e:null}function Hr(e,t,n){const o=R.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=Fe(e),o[2]=e,o[3]=a):a=o[3];const c=a,l=!!c&&!!t&&s.enabled!==!1;let f;o[4]!==t?(f=g.contentChanges(t??""),o[4]=t,o[5]=f):f=o[5];let u;o[6]!==t||o[7]!==l||o[8]!==c||o[9]!==i?(u=l?()=>Vn(i,c.client,t):je,o[6]=t,o[7]=l,o[8]=c,o[9]=i,o[10]=u):u=o[10];let d;return o[11]!==f||o[12]!==u?(d={queryKey:f,queryFn:u,staleTime:0},o[11]=f,o[12]=u,o[13]=d):d=o[13],F(d)}function Jr(e,t,n){const o=R.c(14);let r;o[0]!==e?(r=Fe(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,c=!!s&&!!t&&!!n&&a.length>0;let l;o[4]!==t||o[5]!==n?.revision?(l=g.contentChangeSides(t??"",n?.revision??""),o[4]=t,o[5]=n?.revision,o[6]=l):l=o[6];let f;o[7]!==c||o[8]!==a||o[9]!==s?(f=c?()=>Rt(s.client,a):je,o[7]=c,o[8]=a,o[9]=s,o[10]=f):f=o[10];let u;return o[11]!==l||o[12]!==f?(u={queryKey:l,queryFn:f,staleTime:Number.POSITIVE_INFINITY},o[11]=l,o[12]=f,o[13]=u):u=o[13],F(u)}function Wr(e,t,n){const o=R.c(16);let r;o[0]!==e?(r=Fe(e),o[0]=e,o[1]=r):r=o[1];const s=r;let i,a,c,l;if(o[2]!==t||o[3]!==n?.changes||o[4]!==s){const d=Object.entries(n?.changes??{}).filter(Gn).map(Wn).sort(Jn);a=d.map(Hn);const h=JSON.stringify(d.map(Bn));i=!!s&&!!t&&a.length>0,l=F,c=g.contentDeletedCopies(t??"",h),o[2]=t,o[3]=n?.changes,o[4]=s,o[5]=i,o[6]=a,o[7]=c,o[8]=l}else i=o[5],a=o[6],c=o[7],l=o[8];let f;o[9]!==i||o[10]!==a||o[11]!==s?(f=i?async()=>{const d=await Rt(s.client,a),h=Object.create(null);for(const[b,v]of Object.entries(d.entries))h[b]=v.before&&typeof v.before=="object"?v.before:null;return h}:je,o[9]=i,o[10]=a,o[11]=s,o[12]=f):f=o[12];let u;return o[13]!==c||o[14]!==f?(u={queryKey:c,queryFn:f,staleTime:Number.POSITIVE_INFINITY,placeholderData:wn},o[13]=c,o[14]=f,o[15]=u):u=o[15],l(u)}function Bn(e){return[e.name,e.base]}function Hn(e){return e.name}function Jn(e,t){return e.name<t.name?-1:e.name>t.name?1:0}function Wn(e){const[t,n]=e;return{name:t,base:n.baseVersion??""}}function Gn(e){const[,t]=e;return t.kind==="delete"}function xt(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 he(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 $t=Sn({endpoint:yn().max(2048).refine(e=>xt(e)&&new URL(e).pathname==="/rpc").transform(he)});function Gr(e){const t=new URLSearchParams(e.replace(/^#/,"")),n=$t.safeParse({endpoint:t.get("endpoint")??""});return n.success?n.data:null}function Nt(e){const t=$t.safeParse(e);return t.success?t.data:null}const jt="studio:deco-serve-last";function Yr(e){try{localStorage.setItem(jt,JSON.stringify(e))}catch{}}function zr(){try{const e=localStorage.getItem(jt);return e?Nt(JSON.parse(e)):null}catch{return null}}function Xr(e){try{return new URL(he(e)).host}catch{return e}}function Yn(e,t=1e4){return Math.min(1e3*2**Math.max(0,e-1),t)}const zn="http://localhost:4545/rpc";class Qe extends Error{constructor(t="the endpoint isn't deco serve"){super(t),this.name="NotDecoServeError"}}function Xn(e){if(e instanceof Qe)return{reason:"not-deco-serve"};if(!(e instanceof P))return{reason:"not-answering"};switch(e.code){case S.Unauthorized:case S.MethodNotFound:return{reason:"outdated"};case S.Unsupported:return Le(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 Zr(e,t){if(e)return[he(e.endpoint)];const n=[t?.endpoint,zn].filter(o=>!!o).map(he);return[...new Set(n)]}const Ct=L.createContext(null);function Zn(e){const t=R.c(24),n=L.useContext(Ct),o=Ce(n?null:e),{data:r}=En.useSession(),s=r?.user?.id??"",i=!!e&&!!s;let a;t[0]!==i||t[1]!==s||t[2]!==e?(a=i?ke.decoServeConnection(s,e):null,t[0]=i,t[1]=s,t[2]=e,t[3]=a):a=t[3];const[c,l]=it(a);let f;t[4]!==i||t[5]!==s||t[6]!==e?(f=i?ke.decoServeEndpoint(s,e):null,t[4]=i,t[5]=s,t[6]=e,t[7]=f):f=t[7];const[u,d]=it(f);if(n)return n;let h;t[8]!==c||t[9]!==i||t[10]!==o?(h=i&&o?Nt(c):null,t[8]=c,t[9]=i,t[10]=o,t[11]=h):h=t[11];const b=h,v=i&&o&&typeof u=="string"?u:null;let w;t[12]!==d||t[13]!==l||t[14]!==i?(w=x=>{i&&(l(x),d(x.endpoint))},t[12]=d,t[13]=l,t[14]=i,t[15]=w):w=t[15];let I;t[16]!==l||t[17]!==i?(I=()=>{i&&l(null)},t[16]=l,t[17]=i,t[18]=I):I=t[18];let E;return t[19]!==b||t[20]!==v||t[21]!==w||t[22]!==I?(E={connection:b,lastEndpoint:v,set:w,clear:I},t[19]=b,t[20]=v,t[21]=w,t[22]=I,t[23]=E):E=t[23],E}function st(e){try{const t=localStorage.getItem(e);return t===null?null:JSON.parse(t)}catch{return null}}function it(e){const t=R.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?st(e):null,a=()=>e?st(e):null,t[2]=e,t[3]=i,t[4]=a):(i=t[3],a=t[4]);const c=!!e;let l;t[5]!==s||t[6]!==i||t[7]!==a||t[8]!==c?(l={queryKey:s,queryFn:i,initialData:a,enabled:c,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[5]=s,t[6]=i,t[7]=a,t[8]=c,t[9]=l):l=t[9];const{data:f}=F(l);let u;t[10]!==e||t[11]!==n||t[12]!==s?(u=v=>{if(e){try{v===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(v))}catch{}n.setQueryData(s,v)}},t[10]=e,t[11]=n,t[12]=s,t[13]=u):u=t[13];const d=u,h=e?f??null:null;let b;return t[14]!==d||t[15]!==h?(b=[h,d],t[14]=d,t[15]=h,t[16]=b):b=t[16],b}function qr(e){return e.kind==="protocol"||e.kind==="unavailable"}function Kr(e){const t=e.hasOrg?e.orgFlag:!1,{backend:n}=e;return n===null||n==="legacy"?t:!0}function es(e,t,n){return t!=="github"||!n?!1:e.kind==="pending"?!0:e.kind==="unavailable"&&e.siteNotOwned?!1:(e.kind==="protocol"||e.kind==="unavailable")&&e.source==="github"}function ts(e){if(e.kind!=="protocol"||e.source!=="local")return null;const t=e.describe.preview?.url;return t&&xt(t)?t:null}function ns(e,t){return e.kind!=="protocol"||e.source!=="local"||!e.describe.assets||!t?null:new URL(t.endpoint).origin}function At(e){return e.hasServeConnection?"local":e.runtime==="sandbox"?"sandbox":"github"}function qn(e){if(!e.hasProject)return"legacy";const t=At(e);if(t==="local")return"protocol-local";if(!e.v8)return"legacy";if(t==="sandbox"){const o=e.sandboxSite;return o==="ready"?"protocol-sandbox":o==="error"?"retrying-sandbox":"pending"}const n=e.githubSite;return n==="ready"?"protocol-github":n==="not-owned"?"site-not-owned-github":n==="error"?"unavailable-github":"pending"}function Kn(e){return{github:e.v8&&e.mode==="github",sandbox:e.v8&&e.mode==="sandbox"&&e.workingTreeReady}}function at(e){return e.isError||e.errorUpdateCount>0}function eo(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 to(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 Ut="__noSchema";function Mt(){return{manifest:{blocks:{}},schema:{definitions:{},root:{}},[Ut]:!0}}function os(e){return!!e&&e[Ut]===!0}function Ve(e){if(!e.ok)return e.error.code===S.NotFound;const t=e.result;return t.notModified===!1&&t.schema===null}function no(e,t){return(typeof t.name=="string"?t.name.trim():"")||e}const oo=(e,t)=>e.label.localeCompare(t.label)||e.key.localeCompare(t.key);function rs(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:no(n,r)}),t.set(s,i)}return[...t.entries()].map(([n,o])=>({resolveType:n,blocks:o.sort(oo)})).sort((n,o)=>n.resolveType===null?1:o.resolveType===null?-1:ct(n.resolveType).localeCompare(ct(o.resolveType))||n.resolveType.localeCompare(o.resolveType))}function ct(e){return(e.split("/").filter(Boolean).at(-1)??e).replace(/\.(tsx?|jsx?)$/,"")||e}function lt(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]=lt(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?lt(s[a],r,n):s[a];return i}return e}function ss(e){if(e.trim()==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}class ut extends Error{}const Be="site-not-owned";async function ro(e){return e.status!==409?!1:(await e.clone().json().catch(()=>null))?.code==="site_not_owned"}async function so(e,t=n=>fetch(n)){const n=Ue({endpoint:e,fetch:async o=>{const r=await t(o);if(await ro(r))throw new ut;return r}});try{return await Je(n)}catch(o){if(o instanceof ut)return Be;throw o}}async function io(e,t,n){await t();const o=await so(e,n);return o===Be?o:{...o,hosted:Dn(e,n)}}const He=5e3;function ao(e){if(!e.site)throw new Error("this project names no site");return kn(e.site,e.branch)}function co(e){return new URL(me(e,"rpc"),window.location.origin).href}async function Je(e){const[t,n]=await e.batch([{method:"describe"},{method:"schema.get"}]);if(!t?.ok)throw t?.error??new Error("no describe");if(t.result?.protocol!==K)throw new Qe;const r=Pt(t.result);if(!n)throw new Error("no schema.get");if(Ve(n))return{client:e,describe:r,hasSchema:!1};if(n.ok)return{client:e,describe:r,hasSchema:!0};throw n.error}function lo(e,t=n=>fetch(n)){return Je(Ue({endpoint:e,fetch:t}))}function oe(e,t){const n=R.c(50),{org:o}=On(),{connection:r}=Zn(e),{runtime:s}=It(e),i=L.useContext(Ct),a=Ce(e),c=yt(Ae(e)?.metadata),l=At({hasServeConnection:!!r,runtime:s}),f=Un()?.taskId??null,u=Mn(Ln().lifecycle.phase),d=Z(),h=Kn({mode:l,v8:a,workingTreeReady:u}),b=h.github&&!!o.slug&&!!e&&!!t,v=F({queryKey:g.contentBackend(o.slug,e??"",t??"","github"),queryFn:()=>io(ao({orgSlug:o.slug,site:c,branch:t}),()=>Et(c,t)),enabled:b,staleTime:Number.POSITIVE_INFINITY,...ft}),w=h.sandbox&&!!o.slug&&!!e&&!!t;let I;n[0]!==t||n[1]!==o.slug||n[2]!==f||n[3]!==e?(I=()=>lo(co({orgSlug:o.slug,virtualMcpId:e,branch:t,threadId:f})),n[0]=t,n[1]=o.slug,n[2]=f,n[3]=e,n[4]=I):I=n[4];const E=F({queryKey:g.contentBackend(o.slug,e??"",t??"","sandbox",f??""),queryFn:I,enabled:w,staleTime:Number.POSITIVE_INFINITY,...ft}),x=!!r;let _;n[5]!==r?.endpoint||n[6]!==o.slug||n[7]!==e?(_=g.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[5]=r?.endpoint,n[6]=o.slug,n[7]=e,n[8]=_):_=n[8];let N;n[9]!==r?(N=()=>Je(Ue({endpoint:r.endpoint})),n[9]=r,n[10]=N):N=n[10];let $;n[11]!==x||n[12]!==_||n[13]!==N?($={queryKey:_,queryFn:N,enabled:x,staleTime:Number.POSITIVE_INFINITY,retry:ho,retryDelay:fo,refetchInterval:uo},n[11]=x,n[12]=_,n[13]=N,n[14]=$):$=n[14];const p=F($);let U;n[15]!==r?.endpoint||n[16]!==o.slug||n[17]!==e?(U=g.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[15]=r?.endpoint,n[16]=o.slug,n[17]=e,n[18]=U):U=n[18];const D=U;let T;n[19]!==r?.endpoint||n[20]!==o.slug||n[21]!==e?(T=g.contentBackend(o.slug,e??"","local-describe",r?.endpoint??""),n[19]=r?.endpoint,n[20]=o.slug,n[21]=e,n[22]=T):T=n[22];let j;n[23]!==p.data||n[24]!==D||n[25]!==d?(j=async()=>{try{return await p.data.client.describe()}catch(m){const J=m;throw d.invalidateQueries({queryKey:D,exact:!0},{cancelRefetch:!1}),J}},n[23]=p.data,n[24]=D,n[25]=d,n[26]=j):j=n[26];const C=!!p.data&&!i;let O;n[27]!==T||n[28]!==j||n[29]!==C?(O={queryKey:T,queryFn:j,enabled:C,refetchInterval:He,retry:!1},n[27]=T,n[28]=j,n[29]=C,n[30]=O):O=n[30];const A=F(O).data??p.data?.describe,k=qn({hasProject:!!e,hasServeConnection:!!r,runtime:s,v8:a,githubSite:v.data===Be?"not-owned":v.data?"ready":at(v)?"error":"loading",sandboxSite:go({data:E.data,isError:at(E),workingTreeReady:u})});if(k==="pending"){let m;return n[31]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"pending"},n[31]=m):m=n[31],m}if(k==="retrying-sandbox"){let m;return n[32]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"pending",retrying:"sandbox"},n[32]=m):m=n[32],m}if(k==="legacy"){let m;return n[33]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"legacy"},n[33]=m):m=n[33],m}if(k==="protocol-github"){const m=v.data;let J;n[34]!==m?(J=Te("github",m,""),n[34]=m,n[35]=J):J=n[35];let re;return n[36]!==c||n[37]!==J?(re={...J,site:c},n[36]=c,n[37]=J,n[38]=re):re=n[38],re}if(k==="site-not-owned-github"){let m;return n[39]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"unavailable",source:"github",siteNotOwned:!0},n[39]=m):m=n[39],m}if(k==="protocol-sandbox"){let m;return n[40]!==E.data?(m=Te("sandbox",E.data,":sandbox"),n[40]=E.data,n[41]=m):m=n[41],m}if(k==="unavailable-github"){let m;return n[42]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"unavailable",source:"github"},n[42]=m):m=n[42],m}const Q=p.error??p.failureReason,y=r?.endpoint??"";let V;return n[43]!==A||n[44]!==p.data||n[45]!==p.failureCount||n[46]!==p.isError||n[47]!==y||n[48]!==Q?(V=bo({probed:p.data,isError:p.isError,failureCount:p.failureCount,failure:Q,describe:A,endpoint:y}),n[43]=A,n[44]=p.data,n[45]=p.failureCount,n[46]=p.isError,n[47]=y,n[48]=Q,n[49]=V):V=n[49],V}function uo(e){return e.state.status==="error"||e.state.data?.hasSchema===!1?He:!1}function fo(e){return Yn(e+1)}function ho(e,t){return!(t instanceof P)&&!(t instanceof Qe)}function go(e){return e.data!==void 0?"ready":e.workingTreeReady?e.isError?"error":"loading":"unavailable"}const vo=3;function bo(e){const t=e.probed?Te("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<vo?t:{kind:"unavailable",source:"local",problem:Xn(e.failure)}:t??{kind:"pending"}}const ft={retry:2,refetchInterval:e=>e.state.status==="error"?He:!1};function Te(e,t,n){return{kind:"protocol",source:e,client:t.client,describe:t.describe,cacheKeySuffix:n,hasSchema:t.hasSchema,...t.hosted?{hosted:t.hosted}:{}}}function Lt(e){const t=R.c(12);let n;t[0]!==e?(n=ke.localPreviewUrl(e??""),t[0]=e,t[1]=n):n=t[1];const o=n,[r,s]=In(o,null),i=Ce(e);let a;t[2]!==r||t[3]!==e?(a=e?et(r):null,t[2]=r,t[3]=e,t[4]=a):a=t[4];const l=i?null:a;let f,u;t[5]!==s?(f=h=>s(et(h)),u=()=>s(null),t[5]=s,t[6]=f,t[7]=u):(f=t[6],u=t[7]);let d;return t[8]!==l||t[9]!==f||t[10]!==u?(d={url:l,setUrl:f,clear:u},t[8]=l,t[9]=f,t[10]=u,t[11]=d):d=t[11],d}function po(e,t){const n=(e??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${t}`:t}function dt(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!="object"||t===null||Array.isArray(t)?null:t}function we(e,t,n){return["decofile-write",e,t,n]}function mo(e,t,n){return{id:we(e,t,n).join(":")}}class We 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 Ge(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function Ye(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function wo(e,t){const n=await e.json().catch(()=>({}));throw new Error(n.error??`${t} failed (${e.status})`)}function So(e,t,n){e.setQueryData(g.decofileDraft(Ge(t)),n)}function yo(e,t){return e.getQueryData(g.decofileDraft(Ge(t)))??null}async function Eo(e,t){return(await fetch(Ye(e),{cache:"no-store",headers:{"if-none-match":`"${t}"`}}).catch(()=>null))?.status===200}function is(e){const t=R.c(4);let n;t[0]!==e?(n=g.decofileDraft(e?Ge(e):""),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:Oo,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=F(o);return r??null}async function Oo(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function Do(e,t){const n=await fetch(Ye(t),{cache:"no-store"});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&&So(e,t,{version:o.version,token:o.token,apiHost:o.apiHost??window.location.host}),o.decofile}async function as(e,t){const n=await fetch(Ye(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 We(r.blocks??[],r.error??"Block changed"):new Error(r.error??`Save failed (${n.status})`)}if(!n.ok)return wo(n,"Save");const o=await n.json();return{...o,apiHost:o.apiHost??window.location.host}}const Ft=3e3,ko=15e3,Io=2*6e4,Qt={now:()=>Date.now(),setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),hidden:()=>typeof document<"u"&&document.visibilityState==="hidden"};function _o(e){return e<Io?Ft:ko}function To(e,t=Qt){const n=t.now();let o=!1,r=!1,s=null;const i=()=>{o||(s=t.setTimeout(a,_o(t.now()-n)))},a=()=>{if(s=null,o)return;const{read:c,skip:l}=e();if(r||t.hidden()||l?.()){i();return}r=!0;let f;try{f=c()}catch{f=void 0}Promise.resolve(f).catch(()=>{}).finally(()=>{r=!1}),i()};return i(),()=>{o=!0,s!==null&&t.clearTimeout(s)}}const ht=()=>0;function Po(e,t,n=Qt){const o=L.useRef(t);o.current=t;const[r]=L.useState(()=>({polling:()=>To(()=>o.current,n),idle:()=>()=>{}}));L.useSyncExternalStore(e?r.polling:r.idle,ht,ht)}function Vt(e,t){return me(e,t)}function Ro(e,t){return me(e,"preview-fetch",{path:t})}function cs(e){return Vt(e,"preview-invoke")}function ls(e){return Vt(e,"catalog-invoke")}function Bt(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 xo(){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&&Bt(n))return n}return null}function $o(e,t){const n=e.previewUrl??e.getFallbackPreviewUrl?.()??xo();return n&&Bt(n)?new URL(t,n).toString():Ro(e,t)}function No(e){return $o(e,"/.decofile")}function jo(e){return e===400?"absent":e===404?"unavailable":e>=200&&e<300?"ok":"error"}function gt(e){return e.liveOk||e.committedAbsent?404:e.liveStatus??502}async function Co(e,t){const n=me(e,"read"),o=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:t,full:!0})}),r=jo(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:An(s.content)}}async function Ao(e,t){const n=await Co(e,t);if(n.kind!=="data")return n;try{return{kind:"data",data:JSON.parse(n.data)}}catch{return{kind:"unavailable"}}}async function us(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 Uo(e){return Ae(e)?.metadata?.runtime?.path??null}class Ht extends Error{constructor(t){super(t instanceof Error?t.message:String(t),{cause:t}),this.name="ServeLostError"}}function fs(e){return e instanceof P&&e.code===S.Conflict}function Jt(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 ze extends Error{constructor(){super("The draft's changes couldn't be read"),this.name="HostedDraftUnreadError"}}class Xe extends Error{constructor(){super("The blocks kept changing while the change was saved"),this.name="HostedKeptChangingError"}}function ds(e,t){return(t instanceof ze||t instanceof Xe)&&(t.message=Wt(e,t,"github")),t}function Wt(e,t,n){if(t instanceof ze)return e("siteEditor.save.draftUnread");if(t instanceof Xe)return e("siteEditor.save.keptChanging");if(t instanceof We)return t.message;if(n==="local")return Lo(e,t);if(t instanceof P)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 Mo(e,t){if(t==="local"||e instanceof We||e instanceof ze||e instanceof Xe)return null;if(e instanceof P){const n=e.code===S.InvalidBlock||e.code===S.InvalidParams?Jt(e):e.message;return n?`${e.code}: ${n}`:null}return e.message||null}function Lo(e,t){if(t instanceof Ht)return e("decoServe.save.serverGone");if(t instanceof P)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:Jt(t)});case S.LimitExceeded:return e("decoServe.save.tooLarge")}return e("sectionsEditor.sectionsEditor.saveFailed",{error:t.message})}function Fo(e,t,n){return e===null?0:Math.max(0,n-Math.max(0,t-e))}function Qo(e,t){const[n,o]=L.useState(e),r=L.useRef(null);return e&&!n&&o(!0),L.useEffect(()=>{if(e){r.current??=Date.now();return}if(!n)return;const s=()=>{r.current=null,o(!1)},i=Fo(r.current,Date.now(),t);if(i===0){s();return}const a=setTimeout(s,i);return()=>clearTimeout(a)},[e,n,t]),n}const Vo="decocms:content-writes",Pe=new Set;let G;function Gt(){if(G!==void 0)return G;G=null;try{typeof BroadcastChannel=="function"&&(G=new BroadcastChannel(Vo),G.addEventListener("message",e=>{const t=e.data?.cacheKey;if(typeof t=="string")for(const n of[...Pe])n(t)}))}catch{G=null}return G}function Bo(e){try{Gt()?.postMessage({cacheKey:e})}catch{}}function Ho(e){return Gt(),Pe.add(e),()=>{Pe.delete(e)}}const Yt="__at=",zt="__test=",Jo=/^[0-9a-f]{12}-[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;function Wo(e){return e.at!==void 0||Object.keys(e.tests??{}).length>0}function X(e){return typeof e=="string"&&Jo.test(e)}function vt(e){return encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function Go(e){const t=e.tests??{};return[...e.at!==void 0?[Yt+vt(e.at)]:[],...Object.keys(t).map(n=>zt+vt(`${n}=${t[n]?"on":"off"}`))]}function bt(e,t){const o=[...e.split("&").filter(r=>r&&!r.startsWith(Yt)&&!r.startsWith(zt)),...t];return o.length>0?`?${o.join("&")}`:""}function ge(e,t){const n=Go(t),o=e.indexOf("?"),r=o===-1?e:e.slice(0,o);if(X(r))return r+bt(o===-1?"":e.slice(o+1),n);const s=e.lastIndexOf("@");if(s<=0)return e;const i=e.slice(0,s),a=i.indexOf("?"),c=a===-1?i:i.slice(0,a),l=a===-1?"":i.slice(a+1);return`${c}${bt(l,n)}${e.slice(s)}`}function hs(e,t,n){if(!Wo(t))return e;try{const o=new URL(e),r=o.searchParams.get("__draft");return r&&r!=="off"?(o.searchParams.set("__draft",ge(r,t)),o.toString()):X(n)?(o.searchParams.set("__draft",ge(n,t)),o.toString()):e}catch{return e}}function gs(e,t,n="/"){if(!e||!X(t))return null;try{const o=new URL(n,e);return o.searchParams.set("__draft",t),o.toString()}catch{return null}}function Xt(e){return btoa(encodeURIComponent(e))}function vs(e,t,n){const o=Yo(e,t,n);return o.searchParams.set("__cb",crypto.randomUUID()),o.toString()}function Yo(e,t,n){const o=new URL(e).origin,r=new URL(`/live/previews/${encodeURIComponent(t)}`,o);return r.searchParams.set("path","/"),r.searchParams.set("pathTemplate","/"),r.searchParams.set("props",Xt(JSON.stringify({path:"/",sections:[{__resolveType:n}]}))),r}const zo="__draft";function bs(e){return`${`${e.apiHost}/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}?token=${e.token}`}@${e.version}`}const Xo="off";function Zo(e,t){if(!t)return e;const n=new URL(e);return n.searchParams.set(zo,t),n.toString()}function ps(e){const t=e.pageBlock.__resolveType;if(typeof t!="string"||!t)return null;const n=new URL(e.previewBaseUrl).origin,o=new URL(`/live/previews/${encodeURIComponent(t)}`,n);o.searchParams.set("__decoFBT","0"),o.searchParams.set("__d",""),o.searchParams.set("path",e.path),o.searchParams.set("pathTemplate",e.pathTemplate);const{__resolveType:r,...s}=e.pageBlock,i=JSON.stringify({__props:s,__decofile:e.decofile});return{src:o.toString(),body:i}}function ms(e,t,n,o){const r=new URL(e).origin,s=new URL(`/live/previews/${encodeURIComponent(t)}`,r);s.searchParams.set("__d","");const i=[{__resolveType:"preview",block:n}];return o&&i.push(o),s.searchParams.set("props",Xt(JSON.stringify({sections:i}))),s.toString()}function ws(e){return e.fastPreviewActive&&e.previewServerUrl?e.previewServerUrl:e.sandboxUrl??null}const pt="__variant=";function Zt(e,t,n){return`${e}@${t}=${n}`}function Ss(e,t){return!e||!t.multivariate||t.variants.length<=1?[]:t.index<0||t.index>=t.variants.length?[]:[Zt(e,"sections",t.index)]}function ys(e){const t=Array.isArray(e.mvObj.variants)?e.mvObj.variants:[];if(!e.pageKey||e.sectionIndex<0)return[];if(e.selectedVariantIndex<0||e.selectedVariantIndex>=t.length)return[];const o=`${e.page.multivariate?`sections.variants.${e.page.index}.value${e.page.lazyValues?".value":""}`:"sections"}.${e.sectionIndex}${e.sectionLazy?".section":""}`;return[Zt(e.pageKey,o,e.selectedVariantIndex)]}function Es(e,t){return[...t,...e]}function qo(e){return encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function Ze(e,t){const n=e.lastIndexOf("@");if(n<=0)return e;const o=e.slice(0,n),r=o.indexOf("?"),s=r===-1?o:o.slice(0,r),a=[...r===-1?[]:o.slice(r+1).split("&").filter(l=>l&&!l.startsWith(pt)),...t.map(l=>pt+qo(l))],c=a.length>0?`?${a.join("&")}`:"";return`${s}${c}${e.slice(n)}`}function Os(e,t,n=!1){if(t.length===0&&!n)return null;try{const o=new URL(e),r=o.hostname==="[::1]"?`localhost${o.port?`:${o.port}`:""}`:o.host;return Ze(`${r}${o.pathname}@local`,t)}catch{return null}}function Ds(e,t){if(t.length===0)return e;try{const n=new URL(e),o=n.searchParams.get("__draft");return!o||o==="off"?e:(n.searchParams.set("__draft",Ze(o,t)),n.toString())}catch{return e}}function Ko(e){const{pointer:t}=e;if(!t||t===Xo)return null;const n=t.indexOf("?");return X(n===-1?t:t.slice(0,n))||t.lastIndexOf("@")<=0?null:X(e.heldRevision)&&e.forcedVariants.length===0?ge(e.heldRevision,e.previewOptions):ge(Ze(t,e.forcedVariants),e.previewOptions)}function er(e,t){if(!e||!t)return null;try{return Zo(e,t)}catch{return null}}function ks(e,t,n){if(!e||!n)return null;try{return er(new URL(t,e).toString(),n)}catch{return null}}const ve={forcedVariants:[],previewOptions:{}},ie=new Map,ae=new Map,Re=new Map;function qt(e){for(const t of Re.get(e)??[])t()}function Kt(e,t){const n=X(t)?t:null;(ae.get(e)??null)!==n&&(n?ae.set(e,n):ae.delete(e),qt(e))}function tr(e){return ae.get(e)??null}function nr(e,t){return JSON.stringify(e)===JSON.stringify(t)}function Is(e,t){const n=ie.get(e)??ve,o=t??ve;nr(n,o)||(t?ie.set(e,o):ie.delete(e),qt(e))}function or(e){return ie.get(e)??ve}function en(e,t){let n=Re.get(e);return n||(n=new Set,Re.set(e,n)),n.add(t),()=>{n.delete(t)}}function rr(e){const t=R.c(3);let n,o;return t[0]!==e?(n=r=>en(e,r),o=()=>or(e),t[0]=e,t[1]=n,t[2]=o):(n=t[1],o=t[2]),L.useSyncExternalStore(n,o,sr)}function sr(){return ve}function ir(e){const t=R.c(3);let n,o;return t[0]!==e?(n=r=>e?en(e,r):cr,o=()=>e?tr(e):null,t[0]=e,t[1]=n,t[2]=o):(n=t[1],o=t[2]),L.useSyncExternalStore(n,o,ar)}function ar(){return null}function cr(){}function _s(e,t){const n=R.c(4),o=rr(e),r=ir(e);let s;return n[0]!==o||n[1]!==r||n[2]!==t?(s=Ko({pointer:t,heldRevision:r,...o}),n[0]=o,n[1]=r,n[2]=t,n[3]=s):s=n[3],s}const tn={phase:"idle",inFlight:0,reload:{seq:0,navigates:!1},epoch:0},lr=15e3,be=new Map;function z(e,t){return`${e}/${t}`}function H(e){let t=be.get(e);return t||(t={state:tn,listeners:new Set,previews:0,timer:null,discardListeners:new Set},be.set(e,t)),t}function W(e,t){const n=H(e);n.state={...n.state,...t};for(const o of n.listeners)o()}function Se(e){e.timer&&clearTimeout(e.timer),e.timer=null}function qe(e){return be.get(e)?.state??tn}function ur(e,t){const n=H(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}function Ts(e){const t=H(e);return t.previews++,()=>{t.previews--,t.previews===0&&t.state.phase==="reloading"&&(Se(t),W(e,{phase:"idle"}))}}function Ps(e){const t=be.get(e);!t||t.state.phase!=="reloading"||(Se(t),W(e,{phase:"idle"}))}function nn(e){const t=H(e);Se(t),W(e,{phase:"saving",inFlight:t.state.inFlight+1})}function ce(e,t){const n=H(e),o=Math.max(0,n.state.inFlight-1);if(o>0){W(e,{inFlight:o});return}if(!t.ok||n.previews===0){W(e,{phase:"idle",inFlight:o});return}on(e,t.navigates,o)}function on(e,t,n=0){const o=H(e);Se(o),o.timer=setTimeout(()=>{o.timer=null,o.state.phase==="reloading"&&W(e,{phase:"idle"})},lr),W(e,{phase:"reloading",inFlight:n,reload:{seq:o.state.reload.seq+1,navigates:t}})}function fr(e){return e?.kind==="protocol"&&e.source==="github"}async function le(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s,backend:i,cacheKey:a}=e,c=t.kind==="publish"||t.kind==="reapply"?n.invalidateQueries({queryKey:g.hostedReleases(o,r)}):null;if(i?.kind!=="protocol")return await c,{navigates:!1};const l=s?g.protocolDraftRead(o,r,s):null,f=l?JSON.stringify(n.getQueryData(l)??null):null,u=c?[c]:[];if(a&&t.reread&&u.push(n.invalidateQueries({queryKey:g.decofile(a)})),a&&!t.adopted&&u.push(n.invalidateQueries({queryKey:g.contentChanges(a)})),s&&i.source==="sandbox"&&u.push(n.invalidateQueries({queryKey:Fn(o,r,s)})),fr(i)&&l&&!t.adopted&&u.push(n.invalidateQueries({queryKey:l})),await Promise.all(u),t.kind!=="edit"){const b=z(o,r);W(b,{epoch:qe(b).epoch+1})}const d=l?JSON.stringify(n.getQueryData(l)??null):null,h=f!==d;return h&&await new Promise(b=>Ot.schedule(b)),{navigates:h}}async function dr(e,t){return nn(z(e.orgSlug,e.virtualMcpId)),rn(e,t)}function mt(e){return e.branch?JSON.stringify(e.queryClient.getQueryData(g.protocolDraftRead(e.orgSlug,e.virtualMcpId,e.branch))??null):null}async function rn(e,t){const n=z(e.orgSlug,e.virtualMcpId),o=t.adopted?mt(e):null;let r;try{r=await t.write()}catch(i){throw ce(n,{ok:!1,navigates:!1}),t.refreshOnError&&le(e,{kind:t.kind,reread:!0}).catch(()=>{}),i}if(e.backend?.kind==="protocol"&&e.cacheKey&&Bo(e.cacheKey),Kt(n,t.shownRevision?.(r)??null),t.adopted){const i=mt(e)!==o;return i&&await new Promise(a=>Ot.schedule(a)),ce(n,{ok:!0,navigates:i}),t.reread&&le(e,t).catch(()=>{}),r}let s=!1;try{({navigates:s}=await le(e,t))}catch{}finally{ce(n,{ok:!0,navigates:s})}return r}function Rs(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s}=e,i=z(o,r),a=new Set(t.blockKeys);for(const f of[...H(i).discardListeners])f(a);nn(i);let c=!1;const l=()=>(c=!0,rn(e,{kind:"discard",reread:!0,write:t.write}));return s?n.getMutationCache().build(n,{mutationKey:we(o,r,s),scope:mo(o,r,s),mutationFn:l}).execute(void 0).catch(f=>{throw c||ce(i,{ok:!1,navigates:!1}),f}):l()}function xs(e,t,n){const o=R.c(8);let r;o[0]!==e||o[1]!==t?(r=z(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 c=H(s).discardListeners;return c.add(n),()=>{c.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],L.useEffect(i,a)}function sn(e){const t=z(e.orgSlug,e.virtualMcpId);qe(t).inFlight>0||(Kt(t,null),le(e,{kind:"external"}).then(({navigates:n})=>{const o=H(t);o.previews>0&&o.state.inFlight===0&&on(t,n)}).catch(()=>{}))}function hr(e,t){const n=R.c(7);let o;n[0]!==e||n[1]!==t?(o=z(e,t),n[0]=e,n[1]=t,n[2]=o):o=n[2];const r=o;let s;n[3]!==r?(s=l=>ur(r,l),n[3]=r,n[4]=s):s=n[4];const i=s;let a;n[5]!==r?(a=()=>qe(r),n[5]=r,n[6]=a):a=n[6];const c=a;return L.useSyncExternalStore(i,c,c)}const gr=500;function $s(e,t){const{phase:n}=hr(e,t);return Qo(n!=="idle",gr)}function vr(e){const t=new Error(`${e} unavailable (content server unreachable)`);return t.status=502,t}function an(e,t){return g.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,`protocol${t.cacheKeySuffix}`,"")}function Ns(e,t,n,o){if(o?.source==="github"){const i=e.getQueryData(g.contentIndex(t));return i?Tn(i,n):br(e,t,n)}const r=e.getQueryData(g.contentVersions(t));if(!r)return;if(Object.hasOwn(r,n))return r[n];const s=e.getQueryData(g.decofile(t));return s&&Object.hasOwn(s,n)?void 0:null}function te(e,t){if(Object.hasOwn(e.changes,t))return e.changes[t];const n=B(t),o=Object.keys(e.changes).find(r=>B(r)===n);return o===void 0?void 0:e.changes[o]}function br(e,t,n){const o=e.getQueryData(g.contentChanges(t));if(o)return cn(o,ye(e,t),n)}function cn(e,t,n){const o=te(e,n);return o?.kind==="delete"?o.version??fe:o?o.version:t.has(B(n))?fe:null}function js(e,t,n){const o=e.getQueryData(g.contentChanges(t));if(!o)return!1;const r=te(o,n);return r?r.kind==="set"&&r.baseVersion===null:ye(e,t).has(B(n))}function Cs(e,t){const n=e.getQueryData(g.decofile(t)),o=e.getQueryData(g.contentChanges(t));if(!n||!o)return null;const r=ye(e,t);return{blocks:n,versionOf:s=>cn(o,r,s)}}function ye(e,t){return new Set(e.getQueryData(g.contentDraftTombstones(t)))}function pe(e,t,n,o){const r=B(n),s=ye(e,t);s.has(r)!==o&&(o?s.add(r):s.delete(r),q(e),e.setQueryData(g.contentDraftTombstones(t),[...s]))}function ln(e,t,n,o){const r=o.revision,s=e.getQueryData(g.contentVersions(n)),i=Object.entries(o.versions??{}).map(([u,d])=>[u,d===fe?null:d]),a=e.getQueryData(g.contentChanges(n)),c=new Set(i.flatMap(([u])=>{const d=a?te(a,u):void 0;return(d?d.baseVersion:s?.[u]??null)===null?[u]:[]})),l=new Set(i.flatMap(([u,d])=>d===null?[]:[B(u)]));e.setQueryData(g.contentChanges(n),u=>{if(!u)return u;const d={...u.changes};for(const[h,b]of i){const v=te(u,h),w=v?v.baseVersion:s?.[h]??null;b!==null?d[h]={kind:"set",version:b,baseVersion:w}:w!==null?d[h]={kind:"delete",version:null,baseVersion:w}:delete d[h]}return{...u,changes:d,edited:!0}});for(const[u,d]of i)d!==null?pe(e,n,u,!1):!l.has(B(u))&&c.has(u)&&pe(e,n,u,!0);const f=o.revision;return f&&f!=="none"&&e.setQueryData(g.protocolDraftRead(t.orgSlug,t.virtualMcpId,t.branch),u=>u&&{...u,version:f}),r}function Ee(e,t,n){q(e),e.setQueryData(g.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 un(e,t){const n=e.getMutationCache().findAll({mutationKey:we(t.orgSlug,t.virtualMcpId,t.branch),status:"pending"});return new Set(n.flatMap(o=>to(o.state.variables)))}function xe(e,t){e.resetQueries({queryKey:g.contentBackend(t.orgSlug,t.virtualMcpId,"local")})}async function ne(e,t,n,o){try{return await o()}catch(r){const s=!(r instanceof P);throw t.source==="local"&&s?(xe(e,n),new Ht(r)):(t.source==="local"&&Le(r)&&xe(e,n),r)}}const ue=new Map;function fn(e,t,n,o){const r=ue.get(o);if(r)return r;const s=Ke(e,t,n,o,!0);return ue.set(o,s),s.finally(()=>ue.delete(o))}const De=new Set;function pr(e,t,n){const o=R.c(8),r=Z(),s=t?.orgSlug,i=t?.virtualMcpId,a=t?.branch;let c,l;o[0]!==e||o[1]!==a||o[2]!==n||o[3]!==s||o[4]!==r||o[5]!==i?(c=()=>{if(!e||!s||!i||!a)return;const f={orgSlug:s,virtualMcpId:i,branch:a};return Ho(u=>{u===n&&(De.has(n)||(De.add(n),wr(r,e,f,n).catch(mr).finally(()=>De.delete(n))))})},l=[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]=c,o[7]=l):(c=o[6],l=o[7]),L.useEffect(c,l)}function mr(){}async function wr(e,t,n,o){const r=ue.get(o);return r&&await r.catch(()=>{}),fn(e,t,n,o)}async function Ke(e,t,n,o,r){q(e);const s=g.decofile(o),i=an(n,t),a=g.contentRevision(o),c=g.contentVersions(o),l=e.getQueryData(s),f=e.getQueryData(c),d=e.getQueryData(i),h=e.getQueryData(a)??void 0,b=r&&l&&f?h?.revision:void 0,v=r&&d?h?.schemaVersion:void 0,w=g.contentChanges(o),I=e.getQueryData(w);if(t.source==="github"&&t.hosted)return Sr(e,t,t.hosted,n,o,{conditional:r,seen:h,currentMeta:d,schemaIfNoneMatch:v,seenChanges:I});const[E,x,_]=await ne(e,t,n,()=>t.client.batch([{method:"blocks.list",params:b?{ifNoneMatch:b}:{}},{method:"schema.get",params:v?{ifNoneMatch:v}:{}},{method:"changes.list",params:Me(I)}])),N=e.getQueryData(a)?.revision,$=N!==void 0&&N!==h?.revision;if(_?.ok){const O=$?null:de(I,_.result);O&&e.setQueryData(w,O)}else _&&t.source==="local"&&Le(_.error)&&xe(e,n);if(!E?.ok)throw E?.error??new Error("no blocks.list");if(!x)throw new Error("no schema.get");const p=E.result,U=Ve(x),D=x.ok&&!U?x.result:null;if(p.notModified&&(!l||!f)||D?.notModified&&!d)return Ke(e,t,n,o,!1);const T=p.notModified?new Set:un(e,n),j=p.notModified?l:eo(p.blocks,l,T),C=U?Mt():D?D.notModified?d:D.schema:x.error;if(e.setQueryData(a,{revision:$?N:p.notModified?h?.revision:p.revision,schemaVersion:D?D.notModified?h?.schemaVersion:D.version??void 0:void 0}),e.setQueryData(s,j),!p.notModified){const O=e.getQueryData(c),M={...p.versions};for(const A of T){const k=O?.[A];k!==void 0?M[A]=k:delete M[A]}e.setQueryData(c,M)}return C instanceof P||e.setQueryData(i,C),!$&&!p.notModified&&l&&h?.revision&&p.revision!==h.revision&&sn({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o}),{blocks:j,meta:C}}async function Sr(e,t,n,o,r,s){const i=g.decofile(r),a=g.contentIndex(r),c=g.contentRevision(r),l=g.contentVersions(r),f=an(o,t),u=g.contentChanges(r),d=e.getQueryData(a),h=s.conditional&&d?s.seen?.revision:void 0,[b,v,w]=await ne(e,t,o,()=>n.batch([{method:"cms.index",params:h?{ifNoneMatch:h}:{}},{method:"schema.get",params:s.schemaIfNoneMatch?{ifNoneMatch:s.schemaIfNoneMatch}:{}},{method:"changes.list",params:Me(s.seenChanges)}])),I=e.getQueryData(a)??d,E=e.getQueryData(c)?.revision,x=E!==void 0&&E!==s.seen?.revision;if(w?.ok&&!x){const y=de(s.seenChanges,w.result);y&&e.setQueryData(u,y)}if(!b?.ok)throw b?.error??new Error("no cms.index");if(!v)throw new Error("no schema.get");const _=b.result,N=Ve(v),$=v.ok&&!N?v.result:null;if(_.notModified&&!d||$?.notModified&&!s.currentMeta)return Ke(e,t,o,r,!1);const p=N?Mt():$?$.notModified?s.currentMeta:$.schema:v.error;p instanceof P||e.setQueryData(f,p);const U=$?$.notModified?s.seen?.schemaVersion:$.version??void 0:void 0,D=e.getQueryData(i)??{};if(_.notModified||x)return e.setQueryData(c,{revision:x?E:s.seen?.revision,schemaVersion:U}),e.setQueryData(i,D),{blocks:D,meta:p};const T={revision:_.revision,resolvedRef:_.resolvedRef,sequence:_.sequence,entries:_.entries,draft:_.draft};e.setQueryData(a,T);const j=!!s.seen?.revision&&T.revision!==s.seen.revision&&(!s.seen.revision.startsWith("s-")||!!d&&dn(d.draft,T.draft));j&&e.setQueryData(g.protocolDraftRead(o.orgSlug,o.virtualMcpId,o.branch),y=>y&&{...y,version:T.revision}),e.setQueryData(c,{revision:T.revision,schemaVersion:U});const C=un(e,o),O=e.getQueryData(l)??{},M={},A={},k=[];for(const[y,V]of Object.entries(D)){const m=T.entries[y];!m&&!C.has(y)||(M[y]=V,O[y]!==void 0&&(A[y]=O[y]),m&&!C.has(y)&&O[y]!==m.version&&k.push(y))}return e.setQueryData(i,M),e.setQueryData(l,A),k.length>0&&await xn(e,n,r,k,C),I&&j&&yr(I,T)&&sn({queryClient:e,orgSlug:o.orgSlug,virtualMcpId:o.virtualMcpId,branch:o.branch,backend:t,cacheKey:r}),{blocks:e.getQueryData(i)??M,meta:p}}function yr(e,t){if(dn(e.draft,t.draft))return!0;const n=Object.keys(t.entries);return n.length!==Object.keys(e.entries).length?!0:n.some(o=>!Object.hasOwn(e.entries,o)||e.entries[o]?.version!==t.entries[o]?.version)}function dn(e,t){const n=Object.keys(t);return n.length!==Object.keys(e).length?!0:n.some(o=>!Object.hasOwn(e,o)||e[o]?.version!==t[o]?.version)}function Er(e,t){const n=[...Object.keys(t.set??{}),...t.delete??[]];return Object.fromEntries(n.filter(o=>Object.hasOwn(e,o)).map(o=>[o,e[o]]))}function wt(e){if(!(e instanceof P)||e.code!==S.Unavailable)return;const t=e.data?.landed;if(!(!t||typeof t!="object"||Array.isArray(t)))return Object.fromEntries(Object.entries(t).filter(n=>typeof n[1]=="string"))}function Or(e,t){const n=Object.fromEntries(Object.entries(e.set??{}).filter(([r])=>!Object.hasOwn(t,r))),o=(e.delete??[]).filter(r=>!Object.hasOwn(t,r));return{...Object.keys(n).length>0?{set:n}:{},...o.length>0?{delete:o}:{}}}function St(e,t,n,o,r){q(e),ln(e,t,n,{revision:e.getQueryData(g.contentRevision(n))?.revision??"",versions:r}),Ee(e,n,Object.fromEntries(Object.entries(r).map(([s,i])=>[s,i===fe?null:i]))),Dt(e,n,r,o.set??{})}async function As(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(", ")})`);const c=_n(r.set);if(c.length>0)throw new Error(`A hosted save can't write a block that isn't loaded (${c.join(", ")})`)}return dr({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=f=>ne(e,t,n,()=>t.client.blocksApply({set:f.set,delete:f.delete,...s?{ifMatch:Er(s,f)}:{}}));let a;try{a=await i(r)}catch(f){const u=t.source==="github"?wt(f):void 0;if(!u)throw f;const d=Or(r,u);Object.keys(u).length>0&&St(e,n,o,r,u);let h;try{h=await i(d)}catch(b){const v=wt(b);throw v&&Object.keys(v).length>0&&St(e,n,o,d,v),b}a={...h,versions:{...u,...h.versions}}}q(e);const c=t.source==="github"?ln(e,n,o,a):a.revision;t.source==="github"&&Dt(e,o,a.versions??{},r.set??{}),e.setQueryData(g.contentRevision(o),f=>({...f,revision:c}));const l=a.versions??{};return Ee(e,o,l),{revision:c,versions:l}}})}function hn(e,t){if(!(e instanceof P))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 gn(e,t,n){if(!(n instanceof P))return;const o=n.data?.draft;if(!(!o||typeof o!="object"))for(const[r,s]of Object.entries(o))s===null&&pe(e,t,r,!1)}function vn(e,t,n,o){q(e),Pn(e,n,o);const r=o.block===null,s=e.getQueryData(g.contentVersions(t)),i=e.getQueryData(g.contentChanges(t)),a=i?te(i,n):void 0,c=a?a.baseVersion:s?.[n]??null;if(i){const l=B(n),f=Object.fromEntries(Object.entries(i.changes).filter(([u])=>B(u)!==l));r?c!==null&&(f[n]={kind:"delete",version:null,baseVersion:c}):f[n]={kind:"set",version:o.version,baseVersion:c},e.setQueryData(g.contentChanges(t),{...i,changes:f,edited:!0})}pe(e,t,n,r&&c===null),e.setQueryData(g.decofile(t),l=>{const f={...l};return r?delete f[n]:f[n]=o.block,f}),Ee(e,t,{[n]:r?null:o.version}),Rn(e,t,n,o)}function Us(e,t,n,o){if(t.source!=="github"||!(o instanceof P))return!1;gn(e,n,o);const r=o.data?.draft;if(!r||typeof r!="object")return!1;const s=Object.keys(r),i=s.map(a=>hn(o,a));return s.length===0||i.some(a=>a===void 0)?!1:(e.cancelQueries({queryKey:g.decofile(n)}),s.forEach((a,c)=>{vn(e,n,a,i[c])}),!0)}async function Ms(e,t,n,o,r,s){t.source==="github"&&gn(e,o,s);const i=t.source==="github"?hn(s,r):void 0;if(i)return e.cancelQueries({queryKey:g.decofile(o)}),vn(e,o,r,i),!0;await e.invalidateQueries({queryKey:g.decofile(o)});let a;try{const l=(await ne(e,t,n,()=>t.client.changesGet({names:[r]}))).entries[r];if(l&&l.after===null&&l.version!==null)return!1;a={value:l?.after??null,version:l?.version??null},t.source==="github"&&e.setQueryData(g.contentChanges(o),f=>{if(!f)return f;const u={...f.changes};return l?.kind?u[r]={kind:l.kind,version:l.version,baseVersion:l.baseVersion}:delete u[r],{...f,changes:u,edited:!0}})}catch{const c=await ne(e,t,n,()=>t.client.blocksList({}));if(c.notModified)return!1;a={value:c.blocks[r]??null,version:c.versions[r]??null}}return e.setQueryData(g.decofile(o),c=>{const l={...c};return a.value===null?delete l[r]:l[r]=a.value,l}),Ee(e,o,{[r]:a.version}),!1}function Dr(e){const t=R.c(17),n=Ae(e?.virtualMcpId)?.metadata;let o;t[0]!==n?(o=yt(n),t[0]=n,t[1]=o):o=t[1];const r=o;let s;t[2]!==e?.branch||t[3]!==e?.orgSlug||t[4]!==e?.virtualMcpId?(s=g.protocolDraftRead(e?.orgSlug??"",e?.virtualMcpId??"",e?.branch??""),t[2]=e?.branch,t[3]=e?.orgSlug,t[4]=e?.virtualMcpId,t[5]=s):s=t[5];let i;t[6]!==e||t[7]!==r?(i=async()=>{const v=await Et(r,e.branch),w=v.pointer?.lastIndexOf("@")??-1;return{draft:v.pointer&&w>0?v.pointer.slice(0,w):null,version:v.pointer&&w>0?v.pointer.slice(w+1):v.etag}},t[6]=e,t[7]=r,t[8]=i):i=t[8];const a=!!e&&!!r;let c;t[9]!==s||t[10]!==i||t[11]!==a?(c={queryKey:s,queryFn:i,enabled:a,staleTime:Number.POSITIVE_INFINITY},t[9]=s,t[10]=i,t[11]=a,t[12]=c):c=t[12];const{data:l,isPending:f,isError:u}=F(c),d=!!e&&!!r&&f&&!u;if(!e||!l?.draft||!l.version){let v;return t[13]!==d?(v={pointer:null,pending:d},t[13]=d,t[14]=v):v=t[14],v}const h=`${l.draft}@${l.version}`;let b;return t[15]!==h?(b={pointer:h,pending:!1},t[15]=h,t[16]=b):b=t[16],b}function Ls(e){return Dr(e).pointer}function Fs(e){const t=R.c(4);let n;t[0]!==e?(n=g.contentRevision(e),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:kr,staleTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=F(o);return r?.revision}async function kr(){throw new Error("content revisions are set by reads and writes")}function $e(e){const t=`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`;return e.protocolSuffix?`${t}${e.protocolSuffix}`:e.localPreviewUrl?`${t}:local:${e.localPreviewUrl}`:t}function Qs(e,t){return $e({...e,protocolSuffix:t.cacheKeySuffix})}function Oe(e,t){const n=R.c(6),{url:o}=Lt(e?.virtualMcpId),r=oe(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"?$e({...e,protocolSuffix:r.cacheKeySuffix}):$e({...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 Vs(e,t){const n=R.c(46),{url:o}=Lt(e?.virtualMcpId),r=!!o,s=oe(e?.virtualMcpId,e?.branch),i=s.kind==="protocol"?s:null,a=Oe(e),c=t?.fetchEnabled??!0,l=Uo(e?.virtualMcpId),f=It(e?.virtualMcpId).runtime==="cms",u=Z();let d;n[0]!==a?(d=g.decofile(a),n[0]=a,n[1]=d):d=n[1];const h=d;pr(i,i&&e?e:null,a);let b;n[2]!==e||n[3]!==u||n[4]!==h?(b=()=>{if(!e||u.isMutating({mutationKey:we(e.orgSlug,e.virtualMcpId,e.branch)})>0)return!0;const O=u.getQueryState(h);return O?.fetchStatus==="fetching"||Date.now()-(O?.dataUpdatedAt??0)<Ft/2},n[2]=e,n[3]=u,n[4]=h,n[5]=b):b=n[5];let v;n[6]!==f||n[7]!==r||n[8]!==e||n[9]!==i||n[10]!==u||n[11]!==h?(v=async()=>{if(e){if(!i&&f&&!r){const O=yo(u,e)?.version;if(O&&!await Eo(e,O))return}await u.refetchQueries({queryKey:h,exact:!0},{cancelRefetch:!1})}},n[6]=f,n[7]=r,n[8]=e,n[9]=i,n[10]=u,n[11]=h,n[12]=v):v=n[12];let w;n[13]!==b||n[14]!==v?(w={skip:b,read:v},n[13]=b,n[14]=v,n[15]=w):w=n[15],Po(!!t?.pollWhile&&!!e,w);const I=kt(i?.hosted?a:"");let E;n[16]!==s.kind||n[17]!==f||n[18]!==c||n[19]!==a||n[20]!==r||n[21]!==o||n[22]!==l||n[23]!==e||n[24]!==i||n[25]!==u?(E=async()=>{if(i)return(await fn(u,i,e,a)).blocks;if(s.kind==="unavailable")throw vr("decofile");if(r){const k=await fetch(new URL("/.decofile",o).toString(),{cache:"no-store"}).catch(Tr),Q=k?.ok?dt(await k.text()):null;if(Q)return Q;const y=new Error("decofile unavailable (local tunnel unreachable)");throw y.status=502,y}if(f)return Do(u,e);const O=()=>Ao(e,po(l,".deco/blocks.gen.json"));if(c){const k=await fetch(No(e),{cache:"no-store"}).catch(_r);if(k?.ok){const V=dt(await k.text());if(V)return V}const Q=await O();if(Q.kind==="data")return Q.data;const y=new Error(`Failed to fetch decofile: ${k?.status??"network error"}`);throw y.status=gt({liveOk:!!k?.ok,liveStatus:k?.status,committedAbsent:Q.kind==="absent"}),y}const M=await O();if(M.kind==="data")return M.data;const A=new Error("decofile unavailable (preview down, no committed snapshot)");throw A.status=gt({liveOk:!1,committedAbsent:M.kind==="absent"}),A},n[16]=s.kind,n[17]=f,n[18]=c,n[19]=a,n[20]=r,n[21]=o,n[22]=l,n[23]=e,n[24]=i,n[25]=u,n[26]=E):E=n[26];const x=!!e&&s.kind!=="pending",_=i?0:3e4,N=i?.describe.pollIntervalMs,$=i?"always":void 0;let p;n[27]!==f||n[28]!==r||n[29]!==i?(p=(O,M)=>{if(i||f||r)return O<3;const A=M.status;return A!==502&&A!==404&&O<2},n[27]=f,n[28]=r,n[29]=i,n[30]=p):p=n[30];let U;n[31]!==h||n[32]!==E||n[33]!==x||n[34]!==_||n[35]!==N||n[36]!==$||n[37]!==p?(U={queryKey:h,queryFn:E,enabled:x,staleTime:_,refetchInterval:N,refetchIntervalInBackground:!1,refetchOnWindowFocus:$,retry:p,retryDelay:Ir},n[31]=h,n[32]=E,n[33]=x,n[34]=_,n[35]=N,n[36]=$,n[37]=p,n[38]=U):U=n[38];const D=F(U);let T;n[39]!==I||n[40]!==D?(T=I&&D.data?$n(I,D.data):void 0,n[39]=I,n[40]=D,n[41]=T):T=n[41];const j=T;let C;return n[42]!==j||n[43]!==i?.hosted||n[44]!==D?(C=i?.hosted&&j?{...D,data:j}:D,n[42]=j,n[43]=i?.hosted,n[44]=D,n[45]=C):C=n[45],C}function Ir(e){return jn(5e3,1e3,e,2,0)}function _r(){return null}function Tr(){return null}function Bs(e,t,n){const o=oe(e?.virtualMcpId,e?.branch),r=Oe(e),s=o.kind==="protocol"?o.hosted:void 0;return Nn(s,r,t,n)}function Hs(e){const t=R.c(4),n=Z(),o=oe(e?.virtualMcpId,e?.branch),r=Oe(e),s=o.kind==="protocol"?o.hosted:void 0;let i;return t[0]!==r||t[1]!==n||t[2]!==s?(i=(a,c)=>Cn(n,s,r,a,c),t[0]=r,t[1]=n,t[2]=s,t[3]=i):i=t[3],i}function Js(e,t){const n=R.c(3),o=oe(e?.virtualMcpId,e?.branch),r=Oe(e),s=kt(o.kind==="protocol"&&o.hosted?r:"");let i;return n[0]!==s?.entries||n[1]!==t?(i=Object.entries(s?.entries??{}).filter(a=>{const[,c]=a;return t(c.meta?.type??"")}).map(Pr),n[0]=s?.entries,n[1]=t,n[2]=i):i=n[2],i}function Pr(e){const[t]=e;return t}const Rr="site-editor-save",bn={id:Rr,description:void 0,action:void 0,cancel:void 0},Ws="site-editor-undo",Ne="site-editor-publish";function xr(e){const t=R.c(7),{label:n,detail:o}=e;let r;t[0]!==n?(r=Y.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=Y.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=Y.jsxs("details",{className:"mt-1 text-xs",children:[r,s]}),t[4]=r,t[5]=s,t[6]=i):i=t[6],i}function pn(e,t){return t?Y.jsx(xr,{label:e("siteEditor.details"),detail:t}):void 0}function Gs(e,t,n){ee.error(Wt(e,t,n),{...bn,description:pn(e,Mo(t,n))})}function Ys(e,t,n=!1){ee.info(e(t?"sectionsEditor.reconcile.leftDeleted":"sectionsEditor.reconcile.keptTheirs"),{...bn,description:e(t?n?"sectionsEditor.reconcile.leftDeletedNeverPublishedHint":"sectionsEditor.reconcile.leftDeletedHint":"sectionsEditor.reconcile.keptTheirsHint")})}const mn={action:void 0,duration:void 0};function zs(e,t){ee.success(t?e("siteEditor.publish.publishedOn",{host:t}):e("siteEditor.publish.published"),{...mn,id:Ne,description:void 0})}function Xs(e,{headline:t,body:n,detail:o,retry:r,pending:s,tone:i="error"}){const a=pn(e,o??null);ee[i](t,{id:Ne,description:n&&a?Y.jsxs(Y.Fragment,{children:[Y.jsx("p",{children:n}),a]}):n??a,action:r?{label:e("siteEditor.tryAgain"),onClick:c=>{c.preventDefault(),ee.loading(s??e("thread.publishPopover.publishing"),{...mn,id:Ne,description:void 0}),r()}}:void 0,duration:r?Number.POSITIVE_INFINITY:void 0})}function Zs(e){return e instanceof Error?e.message||null:e==null?null:String(e)}export{wo as $,ws as A,Hs as B,$s as C,es as D,Dr as E,Bs as F,z as G,ir as H,Is as I,Os as J,ge as K,Xo as L,Zo as M,hs as N,Ds as O,vs as P,Ps as Q,Ts as R,hr as S,Ct as T,Oe as U,Fs as V,ps as W,mo as X,we as Y,dr as Z,Co as _,Zr as a,Qs as a0,Hr as a1,Wr as a2,Js as a3,Ys as a4,js as a5,ds as a6,We as a7,fs as a8,wr as a9,Xe as aA,Us as aB,fn as aC,vr as aD,us as aE,Ne as aF,mn as aG,zs as aH,Rs as aI,Vr as aJ,Br as aK,Le as aL,is as aM,Ls as aN,bs as aO,X as aP,gs as aQ,Xs as aR,Ws as aS,bn as aT,un as aU,ms as aV,ls as aW,Ss as aX,ys as aY,Es as aZ,ze as aa,As as ab,Ms as ac,Gs as ad,Ns as ae,an as af,So as ag,as as ah,xs as ai,Cs as aj,Kr as ak,rs as al,ct as am,lt as an,ss as ao,$o as ap,ns as aq,zn as ar,pn as as,Zs as at,Yo as au,Jr as av,Vn as aw,xr as ax,_s as ay,ks as az,Zn as b,Lt as c,Yn as d,Xr as e,Xn as f,Je as g,Ue as h,xt as i,cs as j,Ro as k,Vs as l,qr as m,os as n,Uo as o,Gr as p,po as q,zr as r,Yr as s,Ko as t,oe as u,er as v,Wo as w,Ao as x,At as y,ts as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,a5 as n,j as r,K as f}from"./index-ucJDxPyE.js";import{C as d}from"./index-2pjgY723.js";import{m as u,P as x,T as h}from"./mock-board-CthDdMFD.js";import{F as j}from"./feature-gate-D4S13Ohw.js";import"./use-mobile-BbP62vju.js";import"./use-sidebar-collapsed-CfApMrjn.js";import"./use-chat-layout-state-CZu4sqCQ.js";import"./thread-route-jBbjjKNR.js";import"./autosend-BeP-7Z9T.js";import"./use-project-scope-GFa4JvNG.js";import"./repository-binding-BWkpkFiy.js";import"./use-mcp-client-TeUnMSC4.js";import"./auth-D2Lcha9t.js";import"./thread-intent-CI_dX-N0.js";import"./delay-CnY5UFtP.js";import"./watch-sse-pool-DhHWqGJ6.js";import"./task-board-BzsqXAQD.js";import"./schema-tSFLTBrW.js";import"./agent-icon-DGjvzBU0.js";import"./AlertCircle-4XjOBzzr.js";import"./Tool01-BqhX4Lir.js";import"./ArrowUp-Lwcx-ceL.js";import"./ArrowLeft-FLGKBq3z.js";import"./LinkBroken01--Z9NHGsb.js";import"./ShoppingBag01-CYCT2jnZ.js";import"./Globe04-Wakfx0G2.js";import"./CheckCircle-DFL7pw-c.js";import"./ChevronUp-BvHbQNBW.js";import"./ChevronSelectorVertical-DujPgcUo.js";import"./UserSquare-DLTddIeU.js";import"./CreditCard01-BwD4GYuP.js";import"./SwitchHorizontal01-TPw7EzQJ.js";import"./Key01-D8VFHgU4.js";import"./Minus-mLwaHX_9.js";import"./Monitor01-xd6_AGZa.js";import"./Sun-COkqP7iJ.js";import"./Play-Bd4GTUnl.js";import"./Plus-Cq9NYyX9.js";import"./SearchMd-BxQmfb5s.js";import"./Trash01-BsqfSoas.js";import"./Upload01-CjUA7jDn.js";import"./Users01-C0dAo1hK.js";import"./XClose-BmPamPKb.js";import"./Zap-CNah22BF.js";import"./tooltip-D_WhUD2W.js";import"./index-oG6UN7--.js";import"./toolbar-icon-button-DLr3JTpB.js";import"./shell-layout-CMz_aZCA.js";import"./use-deployment-admin-DbaoxO_S.js";import"./admin-fetch-BhTJlAsX.js";import"./command-D37uN5J-.js";import"./index-Bx0EGvvq.js";import"./integration-icon-a40gN_z1.js";import"./project-icon-BDGMpF2P.js";import"./use-navigate-to-agent-8ajznGe2.js";import"./new-project-dialog-CcXdYQOA.js";import"./label-CxjTL0R_.js";import"./repository-picker-TrkRysRA.js";import"./github-icon-M98rwFqR.js";import"./useInfiniteQuery-v4D5ym6Y.js";import"./infiniteQueryObserver-Bd4S1JAr.js";import"./collection-search-BQWTlXQF.js";import"./use-debounced-value-pGYMxzxk.js";import"./use-organization-settings-BRBR1fOm.js";import"./required-auth-layout-sIreaYcR.js";import"./use-org-sso-YfhiI7Na.js";import"./sheet-MLWNRYhQ.js";import"./resizable-e7KAJlT2.js";import"./core.esm-CTG2N8v2.js";import"./sortable.esm-JloqmUYv.js";import"./use-task-board-analytics-BEP1IVqq.js";import"./combobox-CT2qCKie.js";import"./popover-BaWxRQRQ.js";import"./use-task-board-prompts-OFKn7DUf.js";import"./badge-37ZrebMM.js";import"./icon-button-nAmR0pUP.js";import"./use-org-fs-Bz2ywQpd.js";import"./use-automations-QnSiBJK1.js";import"./search-toggle-c4jDK8W2.js";import"./context-menu-CugaroNR.js";import"./feedback-UOqcYnsR.js";import"./use-task-board-items-rcG1gNIH.js";import"./config-CZ3pUlCW.js";import"./use-task-board-events-BQOt8K6j.js";import"./use-decopilot-events-d_M9Hjhx.js";import"./sprints-C1z9xhcL.js";import"./select-MFmOiD7V.js";import"./index-BdQq_4o_.js";import"./task-route-BCP5p_Kg.js";import"./task-key-BCHdFiOO.js";import"./project-index-BXdjh86r.js";import"./use-tags-rAc8X0bx.js";import"./calendar-ESmP-ay5.js";import"./alert-CkisSQR8.js";import"./collapsible-DRuNeeSr.js";import"./use-copy-Bs4XYM8b.js";import"./markdown-Cs2UsOW2.js";import"./chat-context-DSkOndUS.js";import"./use-entitlements-CpaMfout.js";import"./use-ai-providers-CP8hIgY3.js";import"./index-CpdAUi_L.js";import"./usage-stats-XRbUuNdg.js";import"./tool-namespace-DWzf9fHX.js";import"./form-xPNilXk8.js";import"./utils-CVEq3hMx.js";import"./editor-classes-CS7nwV3G.js";import"./suggestion-DSascTGX.js";import"./index-CopIngND.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-Dpg9J2j_.js";import"./use-connection-Bh4mFZP8.js";import"./github-repo-scope-C58hYmYC.js";import"./thread-sheet-body-kWzPcNxq.js";import"./useSuspenseInfiniteQuery-DOWp786v.js";import"./pair-mfml6eLi.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Da9_HDDx.js";import"./types-ASWejG-h.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-mcp-prompts-DDyg7FMp.js";import"./use-thread-outputs-B_TAH3sz.js";import"./file-type-icon-DwSbw3u_.js";import"./use-infinite-scroll-oh57fQW8.js";import"./task-status-C10P7bk5.js";import"./separator-BiskJWog.js";import"./chat-draft-CCm5Ov2V.js";import"./feature-paywall-BPHi9qtV.js";import"./plan-ladder-BoOM3V_X.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 Lo(){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{Lo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as r}from"./index-ucJDxPyE.js";import{b as a}from"./chat-context-DSkOndUS.js";import{a as i}from"./shell-layout-CMz_aZCA.js";function u(){const t=r.c(3),{sendMessage:s}=a(),{openSidePanel:o}=i();let e;return t[0]!==o||t[1]!==s?(e=n=>{o(),s({parts:[{type:"text",text:n}]})},t[0]=o,t[1]=s,t[2]=e):e=t[2],e}export{u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,dY as c}from"./index-ucJDxPyE.js";import{u}from"./repository-binding-BWkpkFiy.js";function a(r){return c(r?.metadata)}function l(r){const t=e.c(2),s=u(r);let o;return t[0]!==s?(o=a(s),t[0]=s,t[1]=o):o=t[1],o}export{a as b,l as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Ee,b as He,u as Le,a5 as Oe,gZ as $e,g_ as Be,g$ as le,h0 as de,aj as Ke,ah as me,h1 as _e,h2 as Qe,r as X,eM as We,U as pe,h3 as Ze,h4 as qe}from"./index-ucJDxPyE.js";import{a as ze}from"./use-chat-layout-state-CZu4sqCQ.js";import{b as Ge}from"./agent-icon-DGjvzBU0.js";import{i as Je}from"./Monitor01-xd6_AGZa.js";import{u as Xe}from"./use-connection-Bh4mFZP8.js";import{a as Ye}from"./use-mcp-client-TeUnMSC4.js";import{u as et}from"./use-mcp-tools-Dfsa_hrX.js";import{u as tt}from"./repository-binding-BWkpkFiy.js";import{g as at}from"./types-ASWejG-h.js";import{t as ot}from"./utils-CVEq3hMx.js";import{a as D}from"./agent-capabilities-D2A31nji.js";import"./index-CiqUNjUm.js";import{u as nt}from"./use-sandbox-events-68YztdQP.js";import{F as ue}from"./file-type-icon-DwSbw3u_.js";import{a as st,u as it}from"./autosend-BeP-7Z9T.js";import{r as Y}from"./resolve-tab-icon-DnOPa8fE.js";import{u as ct}from"./use-task-metadata-PVdfMsAN.js";import{r as rt}from"./preview-source-BsRLGWUP.js";import{i as lt,r as dt,s as mt}from"./shell-layout-CMz_aZCA.js";import{u as pt}from"./use-voice-input-Dx_WJHtm.js";import{u as ut}from"./use-organization-settings-BRBR1fOm.js";import{a as ft}from"./use-project-scope-GFa4JvNG.js";import{b as bt,u as Tt,c as It,d as vt,e as ht}from"./project-sidebar-views-DxAssfab.js";import{c as Pt}from"./chat-context-DSkOndUS.js";import{r as gt}from"./virtual-mcp-CAdekzcm.js";function Jt(o){const e=Ee.c(35),d=He(),{openPanel:f,closePanel:R}=st();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={strict:!1},e[0]=b):b=e[0];const fe=Le(b),ee=it(),te=ze(),i=tt(o.virtualMcpId),T=ct(o.taskId),{org:n}=Oe(),{currentBranch:be,activeTask:I}=Pt(),m=i?.metadata.ui?.layout??null,c=m?.tabs??[],r=i?.id?$e(i.id):null,v=T?.expanded_tools??[],h=ut(),{scopeId:Te,project:Ie}=ft(),F=bt(Te,Ie,i),U=Tt(F.project),ae=It(F.resolvedScopeId,D(F.project?.metadata),U.presence);let P;e[1]===Symbol.for("react.memo_cache_sentinel")?(P={includeVirtual:!0},e[1]=P):P=e[1];const p=Xe(P),ve=nt(),x=I?.branch??be;let g;e[2]!==I?.metadata||e[3]!==o.taskId||e[4]!==i?.metadata||e[5]!==T||e[6]!==x?(g=rt({threadId:o.taskId,sandboxBranch:x,agentHasRepo:D(i?.metadata),threadHasRepo:D(T)||D(I?.metadata)}),e[2]=I?.metadata,e[3]=o.taskId,e[4]=i?.metadata,e[5]=T,e[6]=x,e[7]=g):g=e[7];const he=g,E=ve.lifecycle.phase==="running",{runtime:Pe,resolved:oe}=pt(o.virtualMcpId),H=!!r&&E;let y;e[8]!==H?(y={enabled:H},e[8]=H,e[9]=y):y=e[9];const ne=Ye({connectionId:r,orgId:n.id,orgSlug:n.slug},y),L=ne,O=!!ne&&E;let k;e[10]!==L||e[11]!==O?(k={client:L,enabled:O},e[10]=L,e[11]=O,e[12]=k):k=e[12];const{data:ge}=et(k),se=r&&E?(ge?.tools??[]).filter(Vt).map(t=>({connectionId:r,toolName:t.name,label:ot(t.name),icon:null})):[],$=se[0],ye=$?se:[],u=$&&r?{type:"ext-apps",id:r,toolName:$.toolName}:m?.defaultMainView??null,ke=gt(m),ie={assets:U.assetsPending,siteAccess:U.siteAccessPending},{activeTab:w,mainOpen:l}=Be({panelTabId:ee,mainPanelParam:fe.mainpanel,routeDefaultMain:te,metadata:u||m?{defaultMainView:u,tabs:c.map(wt)}:null}),we=u||m?{defaultMainView:u,tabs:c.map(kt)}:null,V=dt({hasSource:he==="repo"||h,runtime:Pe,cmsMode:ke}),Ve=V.includes("content"),Ce=le(we),Me=u?.type,ce=vt(Me,ae,ie,V,oe),B=ce?le(null):Ce,Se=ht(w,ae,ie),Ne=!V.includes("code")&&oe&&de(w)!==null,a=!ee&&!te&&ce||w==="content"&&!Ve||Ne||Se?B:w,K=Ke(a);let C;e[13]!==d?(C=t=>d(t==="site-editor"?"common.mainPanelTabs.preview":t==="content"?"common.mainPanelTabs.content":"common.mainPanelTabs.code"),e[13]=d,e[14]=C):C=e[14];const je=C,_=new Map;for(const t of v){const s=me(t.appId,t.toolName);_.set(s,{id:s,title:t.toolName,appId:t.appId,iconKey:t.toolName})}for(const t of ye){if(t.toolName==="fetch_assets")continue;const s=me(t.connectionId,t.toolName);_.set(s,{id:s,title:t.label||t.toolName,appId:t.connectionId,iconKey:t.toolName,iconUrl:t.icon??null})}const Q=_e(a),W=Q?Q.key.split("/").pop()??Q.key:null,Ae=W?[{id:a,title:W,kind:"file",icon:{kind:"component",Component:t=>X.createElement(ue,{filename:W,...t})}}]:[],M=Qe(a),De=M?[{id:a,title:(M.path.split("/").pop()??M.path).replace(/\.html$/i,""),kind:"file",icon:{kind:"component",Component:t=>X.createElement(M.path.startsWith("pages/")?Ge:Je,t)}}]:[],Z=We(a),q=Z?Z.path.split("/").pop()??Z.path:null,Re=q?[{id:a,title:q,kind:"file",icon:{kind:"component",Component:t=>X.createElement(ue,{filename:q,...t})}}]:[],Fe=lt(a)?V.map(t=>({id:t==="code"&&de(a)?a:t,title:je(t),kind:"system",icon:Y({tabId:t,kind:"system",connections:p})})):[];let S;e[15]!==p?(S=t=>({id:Ze(t.id),title:t.title,kind:"agent",icon:Y({tabId:t.id,kind:"agent",appId:t.view.appId,connections:p})}),e[15]=p,e[16]=S):S=e[16];const Ue=[...Fe,...Ae,...De,...Re,...c.map(S),...Array.from(_.values()).map(t=>({id:t.id,title:t.title,kind:"expanded",icon:Y({tabId:t.iconKey,kind:"expanded",appId:t.appId,iconUrl:t.iconUrl,connections:p})}))],re=new Set,z=Ue.filter(t=>re.has(t.id)?!1:(re.add(t.id),!0)),xe=o.virtualMcpId;let N;e[17]!==n.id?(N=pe(n.id),e[17]=n.id,e[18]=N):N=e[18];const G=xe===N;let j;e[19]!==a||e[20]!==R||e[21]!==l||e[22]!==G||e[23]!==f||e[24]!==n.id||e[25]!==h?(j=t=>{if(mt({reportsOnly:h,onReportAgent:G,tabId:t})){f(t,{virtualmcpid:pe(n.id),search:yt});return}const s=qe({clickedId:t,activeTab:a,mainOpen:l});"close"in s?R():f(s.tabId)},e[19]=a,e[20]=R,e[21]=l,e[22]=G,e[23]=f,e[24]=n.id,e[25]=h,e[26]=j):j=e[26];const J=j;let A;return e[27]!==a||e[28]!==K||e[29]!==v||e[30]!==c||e[31]!==l||e[32]!==J||e[33]!==z?(A={activeTab:a,mainOpen:l,setActiveTab:J,layoutTabs:c,expandedTools:v,automationTabParsed:K,tabs:z},e[27]=a,e[28]=K,e[29]=v,e[30]=c,e[31]=l,e[32]=J,e[33]=z,e[34]=A):A=e[34],A}function yt(o){return{...o,thread:void 0}}function kt(o){return{id:o.id}}function wt(o){return{id:o.id}}function Vt(o){return!!at(o._meta)}export{Jt as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as N,a5 as Q,W as F,T as U,i as f,K as R,gU as L,$ as A,U as K}from"./index-ucJDxPyE.js";import{m as O}from"./use-mcp-client-TeUnMSC4.js";import{u as h}from"./companions-core-DhUD88pR.js";function D(n){return n?n.scanned_at?"ready":n.run_in_progress?"generating":"none":"none"}function M(n){return n.connectionQueryPending?!0:!n.hasConnection||n.cdClientFailed?!1:n.diagnosticQueryPending}const b=2e4;function q(n){if(typeof n!="string"||!n)return null;try{return new URL(n).hostname||null}catch{return null}}function j(){const n=N.c(24),{org:e}=Q(),t=F.REPORTS(e.id);let l;n[0]!==e.id||n[1]!==e.slug?(l=O({connectionId:U,orgId:e.id,orgSlug:e.slug}),n[0]=e.id,n[1]=e.slug,n[2]=l):l=n[2];const{data:p}=f(l),u=f({queryKey:R.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const _=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return h(_)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=R.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const _=await s.callTool({name:L,arguments:{}});return h(_).diagnostic??null},n[3]=s,n[4]=i):i=n[4];let d;n[5]!==C||n[6]!==E||n[7]!==i?(d={queryKey:C,enabled:E,retry:1,refetchInterval:v,queryFn:i},n[5]=C,n[6]=E,n[7]=i,n[8]=d):d=n[8];const r=f(d),o=m?.metadata?.siteUrl,P=r.data??null,w=r.isSuccess,I=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==I?(a=M({connectionQueryPending:u.isPending,hasConnection:I,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=I,n[13]=a):a=n[13];const S=typeof o=="string"&&o?o:null;let c;n[14]!==o?(c=q(o),n[14]=o,n[15]=c):c=n[15];const T=s??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==T||n[20]!==P||n[21]!==a||n[22]!==S?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:S,host:c,connectionId:t,cdClient:T},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=T,n[20]=P,n[21]=a,n[22]=S,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&D(n.state.data)==="generating"?b:!1}function B(n,e){return{to:A.app,params:{org:n.slug,agentId:K(n.id),connectionId:e,toolName:L},search:{}}}export{D as d,B as r,j as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-Bd4S1JAr.js";import{eq as i}from"./index-ucJDxPyE.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-Bd4S1JAr.js";import{eq as u,ex as n}from"./index-ucJDxPyE.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|