decocms 4.542.1 → 4.542.3
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-CTNIR1uo.js → ActiveShapeUtils-CLmYip7o.js} +1 -1
- package/dist/client/assets/{AlertCircle-Hdww5hle.js → AlertCircle-DzE-j8Md.js} +1 -1
- package/dist/client/assets/{AreaChart-C_-vf7HG.js → AreaChart-jCvlBX4z.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BdhX_ELF.js → ArrowLeft-B4Fp6tOY.js} +1 -1
- package/dist/client/assets/{ArrowUp-B0V8Iire.js → ArrowUp-ChN8aOEm.js} +1 -1
- package/dist/client/assets/{BarChart-CGQa-jmR.js → BarChart-kNTSHvb9.js} +1 -1
- package/dist/client/assets/{Building02-CIOqUK8u.js → Building02-PnRUM-VE.js} +1 -1
- package/dist/client/assets/{CartesianChart-CJ4c9OjY.js → CartesianChart-BUoXXZfH.js} +1 -1
- package/dist/client/assets/{CategoricalChart-B7pVoKsa.js → CategoricalChart-Dhwf2GdF.js} +1 -1
- package/dist/client/assets/{CheckCircle-Oy-r5wrn.js → CheckCircle-BH2UP5Pl.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-4o-RZGZG.js → ChevronSelectorVertical-CK7wz4hr.js} +1 -1
- package/dist/client/assets/{ChevronUp-yEhXqYsc.js → ChevronUp-C2ixq11S.js} +1 -1
- package/dist/client/assets/{Copy01-DZu9JdFR.js → Copy01-S_Wzfgys.js} +1 -1
- package/dist/client/assets/{CreditCard01-e2iuA4b6.js → CreditCard01-C9Xxz1Z-.js} +1 -1
- package/dist/client/assets/{DotsVertical-2jz8M_Ab.js → DotsVertical-DgY7T0mx.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-pdbVvNIr.js → ErrorBarContext-C0OzijwZ.js} +1 -1
- package/dist/client/assets/{Globe04-Dv-Q1UFe.js → Globe04-BPKiswDo.js} +1 -1
- package/dist/client/assets/{Image01-Csw8Eb7F.js → Image01-CiWjI_N8.js} +1 -1
- package/dist/client/assets/{Key01-nj-094nh.js → Key01-Cl5CaquW.js} +1 -1
- package/dist/client/assets/{Link01-DIQIHWyZ.js → Link01-DRf4-o03.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DiqXlFxy.js → LinkBroken01-C4Xn1L4t.js} +1 -1
- package/dist/client/assets/{Minus-DGpW2R_Y.js → Minus-DrIgoneT.js} +1 -1
- package/dist/client/assets/{Monitor01-6lmVgqwN.js → Monitor01-yYk26cfF.js} +1 -1
- package/dist/client/assets/{Play-Bw1hrhzw.js → Play-DiF1YnWe.js} +1 -1
- package/dist/client/assets/{Plus-BQ-ZwSoF.js → Plus-ajSOCMl5.js} +1 -1
- package/dist/client/assets/{ReferenceLine-D96IaFnI.js → ReferenceLine-ode7xeNO.js} +1 -1
- package/dist/client/assets/{SearchMd-CcFldd9q.js → SearchMd-DTaWr-NV.js} +1 -1
- package/dist/client/assets/{Sector-Lv3mbSoh.js → Sector-CBAM4uEa.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Dt2W1jQn.js → ShoppingBag01-w9yIZ7Vl.js} +1 -1
- package/dist/client/assets/{Sun-BCEy54hJ.js → Sun-Bb0mDann.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-ZVZ1PW_K.js → SwitchHorizontal01-Cz2viH34.js} +1 -1
- package/dist/client/assets/{Tool01-DamUcObd.js → Tool01-DvXBMYEr.js} +1 -1
- package/dist/client/assets/{Trash01-CA_m_Fs0.js → Trash01-DVB9fxWu.js} +1 -1
- package/dist/client/assets/{Upload01-COlXo8Rs.js → Upload01-Bd0Vey4L.js} +1 -1
- package/dist/client/assets/UserSquare-WesfpXiJ.js +1 -0
- package/dist/client/assets/{Users01-CqKKJKeH.js → Users01-BLXU9p3z.js} +1 -1
- package/dist/client/assets/{XClose-BLrzcEcC.js → XClose-BM8Qxy5w.js} +1 -1
- package/dist/client/assets/{Zap-CbyRjfWs.js → Zap-sqFFzvOf.js} +1 -1
- package/dist/client/assets/{ZoomOut-C8TxwIPG.js → ZoomOut-BMEXUhR4.js} +1 -1
- package/dist/client/assets/{access-gate-RZ9GSyUJ.js → access-gate-By7w7bSi.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BVaDiahz.js → add-connection-dialog-BluSK0lx.js} +1 -1
- package/dist/client/assets/{agent-analytics-Cdw0YBIV.js → agent-analytics-CNw_SyNM.js} +1 -1
- package/dist/client/assets/agent-app-DbclzXDU.js +1 -0
- package/dist/client/assets/{agent-assets-C6qXUWEv.js → agent-assets-Bd43kbAT.js} +1 -1
- package/dist/client/assets/{agent-automation-N0vyewKq.js → agent-automation-Bu2NjJrU.js} +1 -1
- package/dist/client/assets/{agent-automations-U4KLp_Jm.js → agent-automations-Ccv6ZRUF.js} +1 -1
- package/dist/client/assets/{agent-calendar-VlbI2j-J.js → agent-calendar-DkkiCWmd.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DzR95Lay.js → agent-connect-sources-BDarxFOe.js} +1 -1
- package/dist/client/assets/agent-deck-BZE0--70.js +1 -0
- package/dist/client/assets/{agent-e2e-7b8bEJgs.js → agent-e2e-COLwEyW7.js} +1 -1
- package/dist/client/assets/agent-experiments-C-CUI5Wi.js +1 -0
- package/dist/client/assets/{agent-file-qAGeJ5wq.js → agent-file-BIvvkyQ-.js} +1 -1
- package/dist/client/assets/{agent-hosting-ZktfT8aB.js → agent-hosting-BJMw5oRI.js} +1 -1
- package/dist/client/assets/agent-icon-DCY-DFu1.js +1 -0
- package/dist/client/assets/agent-library-BjJ181jP.js +1 -0
- package/dist/client/assets/agent-library-file-BPiYRhWM.js +1 -0
- package/dist/client/assets/agent-monitor-DpRQhcjH.js +1 -0
- package/dist/client/assets/{agent-overview-C1fHYueD.js → agent-overview-BmB1tKmP.js} +1 -1
- package/dist/client/assets/{agent-releases-BUlnts0m.js → agent-releases-Bjc7gSc7.js} +1 -1
- package/dist/client/assets/agent-settings-kT3-qFt3.js +1 -0
- package/dist/client/assets/{agent-site-editor-BxGyQ1GG.js → agent-site-editor-QzKa3yR0.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-o6lK4DIS.js +2 -0
- package/dist/client/assets/agent-site-editor-content-B6rkCzsg.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-Dg_7ffKK.js +1 -0
- package/dist/client/assets/agent-view-D464xMnL.js +1 -0
- package/dist/client/assets/{agent-view-guard-CrSlBYGa.js → agent-view-guard-C8vnuAW5.js} +1 -1
- package/dist/client/assets/{agents-list-DQMpcCgV.js → agents-list-DcTl6DAN.js} +1 -1
- package/dist/client/assets/{ai-providers-DmJhCIXK.js → ai-providers-BxP8NxtG.js} +1 -1
- package/dist/client/assets/{alert-Bg73iQHm.js → alert-BClfxRVl.js} +1 -1
- package/dist/client/assets/{analytics-sections-COL0BtKA.js → analytics-sections-C56nTKhq.js} +1 -1
- package/dist/client/assets/{api-keys-yf9_DOP2.js → api-keys-CgZOX36O.js} +1 -1
- package/dist/client/assets/api-keys-q55WNLi3.js +1 -0
- package/dist/client/assets/app-editor-D7grhyWY.js +1 -0
- package/dist/client/assets/{asset-utils-BrDvPrYv.js → asset-utils-Dv9DtY1w.js} +1 -1
- package/dist/client/assets/{auth-DPUc_dnx.js → auth-D4mihjB5.js} +1 -1
- package/dist/client/assets/{auth-catchall-3vQklB_P.js → auth-catchall-CIjMWWQ4.js} +1 -1
- package/dist/client/assets/{auth-entry-DzHbwDpa.js → auth-entry-CF2sy2X9.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CrNUjCQ4.js → auth-split-layout-CKmq0cQL.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-RWTag1bK.js → authenticate-and-persist-oauth-DcyREoDj.js} +1 -1
- package/dist/client/assets/{automation-list-row-DJWeWPbv.js → automation-list-row-B7u3k1TE.js} +1 -1
- package/dist/client/assets/{automation-runs-C9XEPlIV.js → automation-runs-DdW0Koem.js} +1 -1
- package/dist/client/assets/{automations-Dhk5JOxd.js → automations-Cb_-4OPE.js} +1 -1
- package/dist/client/assets/{autosend-Bw00xJf9.js → autosend-BW2sWcH_.js} +1 -1
- package/dist/client/assets/{badge-BWAFo8iB.js → badge-BYQ7wlS5.js} +1 -1
- package/dist/client/assets/{block-document-D_ARyc6Z.js → block-document-CQPNpE_7.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-Bhzld3G9.js → blocks-preview-workspace-context-CCrolu3H.js} +1 -1
- package/dist/client/assets/blocks-tab-states-CTYUutZb.js +1 -0
- package/dist/client/assets/{blog-schema-B3FO_Ydd.js → blog-schema-E9phFUsA.js} +1 -1
- package/dist/client/assets/{buckets-D-TerXqE.js → buckets-B13TOr3J.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-D_iuDFLq.js → build-improve-prompt-doc-CbYp0dXg.js} +1 -1
- package/dist/client/assets/{calendar-BRFOK1aQ.js → calendar-Dfa2lTn-.js} +1 -1
- package/dist/client/assets/{capability-load-error-BNI4R8XO.js → capability-load-error-B32fS7dM.js} +1 -1
- package/dist/client/assets/category-editor-C_N4v5N0.js +1 -0
- package/dist/client/assets/{cdn-tab-BqJVJvQQ.js → cdn-tab-C4yfZ9eS.js} +1 -1
- package/dist/client/assets/{chart-Q09A7KSZ.js → chart-4GCitUJ7.js} +1 -1
- package/dist/client/assets/{chat-context-DR3uLV2w.js → chat-context-BChErz2e.js} +1 -1
- package/dist/client/assets/{chat-draft-CKNXk7gm.js → chat-draft-DoIY677y.js} +1 -1
- package/dist/client/assets/{checkbox-b8t24adl.js → checkbox-r74ldNXe.js} +1 -1
- package/dist/client/assets/{choose-editor-TtuwIl9O.js → choose-editor-CwjcozrS.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Dt-ivrkY.js → cli-auth-success-CtgjBw7s.js} +1 -1
- package/dist/client/assets/{client-icons-3S2BKupf.js → client-icons-DSbdG4pu.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-CoL1CtIi.js → cms-settings-editor-MAcJ4mRh.js} +1 -1
- package/dist/client/assets/{collapsible-BHetx99z.js → collapsible-Cq7zc7_4.js} +1 -1
- package/dist/client/assets/{collection-detail-C551YHre.js → collection-detail-BpXqX3oB.js} +1 -1
- package/dist/client/assets/{collection-display-button-BjEhoX6t.js → collection-display-button-Co1Pga0X.js} +1 -1
- package/dist/client/assets/{collection-search-2lwiZ_Gf.js → collection-search-CpetsY8q.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-TIbTouTp.js → collection-table-wrapper-B4u7lstM.js} +1 -1
- package/dist/client/assets/{collection-tabs-DNvFQjqm.js → collection-tabs-pmxZ8mkx.js} +1 -1
- package/dist/client/assets/{combobox-CMpxb7Mm.js → combobox-BUgAhpEW.js} +1 -1
- package/dist/client/assets/{command-CermhoTd.js → command-DOj2A4A7.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CM4OIzwX.js → companion-mcps-section-CWO5AEfe.js} +1 -1
- package/dist/client/assets/{config-VQsUFgqz.js → config-Dk-dmIvU.js} +1 -1
- package/dist/client/assets/{connect-BfWqzz_9.js → connect-B1oQic42.js} +1 -1
- package/dist/client/assets/{connect-layout-F601-RNu.js → connect-layout-CXFw7UnM.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-CBx-6nzq.js → connect-source-dialog-CGYXiWts.js} +1 -1
- package/dist/client/assets/{connection-DrOf5a8e.js → connection-S7qDWEtT.js} +1 -1
- package/dist/client/assets/{connection-card-CZBuUPP_.js → connection-card-Cx44idem.js} +1 -1
- package/dist/client/assets/{connection-detail-DPF8YmLk.js → connection-detail-Dv-5xDcH.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D3sfjZA_.js → connection-form-helpers-gFh7yCzV.js} +1 -1
- package/dist/client/assets/{connections-lrErrE5H.js → connections-18n-bO0V.js} +1 -1
- package/dist/client/assets/content-tab-DN8B-yRI.js +25 -0
- package/dist/client/assets/context-6RTcJyMV.js +1 -0
- package/dist/client/assets/{context-menu-Biz9RPI-.js → context-menu-Bl8I6GNc.js} +1 -1
- package/dist/client/assets/{context-shell-CnZGomwI.js → context-shell-BYQlM0x8.js} +3 -3
- package/dist/client/assets/{core.esm-Dennsttt.js → core.esm-BT_mU3xj.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-wSFwPaJG.js → create-organization-dialog-U4tR_Qfl.js} +1 -1
- package/dist/client/assets/{daily-pulse-A6f95wwZ.js → daily-pulse-6PW7XWbE.js} +1 -1
- package/dist/client/assets/{discover-DU-Rzely.js → discover-BIfjmq3H.js} +1 -1
- package/dist/client/assets/{domain-settings-Bnb_ZtIt.js → domain-settings-BAiU0Esp.js} +1 -1
- package/dist/client/assets/{drawer-CuUzaTfw.js → drawer-Dx4-F-OS.js} +1 -1
- package/dist/client/assets/{editor-CJ37wKUc.js → editor-BQmG-TWe.js} +1 -1
- package/dist/client/assets/{editor-classes-yEQ_KPvG.js → editor-classes-DKOvNB3n.js} +1 -1
- package/dist/client/assets/{empty-state-DXBACaDC.js → empty-state-B3qkXyL5.js} +1 -1
- package/dist/client/assets/{empty-state-DhRsvQHO.js → empty-state-cQdvFUSC.js} +1 -1
- package/dist/client/assets/{experiments-tab-Bx6GaOJU.js → experiments-tab-CGGCXXu8.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-B1sDnY5T.js → experiments-tab-choice-BPtAtI2U.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DOpfeyzI.js → extract-connection-data-duttVzSb.js} +1 -1
- package/dist/client/assets/{feature-gate-FbVbvaij.js → feature-gate-B_rAgLtC.js} +1 -1
- package/dist/client/assets/{feature-paywall-CdkGt72v.js → feature-paywall-B9F9KnQt.js} +1 -1
- package/dist/client/assets/{file-explorer-BfjvwZGe.js → file-explorer-qKQKwlcp.js} +1 -1
- package/dist/client/assets/{file-preview-CpUVcTEC.js → file-preview-DtFhFlGD.js} +1 -1
- package/dist/client/assets/{file-share-button-BFGgw9L9.js → file-share-button-_yfZfWoE.js} +1 -1
- package/dist/client/assets/{file-type-icon-BkRHeWVz.js → file-type-icon-DnkfnNgZ.js} +1 -1
- package/dist/client/assets/{folder-icon-CEWb3RvH.js → folder-icon-CQMbivux.js} +1 -1
- package/dist/client/assets/{form-RFg7ydwN.js → form-BQ50c_Kc.js} +1 -1
- package/dist/client/assets/{general-CCnErHaD.js → general-UOC6R1bq.js} +1 -1
- package/dist/client/assets/{github-icon-CfOxQ_kk.js → github-icon-Da5ypnFC.js} +1 -1
- package/dist/client/assets/{held-block-view-B1ZTgtaf.js → held-block-view-DCE-bFQS.js} +3 -3
- package/dist/client/assets/{home-d4IkLgAU.js → home-BH5Ska_O.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-CaaC9Yio.js → hosted-publish-feedback-CZCgFuTM.js} +1 -1
- package/dist/client/assets/{icon-button-DUX8uev-.js → icon-button-Dr-Gv6H0.js} +1 -1
- package/dist/client/assets/{index-GbZ7cHim.js → index-B4sZcXXO.js} +1 -1
- package/dist/client/assets/{index-KnmovUVi.js → index-B9YWSID0.js} +1 -1
- package/dist/client/assets/{index-ZjFFuBzo.js → index-BIewQUQb.js} +1 -1
- package/dist/client/assets/{index-Cw6ilRLN.js → index-BijXK1UR.js} +7 -7
- package/dist/client/assets/{index-BU3lM1Xe.js → index-CIaq3tw7.js} +1 -1
- package/dist/client/assets/{index-DF_kVaV9.js → index-CQE0HBp3.js} +1 -1
- package/dist/client/assets/{index-CuP8z21G.js → index-D6M26y9G.js} +1 -1
- package/dist/client/assets/{index-BN1wxwBE.js → index-DBQYx38N.js} +1 -1
- package/dist/client/assets/{index-CaPLCDO_.js → index-DCDDlYdn.js} +1 -1
- package/dist/client/assets/{index-DiHVaqTW.js → index-DiV7NYFa.js} +1 -1
- package/dist/client/assets/{index-AhdOdumU.js → index-DrgADi5h.js} +2 -2
- package/dist/client/assets/{index-CYvmYTza.js → index-E459_Efg.js} +1 -1
- package/dist/client/assets/{index-nea5NUvS.js → index-HzRnz8QJ.js} +1 -1
- package/dist/client/assets/{index-DnZM2vOx.js → index-R3al4Uhd.js} +1 -1
- package/dist/client/assets/{index-DiqyTQYB.js → index-jOmOmhTz.js} +1 -1
- package/dist/client/assets/{index-redirect-D8gnMr4D.js → index-redirect-Dqqwxwjr.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-r2g3Rufl.js → infiniteQueryObserver-o3kSKx55.js} +1 -1
- package/dist/client/assets/{infra-billing-xKdFu2DK.js → infra-billing-ZP6do34t.js} +1 -1
- package/dist/client/assets/{input-B3t37gB5.js → input-i5frBa5C.js} +1 -1
- package/dist/client/assets/{input-BiNlRIkN.js → input-seTaYpjE.js} +3 -3
- package/dist/client/assets/{integration-icon-BvuUEHwl.js → integration-icon-B78RRiv5.js} +1 -1
- package/dist/client/assets/{jira-icon-C17_Jc2B.js → jira-icon-B8btMOFJ.js} +1 -1
- package/dist/client/assets/{label-DvonkoXD.js → label-Cp19UNgk.js} +1 -1
- package/dist/client/assets/{layout-BiaPlBt-.js → layout-CX2GGDxo.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DV5Zxfa8.js → legacy-agents-deep-EaRXmg1a.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-3QdAqV_c.js → legacy-main-redirect-Djf9ugx4.js} +1 -1
- package/dist/client/assets/library--vU7_72w.js +1 -0
- package/dist/client/assets/{library-tab-Nfz-0YaQ.js → library-tab-D2dUmZ2N.js} +1 -1
- package/dist/client/assets/{login-bITsid_u.js → login-3ambMeYH.js} +1 -1
- package/dist/client/assets/{markdown-Bnq_rauO.js → markdown-Dq2cTeVK.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D9bP7Uyj.js → mcp-app-renderer-c0XyEtdp.js} +1 -1
- package/dist/client/assets/{mcp-oauth-zW9MaFGn.js → mcp-oauth-BGqSa9Pc.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B1sQYgh4.js → mcp-oauth-Ce50x3CB.js} +1 -1
- package/dist/client/assets/{members-CXI65xvm.js → members-rrzgbqx7.js} +1 -1
- package/dist/client/assets/{memory-C-guhabj.js → memory-DXTb6Voq.js} +1 -1
- package/dist/client/assets/{mini-report-page-C9o2eyOe.js → mini-report-page-CJX9M-nB.js} +1 -1
- package/dist/client/assets/{mock-board-BShoWwXR.js → mock-board-G8D6BINi.js} +3 -3
- package/dist/client/assets/{monaco-editor-DP1-rJ0v.js → monaco-editor-D3-tlVi1.js} +1 -1
- package/dist/client/assets/{monitoring-CqLCuFHk.js → monitoring-DO4YblV5.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BRnhkE0A.js → monitoring-stats-row-vVsaxsbi.js} +1 -1
- package/dist/client/assets/{multi-select-ID8vWjv8.js → multi-select-BpPVsFAF.js} +1 -1
- package/dist/client/assets/{mustache-nJjvu1VV.js → mustache-BKOMnA_9.js} +1 -1
- package/dist/client/assets/{named-rule-uses-BHC4DlIQ.js → named-rule-uses-CX8yqNkx.js} +1 -1
- package/dist/client/assets/{new-project-dialog-4twV8Y4C.js → new-project-dialog-JbH-ihe7.js} +1 -1
- package/dist/client/assets/{oauth-callback-h0NUpdOX.js → oauth-callback-CCdgABZY.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Da3_ca8D.js → oauth-callback-ai-provider-DWzz5YvT.js} +1 -1
- package/dist/client/assets/{onboarding-CvFXVvAB.js → onboarding-CTnT7tiC.js} +1 -1
- package/dist/client/assets/{openai-conversation-9-S9iWS8.js → openai-conversation-B5u7XwTe.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-B65im_4W.js → optimistic-project-sidebar-views-DXBojSzW.js} +1 -1
- package/dist/client/assets/{order-monitor-day-GXa0K2fU.js → order-monitor-day-C_W6SROB.js} +1 -1
- package/dist/client/assets/{organization-choice-DKpl7kTn.js → organization-choice-McETwbSg.js} +1 -1
- package/dist/client/assets/{orgs-Dt-LNqWF.js → orgs-07tmprt6.js} +1 -1
- package/dist/client/assets/{page-seo-form-DzjOyYJI.js → page-seo-form-FlV4EZkI.js} +1 -1
- package/dist/client/assets/{pair-BwKW0A4I.js → pair-DLv_RG2X.js} +1 -1
- package/dist/client/assets/parse-sections-BM7rWPEy.js +1 -0
- package/dist/client/assets/{plan-BJIbgrS0.js → plan-CAs8v3rm.js} +1 -1
- package/dist/client/assets/{plan-ladder-DIPGMFy3.js → plan-ladder-iixbir6X.js} +1 -1
- package/dist/client/assets/{plan-usage-card-OrJ6ndWB.js → plan-usage-card-OF2PeBk2.js} +1 -1
- package/dist/client/assets/{popover-N-Tbv2Q_.js → popover-CHbMB3jG.js} +1 -1
- package/dist/client/assets/{post-calendar-BN2880sO.js → post-calendar-DFFEwO0u.js} +1 -1
- package/dist/client/assets/{post-editor-SZ0T52l-.js → post-editor-DiCZv0jb.js} +1 -1
- package/dist/client/assets/{preview-content-BrY4N22Q.js → preview-content-Di4bx53_.js} +1 -1
- package/dist/client/assets/{preview-dialog-DNkXNQe2.js → preview-dialog-Bnabi9Qe.js} +1 -1
- package/dist/client/assets/{preview-panel-BeRdNuZC.js → preview-panel-C4Onhdbp.js} +1 -1
- package/dist/client/assets/{preview-tab-EJWXb_JS.js → preview-tab-BTYNRFa4.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-DJW0OQ7t.js → product-picker-dialog-CDwUdEyI.js} +1 -1
- package/dist/client/assets/{profile-p2CkJE0T.js → profile-BZopokCb.js} +1 -1
- package/dist/client/assets/{project-app-view-C_EMPbo0.js → project-app-view-BvN4B3VY.js} +1 -1
- package/dist/client/assets/{project-apps-CbCNo3Qh.js → project-apps-bRm5wucx.js} +1 -1
- package/dist/client/assets/{project-feed-BOoFoesM.js → project-feed-JQMrn4N0.js} +1 -1
- package/dist/client/assets/{project-icon-BRvDYuEF.js → project-icon-CJYQSuT8.js} +1 -1
- package/dist/client/assets/project-reports-C8oDqZ8M.js +1 -0
- package/dist/client/assets/project-tasks-12ERuu6r.js +1 -0
- package/dist/client/assets/{projects-DxaWyr4c.js → projects-HwNNO20y.js} +1 -1
- package/dist/client/assets/{projects-empty-state-q_kUg5xI.js → projects-empty-state-3UvEY2WC.js} +1 -1
- package/dist/client/assets/{prompts-ORkU8nSR.js → prompts-Bb-iag-D.js} +1 -1
- package/dist/client/assets/record-editor-DKQxzgxV.js +1 -0
- package/dist/client/assets/redirect-editor-DwMCsv8a.js +1 -0
- package/dist/client/assets/{releases-api-MmQe-HE4.js → releases-api-B6kvYbRr.js} +1 -1
- package/dist/client/assets/reports-DPVIqjnT.js +1 -0
- package/dist/client/assets/{reports-C3nGzDLE.js → reports-Xotj40Dl.js} +1 -1
- package/dist/client/assets/{reports-onboarding-D8qOl7n6.js → reports-onboarding-B5nfdh0X.js} +1 -1
- package/dist/client/assets/{reports-tab-BRsFQ8_g.js → reports-tab-Do3x8s5b.js} +2 -2
- package/dist/client/assets/{repositories-DWS1FNsz.js → repositories-D80nxgjg.js} +1 -1
- package/dist/client/assets/repositories-DDo5raPh.js +1 -0
- package/dist/client/assets/{repository-binding-PeMGXqSl.js → repository-binding-C68Bzwbp.js} +1 -1
- package/dist/client/assets/{repository-import-picker-BMJ3biNs.js → repository-import-picker-EEK-sVVk.js} +1 -1
- package/dist/client/assets/{repository-picker-XiErYA7B.js → repository-picker-DNE15SEp.js} +1 -1
- package/dist/client/assets/{require-capability-42JNP4Dw.js → require-capability-B8KwXmiu.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DsfiOlyN.js → required-auth-layout-CgViy1W9.js} +1 -1
- package/dist/client/assets/{reset-password-CsAEO5bw.js → reset-password-CFvmO4cf.js} +1 -1
- package/dist/client/assets/{resizable-XQP8BK4_.js → resizable-BiIQKqAj.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CguQjH43.js → resolve-tab-icon-ByuLXRti.js} +1 -1
- package/dist/client/assets/review-settings-BfbxJWxe.js +1 -0
- package/dist/client/assets/{roles-DZFrq3cC.js → roles--sJq_Ice.js} +1 -1
- package/dist/client/assets/route-CNrD999i.js +1 -0
- package/dist/client/assets/{route-C-GIqs4Z.js → route-DJ0GbELV.js} +1 -1
- package/dist/client/assets/{route-DKXnO--k.js → route-Ff6lCceC.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DB7MI-hA.js → sandbox-lifecycle-context-BFVSmowb.js} +1 -1
- package/dist/client/assets/{schema-DGh8triY.js → schema-Bi4RJVVu.js} +1 -1
- package/dist/client/assets/{schema-CB30E7Gi.js → schema-ZtwXZVxu.js} +1 -1
- package/dist/client/assets/{scroll-area-BhjyScQp.js → scroll-area-Cp71DHPt.js} +1 -1
- package/dist/client/assets/{search-input-CnMfC6Ib.js → search-input-BrVmXZXF.js} +1 -1
- package/dist/client/assets/{search-toggle-BsT7rhT7.js → search-toggle-DCUC4Qen.js} +1 -1
- package/dist/client/assets/{secret-picker-DRe1iXLV.js → secret-picker-lgA-9Rhu.js} +1 -1
- package/dist/client/assets/{secrets-Cm-nUiVG.js → secrets-BgPJKyPa.js} +1 -1
- package/dist/client/assets/{section-array-field-CowajgIO.js → section-array-field-B5eviaUR.js} +1 -1
- package/dist/client/assets/{sections-DN1XjEty.js → sections-Bg_-ZUEa.js} +1 -1
- package/dist/client/assets/sections-editor-B5LVHw--.js +1 -0
- package/dist/client/assets/{select-IRnWfSEI.js → select-CSKnqqEb.js} +1 -1
- package/dist/client/assets/{select-model-_tURUtw8.js → select-model-BQD_gjqh.js} +1 -1
- package/dist/client/assets/{seo-editor-DQuBtXMq.js → seo-editor-Cf2Xi6nY.js} +1 -1
- package/dist/client/assets/{separator-AD4s_4vt.js → separator-CwuQweR4.js} +1 -1
- package/dist/client/assets/settings-tab-BjEX5KP_.js +1 -0
- package/dist/client/assets/{sheet-CLT2kz10.js → sheet-BKUj4XRS.js} +1 -1
- package/dist/client/assets/{shell-layout-CdKs-SVX.js → shell-layout-7nLfl63D.js} +1 -1
- package/dist/client/assets/{site-draft-actions-K5CCMVX6.js → site-draft-actions-CJU0lNJV.js} +1 -1
- package/dist/client/assets/{site-draft-view-Dzca4Bar.js → site-draft-view-BexOIk_0.js} +2 -2
- package/dist/client/assets/site-editor-BIN6_mo1.js +1 -0
- package/dist/client/assets/{site-editor-toast-MdEv_oKc.js → site-editor-toast-DIQQclSk.js} +1 -1
- package/dist/client/assets/{skills-DIJP95gf.js → skills-DriBuXLm.js} +1 -1
- package/dist/client/assets/{slider-BOLJxYF2.js → slider-CX7at3h2.js} +1 -1
- package/dist/client/assets/{sortable.esm-CIFqofWL.js → sortable.esm-10DRQ2sX.js} +1 -1
- package/dist/client/assets/{sso-DqMDaenE.js → sso-CRoH05Fz.js} +1 -1
- package/dist/client/assets/{suggestion-tz-f65fQ.js → suggestion-xTAroASB.js} +1 -1
- package/dist/client/assets/{switch-D45dHrK3.js → switch-DrmfNcNf.js} +1 -1
- package/dist/client/assets/{symbol-Femlxd_m.js → symbol-ChJ7jN3k.js} +1 -1
- package/dist/client/assets/{synced-repos-45QejDcI.js → synced-repos-DV1BcuV7.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-pt4s2Grb.js → tab-icon-glyph-CF5f-Z_o.js} +1 -1
- package/dist/client/assets/{table-Daq1_j7m.js → table-Dzy-0aVP.js} +1 -1
- package/dist/client/assets/{tabs-DBG72Yee.js → tabs-BTn3mTbH.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-DrrfJr__.js → task-assignee-avatar-56TwVYLO.js} +1 -1
- package/dist/client/assets/{task-board-DSKYQnUa.js → task-board-CayegZZ3.js} +1 -1
- package/dist/client/assets/{task-route-D46EYWzc.js → task-route-DGxDwMMW.js} +1 -1
- package/dist/client/assets/{task-status-CJpXljEZ.js → task-status-BNNrZ_Nu.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-COtnoUXH.js → taskboard-analytics-XuXMs7JC.js} +1 -1
- package/dist/client/assets/{tasks-D5O8k4au.js → tasks-CUxYfIaK.js} +1 -1
- package/dist/client/assets/tasks-zAr_UkZ3.js +1 -0
- package/dist/client/assets/{textarea-B3VJ1IVc.js → textarea-D0LYBX8O.js} +1 -1
- package/dist/client/assets/{thread-analytics-yTtiboMK.js → thread-analytics-C1PPOpRT.js} +1 -1
- package/dist/client/assets/{thread-intent-CAWCzeoG.js → thread-intent-CdiuimL9.js} +1 -1
- package/dist/client/assets/{thread-route-BZQyZ1gL.js → thread-route-B2S6iOD-.js} +1 -1
- package/dist/client/assets/{thread-route-C3He_naw.js → thread-route-Cc6UBNhQ.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-vk26kAGI.js → thread-sheet-body-BFuME1Bd.js} +1 -1
- package/dist/client/assets/{time-range-picker-Dwtk68FK.js → time-range-picker-Cq-tv6qo.js} +1 -1
- package/dist/client/assets/{toggle-group-BtOmVjMF.js → toggle-group-DM6uySR5.js} +1 -1
- package/dist/client/assets/{tool-namespace-COirY7s5.js → tool-namespace-BW-tXE6W.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-as98rium.js → toolbar-icon-button-Du8IprMB.js} +1 -1
- package/dist/client/assets/{tooltip-g1j6c67B.js → tooltip-CgSkJPPS.js} +1 -1
- package/dist/client/assets/{tooltipContext-CLvPoHx0.js → tooltipContext-B5ecV60a.js} +1 -1
- package/dist/client/assets/{track-CbG7q0Jx.js → track-DekjR40E.js} +1 -1
- package/dist/client/assets/{types-C_kLVB_R.js → types-DK13rTXA.js} +1 -1
- package/dist/client/assets/{url-slug-DFbBJdJJ.js → url-slug-B9gulo1R.js} +1 -1
- package/dist/client/assets/{usage-stats-CO_PzmjR.js → usage-stats-spjeuTC-.js} +1 -1
- package/dist/client/assets/{use-ai-providers-UYArMe6s.js → use-ai-providers-TbIEEErY.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-DjUylbM_.js → use-apply-named-rule-dOnUWTCP.js} +1 -1
- package/dist/client/assets/{use-automations-fhgNtkrI.js → use-automations-CG-Cikv7.js} +1 -1
- package/dist/client/assets/{use-autosave-VNB60wel.js → use-autosave-Csd4kJP8.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-uzyWoT7E.js → use-chat-layout-state-B1KCQDF9.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Bbl4jizB.js → use-clock-tick-ffh7KkCE.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-Oa0EZQ0t.js → use-cms-publish-actions-eqQub0R0.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BinIX0nI.js → use-connect-companion-CbQk2RHf.js} +1 -1
- package/dist/client/assets/{use-connection-BeEdNRHa.js → use-connection-TWR90GP-.js} +1 -1
- package/dist/client/assets/{use-copy-Dk3cEiBB.js → use-copy-BtQZocLW.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CcnOX0WT.js → use-create-virtual-mcp-Bg_pvKji.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CpjJIfQT.js → use-date-fns-locale-Dk7jlgNH.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-QN0_xGaq.js → use-debounced-autosave-BEzdgU_0.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Cg3pn3hJ.js → use-debounced-value-AoAqNmHg.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C5r8tKZH.js → use-deco-credits-DHyEg3az.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D7GIEyuu.js → use-decopilot-events-CVUGGfXM.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Cx5vGSZR.js → use-delete-connection-Cz9YzYA8.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DVUkJw7-.js → use-deployment-admin-_i-curaL.js} +1 -1
- package/dist/client/assets/{use-entitlements-C4tNpLNZ.js → use-entitlements-C0wXCfoQ.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-C2yv-JdA.js → use-fast-preview-draft-url-aEjdHT0V.js} +1 -1
- package/dist/client/assets/{use-file-configs-C8WLQuJ_.js → use-file-configs-xfUsfkeK.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CmYEHjcJ.js → use-inbox-feed-p7cJIwLb.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-dtUi5Sm6.js → use-infinite-scroll-DCkPJt0t.js} +1 -1
- package/dist/client/assets/{use-join-requests-CACMdSxj.js → use-join-requests-CuoNgXxm.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-6UM-eEDy.js → use-main-panel-tabs-B5SM6O8K.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-nCZ8OnbU.js → use-mcp-auth-status-DnlvB6rZ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CvhC1TIJ.js → use-mcp-client-KWSUvK_a.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BWsIl6wX.js → use-mcp-prompts-BEJ1f99M.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-I_UsR8Xf.js → use-mcp-tools-BC8AaNmJ.js} +1 -1
- package/dist/client/assets/{use-mobile-CKqq0hw6.js → use-mobile-CPIB7FDl.js} +1 -1
- package/dist/client/assets/{use-move-blocks-D5l0lx5X.js → use-move-blocks-8DTZOusM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-X54xBbs-.js → use-navigate-to-agent-HYjCQ2HB.js} +1 -1
- package/dist/client/assets/{use-org-fs-wk2PRaOo.js → use-org-fs-CRpJAVmi.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-ON_B-I08.js → use-org-repo-syncs-fm6UzfKA.js} +1 -1
- package/dist/client/assets/{use-org-sso-1YltyqLi.js → use-org-sso-CfMRDnRe.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CxgWGtCR.js → use-organization-roles-APtOO0Ln.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BFBXS4UG.js → use-organization-settings-BnaaX9uD.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DzWclIwL.js → use-panel-navigate-C8QBD8vM.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-B8VDwbCS.js → use-project-native-view-presence-BwKCP-cs.js} +1 -1
- package/dist/client/assets/{use-project-scope-Bq5GrrDd.js → use-project-scope-CQd-IFnJ.js} +1 -1
- package/dist/client/assets/{use-recent-apps-DBlZNiUD.js → use-recent-apps-DDZXSkFr.js} +1 -1
- package/dist/client/assets/{use-releases-Dth9LHEU.js → use-releases-CuN0i7FX.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Do0xVL-L.js → use-reports-diagnostic-KsJKsvbI.js} +1 -1
- package/dist/client/assets/use-sandbox-events-CHP3Ppk5.js +2 -0
- package/dist/client/assets/{use-secrets-Byq7_LZ0.js → use-secrets-DTKbIXef.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Bi-N531T.js → use-section-preview-base-C-qObYGR.js} +1 -1
- package/dist/client/assets/{use-session-runtime-C29BLCO5.js → use-session-runtime-7fOZnFmy.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CC40xbK2.js → use-sidebar-collapsed-Cg9SAJcE.js} +1 -1
- package/dist/client/assets/{use-tags-DsgZua5i.js → use-tags-DfJbMtHn.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BTfxOx5Z.js → use-task-board-analytics-CeRXsQRW.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BQ73Mjf5.js → use-task-board-events-on9bUB3D.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-D1aN1p6d.js → use-task-board-item-prs-DSW_-yNM.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-CaMiqHjx.js → use-task-board-prompts-D_ds0kXS.js} +1 -1
- package/dist/client/assets/{use-task-metadata-RAKFvADU.js → use-task-metadata-DEG1rVSj.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-UYwynn2f.js → use-thread-analytics-CwjDq08D.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DsSeydeQ.js → use-thread-outputs-Ct6GwzUZ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BfYXF3Ue.js +1 -0
- package/dist/client/assets/{useQueries-BxilFdP8.js → useQueries-CizdKXco.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CDVGaP6u.js +1 -0
- package/dist/client/assets/{users-CfzZpC_f.js → users-BDtwz5j1.js} +1 -1
- package/dist/client/assets/{utils-CFwQd3Dj.js → utils-DSrro3Kq.js} +1 -1
- package/dist/client/assets/{variant-calendar-DAzhjaCK.js → variant-calendar-Bauq4E4Q.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-KA8G6wne.js → variant-matcher-override-O_qTI-qh.js} +1 -1
- package/dist/client/assets/{view-header-D4T3g6Y4.js → view-header-BDzDO2AR.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CJAqxDe2.js → virtual-mcp-BO0xBKoh.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BxinXtVa.js → watch-sse-pool-4Z_1jztZ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +44 -44
- package/dist/server/server.js +41 -41
- package/package.json +1 -1
- package/dist/client/assets/UserSquare-TWw3zsr7.js +0 -1
- package/dist/client/assets/agent-app-CgNxZEzb.js +0 -1
- package/dist/client/assets/agent-deck-SnZhc8k8.js +0 -1
- package/dist/client/assets/agent-experiments-DqhQbvgt.js +0 -1
- package/dist/client/assets/agent-icon-rBB7-3Iv.js +0 -1
- package/dist/client/assets/agent-library-5yOHhp5F.js +0 -1
- package/dist/client/assets/agent-library-file-Cj3Cwkh2.js +0 -1
- package/dist/client/assets/agent-monitor-Bywg_SMe.js +0 -1
- package/dist/client/assets/agent-settings-CQR-A0mU.js +0 -1
- package/dist/client/assets/agent-site-editor-code-lC9bSMmG.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Bshm0mLR.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DnlcRwFX.js +0 -1
- package/dist/client/assets/agent-view-DbVFezEQ.js +0 -1
- package/dist/client/assets/api-keys-l4aX0wsP.js +0 -1
- package/dist/client/assets/app-editor-BoAUsCRl.js +0 -1
- package/dist/client/assets/blocks-tab-states-Bujj2Oag.js +0 -1
- package/dist/client/assets/category-editor-bZgzbes6.js +0 -1
- package/dist/client/assets/content-tab-DruH5Km_.js +0 -22
- package/dist/client/assets/context-DmRBBX5q.js +0 -1
- package/dist/client/assets/library-DNyXivcG.js +0 -1
- package/dist/client/assets/parse-sections-C3Hmwt0I.js +0 -1
- package/dist/client/assets/project-reports-Ckw4gPRj.js +0 -1
- package/dist/client/assets/project-tasks-DIs0LJKu.js +0 -1
- package/dist/client/assets/record-editor-C9Hk9gzX.js +0 -1
- package/dist/client/assets/redirect-editor-DTFg1kOc.js +0 -1
- package/dist/client/assets/reports-DpW566Gg.js +0 -1
- package/dist/client/assets/repositories-rpqjpzkl.js +0 -1
- package/dist/client/assets/review-settings-U2xSoSbC.js +0 -1
- package/dist/client/assets/route-BeAt5Jxq.js +0 -1
- package/dist/client/assets/sections-editor-KyiXwNg4.js +0 -1
- package/dist/client/assets/settings-tab-Cyi9Dt5w.js +0 -1
- package/dist/client/assets/site-editor-B1tNbOKR.js +0 -1
- package/dist/client/assets/tasks-Dkj9k49d.js +0 -1
- package/dist/client/assets/use-sandbox-events-vz4ehPML.js +0 -2
- package/dist/client/assets/useInfiniteQuery-qZeYk4so.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CTPa_bH3.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{hN as Ho,bh as Wo,c as jn,b as Rn,r as S,l as ae,j as r,bQ as qo,bd as Vs,hO as Ra,B as Ut,X as rn,az as Go,Z as Uo,bg as Yo,Y as Zo,q as Jo,hm as Qo,hP as Xo,hQ as ei,bp as xn,h as ti,bi as Rt,hR as st,hS as Wr,hT as gs,hU as ni,hV as qr,hW as si,bw as ri,hX as ai,hY as Gr,hZ as oi,t as q,bZ as Ur,h_ as ii,h$ as Kt,i0 as li,i1 as ci,i2 as ui,bY as Yr,i3 as vs,i4 as di,i5 as fi,i6 as mi,bW as pi,bx as hi,i7 as gi,i8 as vi,bT as Si,f7 as yi,K as bi,bu as Zr,i9 as Jr,ia as xi,ib as _i,ic as ki,id as Ss,ie as wi,ig as ji,ih as Ri,ii as Ei,bR as Qr,ij as Vi,ik as Ti,il as Xr,im as Ai,bV as Ni}from"./index-Cw6ilRLN.js";import{u as Ci}from"./chat-context-DR3uLV2w.js";import{a2 as Pi,K as Qn,a3 as Ki,a4 as Mi,a5 as Bi,a6 as Di,a7 as Fi,a8 as Ii,a9 as ea,aa as Li,ab as Oi,z as Un,x as Yn,d as zi,u as $i,ac as ta,i as Hi,ad as Wi,k as qi,h as Gi,ae as Ea,af as Ui,ag as Yi,v as na,ah as Zi,ai as Ji,aj as Wn,ak as sa,al as ra,am as aa,an as ys,ao as Qi,D as Xi,ap as el,y as tl,aq as oa,ar as nl,as as ia,at as la,au as ca,M as sl,av as ua,a as rl,aw as an,ax as al,ay as ol,t as qn,az as _n}from"./held-block-view-B1ZTgtaf.js";import{c as il}from"./repository-binding-PeMGXqSl.js";import{n as ll,t as cl}from"./ChevronUp-yEhXqYsc.js";import{a9 as Va,b as Jn,ao as ul,H as dl,a3 as da,$ as fa}from"./agent-icon-rBB7-3Iv.js";import{S as on}from"./scroll-area-BhjyScQp.js";import{c as Et,T as Vt,a as Tt}from"./tooltip-g1j6c67B.js";import{l as fl,u as ml,m as pl,D as hl,a1 as gl,B as vl,ac as Mt,ad as Bt,N as Sl,ay as ma,Q as yl,Z as bl}from"./site-editor-toast-MdEv_oKc.js";import{u as xl,X as _l,E as bs,Y as pa,A as kl,Z as wl}from"./blocks-tab-states-Bujj2Oag.js";import{m as jl,u as Rl,P as El}from"./mustache-nJjvu1VV.js";import{a0 as Gt,T as ks,az as ws,a1 as Dt,U as ln,e as Vl,c as Tl,w as Al,k as Gn,p as wn,a4 as Nl,_ as qt,V as xs,Z as bt,Y as kn,F as Cl,a2 as ha,$ as Pl,ai as Kl,ak as Ml,aA as Bl,aB as Dl,aC as Fl}from"./parse-sections-C3Hmwt0I.js";import{a as Il}from"./Copy01-DZu9JdFR.js";import{a as js,e as Ta}from"./UserSquare-TWw3zsr7.js";import{i as ga}from"./Tool01-DamUcObd.js";import{s as va}from"./Image01-Csw8Eb7F.js";import{s as Ll}from"./Plus-BQ-ZwSoF.js";import{s as Ol}from"./Trash01-CA_m_Fs0.js";import{i as Rs}from"./Zap-CbyRjfWs.js";import{u as zl,a as Sa,K as $l,P as Hl,b as Wl,C as ql,D as Gl,c as Ul}from"./core.esm-Dennsttt.js";import{u as Yl,s as Zl,a as Zn,S as Jl,v as Ql}from"./sortable.esm-CIFqofWL.js";import{s as Xl,g as ec,u as tc,A as nc}from"./use-section-preview-base-Bi-N531T.js";import{a as sc,P as ya,w as rc,b as ac}from"./page-seo-form-DzjOyYJI.js";import{u as oc}from"./use-apply-named-rule-DjUylbM_.js";import{b as ba,a as ic}from"./variant-matcher-override-KA8G6wne.js";import{c as xa,d as lc,e as cc}from"./variant-draft-pointer-BeAKcq_c.js";import"./use-panel-navigate-DzWclIwL.js";import"./thread-route-BZQyZ1gL.js";import"./use-project-scope-Bq5GrrDd.js";import"./autosend-Bw00xJf9.js";import"./thread-intent-CAWCzeoG.js";import"./use-mcp-client-CvhC1TIJ.js";import"./auth-DPUc_dnx.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BxinXtVa.js";import"./task-board-DSKYQnUa.js";import"./schema-CB30E7Gi.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-C4tNpLNZ.js";import"./use-ai-providers-UYArMe6s.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-D7GIEyuu.js";import"./use-organization-settings-BFBXS4UG.js";import"./utils-CFwQd3Dj.js";import"./ZoomOut-C8TxwIPG.js";import"./Play-Bw1hrhzw.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BwKW0A4I.js";import"./LinkBroken01-DiqXlFxy.js";import"./collapsible-BHetx99z.js";import"./use-copy-Dk3cEiBB.js";import"./usage-stats-CO_PzmjR.js";import"./tool-namespace-COirY7s5.js";import"./form-RFg7ydwN.js";import"./label-DvonkoXD.js";import"./utils-CVEq3hMx.js";import"./markdown-Bnq_rauO.js";import"./use-mobile-CKqq0hw6.js";import"./use-clock-tick-Bbl4jizB.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D9bP7Uyj.js";import"./types-C_kLVB_R.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./AlertCircle-Hdww5hle.js";import"./XClose-BLrzcEcC.js";import"./ShoppingBag01-Dt2W1jQn.js";import"./SearchMd-CcFldd9q.js";import"./shell-layout-CdKs-SVX.js";import"./Building02-CIOqUK8u.js";import"./use-deployment-admin-DVUkJw7-.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-Oy-r5wrn.js";import"./Monitor01-6lmVgqwN.js";import"./command-CermhoTd.js";import"./index-DiqyTQYB.js";import"./integration-icon-BvuUEHwl.js";import"./project-icon-BRvDYuEF.js";import"./new-project-dialog-4twV8Y4C.js";import"./ArrowLeft-BdhX_ELF.js";import"./repository-import-picker-BMJ3biNs.js";import"./use-navigate-to-agent-X54xBbs-.js";import"./repository-picker-XiErYA7B.js";import"./github-icon-CfOxQ_kk.js";import"./useInfiniteQuery-qZeYk4so.js";import"./infiniteQueryObserver-r2g3Rufl.js";import"./collection-search-2lwiZ_Gf.js";import"./use-debounced-value-Cg3pn3hJ.js";import"./required-auth-layout-DsfiOlyN.js";import"./use-org-sso-1YltyqLi.js";import"./sheet-CLT2kz10.js";import"./use-connection-BeEdNRHa.js";import"./Link01-DIQIHWyZ.js";import"./use-mcp-prompts-BWsIl6wX.js";import"./use-thread-outputs-DsSeydeQ.js";import"./file-type-icon-BkRHeWVz.js";import"./section-array-field-CowajgIO.js";import"./alert-Bg73iQHm.js";import"./switch-D45dHrK3.js";import"./textarea-B3VJ1IVc.js";import"./ChevronSelectorVertical-4o-RZGZG.js";import"./popover-N-Tbv2Q_.js";import"./monaco-editor-DP1-rJ0v.js";import"./editor-CJ37wKUc.js";import"./calendar-BRFOK1aQ.js";import"./SwitchHorizontal01-ZVZ1PW_K.js";import"./Minus-DGpW2R_Y.js";import"./select-IRnWfSEI.js";import"./index-BdQq_4o_.js";import"./index-nea5NUvS.js";import"./editor-classes-yEQ_KPvG.js";import"./toggle-group-BtOmVjMF.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-CMpxb7Mm.js";import"./Upload01-COlXo8Rs.js";import"./DotsVertical-2jz8M_Ab.js";import"./search-input-CnMfC6Ib.js";import"./tabs-DBG72Yee.js";import"./use-file-configs-C8WLQuJ_.js";import"./asset-utils-BrDvPrYv.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-session-runtime-C29BLCO5.js";import"./sandbox-git-api-DcqI6XE4.js";import"./sandbox-url-D3mC8qhT.js";import"./ArrowUp-B0V8Iire.js";import"./CreditCard01-e2iuA4b6.js";import"./Globe04-Dv-Q1UFe.js";import"./Key01-nj-094nh.js";import"./Sun-BCEy54hJ.js";import"./Users01-CqKKJKeH.js";import"./experiments-tab-choice-B1sDnY5T.js";import"./use-sandbox-events-vz4ehPML.js";import"./slider-BOLJxYF2.js";import"./index-CuP8z21G.js";import"./tooltipContext-CLvPoHx0.js";import"./CategoricalChart-B7pVoKsa.js";import"./index-GbZ7cHim.js";import"./ActiveShapeUtils-CTNIR1uo.js";import"./Sector-Lv3mbSoh.js";import"./symbol-Femlxd_m.js";import"./empty-state-DhRsvQHO.js";import"./section-preview-url-7zfngvgW.js";import"./use-move-blocks-D5l0lx5X.js";const uc={escape:Pi};function dc(v,e){for(const p of Xl(v,e)){const y=typeof p.title=="string"?p.title:void 0;if(y?.includes("{{"))return y}}function fc(v,e){if(!e)return;const p=Ho(v,Wo(e));if(p)try{const y=dc(p.resolveType,e);return y&&jl.render(y,p.data,{},uc).trim()||void 0}catch{return}}function mc(v){const e=jn.c(13),{icon:p,label:y,className:b}=v;let V;e[0]!==b?(V=ae("size-3.5",b),e[0]=b,e[1]=V):V=e[1];let B;e[2]!==p||e[3]!==V?(B=r.jsx(p,{className:V}),e[2]=p,e[3]=V,e[4]=B):B=e[4];let w;e[5]!==y||e[6]!==B?(w=r.jsx(Vt,{asChild:!0,children:r.jsx("span",{role:"img","aria-label":y,className:"shrink-0 cursor-help",children:B})}),e[5]=y,e[6]=B,e[7]=w):w=e[7];let K;e[8]!==y?(K=r.jsx(Tt,{className:"max-w-56",children:y}),e[8]=y,e[9]=K):K=e[9];let k;return e[10]!==w||e[11]!==K?(k=r.jsxs(Et,{children:[w,K]}),e[10]=w,e[11]=K,e[12]=k):k=e[12],k}const pc="text-global-section-fg focus:bg-global-section/12 focus:text-global-section-fg dark:text-global-section-fg-dark dark:focus:bg-global-section/15 dark:focus:text-global-section-fg-dark [&_svg]:!text-global-section";function _a(v){return Array.from({length:v},(e,p)=>({id:crypto.randomUUID(),index:p}))}function Aa(v){return v.map((e,p)=>({...e,index:p}))}function hc(v,e){if(e===v.length)return v;if(e<v.length)return Aa(v.slice(0,e));const p=Array.from({length:e-v.length},(y,b)=>({id:crypto.randomUUID(),index:v.length+b}));return[...v,...p]}function Na(v){const e=jn.c(44),{section:p,raw:y,meta:b,decofile:V}=v,B=Rn(),w=Qn(),K=p.isSavedBlock===!0,k=p.isMultivariate===!0;let Q;e[0]!==b||e[1]!==y?(Q=y&&b?ec(y,b):void 0,e[0]=b,e[1]=y,e[2]=Q):Q=e[2];const ge=Q;let Ue;e[3]!==b||e[4]!==k||e[5]!==y||e[6]!==K?(Ue=y&&b&&!K&&!k?fc(y,b):void 0,e[3]=b,e[4]=k,e[5]=y,e[6]=K,e[7]=Ue):Ue=e[7];const Oe=Ue;let Ne;e[8]!==V||e[9]!==b||e[10]!==y||e[11]!==p?(Ne=Ii(y,p,V,b),e[8]=V,e[9]=b,e[10]=y,e[11]=p,e[12]=Ne):Ne=e[12];const oe=Ne;let R;e[13]!==k||e[14]!==y?.__resolveType?(R=!k&&Vs(y?.__resolveType??""),e[13]=k,e[14]=y?.__resolveType,e[15]=R):R=e[15];const c=R,xe=K?Jn:k?Va:Ta;let U;e[16]!==k||e[17]!==K?(U=K?{color:Yo}:k?{color:"oklch(0.65 0.15 160)"}:void 0,e[16]=k,e[17]=K,e[18]=U):U=e[18];const _e=U;let F;e[19]!==xe||e[20]!==w?(F=w?r.jsxs("span",{className:"relative size-4 shrink-0",children:[r.jsx(xe,{className:"absolute inset-0 size-4 text-muted-foreground transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"}),r.jsx(Oi,{"aria-hidden":!0,className:"absolute inset-0 size-4 opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100"})]}):r.jsx(ul,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[19]=xe,e[20]=w,e[21]=F):F=e[21];let ke;e[22]!==ge?(ke=ge&&r.jsx("img",{src:ge,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded-[var(--studio-control-radius,var(--radius))] object-cover"}),e[22]=ge,e[23]=ke):ke=e[23];let f;e[24]!==w||e[25]!==_e?(f=!w&&r.jsx(js,{className:"h-4 w-4 shrink-0",style:_e}),e[24]=w,e[25]=_e,e[26]=f):f=e[26];const ze=w?"shrink":"flex-1",u=p.isHidden&&"line-through opacity-50";let Re;e[27]!==u||e[28]!==ze?(Re=ae("min-w-0 truncate text-sm font-medium",ze,u),e[27]=u,e[28]=ze,e[29]=Re):Re=e[29];const X=Oe??p.label;let $e;e[30]!==Re||e[31]!==X?($e=r.jsx("span",{className:Re,children:X}),e[30]=Re,e[31]=X,e[32]=$e):$e=e[32];let rt;e[33]!==c||e[34]!==w||e[35]!==oe||e[36]!==B?(rt=w?r.jsxs(r.Fragment,{children:[c&&r.jsx(mc,{icon:Rs,label:B("sectionsEditor.sectionList.asyncBadge"),className:"text-muted-foreground"}),oe&&r.jsx(ea,{}),r.jsx("span",{className:"min-w-0 flex-1"})]}):oe&&r.jsx(ea,{className:"absolute -right-0.5 -top-0.5"}),e[33]=c,e[34]=w,e[35]=oe,e[36]=B,e[37]=rt):rt=e[37];let Ce;return e[38]!==$e||e[39]!==rt||e[40]!==F||e[41]!==ke||e[42]!==f?(Ce=r.jsxs(r.Fragment,{children:[F,ke,f,$e,rt]}),e[38]=$e,e[39]=rt,e[40]=F,e[41]=ke,e[42]=f,e[43]=Ce):Ce=e[43],Ce}const gc="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",vc="text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]";function Ca(v,e,p){if(p)return Li({selected:e});const y=v.isSavedBlock===!0,b=v.isMultivariate===!0;return ae("group relative flex select-none items-center gap-2 rounded-[var(--studio-control-radius,var(--radius-md))] px-2 py-2.5",e?"bg-accent text-accent-foreground":y?gc:b?vc:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function _s(v,e){return ae("h-7 shrink-0 overflow-hidden",e?"w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]":v?"w-7 ml-0 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:opacity-100 group-has-[:focus-visible]:opacity-100":"w-0 -ml-2 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:ml-0 group-hover:w-7 group-hover:opacity-100 group-hover:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms] group-has-[:focus-visible]:ml-0 group-has-[:focus-visible]:w-7 group-has-[:focus-visible]:opacity-100 group-has-[:focus-visible]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]")}function Sc(v){const e=jn.c(90),{section:p,raw:y,meta:b,decofile:V,sortableId:B,selected:w,onSelect:K,onDelete:k,onDuplicate:Q,onMakeReusable:ge,onToggleHidden:Ue,onToggleLazy:Oe,onAddVariant:Ne,onDetach:oe}=v,R=Rn(),c=Qn(),xe=y?Vs(y.__resolveType??""):!1,U=p.isHidden===!0,_e=xe||U;let F;e[0]!==p?(F=Ra(p),e[0]=p,e[1]=F):F=e[1];const ke=F,f=!!Oe&&!p.isMultivariate;let ze;e[2]!==B?(ze={id:B,animateLayoutChanges:xc},e[2]=B,e[3]=ze):ze=e[3];const{attributes:u,listeners:Re,setNodeRef:X,transform:$e,isDragging:rt}=Yl(ze);let Ce;e[4]!==$e?(Ce=ql.Transform.toString($e?{...$e,x:0}:null),e[4]=$e,e[5]=Ce):Ce=e[5];const at=rt?0:void 0;let Pe;e[6]!==Ce||e[7]!==at?(Pe={transform:Ce,opacity:at},e[6]=Ce,e[7]=at,e[8]=Pe):Pe=e[8];const _=Pe;let we;e[9]!==p?(we=Mi(p),e[9]=p,e[10]=we):we=e[10];const ot=we,it="button",m=0;let L;e[11]!==K?(L=T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),K())},e[11]=K,e[12]=L):L=e[12];const et=rt?"cursor-grabbing":"cursor-pointer";let A;e[13]!==c||e[14]!==p||e[15]!==w||e[16]!==et?(A=ae("touch-none transition-colors",et,Ca(p,w,c)),e[13]=c,e[14]=p,e[15]=w,e[16]=et,e[17]=A):A=e[17];let Ye;e[18]!==V||e[19]!==b||e[20]!==y||e[21]!==p?(Ye=r.jsx(Na,{section:p,raw:y,meta:b,decofile:V}),e[18]=V,e[19]=b,e[20]=y,e[21]=p,e[22]=Ye):Ye=e[22];const W=!c&&f&&r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"ghost",size:"icon","aria-label":R(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:ae(_s(_e,xe)),onClick:T=>{T.stopPropagation(),Oe?.()},onPointerDown:bc,children:r.jsx(Rs,{className:ae("h-3.5 w-3.5",xe&&"text-warning")})})}),r.jsx(Tt,{side:"bottom",children:R(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),lt=c?r.jsx(Bi,{label:R(U?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),active:U,onToggle:Ue,children:U?r.jsx(ga,{className:"h-3.5 w-3.5"}):r.jsx(va,{className:"h-3.5 w-3.5"})}):r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"ghost",size:"icon","aria-label":R(U?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),className:ae(_s(_e,U)),onClick:T=>{T.stopPropagation(),Ue()},onPointerDown:yc,children:U?r.jsx(ga,{className:"h-3.5 w-3.5"}):r.jsx(va,{className:"h-3.5 w-3.5"})})}),r.jsx(Tt,{side:"bottom",children:R(U?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection")})]}),fe=Uo,Ze=Di;let ve;e[23]!==R?(ve=R("sectionsEditor.sectionList.sectionActionsMenu"),e[23]=R,e[24]=ve):ve=e[24];const ct=ae(_s(_e,!1),"data-[state=open]:ml-0 data-[state=open]:w-7 data-[state=open]:opacity-100 data-[state=open]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]");let He;e[25]!==Ze||e[26]!==ve||e[27]!==ct?(He=r.jsx(Ze,{label:ve,classicClassName:ct}),e[25]=Ze,e[26]=ve,e[27]=ct,e[28]=He):He=e[28];let Ee;e[29]!==c||e[30]!==f||e[31]!==xe||e[32]!==Oe||e[33]!==R?(Ee=c&&f&&r.jsxs(r.Fragment,{children:[r.jsxs(rn,{onClick:T=>{T.stopPropagation(),Oe?.()},children:[r.jsx(Rs,{className:"h-4 w-4"}),R(xe?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")]}),r.jsx(Go,{})]}),e[29]=c,e[30]=f,e[31]=xe,e[32]=Oe,e[33]=R,e[34]=Ee):Ee=e[34];let Ke;e[35]!==Q?(Ke=T=>{T.stopPropagation(),Q()},e[35]=Q,e[36]=Ke):Ke=e[36];let tt;e[37]===Symbol.for("react.memo_cache_sentinel")?(tt=r.jsx(Il,{className:"h-4 w-4"}),e[37]=tt):tt=e[37];let Me;e[38]!==R?(Me=R("sectionsEditor.sectionList.duplicateMenuItem"),e[38]=R,e[39]=Me):Me=e[39];let Be;e[40]!==Ke||e[41]!==Me?(Be=r.jsxs(rn,{onClick:Ke,children:[tt,Me]}),e[40]=Ke,e[41]=Me,e[42]=Be):Be=e[42];let De;e[43]!==c||e[44]!==ke||e[45]!==Ne||e[46]!==R?(De=ke&&r.jsxs(rn,{className:ae(!c&&Fi),onClick:T=>{T.stopPropagation(),Ne()},children:[r.jsx(Va,{className:"h-4 w-4"}),R("sectionsEditor.sectionList.addVariantMenuItem")]}),e[43]=c,e[44]=ke,e[45]=Ne,e[46]=R,e[47]=De):De=e[47];let Y;e[48]!==c||e[49]!==ot||e[50]!==ge||e[51]!==R?(Y=ot&&r.jsxs(rn,{className:ae(!c&&pc),onClick:T=>{T.stopPropagation(),ge()},children:[c?r.jsx(Jn,{className:"h-4 w-4"}):r.jsx(js,{className:"h-4 w-4"}),R("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[48]=c,e[49]=ot,e[50]=ge,e[51]=R,e[52]=Y):Y=e[52];let Z;e[53]!==c||e[54]!==oe||e[55]!==p.isMultivariate||e[56]!==p.isSavedBlock||e[57]!==R?(Z=p.isSavedBlock===!0&&!p.isMultivariate&&r.jsxs(rn,{onClick:T=>{T.stopPropagation(),oe()},children:[c?r.jsx(Ta,{className:"h-4 w-4"}):r.jsx(js,{className:"h-4 w-4"}),R("sectionsEditor.sectionList.detachMenuItem")]}),e[53]=c,e[54]=oe,e[55]=p.isMultivariate,e[56]=p.isSavedBlock,e[57]=R,e[58]=Z):Z=e[58];let ee;e[59]!==k?(ee=T=>{T.stopPropagation(),k()},e[59]=k,e[60]=ee):ee=e[60];let O;e[61]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx(Ol,{className:"h-4 w-4"}),e[61]=O):O=e[61];let N;e[62]!==R?(N=R("sectionsEditor.sectionList.deleteMenuItem"),e[62]=R,e[63]=N):N=e[63];let me;e[64]!==ee||e[65]!==N?(me=r.jsxs(rn,{variant:"destructive",onClick:ee,children:[O,N]}),e[64]=ee,e[65]=N,e[66]=me):me=e[66];let We;e[67]!==Ee||e[68]!==Be||e[69]!==De||e[70]!==Y||e[71]!==Z||e[72]!==me?(We=r.jsxs(Zo,{align:"end",className:"w-44",children:[Ee,Be,De,Y,Z,me]}),e[67]=Ee,e[68]=Be,e[69]=De,e[70]=Y,e[71]=Z,e[72]=me,e[73]=We):We=e[73];let qe;e[74]!==fe||e[75]!==He||e[76]!==We?(qe=r.jsxs(fe,{children:[He,We]}),e[74]=fe,e[75]=He,e[76]=We,e[77]=qe):qe=e[77];let Je;return e[78]!==u||e[79]!==Re||e[80]!==K||e[81]!==X||e[82]!==_||e[83]!==A||e[84]!==Ye||e[85]!==W||e[86]!==lt||e[87]!==qe||e[88]!==L?(Je=r.jsxs("div",{ref:X,style:_,...u,...Re,role:it,tabIndex:m,onClick:K,onKeyDown:L,className:A,children:[Ye,W,lt,qe]}),e[78]=u,e[79]=Re,e[80]=K,e[81]=X,e[82]=_,e[83]=A,e[84]=Ye,e[85]=W,e[86]=lt,e[87]=qe,e[88]=L,e[89]=Je):Je=e[89],Je}function yc(v){return v.stopPropagation()}function bc(v){return v.stopPropagation()}function xc(){return!1}function Es(v){const e=jn.c(11),{canAddSection:p,onAddSection:y,className:b,size:V}=v,B=Rn();let w;e[0]!==b?(w=ae("w-full",b),e[0]=b,e[1]=w):w=e[1];const K=!p;let k;e[2]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(Ll,{size:14}),e[2]=k):k=e[2];let Q;e[3]!==B?(Q=B("sectionsEditor.sectionList.addSectionButton"),e[3]=B,e[4]=Q):Q=e[4];let ge;return e[5]!==y||e[6]!==V||e[7]!==w||e[8]!==K||e[9]!==Q?(ge=r.jsxs(Ut,{type:"button",variant:"outline",size:V,className:w,disabled:K,onClick:y,children:[k,Q]}),e[5]=y,e[6]=V,e[7]=w,e[8]=K,e[9]=Q,e[10]=ge):ge=e[10],ge}function _c(v){const e=jn.c(101),{listKey:p,rawSections:y,sections:b,meta:V,decofile:B,selectedIndex:w,onSelect:K,onReorder:k,onDelete:Q,onDuplicate:ge,onMakeReusable:Ue,onToggleHidden:Oe,onToggleLazy:Ne,onAddVariant:oe,onDetach:R,onAddSection:c,canAddSection:xe}=v,U=xe===void 0?!0:xe,_e=Rn(),F=Qn();let ke;e[0]!==b.length?(ke=()=>_a(b.length),e[0]=b.length,e[1]=ke):ke=e[1];const[f,ze]=S.useState(ke),[u,Re]=S.useState(null),[X,$e]=S.useState(p),[rt,Ce]=S.useState(b.length),at=S.useRef(!1);X!==p?($e(p),Ce(b.length),ze(_a(b.length))):rt!==b.length&&(Ce(b.length),ze(Fe=>hc(Fe,b.length)));let Pe;e[2]===Symbol.for("react.memo_cache_sentinel")?(Pe={activationConstraint:{distance:8}},e[2]=Pe):Pe=e[2];let _;e[3]===Symbol.for("react.memo_cache_sentinel")?(_={coordinateGetter:Zl},e[3]=_):_=e[3];const we=zl(Sa(Hl,Pe),Sa($l,_));let ot;e[4]!==f?(ot=f.map(kc),e[4]=f,e[5]=ot):ot=e[5];const it=ot;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=Fe=>{Re(String(Fe.active.id))},e[6]=m):m=e[6];const L=m;let et;e[7]!==it||e[8]!==k?(et=Fe=>{Re(null);const{active:G,over:ie}=Fe;if(!ie||G.id===ie.id)return;const Ve=it.indexOf(String(G.id)),Qe=it.indexOf(String(ie.id));Ve===-1||Qe===-1||(ze(nt=>Aa(Zn([...nt],Ve,Qe))),at.current=!0,requestAnimationFrame(()=>{at.current=!1}),k?.(Ve,Qe))},e[7]=it,e[8]=k,e[9]=et):et=e[9];const A=et;let Ye;e[10]===Symbol.for("react.memo_cache_sentinel")?(Ye=()=>{Re(null)},e[10]=Ye):Ye=e[10];const W=Ye;let lt,fe,Ze,ve,ct,He,Ee,Ke,tt,Me,Be,De,Y,Z,ee;if(e[11]!==u||e[12]!==U||e[13]!==F||e[14]!==B||e[15]!==f||e[16]!==it||e[17]!==A||e[18]!==V||e[19]!==c||e[20]!==oe||e[21]!==Q||e[22]!==R||e[23]!==ge||e[24]!==Ue||e[25]!==K||e[26]!==Oe||e[27]!==Ne||e[28]!==y||e[29]!==b||e[30]!==w||e[31]!==we||e[32]!==_e){Z=Symbol.for("react.early_return_sentinel");e:{const Fe=G=>{at.current||K(G)};if(e[48]!==u||e[49]!==U||e[50]!==F||e[51]!==f||e[52]!==c||e[53]!==y||e[54]!==b||e[55]!==_e){const G=u?f.find(ie=>ie.id===u):null;if(ve=G!=null?b[G.index]:null,Ze=G!=null?y[G.index]:void 0,f.length===0){let ie;e[59]!==_e?(ie=_e("sectionsEditor.sectionList.noSections"),e[59]=_e,e[60]=ie):ie=e[60];let Ve;e[61]!==ie?(Ve=r.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:ie}),e[61]=ie,e[62]=Ve):Ve=e[62];const Qe=Ve;let nt;e[63]!==U||e[64]!==F||e[65]!==Qe||e[66]!==c?(nt=F?Qe:r.jsxs("div",{className:"space-y-2",children:[Qe,r.jsx(Es,{canAddSection:U,onAddSection:c,size:"sm"})]}),e[63]=U,e[64]=F,e[65]=Qe,e[66]=c,e[67]=nt):nt=e[67],Z=nt;break e}Y=ae(G&&"cursor-grabbing"),e[48]=u,e[49]=U,e[50]=F,e[51]=f,e[52]=c,e[53]=y,e[54]=b,e[55]=_e,e[56]=Ze,e[57]=ve,e[58]=Y}else Ze=e[56],ve=e[57],Y=e[58];fe=Gl,Ke=we,tt=Ul,Me=L,Be=A,De=W,lt=Jl,He=it,Ee=Ql,ee="space-y-1",ct=f.map(G=>{const ie=b[G.index];return ie?r.jsx(Sc,{sortableId:G.id,section:ie,raw:y[G.index],meta:V,decofile:B,selected:w===G.index,onSelect:()=>Fe(G.index),onDelete:()=>Q(G.index),onDuplicate:()=>ge(G.index),onMakeReusable:()=>Ue(G.index),onToggleHidden:()=>Oe(G.index),onToggleLazy:Ne?()=>Ne(G.index):void 0,onAddVariant:()=>oe(G.index),onDetach:()=>R(G.index)},G.id):null})}e[11]=u,e[12]=U,e[13]=F,e[14]=B,e[15]=f,e[16]=it,e[17]=A,e[18]=V,e[19]=c,e[20]=oe,e[21]=Q,e[22]=R,e[23]=ge,e[24]=Ue,e[25]=K,e[26]=Oe,e[27]=Ne,e[28]=y,e[29]=b,e[30]=w,e[31]=we,e[32]=_e,e[33]=lt,e[34]=fe,e[35]=Ze,e[36]=ve,e[37]=ct,e[38]=He,e[39]=Ee,e[40]=Ke,e[41]=tt,e[42]=Me,e[43]=Be,e[44]=De,e[45]=Y,e[46]=Z,e[47]=ee}else lt=e[33],fe=e[34],Ze=e[35],ve=e[36],ct=e[37],He=e[38],Ee=e[39],Ke=e[40],tt=e[41],Me=e[42],Be=e[43],De=e[44],Y=e[45],Z=e[46],ee=e[47];if(Z!==Symbol.for("react.early_return_sentinel"))return Z;let O;e[68]!==ct||e[69]!==ee?(O=r.jsx("div",{className:ee,children:ct}),e[68]=ct,e[69]=ee,e[70]=O):O=e[70];let N;e[71]!==lt||e[72]!==He||e[73]!==Ee||e[74]!==O?(N=r.jsx(lt,{items:He,strategy:Ee,children:O}),e[71]=lt,e[72]=He,e[73]=Ee,e[74]=O,e[75]=N):N=e[75];let me;e[76]!==Ze||e[77]!==ve||e[78]!==F||e[79]!==B||e[80]!==V?(me=ve?r.jsx("div",{className:ae("cursor-grabbing shadow-lift",Ca(ve,!1,F)),children:r.jsx(Na,{section:ve,raw:Ze,meta:V,decofile:B})}):null,e[76]=Ze,e[77]=ve,e[78]=F,e[79]=B,e[80]=V,e[81]=me):me=e[81];let We;e[82]!==me?(We=qo.createPortal(r.jsx(Wl,{dropAnimation:Ki,children:me}),document.body),e[82]=me,e[83]=We):We=e[83];let qe;e[84]!==fe||e[85]!==Ke||e[86]!==tt||e[87]!==Me||e[88]!==Be||e[89]!==De||e[90]!==N||e[91]!==We?(qe=r.jsxs(fe,{sensors:Ke,collisionDetection:tt,onDragStart:Me,onDragEnd:Be,onDragCancel:De,children:[N,We]}),e[84]=fe,e[85]=Ke,e[86]=tt,e[87]=Me,e[88]=Be,e[89]=De,e[90]=N,e[91]=We,e[92]=qe):qe=e[92];let Je;e[93]!==U||e[94]!==F||e[95]!==c?(Je=!F&&r.jsx(Es,{canAddSection:U,onAddSection:c,size:"sm",className:"mt-2"}),e[93]=U,e[94]=F,e[95]=c,e[96]=Je):Je=e[96];let T;return e[97]!==Y||e[98]!==qe||e[99]!==Je?(T=r.jsxs("div",{className:Y,children:[qe,Je]}),e[97]=Y,e[98]=qe,e[99]=Je,e[100]=T):T=e[100],T}function kc(v){return v.id}function wc(v,e,p,y){if(!v||typeof v!="object")return{kind:"error",reason:"no-matcher-rule"};const b=e.trim();if(!b)return Gt(v,p,y)?{kind:"inline",blockKey:v.__resolveType??"",inlinedRule:ks(v,p,y)}:{kind:"noop"};const V=ws(v,p,y);if(!V)return{kind:"error",reason:"unreadable-rule"};if(V.blockKey)return{kind:"updateBlock",blockKey:V.blockKey,blockData:Dt(V.resolveType,V.data,b)};const B=Un(b),w=Yn(B,p);return w?{kind:"error",reason:"invalid-block-id",message:w}:{kind:"createBlock",blockId:B,blockData:Dt(V.resolveType,V.data,b),reference:ln(B)}}const ka="section-form-stale-save",jc=3;function wa(v,e,p){const y=e.global&&e.pageKey?[{label:"Default",sections:[{__resolveType:e.pageKey}]}]:Ea(e.pageKey?v[e.pageKey]?.sections:void 0,v,p),b=Math.max(0,Math.min(e.pageVariantIndex,y.length-1)),V=y[b]?.sections??[];return{pageVariants:y,variantIndex:b,rawSections:V,parsedSections:wn(V,v,p)}}const ja=new WeakMap;let Rc=0;function Ec(v){let e=ja.get(v);return e===void 0&&(e=++Rc,ja.set(v,e)),e}function mf({orgSlug:v,virtualMcpId:e,branch:p,previewReady:y=!0,previewUrl:b,currentPath:V,activePageBlockKey:B=null,activeGlobalBlockKey:w=null,externalSelection:K,onSaved:k,initialEditSeo:Q=!1,onExitSeo:ge,onSelectRoot:Ue,onViewJsonFile:Oe,onFocusedBlockChange:Ne,onVariantPreviewOverride:oe,focusVariant:R}){const c=Rn(),xe=Ci(),U=xe?.taskId??null,_e=y?{orgSlug:v,virtualMcpId:e,branch:p,threadId:U,previewUrl:b}:null,[F,ke]=S.useState([]),{data:f,isLoading:ze}=fl(_e,{pollWhile:F.length>0}),{data:u,isLoading:Re}=xl(_e),X=Qn(),$e=xe?.virtualMcpId,Ce=il($e===e?e:null)?.metadata?.siteSlug??null,at=tc({virtualMcpId:e,branch:p,sandboxUrl:b}),Pe=ml(e,p),_=pl(Pe),we=Si(_),ot=!_,it=!!at||_,[m,L]=S.useState(null),[et,A]=S.useState(null),[Ye,W]=S.useState(null),[lt,fe]=S.useState(0),[Ze,ve]=S.useState(void 0),[ct,He]=S.useState(null),[Ee,Ke]=S.useState(null);R&&R.seq!==ct&&(He(R.seq),Ke(R));const[tt,Me]=S.useState(null),Be={index:tt,remember:Me},[De,Y]=S.useState(null),[Z,ee]=S.useState(null),[O,N]=S.useState([]),me=S.useRef(null),[We,qe]=S.useState(O.length);We!==O.length&&(qe(O.length),requestAnimationFrame(()=>{me.current&&(me.current.scrollTop=0)}));const[Je,T]=S.useState(0),[Fe,G]=S.useState(null),[ie,Ve]=S.useState(null),[Qe,nt]=S.useState(null),[Pa,Yt]=S.useState(!1),[Ts,Xn]=S.useState(!1),En=S.useRef(null),[Vn,Ka]=S.useState(!0),[Zt,Tn]=S.useState(!1),[Ft,An]=S.useState(!1),[Te,cn]=S.useState(Q),[As,Ns]=S.useState(Q);Q&&!As&&(Ns(!0),cn(!0),L(null),A(null),W(null),N([])),!Q&&As&&Ns(!1);const[Ma,un]=S.useState(null),[Cs,Nn]=S.useState(void 0),[Ps,It]=S.useState([]),[Ks,Jt]=S.useState(0),[Ie,ut]=S.useState(0),[Ba,Le]=S.useState(null),[Qt,Ge]=S.useState(null),[Ms,Bs]=S.useState(null),Ds=Jo(),Fs=hl({orgSlug:v,virtualMcpId:e,branch:p},{tunnel:!1}),dn=zi({orgSlug:v,virtualMcpId:e,branch:p}),[Da,Fa]=S.useState(V),[Ia,La]=S.useState(B),[Oa,za]=S.useState(w);(Da!==V||Ia!==B||Oa!==w)&&(queueMicrotask(()=>dn.flush()),Fa(V),La(B),za(w),L(null),A(null),W(null),fe(0),Y(null),ee(null),ut(0),Le(null),Ge(null),N([]),T(t=>t+1),cn(!1),un(null),Nn(void 0),It([]),Jt(t=>t+1));const D=$i({orgSlug:v,virtualMcpId:e,branch:p}),fn=rl((t,n)=>{D.mutate({blockKey:t,data:n},{onSuccess:()=>k?.(),onError:D.reportError})}),Cn=Rl({orgSlug:v,virtualMcpId:e,branch:p}),Is=oc({orgSlug:v,virtualMcpId:e,branch:p}),[Xt,en]=S.useState(!1),C=S.useRef(null),wt=S.useRef(null),gt=S.useRef(null),vt=S.useRef(null),Pn=S.useRef({}),Lt=S.useRef(null),mn=S.useRef(!1),pn=S.useRef(!1),Se=S.useRef(new Map),tn=S.useRef(!1),xt=S.useRef([]),es=S.useRef(new WeakSet);gl(v,e,t=>{const{activePageKey:n,rawSections:s,parsedSections:a,selectedSectionIndex:o}=ne.current,i=new Set;n&&i.add(n);for(const l of[wt.current?.sectionIndex,o]){const d=l==null?void 0:s[l],E=l==null?void 0:a[l],h=d&&E?.isSavedBlock?Ss(d,E):null;h&&i.add(h)}if([...i].some(l=>t.has(l))){for(const l of[C,gt,vt])l.current&&clearTimeout(l.current),l.current=null;wt.current=null,Se.current.clear(),n&&t.has(n)&&(Pn.current={})}});const ne=S.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null}),[Ls,Os]=S.useState(0),[$a,Ha]=S.useState(0),zs=Qo(Pe,{orgSlug:v,virtualMcpId:e,branch:p}),$s=Xo(zs,F[0]?.blockKey??null,F[0]?ei(xn(F[0].plan.theirs)):null),[Wa,qa]=S.useState(null),ts=vl(v,e).epoch,[Ga,Ua]=S.useState(ts);if(!y||ze||Re)return r.jsx("div",{className:"h-full w-full flex items-center justify-center",children:r.jsx(ti,{className:"size-5 text-muted-foreground"})});if(!f||!u)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Ya=Vl(f,u),$=!!w,se=$?null:Tl(Ya,V,B),g=$?w:se?.key??null,Kn=$&&w?f[w]:void 0,Hs=$&&w&&Kn?Al(w,Kn):$&&w?w:"",Ot=!$&&g&&f[g]?f[g]:null,ns=Te&&f&&u&&g&&se?ta(f,{kind:"page",pageKey:g,pageName:String(se.name??""),path:String(se.path??"")},u):null,Za=Te?Ot?.seo:void 0,Mn=Cs!==void 0?Cs:Za,Ja=Te?Hi(Mn):void 0,Ws=ns?.seoTypeOptions??[],qs=Te&&u?Wi(u):"",ss=Ma??Ja??{},Bn=Te&&ns?sc(ss,ns):null,Gs=Te&&Bn&&qi(Mn)?Gn(Bn,u):null,Us=Te?Gi(f,u)?.seoData:void 0,le=$?[{label:"Default",sections:[{__resolveType:w}]}]:Ea(Ot?.sections,f??{},_),St=le.length>1,J=Math.min(lt,le.length-1),ye=le[J],M=ye?.sections??[],ce=wn(M,f,_),Dn=!$&&Nl(Ot?.sections,_);if($&&w&&Ms!==w){Bs(w);const t=M[0],n=ce[0];if(t&&n){L(0),ut(0),N([]);const s=Rt(t,n,f,_);s&&(A(s.data),W(s.resolveType),Ge(null),Le(null))}}!$&&Ms!==null&&Bs(null),ne.current={rawSections:M,parsedSections:ce,decofile:f??{},activePageKey:g,pageVariants:le,variantIndex:J,sectionVariantIndex:Ie,selectedSectionIndex:m};const Qa=()=>({multivariate:Dn,index:J,variants:le.map(t=>({rule:t.rule})),lazyValues:_&&Dn&&yi(Ot?.sections?.variants?.[J]?.value)}),rs=(t,n)=>{if(!oe)return;if(!g||!Dn||t.length<=1){oe(null);return}const s={multivariate:!0,index:n,variants:t},a=_?xa(g,s):ba(g,s,f,u);oe(a.length>0?a:null)},as=oe&&g&&Dn&&St&&!ze&&!Re?g:null;if(as!==Wa&&(qa(as),as)){const t=le.map(s=>({rule:s.rule})),n=J;queueMicrotask(()=>rs(t,n))}const zt=(t,n,s)=>{if(!oe)return;if(!g){oe(null);return}const a=Qa(),o=_?xa(g,a):ba(g,a,f,u);if(!t||n<0){oe(o.length>0?o:null);return}const i={pageKey:g,page:a,sectionIndex:n,sectionLazy:ce[n]?.isLazy??!1,mvObj:t,selectedVariantIndex:s},l=_?lc(i):ic({...i,decofile:f,meta:u}),d=_?cc(o,l):[...o,...l];oe(d.length>0?d:null)},_t=(t,n,s,a=m??-1,o=!1)=>{const i=st(t,n);if(!i){A(null),W(null),Ge(null),Le(null),o&&zt(null,a,s);return}const d=qr(i,we)[s];if(!d){A(null),W(null),Ge(null),Le(null),o&&zt(null,a,s);return}const E=ai(d.value,f);A(E?.data??null),W(E?.resolveType??null);const{resolveType:h,formValue:x}=qt(d.rule,f,u??void 0);Ge(h),Le(x),o&&zt(i,a,s)},hn=t=>{Ve(null),fe(t),L(null),A(null),W(null),N([]);const n=le[t]?.rule,{resolveType:s,formValue:a}=qt(n,f??{},u??void 0);ee(s),Y(a),rs(le.map(o=>({rule:o.rule})),t)},Ys=(t,n)=>{const s=M[t],a=ce[t];if(!s||!a)return!1;const o=a.isMultivariate?st(s,a)?.variants?.length??0:0,i=n<o?n:0;if(L(t),ut(i),N([]),T(l=>l+1),a.isMultivariate)_t(s,a,i,t);else{const l=Rt(s,a,f,_);l?(A(l.data),W(l.resolveType)):(A(null),W(null)),Ge(null),Le(null)}return!0},Zs=K?.index;if(K!==void 0&&(K?.seq??null)!==Ze&&(ve(K?.seq??null),typeof Zs=="number"&&Ys(Zs,0)),Ee&&($?Kn:Ot)){const t=Ee.pageVariant,n=!$&&t!==void 0&&t<le.length;if(n&&t!==J)hn(t);else{Ke(null);const{section:s,variant:a}=Ee;if($)a!==void 0&&(Me(a),N([]),T(o=>o+1));else if(s!==void 0&&Ys(s,a??0)){const o=M[s],i=ce[s],l=i.isMultivariate?st(o,i):null;l&&a!==void 0&&queueMicrotask(()=>zt(l,s,a))}else n&&hn(t)}}if(ts!==Ga){Ua(ts);const t=C.current!==null||Se.current.size>0||vt.current!==null||gt.current!==null||D.isPending||dn.isPending||F.length>0,n=m!==null&&Wr(me.current,document.activeElement);if(!t&&n&&(tn.current=!0),!t&&!n&&m!==null){const s=M[m],a=ce[m];if(N([]),T(o=>o+1),!s||!a)L(null),A(null),W(null);else if(a.isMultivariate)_t(s,a,Ie,m);else{const o=Rt(s,a,f,_);A(o?.data??null),W(o?.resolveType??null)}}!t&&Te&&(un(null),Nn(void 0),Jt(s=>s+1))}if(Ls!==$a){Ha(Ls);const t=m!==null?M[m]:null,n=m!==null?ce[m]:null;if(t&&n&&m!==null)if(N([]),T(s=>s+1),n.isMultivariate)_t(t,n,Ie,m);else{const s=Rt(t,n,f,_);A(s?.data??null),W(s?.resolveType??null)}}const dt=F[0];if(dt){const{formBase:t,target:n}=dt,s=wa(f,n,_),a=t.sectionIndex,o=s.rawSections.length===t.sectionCount?gs(s.rawSections[a],s.parsedSections[a],n.sectionVariantIndex,f,_):null,i=ni(dt,o,l=>Gr(t,l));if(i){const d=[{...dt,...i,changedAgain:!0},...F.slice(1)];xt.current=d,ke(d)}}const gn={orgSlug:v,virtualMcpId:e,branch:p,threadId:U,previewUrl:_?void 0:b??void 0,siteSlug:Ce},Fn=Ye&&u?Gn(Ye,u):null,ft=(t,n)=>{if(!g)return;C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear(),vt.current&&(clearTimeout(vt.current),vt.current=null),gt.current&&(clearTimeout(gt.current),gt.current=null);const s=an(f,g,t,J,le);D.mutate({blockKey:g,data:s},{onSuccess:()=>n?.onSuccess?.()??k?.(),onError:a=>{n?.onError?.(),D.reportError(a)}})},$t=()=>{Ne?.(null),L(null),An(!1),A(null),W(null),ut(0),Le(null),Ge(null),N([]),T(t=>t+1)},Js=()=>Wr(me.current,document.activeElement),os=(t=c("sectionsEditor.sectionsEditor.blockChangedElsewhere"))=>{if(C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear(),wt.current=null,q.error(t,{id:ka}),Js()){tn.current=!0;return}Os(n=>n+1)},Qs=()=>{!tn.current||Js()||xt.current.length>0||C.current!==null||mn.current||pn.current||Se.current.size>0||(tn.current=!1,Os(t=>t+1))},Xs=()=>{tn.current&&setTimeout(Qs,0)},er=t=>bl(Ds,Fs,t,Pe.kind==="protocol"?Pe:null),tr=t=>{Se.current.size!==0&&setTimeout(()=>{if(mn.current||pn.current)return;const n=[...Se.current.values()];Se.current.clear();for(const s of n)s()},t)},Xa=t=>{const{activePageKey:n,variantIndex:s,sectionVariantIndex:a}=ne.current,o=Lt.current;return{formBase:o?.sectionIndex===t&&o.variantIndex===a?o:null,pageKey:n,global:$,pageVariantIndex:s,sectionVariantIndex:a,schema:Fn}},vn=t=>{xt.current=t,ke(t)},eo=t=>{const n=xt.current,s=n.findIndex(i=>i.formBase===t.formBase),a=s>=0?n[s]:void 0,o=a?n.with(s,{...t,choices:Jr(a.plan,a.choices,t.plan),fresh:Vi(a.plan,t.plan,a.fresh),changedAgain:a.changedAgain||xn(a.plan.theirs)!==xn(t.plan.theirs)}):[...n,{...t,changedAgain:es.current.has(t.formBase)}];vn(o)},nr=(t,n)=>{const s=xt.current,a=s.findIndex(l=>l.formBase===t),o=s[a];if(!o)return!1;if(xn(o.plan.mine)===xn(n))return!0;const i=Zr({...o.plan,mine:n});if(i.pointers.length===0){const l=s.filter(d=>d!==o);return vn(l),!1}return vn(s.with(a,{...o,plan:i,choices:Jr(o.plan,o.choices,i)})),!0},to=t=>{const n=ne.current;return n.selectedSectionIndex===t.formBase.sectionIndex&&n.activePageKey===t.target.pageKey&&n.variantIndex===t.target.pageVariantIndex&&n.sectionVariantIndex===t.target.sectionVariantIndex},no=()=>{const t=xt.current[0];if(!t)return null;const{formBase:n,target:s}=t;C.current&&wt.current?.sectionIndex===n.sectionIndex&&wt.current.sectionVariantIndex===s.sectionVariantIndex&&(clearTimeout(C.current),C.current=null,wt.current=null),Se.current.delete(`${s.pageKey}:${n.sectionIndex}:${s.sectionVariantIndex}`);const a=n.emitted;return a&&typeof a=="object"&&!nr(n,a)&&Sn(a,n.sectionIndex,0,s),xt.current[0]??null},so=()=>{const t=xt.current[0],n=no();if(!n||!t||n.formBase!==t.formBase||n.plan.pointers.some(i=>!t.plan.pointers.includes(i)))return;const s=hi(n.plan,n.choices);Pe.kind==="protocol"&&Pe.source==="github"&&gi(n.plan,n.choices)&&Sl(c,!1),vn(xt.current.slice(1));const{formBase:a,target:o}=n;a.base=n.plan.theirs,a.version=void 0,a.emitted=s,es.current.add(a),(Lt.current===a||to(n))&&(Lt.current=a,A(s),T(i=>i+1)),Sn(s,a.sectionIndex,0,o)},ro=t=>{const[n,...s]=xt.current;n&&vn([{...n,choices:t},...s])},Sn=(t,n,s=0,a,o=!1)=>{const i=a??Xa(n),l=i.sectionVariantIndex,d=i.formBase,E=wt.current;C.current&&(clearTimeout(C.current),C.current=null,E&&(E.sectionIndex!==n||E.sectionVariantIndex!==l)&&E.write());const h=`${i.pageKey}:${n}:${l}`,x=()=>{if(mn.current||pn.current){Se.current.set(h,x);return}const j=typeof t=="function"?t():t;if(d&&nr(d,j))return;const I=ne.current.decofile,{rawSections:P,parsedSections:pe,pageVariants:ue,variantIndex:be}=wa(I,i,_),z=i.pageKey,H=P[n];if(!H)return;const re=pe[n];if(!re)return;const he=d?.base,Ae=gs(H,re,l,I,_),sn=!!he&&!!Ae&&xi(he,Ae)&&!(d&&Gr(d,Ae));if(sn&&he&&Ae){if(_i(he,Ae)){os(c("sectionsEditor.sectionsEditor.sectionReplacedElsewhere"));return}const te=re.isSavedBlock?"here":ki(he,P.map((de,ht)=>gs(de,pe[ht],l,I,_)),n,d?.sectionCount??P.length);if(te==="unknown"){os(c("sectionsEditor.sectionsEditor.sectionReplacedElsewhere"));return}if(typeof te=="number"&&d){d.sectionCount=P.length,d.sectionIndex=te,Lt.current===d&&L(te),Sn(j,te,s,i);return}}const pt=sn&&he&&Ae?Zr({ancestor:he,mine:j,theirs:Ae}):null;if(pt&&pt.pointers.length>0&&d){d.sectionCount=P.length,eo({plan:pt,formBase:d,target:i,sectionIndex:n,choices:wi(pt),changedAgain:!1,blockKey:re.isSavedBlock?Ss(H,re):z,fresh:{}});return}const Xe=pt?pt.merged:null,Pt=Xe??j,zr=ji({merged:!!Xe,tracked:d,current:Lt.current,saved:j});Xe&&q.info(c("sectionsEditor.sectionsEditor.blockMergedWithOthers"),{id:ka}),zr&&d&&(d.emitted=Xe,A(Xe));const hs=zr||!Xe?Pt:j;d&&(d.base=hs,d.sectionCount=P.length,Ri(d,hs));const $r={onSuccess:()=>{d&&es.current.delete(d),k?.()},onError:te=>{if(d?.base===hs&&he&&(d.base=he),te instanceof yl){if(d&&(d.version=void 0),s<jc){Se.current.delete(h),pn.current=!0;const de=Ti(s,te.carriedStored);setTimeout(()=>{pn.current=!1,Sn(()=>{const ht=d?.emitted;return ht&&typeof ht=="object"?ht:j},n,s+1,i,de.immediate),Se.current.delete(h),tr(_n)},de.delay)}else os();return}D.reportError(te)}},Hr=te=>{mn.current=!0;let de=!1;D.mutateAsync(te).then(()=>$r.onSuccess(),ht=>{de=!0,$r.onError(ht)}).finally(()=>{mn.current=!1,tr(de?_n:0),Qs()})};if(re.isSavedBlock){const te=Ss(H,re);if(!te)return;Hr({blockKey:te,data:Pt,...he?{base:{value:Xe?Ae:he}}:{},rebaseOnConflict:!1,guard:Xr({formBase:d,rebased:!!Xe,versionOf:er})});return}if(!z)return;const Hn={...I[z]},Wt=[...P];if(re.isMultivariate){const te=st(H,re);if(!te||!z)return;const de=Ei(te,l,Pt);Wt[n]=Kt(H,re,de)}else if(re.isHidden){const te=Vs(H.__resolveType),de=te?{...H.section}:{...H},ht=Array.isArray(de.variants)?[...de.variants]:[];ht[0]&&(ht[0]=Qr(de.__resolveType,ht[0],Pt)),de.variants=ht,te?Wt[n]={...H,section:de}:Wt[n]=de}else re.isLazy?Wt[n]={...H,section:Pt}:Wt[n]=Pt;if(ue.length>1){const te=Hn.sections,de=[...te?.variants??[]];de[be]&&(de[be]=Qr(te?.__resolveType,de[be],Wt)),Hn.sections={...te,variants:de}}else Hn.sections=Wt;Hr({blockKey:z,data:Hn,rebaseOnConflict:!1,guard:Xr({formBase:null,rebased:!1,versionOf:er})})};if(wt.current={sectionIndex:n,sectionVariantIndex:l,write:x},o){wt.current=null,x();return}C.current=setTimeout(()=>{C.current=null,x()},_n)},ao=t=>{tn.current=!1,L(t),ut(0),N([]),T(o=>o+1);const n=M[t],s=ce[t];if(Ne?.(s?.isSavedBlock?s.resolveType??null:null),!n||!s)return;if(s.isMultivariate){_t(n,s,0,t);return}const a=Rt(n,s,f,_);if(!a){A(null),W(null),Ge(null),Le(null),zt(null,t,0);return}A(a.data),W(a.resolveType),Ge(null),Le(null),zt(null,t,0)},sr=t=>{const n=t;m!==null&&(Lt.current=vi(Lt.current,{sectionIndex:m,variantIndex:ne.current.sectionVariantIndex,shown:et,next:n,sectionCount:ne.current.rawSections.length})),A(n),m!==null&&Sn(n,m)},is=t=>{if(!g||!f||!u||!se)return;const n={kind:"page",pageKey:g,pageName:String(se.name??""),path:String(se.path??"")},s=ta(f,n,u);s&&dn.save(g,()=>{const a=Ds.getQueryData(bi.decofile(Fs))?.[g];if(!a||typeof a!="object"||a===null||Array.isArray(a))return null;const o={...a,...Pn.current};return Pn.current={},t?.raw!==void 0?rc(o,t.raw,u):t?.inner!==void 0?ac(n,s,o,t.inner):o})},rr=(t,n)=>{g&&(Pn.current[t]=n,is())},oo=(t,n)=>{if(!g)return;const s=Zn([...M],t,n);m!==null&&(m===t?L(n):t<m&&n>=m?L(m-1):t>m&&n<=m&&L(m+1)),ft(s)},io=t=>{if(!g)return;const n=M.filter((s,a)=>a!==t);m===t?$t():m!==null&&m>t&&L(m-1),ft(n)},lo=t=>{if(!g)return;const n=M[t];if(!n)return;const s=[...M];s.splice(t+1,0,al(n)),m!==null&&m>t&&L(m+1),ft(s)},co=t=>{if(!g)return;const n=M[t],s=ce[t];if(!n||!s)return;const a=s.isHidden?fi(n,_):mi(n,u);if(!a)return;const o=[...M];o[t]=a,m===t&&$t(),ft(o)},uo=t=>{if(!g)return;const n=M[t],s=ce[t];if(!n||!s||s.isMultivariate)return;const a=di(n);if(!a)return;const o=[...M];o[t]=a,m===t&&$t(),ft(o)},fo=t=>{if(!g)return;const n=M[t],s=ce[t];if(!n||!s?.isSavedBlock)return;const a=Rt(n,s,f,_);if(!a?.data)return;const{name:o,...i}=a.data,l=[...M];s.isLazy?l[t]={...n,section:i}:l[t]=i,m===t&&$t(),ft(l)},mo=t=>{if(!g)return;const n=[...M,{__resolveType:t.resolveType}],s=n.length-1;ft(n,{onError:()=>{ne.current.selectedSectionIndex===s&&$t()}}),Yt(!1),L(s),ut(0),N([]),T(l=>l+1);const a=n[s],o=wn(n,f,_)[s];if(!a||!o)return;if(o.isMultivariate){_t(a,o,0);return}const i=Rt(a,o,f,_);if(!i){A(null),W(null),Ge(null),Le(null);return}A(i.data),W(i.resolveType),Ge(null),Le(null)},ar=t=>{En.current=t.append,Yt(!0)},po=t=>{const n=En.current;if(!n){mo(t);return}n({__resolveType:t.resolveType}),Yt(!1),En.current=null},or=t=>{if(m===null)return;const n=M[m],s=ce[m];!n||!s?.isMultivariate||(ut(t),N([]),T(a=>a+1),_t(n,s,t,m,!0))},ho=t=>{if(m===null||!g)return;const n=M[m],s=ce[m];if(!n||!s?.isMultivariate)return;const a=st(n,s);if(!a)return;const o=ci(a,t);if(!o){q.error(c("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const i=[...M];i[m]=Kt(n,s,o);const l=o.variants;let d=Ie;t===Ie?d=Math.min(t,l.length-1):t<Ie&&(d=Ie-1),ut(d),N([]),T(E=>E+1),_t(i[m],s,d),ft(i)},go=t=>{if(m===null||!g)return;const n=M[m],s=ce[m];if(!n||!s?.isMultivariate)return;const a=st(n,s);if(!a)return;const o=ui(a,t,_),i=[...M];i[m]=Kt(n,s,o);const l=Yr(a.variants??[],t,_);ut(l),N([]),T(d=>d+1),_t(i[m],s,l,m,_),ft(i)},vo=(t,n)=>{if(m===null||!g||t===n)return;const s=M[m],a=ce[m];if(!s||!a?.isMultivariate)return;const o=st(s,a);if(!o)return;const i=ii(o,t,n),l=[...M];l[m]=Kt(s,a,i);let d=Ie;Ie===t?d=n:t<Ie&&n>=Ie?d=Ie-1:t>Ie&&n<=Ie&&(d=Ie+1),ut(d),_t(l[m],a,d,m,_),ft(l)},yn=t=>{const n=t??m;if(n===null||!g)return;const s=M[n],a=ce[n];if(!s||!a)return;const o=oi(s,a,void 0,u,_);if(!o){q.error(c("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const i=[...M];i[n]=o.section;const l=wn(i,f,_)[n];if(!l?.isMultivariate){q.error(c("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}L(n),ut(o.newVariantIndex),N([]),T(d=>d+1),_t(o.section,l,o.newVariantIndex,n,_),ft(i)},ir=()=>{if(m===null||!g)return;const t=M[m],n=ce[m];if(!t||!n?.isMultivariate)return;const s=st(t,n);if(!s)return;const a=li(t,n,s);if(!a){q.error(c("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const o=[...M];o[m]=a;const i=wn(o,f,_)[m];if(!i)return;ut(0),Ge(null),Le(null),N([]),T(d=>d+1);const l=Rt(a,i,f,_);l?(A(l.data),W(l.resolveType)):(A(null),W(null)),zt(null,m,0),ft(o)},So=async t=>{if(Fe===null||!g)return;const n=Yn(t,f,u);if(n){q.error(n);return}const s=M[Fe],a=ce[Fe];if(!s||!a)return;const o=Rt(s,a,f,_);if(!o){q.error(c("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const i={...o.data,name:t};try{const l=await D.mutateAsync({blockKey:t,data:i,create:!0}),d=[...M];d[Fe]={__resolveType:t},await D.mutateAsync({blockKey:g,data:an(f,g,d,J,le)}),m===Fe&&$t(),G(null),qn(l)||q.success(c("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),k?.()}catch(l){q.error(c("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"),{description:Mt(c,Bt(l))})}},lr=ye?.rule;if(St&&m===null&&Z===null&&lr){const{resolveType:t,formValue:n}=qt(lr,f??{},u??void 0);ee(t),Y(n)}const nn=u?Ui(u):[],ls=u&&f?Yi(u,f):[],Ht=_&&u&&f?_l(u,f):[],cs=(t,n)=>{if(Ht.length===0)return;const s=Pl(t);return{kinds:Ht,selected:s,campaignPrefill:kl(t),onPick:n}},cr=!$&&!!(it&&u&&f),ur=Z&&u?Gn(Z,u):null,yt=()=>{gt.current&&(clearTimeout(gt.current),gt.current=null),vt.current&&(clearTimeout(vt.current),vt.current=null)},kt=async(t,n)=>{if(!(Dl(n,t,u)>0))try{await Cn.mutateAsync({blockKey:t})}catch(s){q.error(c("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"),{description:Mt(c,Bt(s))})}},dr=t=>{gt.current&&clearTimeout(gt.current),gt.current=setTimeout(()=>{const{activePageKey:n,decofile:s,variantIndex:a}=ne.current;if(!n)return;const o={...s[n]},i={...o.sections},l=[...i.variants??[]],d=l[a],E=d?.rule;if(Gt(E,s,u)){const h=E?.__resolveType??"",x=s[h],j=typeof x?.name=="string"?x.name:h,{__resolveType:I,...P}=t;D.mutate({blockKey:h,data:Dt(I??"",P,j)},{onSuccess:()=>k?.(),onError:D.reportError});return}d&&(l[a]={...d,rule:t}),o.sections={...i,variants:l},D.mutate({blockKey:n,data:o},{onSuccess:()=>k?.(),onError:D.reportError})},_n)},fr=t=>{ee(t);const n=t?ha(t,u):{__resolveType:Ur(u)};Y(t?n:{}),dr(n)},mr=t=>{const n=t;Y(n);const s=Z?{__resolveType:Z,...n}:{...n};dr(s)},In=async(t,n,s)=>{const a=wl(n,t);if(!a.ok)return a.reason==="conflict"&&q.info(t.kind==="experiments"?c("sectionsEditor.namedRulePicker.conflictTests"):c("sectionsEditor.namedRulePicker.conflictCampaigns"),ma),null;const o={};if(s){const i=s(a.rule);if(!i)return null;o[i.blockKey]=i.data}return a.blockWrite&&(o[a.blockWrite.blockKey]=a.blockWrite.block),Object.keys(o).length>0&&!(await Is.apply({writes:o})).ok?null:(a.blockWrite&&q.success(t.kind==="experiments"?c("sectionsEditor.namedRulePicker.createdTest",{name:t.name.trim()}):c("sectionsEditor.namedRulePicker.createdCampaign",{name:t.name.trim()}),{...ma,description:c("sectionsEditor.namedRulePicker.createdHint")}),{rule:a.rule,projected:{...n,...o}})},pr=Ht.length>0?{kinds:Ht,prepare:async t=>(await In(t,ne.current.decofile,void 0))?.rule??null,ensureBlock:async t=>{const n=Kl(ne.current.decofile,t);return n.kind==="saved"?!0:n.kind==="conflict"?!1:(await Is.apply({writes:{[Ml(t).blockKey]:n.block}})).ok}}:null,hr=async t=>{yt();const{activePageKey:n,decofile:s,variantIndex:a}=ne.current;if(!n)return;let o=null;const i=await In(t,s,E=>{const h=s[n],x=h?.sections;if(!x||typeof x!="object"||Array.isArray(x))return null;const j=x;if(!Array.isArray(j.variants))return null;const I=[...j.variants],P=I[a];return P?(o=bt(P.rule,s,u),I[a]={...P,rule:E},{blockKey:n,data:{...h,sections:{...j,variants:I}}}):null});if(!i)return;const{resolveType:l,formValue:d}=qt(i.rule,i.projected,u??void 0);ee(l),Y(d),o&&await kt(o,i.projected),k?.()},gr=async t=>{yt();const{activePageKey:n,decofile:s,variantIndex:a}=ne.current;if(!n)return;const o=s[n],i=o?.sections;if(!i||typeof i!="object"||Array.isArray(i))return;const l=i;if(!Array.isArray(l.variants))return;const d=[...l.variants],E=d[a];if(!E)return;const h=bt(E.rule,s,u),x=ln(t);d[a]={...E,rule:x};const j={...s,[n]:{...o,sections:{...l,variants:d}}},{resolveType:I,formValue:P}=qt(x,j,u??void 0);ee(I),Y(P);try{await D.mutateAsync({blockKey:n,data:j[n]}),h&&h!==t&&await kt(h,j),k?.()}catch(pe){q.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Mt(c,Bt(pe))})}},vr=t=>{vt.current&&clearTimeout(vt.current);const{selectedSectionIndex:n,sectionVariantIndex:s}=ne.current;n!==null&&(vt.current=setTimeout(()=>{const{rawSections:a,parsedSections:o,decofile:i,activePageKey:l,pageVariants:d,variantIndex:E}=ne.current;if(!l)return;const h=a[n],x=o[n];if(!h||!x?.isMultivariate)return;const j=st(h,x);if(!j)return;const P=(j.variants??[])[s]?.rule;if(Gt(P,i,u)){const z=P?.__resolveType??"",H=i[z],re=typeof H?.name=="string"?H.name:z,{__resolveType:he,...Ae}=t;D.mutate({blockKey:z,data:Dt(he??"",Ae,re)},{onSuccess:()=>k?.(),onError:D.reportError});return}const pe=vs(j,s,t),ue=[...a];ue[n]=Kt(h,x,pe);const be=an(i,l,ue,E,d);D.mutate({blockKey:l,data:be},{onSuccess:()=>k?.(),onError:D.reportError})},_n))},yo=t=>{Ge(t);const n=t?ha(t,u):{__resolveType:Ur(u)};Le(t?n:{}),vr(n)},bo=t=>{const n=t;Le(n);const s=Qt?{__resolveType:Qt,...n}:{...n};vr(s)},xo=async t=>{yt();const{selectedSectionIndex:n,sectionVariantIndex:s,rawSections:a,parsedSections:o,decofile:i,activePageKey:l,pageVariants:d,variantIndex:E}=ne.current;if(n===null||!l)return;let h=null;const x=await In(t,i,P=>{const pe=a[n],ue=o[n];if(!pe||!ue?.isMultivariate)return null;const be=st(pe,ue);if(!be)return null;const z=be.variants??[];h=bt(z[s]?.rule,i,u);const H=[...a];return H[n]=Kt(pe,ue,vs(be,s,P)),{blockKey:l,data:an(i,l,H,E,d)}});if(!x)return;const{resolveType:j,formValue:I}=qt(x.rule,x.projected,u??void 0);Ge(j),Le(I),h&&await kt(h,x.projected),k?.()},_o=async t=>{yt();const{selectedSectionIndex:n,sectionVariantIndex:s,rawSections:a,parsedSections:o,decofile:i,activePageKey:l,pageVariants:d,variantIndex:E}=ne.current;if(n===null||!l)return;const h=a[n],x=o[n];if(!h||!x?.isMultivariate)return;const j=st(h,x);if(!j)return;const I=j.variants??[],P=bt(I[s]?.rule,i,u),pe=ln(t),ue=vs(j,s,pe),be=[...a];be[n]=Kt(h,x,ue);const z=an(i,l,be,E,d),H={...i,[l]:z},{resolveType:re,formValue:he}=qt(pe,H,u??void 0);Ge(re),Le(he);try{await D.mutateAsync({blockKey:l,data:z}),P&&P!==t&&await kt(P,H),k?.()}catch(Ae){q.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Mt(c,Bt(Ae))})}};if(!$&&!se)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.noPageFound",{currentPath:V})});if($&&!Kn)return r.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:c("sectionsEditor.sectionsEditor.globalBlockNotFound")});const je=m!==null?ce[m]??null:null,Sr=m!==null?M[m]:null,yr=Sr&&je?.isMultivariate?st(Sr,je):null,At=yr?qr(yr,we):[],Ln=Math.min(Ie,Math.max(At.length-1,0)),jt=At[Ln]??null,Nt=je?.isMultivariate===!0,us=m!==null&&je!==null,Ct=us&&(Nt||!!(Fn&&et)),ko=Ct&&!$&&je?.isSavedBlock===!0,mt=$||ko,br=$?Hs:je?.label??"",wo=Qt&&u?Gn(Qt,u):null,xr=(t,n)=>n&&X?`${t} · ${n}`:t,_r=je?je.variantOf??je.label:"",jo=(()=>{const t=Nt&&jt?jt.label:null;return t?X?[xr(_r,t)]:[je.label,t]:[je?.label??""]})(),ds=xr(se?.name??"",St?ye?.label:null),On=Ct&&(!$||O.length>0)?$?[Hs,...O]:[ds,...jo,...O]:[],kr=Te&&se?[se.name,"SEO",...Ps]:[],wr=c("sectionsEditor.pageVariantTabs.variantsLabel"),jr=Zt&&se?[se.name,wr]:Ft&&se&&je?[ds,_r,wr]:[],zn=jr.length>0?jr:kr.length>0?kr:mt?On.length>0?On:[br]:On.length>0?On:[ds],Rr=us&&!Nt&&!je?.isHidden&&!!g,Ro=mt||!$&&St&&!!ye||Rr,Eo=us&&!Nt&&!$&&O.length===0&&!!je&&Ra(je)&&!!g,Vo=X&&Ct&&!Ft&&Nt&&O.length===0&&!!jt,Er=X&&O.length>0?na(O[O.length-1]):null,To=O.length>1?na(O[O.length-2]):null,Vr=mt?br:Ct?je?.label??"":se?.name??"",Ao=Zt||Ft?c("sectionsEditor.pageVariantTabs.variantsLabel"):Te?c("sectionsEditor.panelSections.seo"):Er??Vr,Tr=Ft?je?.variantOf??je?.label??"":Zt||Te?se?.name??"":Er?To??Vr:mt?c("sectionsEditor.sectionsEditor.globalSectionSubtitle"):Ct?se?.name??"":se?.path??"",fs=!Zt&&!Ft&&!Te&&!Ct&&!mt,No=!X&&!Te&&!$&&Nt&&O.length===0,bn=()=>{if(!g)return;yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const t=f[g],n=Cl(t.sections,M,u,_);if(!n)return;const{sections:s,newVariantIndex:a}=n;D.mutate({blockKey:g,data:{...t,sections:s}},{onSuccess:()=>{fe(a),L(null),A(null),W(null),N([]),Y(null),ee(null)},onError:D.reportError})},$n=(t,n,s)=>{if(!g)return;yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const a=f[g],o=a.sections;if(!o||typeof o!="object"||Array.isArray(o))return;const i=o;if(!Array.isArray(i.variants))return;const l=t([...i.variants]);if(!l)return;const d=Bl(i,l),E={...f,[g]:{...a,sections:d}};D.mutate({blockKey:g,data:E[g]},{onSuccess:()=>{n?.();const h=typeof s=="string"?[s]:s??[];(async()=>{for(const x of h)await kt(x,E)})()},onError:D.reportError})},Ar=(t,n)=>{if(t===n)return;let s=J;J===t?s=n:t<J&&n>=J?s=J-1:t>J&&n<=J&&(s=J+1),fe(s);const a=Zn(le.map(o=>({rule:o.rule})),t,n);rs(a,s),$n(o=>Zn(o,t,n))},Nr=t=>{const n=le[t]?.rule,s=bt(n,f??{},u??void 0);$n(a=>a.length<=1?null:(a.splice(t,1),a),()=>{le.length-1===1?fe(0):t<J?fe(J-1):t===J&&fe(Math.max(0,t-1)),L(null),A(null),W(null),N([]),Y(null),ee(null)},s)},Co=()=>{const t=le.map((n,s)=>({variant:n,index:s})).filter(({variant:n})=>!pi(n.rule)).map(({variant:n})=>bt(n.rule,f??{},u??void 0)).filter(n=>!!n);$n(n=>{const s=Ai({variants:n}),a=n[s];return a?[{...a,rule:Ni(u)}]:null},()=>{fe(0),L(null),A(null),W(null),N([]),Y(null),ee(null),Tn(!1)},t)},Cr=t=>{let n=t+1;$n(s=>(n=Yr(s,t,_),Fl(s,t,_)),()=>{fe(n),L(null),A(null),W(null),N([]),Y(null),ee(null)})},Po=async(t,n)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const s=ne.current.activePageKey,a=ne.current.decofile;if(!s)return;const o=a[s],i=o.sections;if(!i||typeof i!="object"||Array.isArray(i))return;const l=i;if(!Array.isArray(l.variants))return;const d=[...l.variants],E=d[t];if(!E?.rule||typeof E.rule!="object"){q.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const h=E.rule,x=n.trim();en(!0);try{if(!x){if(!Gt(h,a,u)){Ve(null);return}const z=h.__resolveType??"";d[t]={...E,rule:ks(h,a,u)};const H={...a,[s]:{...o,sections:{...l,variants:d}}};await D.mutateAsync({blockKey:s,data:H[s]}),await kt(z,H),Ve(null),k?.();return}const j=ws(h,a,u);if(!j){q.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(j.blockKey){await D.mutateAsync({blockKey:j.blockKey,data:Dt(j.resolveType,j.data,x)}),Ve(null),k?.();return}const I=Un(x),P=Yn(I,a,u);if(P){q.error(P);return}const pe=Dt(j.resolveType,j.data,x);let ue=null,be=!1;try{const z=await D.mutateAsync({blockKey:I,data:pe,create:!0});be=qn(z),ue=be?null:I,d[t]={...E,rule:ln(I)},await D.mutateAsync({blockKey:s,data:{...o,sections:{...l,variants:d}}}),ue=null}catch(z){throw ue&&await Cn.mutateAsync({blockKey:ue}).catch(()=>{}),z}Ve(null),be||q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:x})),k?.()}catch(j){q.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Mt(c,Bt(j))})}finally{en(!1)}},Ko=async(t,n)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const{selectedSectionIndex:s,rawSections:a,parsedSections:o,decofile:i,activePageKey:l,pageVariants:d,variantIndex:E}=ne.current;if(s===null||!l)return;const h=a[s],x=o[s];if(!h||!x?.isMultivariate)return;const j=st(h,x);if(!j)return;const I=j.variants??[],P=I[t];if(!P?.rule||typeof P.rule!="object"){q.error(c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const pe=P.rule,ue=n.trim();en(!0);const be=async z=>{const H={...j,variants:z},re=[...a];re[s]=Kt(h,x,H);const he=an(i,l,re,E,d);return await D.mutateAsync({blockKey:l,data:he}),{...i,[l]:he}};try{if(!ue){if(!Gt(pe,i,u)){nt(null);return}const pt=pe.__resolveType??"",Xe=[...I];Xe[t]={...P,rule:ks(pe,i,u)};const Pt=await be(Xe);await kt(pt,Pt),nt(null),k?.();return}const z=ws(pe,i,u);if(!z){q.error(c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(z.blockKey){await D.mutateAsync({blockKey:z.blockKey,data:Dt(z.resolveType,z.data,ue)}),nt(null),k?.();return}const H=Un(ue),re=Yn(H,i,u);if(re){q.error(re);return}const he=Dt(z.resolveType,z.data,ue);let Ae=null,sn=!1;try{const pt=await D.mutateAsync({blockKey:H,data:he,create:!0});sn=qn(pt),Ae=sn?null:H;const Xe=[...I];Xe[t]={...P,rule:ln(H)},await be(Xe),Ae=null}catch(pt){throw Ae&&await Cn.mutateAsync({blockKey:Ae}).catch(()=>{}),pt}nt(null),sn||q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:ue})),k?.()}catch(z){q.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Mt(c,Bt(z))})}finally{en(!1)}},Pr=async(t,n,s)=>{A(s);try{await D.mutateAsync({blockKey:t,data:s})}catch(a){throw A(o=>o===s?n:o),a}},Mo={rename:async(t,n,s)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const{activePageKey:a,decofile:o}=ne.current;if(!a)return;const i=Array.isArray(t.variants)?[...t.variants]:[],l=i[n],d=l?.rule&&typeof l.rule=="object"?l.rule:void 0,E=async x=>{const j={...t,variants:x};return await Pr(a,t,j),{...o,[a]:j}},h=wc(d,s,o,u);if(h.kind!=="noop"){if(h.kind==="error"){q.error(h.reason==="no-matcher-rule"?c("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"):h.reason==="unreadable-rule"?c("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"):h.message??c("sectionsEditor.sectionsEditor.failedToRenameVariant"));return}en(!0);try{if(h.kind==="inline"){const I=[...i];I[n]={...l,rule:h.inlinedRule};const P=await E(I);await kt(h.blockKey,P),k?.();return}if(h.kind==="updateBlock"){await D.mutateAsync({blockKey:h.blockKey,data:h.blockData}),k?.();return}let x=null,j=!1;try{const I=await D.mutateAsync({blockKey:h.blockId,data:h.blockData,create:!0});j=qn(I),x=j?null:h.blockId;const P=[...i];P[n]={...l,rule:h.reference},await E(P),x=null}catch(I){throw x&&await Cn.mutateAsync({blockKey:x}).catch(()=>{}),I}j||q.success(c("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:s.trim()})),k?.()}catch(x){q.error(c("sectionsEditor.sectionsEditor.failedToRenameVariant"),{description:Mt(c,Bt(x))})}finally{en(!1)}}},selectGlobal:async(t,n,s)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const{activePageKey:a,decofile:o}=ne.current;if(!a)return;const i=Array.isArray(t.variants)?[...t.variants]:[],l=i[n];if(!l)return;const d=bt(l.rule,o,u);i[n]={...l,rule:ln(s)};const E={...t,variants:i},h={...o,[a]:E};try{await Pr(a,t,E),d&&d!==s&&await kt(d,h),k?.()}catch(x){q.error(c("sectionsEditor.sectionsEditor.couldNotApplySavedRule"),{description:Mt(c,Bt(x))})}},selectNamedRule:async(t,n,s)=>{yt(),C.current&&(clearTimeout(C.current),C.current=null),Se.current.clear();const{activePageKey:a,decofile:o}=ne.current;if(!a)return;let i=null,l=null;const d=await In(s,o,E=>{const h=Array.isArray(t.variants)?[...t.variants]:[],x=h[n];return x?(i=bt(x.rule,o,u),h[n]={...x,rule:E},l={...t,variants:h},{blockKey:a,data:l}):null});!d||!l||(A(l),i&&await kt(i,d.projected),k?.())}},Kr=()=>{$t()},Mr=t=>{un(t),is({inner:t})},Br=t=>{Nn(t),is({raw:t})},Dr=()=>{un(null),It([])},Fr=()=>Jt(t=>t+1),Ir=()=>{dn.flush(),cn(!1),un(null),Nn(void 0),It([]),Jt(t=>t+1),ge?.()},Bo=()=>{Tn(!1),An(!1),L(null),cn(!0)},Do=()=>{Te&&Ir(),L(null),Tn(!0)},Fo=()=>An(!0),ms=t=>{if(Zt&&t===0){Tn(!1);return}if(Ft&&t<2){An(!1),t===0&&L(null);return}if(Te){if(t===0){Ir();return}if(t===1){It([]),Jt(s=>s+1);return}It(Ps.slice(0,t-1)),Jt(s=>s+1);return}if($){N(O.slice(0,t)),T(s=>s+1);return}if(t===0){Kr();return}if(t===1){N([]),T(s=>s+1);return}const n=!X&&Nt&&jt?1:0;if(n===1&&t===2){N([]),T(s=>s+1);return}N(O.slice(0,t-1-n))},ps=zn.length>1?r.jsx("button",{type:"button",onClick:()=>ms(ol(zn.length,{isMultivariateSectionTop:No})),title:c("sectionsEditor.sectionsEditor.back"),"aria-label":c("sectionsEditor.sectionsEditor.back"),className:ae("shrink-0 inline-flex size-6 items-center justify-center rounded-[var(--studio-control-radius,var(--radius-md))] transition-colors",mt?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:r.jsx(dl,{className:"size-4"})}):null,Io=mt||Ct||Te?Ro&&r.jsxs("div",{className:ae("border-b px-3 py-2.5",mt&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[r.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[!$&&St&&ye&&r.jsxs("button",{type:"button",onClick:Kr,title:c("sectionsEditor.sectionsEditor.editingInVariant",{variant:ye.label}),className:ae("shrink-0 inline-flex items-center gap-1 rounded-lg h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",Ji),children:[r.jsx(Zi,{rule:xs(ye.rule,f??{},u??void 0),matchers:nn}),r.jsx("span",{className:"max-w-[160px] truncate",children:ye.label})]}),r.jsx("div",{className:"flex-1"}),mt&&r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx("span",{className:"shrink-0 cursor-help",children:r.jsx(Jn,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),r.jsx(Tt,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Rr&&r.jsx(Wn,{onClick:()=>yn()})]}),mt&&r.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:c("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):r.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[r.jsx("div",{className:"flex-1 min-w-0",children:r.jsx(sa,{pageKey:g,initialName:se.name,initialPath:se.path,onFieldChange:rr,variant:"header"})}),r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"ghost",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"shrink-0",onClick:()=>cn(!0),children:r.jsx(da,{size:14})})}),r.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"ghost",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"shrink-0",onClick:()=>Oe&&g?Oe():Xn(!0),children:r.jsx(fa,{size:14})})}),r.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]}),r.jsx(Wn,{onClick:bn})]}),Lo=r.jsxs(r.Fragment,{children:[St&&g&&r.jsx(ra,{listKey:g,variants:le,activeIndex:J,decofile:f??{},meta:u,matchers:nn,onSelect:hn,onReorder:Ar,onRename:Ve,onDuplicate:Cr,onDelete:Nr,onAdd:bn}),St&&Z!==null&&r.jsx(aa,{className:"mt-3",children:r.jsx("div",{className:ae("space-y-3",Xt&&"pointer-events-none opacity-50"),children:r.jsx(ys,{currentRt:Z,currentLabel:kn(ye?.rule,f??{},we,u??void 0),currentGlobalKey:bt(ye?.rule,f??{},u??void 0)??void 0,matchers:nn,globals:ls,onSelect:fr,onSelectGlobal:gr,named:cs(ye?.rule,hr),namedRow:bs(ye?.rule,Ht),rule:ye?.rule,schema:ur,formValue:De,onChange:mr,formKey:`${J}:${Z??""}`,formWrapperClassName:"space-y-3",meta:u??void 0,decofile:f,onSaveReferencedBlock:fn,sandbox:gn})})})]}),Lr=r.jsxs(r.Fragment,{children:[r.jsx(Qi,{listKey:`${g??""}:${m??""}`,variants:At.map((t,n)=>({index:n,label:t.label})),selectedIndex:Ln,onSelect:or,onRename:nt,onDuplicate:go,onDelete:ho,onRemoveAll:ir,onReorder:vo,onAdd:()=>yn()}),r.jsx(aa,{children:r.jsx(ys,{currentRt:Qt??"",currentLabel:kn(jt?.rule,f??{},we,u??void 0),currentGlobalKey:bt(jt?.rule,f??{},u??void 0)??void 0,matchers:nn,globals:ls,onSelect:yo,onSelectGlobal:_o,named:cs(jt?.rule,xo),namedRow:bs(jt?.rule,Ht),rule:jt?.rule,schema:wo,formValue:Ba,onChange:bo,formKey:`${m??"none"}:${Ln}:${Qt??""}`,formWrapperClassName:"pt-1",meta:u??void 0,decofile:f,onSaveReferencedBlock:fn,sandbox:gn})})]}),Or=r.jsx("div",{className:ae(X?"px-2":"p-2 pt-3"),children:r.jsx(_c,{listKey:`${g??""}-${J}`,rawSections:M,sections:ce,meta:u,decofile:f,selectedIndex:m,onSelect:ao,onReorder:oo,onDelete:io,onDuplicate:lo,onMakeReusable:G,onToggleHidden:co,onToggleLazy:ot?uo:void 0,onAddVariant:yn,onDetach:fo,onAddSection:()=>Yt(!0),canAddSection:cr})}),Oo=r.jsxs("div",{className:"min-w-0 max-w-full space-y-4 overflow-x-hidden px-3",children:[g&&se&&r.jsx(sa,{pageKey:g,initialName:se.name,initialPath:se.path,onFieldChange:rr}),Ot&&g?r.jsx(ya,{rawSeo:Mn,innerSeo:ss,defaultResolveType:qs,seoTypesLoading:_&&!u,seoSchema:Gs,activeResolveType:Bn,seoTypeOptions:Ws,formResetKey:Ks,siteDefaultSeo:Us,onBreadcrumbChange:It,onPersistRaw:Br,onInnerChange:Mr,onClearForm:Dr,onBumpFormKey:Fr,asyncRenderAvailable:ot}):r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})]}),zo=r.jsx(on,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:r.jsx("div",{className:"mx-auto max-w-2xl",children:Ot&&g?r.jsx(ya,{rawSeo:Mn,innerSeo:ss,defaultResolveType:qs,seoTypesLoading:_&&!u,seoSchema:Gs,activeResolveType:Bn,seoTypeOptions:Ws,formResetKey:Ks,siteDefaultSeo:Us,onBreadcrumbChange:It,onPersistRaw:Br,onInnerChange:Mr,onClearForm:Dr,onBumpFormKey:Fr,asyncRenderAvailable:ot}):r.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:c("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"),$o=r.jsxs(on,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[St&&g&&r.jsx(ra,{listKey:g,variants:le,activeIndex:J,decofile:f??{},meta:u,matchers:nn,onSelect:hn,onReorder:Ar,onRename:Ve,onDuplicate:Cr,onDelete:Nr,onAdd:bn}),St&&Z!==null&&r.jsxs("div",{className:ae("px-3 border-b",Vn?"pt-3 pb-5 space-y-3":"py-2"),children:[r.jsxs("button",{type:"button",onClick:()=>Ka(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer rounded-[var(--studio-control-radius,var(--radius-sm))] py-0.5 hover:bg-accent","aria-expanded":Vn,children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c("sectionsEditor.sectionsEditor.variantRule")}),Vn?r.jsx(ll,{className:"size-3.5 shrink-0 text-muted-foreground"}):r.jsx(cl,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),Vn&&r.jsx("div",{className:ae("space-y-3",Xt&&"pointer-events-none opacity-50"),children:r.jsx(ys,{currentRt:Z,currentLabel:kn(ye?.rule,f??{},we,u??void 0),currentGlobalKey:bt(ye?.rule,f??{},u??void 0)??void 0,matchers:nn,globals:ls,onSelect:fr,onSelectGlobal:gr,named:cs(ye?.rule,hr),namedRow:bs(ye?.rule,Ht),rule:ye?.rule,schema:ur,formValue:De,onChange:mr,formKey:`${J}:${Z??""}`,formWrapperClassName:"space-y-3",meta:u??void 0,decofile:f,onSaveReferencedBlock:fn,sandbox:gn})})]}),Or]},"editor-section-list");return r.jsx(Xi,{value:_,children:r.jsx(el,{children:r.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[!X&&ps&&r.jsx("div",{className:"flex min-w-0 shrink-0 items-center gap-2 px-3 py-2",children:ps}),(X||zn.length>1)&&r.jsx(tl,{crumbs:zn,onSelect:ms,onSelectRoot:()=>{dn.flush(),Ue?Ue():ms(0)}}),r.jsx("div",{className:"shrink-0",children:X?r.jsxs("div",{className:ae("flex items-center gap-2 border-b px-3 py-2.5",mt&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[X&&ps,mt&&r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx("span",{className:"shrink-0 cursor-help",children:r.jsx(Jn,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),r.jsx(Tt,{side:"bottom",className:"max-w-[260px]",children:c("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),r.jsxs("div",{className:"flex min-w-0 flex-1 flex-col leading-tight",children:[r.jsx("span",{className:"truncate text-sm font-semibold",children:Ao}),Tr&&r.jsx("span",{className:"truncate text-xs text-muted-foreground",children:Tr})]}),fs&&St&&ye&&r.jsx(oa,{variants:le,activeIndex:J,onSelect:hn,onManage:Do,onRemoveAll:Co}),Vo&&r.jsx(oa,{variants:At,activeIndex:Ln,onSelect:or,onManage:Fo,onRemoveAll:ir}),fs&&!St&&r.jsx(Wn,{onClick:bn}),Eo&&r.jsx(Wn,{onClick:()=>yn()}),r.jsx(nl,{}),fs&&r.jsxs(r.Fragment,{children:[r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"outline",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.editSeo"),className:"shrink-0",onClick:Bo,children:r.jsx(da,{size:14})})}),r.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.editSeo")})]}),!Oe&&r.jsxs(Et,{children:[r.jsx(Vt,{asChild:!0,children:r.jsx(Ut,{type:"button",variant:"outline",size:"icon-sm","aria-label":c("sectionsEditor.sectionsEditor.viewJson"),className:"shrink-0",onClick:()=>Xn(!0),children:r.jsx(fa,{size:14})})}),r.jsx(Tt,{side:"bottom",children:c("sectionsEditor.sectionsEditor.viewJson")})]})]})]}):Io}),dt&&r.jsx(si,{open:!0,fields:ri(dt.plan,dt.target.schema),choices:dt.choices,changedAgain:dt.changedAgain,author:$s??null,authorPending:$s===void 0,fieldsAsLabeled:zs!==null,fresh:dt.fresh,onChoose:(t,n)=>ro({...dt.choices,[t]:n}),onApply:so},Ec(dt.formBase)),Ft?r.jsx(ia,{onAdd:()=>yn(),children:Lr},"editor-section-variants"):Ct?r.jsxs(on,{viewportRef:me,onBlur:Xs,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[!X&&Nt&&At.length>0&&O.length===0&&Lr,r.jsx(pa,{value:pr,children:r.jsx(la,{value:$&&_?Be:null,children:r.jsx(ca,{activeSchema:Fn,formValue:et,formResetKey:Je,onFormChange:sr,onBreadcrumbChange:N,breadcrumbPath:O,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:u,decofile:f,onSaveReferencedBlock:fn,sandbox:gn,previewBaseUrl:at,onRequestAddSection:ar,onVariantMatcherOp:$?Mo:void 0})})})]},"editor-section-form"):$?r.jsx(on,{viewportRef:me,onBlur:Xs,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx(pa,{value:pr,children:r.jsx(la,{value:$&&_?Be:null,children:r.jsx(ca,{activeSchema:Fn,formValue:et,formResetKey:Je,onFormChange:sr,onBreadcrumbChange:N,breadcrumbPath:O,emptyMessage:c("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:u,decofile:f,onSaveReferencedBlock:fn,sandbox:gn,previewBaseUrl:at,onRequestAddSection:ar})})})},"editor-global-block"):Te?X?r.jsx(on,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"p-3",children:Oo})},"editor-seo"):zo:Zt?r.jsx(ia,{onAdd:bn,children:Lo},"editor-variants"):X?r.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[r.jsx(on,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:r.jsx("div",{className:"py-2",children:Or})}),r.jsx("div",{className:"shrink-0 border-t p-2",children:r.jsx(Es,{canAddSection:cr,onAddSection:()=>Yt(!0)})})]},"editor-section-list"):$o,r.jsx(sl,{open:Fe!==null,onOpenChange:t=>{t||G(null)},defaultBlockId:Fe!==null?Un(ce[Fe]?.label??""):"",isPending:D.isPending,onSubmit:So}),it&&r.jsx(nc,{open:Pa,onOpenChange:t=>{Yt(t),t||(En.current=null)},meta:u,decofile:f,previewBaseUrl:at,onSelect:po}),Ts&&g&&f&&r.jsx(El,{open:Ts,onOpenChange:Xn,pageKey:g,decofile:f}),ie!==null&&r.jsx(ua,{open:!0,initialName:Gt(le[ie]?.rule,f??{},u??void 0)?kn(le[ie]?.rule,f??{},we,u??void 0):"",autoLabel:we(xs(le[ie]?.rule,f??{},u??void 0)),isPending:Xt,onSubmit:async t=>{await Po(ie,t)},onOpenChange:t=>{!t&&!Xt&&Ve(null)}}),Qe!==null&&r.jsx(ua,{open:!0,initialName:Gt(At[Qe]?.rule,f??{},u??void 0)?kn(At[Qe]?.rule,f??{},we,u??void 0):"",autoLabel:we(xs(At[Qe]?.rule,f??{},u??void 0)),isPending:Xt,onSubmit:async t=>{await Ko(Qe,t)},onOpenChange:t=>{!t&&!Xt&&nt(null)}})]})})})}export{mf as SectionsEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,j as o}from"./index-Cw6ilRLN.js";import{V as a}from"./index-AhdOdumU.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,r as g,j as n,H as F,$ as G,a0 as H,a as E,k as P,b as O,n as y,L as M}from"./index-Cw6ilRLN.js";import{C as V}from"./chat-context-DR3uLV2w.js";import{C as x}from"./index-ZjFFuBzo.js";import{L}from"./index-KnmovUVi.js";import{B as K}from"./blocks-preview-workspace-context-Bhzld3G9.js";import{e as T,p as W,s as J,a as U,r as z,T as $,u as R,b as q}from"./site-editor-toast-MdEv_oKc.js";import{u as Q,L as B,P as X,S as Y}from"./preview-tab-EJWXb_JS.js";import{C as Z}from"./content-tab-DruH5Km_.js";import{T as tt}from"./tab-icon-glyph-pt4s2Grb.js";import{r as ot}from"./resolve-tab-icon-CguQjH43.js";import et from"./agent-site-editor-BxGyQ1GG.js";import"./use-panel-navigate-DzWclIwL.js";import"./thread-route-BZQyZ1gL.js";import"./use-project-scope-Bq5GrrDd.js";import"./repository-binding-PeMGXqSl.js";import"./use-mcp-client-CvhC1TIJ.js";import"./auth-DPUc_dnx.js";import"./autosend-Bw00xJf9.js";import"./thread-intent-CAWCzeoG.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BxinXtVa.js";import"./task-board-DSKYQnUa.js";import"./schema-CB30E7Gi.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-C4tNpLNZ.js";import"./use-ai-providers-UYArMe6s.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-D7GIEyuu.js";import"./use-organization-settings-BFBXS4UG.js";import"./use-mobile-CKqq0hw6.js";import"./use-sidebar-collapsed-CC40xbK2.js";import"./use-chat-layout-state-uzyWoT7E.js";import"./agent-icon-rBB7-3Iv.js";import"./AlertCircle-Hdww5hle.js";import"./Tool01-DamUcObd.js";import"./ArrowUp-B0V8Iire.js";import"./ArrowLeft-BdhX_ELF.js";import"./LinkBroken01-DiqXlFxy.js";import"./ShoppingBag01-Dt2W1jQn.js";import"./ZoomOut-C8TxwIPG.js";import"./Building02-CIOqUK8u.js";import"./CheckCircle-Oy-r5wrn.js";import"./ChevronUp-yEhXqYsc.js";import"./ChevronSelectorVertical-4o-RZGZG.js";import"./UserSquare-TWw3zsr7.js";import"./Copy01-DZu9JdFR.js";import"./CreditCard01-e2iuA4b6.js";import"./DotsVertical-2jz8M_Ab.js";import"./Image01-Csw8Eb7F.js";import"./Globe04-Dv-Q1UFe.js";import"./SwitchHorizontal01-ZVZ1PW_K.js";import"./Key01-nj-094nh.js";import"./Link01-DIQIHWyZ.js";import"./Minus-DGpW2R_Y.js";import"./Monitor01-6lmVgqwN.js";import"./Sun-BCEy54hJ.js";import"./Play-Bw1hrhzw.js";import"./Plus-BQ-ZwSoF.js";import"./SearchMd-CcFldd9q.js";import"./Trash01-CA_m_Fs0.js";import"./Upload01-COlXo8Rs.js";import"./Users01-CqKKJKeH.js";import"./XClose-BLrzcEcC.js";import"./Zap-CbyRjfWs.js";import"./tooltip-g1j6c67B.js";import"./index-nea5NUvS.js";import"./toolbar-icon-button-as98rium.js";import"./shell-layout-CdKs-SVX.js";import"./use-deployment-admin-DVUkJw7-.js";import"./admin-fetch-BhTJlAsX.js";import"./use-clock-tick-Bbl4jizB.js";import"./command-CermhoTd.js";import"./index-DiqyTQYB.js";import"./integration-icon-BvuUEHwl.js";import"./project-icon-BRvDYuEF.js";import"./new-project-dialog-4twV8Y4C.js";import"./label-DvonkoXD.js";import"./repository-import-picker-BMJ3biNs.js";import"./use-navigate-to-agent-X54xBbs-.js";import"./repository-picker-XiErYA7B.js";import"./github-icon-CfOxQ_kk.js";import"./useInfiniteQuery-qZeYk4so.js";import"./infiniteQueryObserver-r2g3Rufl.js";import"./collection-search-2lwiZ_Gf.js";import"./use-debounced-value-Cg3pn3hJ.js";import"./required-auth-layout-DsfiOlyN.js";import"./use-org-sso-1YltyqLi.js";import"./sheet-CLT2kz10.js";import"./resizable-XQP8BK4_.js";import"./core.esm-Dennsttt.js";import"./sortable.esm-CIFqofWL.js";import"./context-menu-Biz9RPI-.js";import"./create-organization-dialog-wSFwPaJG.js";import"./form-RFg7ydwN.js";import"./project-apps-CbCNo3Qh.js";import"./use-recent-apps-DBlZNiUD.js";import"./use-session-runtime-C29BLCO5.js";import"./experiments-tab-choice-B1sDnY5T.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-CFwQd3Dj.js";import"./use-sandbox-events-vz4ehPML.js";import"./sandbox-git-api-DcqI6XE4.js";import"./held-block-view-B1ZTgtaf.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BwKW0A4I.js";import"./collapsible-BHetx99z.js";import"./use-copy-Dk3cEiBB.js";import"./usage-stats-CO_PzmjR.js";import"./tool-namespace-COirY7s5.js";import"./utils-CVEq3hMx.js";import"./markdown-Bnq_rauO.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D9bP7Uyj.js";import"./types-C_kLVB_R.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-connection-BeEdNRHa.js";import"./use-mcp-prompts-BWsIl6wX.js";import"./use-thread-outputs-DsSeydeQ.js";import"./file-type-icon-BkRHeWVz.js";import"./section-array-field-CowajgIO.js";import"./alert-Bg73iQHm.js";import"./parse-sections-C3Hmwt0I.js";import"./blocks-tab-states-Bujj2Oag.js";import"./slider-BOLJxYF2.js";import"./index-CuP8z21G.js";import"./index-BdQq_4o_.js";import"./tooltipContext-CLvPoHx0.js";import"./CategoricalChart-B7pVoKsa.js";import"./index-GbZ7cHim.js";import"./ActiveShapeUtils-CTNIR1uo.js";import"./Sector-Lv3mbSoh.js";import"./symbol-Femlxd_m.js";import"./empty-state-DhRsvQHO.js";import"./switch-D45dHrK3.js";import"./textarea-B3VJ1IVc.js";import"./popover-N-Tbv2Q_.js";import"./scroll-area-BhjyScQp.js";import"./monaco-editor-DP1-rJ0v.js";import"./editor-CJ37wKUc.js";import"./calendar-BRFOK1aQ.js";import"./select-IRnWfSEI.js";import"./editor-classes-yEQ_KPvG.js";import"./toggle-group-BtOmVjMF.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-CMpxb7Mm.js";import"./search-input-CnMfC6Ib.js";import"./tabs-DBG72Yee.js";import"./use-file-configs-C8WLQuJ_.js";import"./asset-utils-BrDvPrYv.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-lifecycle-context-DB7MI-hA.js";import"./variant-matcher-override-KA8G6wne.js";import"./variant-draft-pointer-BeAKcq_c.js";import"./section-preview-url-7zfngvgW.js";import"./use-fast-preview-draft-url-C2yv-JdA.js";import"./preview-link-C762yHOt.js";import"./useQueries-BxilFdP8.js";import"./device-hint-SeLRi17j.js";import"./virtual-mcp-CJAqxDe2.js";import"./url-slug-DFbBJdJJ.js";import"./app-preview-url-9Od4s8Sz.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-RAKFvADU.js";import"./view-header-D4T3g6Y4.js";import"./use-cms-publish-actions-Oa0EZQ0t.js";import"./hosted-publish-feedback-CaaC9Yio.js";import"./mustache-nJjvu1VV.js";import"./checkbox-b8t24adl.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-D5l0lx5X.js";import"./badge-BWAFo8iB.js";import"./empty-state-DXBACaDC.js";import"./collection-table-wrapper-TIbTouTp.js";import"./table-Daq1_j7m.js";import"./site-draft-actions-K5CCMVX6.js";import"./separator-AD4s_4vt.js";import"./use-releases-Dth9LHEU.js";import"./serial-task-queue-CGOeQgpr.js";import"./index-CaPLCDO_.js";import"./drawer-CuUzaTfw.js";import"./input-BiNlRIkN.js";import"./icon-button-DUX8uev-.js";import"./chat-draft-CKNXk7gm.js";import"./use-deco-credits-C5r8tKZH.js";import"./index-DF_kVaV9.js";import"./ai-providers-logos-DD3qZ33J.js";import"./input-B3t37gB5.js";import"./suggestion-tz-f65fQ.js";import"./use-org-fs-wk2PRaOo.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-CdkGt72v.js";import"./plan-ladder-DIPGMFy3.js";import"./add-connection-dialog-BVaDiahz.js";import"./extract-connection-data-DOpfeyzI.js";import"./metadata-D72DunRR.js";import"./connection-DrOf5a8e.js";import"./connection-card-CZBuUPP_.js";import"./connection-slug-CITJ0kGN.js";import"./schema-DGh8triY.js";import"./connection-form-helpers-D3sfjZA_.js";import"./authenticate-and-persist-oauth-RWTag1bK.js";import"./mcp-oauth-B1sQYgh4.js";import"./mcp-oauth-zW9MaFGn.js";import"./collection-tabs-DNvFQjqm.js";import"./use-infinite-scroll-dtUi5Sm6.js";import"./useSuspenseInfiniteQuery-CTPa_bH3.js";import"./use-task-board-events-BQ73Mjf5.js";import"./named-rule-uses-BHC4DlIQ.js";import"./save-changes-debug-nBi-n9eV.js";import"./releases-api-MmQe-HE4.js";function I(o){return o.kind==="unavailable"&&o.source==="local"&&(o.problem?.reason??"not-answering")==="not-answering"}const it=o=>o;function rt(o){const t=u.c(10),{candidates:e,invalidLink:c,shell:m,editor:i}=o,r=c===void 0?!1:c,s=m===void 0?it:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==e||t[5]!==r?(a=n.jsx(nt,{candidates:e,invalidLink:r,onConnect:l}),t[4]=e,t[5]=r,t[6]=a):a=t[6];let d;return t[7]!==s||t[8]!==a?(d=s(a),t[7]=s,t[8]=a,t[9]=d):d=t[9],d}function nt(o){const t=u.c(17),{candidates:e,invalidLink:c,onConnect:m}=o,i=c===void 0?!1:c,[r]=F(),{language:s}=r;let p;t[0]!==m?(p=D=>m({endpoint:D}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==e||t[3]!==p?(l={candidates:e,onFound:p},t[2]=e,t[3]=p,t[4]=l):l=t[4];const a=Q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==e||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(e.map(T)),t[5]=e,t[6]=s,t[7]=k):k=t[7];const C=k;let j;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(j=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=j):j=t[12];const _=j;let S;return t[13]!==C||t[14]!==i||t[15]!==_?(S=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=S):S=t[16],S}const v="deco-serve",w="working-tree",st={id:"",slug:"",name:"",logo:null},mt={id:v,slug:v},pt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function at(){const o=window.location.hash,t=new URLSearchParams(o.replace(/^#/,"")).has("endpoint"),e=t?W(o):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),e&&J(e),{candidates:U(e,z()),invalidLink:t&&!e}}const ct=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function lt(){const o=u.c(6),t=O();let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:dt},o[0]=e):e=o[0];const c=P(e);let m;o[1]!==t||o[2]!==c?(m=ct.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(M,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(tt,{icon:ot({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),o[1]=t,o[2]=c,o[3]=m):m=o[3];let i;return o[4]!==m?(i=n.jsx(y.Tabs,{children:m}),o[4]=m,o[5]=i):i=o[5],i}function dt(o){return o.matches.at(-1)?.staticData.siteEditorView}function N(o){const t=u.c(14),{children:e}=o,c=O(),{connection:m}=q(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==e||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=e;break t}if(i.kind!=="unavailable"||I(i)){s=n.jsx(Y,{headingLevel:2,waiting:!0,title:c("decoServe.connect.reaching",{host:r})});break t}}t[0]=i,t[1]=e,t[2]=m,t[3]=c,t[4]=r,t[5]=s}else r=t[4],s=t[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let p;t[6]!==i.problem?(p=i.problem??{reason:"not-answering"},t[6]=i.problem,t[7]=p):p=t[7];let l;t[8]!==r||t[9]!==p?(l={kind:"problem",problem:p,host:r},t[8]=r,t[9]=p,t[10]=l):l=t[10];let a;return t[11]!==r||t[12]!==l?(a=n.jsx(B,{wait:l,hosts:r}),t[11]=r,t[12]=l,t[13]=a):a=t[13],a}function ut(o){const t=u.c(6),{onLost:e}=o,c=R(v,w);let m;t[0]!==c?(m=I(c),t[0]=c,t[1]=m):m=t[1];const i=m;let r,s;return t[2]!==i||t[3]!==e?(r=()=>{i&&e()},s=[i,e],t[2]=i,t[3]=e,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const A={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ft(){const o=u.c(11),{data:t}=E.useSession();let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ht},o[0]=e):e=o[0];const c=P(e),m=!!t?.user;let i;o[1]!==m?(i={rail:m},o[1]=m,o[2]=i):i=o[2];const r=c??"preview";let s,p,l;o[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(lt,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(et,{}),o[3]=s,o[4]=p,o[5]=l):(s=o[3],p=o[4],l=o[5]);let a;o[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),o[6]=r,o[7]=a):a=o[7];let d;return o[8]!==i||o[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),o[8]=i,o[9]=a,o[10]=d):d=o[10],d}function ht(o){return o.matches.at(-1)?.staticData.siteEditorView}function vt(o){const t=u.c(8),{children:e}=o,{data:c}=E.useSession(),m=!!c?.user;let i;t[0]!==m?(i={rail:m},t[0]=m,t[1]=i):i=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(x.Thread,{children:null}),t[2]=r):r=t[2];let s;t[3]!==e?(s=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:e})]})}),t[3]=e,t[4]=s):s=t[4];let p;return t[5]!==i||t[6]!==s?(p=n.jsx(L,{outsideOrg:i,children:s}),t[5]=i,t[6]=s,t[7]=p):p=t[7],p}const b=()=>{},xt={connection:null,set:b,clear:b};function vr(){const o=u.c(3),[t]=g.useState(at);let e;return o[0]!==t.candidates||o[1]!==t.invalidLink?(e=n.jsx(G,{value:!0,children:n.jsx(H,{org:st,project:mt,children:n.jsx(rt,{candidates:t.candidates,invalidLink:t.invalidLink,shell:jt,editor:kt})})}),o[0]=t.candidates,o[1]=t.invalidLink,o[2]=e):e=o[2],e}function kt(o,t){return n.jsxs($.Provider,{value:{connection:o,set:b,clear:b},children:[n.jsx(ut,{onLost:t}),n.jsx(V,{value:pt,children:n.jsx(K,{children:n.jsx(ft,{})})})]})}function jt(o){return n.jsx($.Provider,{value:xt,children:n.jsx(vt,{children:o})})}function xr(){const o=u.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(X,{virtualMcpId:v})}),o[0]=t):t=o[0],t}function kr(){const o=u.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Z,{virtualMcpId:v})}),o[0]=t):t=o[0],t}export{kr as SiteEditorContent,xr as SiteEditorPreview,vr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,a4 as n,j as r,K as f}from"./index-Cw6ilRLN.js";import{C as d}from"./index-ZjFFuBzo.js";import{m as u,P as x,T as h}from"./mock-board-BShoWwXR.js";import{F as j}from"./feature-gate-FbVbvaij.js";import"./use-mobile-CKqq0hw6.js";import"./use-sidebar-collapsed-CC40xbK2.js";import"./use-chat-layout-state-uzyWoT7E.js";import"./thread-route-BZQyZ1gL.js";import"./use-panel-navigate-DzWclIwL.js";import"./use-project-scope-Bq5GrrDd.js";import"./repository-binding-PeMGXqSl.js";import"./use-mcp-client-CvhC1TIJ.js";import"./auth-DPUc_dnx.js";import"./thread-intent-CAWCzeoG.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BxinXtVa.js";import"./task-board-DSKYQnUa.js";import"./schema-CB30E7Gi.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-rBB7-3Iv.js";import"./AlertCircle-Hdww5hle.js";import"./Tool01-DamUcObd.js";import"./ArrowUp-B0V8Iire.js";import"./ArrowLeft-BdhX_ELF.js";import"./LinkBroken01-DiqXlFxy.js";import"./ShoppingBag01-Dt2W1jQn.js";import"./ZoomOut-C8TxwIPG.js";import"./Building02-CIOqUK8u.js";import"./CheckCircle-Oy-r5wrn.js";import"./ChevronUp-yEhXqYsc.js";import"./ChevronSelectorVertical-4o-RZGZG.js";import"./UserSquare-TWw3zsr7.js";import"./Copy01-DZu9JdFR.js";import"./CreditCard01-e2iuA4b6.js";import"./DotsVertical-2jz8M_Ab.js";import"./Image01-Csw8Eb7F.js";import"./Globe04-Dv-Q1UFe.js";import"./SwitchHorizontal01-ZVZ1PW_K.js";import"./Key01-nj-094nh.js";import"./Link01-DIQIHWyZ.js";import"./Minus-DGpW2R_Y.js";import"./Monitor01-6lmVgqwN.js";import"./Sun-BCEy54hJ.js";import"./Play-Bw1hrhzw.js";import"./Plus-BQ-ZwSoF.js";import"./SearchMd-CcFldd9q.js";import"./Trash01-CA_m_Fs0.js";import"./Upload01-COlXo8Rs.js";import"./Users01-CqKKJKeH.js";import"./XClose-BLrzcEcC.js";import"./Zap-CbyRjfWs.js";import"./tooltip-g1j6c67B.js";import"./index-nea5NUvS.js";import"./toolbar-icon-button-as98rium.js";import"./shell-layout-CdKs-SVX.js";import"./use-deployment-admin-DVUkJw7-.js";import"./admin-fetch-BhTJlAsX.js";import"./use-clock-tick-Bbl4jizB.js";import"./command-CermhoTd.js";import"./index-DiqyTQYB.js";import"./integration-icon-BvuUEHwl.js";import"./project-icon-BRvDYuEF.js";import"./new-project-dialog-4twV8Y4C.js";import"./label-DvonkoXD.js";import"./repository-import-picker-BMJ3biNs.js";import"./use-navigate-to-agent-X54xBbs-.js";import"./repository-picker-XiErYA7B.js";import"./github-icon-CfOxQ_kk.js";import"./useInfiniteQuery-qZeYk4so.js";import"./infiniteQueryObserver-r2g3Rufl.js";import"./collection-search-2lwiZ_Gf.js";import"./use-debounced-value-Cg3pn3hJ.js";import"./use-organization-settings-BFBXS4UG.js";import"./required-auth-layout-DsfiOlyN.js";import"./autosend-Bw00xJf9.js";import"./use-org-sso-1YltyqLi.js";import"./sheet-CLT2kz10.js";import"./resizable-XQP8BK4_.js";import"./core.esm-Dennsttt.js";import"./sortable.esm-CIFqofWL.js";import"./use-task-board-analytics-BTfxOx5Z.js";import"./combobox-CMpxb7Mm.js";import"./popover-N-Tbv2Q_.js";import"./usage-stats-CO_PzmjR.js";import"./tool-namespace-COirY7s5.js";import"./form-RFg7ydwN.js";import"./utils-CVEq3hMx.js";import"./markdown-Bnq_rauO.js";import"./use-copy-Dk3cEiBB.js";import"./location-V0VwTJTt.js";import"./use-entitlements-C4tNpLNZ.js";import"./chat-context-DR3uLV2w.js";import"./use-ai-providers-UYArMe6s.js";import"./use-decopilot-events-D7GIEyuu.js";import"./suggestion-tz-f65fQ.js";import"./use-task-board-prompts-CaMiqHjx.js";import"./badge-BWAFo8iB.js";import"./icon-button-DUX8uev-.js";import"./use-org-fs-wk2PRaOo.js";import"./use-automations-fhgNtkrI.js";import"./search-toggle-BsT7rhT7.js";import"./context-menu-Biz9RPI-.js";import"./daily-pulse-A6f95wwZ.js";import"./use-task-board-events-BQ73Mjf5.js";import"./config-VQsUFgqz.js";import"./sprints-C1z9xhcL.js";import"./select-IRnWfSEI.js";import"./index-BdQq_4o_.js";import"./task-route-D46EYWzc.js";import"./task-key-BCHdFiOO.js";import"./task-assignee-avatar-DrrfJr__.js";import"./use-tags-DsgZua5i.js";import"./calendar-BRFOK1aQ.js";import"./alert-Bg73iQHm.js";import"./collapsible-BHetx99z.js";import"./index-BU3lM1Xe.js";import"./editor-classes-yEQ_KPvG.js";import"./index-BN1wxwBE.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-D1aN1p6d.js";import"./use-connection-BeEdNRHa.js";import"./github-repo-scope-CiKlF-H0.js";import"./thread-sheet-body-vk26kAGI.js";import"./useSuspenseInfiniteQuery-CTPa_bH3.js";import"./pair-BwKW0A4I.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D9bP7Uyj.js";import"./types-C_kLVB_R.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-BWsIl6wX.js";import"./use-thread-outputs-DsSeydeQ.js";import"./file-type-icon-BkRHeWVz.js";import"./use-infinite-scroll-dtUi5Sm6.js";import"./task-status-CJpXljEZ.js";import"./separator-AD4s_4vt.js";import"./chat-draft-CKNXk7gm.js";import"./feature-paywall-CdkGt72v.js";import"./plan-ladder-DIPGMFy3.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 Vo(){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{Vo as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as fe,j as H,r,a4 as de,q as he,K as C,ec as Y}from"./index-Cw6ilRLN.js";import{i as Ee,u as pe}from"./chat-context-DR3uLV2w.js";import{b as ve}from"./sandbox-url-D3mC8qhT.js";import{a as Se}from"./repository-binding-PeMGXqSl.js";import{e as ge}from"./backoff-CrEUbyZT.js";function G(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const ye={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},X=r.createContext(ye),J=16384;class me{data="";append(e){this.data+=e,this.data.length>J&&(this.data=this.data.slice(this.data.length-J))}get(){return this.data}clear(){this.data=""}}const be=1e3,De=3e4,Re=3e3,W=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],z="log";function Te(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function ke(t){return t===404}async function xe(t){try{const e=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(Re)});return await e.body?.cancel().catch(()=>{}),ke(e.status)}catch{return!1}}const Z=Ee(X);function Be(t){const e=fe.c(10);let i,d,a;e[0]!==t?({resetKey:a,children:i,...d}=t,e[0]=t,e[1]=i,e[2]=d,e[3]=a):(i=e[1],d=e[2],a=e[3]);let c;e[4]!==d||e[5]!==a?(c=H.jsx(Ce,{...d},a),e[4]=d,e[5]=a,e[6]=c):c=e[6];let h;return e[7]!==i||e[8]!==c?(h=H.jsx(Z.Host,{source:c,children:i}),e[7]=i,e[8]=c,e[9]=h):h=e[9],h}function Ce(t){return Z.usePublish(Le(t)),null}function Le({virtualMcpId:t,branch:e,previewUrl:i=null,enabled:d=!0}){const{org:a}=de(),c=he(),h=pe()?.taskId??null,[ee,L]=r.useState(null),[te,_]=r.useState({phase:"idle"}),[ne,w]=r.useState({state:"running"}),[se,P]=r.useState({kind:"unknown"}),[re,K]=r.useState(!1),[ae,N]=r.useState([]),[ce,O]=r.useState([]),[,oe]=r.useState(0),v=r.useRef(new Map),B=r.useRef(new Set),R=r.useRef(new Set),A=r.useRef(null),T=Te(i),U=Se(t)?.metadata?.runtime?.selected==="deno",ue=l=>{let f=v.current.get(l);return f||(f=new me,v.current.set(l,f)),f};return r.useEffect(()=>{if(L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),A.current=null,K(!1),N([]),O([]),v.current.clear(),!t||!e||!d)return;const l=ve({orgSlug:a.slug,virtualMcpId:t,branch:e,threadId:h??null},"events");let f=!1,S=0,k=null,g=null,y=null,p=null,E=null,x=null;const ie=n=>{try{const s=JSON.parse(n.data);L(s),s.kind!=="failed"&&(K(!1),S=0),s.kind==="ready"&&$()}catch(s){console.warn("[vm-events] bad phase payload",s)}},q=()=>{K(!0),L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),N([]),O([]),v.current.clear()},M=n=>{try{const s=JSON.parse(n.data);if(typeof s.data!="string")return;S=0;const u=s.data.replace(/\r?\n/g,`\r
|
|
2
|
-
`);ue(s.source).append(u);for(const o of B.current)try{o(s.source,u)}catch{}oe(o=>o+1)}catch{}},V=n=>{const s=n.type;try{const u=JSON.parse(n.data);switch(S=0,s){case"lifecycle":{const o=u;_(o.state);const m=`${a.slug}/${t}/${e}`;if(G(o.state.phase)&&!(x&&G(x))){Y(c,a.id);const D=C.decofile(m);c.getQueryData(D)===void 0&&c.invalidateQueries({queryKey:D})}o.state.phase==="running"&&x!=="running"&&(Y(c,a.id),c.invalidateQueries({queryKey:C.decofile(m)}),c.invalidateQueries({queryKey:C.liveMeta(a.slug,t,e)})),x=o.state.phase;const b=o.state.phase==="running"?o.state.port:null,Q=A.current;if(A.current=b,Q!==null&&b!==null&&Q!==b)for(const D of R.current)try{D()}catch{}return}case"status":w(u);return;case"tasks":{const m=u.active.map(b=>b.logName??"").filter(Boolean);O(m);return}case"scripts":N(u.scripts);return;case"branch":{const o=u.meta;P(o);return}case"reload":for(const o of R.current)try{o()}catch{}return;case"file-changed":{const{path:o}=u,m=`${a.slug}/${t}/${e}`;if(o.startsWith(".deco/")||o.includes("/.deco/")){if(!(x==="running"))return;y&&clearTimeout(y),y=setTimeout(()=>{if(y=null,c.invalidateQueries({queryKey:C.decofile(m)}),U)for(const D of R.current)try{D()}catch{}},500)}else g&&clearTimeout(g),g=setTimeout(()=>{g=null,c.invalidateQueries({queryKey:C.liveMeta(a.slug,t,e)})},1e3);return}}}catch{}};function F(){if(f)return;const n=new EventSource(l);p=n,n.onopen=()=>{},n.onerror=()=>{p===n&&n.readyState===EventSource.CLOSED&&j("studio")},n.addEventListener("phase",ie),n.addEventListener("gone",q),n.addEventListener(z,M);for(const s of W)n.addEventListener(s,V)}function $(){if(f||!T||E)return;const n=new EventSource(T);E=n;let s=!1;n.onopen=()=>{if(f||E!==n)return;s=!0,S=0;const u=p;p=null,u?.close()},n.onerror=()=>{E===n&&n.readyState===EventSource.CLOSED&&le(n,s)},n.addEventListener(z,M);for(const u of W)n.addEventListener(u,V)}async function le(n,s){const u=T?await xe(T):!1;if(!(f||E!==n)){if(n.close(),E=null,u){q(),p||F();return}s&&j("direct")}}function j(n){if(f||k)return;const s=ge(De,be,S,2,0);S++,k=setTimeout(()=>{if(k=null,!f){if(n==="direct"){E?.close(),E=null,$();return}p?.close(),p=null,F()}},s)}return F(),()=>{f=!0,p?.close(),E?.close(),k&&clearTimeout(k),g&&clearTimeout(g),y&&clearTimeout(y)}},[t,e,a.slug,a.id,d,h,T,c,U]),{phase:ee,lifecycle:te,status:ne,branch:se,notFound:re,scripts:ae,activeProcesses:ce,getBuffer:l=>v.current.get(l)?.get()??"",hasData:l=>(v.current.get(l)?.get().length??0)>0,subscribeChunks:l=>(B.current.add(l),()=>{B.current.delete(l)}),subscribeReload:l=>(R.current.add(l),()=>{R.current.delete(l)})}}function I(){return r.use(X)}function Ae(t){const{subscribeChunks:e}=I(),i=r.useRef(t);i.current=t,r.useEffect(()=>e((c,h)=>{i.current?.(c,h)}),[e])}function Fe(t){const{subscribeReload:e}=I(),i=r.useRef(t);i.current=t,r.useEffect(()=>e(()=>{i.current?.()}),[e])}export{Be as S,Ae as a,Fe as b,G as i,I as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-r2g3Rufl.js";import{er as i}from"./index-Cw6ilRLN.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-r2g3Rufl.js";import{er as u,ey as n}from"./index-Cw6ilRLN.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|