decocms 4.527.0 → 4.529.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-CLeQm0q6.js → ActiveShapeUtils-DemHm_Wd.js} +1 -1
- package/dist/client/assets/{AlertCircle-D9_evsvO.js → AlertCircle-COvusPgV.js} +1 -1
- package/dist/client/assets/{AreaChart-D4vFJ6vT.js → AreaChart-DyTNutvb.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B6qwUpLq.js → ArrowLeft-DLvj60sB.js} +1 -1
- package/dist/client/assets/{ArrowUp-Cth_eVmU.js → ArrowUp-BUXNFn6K.js} +1 -1
- package/dist/client/assets/{BarChart-DLJTWg68.js → BarChart-pUJx5RZM.js} +1 -1
- package/dist/client/assets/{Building02-Wh9pimKL.js → Building02-GTlj-q2W.js} +1 -1
- package/dist/client/assets/{CartesianChart-DgnFHqiR.js → CartesianChart-GHKU27xx.js} +1 -1
- package/dist/client/assets/{CategoricalChart-ChFkF0_C.js → CategoricalChart-BYHLRXHR.js} +1 -1
- package/dist/client/assets/{CheckCircle-DoJXwawU.js → CheckCircle-C512y-MG.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CnRBP_5y.js → ChevronSelectorVertical-BsYzg3zS.js} +1 -1
- package/dist/client/assets/{ChevronUp-7SZxJu8w.js → ChevronUp-krQUb2vU.js} +1 -1
- package/dist/client/assets/{Copy01-Bu20fOqK.js → Copy01-DMa3yAGL.js} +1 -1
- package/dist/client/assets/{CreditCard01-Br0-9pHI.js → CreditCard01-B64VnM4Z.js} +1 -1
- package/dist/client/assets/{DotsVertical-OSj5km5S.js → DotsVertical-DcrZktRa.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BvjdLnvD.js → ErrorBarContext-4lCbO0nP.js} +1 -1
- package/dist/client/assets/{Globe04-D4srY_QI.js → Globe04-wvLOPSBv.js} +1 -1
- package/dist/client/assets/{Image01-CzYWCBEQ.js → Image01-C1LM4LI_.js} +1 -1
- package/dist/client/assets/{Key01-C-bam-4X.js → Key01-DBOKyeyp.js} +1 -1
- package/dist/client/assets/{Link01-DXRUIbxg.js → Link01-C15xvQCb.js} +1 -1
- package/dist/client/assets/{LinkBroken01-gdfveCgK.js → LinkBroken01-C-j1r45F.js} +1 -1
- package/dist/client/assets/{Minus-Czu3kpSA.js → Minus-pd7IxdG4.js} +1 -1
- package/dist/client/assets/{Monitor01-CruCSnyq.js → Monitor01-DkBo0gFa.js} +1 -1
- package/dist/client/assets/{Play-RzA3Niav.js → Play-BG4TP59z.js} +1 -1
- package/dist/client/assets/{Plus-BA90GKs1.js → Plus-CZXpdtEH.js} +1 -1
- package/dist/client/assets/{ReferenceLine-8vT4zADE.js → ReferenceLine-D8vPnc2l.js} +1 -1
- package/dist/client/assets/{SearchMd-DO1eOJvD.js → SearchMd-7uzgB_fN.js} +1 -1
- package/dist/client/assets/{Sector-Duu5xYm_.js → Sector-BoQZLv3P.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BuVMkUkJ.js → ShoppingBag01-fwBzMipi.js} +1 -1
- package/dist/client/assets/{Sun-Cg4UcsIP.js → Sun-BndYhLEq.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D_E9YPjp.js → SwitchHorizontal01-C8FHYpzr.js} +1 -1
- package/dist/client/assets/{Tool01-BJdrlQAn.js → Tool01-D6wuoLhW.js} +1 -1
- package/dist/client/assets/{Trash01-DcsYDVg8.js → Trash01-fFkz00Bo.js} +1 -1
- package/dist/client/assets/{Upload01-CYUmJE5W.js → Upload01-B7NXMv4U.js} +1 -1
- package/dist/client/assets/{UserSquare-D0z8lAkn.js → UserSquare-Dy6q7vGw.js} +1 -1
- package/dist/client/assets/{Users01-Y9yFg_2K.js → Users01-Bzd23uge.js} +1 -1
- package/dist/client/assets/{XClose-DIFkFXp0.js → XClose-Bl8OQypT.js} +1 -1
- package/dist/client/assets/{ZoomOut-rfozMzwP.js → ZoomOut-CbRHTtaG.js} +1 -1
- package/dist/client/assets/{access-gate-5CuwEsfU.js → access-gate-BUmBK35t.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Dl0GCijo.js → add-connection-dialog-EKB9ifd5.js} +1 -1
- package/dist/client/assets/agent-analytics-BIR7Elpu.js +1 -0
- package/dist/client/assets/agent-app-BY_sxPgf.js +1 -0
- package/dist/client/assets/{agent-assets-Bca92OI9.js → agent-assets-CLaEj6EO.js} +1 -1
- package/dist/client/assets/{agent-automation-CMS-kRWl.js → agent-automation-DjrvgxKz.js} +1 -1
- package/dist/client/assets/{agent-automations-BnnaEANZ.js → agent-automations-B_j3JMK5.js} +1 -1
- package/dist/client/assets/agent-calendar-BYK51o6p.js +1 -0
- package/dist/client/assets/{agent-connect-sources-BXy938hL.js → agent-connect-sources-CEHAzyyH.js} +1 -1
- package/dist/client/assets/agent-deck-O9lG5hoA.js +1 -0
- package/dist/client/assets/{agent-e2e-C129i6b0.js → agent-e2e-DC8qsIOa.js} +1 -1
- package/dist/client/assets/agent-experiments-BI2FazYu.js +1 -0
- package/dist/client/assets/{agent-file-Pm-Pf6i7.js → agent-file-B2uxKC-F.js} +1 -1
- package/dist/client/assets/{agent-hosting-d0mTmoi-.js → agent-hosting-RnWuRGIL.js} +1 -1
- package/dist/client/assets/agent-icon-D8I51g86.js +1 -0
- package/dist/client/assets/agent-library-CkANn3L_.js +1 -0
- package/dist/client/assets/agent-library-file-WsrEoVuH.js +1 -0
- package/dist/client/assets/agent-monitor-B02h5NLr.js +1 -0
- package/dist/client/assets/{agent-overview-Dxkm_aaP.js → agent-overview-C5NgXH7s.js} +1 -1
- package/dist/client/assets/agent-releases-BC4vHFHk.js +2 -0
- package/dist/client/assets/agent-settings-LRXrMwgi.js +1 -0
- package/dist/client/assets/{agent-site-editor-DvH8IVvU.js → agent-site-editor-DxPxTcxt.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-CkH40Rf7.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Cr-1q_qf.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BtO7VQJF.js +1 -0
- package/dist/client/assets/agent-view-JeA7v4l-.js +1 -0
- package/dist/client/assets/{agent-view-guard-DSdm7lha.js → agent-view-guard-DGYTrdB6.js} +1 -1
- package/dist/client/assets/{agents-list-3hk3xPXP.js → agents-list-B3GTSyKF.js} +1 -1
- package/dist/client/assets/{ai-providers-CHbdsaF9.js → ai-providers-kbqqFGXw.js} +1 -1
- package/dist/client/assets/alert-Co4rQNsj.js +1 -0
- package/dist/client/assets/{analytics-sections-CQH2mNjC.js → analytics-sections-sv8ClgZ6.js} +1 -1
- package/dist/client/assets/{analytics-tab-D1CO6HBg.js → analytics-tab-CZkiyMbX.js} +2 -2
- package/dist/client/assets/{api-keys-CsjJKvfD.js → api-keys-C1HeQnUq.js} +1 -1
- package/dist/client/assets/api-keys-D5vUfJru.js +1 -0
- package/dist/client/assets/app-editor-6n0QxI7G.js +1 -0
- package/dist/client/assets/{asset-utils-ClXQ82gA.js → asset-utils-BVjUn7sv.js} +1 -1
- package/dist/client/assets/{auth-BJe1aOgg.js → auth-D095ELC6.js} +1 -1
- package/dist/client/assets/{auth-catchall-CeL8XspO.js → auth-catchall-CNcTLbQH.js} +1 -1
- package/dist/client/assets/{auth-entry-Bux_mJRN.js → auth-entry-B00ENnh_.js} +1 -1
- package/dist/client/assets/{auth-split-layout-TRenqsIV.js → auth-split-layout-BygL4T3m.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BhtEjQrU.js → authenticate-and-persist-oauth-BWNvTNl4.js} +1 -1
- package/dist/client/assets/{automation-list-row-DtC2tENT.js → automation-list-row-D74lyjQr.js} +1 -1
- package/dist/client/assets/{automation-runs-BDvJXwcu.js → automation-runs-CBMsjgBs.js} +1 -1
- package/dist/client/assets/{automations-Qapln07Q.js → automations-jj-tbLkb.js} +1 -1
- package/dist/client/assets/{autosend-BKwtMB6P.js → autosend-CBkC989z.js} +1 -1
- package/dist/client/assets/{badge-Dne4Jx9I.js → badge-NOwFVf79.js} +1 -1
- package/dist/client/assets/{block-document-Cs719bjv.js → block-document-BHzrJZOA.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-DUWc_2XG.js → blocks-preview-workspace-context-BXnXIitx.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DBqkaxym.js → blocks-tab-states-B1baLGbh.js} +1 -1
- package/dist/client/assets/{blog-schema-bP1Fdz76.js → blog-schema-BfjxCL-D.js} +1 -1
- package/dist/client/assets/{buckets-DIalMn5g.js → buckets-DuxgHXni.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CxMWosB4.js → build-improve-prompt-doc-DfrXi7V7.js} +1 -1
- package/dist/client/assets/{calendar-DqTMQkmt.js → calendar-r-ZqwkU5.js} +1 -1
- package/dist/client/assets/{capability-load-error-C2YNxboS.js → capability-load-error-C_z_eZxA.js} +1 -1
- package/dist/client/assets/category-editor-BVzHX2Tl.js +1 -0
- package/dist/client/assets/{cdn-tab-qQFB8_vy.js → cdn-tab-CqrDuE12.js} +1 -1
- package/dist/client/assets/{chart-CnvxVWLO.js → chart-CpZD0pzF.js} +1 -1
- package/dist/client/assets/{chat-context-C2Yxk7gW.js → chat-context-CFRPrQEn.js} +5 -5
- package/dist/client/assets/{chat-draft-CoNCF5e9.js → chat-draft-CookMc2A.js} +1 -1
- package/dist/client/assets/{checkbox-5tVptIvn.js → checkbox-CHAX1Xck.js} +1 -1
- package/dist/client/assets/{choose-editor-he5994Iy.js → choose-editor-agHDRvWe.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C13o6nT8.js → cli-auth-success-DiUqDmOP.js} +1 -1
- package/dist/client/assets/{client-icons-AfqD3us-.js → client-icons-CbLac6SE.js} +1 -1
- package/dist/client/assets/cms-settings-editor-osH6UqMf.js +1 -0
- package/dist/client/assets/{collapsible-B_i_flQZ.js → collapsible-B0-dgkow.js} +1 -1
- package/dist/client/assets/{collection-detail-C5W1nmJm.js → collection-detail-DMhjkfO0.js} +1 -1
- package/dist/client/assets/{collection-display-button-g8pw1BKa.js → collection-display-button-VpsslNFN.js} +1 -1
- package/dist/client/assets/{collection-search-DKSj36i2.js → collection-search-CfEbdS6s.js} +1 -1
- package/dist/client/assets/collection-table-wrapper-Bmq1UECe.js +1 -0
- package/dist/client/assets/{collection-tabs-BVf232LH.js → collection-tabs-CKvYpxHT.js} +1 -1
- package/dist/client/assets/{column-rules-CRkg9Fxl.js → column-rules-DLuTKpTB.js} +1 -1
- package/dist/client/assets/{combobox-B8zTmLu1.js → combobox-B2ABYNJF.js} +1 -1
- package/dist/client/assets/{command-D79ZH19X.js → command-yWHdaNhz.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CthCluci.js → companion-mcps-section-CzTfnHtf.js} +1 -1
- package/dist/client/assets/{config-94XCayih.js → config-BWRujj0b.js} +1 -1
- package/dist/client/assets/{connect-DIgUkNj9.js → connect-Dd7mHJ3b.js} +1 -1
- package/dist/client/assets/{connect-layout-CH6ZSb5T.js → connect-layout-CuMi_Lil.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DPHm5SIR.js → connect-source-dialog-CEGXiNKG.js} +1 -1
- package/dist/client/assets/{connection-CiqnzKwe.js → connection-BLQ_zE4V.js} +1 -1
- package/dist/client/assets/{connection-card-CgbmOEtZ.js → connection-card-By3c6kjU.js} +1 -1
- package/dist/client/assets/{connection-detail-CWZ53gOP.js → connection-detail-shznFsHq.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-ntCbPy2n.js → connection-form-helpers-Z8pfNB14.js} +1 -1
- package/dist/client/assets/{connections-Bt4pwqu3.js → connections-BPuzvSmY.js} +1 -1
- package/dist/client/assets/content-tab-DneBUwU0.js +22 -0
- package/dist/client/assets/context-CFpk-Oj4.js +1 -0
- package/dist/client/assets/{context-menu-BAoOyR8J.js → context-menu-DJBtOK1b.js} +1 -1
- package/dist/client/assets/{context-shell-BFW9I6d4.js → context-shell-BmoIxzr5.js} +5 -5
- package/dist/client/assets/{core.esm-DpydQIdT.js → core.esm-n2M8kvjD.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DKF90Pre.js → create-organization-dialog-CQRec3jk.js} +1 -1
- package/dist/client/assets/{daily-pulse-Bojl1W7A.js → daily-pulse-BbNgROp9.js} +1 -1
- package/dist/client/assets/{discover-CeBBMXm9.js → discover-C-nnI3od.js} +1 -1
- package/dist/client/assets/{domain-settings-BXAu6Flk.js → domain-settings-Cc13IWEI.js} +1 -1
- package/dist/client/assets/{drawer-hQxgme01.js → drawer-CiMnESz2.js} +1 -1
- package/dist/client/assets/{editor-C7NsJj0P.js → editor-DmuvoJYA.js} +1 -1
- package/dist/client/assets/{editor-classes-iJqU7okF.js → editor-classes-BnQ0j7aI.js} +1 -1
- package/dist/client/assets/{empty-state-BGj88Oz3.js → empty-state-TJAbP9DT.js} +1 -1
- package/dist/client/assets/{empty-state-Gwq8u3Sk.js → empty-state-usXK3Xda.js} +1 -1
- package/dist/client/assets/experiments-tab-BP2V1ct9.js +1 -0
- package/dist/client/assets/{experiments-tab-choice-C-Kj-SaP.js → experiments-tab-choice-0iIRb8Mb.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Cx9ah1z5.js → extract-connection-data-w2KZjBRz.js} +1 -1
- package/dist/client/assets/{feature-gate-DTum9WCp.js → feature-gate-CL9DvP9Y.js} +1 -1
- package/dist/client/assets/{feature-paywall-zO4dzbka.js → feature-paywall-DSpW8aNd.js} +1 -1
- package/dist/client/assets/{file-explorer-Xl96APN-.js → file-explorer-p0qSIvAq.js} +1 -1
- package/dist/client/assets/{file-preview-Bm_62NfP.js → file-preview-BnfIAfXR.js} +1 -1
- package/dist/client/assets/{file-share-button-D7t2lHex.js → file-share-button-D0fIsSP3.js} +1 -1
- package/dist/client/assets/{file-type-icon-DptKoj-q.js → file-type-icon-BMJ3eu8C.js} +1 -1
- package/dist/client/assets/{folder-icon-CAAlpUI4.js → folder-icon-AsglkwKY.js} +2 -2
- package/dist/client/assets/{form-DU60ZzuM.js → form-B15LRu36.js} +1 -1
- package/dist/client/assets/{general-DlFBPmt9.js → general-jGb_G4uN.js} +1 -1
- package/dist/client/assets/{held-block-view-rUTUNCUd.js → held-block-view-OUun6HKW.js} +3 -3
- package/dist/client/assets/{home-Bo_yPeSm.js → home-T15wg8dw.js} +1 -1
- package/dist/client/assets/hosted-publish-feedback-CpPg0deS.js +1 -0
- package/dist/client/assets/{icon-button-DhKNS89h.js → icon-button-CdKw1JM7.js} +1 -1
- package/dist/client/assets/{index-B-HoKvLm.js → index-BCVYESVO.js} +1 -1
- package/dist/client/assets/{index-AaUC9WD6.js → index-BJ0i7OFb.js} +1 -1
- package/dist/client/assets/{index-BoQ6UNxI.js → index-Ba639kg_.js} +1 -1
- package/dist/client/assets/{index-Cp2UI7aA.js → index-BfJfM0M5.js} +1 -1
- package/dist/client/assets/{index-Cj3mLa-X.js → index-CPx4iDWN.js} +1 -1
- package/dist/client/assets/{index-XfVM7o1o.js → index-CYkDIirY.js} +1 -1
- package/dist/client/assets/{index-Boaq93Wx.js → index-Cdp3CJ7S.js} +2 -2
- package/dist/client/assets/{index-BsRMIjqv.js → index-Cv-yBusP.js} +1 -1
- package/dist/client/assets/{index-Cuw4uBth.js → index-D6lKvaoF.js} +49 -49
- package/dist/client/assets/{index-T8jAgtpZ.js → index-DTPm19J5.js} +1 -1
- package/dist/client/assets/{index-DDaQcb3Z.js → index-DdjqsLVd.js} +1 -1
- package/dist/client/assets/{index-D74iAt06.js → index-DgseJSFR.js} +1 -1
- package/dist/client/assets/{index-BwdKQXWi.js → index-Du8mxU6I.js} +1 -1
- package/dist/client/assets/{index-7KY_ymC5.js → index-ke7VZu6f.js} +1 -1
- package/dist/client/assets/{index-redirect-Du4fUGPn.js → index-redirect-DPkf2M1r.js} +1 -1
- package/dist/client/assets/{index-CoQjVodF.js → index-suEm9Jo8.js} +1 -1
- package/dist/client/assets/index-u-z_8GjU.css +1 -0
- package/dist/client/assets/{infiniteQueryObserver-Dy0j8RRj.js → infiniteQueryObserver-DoO1tFcg.js} +1 -1
- package/dist/client/assets/{infra-billing-BUQH5Z5B.js → infra-billing-AOTF4BF9.js} +1 -1
- package/dist/client/assets/{input-eQkN56jq.js → input-BjDpMhiP.js} +4 -4
- package/dist/client/assets/{input-CBK8CI9T.js → input-CGPBEV3I.js} +1 -1
- package/dist/client/assets/{integration-icon-DkmY4VjA.js → integration-icon-DsUtWvNG.js} +1 -1
- package/dist/client/assets/{jira-icon-DIX055Fu.js → jira-icon-ClDodO3R.js} +1 -1
- package/dist/client/assets/{label-GaS9ZdQZ.js → label-G1B1MWwD.js} +1 -1
- package/dist/client/assets/{layout-D6bYiXJy.js → layout-txEP7eBz.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DwABkmGV.js → legacy-agents-deep-DPRz-ztQ.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-D9RmQuU4.js → legacy-main-redirect-D4h2lZ1C.js} +1 -1
- package/dist/client/assets/library-DG80ymId.js +1 -0
- package/dist/client/assets/{login-DbWYcBcy.js → login-BLrZZn8v.js} +1 -1
- package/dist/client/assets/{markdown-DWeSe4_P.js → markdown-qzRhqGiE.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-gjnt5Msm.js → mcp-app-renderer-BEchnhBH.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DCesmV8O.js → mcp-oauth-C5j0dGpY.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BN2jrcE-.js → mcp-oauth-DB3Ehq2l.js} +1 -1
- package/dist/client/assets/{members-A7hOfyTI.js → members-UnOmDr74.js} +1 -1
- package/dist/client/assets/{memory-BToaysGU.js → memory-DDcdJq0f.js} +2 -2
- package/dist/client/assets/{mini-report-page-B-hsDt1L.js → mini-report-page-0MJL6jaw.js} +1 -1
- package/dist/client/assets/{mock-board-DrLmLQZ3.js → mock-board-BMi5jY8O.js} +3 -3
- package/dist/client/assets/{monaco-editor-D7u0RPEL.js → monaco-editor-f9CmyWiW.js} +1 -1
- package/dist/client/assets/monitoring-BcfPBOT_.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-BHTpzVVz.js → monitoring-stats-row-DbGeX6M1.js} +1 -1
- package/dist/client/assets/{multi-select-A_VyitSa.js → multi-select-DDgBvcml.js} +1 -1
- package/dist/client/assets/mustache-Dlytn5tt.js +4 -0
- package/dist/client/assets/{named-rule-uses-B_glLrdA.js → named-rule-uses-Ce5M9wic.js} +1 -1
- package/dist/client/assets/{new-project-dialog-M-WLwZ47.js → new-project-dialog-CMq12kc2.js} +1 -1
- package/dist/client/assets/{oauth-callback-eNefWc41.js → oauth-callback-CHDXWkE_.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DwNEOUuo.js → oauth-callback-ai-provider-UMPeP62o.js} +1 -1
- package/dist/client/assets/{onboarding-8FafpOAf.js → onboarding-M__h_Gjj.js} +1 -1
- package/dist/client/assets/{openai-conversation-Bi2qzvSg.js → openai-conversation-CaIhAnt3.js} +2 -2
- package/dist/client/assets/{optimistic-project-sidebar-views-BFrvBRmj.js → optimistic-project-sidebar-views-CdaXFXXA.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BBUvq3hr.js → order-monitor-day-EdsSjGDV.js} +1 -1
- package/dist/client/assets/{organization-choice-CGhQdnA_.js → organization-choice-nAa_gubo.js} +1 -1
- package/dist/client/assets/{orgs-Cp4K5sO3.js → orgs-Bf_omTy9.js} +1 -1
- package/dist/client/assets/{page-seo-form-BUMyGTyK.js → page-seo-form-bDCctB_4.js} +1 -1
- package/dist/client/assets/{pair-DtCSsufw.js → pair-DAGOA-DW.js} +1 -1
- package/dist/client/assets/{parse-sections-B1uka1Vq.js → parse-sections-CQtk5pOz.js} +1 -1
- package/dist/client/assets/{plan-D4y2SMp_.js → plan-B6ZUDARY.js} +1 -1
- package/dist/client/assets/{plan-ladder-Cr-CdTR1.js → plan-ladder-lTkei0Ti.js} +1 -1
- package/dist/client/assets/{popover-DiqYPKHh.js → popover-0uuKFwAZ.js} +1 -1
- package/dist/client/assets/post-calendar-EZk2hClJ.js +1 -0
- package/dist/client/assets/{post-editor-Bcpnqi7N.js → post-editor-DBjNxHSS.js} +2 -2
- package/dist/client/assets/{preview-content-BC2_4BBb.js → preview-content-QwLJXUTL.js} +1 -1
- package/dist/client/assets/{preview-dialog-DO4TwwDT.js → preview-dialog-COkKtKSn.js} +1 -1
- package/dist/client/assets/{preview-panel-DnnzsZo-.js → preview-panel-CYvbBECE.js} +1 -1
- package/dist/client/assets/{preview-tab-DV_MhenF.js → preview-tab-CevrXu6o.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-D8RlvSwu.js → product-picker-dialog-C4MqsCUp.js} +1 -1
- package/dist/client/assets/{profile-CCof6E-v.js → profile-BpyEXZc8.js} +1 -1
- package/dist/client/assets/project-app-view-Be6CnjoI.js +1 -0
- package/dist/client/assets/{project-apps-dDvUBGvO.js → project-apps-B0ovyypF.js} +1 -1
- package/dist/client/assets/{project-feed-JqOKyKR3.js → project-feed-C21rLNuW.js} +1 -1
- package/dist/client/assets/{project-icon-DQNZWn_4.js → project-icon-DSVUD72l.js} +1 -1
- package/dist/client/assets/project-reports-B-dKM4cz.js +1 -0
- package/dist/client/assets/project-tasks-CQ6MOp0o.js +1 -0
- package/dist/client/assets/{projects-D8PEOsfX.js → projects-DVL140KR.js} +1 -1
- package/dist/client/assets/{projects-empty-state-ComRagNK.js → projects-empty-state--1SkJcww.js} +1 -1
- package/dist/client/assets/{prompts-D-z15mGy.js → prompts-BB-mkKBu.js} +1 -1
- package/dist/client/assets/record-editor-CHzxFRQb.js +1 -0
- package/dist/client/assets/redirect-editor-MSkonkYZ.js +1 -0
- package/dist/client/assets/releases-api-XsGA4Jqp.js +1 -0
- package/dist/client/assets/{reports-C0wR9iIJ.js → reports-Bs2cZ7-f.js} +1 -1
- package/dist/client/assets/reports-CDn9xmoF.js +1 -0
- package/dist/client/assets/{reports-onboarding-B1OyYbCz.js → reports-onboarding-CQDYROlT.js} +1 -1
- package/dist/client/assets/{reports-tab-D1M-BlGe.js → reports-tab-unD6Cc73.js} +2 -2
- package/dist/client/assets/{repositories-DHT9v-UO.js → repositories-D4uDVy59.js} +1 -1
- package/dist/client/assets/repositories-jqcTJr-Z.js +1 -0
- package/dist/client/assets/{repository-binding-CXnxCF4M.js → repository-binding-DG0YfJ0p.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DLsxOOxp.js → repository-import-picker-DmsHSDsT.js} +1 -1
- package/dist/client/assets/{repository-picker-Cq7JBkFe.js → repository-picker-DtHxD0oz.js} +1 -1
- package/dist/client/assets/{require-capability-Cmje3DfT.js → require-capability-Coznh-2O.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CwX_2fTY.js → required-auth-layout-D6rVgMVl.js} +1 -1
- package/dist/client/assets/{reset-password-CmI8_Uk5.js → reset-password-T1aKmDxe.js} +1 -1
- package/dist/client/assets/{resizable-C7Is3s-0.js → resizable-BToK-_9q.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-_XMXFt4U.js → resolve-tab-icon-BZcs-4Ej.js} +1 -1
- package/dist/client/assets/{review-settings-BFUKsPsq.js → review-settings-D8DTqrlS.js} +1 -1
- package/dist/client/assets/{roles-CeJo75GF.js → roles-BjZzPNJU.js} +1 -1
- package/dist/client/assets/{route-BMliOu1G.js → route-CGlwPlVk.js} +1 -1
- package/dist/client/assets/route-JsLO4TKF.js +1 -0
- package/dist/client/assets/{route-Cvt2392J.js → route-ZKQ_kRmZ.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-CH_-QFpD.js → sandbox-git-api-DcqI6XE4.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DdYoEP5e.js → sandbox-lifecycle-context-DmhDA6t4.js} +1 -1
- package/dist/client/assets/{schema-D5UoICKI.js → schema-DNxvjoV7.js} +1 -1
- package/dist/client/assets/{schema-D02aTPkl.js → schema-DnX2JCBp.js} +1 -1
- package/dist/client/assets/{scroll-area-CDUvVvSH.js → scroll-area-DuxlLjxF.js} +1 -1
- package/dist/client/assets/{search-input-BqT8bImj.js → search-input-D-Pyf_-v.js} +1 -1
- package/dist/client/assets/{search-toggle-BoR9-yak.js → search-toggle-Dtmn6N5P.js} +1 -1
- package/dist/client/assets/{secret-picker-vfO2xRLb.js → secret-picker-DVVZ5bEr.js} +1 -1
- package/dist/client/assets/{secrets-DIgmoPjh.js → secrets-cTi-1KGY.js} +1 -1
- package/dist/client/assets/{section-array-field-BwPxgG9_.js → section-array-field-D7M_bj6e.js} +1 -1
- package/dist/client/assets/{sections-Bv_E_JwJ.js → sections-DoIjBnkB.js} +1 -1
- package/dist/client/assets/sections-editor-Cp3o1WEu.js +1 -0
- package/dist/client/assets/{select-B73KS7i3.js → select-WYGhjx6Y.js} +1 -1
- package/dist/client/assets/{select-model-zK4bDPrj.js → select-model-7YJABjjD.js} +1 -1
- package/dist/client/assets/{seo-editor-DMhyWewz.js → seo-editor-DxqL4dEA.js} +1 -1
- package/dist/client/assets/{separator-Bun_4c4E.js → separator-CAQrypmQ.js} +1 -1
- package/dist/client/assets/settings-tab-DBT9iC5q.js +1 -0
- package/dist/client/assets/{sheet-56HC7WRJ.js → sheet-BXLIoGMZ.js} +1 -1
- package/dist/client/assets/{shell-layout-C2BJGx2g.js → shell-layout-DIzvUuq-.js} +1 -1
- package/dist/client/assets/site-draft-actions-L6qNX2KR.js +3 -0
- package/dist/client/assets/site-draft-view-CFpMP26D.js +2 -0
- package/dist/client/assets/site-editor-CFIZ4rer.js +1 -0
- package/dist/client/assets/site-editor-toast-DYuw8EYm.js +1 -0
- package/dist/client/assets/{skills-DJ7eTdb8.js → skills-Bs4GOdTG.js} +1 -1
- package/dist/client/assets/{slider-DnA5KcIW.js → slider-CViVuHCu.js} +1 -1
- package/dist/client/assets/{sortable.esm-xXl-6mL4.js → sortable.esm-DEhQR8uW.js} +1 -1
- package/dist/client/assets/{sso-CpCZW-eP.js → sso-RbRiEKa0.js} +1 -1
- package/dist/client/assets/{suggestion-CZpp719s.js → suggestion-Bx_JdcJG.js} +2 -2
- package/dist/client/assets/{switch-n_zXX4if.js → switch-BByo6038.js} +1 -1
- package/dist/client/assets/{symbol-YpIq4fgA.js → symbol-Dxfa7ArY.js} +1 -1
- package/dist/client/assets/{synced-repos-B2cUQUNf.js → synced-repos-COUZBGua.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-D237cGJI.js → tab-icon-glyph-Bk-ZO6Ik.js} +1 -1
- package/dist/client/assets/{table-CSojOz4z.js → table-CSNuDYSH.js} +1 -1
- package/dist/client/assets/{tabs-C8EZr9R7.js → tabs-D3JiC-AY.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-RKc3yRg-.js → task-assignee-avatar-BmM5P6_t.js} +1 -1
- package/dist/client/assets/{task-board-DH9ssxkG.js → task-board-9JuNZBWk.js} +1 -1
- package/dist/client/assets/{task-route-bLUOK5JR.js → task-route-8N1kEUR4.js} +1 -1
- package/dist/client/assets/{task-status-Bc6ioQFn.js → task-status-CqFVxY8B.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-D7vs-xto.js → taskboard-analytics-CJlU-oAO.js} +1 -1
- package/dist/client/assets/tasks-BVwsk6i_.js +1 -0
- package/dist/client/assets/{tasks-e6DH9H0h.js → tasks-gqaInVx6.js} +3 -3
- package/dist/client/assets/{textarea-CDKBkceb.js → textarea-L_ZRNMiO.js} +1 -1
- package/dist/client/assets/{thread-analytics-BTiORs_j.js → thread-analytics-BcGg7DjZ.js} +1 -1
- package/dist/client/assets/{thread-intent-CZ5_EO2w.js → thread-intent-B7fQ4X9a.js} +1 -1
- package/dist/client/assets/{thread-route-BYWxmsao.js → thread-route-P1MEabq1.js} +1 -1
- package/dist/client/assets/{thread-route-DIZgBacC.js → thread-route-qfZwEURL.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-C_1TXm2y.js → thread-sheet-body-Brz-5Xzp.js} +1 -1
- package/dist/client/assets/{time-range-picker-CF_xrXhr.js → time-range-picker-D-N-klXR.js} +1 -1
- package/dist/client/assets/{toggle-group-DGx4bXEF.js → toggle-group-DGrVpPy5.js} +1 -1
- package/dist/client/assets/{tool-namespace-DO1Qm86o.js → tool-namespace-D6LarB3P.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DZE2ESw9.js → toolbar-icon-button-DA7DTn0f.js} +1 -1
- package/dist/client/assets/{tooltip-Ci3ZwooP.js → tooltip-LAilTl9w.js} +1 -1
- package/dist/client/assets/{tooltipContext-DfN2pXFs.js → tooltipContext-BD4z8QR3.js} +1 -1
- package/dist/client/assets/{track-BtJWR_CA.js → track-BDBNTOtn.js} +1 -1
- package/dist/client/assets/{types-DhOLYbcW.js → types-B-ck70wq.js} +3 -3
- package/dist/client/assets/{url-slug-CLyOdzAm.js → url-slug-hCw666fV.js} +1 -1
- package/dist/client/assets/{usage-stats-CNLGhk-o.js → usage-stats-C7wY64zK.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DOax94rO.js → use-ai-providers-CCh3hgye.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-CJFPy5HY.js → use-apply-named-rule-C3ZZJzlV.js} +1 -1
- package/dist/client/assets/{use-automations-CPkt7SVV.js → use-automations-CRFTJK4f.js} +1 -1
- package/dist/client/assets/{use-autosave-yGWalCYV.js → use-autosave-DCyEvO0j.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-EYafKK4O.js → use-chat-layout-state-wJjkzkeX.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BUftA4XN.js → use-clock-tick-N15XxKsH.js} +1 -1
- package/dist/client/assets/use-cms-publish-actions-Ba42J8md.js +10 -0
- package/dist/client/assets/{use-connect-companion-BhEYBdV4.js → use-connect-companion-DnBPIlmE.js} +1 -1
- package/dist/client/assets/{use-connection-eHzowbKv.js → use-connection-BBWQ1upy.js} +1 -1
- package/dist/client/assets/{use-copy-ClerAXdJ.js → use-copy-Bnv2yRR0.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-J2E0RhLc.js → use-create-virtual-mcp-CLc8yu5S.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CrqyAQep.js → use-date-fns-locale-Br988cT0.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BVxg8vxx.js → use-debounced-autosave-GFM4KrwH.js} +1 -1
- package/dist/client/assets/{use-debounced-value-2_mLSVw4.js → use-debounced-value-DLa-riOh.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DABk3yY1.js → use-deco-credits-3I0Gmtle.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CA56Gos8.js → use-decopilot-events-C6bScbXe.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CVhCNDYo.js → use-delete-connection-BZQtBcN0.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BGnnzyoF.js → use-deployment-admin-D2xZ3EVY.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DrM2pRhy.js → use-fast-preview-draft-url-DRBVlysi.js} +1 -1
- package/dist/client/assets/{use-file-configs-Bg-fEAGm.js → use-file-configs-EhGCWGKO.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-C9znaZFi.js → use-inbox-feed-MI8GAssc.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DfZZeab5.js → use-infinite-scroll-Dl4ppp1T.js} +1 -1
- package/dist/client/assets/{use-join-requests-DHGPKNlr.js → use-join-requests-D0RX0KVp.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-WUAIV6cr.js → use-main-panel-tabs-Dy6OYkJL.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DZTVEUgz.js → use-mcp-auth-status-BLS8Hv4S.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CfpsAKj4.js → use-mcp-client-DwqRqgyq.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-B6wGbsaO.js → use-mcp-prompts-l19k-bhU.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-De9LHWCI.js → use-mcp-tools-CNG9BIav.js} +1 -1
- package/dist/client/assets/{use-mobile-99mfVsUI.js → use-mobile-BwQy16Q6.js} +1 -1
- package/dist/client/assets/use-move-blocks-Crj0de_N.js +1 -0
- package/dist/client/assets/{use-navigate-to-agent-DaAFktW9.js → use-navigate-to-agent-BK5-GF4Q.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-Bzh-ntva.js → use-open-billing-url-BQr-ZtMF.js} +1 -1
- package/dist/client/assets/{use-org-fs-Dczc29OI.js → use-org-fs-DLZ1-PTn.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Cf3GrgqR.js → use-org-repo-syncs-CDoF8IOA.js} +1 -1
- package/dist/client/assets/{use-org-sso-CTKiuB0A.js → use-org-sso-C-qEDq8K.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BfeXwaiy.js → use-organization-roles-D0H2tUJi.js} +1 -1
- package/dist/client/assets/{use-organization-settings-SIasU_tC.js → use-organization-settings-kq9jLGY0.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-B12jZOsf.js → use-panel-navigate-BECpOul-.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BYkoNVb2.js → use-project-native-view-presence-1uAz-ylt.js} +1 -1
- package/dist/client/assets/{use-project-scope-8q_Pr-Xb.js → use-project-scope-DQZacSdf.js} +1 -1
- package/dist/client/assets/{use-recent-apps-0tmI_vdA.js → use-recent-apps-ujQcGW4R.js} +1 -1
- package/dist/client/assets/{use-releases-BrcgpLBE.js → use-releases-Brr6nY5b.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DXt6zEk2.js → use-reports-diagnostic-CSbUL_Ki.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-DukuKdrD.js → use-sandbox-events-DDEe74Lx.js} +1 -1
- package/dist/client/assets/{use-secrets-zkQum-du.js → use-secrets-B-wd58Sw.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CPGTecvC.js → use-section-preview-base-CyvlvXKC.js} +1 -1
- package/dist/client/assets/{use-session-runtime-BkX1p9DX.js → use-session-runtime-oQf5p7F0.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-DxKpoCm3.js → use-sidebar-collapsed-CQxN5Dgl.js} +1 -1
- package/dist/client/assets/{use-tags-Cf5XANnQ.js → use-tags-Ckwl5Ic8.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-Bm_X5xzM.js → use-task-board-analytics-CxJm3obr.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CmQec1Gn.js → use-task-board-events-C11vdnOU.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CFwgg281.js → use-task-board-item-prs-OoBVrY5e.js} +1 -1
- package/dist/client/assets/{use-task-metadata-ztONCu50.js → use-task-metadata-B5vxvrwt.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-D2_R_6NS.js → use-thread-analytics-Ccey92kA.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CM6siwJk.js → use-thread-outputs-AtJj5nDf.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B3ME351M.js +1 -0
- package/dist/client/assets/{useQueries-BmYWSC6K.js → useQueries-DwNBQmnp.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DdTGZQmz.js +1 -0
- package/dist/client/assets/{users-Tw_qkTX5.js → users-47U5EmUY.js} +1 -1
- package/dist/client/assets/{utils-gKN9JfVP.js → utils-CLU7TQYj.js} +1 -1
- package/dist/client/assets/{variant-calendar-BPJ1qq_6.js → variant-calendar-8QsQaZXX.js} +1 -1
- package/dist/client/assets/variant-matcher-override-VqVKqAN8.js +1 -0
- package/dist/client/assets/view-header-C8Yesx7u.js +1 -0
- package/dist/client/assets/{virtual-mcp-DSjzxtZz.js → virtual-mcp-BO25j0IY.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-B-BVtIbV.js → watch-sse-pool-DZPVglNq.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-DekAZPEA.js +0 -1
- package/dist/client/assets/agent-app-CTIntyRO.js +0 -1
- package/dist/client/assets/agent-calendar-BOwlx26G.js +0 -1
- package/dist/client/assets/agent-deck-Blwg0xlI.js +0 -1
- package/dist/client/assets/agent-experiments-Dh0XTNYQ.js +0 -1
- package/dist/client/assets/agent-icon-C1y4Hi5E.js +0 -1
- package/dist/client/assets/agent-library-BvqNBNnB.js +0 -1
- package/dist/client/assets/agent-library-file-B3CNW-Ur.js +0 -1
- package/dist/client/assets/agent-monitor-CRDNCfA0.js +0 -1
- package/dist/client/assets/agent-releases-Cm87ANGo.js +0 -2
- package/dist/client/assets/agent-settings-BO1V25up.js +0 -1
- package/dist/client/assets/agent-site-editor-code-C_cxtapJ.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BGtWv50J.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-B0XVbr7I.js +0 -1
- package/dist/client/assets/agent-view-sQDimm56.js +0 -1
- package/dist/client/assets/alert-DiPve0LV.js +0 -1
- package/dist/client/assets/api-keys-6VZ4TzW2.js +0 -1
- package/dist/client/assets/app-editor-ajdhmZLY.js +0 -1
- package/dist/client/assets/category-editor-DcJjRuKm.js +0 -1
- package/dist/client/assets/cms-settings-editor-CFLaDl_s.js +0 -1
- package/dist/client/assets/collection-table-wrapper-BRngAqmo.js +0 -1
- package/dist/client/assets/content-tab--1ooKCUT.js +0 -22
- package/dist/client/assets/context-C0NiIgda.js +0 -1
- package/dist/client/assets/experiments-tab-B8wvIAAX.js +0 -1
- package/dist/client/assets/index-DfpwvZQG.css +0 -1
- package/dist/client/assets/library--gRfaIdM.js +0 -1
- package/dist/client/assets/monitoring-VWUfglka.js +0 -1
- package/dist/client/assets/mustache-BxO97obl.js +0 -4
- package/dist/client/assets/post-calendar-DYyzGtbp.js +0 -1
- package/dist/client/assets/project-app-view-BwcoGS-v.js +0 -1
- package/dist/client/assets/project-reports-C5SkTKHX.js +0 -1
- package/dist/client/assets/project-tasks-CX44ab5v.js +0 -1
- package/dist/client/assets/record-editor-FHEv7gn_.js +0 -1
- package/dist/client/assets/redirect-editor-BcHXzq7w.js +0 -1
- package/dist/client/assets/releases-api-Dd6sHYpc.js +0 -1
- package/dist/client/assets/reports-DRzidVXr.js +0 -1
- package/dist/client/assets/repositories-Q-unbJnr.js +0 -1
- package/dist/client/assets/route-DVaDfduX.js +0 -1
- package/dist/client/assets/sections-editor-2zr-sr1i.js +0 -1
- package/dist/client/assets/settings-tab-CdOisIW6.js +0 -1
- package/dist/client/assets/site-draft-actions-CSQlnRHC.js +0 -12
- package/dist/client/assets/site-draft-view-BaHCN82W.js +0 -2
- package/dist/client/assets/site-editor-VsNIJVQY.js +0 -1
- package/dist/client/assets/site-editor-toast-DQ656FVh.js +0 -1
- package/dist/client/assets/tasks-DnPEEzRb.js +0 -1
- package/dist/client/assets/use-content-sync-CsEeS6wP.js +0 -1
- package/dist/client/assets/use-move-blocks-ChQw5gpw.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DFK0dHSs.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BBbMOBX0.js +0 -1
- package/dist/client/assets/variant-matcher-override-DKBTrcbu.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as P,q as z,m as M,K as h,eP as ct,aK as zt,aL as Xt,r as j,a as Zt,az as pe,a4 as qt,eQ as lt,eR as Ce,bh as be,eS as ue,eT as _e,eU as Ne,ax as Kt,bq as ut,eV as F,eW as ee,eX as we,eY as He,eZ as en,t as q,j as G}from"./index-Cuw4uBth.js";import{u as dt}from"./use-session-runtime-BkX1p9DX.js";import{s as Ge}from"./thread-intent-CZ5_EO2w.js";import{u as Re,b as tn}from"./experiments-tab-choice-C-Kj-SaP.js";import{b as de}from"./sandbox-url-D3mC8qhT.js";import{s as nn}from"./utils-gKN9JfVP.js";import{a as on}from"./repository-binding-CXnxCF4M.js";import{u as rn}from"./chat-context-C2Yxk7gW.js";import{i as sn,u as an}from"./use-sandbox-events-DukuKdrD.js";import{a as cn}from"./sandbox-git-api-CH_-QFpD.js";import{e as ln}from"./backoff-CrEUbyZT.js";const S={MethodNotFound:-32601,InvalidParams:-32602,InternalError:-32603,NotFound:-32001,Conflict:-32002,InvalidBlock:-32003,ReadOnly:-32005,Unsupported:-32006,LimitExceeded:-32007,Unavailable:-32008,Unauthorized:-32010};class D extends Error{code;data;constructor(t,n,o){super(n),this.name="ContentProtocolError",this.code=t,this.data=o}toJSON(){return this.data===void 0?{code:this.code,message:this.message}:{code:this.code,message:this.message,data:this.data}}static from(t){return new D(t.code,t.message,t.data)}}const Z="deco-content",Se={major:1},ft=1;async function un(e){let t=new Uint8Array(await e.arrayBuffer());if(t[0]===31&&t[1]===139){const n=new Blob([t]).stream().pipeThrough(new DecompressionStream("gzip"));t=new Uint8Array(await new Response(n).arrayBuffer())}return JSON.parse(new TextDecoder().decode(t))}const ye={major:Se.major,minor:ft},ht=`the endpoint speaks an older ${Z} than this client needs (${ye.major}.${ye.minor} or newer): update @decocms/blocks in the site (8.2.0 or newer) and start deco serve again`;function ne(e,t,n){const o={reason:t,required:{...ye}};if(n){o.actual={protocol:n.protocol,major:n.version?.major,minor:n.version?.minor};const r=n.server;typeof r?.name=="string"&&typeof r.version=="string"&&(o.server={name:r.name,version:r.version})}return new D(S.Unsupported,e,o)}function gt(e){const t=e??{},{protocol:n,version:o}=t;if(n!==Z)throw ne(`the endpoint speaks ${JSON.stringify(n)}, not ${Z}`,"protocol",t);if(o?.major!==Se.major)throw ne(`the endpoint speaks ${Z} ${String(o?.major)}.x; this client speaks ${Se.major}.x`,"major",t);if(typeof o.minor!="number"||o.minor<ft)throw ne(ht,"outdated",t);return e}function Je(e,t){return t.code===S.MethodNotFound&&e.startsWith("changes.")?ne(ht,"outdated"):D.from(t)}function xe(e){const t=e.fetch??(s=>fetch(s));let n=1;async function o(s){const i={"content-type":"application/json",accept:"application/json",...e.headers},a=await t(new Request(e.endpoint,{method:"POST",headers:i,body:JSON.stringify(s)}));let l;try{l=await un(a)}catch{throw new D(S.Unavailable,`the endpoint answered HTTP ${a.status} without a JSON-RPC body`)}if(!a.ok||!Array.isArray(l)&&l?.id===null){const c=l?.error;throw c?D.from(c):new D(S.Unavailable,`the endpoint answered HTTP ${a.status}`)}return l}const r=async(s,i)=>{const a=n++,l=await o({jsonrpc:"2.0",id:a,method:s,params:i??{}});if(l.error)throw Je(s,l.error);return l.result};return{call:r,describe:async()=>gt(await r("describe")),schemaGet:s=>r("schema.get",s),blocksList:s=>r("blocks.list",s),blocksApply:s=>r("blocks.apply",s),changesList:s=>r("changes.list",s),changesGet:s=>r("changes.get",s),changesDiscard:s=>r("changes.discard",s),async batch(s){const i=s.map(()=>n++),a=await o(s.map((c,u)=>({jsonrpc:"2.0",id:i[u],method:c.method,params:c.params??{}}))),l=new Map(a.map(c=>[c.id,c]));return i.map((c,u)=>{const d=l.get(c);return d?d.error?{ok:!1,error:Je(s[u].method,d.error)}:{ok:!0,result:d.result}:{ok:!1,error:new D(S.InternalError,"no response for this call")}})}}}function vt(e){return e&&!e.edited?{ifNoneMatch:e.revision}:{}}const We=20,Ye=5,ze=500;function Pe(e){return e instanceof D?e.code===S.MethodNotFound?!0:e.code===S.Unsupported&&e.data?.reason==="outdated":!1}function Ee(e,t){return t.notModified?e?{...e,base:t.base}:null:{revision:t.revision,base:t.base,changes:t.changes}}async function dn(e,t,n){const o=h.contentChanges(n),r=e.getQueryData(o),s=await t.changesList(vt(r)),i=Ee(r,s);if(i)return i;const a=await t.changesList({});return Ee(void 0,a)}async function fn(e,t){const n=[];for(let s=0;s<t.length;s+=We)n.push(t.slice(s,s+We));const o=Object.create(null),r=[];for(let s=0;s<n.length;s+=Ye){const i=await e.batch(n.slice(s,s+Ye).map(a=>({method:"changes.get",params:{names:a}})));for(const a of i){if(!a.ok)throw a.error;const l=a.result;Object.assign(o,l.entries),r.push(...l.diagnostics)}}return{entries:o,diagnostics:r}}async function Jo(e,t){let n={revision:"",versions:{}};for(let o=0;o<t.length;o+=ze){const r=t.slice(o,o+ze),s=await e.changesDiscard({names:r.map(i=>i.name),ifMatch:Object.fromEntries(r.map(i=>[i.name,i.version]))});n={revision:s.revision,versions:{...n.versions,...s.versions}}}return n}function Wo(e){return e instanceof D&&e.code===S.Conflict}function mt(e){return e?.kind==="protocol"?e:null}function Yo(e,t,n){const o=P.c(14);let r;o[0]!==n?(r={},o[0]=n,o[1]=r):r=o[1];const s=r,i=z();let a;o[2]!==e?(a=mt(e),o[2]=e,o[3]=a):a=o[3];const l=a,c=!!l&&!!t&&s.enabled!==!1;let u;o[4]!==t?(u=h.contentChanges(t??""),o[4]=t,o[5]=u):u=o[5];let d;o[6]!==t||o[7]!==c||o[8]!==l||o[9]!==i?(d=c?()=>dn(i,l.client,t):ct,o[6]=t,o[7]=c,o[8]=l,o[9]=i,o[10]=d):d=o[10];let g;return o[11]!==u||o[12]!==d?(g={queryKey:u,queryFn:d,staleTime:0},o[11]=u,o[12]=d,o[13]=g):g=o[13],M(g)}function zo(e,t,n){const o=P.c(14);let r;o[0]!==e?(r=mt(e),o[0]=e,o[1]=r):r=o[1];const s=r;let i;o[2]!==n?(i=n?Object.keys(n.changes):[],o[2]=n,o[3]=i):i=o[3];const a=i,l=!!s&&!!t&&!!n&&a.length>0;let c;o[4]!==t||o[5]!==n?.revision?(c=h.contentChangeSides(t??"",n?.revision??""),o[4]=t,o[5]=n?.revision,o[6]=c):c=o[6];let u;o[7]!==l||o[8]!==a||o[9]!==s?(u=l?()=>fn(s.client,a):ct,o[7]=l,o[8]=a,o[9]=s,o[10]=u):u=o[10];let d;return o[11]!==c||o[12]!==u?(d={queryKey:c,queryFn:u,staleTime:Number.POSITIVE_INFINITY},o[11]=c,o[12]=u,o[13]=d):d=o[13],M(d)}function pt(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")return!1;const n=t.hostname.toLowerCase();return n==="127.0.0.1"||n==="[::1]"||n==="localhost"}catch{return!1}}function ie(e){try{const t=new URL(e);return(t.hostname==="127.0.0.1"||t.hostname==="[::1]")&&(t.hostname="localhost"),t.href}catch{return e}}const bt=zt({endpoint:Xt().max(2048).refine(e=>pt(e)&&new URL(e).pathname==="/rpc").transform(ie)});function Xo(e){const t=new URLSearchParams(e.replace(/^#/,"")),n=bt.safeParse({endpoint:t.get("endpoint")??""});return n.success?n.data:null}function wt(e){const t=bt.safeParse(e);return t.success?t.data:null}const St="studio:deco-serve-last";function Zo(e){try{localStorage.setItem(St,JSON.stringify(e))}catch{}}function qo(){try{const e=localStorage.getItem(St);return e?wt(JSON.parse(e)):null}catch{return null}}function Ko(e){try{return new URL(ie(e)).host}catch{return e}}function hn(e,t=1e4){return Math.min(1e3*2**Math.max(0,e-1),t)}const gn="http://localhost:4545/rpc",er="npx @decocms/blocks serve",tr="npx @decocms/blocks schema";class $e extends Error{constructor(t="the endpoint isn't deco serve"){super(t),this.name="NotDecoServeError"}}function vn(e){if(e instanceof $e)return{reason:"not-deco-serve"};if(!(e instanceof D))return{reason:"not-answering"};switch(e.code){case S.Unauthorized:case S.MethodNotFound:return{reason:"outdated"};case S.Unsupported:return Pe(e)?{reason:"outdated"}:{reason:"version-mismatch"};case S.Unavailable:return/^the endpoint answered HTTP/.test(e.message)?{reason:"not-deco-serve"}:{reason:"error",detail:e.message};default:return{reason:"error",detail:e.message}}}function nr(e,t){if(e)return[ie(e.endpoint)];const n=[t?.endpoint,gn].filter(o=>!!o).map(ie);return[...new Set(n)]}const yt=j.createContext(null);function mn(e){const t=P.c(27),n=j.useContext(yt),o=Re(n?null:e),{data:r}=Zt.useSession(),s=r?.user?.id??"",i=!!e&&!!s;let a;t[0]!==i||t[1]!==s||t[2]!==e?(a=i?pe.decoServeConnection(s,e):null,t[0]=i,t[1]=s,t[2]=e,t[3]=a):a=t[3];const[l,c]=Ze(a);let u;t[4]!==i||t[5]!==s||t[6]!==e?(u=i?pe.decoServeEndpoint(s,e):null,t[4]=i,t[5]=s,t[6]=e,t[7]=u):u=t[7];const[d,g]=Ze(u);if(n)return n;let f;t[8]!==l||t[9]!==i?(f=i?wt(l):null,t[8]=l,t[9]=i,t[10]=f):f=t[10];const v=f,b=!!v;let w;t[11]!==o||t[12]!==b?(w=pn(o,b),t[11]=o,t[12]=b,t[13]=w):w=t[13];const{applies:I,undecided:T}=w,x=I?v:null,_=i&&o==="v8"&&typeof d=="string"?d:null;let C;t[14]!==g||t[15]!==c||t[16]!==i?(C=N=>{i&&(c(N),g(N.endpoint))},t[14]=g,t[15]=c,t[16]=i,t[17]=C):C=t[17];let E;t[18]!==c||t[19]!==i?(E=()=>{i&&c(null)},t[18]=c,t[19]=i,t[20]=E):E=t[20];let k;return t[21]!==x||t[22]!==_||t[23]!==C||t[24]!==E||t[25]!==T?(k={connection:x,undecided:T,lastEndpoint:_,set:C,clear:E},t[21]=x,t[22]=_,t[23]=C,t[24]=E,t[25]=T,t[26]=k):k=t[26],k}function pn(e,t){return t?e==="loading"?{applies:!1,undecided:!0}:{applies:e==="v8"||e==="error",undecided:!1}:{applies:!1,undecided:!1}}function Xe(e){try{const t=localStorage.getItem(e);return t===null?null:JSON.parse(t)}catch{return null}}function Ze(e){const t=P.c(17),n=z(),o=e??"";let r;t[0]!==o?(r=["localStorage",o],t[0]=o,t[1]=r):r=t[1];const s=r;let i,a;t[2]!==e?(i=()=>e?Xe(e):null,a=()=>e?Xe(e):null,t[2]=e,t[3]=i,t[4]=a):(i=t[3],a=t[4]);const l=!!e;let c;t[5]!==s||t[6]!==i||t[7]!==a||t[8]!==l?(c={queryKey:s,queryFn:i,initialData:a,enabled:l,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[5]=s,t[6]=i,t[7]=a,t[8]=l,t[9]=c):c=t[9];const{data:u}=M(c);let d;t[10]!==e||t[11]!==n||t[12]!==s?(d=b=>{if(e){try{b===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(b))}catch{}n.setQueryData(s,b)}},t[10]=e,t[11]=n,t[12]=s,t[13]=d):d=t[13];const g=d,f=e?u??null:null;let v;return t[14]!==g||t[15]!==f?(v=[f,g],t[14]=g,t[15]=f,t[16]=v):v=t[16],v}function or(e){return e.kind==="protocol"||e.kind==="unavailable"}function rr(e){const t=e.hasOrg?e.orgFlag:!1,{backend:n}=e;return n==="protocol"||n==="unavailable"?!0:n==="pending"?t===!0?!0:void 0:t}function sr(e,t,n){return t!=="github"||n!=="v8"?!1:e.kind==="pending"?!0:e.kind==="unavailable"&&e.siteNotOwned?!1:(e.kind==="protocol"||e.kind==="unavailable")&&e.source==="github"}function ir(e){if(e.kind!=="protocol"||e.source!=="local")return null;const t=e.describe.preview?.url;return t&&pt(t)?t:null}function ar(e,t){return e.kind!=="protocol"||e.source!=="local"||!e.describe.assets||!t?null:new URL(t.endpoint).origin}function Et(e){return e.hasServeConnection?"local":e.runtime==="sandbox"?"sandbox":"github"}function bn(e){if(!e.hasProject)return"legacy";const t=Et(e);if(t==="local")return"protocol-local";if(e.serveConnectionUndecided)return"pending";if(t==="sandbox"){const o=e.sandboxSite;return o==="v8"?"protocol-sandbox":o==="v7"?"legacy":o==="error"?e.markedV8?"retrying-sandbox":"legacy":"pending"}if(e.mainSchema==="loading")return"pending";if(e.mainSchema==="error")return"retrying-github";if(e.mainSchema==="v7")return"legacy";const n=e.githubSite;return n==="v8"?"protocol-github":n==="not-owned"?"site-not-owned-github":n==="error"?"unavailable-github":n==="v7"?"legacy":"pending"}function wn(e){return{github:e.mode==="github"&&e.mainSchema==="v8",sandbox:e.mode==="sandbox"&&e.workingTreeReady}}function qe(e){return e.isError||e.errorUpdateCount>0}function Sn(e,t,n){if(!t||n.size===0)return e;const o={...e};for(const r of n)Object.hasOwn(t,r)?o[r]=t[r]:delete o[r];return o}function yn(e){if(!e||typeof e!="object")return[];const t=e,n=[];return typeof t.blockKey=="string"&&n.push(t.blockKey),t.writes&&typeof t.writes=="object"&&n.push(...Object.keys(t.writes)),Array.isArray(t.deletes)&&n.push(...t.deletes.filter(o=>typeof o=="string")),n}const kt="__noSchema";function En(){return{manifest:{blocks:{}},schema:{definitions:{},root:{}},[kt]:!0}}function cr(e){return!!e&&e[kt]===!0}function Ot(e){if(!e.ok)return e.error.code===S.NotFound;const t=e.result;return t.notModified===!1&&t.schema===null}function kn(e,t){return(typeof t.name=="string"?t.name.trim():"")||e}const On=(e,t)=>e.label.localeCompare(t.label)||e.key.localeCompare(t.key);function lr(e){const t=new Map;for(const[n,o]of Object.entries(e)){const r=o&&typeof o=="object"&&!Array.isArray(o)?o:{},s=typeof r.__resolveType=="string"?r.__resolveType:null,i=t.get(s)??[];i.push({key:n,label:kn(n,r)}),t.set(s,i)}return[...t.entries()].map(([n,o])=>({resolveType:n,blocks:o.sort(On)})).sort((n,o)=>n.resolveType===null?1:o.resolveType===null?-1:Ke(n.resolveType).localeCompare(Ke(o.resolveType))||n.resolveType.localeCompare(o.resolveType))}function Ke(e){return(e.split("/").filter(Boolean).at(-1)??e).replace(/\.(tsx?|jsx?)$/,"")||e}function et(e,t,n){if(t.length===0)return n;const[o,...r]=t;if(Array.isArray(e)&&typeof o=="number"){const s=e.slice();return s[o]=et(e[o],r,n),s}if(e&&typeof e=="object"&&typeof o=="string"){const s=e,i={};for(const a of Object.keys(s))i[a]=a===o?et(s[a],r,n):s[a];return i}return e}function ur(e){if(e.trim()==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}class tt extends Error{}class nt extends Error{}const Dt="site-not-owned";async function Dn(e){return e.status!==409?!1:(await e.clone().json().catch(()=>null))?.code==="site_not_owned"}async function Tn(e,t=r=>fetch(r),n,o){const r=xe({endpoint:e,fetch:async s=>{const i=new Request(s);for(const[l,c]of Object.entries(ue("v8")))i.headers.set(l,c);const a=await t(i);if(await Dn(a))throw new nt;if(await _e(a))throw n?.(),new Ne;return a}});try{const s=await Le(r,be(o)?{schema:o}:void 0);return s.v8Schema?s:null}catch(s){if(s instanceof nt)return Dt;throw s}}const Ae=5e3;function In(e){return new URL(`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}/rpc`,window.location.origin).href}function Cn(e){return new URL(de(e,"rpc"),window.location.origin).href}async function Le(e,t){const[n,o]=await e.batch(t?[{method:"describe"}]:[{method:"describe"},{method:"schema.get"}]);if(!n?.ok)throw n?.error??new Error("no describe");if(n.result?.protocol!==Z)throw new $e;const s=gt(n.result);if(t)return{client:e,describe:s,hasSchema:t.schema!=null,v8Schema:be(t.schema)};if(!o)throw new Error("no schema.get");if(Ot(o))return{client:e,describe:s,hasSchema:!1,v8Schema:!1};if(o.ok){const i=o.result;return{client:e,describe:s,hasSchema:!0,v8Schema:be(i?.schema)}}throw o.error}async function _n(e,t=n=>fetch(n)){const n=xe({endpoint:e,fetch:async o=>{const r=await t(o);if(r.status===404)throw new tt;return r}});try{const o=await Le(n);return o.v8Schema?o:null}catch(o){if(o instanceof tt)return null;throw o}}function Tt(e,t){const n=P.c(53),{org:o}=qt(),{connection:r,undecided:s}=mn(e),{runtime:i}=dt(e),a=j.useContext(yt),l=Re(a?null:e),c=tn(e),u=Et({hasServeConnection:!!r,runtime:i}),d=rn()?.taskId??null,g=sn(an().lifecycle.phase),f=z(),v=wn({mode:u,mainSchema:l,workingTreeReady:g}),b=v.github&&!!o.slug&&!!e&&!!t;let w;n[0]!==t||n[1]!==o.slug||n[2]!==f||n[3]!==e?(w=()=>Tn(In({orgSlug:o.slug,virtualMcpId:e,branch:t}),void 0,()=>Ce(f,o.slug,e),lt(f,o.slug,e)?.schema),n[0]=t,n[1]=o.slug,n[2]=f,n[3]=e,n[4]=w):w=n[4];const I=M({queryKey:h.contentBackend(o.slug,e??"",t??"","github"),queryFn:w,enabled:b,staleTime:Number.POSITIVE_INFINITY,...ot}),T=v.sandbox&&!!o.slug&&!!e&&!!t;let x;n[5]!==t||n[6]!==o.slug||n[7]!==d||n[8]!==e?(x=async()=>_n(Cn({orgSlug:o.slug,virtualMcpId:e,branch:t,threadId:d})),n[5]=t,n[6]=o.slug,n[7]=d,n[8]=e,n[9]=x):x=n[9];const _=M({queryKey:h.contentBackend(o.slug,e??"",t??"","sandbox",d??""),queryFn:x,enabled:T,staleTime:Number.POSITIVE_INFINITY,...ot}),C=!!r;let E;n[10]!==r?.endpoint||n[11]!==o.slug||n[12]!==e?(E=h.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[10]=r?.endpoint,n[11]=o.slug,n[12]=e,n[13]=E):E=n[13];let k;n[14]!==r?(k=()=>Le(xe({endpoint:r.endpoint})),n[14]=r,n[15]=k):k=n[15];let N;n[16]!==C||n[17]!==E||n[18]!==k?(N={queryKey:E,queryFn:k,enabled:C,staleTime:Number.POSITIVE_INFINITY,retry:xn,retryDelay:Rn,refetchInterval:Nn},n[16]=C,n[17]=E,n[18]=k,n[19]=N):N=n[19];const p=M(N);let O;n[20]!==r?.endpoint||n[21]!==o.slug||n[22]!==e?(O=h.contentBackend(o.slug,e??"","local",r?.endpoint??""),n[20]=r?.endpoint,n[21]=o.slug,n[22]=e,n[23]=O):O=n[23];const $=O;let y;n[24]!==r?.endpoint||n[25]!==o.slug||n[26]!==e?(y=h.contentBackend(o.slug,e??"","local-describe",r?.endpoint??""),n[24]=r?.endpoint,n[25]=o.slug,n[26]=e,n[27]=y):y=n[27];let R;n[28]!==p.data||n[29]!==$||n[30]!==f?(R=async()=>{try{return await p.data.client.describe()}catch(m){const Y=m;throw f.invalidateQueries({queryKey:$,exact:!0},{cancelRefetch:!1}),Y}},n[28]=p.data,n[29]=$,n[30]=f,n[31]=R):R=n[31];const A=!!p.data&&!a;let U;n[32]!==y||n[33]!==R||n[34]!==A?(U={queryKey:y,queryFn:R,enabled:A,refetchInterval:Ae,retry:!1},n[32]=y,n[33]=R,n[34]=A,n[35]=U):U=n[35];const V=M(U).data??p.data?.describe,L=bn({hasProject:!!e,hasServeConnection:!!r,serveConnectionUndecided:s,runtime:i,mainSchema:l,githubSite:I.data===Dt?"not-owned":I.data?"v8":I.data===null?"v7":qe(I)?"error":"loading",sandboxSite:Pn({data:_.data,isError:qe(_),workingTreeReady:g}),markedV8:c});if(L==="pending"){let m;return n[36]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"pending"},n[36]=m):m=n[36],m}if(L==="retrying-github"){let m;return n[37]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"pending",retrying:"github"},n[37]=m):m=n[37],m}if(L==="retrying-sandbox"){let m;return n[38]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"pending",retrying:"sandbox"},n[38]=m):m=n[38],m}if(L==="legacy"){let m;return n[39]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"legacy"},n[39]=m):m=n[39],m}if(L==="protocol-github"){const m=I.data;let Y;return n[40]!==m?(Y=ke("github",m,""),n[40]=m,n[41]=Y):Y=n[41],Y}if(L==="site-not-owned-github"){let m;return n[42]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"unavailable",source:"github",siteNotOwned:!0},n[42]=m):m=n[42],m}if(L==="protocol-sandbox"){let m;return n[43]!==_.data?(m=ke("sandbox",_.data,":sandbox"),n[43]=_.data,n[44]=m):m=n[44],m}if(L==="unavailable-github"){let m;return n[45]===Symbol.for("react.memo_cache_sentinel")?(m={kind:"unavailable",source:"github"},n[45]=m):m=n[45],m}const W=p.error??p.failureReason,ve=r?.endpoint??"";let te;return n[46]!==V||n[47]!==p.data||n[48]!==p.failureCount||n[49]!==p.isError||n[50]!==W||n[51]!==ve?(te=An({probed:p.data,isError:p.isError,failureCount:p.failureCount,failure:W,describe:V,endpoint:ve}),n[46]=V,n[47]=p.data,n[48]=p.failureCount,n[49]=p.isError,n[50]=W,n[51]=ve,n[52]=te):te=n[52],te}function Nn(e){return e.state.status==="error"||e.state.data?.v8Schema===!1?Ae:!1}function Rn(e){return hn(e+1)}function xn(e,t){return!(t instanceof D)&&!(t instanceof $e)}function Pn(e){return e.data!==void 0?e.data?"v8":"v7":e.workingTreeReady?e.isError?"error":"loading":"unavailable"}const $n=3;function An(e){if(e.probed?.hasSchema&&!e.probed.v8Schema)return{kind:"unavailable",source:"local",problem:{reason:"not-v8"}};const t=e.probed?ke("local",{...e.probed,describe:e.describe??e.probed.describe},`:serve:${e.endpoint}`):null;return e.isError||e.failureCount>0?t?.kind==="protocol"&&!e.isError&&e.failureCount<$n?t:{kind:"unavailable",source:"local",problem:vn(e.failure)}:t??{kind:"pending"}}const ot={retry:2,refetchInterval:e=>e.state.status==="error"?Ae:!1};function ke(e,t,n){return{kind:"protocol",source:e,client:t.client,describe:t.describe,cacheKeySuffix:n,hasSchema:t.hasSchema}}function It(e){const t=P.c(13);let n;t[0]!==e?(n=pe.localPreviewUrl(e??""),t[0]=e,t[1]=n):n=t[1];const o=n,[r,s]=Kt(o,null),i=Re(e);let a;if(t[2]!==i||t[3]!==r||t[4]!==e){const g=e?Ge(r):null;a=Ln({saved:g,main:i}),t[2]=i,t[3]=r,t[4]=e,t[5]=a}else a=t[5];const l=a;let c,u;t[6]!==s?(c=g=>s(Ge(g)),u=()=>s(null),t[6]=s,t[7]=c,t[8]=u):(c=t[7],u=t[8]);let d;return t[9]!==l||t[10]!==c||t[11]!==u?(d={...l,setUrl:c,clear:u},t[9]=l,t[10]=c,t[11]=u,t[12]=d):d=t[12],d}function Ln(e){return e.saved?e.main==="v7"?{url:e.saved,undecided:!1}:e.main==="v8"?{url:null,undecided:!1}:{url:null,undecided:!0}:{url:null,undecided:!1}}function jn(e,t){const n=(e??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${t}`:t}function rt(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!="object"||t===null||Array.isArray(t)?null:t}class je extends Error{constructor(t,n,o=[],r=!1){super(n),this.blocks=t,this.fields=o,this.carriedStored=r,this.name="BlockConflictError"}blocks;fields;carriedStored}function Ue(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function fe(e,t,n){return["decofile-write",e,t,n]}function Un(e,t,n){return{id:fe(e,t,n).join(":")}}function Me(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function Mn(e,t){const n=await e.json().catch(()=>({}));throw new Error(n.error??`${t} failed (${e.status})`)}function Fn(e,t,n){e.setQueryData(h.decofileDraft(Ue(t)),n)}function Qn(e,t){return e.getQueryData(h.decofileDraft(Ue(t)))??null}async function Bn(e,t){const n=await fetch(Me(e),{cache:"no-store",headers:{...ue("v7"),"if-none-match":`"${t}"`}}).catch(()=>null);return n?.status===200||n?.status===409}function dr(e){const t=P.c(4);let n;t[0]!==e?(n=h.decofileDraft(e?Ue(e):""),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:Vn,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=M(o);return r??null}async function Vn(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function Hn(e,t){const n=await fetch(Me(t),{cache:"no-store",headers:ue("v7")});if(await _e(n))throw Ce(e,t.orgSlug,t.virtualMcpId),new Ne;if(!n.ok){const r=new Error(`Failed to fetch decofile: ${n.status}`);throw r.status=n.status,r}const o=await n.json();return o.token&&Fn(e,t,{version:o.version,token:o.token,apiHost:o.apiHost??window.location.host}),o.decofile}async function fr(e,t){const n=await fetch(Me(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(n.status===409){const r=await n.json().catch(()=>({}));throw r.code==="block-conflict"?new je(r.blocks??[],r.error??"Block changed"):new Error(r.error??`Save failed (${n.status})`)}if(!n.ok)return Mn(n,"Save");const o=await n.json();return{...o,apiHost:o.apiHost??window.location.host}}const Ct=3e3,Gn=15e3,Jn=2*6e4,_t={now:()=>Date.now(),setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),hidden:()=>typeof document<"u"&&document.visibilityState==="hidden"};function Wn(e){return e<Jn?Ct:Gn}function Yn(e,t=_t){const n=t.now();let o=!1,r=!1,s=null;const i=()=>{o||(s=t.setTimeout(a,Wn(t.now()-n)))},a=()=>{if(s=null,o)return;const{read:l,skip:c}=e();if(r||t.hidden()||c?.()){i();return}r=!0;let u;try{u=l()}catch{u=void 0}Promise.resolve(u).catch(()=>{}).finally(()=>{r=!1}),i()};return i(),()=>{o=!0,s!==null&&t.clearTimeout(s)}}const st=()=>0;function zn(e,t,n=_t){const o=j.useRef(t);o.current=t;const[r]=j.useState(()=>({polling:()=>Yn(()=>o.current,n),idle:()=>()=>{}}));j.useSyncExternalStore(e?r.polling:r.idle,st,st)}function Nt(e,t){return de(e,t)}function Xn(e,t){return de(e,"preview-fetch",{path:t})}function hr(e){return Nt(e,"preview-invoke")}function gr(e){return Nt(e,"catalog-invoke")}function Rt(e){try{const{hostname:t}=new URL(e);return t==="localhost"||t.endsWith(".localhost")||t==="127.0.0.1"||t==="::1"}catch{return!1}}function Zn(){if(typeof document>"u")return null;const e=Array.from(document.querySelectorAll("iframe"));for(const t of e){const n=t.getAttribute("src");if(n&&Rt(n))return n}return null}function qn(e,t){const n=e.previewUrl??e.getFallbackPreviewUrl?.()??Zn();return n&&Rt(n)?new URL(t,n).toString():Xn(e,t)}function Kn(e){return qn(e,"/.decofile")}function eo(e){return e===400?"absent":e===404?"unavailable":e>=200&&e<300?"ok":"error"}function it(e){return e.liveOk||e.committedAbsent?404:e.liveStatus??502}async function to(e,t){const n=de(e,"read"),o=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:t,full:!0})}),r=eo(o.status);if(r==="absent")return{kind:"absent"};if(r==="unavailable")return{kind:"unavailable"};if(r==="error"){const i=new Error(`Failed to read ${t}: ${o.status}`);throw i.status=o.status,i}const s=await o.json();return typeof s.content!="string"?{kind:"unavailable"}:{kind:"data",data:nn(s.content)}}async function no(e,t){const n=await to(e,t);if(n.kind!=="data")return n;try{return{kind:"data",data:JSON.parse(n.data)}}catch{return{kind:"unavailable"}}}async function vr(e){const t=`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}/meta`,n=await fetch(t,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const o=new Error(`Failed to read committed meta: ${n.status}`);throw o.status=n.status,o}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function oo(e){return on(e)?.metadata?.runtime?.path??null}class xt extends Error{constructor(t){super(t instanceof Error?t.message:String(t),{cause:t}),this.name="ServeLostError"}}function mr(e){return e instanceof D&&e.code===S.Conflict}function Pt(e){const t=e.data?.violations;return!Array.isArray(t)||t.length===0?e.message:t.slice(0,3).map(n=>n.message).join("; ")}class Fe extends Error{constructor(){super("The draft's changes couldn't be read"),this.name="HostedDraftUnreadError"}}class Qe extends Error{constructor(){super("The blocks kept changing while the change was saved"),this.name="HostedKeptChangingError"}}function pr(e,t){return(t instanceof Fe||t instanceof Qe)&&(t.message=$t(e,t,"github")),t}function $t(e,t,n){if(t instanceof Fe)return e("siteEditor.save.draftUnread");if(t instanceof Qe)return e("siteEditor.save.keptChanging");if(t instanceof je)return t.message;if(n==="local")return so(e,t);if(t instanceof D)switch(t.code){case S.Conflict:return e("siteEditor.save.conflict");case S.ReadOnly:return e("siteEditor.save.readOnly");case S.InvalidBlock:case S.InvalidParams:return e("siteEditor.save.invalid");case S.LimitExceeded:return e("siteEditor.save.tooLarge")}return e("siteEditor.save.failed")}function ro(e,t){if(t==="local"||e instanceof je||e instanceof Fe||e instanceof Qe)return null;if(e instanceof D){const n=e.code===S.InvalidBlock||e.code===S.InvalidParams?Pt(e):e.message;return n?`${e.code}: ${n}`:null}return e.message||null}function so(e,t){if(t instanceof xt)return e("decoServe.save.serverGone");if(t instanceof D)switch(t.code){case S.Conflict:return e("decoServe.save.conflict");case S.ReadOnly:return e("decoServe.save.readOnly");case S.InvalidBlock:case S.InvalidParams:return e("decoServe.save.invalid",{detail:Pt(t)});case S.LimitExceeded:return e("decoServe.save.tooLarge")}return e("sectionsEditor.sectionsEditor.saveFailed",{error:t.message})}function io(e,t,n){return e===null?0:Math.max(0,n-Math.max(0,t-e))}function ao(e,t){const[n,o]=j.useState(e),r=j.useRef(null);return e&&!n&&o(!0),j.useEffect(()=>{if(e){r.current??=Date.now();return}if(!n)return;const s=()=>{r.current=null,o(!1)},i=io(r.current,Date.now(),t);if(i===0){s();return}const a=setTimeout(s,i);return()=>clearTimeout(a)},[e,n,t]),n}const co="decocms:content-writes",Oe=new Set;let H;function At(){if(H!==void 0)return H;H=null;try{typeof BroadcastChannel=="function"&&(H=new BroadcastChannel(co),H.addEventListener("message",e=>{const t=e.data?.cacheKey;if(typeof t=="string")for(const n of[...Oe])n(t)}))}catch{H=null}return H}function lo(e){try{At()?.postMessage({cacheKey:e})}catch{}}function uo(e){return At(),Oe.add(e),()=>{Oe.delete(e)}}const Lt={phase:"idle",inFlight:0,reload:{seq:0,navigates:!1},epoch:0},fo=15e3,ae=new Map;function J(e,t){return`${e}/${t}`}function Q(e){let t=ae.get(e);return t||(t={state:Lt,listeners:new Set,previews:0,timer:null,discardListeners:new Set},ae.set(e,t)),t}function B(e,t){const n=Q(e);n.state={...n.state,...t};for(const o of n.listeners)o()}function he(e){e.timer&&clearTimeout(e.timer),e.timer=null}function Be(e){return ae.get(e)?.state??Lt}function ho(e,t){const n=Q(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}function br(e){const t=Q(e);return t.previews++,()=>{t.previews--,t.previews===0&&t.state.phase==="reloading"&&(he(t),B(e,{phase:"idle"}))}}function wr(e){const t=ae.get(e);!t||t.state.phase!=="reloading"||(he(t),B(e,{phase:"idle"}))}function jt(e){const t=Q(e);he(t),B(e,{phase:"saving",inFlight:t.state.inFlight+1})}function oe(e,t){const n=Q(e),o=Math.max(0,n.state.inFlight-1);if(o>0){B(e,{inFlight:o});return}if(!t.ok||n.previews===0){B(e,{phase:"idle",inFlight:o});return}Ut(e,t.navigates,o)}function Ut(e,t,n=0){const o=Q(e);he(o),o.timer=setTimeout(()=>{o.timer=null,o.state.phase==="reloading"&&B(e,{phase:"idle"})},fo),B(e,{phase:"reloading",inFlight:n,reload:{seq:o.state.reload.seq+1,navigates:t}})}function go(e){return e?.kind==="protocol"&&e.source==="github"}async function re(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s,backend:i,cacheKey:a}=e,l=t.kind==="publish"||t.kind==="reapply"?n.invalidateQueries({queryKey:h.hostedReleases(o,r)}):null;if(i?.kind!=="protocol")return await l,{navigates:!1};const c=s?h.protocolDraftRead(o,r,s):null,u=c?JSON.stringify(n.getQueryData(c)??null):null,d=l?[l]:[];if(a&&t.reread&&d.push(n.invalidateQueries({queryKey:h.decofile(a)})),a&&!t.adopted&&d.push(n.invalidateQueries({queryKey:h.contentChanges(a)})),s&&i.source==="sandbox"&&d.push(n.invalidateQueries({queryKey:cn(o,r,s)})),go(i)&&c&&!t.adopted&&d.push(n.invalidateQueries({queryKey:c})),await Promise.all(d),t.kind!=="edit"){const v=J(o,r);B(v,{epoch:Be(v).epoch+1})}const g=c?JSON.stringify(n.getQueryData(c)??null):null,f=u!==g;return f&&await new Promise(v=>ut.schedule(v)),{navigates:f}}async function vo(e,t){return jt(J(e.orgSlug,e.virtualMcpId)),Mt(e,t)}function at(e){return e.branch?JSON.stringify(e.queryClient.getQueryData(h.protocolDraftRead(e.orgSlug,e.virtualMcpId,e.branch))??null):null}async function Mt(e,t){const n=J(e.orgSlug,e.virtualMcpId),o=t.adopted?at(e):null;let r;try{r=await t.write()}catch(i){throw oe(n,{ok:!1,navigates:!1}),t.refreshOnError&&re(e,{kind:t.kind,reread:!0}).catch(()=>{}),i}if(e.backend?.kind==="protocol"&&e.cacheKey&&lo(e.cacheKey),t.adopted){const i=at(e)!==o;return i&&await new Promise(a=>ut.schedule(a)),oe(n,{ok:!0,navigates:i}),t.reread&&re(e,t).catch(()=>{}),r}let s=!1;try{({navigates:s}=await re(e,t))}catch{}finally{oe(n,{ok:!0,navigates:s})}return r}function Sr(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:r,branch:s}=e,i=J(o,r),a=new Set(t.blockKeys);for(const u of[...Q(i).discardListeners])u(a);jt(i);let l=!1;const c=()=>(l=!0,Mt(e,{kind:"discard",reread:!0,write:t.write}));return s?n.getMutationCache().build(n,{mutationKey:fe(o,r,s),scope:Un(o,r,s),mutationFn:c}).execute(void 0).catch(u=>{throw l||oe(i,{ok:!1,navigates:!1}),u}):c()}function yr(e,t,n){const o=P.c(8);let r;o[0]!==e||o[1]!==t?(r=J(e,t),o[0]=e,o[1]=t,o[2]=r):r=o[2];const s=r;let i;o[3]!==n||o[4]!==s?(i=()=>{const l=Q(s).discardListeners;return l.add(n),()=>{l.delete(n)}},o[3]=n,o[4]=s,o[5]=i):i=o[5];let a;o[6]!==s?(a=[s],o[6]=s,o[7]=a):a=o[7],j.useEffect(i,a)}function mo(e){const t=J(e.orgSlug,e.virtualMcpId);Be(t).inFlight>0||re(e,{kind:"external"}).then(({navigates:n})=>{const o=Q(t);o.previews>0&&o.state.inFlight===0&&Ut(t,n)}).catch(()=>{})}function po(e,t){const n=P.c(7);let o;n[0]!==e||n[1]!==t?(o=J(e,t),n[0]=e,n[1]=t,n[2]=o):o=n[2];const r=o;let s;n[3]!==r?(s=c=>ho(r,c),n[3]=r,n[4]=s):s=n[4];const i=s;let a;n[5]!==r?(a=()=>Be(r),n[5]=r,n[6]=a):a=n[6];const l=a;return j.useSyncExternalStore(i,l,l)}const bo=500;function Er(e,t){const{phase:n}=po(e,t);return ao(n!=="idle",bo)}function wo(e){const t=new Error(`${e} unavailable (content server unreachable)`);return t.status=502,t}function So(e,t){return h.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,`protocol${t.cacheKeySuffix}`,"")}function kr(e,t,n,o){if(o?.source==="github")return yo(e,t,n);const r=e.getQueryData(h.contentVersions(t));if(!r)return;if(Object.hasOwn(r,n))return r[n];const s=e.getQueryData(h.decofile(t));return s&&Object.hasOwn(s,n)?void 0:null}function K(e,t){if(Object.hasOwn(e.changes,t))return e.changes[t];const n=F(t),o=Object.keys(e.changes).find(r=>F(r)===n);return o===void 0?void 0:e.changes[o]}function yo(e,t,n){const o=e.getQueryData(h.contentChanges(t));if(o)return Ft(o,ge(e,t),n)}function Ft(e,t,n){const o=K(e,n);return o?.kind==="delete"?o.version??we:o?o.version:t.has(F(n))?we:null}function Or(e,t,n){const o=e.getQueryData(h.contentChanges(t));if(!o)return!1;const r=K(o,n);return r?r.kind==="set"&&r.baseVersion===null:ge(e,t).has(F(n))}function Dr(e,t){const n=e.getQueryData(h.decofile(t)),o=e.getQueryData(h.contentChanges(t));if(!n||!o)return null;const r=ge(e,t);return{blocks:n,versionOf:s=>Ft(o,r,s)}}function ge(e,t){return new Set(e.getQueryData(h.contentDraftTombstones(t)))}function ce(e,t,n,o){const r=F(n),s=ge(e,t);s.has(r)!==o&&(o?s.add(r):s.delete(r),ee(e),e.setQueryData(h.contentDraftTombstones(t),[...s]))}function Eo(e,t,n,o){const r=He(o.revision),s=e.getQueryData(h.contentRevision(n))?.revision,i=s?He(s):null,a=r&&!r.main&&i?en(i.main,r.draft):o.revision,l=e.getQueryData(h.contentVersions(n)),c=Object.entries(o.versions??{}).map(([f,v])=>[f,v===we?null:v]),u=e.getQueryData(h.contentChanges(n)),d=new Set(c.flatMap(([f])=>{const v=u?K(u,f):void 0;return(v?v.baseVersion:l?.[f]??null)===null?[f]:[]})),g=new Set(c.flatMap(([f,v])=>v===null?[]:[F(f)]));e.setQueryData(h.contentChanges(n),f=>{if(!f)return f;const v={...f.changes};for(const[b,w]of c){const I=K(f,b),T=I?I.baseVersion:l?.[b]??null;w!==null?v[b]={kind:"set",version:w,baseVersion:T}:T!==null?v[b]={kind:"delete",version:null,baseVersion:T}:delete v[b]}return{...f,changes:v,edited:!0}});for(const[f,v]of c)v!==null?ce(e,n,f,!1):!g.has(F(f))&&d.has(f)&&ce(e,n,f,!0);return r&&r.draft!=="none"&&e.setQueryData(h.protocolDraftRead(t.orgSlug,t.virtualMcpId,t.branch),f=>f&&{...f,version:r.draft}),a}function Ve(e,t,n){ee(e),e.setQueryData(h.contentVersions(t),o=>{const r={...o};for(const[s,i]of Object.entries(n))i===null?delete r[s]:r[s]=i;return r})}function ko(e,t){const n=e.getMutationCache().findAll({mutationKey:fe(t.orgSlug,t.virtualMcpId,t.branch),status:"pending"});return new Set(n.flatMap(o=>yn(o.state.variables)))}function De(e,t){e.resetQueries({queryKey:h.contentBackend(t.orgSlug,t.virtualMcpId,"local")})}async function le(e,t,n,o){try{return await o()}catch(r){const s=!(r instanceof D);throw t.source==="local"&&s?(De(e,n),new xt(r)):(t.source==="local"&&Pe(r)&&De(e,n),r)}}const se=new Map;function Qt(e,t,n,o){const r=se.get(o);if(r)return r;const s=Bt(e,t,n,o,!0);return se.set(o,s),s.finally(()=>se.delete(o))}const me=new Set;function Oo(e,t,n){const o=P.c(8),r=z(),s=t?.orgSlug,i=t?.virtualMcpId,a=t?.branch;let l,c;o[0]!==e||o[1]!==a||o[2]!==n||o[3]!==s||o[4]!==r||o[5]!==i?(l=()=>{if(!e||!s||!i||!a)return;const u={orgSlug:s,virtualMcpId:i,branch:a};return uo(d=>{d===n&&(me.has(n)||(me.add(n),To(r,e,u,n).catch(Do).finally(()=>me.delete(n))))})},c=[r,e,s,i,a,n],o[0]=e,o[1]=a,o[2]=n,o[3]=s,o[4]=r,o[5]=i,o[6]=l,o[7]=c):(l=o[6],c=o[7]),j.useEffect(l,c)}function Do(){}async function To(e,t,n,o){const r=se.get(o);return r&&await r.catch(()=>{}),Qt(e,t,n,o)}async function Bt(e,t,n,o,r){ee(e);const s=h.decofile(o),i=So(n,t),a=h.contentRevision(o),l=h.contentVersions(o),c=e.getQueryData(s),u=e.getQueryData(l),d=e.getQueryData(i),g=e.getQueryData(a)??void 0,f=t.source==="github"&&!d?lt(e,n.orgSlug,n.virtualMcpId):void 0,v=f?.isV8&&f.schema&&f.version?f:void 0,b=d??v?.schema,w=v?{...g,schemaVersion:v.version}:g,I=r&&c&&u?w?.revision:void 0,T=r&&b?w?.schemaVersion:void 0,x=h.contentChanges(o),_=e.getQueryData(x),[C,E,k]=await le(e,t,n,()=>t.client.batch([{method:"blocks.list",params:I?{ifNoneMatch:I}:{}},{method:"schema.get",params:T?{ifNoneMatch:T}:{}},{method:"changes.list",params:vt(_)}])),N=e.getQueryData(a)?.revision,p=N!==void 0&&N!==w?.revision;if(k?.ok){const X=p?null:Ee(_,k.result);X&&e.setQueryData(x,X)}else k&&t.source==="local"&&Pe(k.error)&&De(e,n);if(!C?.ok)throw C?.error??new Error("no blocks.list");if(!E)throw new Error("no schema.get");const O=C.result,$=Ot(E),y=E.ok&&!$?E.result:null;if(O.notModified&&(!c||!u)||y?.notModified&&!b)return Bt(e,t,n,o,!1);const R=O.notModified?new Set:ko(e,n),A=O.notModified?c:Sn(O.blocks,c,R),U=$?En():y?y.notModified?b:y.schema:E.error;if(e.setQueryData(a,{revision:p?N:O.notModified?w?.revision:O.revision,schemaVersion:y?y.notModified?w?.schemaVersion:y.version??void 0:void 0}),e.setQueryData(s,A),!O.notModified){const X=e.getQueryData(l),V={...O.versions};for(const L of R){const W=X?.[L];W!==void 0?V[L]=W:delete V[L]}e.setQueryData(l,V)}return U instanceof D||e.setQueryData(i,U),!p&&!O.notModified&&c&&w?.revision&&O.revision!==w.revision&&mo({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o}),{blocks:A,meta:U}}async function Tr(e,t,n,o,r,s){if(t.source==="github"){const a=[...Object.keys(r.set??{}),...r.delete??[]].filter(l=>!s||!Object.hasOwn(s,l));if(a.length>0)throw new Error(`A hosted save needs a precondition for every block it touches (missing: ${a.join(", ")})`)}return vo({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o},{kind:"edit",adopted:t.source==="github",write:async()=>{const i=await le(e,t,n,()=>t.client.blocksApply({set:r.set,delete:r.delete,...s?{ifMatch:s}:{}}));ee(e);const a=t.source==="github"?Eo(e,n,o,i):i.revision;e.setQueryData(h.contentRevision(o),c=>({...c,revision:a}));const l=i.versions??{};return Ve(e,o,l),{revision:a,versions:l}}})}function Vt(e,t){if(!(e instanceof D))return;const n=e.data?.draft;if(!n||typeof n!="object"||!Object.hasOwn(n,t))return;const o=n[t];return o&&typeof o.version=="string"?o:void 0}function Ht(e,t,n){if(!(n instanceof D))return;const o=n.data?.draft;if(!(!o||typeof o!="object"))for(const[r,s]of Object.entries(o))s===null&&ce(e,t,r,!1)}function Gt(e,t,n,o){ee(e);const r=o.block===null,s=e.getQueryData(h.contentVersions(t)),i=e.getQueryData(h.contentChanges(t)),a=i?K(i,n):void 0,l=a?a.baseVersion:s?.[n]??null;if(i){const c=F(n),u=Object.fromEntries(Object.entries(i.changes).filter(([d])=>F(d)!==c));r?l!==null&&(u[n]={kind:"delete",version:null,baseVersion:l}):u[n]={kind:"set",version:o.version,baseVersion:l},e.setQueryData(h.contentChanges(t),{...i,changes:u,edited:!0})}ce(e,t,n,r&&l===null),e.setQueryData(h.decofile(t),c=>{const u={...c};return r?delete u[n]:u[n]=o.block,u}),Ve(e,t,{[n]:r?null:o.version})}function Ir(e,t,n,o){if(t.source!=="github"||!(o instanceof D))return!1;Ht(e,n,o);const r=o.data?.draft;if(!r||typeof r!="object")return!1;const s=Object.keys(r),i=s.map(a=>Vt(o,a));return s.length===0||i.some(a=>a===void 0)?!1:(e.cancelQueries({queryKey:h.decofile(n)}),s.forEach((a,l)=>{Gt(e,n,a,i[l])}),!0)}async function Cr(e,t,n,o,r,s){t.source==="github"&&Ht(e,o,s);const i=t.source==="github"?Vt(s,r):void 0;if(i)return e.cancelQueries({queryKey:h.decofile(o)}),Gt(e,o,r,i),!0;await e.invalidateQueries({queryKey:h.decofile(o)});let a;try{const c=(await le(e,t,n,()=>t.client.changesGet({names:[r]}))).entries[r];if(c&&c.after===null&&c.version!==null)return!1;a={value:c?.after??null,version:c?.version??null},t.source==="github"&&e.setQueryData(h.contentChanges(o),u=>{if(!u)return u;const d={...u.changes};return c?.kind?d[r]={kind:c.kind,version:c.version,baseVersion:c.baseVersion}:delete d[r],{...u,changes:d,edited:!0}})}catch{const l=await le(e,t,n,()=>t.client.blocksList({}));if(l.notModified)return!1;a={value:l.blocks[r]??null,version:l.versions[r]??null}}return e.setQueryData(h.decofile(o),l=>{const c={...l};return a.value===null?delete c[r]:c[r]=a.value,c}),Ve(e,o,{[r]:a.version}),!1}function Io(e){const t=P.c(15),n=z();let o;t[0]!==e?.branch||t[1]!==e?.orgSlug||t[2]!==e?.virtualMcpId?(o=h.protocolDraftRead(e?.orgSlug??"",e?.virtualMcpId??"",e?.branch??""),t[0]=e?.branch,t[1]=e?.orgSlug,t[2]=e?.virtualMcpId,t[3]=o):o=t[3];let r;t[4]!==e||t[5]!==n?(r=async()=>{const f=await fetch(`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`,{cache:"no-store",headers:ue("v8")});if(await _e(f))throw Ce(n,e.orgSlug,e.virtualMcpId),new Ne;if(!f.ok)throw new Error(`draft pointer read failed: ${f.status}`);return await f.json()},t[4]=e,t[5]=n,t[6]=r):r=t[6];const s=!!e;let i;t[7]!==o||t[8]!==r||t[9]!==s?(i={queryKey:o,queryFn:r,enabled:s,staleTime:Number.POSITIVE_INFINITY},t[7]=o,t[8]=r,t[9]=s,t[10]=i):i=t[10];const{data:a,isPending:l,isError:c}=M(i),u=!!e&&l&&!c;if(!e||!a?.draft||!a.version){let f;return t[11]!==u?(f={pointer:null,pending:u},t[11]=u,t[12]=f):f=t[12],f}const d=`${a.draft}@${a.version}`;let g;return t[13]!==d?(g={pointer:d,pending:!1},t[13]=d,t[14]=g):g=t[14],g}function _r(e){return Io(e).pointer}function Nr(e){const t=P.c(4);let n;t[0]!==e?(n=h.contentRevision(e),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:Co,staleTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:r}=M(o);return r?.revision}async function Co(){throw new Error("content revisions are set by reads and writes")}function Te(e){const t=`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`;return e.protocolSuffix?`${t}${e.protocolSuffix}`:e.localPreviewUrl?`${t}:local:${e.localPreviewUrl}`:t}function Rr(e,t){return Te({...e,protocolSuffix:t.cacheKeySuffix})}function _o(e,t){const n=P.c(6),{url:o}=It(e?.virtualMcpId),r=Tt(e?.virtualMcpId,e?.branch);if(!e)return"";let s;return n[0]!==r.cacheKeySuffix||n[1]!==r.kind||n[2]!==o||n[3]!==t?.tunnel||n[4]!==e?(s=r.kind==="protocol"?Te({...e,protocolSuffix:r.cacheKeySuffix}):Te({...e,localPreviewUrl:t?.tunnel===!1?null:o}),n[0]=r.cacheKeySuffix,n[1]=r.kind,n[2]=o,n[3]=t?.tunnel,n[4]=e,n[5]=s):s=n[5],s}function xr(e,t){const n=P.c(39),{url:o,undecided:r}=It(e?.virtualMcpId),s=!!o,i=Tt(e?.virtualMcpId,e?.branch),a=i.kind==="protocol"?i:null,l=_o(e),c=t?.fetchEnabled??!0,u=oo(e?.virtualMcpId),d=dt(e?.virtualMcpId).runtime==="cms",g=z();let f;n[0]!==l?(f=h.decofile(l),n[0]=l,n[1]=f):f=n[1];const v=f;Oo(a,a&&e?e:null,l);let b;n[2]!==e||n[3]!==g||n[4]!==v?(b=()=>{if(!e||g.isMutating({mutationKey:fe(e.orgSlug,e.virtualMcpId,e.branch)})>0)return!0;const p=g.getQueryState(v);return p?.fetchStatus==="fetching"||Date.now()-(p?.dataUpdatedAt??0)<Ct/2},n[2]=e,n[3]=g,n[4]=v,n[5]=b):b=n[5];let w;n[6]!==d||n[7]!==s||n[8]!==e||n[9]!==a||n[10]!==g||n[11]!==v?(w=async()=>{if(e){if(!a&&d&&!s){const p=Qn(g,e)?.version;if(p&&!await Bn(e,p))return}await g.refetchQueries({queryKey:v,exact:!0},{cancelRefetch:!1})}},n[6]=d,n[7]=s,n[8]=e,n[9]=a,n[10]=g,n[11]=v,n[12]=w):w=n[12];let I;n[13]!==b||n[14]!==w?(I={skip:b,read:w},n[13]=b,n[14]=w,n[15]=I):I=n[15],zn(!!t?.pollWhile&&!!e,I);let T;n[16]!==i.kind||n[17]!==d||n[18]!==c||n[19]!==l||n[20]!==s||n[21]!==o||n[22]!==u||n[23]!==e||n[24]!==a||n[25]!==g?(T=async()=>{if(a)return(await Qt(g,a,e,l)).blocks;if(i.kind==="unavailable")throw wo("decofile");if(s){const y=await fetch(new URL("/.decofile",o).toString(),{cache:"no-store"}).catch(xo),R=y?.ok?rt(await y.text()):null;if(R)return R;const A=new Error("decofile unavailable (local tunnel unreachable)");throw A.status=502,A}if(d)return Hn(g,e);const p=()=>no(e,jn(u,".deco/blocks.gen.json"));if(c){const y=await fetch(Kn(e),{cache:"no-store"}).catch(Ro);if(y?.ok){const U=rt(await y.text());if(U)return U}const R=await p();if(R.kind==="data")return R.data;const A=new Error(`Failed to fetch decofile: ${y?.status??"network error"}`);throw A.status=it({liveOk:!!y?.ok,liveStatus:y?.status,committedAbsent:R.kind==="absent"}),A}const O=await p();if(O.kind==="data")return O.data;const $=new Error("decofile unavailable (preview down, no committed snapshot)");throw $.status=it({liveOk:!1,committedAbsent:O.kind==="absent"}),$},n[16]=i.kind,n[17]=d,n[18]=c,n[19]=l,n[20]=s,n[21]=o,n[22]=u,n[23]=e,n[24]=a,n[25]=g,n[26]=T):T=n[26];const x=!!e&&i.kind!=="pending"&&!r,_=a?0:3e4,C=a?.describe.pollIntervalMs,E=a?"always":void 0;let k;n[27]!==d||n[28]!==s||n[29]!==a?(k=(p,O)=>{if(a||d||s)return p<3;const $=O.status;return $!==502&&$!==404&&p<2},n[27]=d,n[28]=s,n[29]=a,n[30]=k):k=n[30];let N;return n[31]!==v||n[32]!==T||n[33]!==x||n[34]!==_||n[35]!==C||n[36]!==E||n[37]!==k?(N={queryKey:v,queryFn:T,enabled:x,staleTime:_,refetchInterval:C,refetchIntervalInBackground:!1,refetchOnWindowFocus:E,retry:k,retryDelay:No},n[31]=v,n[32]=T,n[33]=x,n[34]=_,n[35]=C,n[36]=E,n[37]=k,n[38]=N):N=n[38],M(N)}function No(e){return ln(5e3,1e3,e,2,0)}function Ro(){return null}function xo(){return null}const Po="site-editor-save",Jt={id:Po,description:void 0,action:void 0,cancel:void 0},Pr="site-editor-undo",Ie="site-editor-publish";function $o(e){const t=P.c(7),{label:n,detail:o}=e;let r;t[0]!==n?(r=G.jsx("summary",{className:"cursor-pointer select-none text-muted-foreground",children:n}),t[0]=n,t[1]=r):r=t[1];let s;t[2]!==o?(s=G.jsx("p",{className:"mt-1 whitespace-pre-wrap break-words font-mono text-muted-foreground",children:o}),t[2]=o,t[3]=s):s=t[3];let i;return t[4]!==r||t[5]!==s?(i=G.jsxs("details",{className:"mt-1 text-xs",children:[r,s]}),t[4]=r,t[5]=s,t[6]=i):i=t[6],i}function Wt(e,t){return t?G.jsx($o,{label:e("siteEditor.details"),detail:t}):void 0}function $r(e,t,n){q.error($t(e,t,n),{...Jt,description:Wt(e,ro(t,n))})}function Ar(e,t,n=!1){q.info(e(t?"sectionsEditor.reconcile.leftDeleted":"sectionsEditor.reconcile.keptTheirs"),{...Jt,description:e(t?n?"sectionsEditor.reconcile.leftDeletedNeverPublishedHint":"sectionsEditor.reconcile.leftDeletedHint":"sectionsEditor.reconcile.keptTheirsHint")})}const Yt={action:void 0,duration:void 0};function Lr(e,t){q.success(t?e("siteEditor.publish.publishedOn",{host:t}):e("siteEditor.publish.published"),{...Yt,id:Ie,description:void 0})}function jr(e,{headline:t,body:n,detail:o,retry:r,pending:s,tone:i="error"}){const a=Wt(e,o??null);q[i](t,{id:Ie,description:n&&a?G.jsxs(G.Fragment,{children:[G.jsx("p",{children:n}),a]}):n??a,action:r?{label:e("siteEditor.tryAgain"),onClick:l=>{l.preventDefault(),q.loading(s??e("thread.publishPopover.publishing"),{...Yt,id:Ie,description:void 0}),r()}}:void 0,duration:r?Number.POSITIVE_INFINITY:void 0})}function Ur(e){return e instanceof Error?e.message||null:e==null?null:String(e)}export{Dr as $,br as A,po as B,wr as C,_o as D,Nr as E,Un as F,fe as G,vo as H,to as I,Mn as J,Ar as K,Or as L,pr as M,je as N,mr as O,To as P,Fe as Q,Tr as R,er as S,yt as T,Cr as U,$r as V,kr as W,So as X,Fn as Y,fr as Z,yr as _,nr as a,rr as a0,lr as a1,Ke as a2,et as a3,ur as a4,tr as a5,qn as a6,ar as a7,Rr as a8,gn as a9,S as aA,gr as aB,Wt as aa,Ur as ab,Lr as ac,Sr as ad,Jo as ae,Wo as af,Pe as ag,zo as ah,dn as ai,$o as aj,Yo as ak,Qt as al,wo as am,vr as an,no as ao,Qe as ap,Ir as aq,dr as ar,_r as as,jr as at,Ie as au,Yt as av,Pr as aw,Jt as ax,ko as ay,D as az,mn as b,It as c,hn as d,Ko as e,vn as f,Le as g,xe as h,pt as i,hr as j,Xn as k,xr as l,or as m,cr as n,oo as o,Xo as p,jn as q,qo as r,Zo as s,Et as t,Tt as u,ir as v,Er as w,sr as x,Io as y,J as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,a4 as n,j as r,K as f}from"./index-Cuw4uBth.js";import{C as d}from"./index-BoQ6UNxI.js";import{m as u,P as x,T as h}from"./mock-board-DrLmLQZ3.js";import{F as j}from"./feature-gate-DTum9WCp.js";import"./use-mobile-99mfVsUI.js";import"./use-sidebar-collapsed-DxKpoCm3.js";import"./use-chat-layout-state-EYafKK4O.js";import"./thread-route-DIZgBacC.js";import"./use-panel-navigate-B12jZOsf.js";import"./use-project-scope-8q_Pr-Xb.js";import"./repository-binding-CXnxCF4M.js";import"./use-mcp-client-CfpsAKj4.js";import"./auth-BJe1aOgg.js";import"./thread-intent-CZ5_EO2w.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-B-BVtIbV.js";import"./task-board-DH9ssxkG.js";import"./schema-D5UoICKI.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-C1y4Hi5E.js";import"./AlertCircle-D9_evsvO.js";import"./Tool01-BJdrlQAn.js";import"./ArrowUp-Cth_eVmU.js";import"./ArrowLeft-B6qwUpLq.js";import"./LinkBroken01-gdfveCgK.js";import"./ShoppingBag01-BuVMkUkJ.js";import"./ZoomOut-rfozMzwP.js";import"./Building02-Wh9pimKL.js";import"./CheckCircle-DoJXwawU.js";import"./ChevronUp-7SZxJu8w.js";import"./ChevronSelectorVertical-CnRBP_5y.js";import"./UserSquare-D0z8lAkn.js";import"./Copy01-Bu20fOqK.js";import"./CreditCard01-Br0-9pHI.js";import"./DotsVertical-OSj5km5S.js";import"./Image01-CzYWCBEQ.js";import"./Globe04-D4srY_QI.js";import"./SwitchHorizontal01-D_E9YPjp.js";import"./Key01-C-bam-4X.js";import"./Link01-DXRUIbxg.js";import"./Minus-Czu3kpSA.js";import"./Monitor01-CruCSnyq.js";import"./Sun-Cg4UcsIP.js";import"./Play-RzA3Niav.js";import"./Plus-BA90GKs1.js";import"./SearchMd-DO1eOJvD.js";import"./Trash01-DcsYDVg8.js";import"./Upload01-CYUmJE5W.js";import"./Users01-Y9yFg_2K.js";import"./XClose-DIFkFXp0.js";import"./tooltip-Ci3ZwooP.js";import"./index-B-HoKvLm.js";import"./toolbar-icon-button-DZE2ESw9.js";import"./shell-layout-C2BJGx2g.js";import"./use-clock-tick-BUftA4XN.js";import"./command-D79ZH19X.js";import"./index-AaUC9WD6.js";import"./integration-icon-DkmY4VjA.js";import"./project-icon-DQNZWn_4.js";import"./new-project-dialog-M-WLwZ47.js";import"./label-GaS9ZdQZ.js";import"./repository-import-picker-DLsxOOxp.js";import"./use-navigate-to-agent-DaAFktW9.js";import"./repository-picker-Cq7JBkFe.js";import"./useInfiniteQuery-DFK0dHSs.js";import"./infiniteQueryObserver-Dy0j8RRj.js";import"./collection-search-DKSj36i2.js";import"./use-debounced-value-2_mLSVw4.js";import"./use-organization-settings-SIasU_tC.js";import"./required-auth-layout-CwX_2fTY.js";import"./autosend-BKwtMB6P.js";import"./use-org-sso-CTKiuB0A.js";import"./sheet-56HC7WRJ.js";import"./resizable-C7Is3s-0.js";import"./core.esm-DpydQIdT.js";import"./sortable.esm-xXl-6mL4.js";import"./use-task-board-analytics-Bm_X5xzM.js";import"./combobox-B8zTmLu1.js";import"./popover-DiqYPKHh.js";import"./usage-stats-CNLGhk-o.js";import"./tool-namespace-DO1Qm86o.js";import"./form-DU60ZzuM.js";import"./utils-CVEq3hMx.js";import"./markdown-DWeSe4_P.js";import"./use-copy-ClerAXdJ.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-CA56Gos8.js";import"./chat-context-C2Yxk7gW.js";import"./use-ai-providers-DOax94rO.js";import"./suggestion-CZpp719s.js";import"./column-rules-CRkg9Fxl.js";import"./badge-Dne4Jx9I.js";import"./icon-button-DhKNS89h.js";import"./switch-n_zXX4if.js";import"./textarea-CDKBkceb.js";import"./use-org-fs-Dczc29OI.js";import"./use-automations-CPkt7SVV.js";import"./search-toggle-BoR9-yak.js";import"./context-menu-BAoOyR8J.js";import"./daily-pulse-Bojl1W7A.js";import"./use-task-board-events-CmQec1Gn.js";import"./config-94XCayih.js";import"./select-B73KS7i3.js";import"./index-BdQq_4o_.js";import"./task-route-bLUOK5JR.js";import"./task-key-BCHdFiOO.js";import"./task-assignee-avatar-RKc3yRg-.js";import"./use-tags-Cf5XANnQ.js";import"./calendar-DqTMQkmt.js";import"./alert-DiPve0LV.js";import"./collapsible-B_i_flQZ.js";import"./index-BsRMIjqv.js";import"./editor-classes-iJqU7okF.js";import"./index-Cj3mLa-X.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-CFwgg281.js";import"./use-connection-eHzowbKv.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-C_1TXm2y.js";import"./useSuspenseInfiniteQuery-BBbMOBX0.js";import"./pair-DtCSsufw.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-gjnt5Msm.js";import"./types-DhOLYbcW.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-B6wGbsaO.js";import"./use-thread-outputs-CM6siwJk.js";import"./file-type-icon-DptKoj-q.js";import"./use-infinite-scroll-DfZZeab5.js";import"./task-status-Bc6ioQFn.js";import"./use-open-billing-url-Bzh-ntva.js";import"./chat-draft-CoNCF5e9.js";import"./separator-Bun_4c4E.js";import"./feature-paywall-zO4dzbka.js";import"./plan-ladder-Cr-CdTR1.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(h,{})}),t[0]=o):o=t[0],o}function Mo(){const t=l.c(8),{locator:o}=n();let i;t[0]!==o?(i=c=>c.setQueryData(f.taskBoardItems(o),u()),t[0]=o,t[1]=i):i=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let m;t[3]!==i?(m=r.jsx(x,{seed:i,children:p}),t[3]=i,t[4]=m):m=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==m?(s=r.jsx(d.Content,{children:r.jsx(j,{feature:"kanban",backdrop:m,children:e})}),t[6]=m,t[7]=s):s=t[7],s}export{Mo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as i,q as y}from"./index-Cuw4uBth.js";import{u as f,D as m}from"./site-editor-toast-DQ656FVh.js";function K(l){const e=i.c(11),r=y(),{orgSlug:n,virtualMcpId:c,branch:t}=l,u=f(c,t);let o;e[0]!==t||e[1]!==n||e[2]!==c?(o=t?{orgSlug:n,virtualMcpId:c,branch:t}:null,e[0]=t,e[1]=n,e[2]=c,e[3]=o):o=e[3];const a=m(o)||null;let s;return e[4]!==u||e[5]!==t||e[6]!==n||e[7]!==r||e[8]!==a||e[9]!==c?(s={queryClient:r,orgSlug:n,virtualMcpId:c,branch:t,backend:u,cacheKey:a},e[4]=u,e[5]=t,e[6]=n,e[7]=r,e[8]=a,e[9]=c,e[10]=s):s=e[10],s}export{K as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as x,b as F,e as H,K as C,bp as j}from"./index-Cuw4uBth.js";import{u as v}from"./use-session-runtime-BkX1p9DX.js";import{o as B,c as J,u as R,D as L,R as N,H as S,F as U,G as W,K as A,L as G,M as Y,O as z,ap as Z,Z as _,Y as V,q as D,J as b}from"./site-editor-toast-DQ656FVh.js";import{s as X}from"./sandbox-git-api-CH_-QFpD.js";import{u as $}from"./chat-context-C2Yxk7gW.js";import{F as g,H as M}from"./blocks-tab-states-DBqkaxym.js";import{b as O}from"./sandbox-url-D3mC8qhT.js";import{d as Q}from"./utils-gKN9JfVP.js";function fe({orgSlug:i,virtualMcpId:t,branch:o}){const s=x(),y=$()?.taskId??null,P=B(t),T=v(t).runtime==="cms",{url:q}=J(t),k=R(t,o),f=k.kind==="protocol"?k:null,d=L({orgSlug:i,virtualMcpId:t,branch:o}),m=C.decofile(d),K=F(),E=async(a,c)=>{if(q)return{ok:!0};if(T){const r=await _({orgSlug:i,virtualMcpId:t,branch:o},{set:a,delete:c});return V(s,{orgSlug:i,virtualMcpId:t,branch:o},r),await s.invalidateQueries({queryKey:X({orgSlug:i,virtualMcpId:t,branch:o,threadId:y})}),r}const u={orgSlug:i,virtualMcpId:t,branch:o,threadId:y};for(const[r,n]of Object.entries(a)){const e=await fetch(O(u,"write"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:D(P,Q(r)),content:JSON.stringify(n,null,2)})});if(!e.ok)return b(e,"Write")}for(const r of c){const n=await fetch(O(u,"unlink"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:D(P,Q(r))})});if(!n.ok)return b(n,"Delete")}return{ok:!0}},p=H({mutationKey:W(i,t,o),scope:U(i,t,o),mutationFn:async({writes:a,deletes:c,copies:u,shown:r})=>{const n=f?.source==="github"?a:j(a);return f?.source==="github"?g({queryClient:s,backend:f,params:{orgSlug:i,virtualMcpId:t,branch:o},cacheKey:d},{writes:n,deletes:c.filter(e=>!(e in n))},u,r?.()):f?N(s,f,{orgSlug:i,virtualMcpId:t,branch:o},d,{set:n,delete:c.filter(e=>!(e in n))}):S({queryClient:s,orgSlug:i,virtualMcpId:t,branch:o,backend:k,cacheKey:d},{kind:"edit",write:()=>E(n,c)})},onSuccess:()=>{f?.source!=="github"&&s.invalidateQueries({queryKey:C.liveMeta(i,t,o)})}});return{move:async(a,c)=>{const u=[...Object.keys(a.writes),...a.deletes],r=s.getQueryData(m),n=new Map;for(const e of u)r&&e in r&&n.set(e,r[e]);s.setQueryData(m,e=>I(e,a)),s.cancelQueries({queryKey:m});try{return await p.mutateAsync({...a,copies:r,shown:c?.shown})}catch(e){throw e instanceof M?(A(K,e.deleted,e.deleted&&a.deletes.length>0&&a.deletes.every(l=>G(s,d,l))),e):(Y(K,e),f?.source==="github"&&(z(e)||e instanceof Z)||s.setQueryData(m,l=>{if(!l)return l;const w={...l};for(const h of u)n.has(h)?w[h]=n.get(h):delete w[h];return w}),e)}},isPending:p.isPending,isError:p.isError}}function I(i,{writes:t,deletes:o}){const s={...i??{},...t};for(const y of o)y in t||delete s[y];return s}export{I as a,fe as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-Dy0j8RRj.js";import{eq as i}from"./index-Cuw4uBth.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-Dy0j8RRj.js";import{eq as u,ex as n}from"./index-Cuw4uBth.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Z as $,W as f}from"./parse-sections-B1uka1Vq.js";const v="x-deco-matchers-override";function h({pageKey:n,prefix:r,variants:t,selectedIndex:a,decofile:i,meta:s}){if(!n||a<0||a>=t.length)return[];const o=[];for(let e=0;e<=a;e++){const u=t[e];if(!u)continue;const c=u.rule,l=e===a?"1":"0",d=($(c,i,s)?f(c,i,s):null)??`${n}@${r}.${e}.rule`;o.push(`${d}=${l}`)}return o}function p(n,r,t,a){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:n,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:a})}function x({pageKey:n,page:r,sectionIndex:t,sectionLazy:a,mvObj:i,selectedVariantIndex:s,decofile:o,meta:e}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value${r.lazyValues?".value":""}`:"sections"}.${t}${a?".section":""}.variants`,l=Array.isArray(i.variants)?i.variants:[];return h({pageKey:n,prefix:c,variants:l,selectedIndex:s,decofile:o,meta:e})}function y(n,r){const t=`${r}@`;return n.map(a=>a.startsWith(t)?`props.${a.slice(t.length)}`:a)}function B(n,r){if(r.length===0)return n;try{const t=new URL(n,"http://local");t.searchParams.delete(v);for(const a of r)t.searchParams.append(v,a);return n.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return n}}export{x as a,p as b,y as i,B as w};
|