decocms 4.374.1 → 4.375.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CvB24fpQ.js → AlertCircle-BI1-7G_T.js} +1 -1
- package/dist/client/assets/{AreaChart-CC-VldiG.js → AreaChart-DtIBv_u2.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CuPXwhY9.js → ArrowLeft-C7E68hAX.js} +1 -1
- package/dist/client/assets/{ArrowRight-DaeNVQjU.js → ArrowRight-Dvm5zccu.js} +1 -1
- package/dist/client/assets/{ArrowUp-CMB2_B55.js → ArrowUp-CeEuKFtz.js} +1 -1
- package/dist/client/assets/{CartesianChart-fcGDW8tl.js → CartesianChart-DiSH3Vx4.js} +1 -1
- package/dist/client/assets/{CheckCircle-L9rxLy8_.js → CheckCircle-Dhae72wt.js} +1 -1
- package/dist/client/assets/{ChevronUp-Dy-cXbOz.js → ChevronUp-DLj1P2Yi.js} +1 -1
- package/dist/client/assets/{Copy01-KomJ49aq.js → Copy01-BSU2TbGt.js} +1 -1
- package/dist/client/assets/{CreditCard01-DNXTqT2E.js → CreditCard01-rQeWrMiX.js} +1 -1
- package/dist/client/assets/{DotsVertical-CycZdUV6.js → DotsVertical-Bpcc3aU6.js} +1 -1
- package/dist/client/assets/{Download01-CK_3UsO1.js → Download01-C7Po_zTZ.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-C_8xGdFw.js → ErrorBarContext-CFqnzxdu.js} +1 -1
- package/dist/client/assets/{Eye-KAte8whD.js → Eye-BMH8bL1o.js} +1 -1
- package/dist/client/assets/{Globe01-BmMm30Hp.js → Globe01-B8Fw27to.js} +1 -1
- package/dist/client/assets/{Globe04-D2pxwWDa.js → Globe04-DiaT8ud7.js} +1 -1
- package/dist/client/assets/{Image01-BHoZzJSj.js → Image01-8GW5hNSe.js} +1 -1
- package/dist/client/assets/{Key01-BiLmhCHZ.js → Key01-BlY-YbB_.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Dk8cMo-H.js → LayoutLeft-CRUlRVYr.js} +1 -1
- package/dist/client/assets/{Line-QF9kobp-.js → Line-wWCkiK5e.js} +1 -1
- package/dist/client/assets/{Link01-BSX_7wIu.js → Link01-Cx5QfFm-.js} +1 -1
- package/dist/client/assets/{LinkExternal01-COMF34Up.js → LinkExternal01-CiW1JxGO.js} +1 -1
- package/dist/client/assets/{Monitor01-C25vfwGa.js → Monitor01-D_u2VBNm.js} +1 -1
- package/dist/client/assets/{Package-BCflABQ6.js → Package-5wNrOSeZ.js} +1 -1
- package/dist/client/assets/{Palette-By8W7B7e.js → Palette-D-JKiEQc.js} +1 -1
- package/dist/client/assets/{Play-C6orNG1z.js → Play-C3paeMv9.js} +1 -1
- package/dist/client/assets/{Plus-BuCQnPNG.js → Plus-DtW_ZAb1.js} +1 -1
- package/dist/client/assets/{SearchLg-VMEsA-e7.js → SearchLg-dxZebJdV.js} +1 -1
- package/dist/client/assets/{SearchMd-DnahVlUn.js → SearchMd-CYWyu5N6.js} +1 -1
- package/dist/client/assets/{Sector-CzI1MlO5.js → Sector-BG5qLfZm.js} +1 -1
- package/dist/client/assets/{Settings02-BZd-qcWS.js → Settings02-BST604Dz.js} +1 -1
- package/dist/client/assets/{Share07-tpVfUX9-.js → Share07-D1cfUHPt.js} +1 -1
- package/dist/client/assets/{Stars01-BcbLgM7d.js → Stars01-C7tX23wY.js} +1 -1
- package/dist/client/assets/{Sun-C6ausIaw.js → Sun-DYyCG7at.js} +1 -1
- package/dist/client/assets/{Tool01-BlcXvpRH.js → Tool01-uWjCo1g4.js} +1 -1
- package/dist/client/assets/{Tool02-BcSzj1eN.js → Tool02-C01DHNkH.js} +1 -1
- package/dist/client/assets/{Trash01-Bt7knSgw.js → Trash01-CuAclZjJ.js} +1 -1
- package/dist/client/assets/{TrendUp01-kAJZHj1O.js → TrendUp01-DDcnGTKu.js} +1 -1
- package/dist/client/assets/{Upload01-CgS71RUS.js → Upload01-C_WGdZv1.js} +1 -1
- package/dist/client/assets/{User01-DKY_ILGI.js → User01-BtTyL8Q1.js} +1 -1
- package/dist/client/assets/{UserSquare-DU12tvTU.js → UserSquare-DseugbrQ.js} +1 -1
- package/dist/client/assets/{Users01-COWDl5zV.js → Users01-DcFsssIu.js} +1 -1
- package/dist/client/assets/{X-DcceC-EQ.js → X-DvXoapdv.js} +1 -1
- package/dist/client/assets/{XCircle-BirmII4v.js → XCircle-IF6IhAA6.js} +1 -1
- package/dist/client/assets/{XClose-CZo1KF0t.js → XClose-DV3Gf7XO.js} +1 -1
- package/dist/client/assets/{Zap-CIXkomUE.js → Zap-3MjslAd_.js} +1 -1
- package/dist/client/assets/{ZoomOut-CvMfmw42.js → ZoomOut-CmGFFntk.js} +1 -1
- package/dist/client/assets/{access-gate-BkpH0rYV.js → access-gate-BzmM6oxY.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DDFaH4NS.js → add-connection-dialog-D-qRDxvj.js} +1 -1
- package/dist/client/assets/{agent-analytics-DI585OA2.js → agent-analytics-smucAkLj.js} +1 -1
- package/dist/client/assets/agent-app-x_Rm4WGj.js +1 -0
- package/dist/client/assets/agent-assets-CLJ5OX6e.js +1 -0
- package/dist/client/assets/{agent-automation-CoXN7oT_.js → agent-automation-CFAGaP8l.js} +1 -1
- package/dist/client/assets/{agent-automations-Dh2ldvlj.js → agent-automations-BHCDA4--.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-p5uTnj09.js → agent-connect-sources-7wd232rO.js} +1 -1
- package/dist/client/assets/agent-deck-C-uXPiCc.js +1 -0
- package/dist/client/assets/{agent-e2e-CgjMtxKa.js → agent-e2e-DcyQRI-0.js} +1 -1
- package/dist/client/assets/{agent-experiments-Z90gGdDa.js → agent-experiments-B01FeZKr.js} +1 -1
- package/dist/client/assets/agent-file-DfTcN9rV.js +1 -0
- package/dist/client/assets/{agent-git-8ujBeOTw.js → agent-git-DVbYIVmK.js} +2 -2
- package/dist/client/assets/{agent-hosting-Bzvqx7RN.js → agent-hosting-D77MUjq-.js} +1 -1
- package/dist/client/assets/{agent-icon-Bbnm30MH.js → agent-icon-CB6qOgGd.js} +1 -1
- package/dist/client/assets/agent-library-file-BbSJ9eSF.js +1 -0
- package/dist/client/assets/{agent-monitor-pcRQgKqs.js → agent-monitor-DUdJ3jIv.js} +1 -1
- package/dist/client/assets/{agent-overview-wBMo3ArI.js → agent-overview-BLq3g-uv.js} +1 -1
- package/dist/client/assets/agent-settings-D7S8zdvD.js +1 -0
- package/dist/client/assets/{agent-site-editor-B_7293-6.js → agent-site-editor-BsPAglDy.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-R25H_qVE.js +2 -0
- package/dist/client/assets/agent-site-editor-content-GFspdniw.js +2 -0
- package/dist/client/assets/{agent-site-editor-preview-BoUgjuFc.js → agent-site-editor-preview-J-wwVAJd.js} +3 -3
- package/dist/client/assets/agent-view-BPulnPyH.js +1 -0
- package/dist/client/assets/{agent-view-guard-CE-w87FC.js → agent-view-guard-NkVREFXG.js} +1 -1
- package/dist/client/assets/{agents-list-DYu2megT.js → agents-list-CuqRd0XO.js} +1 -1
- package/dist/client/assets/{ai-providers-C4xd0vpP.js → ai-providers-C6O4KvR1.js} +2 -2
- package/dist/client/assets/{alert-JJIsthFC.js → alert-BqDw83Zr.js} +1 -1
- package/dist/client/assets/{alert-dialog-DQ7VA4it.js → alert-dialog-Cwo6u0Rd.js} +1 -1
- package/dist/client/assets/{api-keys-Da7XeDcP.js → api-keys-D2_4Kgi1.js} +1 -1
- package/dist/client/assets/api-keys-tBRZg_0R.js +1 -0
- package/dist/client/assets/app-editor-h2HqcY-W.js +1 -0
- package/dist/client/assets/{asset-utils-Ckrgql68.js → asset-utils-DFfJ7SbA.js} +1 -1
- package/dist/client/assets/{auth-BAIe_T8g.js → auth-C673ACq9.js} +1 -1
- package/dist/client/assets/{auth-catchall-C3HcGo7O.js → auth-catchall-DCl9R8ez.js} +1 -1
- package/dist/client/assets/{auth-entry-CXeBQuWy.js → auth-entry-GzlRhrO7.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BLHoHl9d.js → auth-split-layout-C04c2KsR.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B_2a5Vfr.js → authenticate-and-persist-oauth-D7US-yKl.js} +1 -1
- package/dist/client/assets/{automation-list-row-zcGZ57kC.js → automation-list-row-CPHwWy2p.js} +1 -1
- package/dist/client/assets/{automation-runs-CO5cfbAL.js → automation-runs-DxfhwHuV.js} +1 -1
- package/dist/client/assets/automations-BJ_8vGY-.js +1 -0
- package/dist/client/assets/{autosend-DrbiZ7KD.js → autosend-C_B7nqHB.js} +1 -1
- package/dist/client/assets/{avatar-DAAVe66-.js → avatar-DeEBt3V6.js} +1 -1
- package/dist/client/assets/{badge-Cxdo9MSD.js → badge-CTOzYKcw.js} +1 -1
- package/dist/client/assets/{block-document-BmtOSR_U.js → block-document-p1v2niSl.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-B9WGUHQW.js → blocks-preview-workspace-context-cspKlB4e.js} +1 -1
- package/dist/client/assets/{breadcrumb-Cl92-rSB.js → breadcrumb-D_dKwwik.js} +1 -1
- package/dist/client/assets/{buckets-IfbnGi1h.js → buckets-Bb80omnE.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BjB8yBFt.js → build-improve-prompt-doc-4VuHodwx.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BCXzorgr.js → bulk-category-panel-D0Zx1WOc.js} +1 -1
- package/dist/client/assets/{calendar-D29VArmq.js → calendar-Cp1CsC2G.js} +1 -1
- package/dist/client/assets/{capability-load-error-BML32Rgk.js → capability-load-error-CPK5gzZD.js} +1 -1
- package/dist/client/assets/category-editor-CkLv7gDy.js +1 -0
- package/dist/client/assets/{chart-DPH16IOZ.js → chart-C_3KaMyn.js} +1 -1
- package/dist/client/assets/{chat-context-BSf3NsZt.js → chat-context-9vL2FEPm.js} +5 -5
- package/dist/client/assets/{chat-draft-CYnWSaLo.js → chat-draft-BfGVY5UT.js} +1 -1
- package/dist/client/assets/{checkbox-Dabg6CvC.js → checkbox-CzlOjnq8.js} +1 -1
- package/dist/client/assets/{choose-editor-Cp-nak_V.js → choose-editor-BKH0c2th.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Cn8-SffB.js → cli-auth-success-Bv_-kJFI.js} +1 -1
- package/dist/client/assets/{client-icons-I35gtKUf.js → client-icons-DWXRTDgi.js} +1 -1
- package/dist/client/assets/{collapsible-Cc5z9cdY.js → collapsible-CbjXckba.js} +1 -1
- package/dist/client/assets/{collection-detail-DjBn5zYW.js → collection-detail-DMMWvL23.js} +1 -1
- package/dist/client/assets/{collection-display-button-BMj7QQEq.js → collection-display-button-DDOKmMN0.js} +1 -1
- package/dist/client/assets/{collection-search-ACimtR3t.js → collection-search-C3Nd4_WF.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D6uxp16B.js → collection-table-wrapper-B-FFQlMk.js} +1 -1
- package/dist/client/assets/{collection-tabs-wZHzLlos.js → collection-tabs-BTNTMmYy.js} +1 -1
- package/dist/client/assets/{combobox-CFiHpYi-.js → combobox-DJpsl8XJ.js} +1 -1
- package/dist/client/assets/{command-uelHA4Qc.js → command-Cd7TqAMz.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CElJkf6T.js → companion-mcps-section-C51wKLDC.js} +1 -1
- package/dist/client/assets/{connect-C1wR3kQS.js → connect-DL2wIZjF.js} +2 -2
- package/dist/client/assets/{connect-layout-CEjyLlsQ.js → connect-layout-DlpViE9y.js} +1 -1
- package/dist/client/assets/{connection-card-z-DTL8a8.js → connection-card-BC6VQgEM.js} +1 -1
- package/dist/client/assets/{connection-detail-DTW_zDz8.js → connection-detail-CUwTeXbu.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-w89tRjJb.js → connection-form-helpers-Dhjm3H4V.js} +1 -1
- package/dist/client/assets/{connection-CCOtyiTz.js → connection-pRtqDo5s.js} +1 -1
- package/dist/client/assets/{connections-BCg7O22V.js → connections-OTQGx-8T.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DgZgs9aG.js → create-organization-dialog-F-F4v3Bl.js} +1 -1
- package/dist/client/assets/{decofile-api-BCvZWky6.js → decofile-api-CPSMqNwB.js} +1 -1
- package/dist/client/assets/{decopilot-JzsJWa1H.js → decopilot-Byyy6GRB.js} +2 -2
- package/dist/client/assets/{dialog-BVRmgEZZ.js → dialog-Djn7c9nl.js} +1 -1
- package/dist/client/assets/{discover-CPUegLX9.js → discover-CgHIqstZ.js} +1 -1
- package/dist/client/assets/{domain-settings-BL6MiMeP.js → domain-settings-BVYaDlxU.js} +1 -1
- package/dist/client/assets/{download-app-dialog-BSQlf9Pn.js → download-app-dialog-CPQDFMO_.js} +1 -1
- package/dist/client/assets/{drawer-BwM5wPz_.js → drawer-CcumUZPh.js} +1 -1
- package/dist/client/assets/{editor-B9nqdqUb.js → editor-Bq1ZBF8A.js} +1 -1
- package/dist/client/assets/{empty-state-CUy_IWGW.js → empty-state-BRQafZPm.js} +1 -1
- package/dist/client/assets/{empty-state-CyI2CaLY.js → empty-state-C2oFPF-n.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BYtH8M2u.js → extract-connection-data-C8xiH7IM.js} +1 -1
- package/dist/client/assets/{feature-gate-Cf4hZv0B.js → feature-gate-_oqPdUHE.js} +1 -1
- package/dist/client/assets/{feature-paywall-BSg5h6Wb.js → feature-paywall-Ipi4hKsO.js} +1 -1
- package/dist/client/assets/{file-explorer-BaQZtdi0.js → file-explorer-B1pmunvu.js} +1 -1
- package/dist/client/assets/{file-preview-C3-dWXmK.js → file-preview-BADsX5FY.js} +1 -1
- package/dist/client/assets/{file-share-button-BuCRyD4f.js → file-share-button-CJVW9-2r.js} +1 -1
- package/dist/client/assets/{file-type-icon-Dg8sADAf.js → file-type-icon-61vCm4NO.js} +1 -1
- package/dist/client/assets/{folder-icon-DA4ZaB45.js → folder-icon-DLuVHdgH.js} +1 -1
- package/dist/client/assets/{form-DwCt2SR2.js → form-D-nyx1PA.js} +1 -1
- package/dist/client/assets/{gateway-client-D0oBW_qu.js → gateway-client-Dy7XUNem.js} +1 -1
- package/dist/client/assets/{general-B9q-xe3O.js → general-CHWPS_9e.js} +1 -1
- package/dist/client/assets/{github-icon-C0b5ErP6.js → github-icon-YTcHmNlJ.js} +1 -1
- package/dist/client/assets/{home-Dd28TK1r.js → home-DgPPVff1.js} +1 -1
- package/dist/client/assets/{hooks-D0h9yhqP.js → hooks-Tk18TRVH.js} +2 -2
- package/dist/client/assets/{hooks-DZN1ZKP-.js → hooks-p4Q94DpI.js} +1 -1
- package/dist/client/assets/{icon-button-DU-Ln0Ge.js → icon-button-BDccBwxx.js} +1 -1
- package/dist/client/assets/{index--5vhPfMl.js → index-BmOHjvYS.js} +1 -1
- package/dist/client/assets/{index-BNah-P_g.css → index-CCCwF5vG.css} +1 -1
- package/dist/client/assets/{index-BfbICK5t.js → index-CQSV5NNK.js} +1 -1
- package/dist/client/assets/{index-AOu8Y3dB.js → index-CVBQnECc.js} +1 -1
- package/dist/client/assets/{index-CB_d_Ww9.js → index-CXUyZtYP.js} +1 -1
- package/dist/client/assets/index-D5yWNDr1.js +1 -0
- package/dist/client/assets/{index-0kHkZucW.js → index-DRlLQrFc.js} +1 -1
- package/dist/client/assets/{index-BfTKB7dV.js → index-Di_BAeVO.js} +1 -1
- package/dist/client/assets/{index-CjolVbvM.js → index-DopULJi0.js} +1 -1
- package/dist/client/assets/{index-ChGB7Srd.js → index-Dvd4Od7g.js} +1 -1
- package/dist/client/assets/{index-B4_5ne-m.js → index-ViRfM1Gu.js} +54 -54
- package/dist/client/assets/{index-B4Sw3hof.js → index-X2eOQPgI.js} +1 -1
- package/dist/client/assets/{index-IS0010-i.js → index-YBhFd3U8.js} +1 -1
- package/dist/client/assets/{index-BK4gf4on.js → index-aoyaciW5.js} +1 -1
- package/dist/client/assets/{index-redirect-BeZh12s-.js → index-redirect-DAWKfZzt.js} +1 -1
- package/dist/client/assets/{index-D_t5RQk4.js → index-uZNfeQt8.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CzIaF1BV.js → infiniteQueryObserver-D531v4aA.js} +1 -1
- package/dist/client/assets/{infra-billing-DMsr0Q0z.js → infra-billing-C3r6_l-d.js} +1 -1
- package/dist/client/assets/{input-D7rTqiZA.js → input-Bw5CcCxY.js} +2 -2
- package/dist/client/assets/{input-DhQYTu0H.js → input-CZi9DBsg.js} +1 -1
- package/dist/client/assets/{input-DmFaWWaQ.js → input-CanXr3zf.js} +1 -1
- package/dist/client/assets/{integration-icon-CT7gtNMF.js → integration-icon-BUiAcjJI.js} +1 -1
- package/dist/client/assets/{label-C5dVgFkO.js → label-C0Z8BQK8.js} +1 -1
- package/dist/client/assets/{last-preview-page-BbdRTqMd.js → last-preview-page-Bw5iq9BG.js} +1 -1
- package/dist/client/assets/{layout-CXaobmoR.js → layout-CLlZ53T9.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-B2dKvF3G.js → legacy-agents-deep-CPHek8zK.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-psdr3_pB.js → legacy-main-redirect-DaK05WFD.js} +1 -1
- package/dist/client/assets/library-BOlU1qHF.js +161 -0
- package/dist/client/assets/{login-D0perYnq.js → login-zkguOyNC.js} +1 -1
- package/dist/client/assets/{markdown-CdMnKnHM.js → markdown-BAxgNtTV.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-kud7EQ1E.js → mcp-app-renderer-s982DJoX.js} +2 -2
- package/dist/client/assets/{mcp-oauth-Bqx9uZfn.js → mcp-oauth-CuN2M9eY.js} +1 -1
- package/dist/client/assets/{members-BWNEw7IY.js → members-CHg0X5Qv.js} +1 -1
- package/dist/client/assets/{message-templates-CwYx_hD_.js → message-templates-DiXmLQv9.js} +1 -1
- package/dist/client/assets/{mini-report-page-i9lqZoyF.js → mini-report-page-BP2VfDmW.js} +1 -1
- package/dist/client/assets/{mock-board-DDxAYcbL.js → mock-board-CsD-jS_t.js} +7 -7
- package/dist/client/assets/{monaco-editor-BM2SBH_J.js → monaco-editor-GTuWbg2n.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BAfuoPc4.js → monitoring-stats-row-C0txjqQF.js} +1 -1
- package/dist/client/assets/{multi-select-Cma9DT-0.js → multi-select-BSBeiPDs.js} +1 -1
- package/dist/client/assets/{mustache-DCrtQrVG.js → mustache-CBCEG5qI.js} +1 -1
- package/dist/client/assets/{oauth-callback-Bjj2LnDu.js → oauth-callback-BzXzh5YU.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-iJcxShkv.js → oauth-callback-ai-provider-P5-Mdqw7.js} +1 -1
- package/dist/client/assets/{onboarding-DdPHiaTb.js → onboarding-Cfx2WJWh.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DbUoja1k.js → optimistic-project-sidebar-views-DL2cPEil.js} +1 -1
- package/dist/client/assets/org-file-open-context-ClVFPMFS.js +1 -0
- package/dist/client/assets/{organization-choice-DSZdyMNl.js → organization-choice-D8YfGT0z.js} +1 -1
- package/dist/client/assets/{orgs-EQ3dRKq1.js → orgs-DTy0l6iW.js} +1 -1
- package/dist/client/assets/{page-seo-form-BgfALyeP.js → page-seo-form-BDho5kHd.js} +1 -1
- package/dist/client/assets/{pair-mgqlVrg4.js → pair-CXtHPu_2.js} +7 -7
- package/dist/client/assets/{plan-ladder-DFDsraie.js → plan-ladder-Cz1SRX7G.js} +1 -1
- package/dist/client/assets/{popover-BREpugAm.js → popover-D9J3Ecq5.js} +1 -1
- package/dist/client/assets/{post-calendar-CnbsL0eo.js → post-calendar-B6HqShTj.js} +1 -1
- package/dist/client/assets/{post-editor-9KdgWdvu.js → post-editor-Dub0lnIC.js} +1 -1
- package/dist/client/assets/{preview-content-BZq0WigR.js → preview-content-DqZbwIgq.js} +1 -1
- package/dist/client/assets/{preview-dialog-h7LoP6ZX.js → preview-dialog-DwsfWiX4.js} +1 -1
- package/dist/client/assets/{primitives-zMFwX0Jx.js → primitives-B3jGlz5R.js} +1 -1
- package/dist/client/assets/{profile-CstkdBJB.js → profile-DRpLAxpV.js} +1 -1
- package/dist/client/assets/{project-app-view-BUXGEIxz.js → project-app-view-CDnyZsfy.js} +1 -1
- package/dist/client/assets/{project-feed-B2rjMsm6.js → project-feed-BNODHWCd.js} +1 -1
- package/dist/client/assets/{project-icon-BuXyfXr6.js → project-icon-C2aP6VAt.js} +1 -1
- package/dist/client/assets/project-reports-pxfEiDuc.js +1 -0
- package/dist/client/assets/project-tasks-BHr51N_5.js +1 -0
- package/dist/client/assets/{prompts-C8Tw6ift.js → prompts-ChUmDgBe.js} +1 -1
- package/dist/client/assets/record-editor-DFMI1izT.js +1 -0
- package/dist/client/assets/{redirect-editor-fDaBjJbA.js → redirect-editor-DCDkcBex.js} +1 -1
- package/dist/client/assets/registry-DAYpp-LB.js +2 -0
- package/dist/client/assets/{registry-layout-CBmayW3a.js → registry-layout-Dj4Ep3NC.js} +1 -1
- package/dist/client/assets/reports-Ac74_llD.js +1 -0
- package/dist/client/assets/{reports-D3ZxTpvh.js → reports-CX9Egd7g.js} +1 -1
- package/dist/client/assets/{reports-onboarding-C-jYNNpv.js → reports-onboarding-Dr7ZP07o.js} +1 -1
- package/dist/client/assets/{reports-tab-ClSQGtJf.js → reports-tab-6o6Xq74z.js} +2 -2
- package/dist/client/assets/{repositories-VKk9R6NV.js → repositories-DVzvtTGH.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Bxit3rwH.js → repository-import-picker-_MvWhsff.js} +1 -1
- package/dist/client/assets/{repository-picker-Dtn2F8yh.js → repository-picker-CUSn6z2H.js} +1 -1
- package/dist/client/assets/{require-capability-DNPqpx0A.js → require-capability-Co3UWcKm.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DbcZh8KB.js → required-auth-layout-CCMTdUQL.js} +1 -1
- package/dist/client/assets/{reset-password-H5cLuWq1.js → reset-password-372vF6mz.js} +1 -1
- package/dist/client/assets/{resizable-Dw8LR1j8.js → resizable-C1agfd9G.js} +1 -1
- package/dist/client/assets/{review-settings-CQBykdsR.js → review-settings-B1JUgDgo.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-XbfHUQMq.js → rich-text-link-control-CtGfeDDb.js} +1 -1
- package/dist/client/assets/{roles-CoipftcE.js → roles-BsnaB11h.js} +1 -1
- package/dist/client/assets/{route-COHKdv7H.js → route-BORVoZ7m.js} +1 -1
- package/dist/client/assets/route-CA1mAWwz.js +1 -0
- package/dist/client/assets/{route-BKi-EnKl.js → route-D-IJHs-q.js} +1 -1
- package/dist/client/assets/route-page-header-B0gCkOLw.js +1 -0
- package/dist/client/assets/runnable-block-editor-C3xUpeAq.js +16 -0
- package/dist/client/assets/{sandbox-lifecycle-context-HIhyPh-5.js → sandbox-lifecycle-context-CFxv8KuN.js} +1 -1
- package/dist/client/assets/{schema-iizf-P2g.js → schema-CblLKjlF.js} +1 -1
- package/dist/client/assets/{scroll-area-BcoH4ReJ.js → scroll-area-C4UXe6MK.js} +1 -1
- package/dist/client/assets/{search-input-CmWlEMU8.js → search-input-BIO2PIb8.js} +1 -1
- package/dist/client/assets/{search-toggle-4qgH_UjE.js → search-toggle-DZJDiHhs.js} +1 -1
- package/dist/client/assets/{secrets-Bi8Smqwe.js → secrets-D5ZQ2jkM.js} +1 -1
- package/dist/client/assets/sections-editor-B1KSvQYw.js +2 -0
- package/dist/client/assets/{select--0Nrx9pz.js → select-CWiwZCZH.js} +1 -1
- package/dist/client/assets/{select-model-BKF1kjR-.js → select-model-FJtjM4qQ.js} +1 -1
- package/dist/client/assets/seo-editor-R3X5vWTc.js +1 -0
- package/dist/client/assets/{separator-CMAG9KMM.js → separator-CvknKP-S.js} +1 -1
- package/dist/client/assets/{settings-tab-BrwOMHxn.js → settings-tab-TZNv4ip9.js} +1 -1
- package/dist/client/assets/{sheet-KfyT4iJh.js → sheet-Dcv1ruqq.js} +1 -1
- package/dist/client/assets/{shell-layout-C7iq_ybu.js → shell-layout-DCySlmes.js} +1 -1
- package/dist/client/assets/{sidebar-Ce0KwGyJ.js → sidebar-VKfmQpw1.js} +1 -1
- package/dist/client/assets/{skill-preview-DaiAGQ8W.js → skill-preview-DWlT0CSK.js} +1 -1
- package/dist/client/assets/{skills-BfYJXdvY.js → skills-B0BBHtWL.js} +1 -1
- package/dist/client/assets/{sso-j34bPfk7.js → sso-DtIjqKzq.js} +1 -1
- package/dist/client/assets/{store-DjXldX1F.js → store-DcF0sBj5.js} +1 -1
- package/dist/client/assets/store-registry-BRzSXXLO.js +2 -0
- package/dist/client/assets/{switch-uCmnTmA3.js → switch-jCtPlC36.js} +1 -1
- package/dist/client/assets/{synced-repos-C07oiVeE.js → synced-repos-CE0cMzCA.js} +1 -1
- package/dist/client/assets/{table-Cx5xJBa9.js → table-DEPBOuqW.js} +1 -1
- package/dist/client/assets/{tabs-CMPX7aLH.js → tabs-D5BcvYFg.js} +1 -1
- package/dist/client/assets/{task-board-CwfOEd0p.js → task-board-irpkYNP7.js} +1 -1
- package/dist/client/assets/{task-route-C0NB5FI3.js → task-route-CCPOLwd0.js} +1 -1
- package/dist/client/assets/{task-status-CunX_b1I.js → task-status-6ym4yCkI.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BVZIpmtK.js → taskboard-analytics-DX9L7_MQ.js} +1 -1
- package/dist/client/assets/tasks-C18rS0d8.js +1 -0
- package/dist/client/assets/{tasks-CKy3IGSO.js → tasks-gWGPTcMJ.js} +2 -2
- package/dist/client/assets/{textarea-CNloF_6k.js → textarea-B9gSFrNU.js} +1 -1
- package/dist/client/assets/{thread-button-0wpTVhK0.js → thread-button-CRojH2Q6.js} +1 -1
- package/dist/client/assets/{thread-intent-BcdlSG8J.js → thread-intent-D7RSnMtr.js} +1 -1
- package/dist/client/assets/{thread-route-Bq7TohAn.js → thread-route-B6q872tw.js} +1 -1
- package/dist/client/assets/{thread-route-D5lCt0bb.js → thread-route-BvQ3N33X.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CZ7U6WOP.js → thread-sheet-body-4Hdc-P_4.js} +1 -1
- package/dist/client/assets/{toggle-group-BPpZ90Kk.js → toggle-group-Cs6LukfB.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Da8s1pOb.js → toolbar-icon-button-BrvzhCgp.js} +1 -1
- package/dist/client/assets/{tooltip-Ch_anXXw.js → tooltip-CJ5hpTtY.js} +1 -1
- package/dist/client/assets/{track-B2ai-lhp.js → track-CQmWzPGe.js} +1 -1
- package/dist/client/assets/{types-DAtj8pL_.js → types-o4JUcB5t.js} +1 -1
- package/dist/client/assets/{usage-stats-DECzmKdw.js → usage-stats-BkyaWsuw.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BLQu9X4b.js → use-ai-providers-D7TBn2gf.js} +1 -1
- package/dist/client/assets/{use-automations-DGQLDHfM.js → use-automations-BnCVpUqP.js} +1 -1
- package/dist/client/assets/{use-autosave-D2GJMvju.js → use-autosave-DyNoS35U.js} +1 -1
- package/dist/client/assets/{use-connect-companion-TpX59d2A.js → use-connect-companion-9ZpyI9Fc.js} +1 -1
- package/dist/client/assets/{use-connection-DEkZ7Z3y.js → use-connection-CWmCnJzq.js} +1 -1
- package/dist/client/assets/{use-copy-BdX2_tpS.js → use-copy-C4Sqw6FJ.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B22agNFs.js → use-create-virtual-mcp-CF6SrwfA.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DdFVZp6l.js → use-date-fns-locale-FAB4qsTj.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-g0CT53cz.js → use-debounced-autosave-DyrcpQku.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CPADjlu8.js → use-debounced-value-CTsArd76.js} +1 -1
- package/dist/client/assets/{use-deco-credits-0LI1tSh2.js → use-deco-credits-DX-A_4LZ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CztvGxbe.js → use-decopilot-events-B_U6akcK.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BrxuwVV0.js → use-delete-connection-zGLdQuFY.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BW07NJZx.js → use-deployment-admin-ClPzrInO.js} +1 -1
- package/dist/client/assets/{use-entitlements-Cpg4O4cU.js → use-entitlements-zp_dUL_T.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BS4vDkY8.js → use-fast-preview-draft-url-Cz3sAOXf.js} +1 -1
- package/dist/client/assets/{use-file-configs-T83FDKTN.js → use-file-configs-CNHCYE4_.js} +1 -1
- package/dist/client/assets/{use-in-settings-CCWZ9EQU.js → use-in-settings-7N-jImN-.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CQVHxZ2X.js → use-infinite-scroll-tKxzTnAi.js} +1 -1
- package/dist/client/assets/{use-join-requests-BM1WOs-R.js → use-join-requests-DsMh_VIg.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BGkjNCY6.js → use-main-panel-tabs-osVdCCKw.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DPrXZk0m.js → use-mcp-auth-status-BN0fGnjh.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Di29uH1Z.js → use-mcp-client-DRrvMA7R.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-pRQvLesG.js → use-mcp-prompts-CFfQkfFk.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BTMKYjmq.js → use-mcp-tools-ZkLjVEAC.js} +1 -1
- package/dist/client/assets/{use-members-2-cC5S8b.js → use-members-Dtgbai4E.js} +1 -1
- package/dist/client/assets/{use-mobile-Br1FbuT5.js → use-mobile-DlkLKfXJ.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BIB5Nkxx.js → use-navigate-to-agent-B7EkWSI-.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-DwCvmaT1.js → use-open-billing-url-rAHLvZUq.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BQN7hmW6.js → use-org-auth-client-DRDr1ayU.js} +1 -1
- package/dist/client/assets/{use-org-fs-up6Ae3F-.js → use-org-fs-CRcsrb-3.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-B1-u1Sww.js → use-org-repo-syncs-BDI_NBKG.js} +1 -1
- package/dist/client/assets/{use-org-sso-CSb7uzWR.js → use-org-sso-sXA-lCl2.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DP4t5Npf.js → use-organization-roles-BGK09C8Z.js} +1 -1
- package/dist/client/assets/{use-organization-settings-B7QbhgeU.js → use-organization-settings-BWh5ecK1.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-7owLLl5-.js → use-panel-navigate-aNh4qA0w.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-C6Z-dNAC.js → use-project-native-view-presence-bc-dlOed.js} +1 -1
- package/dist/client/assets/{use-project-scope-D7MgPnbk.js → use-project-scope-BWH2x_Fv.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CvrvQHoJ.js → use-registry-connections-BEkW1hW1.js} +1 -1
- package/dist/client/assets/{use-releases-DYrm3R-D.js → use-releases-BqU5AbHR.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-B0GD9uDf.js → use-reports-diagnostic-DbkBmwAy.js} +1 -1
- package/dist/client/assets/{use-route-default-main--vHXCkHM.js → use-route-default-main-C08nBhva.js} +1 -1
- package/dist/client/assets/{use-secrets-DwITZFB8.js → use-secrets-_TBYCToI.js} +1 -1
- package/dist/client/assets/use-section-preview-base-CIB9ERj3.js +1 -0
- package/dist/client/assets/{use-session-runtime-B1xdg1Mc.js → use-session-runtime-DXJsM3Xo.js} +1 -1
- package/dist/client/assets/{use-tags-DXxTmE03.js → use-tags-BtlTltF7.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-5o37lq8z.js → use-task-board-analytics-Bn5ZBvNV.js} +1 -1
- package/dist/client/assets/{use-task-metadata-xMti_d98.js → use-task-metadata-n3_Ckq8i.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BwzUBEaq.js → use-thread-outputs-hUD6BIlr.js} +1 -1
- package/dist/client/assets/{use-view-mode-DB3Sv4EV.js → use-view-mode-z9PDHpCl.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CdMkF3Nz.js → use-virtual-mcp-mXTxLOzX.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B8BU5xZL.js +1 -0
- package/dist/client/assets/{useQueries-B3o1rvWe.js → useQueries-9_e6uzO5.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B0apeUzG.js +1 -0
- package/dist/client/assets/{users-DBFRWsia.js → users-cZqUrAVc.js} +1 -1
- package/dist/client/assets/{utils-gTOau_mh.js → utils-BCIk8m53.js} +1 -1
- package/dist/client/assets/{variant-calendar-DOxG9iwM.js → variant-calendar-B_X3Kgq2.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DPq8EH6t.js → variant-matcher-override-C3r4SJlV.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DYECPSMs.js → view-mode-toggle-DwUTECrP.js} +1 -1
- package/dist/client/assets/{virtual-mcp-AqKeX5w8.js → virtual-mcp-B-vJ4hSc.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Dd4FMRFP.js +0 -1
- package/dist/client/assets/agent-assets-ihYul22E.js +0 -1
- package/dist/client/assets/agent-deck-BWPlKksS.js +0 -1
- package/dist/client/assets/agent-file-BKO35b36.js +0 -1
- package/dist/client/assets/agent-library-file-B3_-CXIA.js +0 -1
- package/dist/client/assets/agent-settings-BxZaeWUx.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B-pWeSRV.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BGJ14_Az.js +0 -2
- package/dist/client/assets/agent-view-DDrzopEk.js +0 -1
- package/dist/client/assets/api-keys-DEkuX1eT.js +0 -1
- package/dist/client/assets/app-editor-ChfXMKUs.js +0 -1
- package/dist/client/assets/automations-BQHaweWF.js +0 -1
- package/dist/client/assets/category-editor-BTonT0GY.js +0 -1
- package/dist/client/assets/index-DbfxHNth.js +0 -1
- package/dist/client/assets/library-CHpieazL.js +0 -161
- package/dist/client/assets/org-file-open-context-DNcgI0Uf.js +0 -1
- package/dist/client/assets/project-reports-BCqm5aO0.js +0 -1
- package/dist/client/assets/project-tasks-Bka5utN5.js +0 -1
- package/dist/client/assets/record-editor-BpAD-e4x.js +0 -1
- package/dist/client/assets/registry-CtLO9kjB.js +0 -2
- package/dist/client/assets/reports-D2RKwYmT.js +0 -1
- package/dist/client/assets/route-C9H7VfVw.js +0 -1
- package/dist/client/assets/route-page-header-KctxVQ_e.js +0 -1
- package/dist/client/assets/runnable-block-editor-BzVWSPHL.js +0 -16
- package/dist/client/assets/sections-editor-Bo5eUKAB.js +0 -2
- package/dist/client/assets/seo-editor-D9L3VA5c.js +0 -1
- package/dist/client/assets/store-registry-RTogK1X0.js +0 -2
- package/dist/client/assets/tasks-DF_oVYA4.js +0 -1
- package/dist/client/assets/use-section-preview-base-BFHyMpzJ.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DvCOEAKG.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DMqlAGdI.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as at,b as Nt,r as w,l as qe,j as n,aO as ns,B as nt,F as ss,G as St,I as as,aN as os,H as is,h as rs,aM as La,o as Ba,an as Ia,t as J,K as Fa}from"./index-B4_5ne-m.js";import{u as Oa}from"./chat-context-BSf3NsZt.js";import{d as $a}from"./use-virtual-mcp-CdMkF3Nz.js";import{n as za,t as Ha}from"./ChevronUp-Dy-cXbOz.js";import{z as _n,a2 as Ua,a5 as qa,o as Ga,P as Wa,x as Ya}from"./agent-icon-Bbnm30MH.js";import{i as Ja}from"./Globe01-BmMm30Hp.js";import{S as Yt}from"./scroll-area-BcoH4ReJ.js";import{c as Tt,T as Vt,a as Dt}from"./tooltip-Ch_anXXw.js";import{d as Qa,h as Xa,c as Za,e as eo,b as to,D as no}from"./dialog-BVRmgEZZ.js";import{I as so}from"./input-DhQYTu0H.js";import{H as ls,I as ao,J as oo,K as cs,L as io,N as ro,V as lo,O as co,Q as us,T as uo,U as mo,W as It,X as ds,Y as fo,Z as po,e as go,f as ho,h as vo,u as So,_ as On,$ as yo,a0 as bo,a1 as xo,a2 as _o,a3 as jo,p as Jt,a4 as Eo,z as bt,a5 as Kt,a6 as Ro,a7 as wo,a8 as st,a9 as $n,aa as ko,w as To,ab as zn,ac as Vo,ad as Do,G as Lt,ae as Qt,af as Hn,M as No,A as Sn,ag as vt,F as wt,ah as Ao,ai as Po,E as Co,aj as Mo,ak as Ko,al as xt,am as Lo,an as Bo,ao as Io,d as Fo,ap as Un,aq as Bt,ar as qn,as as Oo,at as $o,au as zo,av as Ho,y as yn,aw as Gn,ax as Wn,ay as kt,az as Xt,aA as bn,aB as Uo,aC as qo,aD as Go,aE as Wo,aF as Yo,aG as Jo}from"./runnable-block-editor-BzVWSPHL.js";import{m as Qo,u as Xo,P as Zo}from"./mustache-DCrtQrVG.js";import{b as ms,G as ei,e as ti,j as ni,g as si,r as Zt,M as Yn}from"./claim-phase-copy-0btUuJoC.js";import{a as fs}from"./Copy01-KomJ49aq.js";import{i as ai}from"./Settings02-BZd-qcWS.js";import{s as oi}from"./Eye-KAte8whD.js";import{s as ii}from"./TrendUp01-kAJZHj1O.js";import{s as jn}from"./Plus-BuCQnPNG.js";import{s as ps}from"./Trash01-Bt7knSgw.js";import{i as ri}from"./Zap-CIXkomUE.js";import{a as gs,b as en,d as hs,K as vs,P as Ss,u as ys,C as bs,s as xs,e as Ft,D as _s,c as js,S as Es,v as Rs}from"./rich-text-link-control-XbfHUQMq.js";import{s as li}from"./safe-image-url-D5z803Ot.js";import{a as ci,P as ui,b as di}from"./page-seo-form-BgfALyeP.js";import{a as mi}from"./Tool01-BlcXvpRH.js";import{u as fi,A as pi}from"./use-section-preview-base-BFHyMpzJ.js";import{b as Jn,a as gi}from"./variant-matcher-override-DPq8EH6t.js";import"./use-panel-navigate-7owLLl5-.js";import"./thread-route-D5lCt0bb.js";import"./use-project-scope-D7MgPnbk.js";import"./github-repo-BknN0SVI.js";import"./autosend-DrbiZ7KD.js";import"./thread-intent-BcdlSG8J.js";import"./slugify-CEUa2lfQ.js";import"./hooks-DZN1ZKP-.js";import"./use-mcp-client-Di29uH1Z.js";import"./auth-BAIe_T8g.js";import"./backoff-8mStPHYB.js";import"./task-board-CwfOEd0p.js";import"./schema-iizf-P2g.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Cpg4O4cU.js";import"./use-ai-providers-BLQu9X4b.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CztvGxbe.js";import"./use-organization-settings-B7QbhgeU.js";import"./AlertCircle-CvB24fpQ.js";import"./ArrowUp-CMB2_B55.js";import"./ArrowLeft-CuPXwhY9.js";import"./Tool02-BcSzj1eN.js";import"./ArrowRight-DaeNVQjU.js";import"./ZoomOut-CvMfmw42.js";import"./Globe04-D2pxwWDa.js";import"./CheckCircle-L9rxLy8_.js";import"./UserSquare-DU12tvTU.js";import"./CreditCard01-DNXTqT2E.js";import"./DotsVertical-CycZdUV6.js";import"./Download01-CK_3UsO1.js";import"./Share07-tpVfUX9-.js";import"./XClose-CZo1KF0t.js";import"./Image01-BHoZzJSj.js";import"./Key01-BiLmhCHZ.js";import"./LayoutLeft-Dk8cMo-H.js";import"./Link01-BSX_7wIu.js";import"./LinkExternal01-COMF34Up.js";import"./Monitor01-C25vfwGa.js";import"./Sun-C6ausIaw.js";import"./Package-BCflABQ6.js";import"./Palette-By8W7B7e.js";import"./Play-C6orNG1z.js";import"./SearchLg-VMEsA-e7.js";import"./SearchMd-DnahVlUn.js";import"./Stars01-BcbLgM7d.js";import"./Upload01-CgS71RUS.js";import"./User01-DKY_ILGI.js";import"./Users01-COWDl5zV.js";import"./XCircle-BirmII4v.js";import"./X-DcceC-EQ.js";import"./select--0Nrx9pz.js";import"./index-BK4gf4on.js";import"./use-session-runtime-B1xdg1Mc.js";import"./decofile-api-BCvZWky6.js";import"./utils-gTOau_mh.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-mgqlVrg4.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-Cc5z9cdY.js";import"./use-copy-BdX2_tpS.js";import"./usage-stats-DECzmKdw.js";import"./markdown-CdMnKnHM.js";import"./org-file-open-context-DNcgI0Uf.js";import"./use-mobile-Br1FbuT5.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-kud7EQ1E.js";import"./types-DAtj8pL_.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-D0oBW_qu.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./shell-layout-C7iq_ybu.js";import"./avatar-DAAVe66-.js";import"./download-app-dialog-BSQlf9Pn.js";import"./command-uelHA4Qc.js";import"./index--5vhPfMl.js";import"./integration-icon-CT7gtNMF.js";import"./project-icon-BuXyfXr6.js";import"./required-auth-layout-DbcZh8KB.js";import"./use-org-sso-CSb7uzWR.js";import"./sheet-KfyT4iJh.js";import"./use-connection-DEkZ7Z3y.js";import"./use-navigate-to-agent-BIB5Nkxx.js";import"./use-mcp-prompts-pRQvLesG.js";import"./index-B4Sw3hof.js";import"./form-DwCt2SR2.js";import"./label-C5dVgFkO.js";import"./use-thread-outputs-BwzUBEaq.js";import"./file-type-icon-Dg8sADAf.js";import"./popover-BREpugAm.js";import"./monaco-editor-BM2SBH_J.js";import"./editor-B9nqdqUb.js";import"./calendar-D29VArmq.js";import"./textarea-CNloF_6k.js";import"./switch-uCmnTmA3.js";import"./search-input-CmWlEMU8.js";import"./tabs-CMPX7aLH.js";import"./use-debounced-value-CPADjlu8.js";import"./use-file-configs-T83FDKTN.js";import"./asset-utils-Ckrgql68.js";import"./useInfiniteQuery-DvCOEAKG.js";import"./infiniteQueryObserver-CzIaF1BV.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-BPpZ90Kk.js";import"./alert-dialog-DQ7VA4it.js";import"./sandbox-git-api-CMdpE2TE.js";import"./section-preview-url-Csj0_ZDg.js";function hi(d){return d.schema?.definitions??d.schema?.$defs??{}}function ws(d,e){const o=hi(e),c=o[btoa(d)];if(!c)return[];const m=[c];if(Array.isArray(c.allOf)){const _=c.allOf.find(x=>typeof x.$ref=="string")?.$ref;if(typeof _=="string"){const x=o[_.replace("#/definitions/","")];x&&m.push(x)}}return m}function vi(d,e){for(const o of ws(d,e)){const c=typeof o.image=="string"?o.image:void 0;if(c?.includes("{{{"))return c}}function Si(d,e){if(!e)return;const o=ls(d);if(!o)return;const c=vi(o.resolveType,e);if(!c)return;const m=ao(c,o.data);if(m)return li(m)}const yi={escape:oo};function bi(d,e){for(const o of ws(d,e)){const c=typeof o.title=="string"?o.title:void 0;if(c?.includes("{{"))return c}}function xi(d,e){if(!e)return;const o=ls(d);if(o)try{const c=bi(o.resolveType,e);return c&&Qo.render(c,o.data,{},yi).trim()||void 0}catch{return}}const _i="text-global-section-fg hover:bg-global-section/12 dark:text-global-section-fg-dark dark:hover:bg-global-section/15",ji="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 Qn(d){return Array.from({length:d},(e,o)=>({id:crypto.randomUUID(),index:o}))}function ks(d){return d.map((e,o)=>({...e,index:o}))}function Ei(d,e){if(e===d.length)return d;if(e<d.length)return ks(d.slice(0,e));const o=Array.from({length:e-d.length},(c,m)=>({id:crypto.randomUUID(),index:d.length+m}));return[...d,...o]}function Ts(d){const e=at.c(33),{section:o,raw:c,meta:m,decofile:_}=d,x=o.isSavedBlock===!0,v=o.isMultivariate===!0;let b;e[0]!==m||e[1]!==c?(b=c&&m?Si(c,m):void 0,e[0]=m,e[1]=c,e[2]=b):b=e[2];const g=b;let R;e[3]!==m||e[4]!==v||e[5]!==c||e[6]!==x?(R=c&&m&&!x&&!v?xi(c,m):void 0,e[3]=m,e[4]=v,e[5]=c,e[6]=x,e[7]=R):R=e[7];const O=R;let K;e[8]!==_||e[9]!==m||e[10]!==c||e[11]!==o?(K=co(c,o,_,m),e[8]=_,e[9]=m,e[10]=c,e[11]=o,e[12]=K):K=e[12];const N=K;let u;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Ua,{className:"h-4 w-4 shrink-0 text-muted-foreground/40"}),e[13]=u):u=e[13];let P;e[14]!==g?(P=g&&n.jsx("img",{src:g,alt:"",referrerPolicy:"no-referrer",className:"h-12 max-w-[100px] shrink-0 rounded object-cover"}),e[14]=g,e[15]=P):P=e[15];let h;e[16]!==v||e[17]!==x?(h=x?{color:ei}:v?{color:"oklch(0.65 0.15 160)"}:void 0,e[16]=v,e[17]=x,e[18]=h):h=e[18];let A;e[19]!==h?(A=n.jsx(_n,{className:"h-4 w-4 shrink-0",style:h}),e[19]=h,e[20]=A):A=e[20];const i=o.isHidden&&"line-through opacity-50";let D;e[21]!==i?(D=qe("min-w-0 flex-1 truncate text-sm font-medium",i),e[21]=i,e[22]=D):D=e[22];const r=O??o.label;let q;e[23]!==r||e[24]!==D?(q=n.jsx("span",{className:D,children:r}),e[23]=r,e[24]=D,e[25]=q):q=e[25];let L;e[26]!==N?(L=N&&n.jsx(uo,{className:"absolute -right-0.5 -top-0.5"}),e[26]=N,e[27]=L):L=e[27];let ae;return e[28]!==q||e[29]!==L||e[30]!==P||e[31]!==A?(ae=n.jsxs(n.Fragment,{children:[u,P,A,q,L]}),e[28]=q,e[29]=L,e[30]=P,e[31]=A,e[32]=ae):ae=e[32],ae}const Ri="w-7 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",wi="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]",ki="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";function xn(d,e){return qe("h-7 shrink-0 overflow-hidden",e?Ri:d?ki:wi)}function Vs(d,e){const o=d.isSavedBlock===!0,c=d.isMultivariate===!0;return qe("group relative flex select-none items-center gap-2 rounded-md px-2 py-2.5",e?"bg-accent text-accent-foreground":o?_i:c?us:"text-foreground/80 hover:bg-accent hover:text-accent-foreground")}function Ti(d){const e=at.c(83),{section:o,raw:c,meta:m,decofile:_,sortableId:x,selected:v,onSelect:b,onDelete:g,onDuplicate:R,onMakeReusable:O,onToggleHidden:K,onToggleLazy:N,onAddVariant:u,onDetach:P}=d,h=Nt(),A=c?ms(c.__resolveType??""):!1,i=o.isHidden===!0,D=A||i;let r;e[0]!==o?(r=io(o),e[0]=o,e[1]=r):r=e[1];const q=r;let L;e[2]!==x?(L={id:x,animateLayoutChanges:Pi},e[2]=x,e[3]=L):L=e[3];const{attributes:ae,listeners:oe,setNodeRef:re,transform:f,isDragging:B}=ys(L);let Q;e[4]!==f?(Q=bs.Transform.toString(f?{...f,x:0}:null),e[4]=f,e[5]=Q):Q=e[5];const k=B?0:void 0;let ee;e[6]!==Q||e[7]!==k?(ee={transform:Q,opacity:k},e[6]=Q,e[7]=k,e[8]=ee):ee=e[8];const V=ee;let ge;e[9]!==o?(ge=ro(o),e[9]=o,e[10]=ge):ge=e[10];const G=ge;let Re;e[11]!==b?(Re=E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),b())},e[11]=b,e[12]=Re):Re=e[12];const he=B?"cursor-grabbing":"cursor-pointer";let Ae;e[13]!==o||e[14]!==v||e[15]!==he?(Ae=qe("touch-none transition-colors",he,Vs(o,v)),e[13]=o,e[14]=v,e[15]=he,e[16]=Ae):Ae=e[16];let Pe;e[17]!==_||e[18]!==m||e[19]!==c||e[20]!==o?(Pe=n.jsx(Ts,{section:o,raw:c,meta:m,decofile:_}),e[17]=_,e[18]=m,e[19]=c,e[20]=o,e[21]=Pe):Pe=e[21];let we;e[22]!==i||e[23]!==h?(we=h(i?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[22]=i,e[23]=h,e[24]=we):we=e[24];let ke;e[25]!==K?(ke=E=>{E.stopPropagation(),K()},e[25]=K,e[26]=ke):ke=e[26];let ce;e[27]!==i?(ce=i?n.jsx(ai,{className:"h-3.5 w-3.5"}):n.jsx(oi,{className:"h-3.5 w-3.5"}),e[27]=i,e[28]=ce):ce=e[28];let M;e[29]!==i||e[30]!==h?(M=h(i?"sectionsEditor.sectionList.showSection":"sectionsEditor.sectionList.hideSection"),e[29]=i,e[30]=h,e[31]=M):M=e[31];let ve;e[32]!==M?(ve=n.jsx(Dt,{side:"bottom",children:M}),e[32]=M,e[33]=ve):ve=e[33];const Oe=as,Ce=ss,Te=!0,W=nt,ue="button",$e="ghost",Me="icon";let te;e[34]!==h?(te=h("sectionsEditor.sectionList.sectionActionsMenu"),e[34]=h,e[35]=te):te=e[35];const Se=qe(xn(D,!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 ne;e[36]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(os,{className:"h-3.5 w-3.5"}),e[36]=ne):ne=e[36];let le;e[37]!==W||e[38]!==te||e[39]!==Se?(le=n.jsx(W,{type:ue,variant:$e,size:Me,"aria-label":te,className:Se,onClick:Di,onPointerDown:Vi,children:ne}),e[37]=W,e[38]=te,e[39]=Se,e[40]=le):le=e[40];let de;e[41]!==Ce||e[42]!==le?(de=n.jsx(Ce,{asChild:Te,children:le}),e[41]=Ce,e[42]=le,e[43]=de):de=e[43];let Ve;e[44]!==R?(Ve=E=>{E.stopPropagation(),R()},e[44]=R,e[45]=Ve):Ve=e[45];let me;e[46]===Symbol.for("react.memo_cache_sentinel")?(me=n.jsx(fs,{className:"h-4 w-4"}),e[46]=me):me=e[46];let ye;e[47]!==h?(ye=h("sectionsEditor.sectionList.duplicateMenuItem"),e[47]=h,e[48]=ye):ye=e[48];let be;e[49]!==Ve||e[50]!==ye?(be=n.jsxs(St,{onClick:Ve,children:[me,ye]}),e[49]=Ve,e[50]=ye,e[51]=be):be=e[51];let xe;e[52]!==q||e[53]!==u||e[54]!==h?(xe=q&&n.jsxs(St,{className:lo,onClick:E=>{E.stopPropagation(),u()},children:[n.jsx(ii,{className:"h-4 w-4"}),h("sectionsEditor.sectionList.addVariantMenuItem")]}),e[52]=q,e[53]=u,e[54]=h,e[55]=xe):xe=e[55];let I;e[56]!==G||e[57]!==O||e[58]!==h?(I=G&&n.jsxs(St,{className:ji,onClick:E=>{E.stopPropagation(),O()},children:[n.jsx(_n,{className:"h-4 w-4"}),h("sectionsEditor.sectionList.makeReusableMenuItem")]}),e[56]=G,e[57]=O,e[58]=h,e[59]=I):I=e[59];let X;e[60]!==P||e[61]!==o.isMultivariate||e[62]!==o.isSavedBlock||e[63]!==h?(X=o.isSavedBlock===!0&&!o.isMultivariate&&n.jsxs(St,{onClick:E=>{E.stopPropagation(),P()},children:[n.jsx(_n,{className:"h-4 w-4"}),h("sectionsEditor.sectionList.detachMenuItem")]}),e[60]=P,e[61]=o.isMultivariate,e[62]=o.isSavedBlock,e[63]=h,e[64]=X):X=e[64];let ie;e[65]!==g?(ie=E=>{E.stopPropagation(),g()},e[65]=g,e[66]=ie):ie=e[66];let _e;e[67]===Symbol.for("react.memo_cache_sentinel")?(_e=n.jsx(ps,{className:"h-4 w-4"}),e[67]=_e):_e=e[67];let fe;e[68]!==h?(fe=h("sectionsEditor.sectionList.deleteMenuItem"),e[68]=h,e[69]=fe):fe=e[69];let se;e[70]!==ie||e[71]!==fe?(se=n.jsxs(St,{className:"text-destructive focus:text-destructive",onClick:ie,children:[_e,fe]}),e[70]=ie,e[71]=fe,e[72]=se):se=e[72];let Ke;e[73]!==be||e[74]!==xe||e[75]!==I||e[76]!==X||e[77]!==se?(Ke=n.jsxs(is,{align:"end",className:"w-44",children:[be,xe,I,X,se]}),e[73]=be,e[74]=xe,e[75]=I,e[76]=X,e[77]=se,e[78]=Ke):Ke=e[78];let je;return e[79]!==Oe||e[80]!==de||e[81]!==Ke?(je=n.jsxs(Oe,{children:[de,Ke]}),e[79]=Oe,e[80]=de,e[81]=Ke,e[82]=je):je=e[82],n.jsxs("div",{ref:re,style:V,...ae,...oe,role:"button",tabIndex:0,onClick:b,onKeyDown:Re,className:Ae,children:[Pe,!o.isMultivariate&&n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx(nt,{type:"button",variant:"ghost",size:"icon","aria-label":h(A?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender"),className:qe(xn(D,A)),onClick:E=>{E.stopPropagation(),N()},onPointerDown:Ai,children:n.jsx(ri,{className:qe("h-3.5 w-3.5",A&&"text-yellow-500")})})}),n.jsx(Dt,{side:"bottom",children:h(A?"sectionsEditor.sectionList.disableAsyncRender":"sectionsEditor.sectionList.enableAsyncRender")})]}),n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx(nt,{type:"button",variant:"ghost",size:"icon","aria-label":we,className:qe(xn(D,i)),onClick:ke,onPointerDown:Ni,children:ce})}),ve]}),je]})}function Vi(d){return d.stopPropagation()}function Di(d){return d.stopPropagation()}function Ni(d){return d.stopPropagation()}function Ai(d){return d.stopPropagation()}function Pi(){return!1}function Ci(d){const e=at.c(106),{listKey:o,rawSections:c,sections:m,meta:_,decofile:x,selectedIndex:v,onSelect:b,onReorder:g,onDelete:R,onDuplicate:O,onMakeReusable:K,onToggleHidden:N,onToggleLazy:u,onAddVariant:P,onDetach:h,onAddSection:A,canAddSection:i}=d,D=i===void 0?!0:i,r=Nt();let q;e[0]!==m.length?(q=()=>Qn(m.length),e[0]=m.length,e[1]=q):q=e[1];const[L,ae]=w.useState(q),[oe,re]=w.useState(null),[f,B]=w.useState(o),[Q,k]=w.useState(m.length),ee=w.useRef(!1);f!==o?(B(o),k(m.length),ae(Qn(m.length))):Q!==m.length&&(k(m.length),ae(je=>Ei(je,m.length)));let V;e[2]===Symbol.for("react.memo_cache_sentinel")?(V={activationConstraint:{distance:8}},e[2]=V):V=e[2];let ge;e[3]===Symbol.for("react.memo_cache_sentinel")?(ge={coordinateGetter:xs},e[3]=ge):ge=e[3];const G=gs(en(Ss,V),en(vs,ge));let Re;e[4]!==L?(Re=L.map(Mi),e[4]=L,e[5]=Re):Re=e[5];const he=Re;let Ae;e[6]===Symbol.for("react.memo_cache_sentinel")?(Ae=je=>{re(String(je.active.id))},e[6]=Ae):Ae=e[6];const Pe=Ae;let we;e[7]!==he||e[8]!==g?(we=je=>{re(null);const{active:E,over:H}=je;if(!H||E.id===H.id)return;const Qe=he.indexOf(String(E.id)),Ye=he.indexOf(String(H.id));Qe===-1||Ye===-1||(ae(Le=>ks(Ft([...Le],Qe,Ye))),ee.current=!0,requestAnimationFrame(()=>{ee.current=!1}),g?.(Qe,Ye))},e[7]=he,e[8]=g,e[9]=we):we=e[9];const ke=we;let ce;e[10]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>{re(null)},e[10]=ce):ce=e[10];const M=ce;let ve,Oe,Ce,Te,W,ue,$e,Me,te,Se,ne,le,de,Ve,me;if(e[11]!==oe||e[12]!==D||e[13]!==x||e[14]!==L||e[15]!==he||e[16]!==ke||e[17]!==_||e[18]!==A||e[19]!==P||e[20]!==R||e[21]!==h||e[22]!==O||e[23]!==K||e[24]!==b||e[25]!==N||e[26]!==u||e[27]!==c||e[28]!==m||e[29]!==v||e[30]!==G||e[31]!==r){Ve=Symbol.for("react.early_return_sentinel");e:{const je=E=>{ee.current||b(E)};if(e[47]!==oe||e[48]!==D||e[49]!==L||e[50]!==A||e[51]!==c||e[52]!==m||e[53]!==r){const E=oe?L.find(H=>H.id===oe):null;if(Te=E!=null?m[E.index]:null,Ce=E!=null?c[E.index]:void 0,L.length===0){let H;e[57]!==r?(H=r("sectionsEditor.sectionList.noSections"),e[57]=r,e[58]=H):H=e[58];let Qe;e[59]!==H?(Qe=n.jsx("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:H}),e[59]=H,e[60]=Qe):Qe=e[60];const Ye=!D;let Le;e[61]===Symbol.for("react.memo_cache_sentinel")?(Le=n.jsx(jn,{size:14}),e[61]=Le):Le=e[61];let ze;e[62]!==r?(ze=r("sectionsEditor.sectionList.addSectionButton"),e[62]=r,e[63]=ze):ze=e[63];let ut;e[64]!==A||e[65]!==Ye||e[66]!==ze?(ut=n.jsxs(nt,{type:"button",variant:"outline",size:"sm",className:"w-full",disabled:Ye,onClick:A,children:[Le,ze]}),e[64]=A,e[65]=Ye,e[66]=ze,e[67]=ut):ut=e[67];let Be;e[68]!==Qe||e[69]!==ut?(Be=n.jsxs("div",{className:"space-y-2",children:[Qe,ut]}),e[68]=Qe,e[69]=ut,e[70]=Be):Be=e[70],Ve=Be;break e}de=qe(E&&"cursor-grabbing"),e[47]=oe,e[48]=D,e[49]=L,e[50]=A,e[51]=c,e[52]=m,e[53]=r,e[54]=Ce,e[55]=Te,e[56]=de}else Ce=e[54],Te=e[55],de=e[56];Oe=_s,Me=G,te=js,Se=Pe,ne=ke,le=M,ve=Es,ue=he,$e=Rs,me="space-y-1",W=L.map(E=>{const H=m[E.index];return H?n.jsx(Ti,{sortableId:E.id,section:H,raw:c[E.index],meta:_,decofile:x,selected:v===E.index,onSelect:()=>je(E.index),onDelete:()=>R(E.index),onDuplicate:()=>O(E.index),onMakeReusable:()=>K(E.index),onToggleHidden:()=>N(E.index),onToggleLazy:()=>u(E.index),onAddVariant:()=>P(E.index),onDetach:()=>h(E.index)},E.id):null})}e[11]=oe,e[12]=D,e[13]=x,e[14]=L,e[15]=he,e[16]=ke,e[17]=_,e[18]=A,e[19]=P,e[20]=R,e[21]=h,e[22]=O,e[23]=K,e[24]=b,e[25]=N,e[26]=u,e[27]=c,e[28]=m,e[29]=v,e[30]=G,e[31]=r,e[32]=ve,e[33]=Oe,e[34]=Ce,e[35]=Te,e[36]=W,e[37]=ue,e[38]=$e,e[39]=Me,e[40]=te,e[41]=Se,e[42]=ne,e[43]=le,e[44]=de,e[45]=Ve,e[46]=me}else ve=e[32],Oe=e[33],Ce=e[34],Te=e[35],W=e[36],ue=e[37],$e=e[38],Me=e[39],te=e[40],Se=e[41],ne=e[42],le=e[43],de=e[44],Ve=e[45],me=e[46];if(Ve!==Symbol.for("react.early_return_sentinel"))return Ve;let ye;e[71]!==W||e[72]!==me?(ye=n.jsx("div",{className:me,children:W}),e[71]=W,e[72]=me,e[73]=ye):ye=e[73];let be;e[74]!==ve||e[75]!==ue||e[76]!==$e||e[77]!==ye?(be=n.jsx(ve,{items:ue,strategy:$e,children:ye}),e[74]=ve,e[75]=ue,e[76]=$e,e[77]=ye,e[78]=be):be=e[78];let xe;e[79]!==Ce||e[80]!==Te||e[81]!==x||e[82]!==_?(xe=Te?n.jsx("div",{className:qe("cursor-grabbing shadow-lg ring-1 ring-border/60",Vs(Te,!1)),children:n.jsx(Ts,{section:Te,raw:Ce,meta:_,decofile:x})}):null,e[79]=Ce,e[80]=Te,e[81]=x,e[82]=_,e[83]=xe):xe=e[83];let I;e[84]!==xe?(I=ns.createPortal(n.jsx(hs,{dropAnimation:cs,children:xe}),document.body),e[84]=xe,e[85]=I):I=e[85];let X;e[86]!==Oe||e[87]!==Me||e[88]!==te||e[89]!==Se||e[90]!==ne||e[91]!==le||e[92]!==be||e[93]!==I?(X=n.jsxs(Oe,{sensors:Me,collisionDetection:te,onDragStart:Se,onDragEnd:ne,onDragCancel:le,children:[be,I]}),e[86]=Oe,e[87]=Me,e[88]=te,e[89]=Se,e[90]=ne,e[91]=le,e[92]=be,e[93]=I,e[94]=X):X=e[94];const ie=!D;let _e;e[95]===Symbol.for("react.memo_cache_sentinel")?(_e=n.jsx(jn,{size:14}),e[95]=_e):_e=e[95];let fe;e[96]!==r?(fe=r("sectionsEditor.sectionList.addSectionButton"),e[96]=r,e[97]=fe):fe=e[97];let se;e[98]!==A||e[99]!==ie||e[100]!==fe?(se=n.jsxs(nt,{type:"button",variant:"outline",size:"sm",className:"mt-2 w-full",disabled:ie,onClick:A,children:[_e,fe]}),e[98]=A,e[99]=ie,e[100]=fe,e[101]=se):se=e[101];let Ke;return e[102]!==de||e[103]!==X||e[104]!==se?(Ke=n.jsxs("div",{className:de,children:[X,se]}),e[102]=de,e[103]=X,e[104]=se,e[105]=Ke):Ke=e[105],Ke}function Mi(d){return d.id}function Xn(d){const e=at.c(57),{open:o,initialName:c,autoLabel:m,isPending:_,onSubmit:x,onOpenChange:v}=d,b=_===void 0?!1:_,g=Nt(),[R,O]=w.useState(c),[K,N]=w.useState(o);o!==K&&(N(o),o&&O(c));let u;e[0]!==b||e[1]!==v?(u=Ae=>{!Ae&&!b&&v(!1)},e[0]=b,e[1]=v,e[2]=u):u=e[2];const P=u;let h;e[3]!==b||e[4]!==R||e[5]!==x?(h=async Ae=>{Ae.preventDefault(),!b&&await x(R.trim())},e[3]=b,e[4]=R,e[5]=x,e[6]=h):h=e[6];const A=h;let i;e[7]!==g?(i=g("sectionsEditor.variantRenameDialog.title"),e[7]=g,e[8]=i):i=e[8];let D;e[9]!==i?(D=n.jsx(Qa,{children:i}),e[9]=i,e[10]=D):D=e[10];let r;e[11]!==m||e[12]!==g?(r=g("sectionsEditor.variantRenameDialog.description",{fallback:m||g("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=m,e[12]=g,e[13]=r):r=e[13];let q;e[14]!==r?(q=n.jsx(Xa,{children:r}),e[14]=r,e[15]=q):q=e[15];let L;e[16]!==D||e[17]!==q?(L=n.jsxs(Za,{children:[D,q]}),e[16]=D,e[17]=q,e[18]=L):L=e[18];let ae;e[19]!==g?(ae=g("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=g,e[20]=ae):ae=e[20];let oe;e[21]!==ae?(oe=n.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:ae}),e[21]=ae,e[22]=oe):oe=e[22];let re;e[23]===Symbol.for("react.memo_cache_sentinel")?(re=Ae=>O(Ae.target.value),e[23]=re):re=e[23];let f;e[24]!==m||e[25]!==b||e[26]!==R?(f=n.jsx(so,{id:"variant-rename-name",value:R,onChange:re,placeholder:m,autoFocus:!0,disabled:b}),e[24]=m,e[25]=b,e[26]=R,e[27]=f):f=e[27];let B;e[28]!==oe||e[29]!==f?(B=n.jsxs("div",{className:"space-y-1.5 py-4",children:[oe,f]}),e[28]=oe,e[29]=f,e[30]=B):B=e[30];let Q;e[31]!==v?(Q=()=>v(!1),e[31]=v,e[32]=Q):Q=e[32];let k;e[33]!==g?(k=g("sectionsEditor.variantRenameDialog.cancel"),e[33]=g,e[34]=k):k=e[34];let ee;e[35]!==b||e[36]!==Q||e[37]!==k?(ee=n.jsx(nt,{type:"button",variant:"outline",onClick:Q,disabled:b,children:k}),e[35]=b,e[36]=Q,e[37]=k,e[38]=ee):ee=e[38];let V;e[39]!==b||e[40]!==g?(V=b?n.jsxs(n.Fragment,{children:[n.jsx(rs,{className:"size-3.5"}),g("sectionsEditor.variantRenameDialog.saving")]}):g("sectionsEditor.variantRenameDialog.save"),e[39]=b,e[40]=g,e[41]=V):V=e[41];let ge;e[42]!==b||e[43]!==V?(ge=n.jsx(nt,{type:"submit",disabled:b,children:V}),e[42]=b,e[43]=V,e[44]=ge):ge=e[44];let G;e[45]!==ee||e[46]!==ge?(G=n.jsxs(eo,{children:[ee,ge]}),e[45]=ee,e[46]=ge,e[47]=G):G=e[47];let Re;e[48]!==A||e[49]!==B||e[50]!==G||e[51]!==L?(Re=n.jsx(to,{className:"sm:max-w-md",children:n.jsxs("form",{onSubmit:A,children:[L,B,G]})}),e[48]=A,e[49]=B,e[50]=G,e[51]=L,e[52]=Re):Re=e[52];let he;return e[53]!==P||e[54]!==o||e[55]!==Re?(he=n.jsx(no,{open:o,onOpenChange:P,children:Re}),e[53]=P,e[54]=o,e[55]=Re,e[56]=he):he=e[56],he}function Ds(d){const e=at.c(5),{rule:o,matchers:c}=d,m=o?.__resolveType??"";let _;if(e[0]!==c||e[1]!==m){const g=c.find(R=>R.resolveType===m)?.iconName??mo(m);_=qa(g),e[0]=c,e[1]=m,e[2]=_}else _=e[2];const x=_;if(!x)return null;let v;return e[3]!==x?(v=n.jsx(x,{size:14,className:"shrink-0"}),e[3]=x,e[4]=v):v=e[4],v}function Zn(d){return d.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
|
|
2
|
-
`)}function es(d){return d.map((e,o)=>({id:crypto.randomUUID(),index:o,variant:e}))}function Ki(d,e){const o=new Map;for(const c of d){const m=o.get(c.variant.label);m?m.push(c):o.set(c.variant.label,[c])}return e.map((c,m)=>({id:o.get(c.label)?.shift()?.id??crypto.randomUUID(),index:m,variant:c}))}function Li(d){return d.map((e,o)=>({...e,index:o}))}function Ns(d){const e=at.c(17),{label:o,effectiveRule:c,matchers:m,canDelete:_,dragging:x,onRename:v,onDuplicate:b,onDelete:g}=d,R=Nt();let O;e[0]!==c||e[1]!==m?(O=n.jsx(Ds,{rule:c,matchers:m}),e[0]=c,e[1]=m,e[2]=O):O=e[2];let K;e[3]!==o?(K=n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:o}),e[3]=o,e[4]=K):K=e[4];let N;e[5]!==_||e[6]!==x||e[7]!==o||e[8]!==g||e[9]!==b||e[10]!==v||e[11]!==R?(N=!x&&n.jsxs(as,{children:[n.jsx(ss,{asChild:!0,children:n.jsx(nt,{type:"button",variant:"ghost",size:"icon","aria-label":R("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:o}),className:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100",onClick:Ii,onPointerDown:Bi,children:n.jsx(os,{size:14})})}),n.jsxs(is,{align:"end",className:"w-36",children:[n.jsxs(St,{onClick:P=>{P.stopPropagation(),v?.()},children:[n.jsx(mi,{size:14}),R("sectionsEditor.pageVariantTabs.renameAction")]}),n.jsxs(St,{onClick:P=>{P.stopPropagation(),b?.()},children:[n.jsx(fs,{size:14}),R("sectionsEditor.pageVariantTabs.duplicateAction")]}),n.jsx(La,{}),n.jsxs(St,{variant:"destructive",disabled:!_,onClick:P=>{P.stopPropagation(),g?.()},children:[n.jsx(ps,{size:14}),R("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[5]=_,e[6]=x,e[7]=o,e[8]=g,e[9]=b,e[10]=v,e[11]=R,e[12]=N):N=e[12];let u;return e[13]!==O||e[14]!==K||e[15]!==N?(u=n.jsxs(n.Fragment,{children:[O,K,N]}),e[13]=O,e[14]=K,e[15]=N,e[16]=u):u=e[16],u}function Bi(d){return d.stopPropagation()}function Ii(d){return d.stopPropagation()}function Fi(d){const e=at.c(33),{entry:o,isActive:c,canDelete:m,decofile:_,meta:x,matchers:v,onSelect:b,onRename:g,onDuplicate:R,onDelete:O}=d;let K;e[0]!==o.id?(K={id:o.id,animateLayoutChanges:Oi},e[0]=o.id,e[1]=K):K=e[1];const{attributes:N,listeners:u,setNodeRef:P,transform:h,isDragging:A}=ys(K);let i;e[2]!==h?(i=bs.Transform.toString(h?{...h,x:0}:null),e[2]=h,e[3]=i):i=e[3];const D=A?0:void 0;let r;e[4]!==i||e[5]!==D?(r={transform:i,opacity:D},e[4]=i,e[5]=D,e[6]=r):r=e[6];const q=r,L=x??void 0;let ae;e[7]!==_||e[8]!==o.variant.rule||e[9]!==L?(ae=It(o.variant.rule,_,L),e[7]=_,e[8]=o.variant.rule,e[9]=L,e[10]=ae):ae=e[10];const oe=ae;let re;e[11]!==b?(re=V=>{V.target===V.currentTarget&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),b())},e[11]=b,e[12]=re):re=e[12];const f=A?"cursor-grabbing":"cursor-pointer active:cursor-grabbing",B=c?ds:us;let Q;e[13]!==f||e[14]!==B?(Q=qe("group flex select-none items-center gap-2 rounded-md px-2 py-2.5 transition-colors touch-none",f,B),e[13]=f,e[14]=B,e[15]=Q):Q=e[15];let k;e[16]!==m||e[17]!==oe||e[18]!==o.variant.label||e[19]!==v||e[20]!==O||e[21]!==R||e[22]!==g?(k=n.jsx(Ns,{label:o.variant.label,effectiveRule:oe,matchers:v,canDelete:m,onRename:g,onDuplicate:R,onDelete:O}),e[16]=m,e[17]=oe,e[18]=o.variant.label,e[19]=v,e[20]=O,e[21]=R,e[22]=g,e[23]=k):k=e[23];let ee;return e[24]!==N||e[25]!==u||e[26]!==b||e[27]!==P||e[28]!==q||e[29]!==Q||e[30]!==k||e[31]!==re?(ee=n.jsx("div",{ref:P,style:q,...N,...u,onClick:b,onKeyDown:re,className:Q,children:k}),e[24]=N,e[25]=u,e[26]=b,e[27]=P,e[28]=q,e[29]=Q,e[30]=k,e[31]=re,e[32]=ee):ee=e[32],ee}function Oi(){return!1}function $i(d){const e=at.c(9),{variant:o,decofile:c,meta:m,matchers:_}=d,x=m??void 0;let v;e[0]!==c||e[1]!==x||e[2]!==o.rule?(v=It(o.rule,c,x),e[0]=c,e[1]=x,e[2]=o.rule,e[3]=v):v=e[3];const b=v;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=qe("flex items-center gap-2 rounded-md px-2 py-2.5 shadow-lg ring-1 ring-border/60 cursor-grabbing",ds),e[4]=g):g=e[4];let R;return e[5]!==b||e[6]!==_||e[7]!==o.label?(R=n.jsx("div",{className:g,children:n.jsx(Ns,{label:o.label,effectiveRule:b,matchers:_,canDelete:!1,dragging:!0})}),e[5]=b,e[6]=_,e[7]=o.label,e[8]=R):R=e[8],R}function zi(d){const e=at.c(91),{listKey:o,variants:c,activeIndex:m,decofile:_,meta:x,matchers:v,onSelect:b,onReorder:g,onRename:R,onDuplicate:O,onDelete:K,onAdd:N}=d,u=Nt();let P;e[0]!==c?(P=()=>es(c),e[0]=c,e[1]=P):P=e[1];const[h,A]=w.useState(P),[i,D]=w.useState(null),[r,q]=w.useState(o),[L,ae]=w.useState(c.length);let oe;e[2]!==c?(oe=()=>Zn(c),e[2]=c,e[3]=oe):oe=e[3];const[re,f]=w.useState(oe),B=w.useRef(!1),Q=Zn(c);r!==o?(q(o),ae(c.length),f(Q),A(es(c))):(L!==c.length||re!==Q)&&(ae(c.length),f(Q),A(I=>Ki(I,c)));let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k={activationConstraint:{distance:8}},e[4]=k):k=e[4];let ee;e[5]===Symbol.for("react.memo_cache_sentinel")?(ee={coordinateGetter:xs},e[5]=ee):ee=e[5];const V=gs(en(Ss,k),en(vs,ee));let ge;e[6]!==h?(ge=h.map(Hi),e[6]=h,e[7]=ge):ge=e[7];const G=ge,Re=c.length>1;let he;e[8]!==h?(he=I=>{const X=String(I.active.id);D(h.find(ie=>ie.id===X)??null)},e[8]=h,e[9]=he):he=e[9];const Ae=he;let Pe;e[10]!==G||e[11]!==g?(Pe=I=>{D(null);const{active:X,over:ie}=I;if(!ie||X.id===ie.id)return;const _e=G.indexOf(String(X.id)),fe=G.indexOf(String(ie.id));_e===-1||fe===-1||(A(se=>Li(Ft([...se],_e,fe))),B.current=!0,requestAnimationFrame(()=>{B.current=!1}),g(_e,fe))},e[10]=G,e[11]=g,e[12]=Pe):Pe=e[12];const we=Pe;let ke;e[13]===Symbol.for("react.memo_cache_sentinel")?(ke=()=>{D(null)},e[13]=ke):ke=e[13];const ce=ke;let M,ve,Oe,Ce,Te,W,ue,$e,Me,te,Se,ne,le;if(e[14]!==m||e[15]!==Re||e[16]!==_||e[17]!==h||e[18]!==G||e[19]!==we||e[20]!==Ae||e[21]!==v||e[22]!==x||e[23]!==N||e[24]!==K||e[25]!==O||e[26]!==R||e[27]!==b||e[28]!==V||e[29]!==u){const I=H=>{B.current||b(H)};Se="space-y-1 border-b p-2";let X;e[43]!==u?(X=u("sectionsEditor.pageVariantTabs.variantsLabel"),e[43]=u,e[44]=X):X=e[44];let ie;e[45]!==X?(ie=n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:X}),e[45]=X,e[46]=ie):ie=e[46];let _e;e[47]!==u?(_e=u("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),e[47]=u,e[48]=_e):_e=e[48];let fe;e[49]===Symbol.for("react.memo_cache_sentinel")?(fe=n.jsx(jn,{size:14}),e[49]=fe):fe=e[49];let se;e[50]!==N||e[51]!==_e?(se=n.jsx(Vt,{asChild:!0,children:n.jsx(nt,{type:"button",variant:"ghost",size:"icon","aria-label":_e,className:"size-6",onClick:N,children:fe})}),e[50]=N,e[51]=_e,e[52]=se):se=e[52];let Ke;e[53]!==u?(Ke=u("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[53]=u,e[54]=Ke):Ke=e[54];let je;e[55]!==Ke?(je=n.jsx(Dt,{children:Ke}),e[55]=Ke,e[56]=je):je=e[56];let E;e[57]!==se||e[58]!==je?(E=n.jsxs(Tt,{children:[se,je]}),e[57]=se,e[58]=je,e[59]=E):E=e[59],e[60]!==ie||e[61]!==E?(ne=n.jsxs("div",{className:"flex items-center justify-between",children:[ie,E]}),e[60]=ie,e[61]=E,e[62]=ne):ne=e[62],ve=_s,W=V,ue=js,$e=Ae,Me=we,te=ce,M=Es,Ce=G,Te=Rs,le="space-y-0.5",Oe=h.map(H=>n.jsx(Fi,{entry:H,isActive:H.index===m,canDelete:Re,decofile:_,meta:x,matchers:v,onSelect:()=>I(H.index),onRename:()=>R(H.index),onDuplicate:()=>O(H.index),onDelete:()=>K(H.index)},H.id)),e[14]=m,e[15]=Re,e[16]=_,e[17]=h,e[18]=G,e[19]=we,e[20]=Ae,e[21]=v,e[22]=x,e[23]=N,e[24]=K,e[25]=O,e[26]=R,e[27]=b,e[28]=V,e[29]=u,e[30]=M,e[31]=ve,e[32]=Oe,e[33]=Ce,e[34]=Te,e[35]=W,e[36]=ue,e[37]=$e,e[38]=Me,e[39]=te,e[40]=Se,e[41]=ne,e[42]=le}else M=e[30],ve=e[31],Oe=e[32],Ce=e[33],Te=e[34],W=e[35],ue=e[36],$e=e[37],Me=e[38],te=e[39],Se=e[40],ne=e[41],le=e[42];let de;e[63]!==Oe||e[64]!==le?(de=n.jsx("div",{className:le,children:Oe}),e[63]=Oe,e[64]=le,e[65]=de):de=e[65];let Ve;e[66]!==M||e[67]!==Ce||e[68]!==Te||e[69]!==de?(Ve=n.jsx(M,{items:Ce,strategy:Te,children:de}),e[66]=M,e[67]=Ce,e[68]=Te,e[69]=de,e[70]=Ve):Ve=e[70];let me;e[71]!==i||e[72]!==_||e[73]!==v||e[74]!==x?(me=i?n.jsx($i,{variant:i.variant,decofile:_,meta:x,matchers:v}):null,e[71]=i,e[72]=_,e[73]=v,e[74]=x,e[75]=me):me=e[75];let ye;e[76]!==me?(ye=ns.createPortal(n.jsx(hs,{dropAnimation:cs,children:me}),document.body),e[76]=me,e[77]=ye):ye=e[77];let be;e[78]!==ve||e[79]!==W||e[80]!==ue||e[81]!==$e||e[82]!==Me||e[83]!==te||e[84]!==Ve||e[85]!==ye?(be=n.jsxs(ve,{sensors:W,collisionDetection:ue,onDragStart:$e,onDragEnd:Me,onDragCancel:te,children:[Ve,ye]}),e[78]=ve,e[79]=W,e[80]=ue,e[81]=$e,e[82]=Me,e[83]=te,e[84]=Ve,e[85]=ye,e[86]=be):be=e[86];let xe;return e[87]!==Se||e[88]!==ne||e[89]!==be?(xe=n.jsxs("div",{className:Se,children:[ne,be]}),e[87]=Se,e[88]=ne,e[89]=be,e[90]=xe):xe=e[90],xe}function Hi(d){return d.id}function ts(d){const e=at.c(21),{currentRt:o,currentLabel:c,currentGlobalKey:m,matchers:_,globals:x,onSelect:v,onSelectGlobal:b,schema:g,formValue:R,onChange:O,formKey:K,formWrapperClassName:N,meta:u,decofile:P,onSaveReferencedBlock:h,sandbox:A}=d;let i;e[0]!==m||e[1]!==c||e[2]!==o||e[3]!==x||e[4]!==_||e[5]!==v||e[6]!==b?(i=n.jsx(fo,{currentRt:o,currentLabel:c,currentGlobalKey:m,matchers:_,globals:x,onSelect:v,onSelectGlobal:b}),e[0]=m,e[1]=c,e[2]=o,e[3]=x,e[4]=_,e[5]=v,e[6]=b,e[7]=i):i=e[7];let D;e[8]!==P||e[9]!==K||e[10]!==R||e[11]!==N||e[12]!==u||e[13]!==O||e[14]!==h||e[15]!==A||e[16]!==g?(D=g&&R&&n.jsx("div",{className:N,children:n.jsx(po,{schema:g,value:R,onChange:O,meta:u,decofile:P,onSaveReferencedBlock:h,sandbox:A},K)}),e[8]=P,e[9]=K,e[10]=R,e[11]=N,e[12]=u,e[13]=O,e[14]=h,e[15]=A,e[16]=g,e[17]=D):D=e[17];let r;return e[18]!==i||e[19]!==D?(r=n.jsxs(n.Fragment,{children:[i,D]}),e[18]=i,e[19]=D,e[20]=r):r=e[20],r}function yc({orgSlug:d,virtualMcpId:e,branch:o,previewReady:c=!0,previewUrl:m,currentPath:_,activePageBlockKey:x=null,activeGlobalBlockKey:v=null,externalSelection:b,onSaved:g,initialEditSeo:R=!1,onExitSeo:O,onViewJsonFile:K,onVariantPreviewOverride:N}){const u=Nt(),P=Oa(),h=P?.taskId??null,A=c?{orgSlug:d,virtualMcpId:e,branch:o,threadId:h,previewUrl:m}:null,{data:i,isLoading:D}=go(A),{data:r,isLoading:q}=ho(A),L=P?.virtualMcpId,oe=$a(L===e?e:null)?.metadata?.siteSlug??null,re=fi({virtualMcpId:e,sandboxUrl:m}),[f,B]=w.useState(null),[Q,k]=w.useState(null),[ee,V]=w.useState(null),[ge,G]=w.useState(0),[Re,he]=w.useState(void 0),[Ae,Pe]=w.useState(null),[we,ke]=w.useState(null),[ce,M]=w.useState([]),ve=w.useRef(null),[Oe,Ce]=w.useState(ce.length);Oe!==ce.length&&(Ce(ce.length),requestAnimationFrame(()=>{ve.current&&(ve.current.scrollTop=0)}));const[Te,W]=w.useState(0),[ue,$e]=w.useState(null),[Me,te]=w.useState(null),[Se,ne]=w.useState(null),[le,de]=w.useState(!0),[Ve,me]=w.useState(!1),[ye,be]=w.useState(!1),xe=w.useRef(null),[I,X]=w.useState(R),[ie,_e]=w.useState(R);R&&!ie&&(_e(!0),X(!0),B(null),k(null),V(null),M([])),!R&&ie&&_e(!1);const[fe,se]=w.useState(null),[Ke,je]=w.useState(void 0),[E,H]=w.useState([]),[Qe,Ye]=w.useState(0),[Le,ze]=w.useState(0),[ut,Be]=w.useState(null),[_t,We]=w.useState(null),[En,Rn]=w.useState(null),As=Ba(),Ps=`${d}/${e}/${o}`,tn=vo({orgSlug:d,virtualMcpId:e,branch:o}),[Cs,Ms]=w.useState(_),[Ks,Ls]=w.useState(x),[Bs,Is]=w.useState(v);(Cs!==_||Ks!==x||Bs!==v)&&(queueMicrotask(()=>tn.flush()),Ms(_),Ls(x),Is(v),B(null),k(null),V(null),G(0),Pe(null),ke(null),ze(0),Be(null),We(null),M([]),W(t=>t+1),X(!1),se(null),je(void 0),H([]),Ye(t=>t+1));const De=So({orgSlug:d,virtualMcpId:e,branch:o}),Ot=Fo((t,s)=>{De.mutate({blockKey:t,data:s},{onSuccess:()=>g?.(),onError:a=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:a.message}))})}),nn=Xo({orgSlug:d,virtualMcpId:e,branch:o}),[At,$t]=w.useState(!1),He=w.useRef(null),ot=w.useRef(null),it=w.useRef(null),sn=w.useRef({}),et=w.useRef({rawSections:[],parsedSections:[],decofile:{},activePageKey:null,pageVariants:[],variantIndex:0,sectionVariantIndex:0,selectedSectionIndex:null});if(!c||D||q)return n.jsx("div",{className:"h-full w-full flex items-center justify-center",children:n.jsx(rs,{className:"size-5 text-muted-foreground"})});if(!i||!r)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:u("sectionsEditor.sectionsEditor.couldNotLoadSiteData")});const Fs=ti(i),Ne=!!v,Je=Ne?null:ni(Fs,_,x),j=Ne?v:Je?.key??null,an=Ne&&v?i[v]:void 0,wn=Ne&&v&&an?si(v,an):Ne&&v?v:"",zt=!Ne&&j&&i[j]?i[j]:null,on=I&&i&&r&&j&&Je?On(i,{kind:"page",pageKey:j,pageName:String(Je.name??""),path:String(Je.path??"")},r):null,Os=I?zt?.seo:void 0,rn=Ke!==void 0?Ke:Os,$s=I?yo(rn):void 0,zs=on?.seoTypeOptions??[],Hs=I&&r?bo(r):"",kn=fe??$s??{},ln=I&&on?ci(kn,on):null,Us=I&&ln&&xo(rn)?Zt(ln,r):null,qs=I?_o(i,r)?.seoData:void 0,Ge=Ne?[{label:"Default",sections:[{__resolveType:v}]}]:jo(zt?.sections,i??{}),Pt=Ge.length>1,Ie=Math.min(ge,Ge.length-1),dt=Ge[Ie],U=dt?.sections??[],Ue=Jt(U,i),cn=!Ne&&Eo(zt?.sections);if(Ne&&v&&En!==v){Rn(v);const t=U[0],s=Ue[0];if(t&&s){B(0),ze(0),M([]);const a=bt(t,s,i);a&&(k(a.data),V(a.resolveType),We(null),Be(null))}}!Ne&&En!==null&&Rn(null),et.current={rawSections:U,parsedSections:Ue,decofile:i??{},activePageKey:j,pageVariants:Ge,variantIndex:Ie,sectionVariantIndex:Le,selectedSectionIndex:f};const Gs=()=>({multivariate:cn,index:Ie,variants:Ge.map(t=>({rule:t.rule}))}),un=(t,s)=>{if(!N)return;if(!j||!cn||t.length<=1){N(null);return}const a=Jn(j,{multivariate:!0,index:s,variants:t},i,r);N(a.length>0?a:null)},dn=N&&j&&cn&&Pt&&!D&&!q?j:null,[Ws,Ys]=w.useState(null);if(dn!==Ws&&(Ys(dn),dn)){const t=Ge.map(a=>({rule:a.rule})),s=Ie;queueMicrotask(()=>un(t,s))}const jt=(t,s,a)=>{if(!N)return;if(!j){N(null);return}const l=Gs(),p=Jn(j,l,i,r);if(!t||s<0){N(p.length>0?p:null);return}const y=gi({pageKey:j,page:l,sectionIndex:s,sectionLazy:Ue[s]?.isLazy??!1,mvObj:t,selectedVariantIndex:a,decofile:i,meta:r}),S=[...p,...y];N(S.length>0?S:null)},mt=(t,s,a,l=f??-1,p=!1)=>{const y=st(t,s);if(!y){k(null),V(null),We(null),Be(null),p&&jt(null,l,a);return}const T=$n(y,vt)[a];if(!T){k(null),V(null),We(null),Be(null),p&&jt(null,l,a);return}const Z=Ao(T.value,i);k(Z?.data??null),V(Z?.resolveType??null);const{resolveType:C,formValue:F}=Kt(T.rule,i,r??void 0);We(C),Be(F),p&&jt(y,l,a)},Ct=b?.index;if(b!==void 0&&(b?.seq??null)!==Re&&(he(b?.seq??null),typeof Ct=="number")){const t=U[Ct],s=Ue[Ct];if(t&&s)if(B(Ct),ze(0),M([]),W(a=>a+1),s.isMultivariate)mt(t,s,0,Ct);else{const a=bt(t,s,i);a?(k(a.data),V(a.resolveType)):(k(null),V(null)),We(null),Be(null)}}const Ht={orgSlug:d,virtualMcpId:e,branch:o,threadId:h,previewUrl:m??void 0,siteSlug:oe},mn=ee&&r?Zt(ee,r):null,Xe=(t,s)=>{if(!j)return;He.current&&(clearTimeout(He.current),He.current=null),it.current&&(clearTimeout(it.current),it.current=null),ot.current&&(clearTimeout(ot.current),ot.current=null);const a=Bt(i,j,t,Ie,Ge);De.mutate({blockKey:j,data:a},{onSuccess:()=>s?.onSuccess?.()??g?.(),onError:l=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:l.message}))})},Et=()=>{B(null),k(null),V(null),ze(0),Be(null),We(null),M([]),W(t=>t+1)},Js=(t,s)=>{He.current&&clearTimeout(He.current);const a=et.current.sectionVariantIndex;He.current=setTimeout(()=>{const{rawSections:l,parsedSections:p,decofile:y,activePageKey:S,pageVariants:T,variantIndex:Z}=et.current,C=l[s];if(!C)return;const F=p[s];if(!F)return;if(F.isSavedBlock){const z=qo(C,F);if(!z)return;De.mutate({blockKey:z,data:t},{onSuccess:()=>g?.(),onError:Y=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:Y.message}))});return}if(!S)return;const $={...y[S]},Ee=[...l];if(F.isMultivariate){const z=st(C,F);if(!z||!S)return;const Y=Go(z,a,t);Ee[s]=xt(C,F,Y)}else if(F.isHidden){const z=ms(C.__resolveType),Y=z?{...C.section}:{...C},Fe=Array.isArray(Y.variants)?[...Y.variants]:[];Fe[0]&&(Fe[0]={...Fe[0],value:t}),Y.variants=Fe,z?Ee[s]={...C,section:Y}:Ee[s]=Y}else F.isLazy?Ee[s]={...C,section:t}:Ee[s]=t;if(T.length>1){const z=$.sections,Y=[...z?.variants??[]];Y[Z]&&(Y[Z]={...Y[Z],value:Ee}),$.sections={...z,variants:Y}}else $.sections=Ee;De.mutate({blockKey:S,data:$},{onSuccess:()=>g?.(),onError:z=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:z.message}))})},bn)},Qs=t=>{B(t),ze(0),M([]),W(p=>p+1);const s=U[t],a=Ue[t];if(!s||!a)return;if(a.isMultivariate){mt(s,a,0,t);return}const l=bt(s,a,i);if(!l){k(null),V(null),We(null),Be(null),jt(null,t,0);return}k(l.data),V(l.resolveType),We(null),Be(null),jt(null,t,0)},Tn=t=>{const s=t;k(s),f!==null&&Js(s,f)},fn=t=>{if(!j||!i||!r||!Je)return;const s={kind:"page",pageKey:j,pageName:String(Je.name??""),path:String(Je.path??"")},a=On(i,s,r);a&&tn.save(j,()=>{const l=As.getQueryData(Fa.decofile(Ps))?.[j];if(!l||typeof l!="object"||l===null||Array.isArray(l))return null;const p={...l,...sn.current};return sn.current={},t?.raw!==void 0?{...p,seo:t.raw}:t?.inner!==void 0?di(s,a,p,t.inner):p})},Xs=(t,s)=>{j&&(sn.current[t]=s,fn())},Zs=(t,s)=>{if(!j)return;const a=Ft([...U],t,s);f!==null&&(f===t?B(s):t<f&&s>=f?B(f-1):t>f&&s<=f&&B(f+1)),Xe(a)},ea=t=>{if(!j)return;const s=U.filter((a,l)=>l!==t);f===t?Et():f!==null&&f>t&&B(f-1),Xe(s)},ta=t=>{if(!j)return;const s=U[t];if(!s)return;const a=[...U];a.splice(t+1,0,Ho(s)),f!==null&&f>t&&B(f+1),Xe(a)},na=t=>{if(!j)return;const s=U[t],a=Ue[t];if(!s||!a)return;const l=a.isHidden?$o(s):zo(s);if(!l)return;const p=[...U];p[t]=l,f===t&&Et(),Xe(p)},sa=t=>{if(!j)return;const s=U[t],a=Ue[t];if(!s||!a||a.isMultivariate)return;const l=Oo(s);if(!l)return;const p=[...U];p[t]=l,f===t&&Et(),Xe(p)},aa=t=>{if(!j)return;const s=U[t],a=Ue[t];if(!s||!a?.isSavedBlock)return;const l=bt(s,a,i);if(!l?.data)return;const{name:p,...y}=l.data,S=[...U];a.isLazy?S[t]={...s,section:y}:S[t]=y,f===t&&Et(),Xe(S)},oa=t=>{if(!j)return;const s=[...U,{__resolveType:t.resolveType}],a=s.length-1;Xe(s,{onSuccess:()=>{me(!1),B(a),ze(0),M([]),W(S=>S+1);const l=s[a],p=Jt(s,i)[a];if(!l||!p)return;if(p.isMultivariate){mt(l,p,0);return}const y=bt(l,p,i);if(!y){k(null),V(null),We(null),Be(null);return}k(y.data),V(y.resolveType),We(null),Be(null)}})},Vn=t=>{xe.current=t.append,me(!0)},ia=t=>{const s=xe.current;if(!s){oa(t);return}s({__resolveType:t.resolveType}),me(!1),xe.current=null},ra=t=>{if(f===null)return;const s=U[f],a=Ue[f];!s||!a?.isMultivariate||(ze(t),M([]),W(l=>l+1),mt(s,a,t,f,!0))},la=t=>{if(f===null||!j)return;const s=U[f],a=Ue[f];if(!s||!a?.isMultivariate)return;const l=st(s,a);if(!l)return;const p=Bo(l,t);if(!p){J.error(u("sectionsEditor.sectionsEditor.cannotDeleteOnlyVariant"));return}const y=[...U];y[f]=xt(s,a,p);const S=p.variants;let T=Le;t===Le?T=Math.min(t,S.length-1):t<Le&&(T=Le-1),ze(T),M([]),W(Z=>Z+1),mt(y[f],a,T),Xe(y)},ca=t=>{if(f===null||!j)return;const s=U[f],a=Ue[f];if(!s||!a?.isMultivariate)return;const l=st(s,a);if(!l)return;const p=Io(l,t),y=[...U];y[f]=xt(s,a,p);const S=t+1;ze(S),M([]),W(T=>T+1),mt(y[f],a,S),Xe(y)},ua=(t,s)=>{if(f===null||!j||t===s)return;const a=U[f],l=Ue[f];if(!a||!l?.isMultivariate)return;const p=st(a,l);if(!p)return;const y=Ko(p,t,s),S=[...U];S[f]=xt(a,l,y);let T=Le;Le===t?T=s:t<Le&&s>=Le?T=Le-1:t>Le&&s<=Le&&(T=Le+1),ze(T),mt(S[f],l,T),Xe(S)},pn=t=>{const s=t??f;if(s===null||!j)return;const a=U[s],l=Ue[s];if(!a||!l)return;const p=Po(a,l);if(!p){J.error(u("sectionsEditor.sectionsEditor.sectionCannotHaveVariants"));return}const y=[...U];y[s]=p.section;const S=Jt(y,i)[s];if(!S?.isMultivariate){J.error(u("sectionsEditor.sectionsEditor.couldNotAddVariant"));return}B(s),ze(p.newVariantIndex),M([]),W(T=>T+1),mt(p.section,S,p.newVariantIndex,s),Xe(y)},da=()=>{if(f===null||!j)return;const t=U[f],s=Ue[f];if(!t||!s?.isMultivariate)return;const a=st(t,s);if(!a)return;const l=Lo(t,s,a);if(!l){J.error(u("sectionsEditor.sectionsEditor.couldNotRemoveVariants"));return}const p=[...U];p[f]=l;const y=Jt(p,i)[f];if(!y)return;ze(0),We(null),Be(null),M([]),W(T=>T+1);const S=bt(l,y,i);S?(k(S.data),V(S.resolveType)):(k(null),V(null)),jt(null,f,0),Xe(p)},ma=async t=>{if(ue===null||!j)return;const s=yn(t,i);if(s){J.error(s);return}const a=U[ue],l=Ue[ue];if(!a||!l)return;const p=bt(a,l,i);if(!p){J.error(u("sectionsEditor.sectionsEditor.sectionCannotBeSavedAsGlobal"));return}const y={...p.data,name:t};try{await De.mutateAsync({blockKey:t,data:y});const S=[...U];S[ue]={__resolveType:t},await De.mutateAsync({blockKey:j,data:Bt(i,j,S,Ie,Ge)}),f===ue&&Et(),$e(null),J.success(u("sectionsEditor.sectionsEditor.savedGlobalBlock",{blockId:t})),g?.()}catch(S){J.error(S instanceof Error?S.message:u("sectionsEditor.sectionsEditor.failedToSaveGlobalBlock"))}},Dn=dt?.rule;if(Pt&&f===null&&we===null&&Dn){const{resolveType:t,formValue:s}=Kt(Dn,i??{},r??void 0);ke(t),Pe(s)}const Ut=r?Ro(r):[],Nn=r&&i?wo(r,i):[],fa=!Ne&&!!(re&&r&&i),pa=we&&r?Zt(we,r):null,Rt=()=>{ot.current&&(clearTimeout(ot.current),ot.current=null),it.current&&(clearTimeout(it.current),it.current=null)},Mt=async(t,s)=>{if(!(Uo(s,t,r)>0))try{await nn.mutateAsync({blockKey:t})}catch(a){J.error(a instanceof Error?a.message:u("sectionsEditor.sectionsEditor.couldNotDeleteMatcherBlock"))}},An=t=>{ot.current&&clearTimeout(ot.current),ot.current=setTimeout(()=>{const{activePageKey:s,decofile:a,variantIndex:l}=et.current;if(!s)return;const p={...a[s]},y={...p.sections},S=[...y.variants??[]],T=S[l],Z=T?.rule;if(wt(Z,a,r)){const C=Z?.__resolveType??"",F=a[C],$=typeof F?.name=="string"?F.name:C,{__resolveType:Ee,...z}=t;De.mutate({blockKey:C,data:kt(Ee??"",z,$)},{onSuccess:()=>g?.(),onError:Y=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:Y.message}))});return}T&&(S[l]={...T,rule:t}),p.sections={...y,variants:S},De.mutate({blockKey:s,data:p},{onSuccess:()=>g?.(),onError:C=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:C.message}))})},bn)},ga=t=>{ke(t);const s=t?qn(t,r):{__resolveType:Yn};Pe(t?s:{}),An(s)},ha=t=>{const s=t;Pe(s);const a=we?{__resolveType:we,...s}:{...s};An(a)},va=async t=>{Rt();const{activePageKey:s,decofile:a,variantIndex:l}=et.current;if(!s)return;const p=a[s],y=p?.sections;if(!y||typeof y!="object"||Array.isArray(y))return;const S=y;if(!Array.isArray(S.variants))return;const T=[...S.variants],Z=T[l];if(!Z)return;const C=Lt(Z.rule,a,r),F=Xt(t);T[l]={...Z,rule:F};const $={...a,[s]:{...p,sections:{...S,variants:T}}},{resolveType:Ee,formValue:z}=Kt(F,$,r??void 0);ke(Ee),Pe(z);try{await De.mutateAsync({blockKey:s,data:$[s]}),C&&C!==t&&await Mt(C,$),g?.()}catch(Y){J.error(Y instanceof Error?Y.message:u("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}},Pn=t=>{it.current&&clearTimeout(it.current);const{selectedSectionIndex:s,sectionVariantIndex:a}=et.current;s!==null&&(it.current=setTimeout(()=>{const{rawSections:l,parsedSections:p,decofile:y,activePageKey:S,pageVariants:T,variantIndex:Z}=et.current;if(!S)return;const C=l[s],F=p[s];if(!C||!F?.isMultivariate)return;const $=st(C,F);if(!$)return;const z=($.variants??[])[a]?.rule;if(wt(z,y,r)){const pe=z?.__resolveType??"",Ze=y[pe],lt=typeof Ze?.name=="string"?Ze.name:pe,{__resolveType:gt,...ct}=t;De.mutate({blockKey:pe,data:kt(gt??"",ct,lt)},{onSuccess:()=>g?.(),onError:ht=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:ht.message}))});return}const Y=Un($,a,t),Fe=[...l];Fe[s]=xt(C,F,Y);const tt=Bt(y,S,Fe,Z,T);De.mutate({blockKey:S,data:tt},{onSuccess:()=>g?.(),onError:pe=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:pe.message}))})},bn))},Sa=t=>{We(t);const s=t?qn(t,r):{__resolveType:Yn};Be(t?s:{}),Pn(s)},ya=t=>{const s=t;Be(s);const a=_t?{__resolveType:_t,...s}:{...s};Pn(a)},ba=async t=>{Rt();const{selectedSectionIndex:s,sectionVariantIndex:a,rawSections:l,parsedSections:p,decofile:y,activePageKey:S,pageVariants:T,variantIndex:Z}=et.current;if(s===null||!S)return;const C=l[s],F=p[s];if(!C||!F?.isMultivariate)return;const $=st(C,F);if(!$)return;const Ee=$.variants??[],z=Lt(Ee[a]?.rule,y,r),Y=Xt(t),Fe=Un($,a,Y),tt=[...l];tt[s]=xt(C,F,Fe);const pe=Bt(y,S,tt,Z,T),Ze={...y,[S]:pe},{resolveType:lt,formValue:gt}=Kt(Y,Ze,r??void 0);We(lt),Be(gt);try{await De.mutateAsync({blockKey:S,data:pe}),z&&z!==t&&await Mt(z,Ze),g?.()}catch(ct){J.error(ct instanceof Error?ct.message:u("sectionsEditor.sectionsEditor.couldNotApplySavedRule"))}};if(!Ne&&!Je)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:u("sectionsEditor.sectionsEditor.noPageFound",{currentPath:_})});if(Ne&&!an)return n.jsx("div",{className:"h-full w-full flex items-center justify-center text-sm text-muted-foreground",children:u("sectionsEditor.sectionsEditor.globalBlockNotFound")});const ft=f!==null?Ue[f]??null:null,Cn=f!==null?U[f]:null,Mn=Cn&&ft?.isMultivariate?st(Cn,ft):null,yt=Mn?$n(Mn,vt):[],gn=Math.min(Le,Math.max(yt.length-1,0)),qt=yt[gn]??null,pt=ft?.isMultivariate===!0,Kn=f!==null&&ft!==null,Gt=Kn&&(pt||!!(mn&&Q)),xa=Gt&&!Ne&&ft?.isSavedBlock===!0,rt=Ne||xa,_a=Ne?wn:ft?.label??"",ja=_t&&r?Zt(_t,r):null,hn=Gt&&(!Ne||ce.length>0)?Ne?[wn,...ce]:[Je.name,ft.label,...pt&&qt?[qt.label]:[],...ce]:[],Ea=I&&Je?[Je.name,"SEO",...E]:[],Wt=I?Ea:rt?hn.length>0?hn:[_a]:hn,Ra=!I&&!Ne&&pt&&ce.length===0,Ln=()=>{if(!j)return;Rt(),He.current&&(clearTimeout(He.current),He.current=null);const t=i[j],s=Co(t.sections,U);if(!s)return;const a=Mo(s);De.mutate({blockKey:j,data:{...t,sections:s}},{onSuccess:()=>{G(a),B(null),k(null),V(null),M([]),Pe(null),ke(null)},onError:l=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:l.message}))})},vn=(t,s,a)=>{if(!j)return;Rt(),He.current&&(clearTimeout(He.current),He.current=null);const l=i[j],p=l.sections;if(!p||typeof p!="object"||Array.isArray(p))return;const y=p;if(!Array.isArray(y.variants))return;const S=t([...y.variants]);if(!S)return;const T=Wo(y,S),Z={...i,[j]:{...l,sections:T}};De.mutate({blockKey:j,data:Z[j]},{onSuccess:()=>{s?.(),a&&Mt(a,Z)},onError:C=>J.error(u("sectionsEditor.sectionsEditor.saveFailed",{error:C.message}))})},wa=t=>{te(null),G(t),B(null),k(null),V(null),M([]);const s=Ge[t]?.rule,{resolveType:a,formValue:l}=Kt(s,i??{},r??void 0);ke(a),Pe(l),un(Ge.map(p=>({rule:p.rule})),t)},ka=(t,s)=>{if(t===s)return;let a=Ie;Ie===t?a=s:t<Ie&&s>=Ie?a=Ie-1:t>Ie&&s<=Ie&&(a=Ie+1),G(a);const l=Ft(Ge.map(p=>({rule:p.rule})),t,s);un(l,a),vn(p=>Ft(p,t,s))},Ta=t=>{const s=Ge[t]?.rule,a=Lt(s,i??{},r??void 0);vn(l=>l.length<=1?null:(l.splice(t,1),l),()=>{Ge.length-1===1?G(0):t<Ie?G(Ie-1):t===Ie&&G(Math.max(0,t-1)),B(null),k(null),V(null),M([]),Pe(null),ke(null)},a)},Va=t=>{vn(s=>Yo(s,t),()=>{G(t+1),B(null),k(null),V(null),M([]),Pe(null),ke(null)})},Da=async(t,s)=>{Rt(),He.current&&(clearTimeout(He.current),He.current=null);const a=et.current.activePageKey,l=et.current.decofile;if(!a)return;const p=l[a],y=p.sections;if(!y||typeof y!="object"||Array.isArray(y))return;const S=y;if(!Array.isArray(S.variants))return;const T=[...S.variants],Z=T[t];if(!Z?.rule||typeof Z.rule!="object"){J.error(u("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const C=Z.rule,F=s.trim();$t(!0);try{if(!F){if(!wt(C,l,r)){te(null);return}const tt=C.__resolveType??"";T[t]={...Z,rule:Gn(C,l,r)};const pe={...l,[a]:{...p,sections:{...S,variants:T}}};await De.mutateAsync({blockKey:a,data:pe[a]}),await Mt(tt,pe),te(null),g?.();return}const $=Wn(C,l,r);if(!$){J.error(u("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if($.blockKey){await De.mutateAsync({blockKey:$.blockKey,data:kt($.resolveType,$.data,F)}),te(null),g?.();return}const Ee=Sn(F),z=yn(Ee,l);if(z){J.error(z);return}const Y=kt($.resolveType,$.data,F);let Fe=null;try{await De.mutateAsync({blockKey:Ee,data:Y}),Fe=Ee,T[t]={...Z,rule:Xt(Ee)},await De.mutateAsync({blockKey:a,data:{...p,sections:{...S,variants:T}}}),Fe=null}catch(tt){throw Fe&&await nn.mutateAsync({blockKey:Fe}).catch(()=>{}),tt}te(null),J.success(u("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:F})),g?.()}catch($){J.error($ instanceof Error?$.message:u("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{$t(!1)}},Na=async(t,s)=>{Rt(),He.current&&(clearTimeout(He.current),He.current=null);const{selectedSectionIndex:a,rawSections:l,parsedSections:p,decofile:y,activePageKey:S,pageVariants:T,variantIndex:Z}=et.current;if(a===null||!S)return;const C=l[a],F=p[a];if(!C||!F?.isMultivariate)return;const $=st(C,F);if(!$)return;const Ee=$.variants??[],z=Ee[t];if(!z?.rule||typeof z.rule!="object"){J.error(u("sectionsEditor.sectionsEditor.variantHasNoMatcherRule"));return}const Y=z.rule,Fe=s.trim();$t(!0);const tt=async pe=>{const Ze={...$,variants:pe},lt=[...l];lt[a]=xt(C,F,Ze);const gt=Bt(y,S,lt,Z,T);return await De.mutateAsync({blockKey:S,data:gt}),{...y,[S]:gt}};try{if(!Fe){if(!wt(Y,y,r)){ne(null);return}const ht=Y.__resolveType??"",Fn=[...Ee];Fn[t]={...z,rule:Gn(Y,y,r)};const Ka=await tt(Fn);await Mt(ht,Ka),ne(null),g?.();return}const pe=Wn(Y,y,r);if(!pe){J.error(u("sectionsEditor.sectionsEditor.couldNotReadVariantMatcherRule"));return}if(pe.blockKey){await De.mutateAsync({blockKey:pe.blockKey,data:kt(pe.resolveType,pe.data,Fe)}),ne(null),g?.();return}const Ze=Sn(Fe),lt=yn(Ze,y);if(lt){J.error(lt);return}const gt=kt(pe.resolveType,pe.data,Fe);let ct=null;try{await De.mutateAsync({blockKey:Ze,data:gt}),ct=Ze;const ht=[...Ee];ht[t]={...z,rule:Xt(Ze)},await tt(ht),ct=null}catch(ht){throw ct&&await nn.mutateAsync({blockKey:ct}).catch(()=>{}),ht}ne(null),J.success(u("sectionsEditor.sectionsEditor.savedMatcherAsGlobalBlock",{trimmed:Fe})),g?.()}catch(pe){J.error(pe instanceof Error?pe.message:u("sectionsEditor.sectionsEditor.failedToRenameVariant"))}finally{$t(!1)}},Bn=()=>{Et()},Aa=t=>{se(t),fn({inner:t})},Pa=t=>{je(t),fn({raw:t})},Ca=()=>{se(null),H([])},Ma=()=>Ye(t=>t+1),In=t=>{if(I){if(t===0){tn.flush(),X(!1),se(null),je(void 0),H([]),Ye(a=>a+1),O?.();return}if(t===1){H([]),Ye(a=>a+1);return}H(E.slice(0,t-1)),Ye(a=>a+1);return}if(Ne){M(ce.slice(0,t)),W(a=>a+1);return}if(t===0){Bn();return}if(t===1){M([]),W(a=>a+1);return}if(pt&&t===2){M([]),W(a=>a+1);return}const s=pt?2:1;M(ce.slice(0,t-s))};return n.jsxs("div",{className:"flex h-full min-w-0 w-full flex-col",children:[n.jsx("div",{className:"shrink-0",children:rt||Gt||I?n.jsxs("div",{className:qe("border-b px-3 py-2.5",rt&&"border-global-section/22 bg-global-section/12 dark:bg-global-section/16"),children:[n.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[Wt.length>1&&n.jsx("button",{type:"button",onClick:()=>In(Jo(Wt.length,{isMultivariateSectionTop:Ra})),title:u("sectionsEditor.sectionsEditor.back"),"aria-label":u("sectionsEditor.sectionsEditor.back"),className:qe("shrink-0 inline-flex size-6 items-center justify-center classic:rounded-md compact:rounded-lg transition-colors",rt?"text-foreground/80 hover:bg-global-section/15":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:n.jsx(Ga,{className:"size-4"})}),!Ne&&Pt&&dt&&n.jsxs("button",{type:"button",onClick:Bn,title:u("sectionsEditor.sectionsEditor.editingInVariant",{variant:dt.label}),className:qe("shrink-0 inline-flex items-center gap-1 classic:rounded-md compact:rounded-lg h-6 px-1.5 text-xs font-medium cursor-pointer transition-opacity hover:opacity-80",ko),children:[n.jsx(Ds,{rule:It(dt.rule,i??{},r??void 0),matchers:Ut}),n.jsx("span",{className:"max-w-[160px] truncate",children:dt.label})]}),n.jsx("nav",{"aria-label":u("sectionsEditor.sectionsEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:Wt.map((t,s)=>{const a=s===Wt.length-1,l=To(t);return n.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[s>0&&n.jsx(Ia,{className:"size-3 shrink-0 text-muted-foreground/60"}),n.jsx("button",{type:"button",onClick:()=>In(s),title:l,className:qe("min-w-0 truncate classic:rounded-md compact:rounded-lg px-1 py-0.5 text-left transition-colors",a?rt?"font-semibold text-global-section-fg dark:text-global-section-fg-dark":"font-medium text-foreground":rt?"text-foreground/80":"text-muted-foreground",rt?"hover:bg-global-section/15":"hover:bg-accent hover:text-accent-foreground"),children:l})]},`${l}-${s}`)})}),rt&&n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx("span",{className:"shrink-0 cursor-help",children:n.jsx(Ja,{className:"size-4 text-global-section-fg dark:text-global-section-fg-dark"})})}),n.jsx(Dt,{side:"bottom",className:"max-w-[260px]",children:u("sectionsEditor.sectionsEditor.globalSectionTooltip")})]}),Kn&&!pt&&!ft?.isHidden&&j&&n.jsx(zn,{onClick:()=>pn()})]}),rt&&n.jsx("p",{className:"mt-1.5 py-1.5 pl-1 text-sm leading-snug text-foreground",children:u("sectionsEditor.sectionsEditor.globalSectionBanner")})]}):n.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2.5",children:[n.jsx("div",{className:"flex-1 min-w-0",children:n.jsx(Vo,{pageKey:j,initialName:Je.name,initialPath:Je.path,onFieldChange:Xs})}),n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx(nt,{type:"button",variant:"ghost",size:"icon","aria-label":u("sectionsEditor.sectionsEditor.editSeo"),className:"size-7 shrink-0",onClick:()=>X(!0),children:n.jsx(Wa,{size:14})})}),n.jsx(Dt,{side:"bottom",children:u("sectionsEditor.sectionsEditor.editSeo")})]}),n.jsxs(Tt,{children:[n.jsx(Vt,{asChild:!0,children:n.jsx(nt,{type:"button",variant:"ghost",size:"icon","aria-label":u("sectionsEditor.sectionsEditor.viewJson"),className:"size-7 shrink-0",onClick:()=>K&&j?K():be(!0),children:n.jsx(Ya,{size:14})})}),n.jsx(Dt,{side:"bottom",children:u("sectionsEditor.sectionsEditor.viewJson")})]}),n.jsx(zn,{onClick:Ln})]})}),I?n.jsx(Yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:n.jsx("div",{className:"mx-auto max-w-2xl",children:zt&&j?n.jsx(ui,{rawSeo:rn,innerSeo:kn,defaultResolveType:Hs,seoSchema:Us,activeResolveType:ln,seoTypeOptions:zs,formResetKey:Qe,siteDefaultSeo:qs,onBreadcrumbChange:H,onPersistRaw:Pa,onInnerChange:Aa,onClearForm:Ca,onBumpFormKey:Ma}):n.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:u("sectionsEditor.sectionsEditor.seoSchemaNotFound")})})})},"editor-seo"):Gt?n.jsxs(Yt,{viewportRef:ve,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[pt&&yt.length>0&&ce.length===0&&n.jsxs(n.Fragment,{children:[n.jsx(Do,{listKey:`${j??""}:${f??""}`,variants:yt.map((t,s)=>({index:s,label:t.label})),selectedIndex:gn,onSelect:ra,onRename:ne,onDuplicate:ca,onDelete:la,onRemoveAll:da,onReorder:ua,onAdd:()=>pn()}),pt&&n.jsxs("div",{className:"px-3 py-3 border-b space-y-2",children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:u("sectionsEditor.sectionsEditor.variantRule")}),n.jsx(ts,{currentRt:_t??"",currentLabel:Qt(qt?.rule,i??{},vt,r??void 0),currentGlobalKey:Lt(qt?.rule,i??{},r??void 0)??void 0,matchers:Ut,globals:Nn,onSelect:Sa,onSelectGlobal:ba,schema:ja,formValue:ut,onChange:ya,formKey:`${f??"none"}:${gn}:${_t??""}`,formWrapperClassName:"pt-1",meta:r??void 0,decofile:i,onSaveReferencedBlock:Ot,sandbox:Ht})]})]}),n.jsx(Hn,{activeSchema:mn,formValue:Q,formResetKey:Te,onFormChange:Tn,onBreadcrumbChange:M,breadcrumbPath:ce,emptyMessage:u("sectionsEditor.sectionsEditor.noEditableFieldsForVariant"),meta:r,decofile:i,onSaveReferencedBlock:Ot,sandbox:Ht,previewBaseUrl:re,onRequestAddSection:Vn})]},"editor-section-form"):Ne?n.jsx(Yt,{viewportRef:ve,className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx(Hn,{activeSchema:mn,formValue:Q,formResetKey:Te,onFormChange:Tn,onBreadcrumbChange:M,breadcrumbPath:ce,emptyMessage:u("sectionsEditor.sectionsEditor.noEditableFieldsForGlobalBlock"),meta:r,decofile:i,onSaveReferencedBlock:Ot,sandbox:Ht,previewBaseUrl:re,onRequestAddSection:Vn})},"editor-global-block"):n.jsxs(Yt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:[Pt&&j&&n.jsx(zi,{listKey:j,variants:Ge,activeIndex:Ie,decofile:i??{},meta:r,matchers:Ut,onSelect:wa,onReorder:ka,onRename:te,onDuplicate:Va,onDelete:Ta,onAdd:Ln}),Pt&&we!==null&&n.jsxs("div",{className:qe("px-3 border-b",le?"pt-3 pb-5 space-y-3":"py-2"),children:[n.jsxs("button",{type:"button",onClick:()=>de(t=>!t),className:"flex w-full items-center justify-between gap-2 text-left cursor-pointer classic:rounded-sm compact:rounded-lg py-0.5 hover:bg-muted/40","aria-expanded":le,children:[n.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:u("sectionsEditor.sectionsEditor.variantRule")}),le?n.jsx(za,{className:"size-3.5 shrink-0 text-muted-foreground"}):n.jsx(Ha,{className:"size-3.5 shrink-0 text-muted-foreground"})]}),le&&n.jsx("div",{className:qe("space-y-3",At&&"pointer-events-none opacity-50"),children:n.jsx(ts,{currentRt:we,currentLabel:Qt(dt?.rule,i??{},vt,r??void 0),currentGlobalKey:Lt(dt?.rule,i??{},r??void 0)??void 0,matchers:Ut,globals:Nn,onSelect:ga,onSelectGlobal:va,schema:pa,formValue:Ae,onChange:ha,formKey:`${Ie}:${we??""}`,formWrapperClassName:"space-y-3",meta:r??void 0,decofile:i,onSaveReferencedBlock:Ot,sandbox:Ht})})]}),n.jsx("div",{className:"p-2 pt-3",children:n.jsx(Ci,{listKey:`${j??""}-${Ie}`,rawSections:U,sections:Ue,meta:r,decofile:i,selectedIndex:f,onSelect:Qs,onReorder:Zs,onDelete:ea,onDuplicate:ta,onMakeReusable:$e,onToggleHidden:na,onToggleLazy:sa,onAddVariant:pn,onDetach:aa,onAddSection:()=>me(!0),canAddSection:fa})})]},"editor-section-list"),n.jsx(No,{open:ue!==null,onOpenChange:t=>{t||$e(null)},defaultBlockId:ue!==null?Sn(Ue[ue]?.label??""):"",isPending:De.isPending,onSubmit:ma}),re&&n.jsx(pi,{open:Ve,onOpenChange:t=>{me(t),t||(xe.current=null)},meta:r,decofile:i,previewBaseUrl:re,onSelect:ia}),ye&&j&&i&&n.jsx(Zo,{open:ye,onOpenChange:be,pageKey:j,decofile:i}),Me!==null&&n.jsx(Xn,{open:!0,initialName:wt(Ge[Me]?.rule,i??{},r??void 0)?Qt(Ge[Me]?.rule,i??{},vt,r??void 0):"",autoLabel:vt(It(Ge[Me]?.rule,i??{},r??void 0)),isPending:At,onSubmit:async t=>{await Da(Me,t)},onOpenChange:t=>{!t&&!At&&te(null)}}),Se!==null&&n.jsx(Xn,{open:!0,initialName:wt(yt[Se]?.rule,i??{},r??void 0)?Qt(yt[Se]?.rule,i??{},vt,r??void 0):"",autoLabel:vt(It(yt[Se]?.rule,i??{},r??void 0)),isPending:At,onSubmit:async t=>{await Na(Se,t)},onOpenChange:t=>{!t&&!At&&ne(null)}})]})}export{yc as SectionsEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,b as ve,j as o,r as ee,an as je,B as Se,h as ke}from"./index-B4_5ne-m.js";import{P as fe}from"./agent-icon-Bbnm30MH.js";import{S as xe}from"./scroll-area-BcoH4ReJ.js";import{_ as Ne,$ as we,a1 as _e,a0 as Ee,a2 as Pe,aK as Te}from"./runnable-block-editor-BzVWSPHL.js";import{r as Fe}from"./claim-phase-copy-0btUuJoC.js";import{u as Re,a as Ce,P as Ke}from"./page-seo-form-BgfALyeP.js";import{a as ge}from"./Image01-BHoZzJSj.js";import{s as ue}from"./safe-image-url-D5z803Ot.js";import"./AlertCircle-CvB24fpQ.js";import"./Tool01-BlcXvpRH.js";import"./ArrowUp-CMB2_B55.js";import"./ArrowLeft-CuPXwhY9.js";import"./Tool02-BcSzj1eN.js";import"./ArrowRight-DaeNVQjU.js";import"./TrendUp01-kAJZHj1O.js";import"./ZoomOut-CvMfmw42.js";import"./Globe04-D2pxwWDa.js";import"./CheckCircle-L9rxLy8_.js";import"./ChevronUp-Dy-cXbOz.js";import"./UserSquare-DU12tvTU.js";import"./Copy01-KomJ49aq.js";import"./CreditCard01-DNXTqT2E.js";import"./DotsVertical-CycZdUV6.js";import"./Download01-CK_3UsO1.js";import"./Settings02-BZd-qcWS.js";import"./Eye-KAte8whD.js";import"./Share07-tpVfUX9-.js";import"./Globe01-BmMm30Hp.js";import"./XClose-CZo1KF0t.js";import"./Key01-BiLmhCHZ.js";import"./LayoutLeft-Dk8cMo-H.js";import"./Link01-BSX_7wIu.js";import"./LinkExternal01-COMF34Up.js";import"./Monitor01-C25vfwGa.js";import"./Sun-C6ausIaw.js";import"./Package-BCflABQ6.js";import"./Palette-By8W7B7e.js";import"./Play-C6orNG1z.js";import"./Plus-BuCQnPNG.js";import"./SearchLg-VMEsA-e7.js";import"./SearchMd-DnahVlUn.js";import"./Stars01-BcbLgM7d.js";import"./Trash01-Bt7knSgw.js";import"./Upload01-CgS71RUS.js";import"./User01-DKY_ILGI.js";import"./Users01-COWDl5zV.js";import"./XCircle-BirmII4v.js";import"./X-DcceC-EQ.js";import"./Zap-CIXkomUE.js";import"./select--0Nrx9pz.js";import"./index-BK4gf4on.js";import"./use-session-runtime-B1xdg1Mc.js";import"./thread-intent-BcdlSG8J.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-BSf3NsZt.js";import"./use-panel-navigate-7owLLl5-.js";import"./thread-route-D5lCt0bb.js";import"./use-project-scope-D7MgPnbk.js";import"./use-virtual-mcp-CdMkF3Nz.js";import"./use-mcp-client-Di29uH1Z.js";import"./auth-BAIe_T8g.js";import"./github-repo-BknN0SVI.js";import"./autosend-DrbiZ7KD.js";import"./hooks-DZN1ZKP-.js";import"./backoff-8mStPHYB.js";import"./task-board-CwfOEd0p.js";import"./schema-iizf-P2g.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Cpg4O4cU.js";import"./use-ai-providers-BLQu9X4b.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CztvGxbe.js";import"./use-organization-settings-B7QbhgeU.js";import"./decofile-api-BCvZWky6.js";import"./utils-gTOau_mh.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-mgqlVrg4.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-Cc5z9cdY.js";import"./use-copy-BdX2_tpS.js";import"./usage-stats-DECzmKdw.js";import"./markdown-CdMnKnHM.js";import"./dialog-BVRmgEZZ.js";import"./org-file-open-context-DNcgI0Uf.js";import"./use-mobile-Br1FbuT5.js";import"./tooltip-Ch_anXXw.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-kud7EQ1E.js";import"./types-DAtj8pL_.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-D0oBW_qu.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./shell-layout-C7iq_ybu.js";import"./avatar-DAAVe66-.js";import"./download-app-dialog-BSQlf9Pn.js";import"./command-uelHA4Qc.js";import"./index--5vhPfMl.js";import"./integration-icon-CT7gtNMF.js";import"./project-icon-BuXyfXr6.js";import"./required-auth-layout-DbcZh8KB.js";import"./use-org-sso-CSb7uzWR.js";import"./sheet-KfyT4iJh.js";import"./use-connection-DEkZ7Z3y.js";import"./use-navigate-to-agent-BIB5Nkxx.js";import"./use-mcp-prompts-pRQvLesG.js";import"./index-B4Sw3hof.js";import"./form-DwCt2SR2.js";import"./label-C5dVgFkO.js";import"./input-DhQYTu0H.js";import"./use-thread-outputs-BwzUBEaq.js";import"./file-type-icon-Dg8sADAf.js";import"./popover-BREpugAm.js";import"./monaco-editor-BM2SBH_J.js";import"./editor-B9nqdqUb.js";import"./calendar-D29VArmq.js";import"./textarea-CNloF_6k.js";import"./rich-text-link-control-XbfHUQMq.js";import"./switch-uCmnTmA3.js";import"./search-input-CmWlEMU8.js";import"./tabs-CMPX7aLH.js";import"./use-debounced-value-CPADjlu8.js";import"./use-file-configs-T83FDKTN.js";import"./asset-utils-Ckrgql68.js";import"./useInfiniteQuery-DvCOEAKG.js";import"./infiniteQueryObserver-CzIaF1BV.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./toggle-group-BPpZ90Kk.js";import"./alert-dialog-DQ7VA4it.js";import"./sandbox-git-api-CMdpE2TE.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ue(t)}catch{return}return ue(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function de(d){const e=T.c(10),{src:t,className:n,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==n||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:n,style:m}),e[1]=n,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==r?(i=o.jsx(ge,{size:r}),e[5]=r,e[6]=i):i=e[6];let a;return e[7]!==n||e[8]!==i?(a=o.jsx("div",{className:n,style:s,children:i}),e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Ie(d){const e=T.c(33),{seo:t,host:n,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let a;e[2]!==t.favicon?(a=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ge,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:n}),e[5]=n,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==n||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==a||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c]}),e[14]=a,e[15]=c,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let g;e[18]!==t.title||e[19]!==r?(g=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=g):g=e[20];let u;e[21]!==g?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:g}),e[21]=g,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let y;e[24]!==t.description||e[25]!==r?(y=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=y):y=e[26];let b;e[27]!==y?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:y}),e[27]=y,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Le(d){const e=T.c(26),{seo:t,host:n,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#8a9099"},e[4]=a):a=e[4];let m;e[5]!==n?(m=o.jsx("div",{className:"truncate text-[11px]",style:a,children:n}),e[5]=n,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let g;e[19]!==x||e[20]!==m||e[21]!==l?(g=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,x]}),e[19]=x,e[20]=m,e[21]=l,e[22]=g):g=e[22];let u;return e[23]!==g||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,g]}),e[23]=g,e[24]=s,e[25]=u):u=e[25],u}function Be(d){const e=T.c(36),{seo:t,host:n,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let a;e[2]!==r?(a=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=a):a=e[3];let m;e[4]!==a?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:a}),e[4]=a,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,children:h}),e[14]=h,e[15]=x):x=e[15];let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#60666c"},e[16]=g):g=e[16];let u;e[17]!==t.description||e[18]!==r?(u=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:g,children:u}),e[20]=u,e[21]=S):S=e[21];let y;e[22]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#8a9099"},e[22]=y):y=e[22];let b;e[23]!==n?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:y,children:n}),e[23]=n,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(d){const e=T.c(39),{seo:t,host:n,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",a=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==p?(x={color:p},e[5]=p,e[6]=x):x=e[6];let g;e[7]!==n||e[8]!==x?(g=o.jsx("div",{className:"text-[10px]",style:x,children:n}),e[7]=n,e[8]=x,e[9]=g):g=e[9];let u;e[10]!==a?(u={color:a},e[10]=a,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let y;e[15]!==u||e[16]!==S?(y=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=y):y=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==g||e[28]!==y?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[g,y,k]}),e[26]=k,e[27]=g,e[28]=y,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=_):_=e[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==n||e[6]!==s?(i=t.layout==="search"?o.jsx(Ie,{seo:n,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Le,{seo:n,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Be,{seo:n,host:v,path:r,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=n,e[6]=s,e[7]=i):i=e[7];const a=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==a||e[19]!==l?(c=o.jsxs("div",{children:[l,a]}),e[18]=a,e[19]=l,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,r=v===void 0?"/":v,s=ve();let i,a,m;if(e[0]!==t||e[1]!==n){const u=ze(t);i=u,a=he(u.image,n),m=he(u.favicon,n),e[0]=t,e[1]=n,e[2]=i,e[3]=a,e[4]=m}else i=e[2],a=e[3],m=e[4];let p;e[5]!==i||e[6]!==a||e[7]!==m?(p={...i,image:a,favicon:m},e[5]=i,e[6]=a,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==n?(l=De(n),e[9]=n,e[10]=l):l=e[10];const c=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let g;return e[16]!==x?(g=o.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=g):g=e[17],g}function gi(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),c=Ne(r,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[g,u]=ee.useState(x),[S,y]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);g!==x&&(u(x),y(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=Re({orgSlug:t,virtualMcpId:n,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ye=M?c?.rawSeoData:void 0,U=k!==void 0?k:ye,be=M?we(U)??void 0:void 0,E=S??be??h??{},F=c?Ce(E,c):null,K=F&&(!M||_e(U))?Fe(F,s):null;let G;e[0]!==s?(G=Ee(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Pe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==y?(V=C=>{if(!c)return;const pe=C;y(pe),w(pe)},e[8]=w,e[9]=c,e[10]=y,e[11]=V):V=e[11];const se=V;let W;e[12]!==y?(W=()=>y(null),e[12]=y,e[13]=W):W=e[13];const le=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const re=q;let J;e[16]!==P||e[17]!==f?(J=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=J):J=e[18];const ce=J,z=i.kind==="page"?i.path:"/";let Q;e[19]!==z||e[20]!==a||e[21]!==i.kind?(Q=i.kind==="page"&&a?He(z,a):a??null,e[19]=z,e[20]=a,e[21]=i.kind,e[22]=Q):Q=e[22];const ne=Q;let X;e[23]!==c||e[24]!==l||e[25]!==i.kind?(X=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=l,e[25]=i.kind,e[26]=X):X=e[26];const ae=X,Y=M&&c,me=i.kind==="site"&&c&&K;let D;e[27]!==ce||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate classic:rounded-md compact:rounded-lg px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(je,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(ke,{className:"size-3.5 text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let I;e[34]!==p||e[35]!==l||e[36]!==i.kind?(I=i.kind==="page"&&p&&o.jsxs(Se,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=I):I=e[37];let L;e[38]!==$||e[39]!==I?(L=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,I]}),e[38]=$,e[39]=I,e[40]=L):L=e[40];let B;e[41]!==L||e[42]!==D?(B=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,L]}),e[41]=L,e[42]=D,e[43]=B):B=e[43];let O;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ae||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ne||e[58]!==c||e[59]!==K||e[60]!==y||e[61]!==N||e[62]!==Y||e[63]!==me||e[64]!==R||e[65]!==l?(O=!c||!Y&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ae}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Y?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Ke,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{y(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Te,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ne,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=U,e[49]=E,e[50]=ae,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ne,e[58]=c,e[59]=K,e[60]=y,e[61]=N,e[62]=Y,e[63]=me,e[64]=R,e[65]=l,e[66]=O):O=e[66];let Z;return e[67]!==B||e[68]!==O?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[B,O]}),e[67]=B,e[68]=O,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,n=d.__resolveType;if(typeof t=="string"&&typeof n=="string"&&t!==n)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{gi as SeoEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CBmayW3a.js","assets/index-B4_5ne-m.js","assets/index-BNah-P_g.css","assets/Tool02-BcSzj1eN.js","assets/CheckCircle-L9rxLy8_.js","assets/Settings02-BZd-qcWS.js","assets/use-mcp-client-Di29uH1Z.js","assets/auth-BAIe_T8g.js","assets/useInfiniteQuery-DvCOEAKG.js","assets/infiniteQueryObserver-CzIaF1BV.js","assets/badge-Cxdo9MSD.js","assets/input-DhQYTu0H.js","assets/table-Cx5xJBa9.js","assets/toggle-group-BPpZ90Kk.js","assets/use-view-mode-DB3Sv4EV.js","assets/use-mobile-Br1FbuT5.js","assets/DotsVertical-CycZdUV6.js","assets/Globe01-BmMm30Hp.js","assets/SearchMd-DnahVlUn.js","assets/dialog-BVRmgEZZ.js","assets/X-DcceC-EQ.js","assets/AlertCircle-CvB24fpQ.js","assets/Download01-CK_3UsO1.js","assets/Upload01-CgS71RUS.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DQ7VA4it.js","assets/Trash01-Bt7knSgw.js","assets/label-C5dVgFkO.js","assets/select--0Nrx9pz.js","assets/index-BK4gf4on.js","assets/ChevronUp-Dy-cXbOz.js","assets/switch-uCmnTmA3.js","assets/textarea-CNloF_6k.js","assets/ArrowLeft-CuPXwhY9.js","assets/ArrowRight-DaeNVQjU.js","assets/Link01-BSX_7wIu.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-Dabg6CvC.js","assets/Eye-KAte8whD.js","assets/LinkExternal01-COMF34Up.js","assets/XCircle-BirmII4v.js","assets/use-infinite-scroll-CQVHxZ2X.js","assets/use-copy-BdX2_tpS.js","assets/Copy01-KomJ49aq.js","assets/Key01-BiLmhCHZ.js","assets/Plus-BuCQnPNG.js","assets/tooltip-Ch_anXXw.js","assets/mcp-oauth-Bqx9uZfn.js","assets/Play-C6orNG1z.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as n,d as c,f as m,j as t,h as f,r as l,aJ as p}from"./index-B4_5ne-m.js";import{R as u}from"./require-capability-DNPqpx0A.js";import"./access-gate-BkpH0rYV.js";import"./capability-load-error-BML32Rgk.js";const g=l.lazy(()=>p(()=>import("./registry-layout-CBmayW3a.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,a0 as n,j as r,K as f}from"./index-B4_5ne-m.js";import{C as d}from"./index-DbfxHNth.js";import{m as u,P as x,T as h}from"./mock-board-DDxAYcbL.js";import{F as j}from"./feature-gate-Cf4hZv0B.js";import"./use-mobile-Br1FbuT5.js";import"./thread-button-0wpTVhK0.js";import"./sidebar-Ce0KwGyJ.js";import"./LayoutLeft-Dk8cMo-H.js";import"./sheet-KfyT4iJh.js";import"./X-DcceC-EQ.js";import"./tooltip-Ch_anXXw.js";import"./index-BK4gf4on.js";import"./thread-route-D5lCt0bb.js";import"./use-panel-navigate-7owLLl5-.js";import"./use-project-scope-D7MgPnbk.js";import"./use-virtual-mcp-CdMkF3Nz.js";import"./use-mcp-client-Di29uH1Z.js";import"./auth-BAIe_T8g.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main--vHXCkHM.js";import"./hooks-DZN1ZKP-.js";import"./backoff-8mStPHYB.js";import"./task-board-CwfOEd0p.js";import"./schema-iizf-P2g.js";import"./agent-icon-Bbnm30MH.js";import"./AlertCircle-CvB24fpQ.js";import"./Tool01-BlcXvpRH.js";import"./ArrowUp-CMB2_B55.js";import"./ArrowLeft-CuPXwhY9.js";import"./Tool02-BcSzj1eN.js";import"./ArrowRight-DaeNVQjU.js";import"./TrendUp01-kAJZHj1O.js";import"./ZoomOut-CvMfmw42.js";import"./Globe04-D2pxwWDa.js";import"./CheckCircle-L9rxLy8_.js";import"./ChevronUp-Dy-cXbOz.js";import"./UserSquare-DU12tvTU.js";import"./Copy01-KomJ49aq.js";import"./CreditCard01-DNXTqT2E.js";import"./DotsVertical-CycZdUV6.js";import"./Download01-CK_3UsO1.js";import"./Settings02-BZd-qcWS.js";import"./Eye-KAte8whD.js";import"./Share07-tpVfUX9-.js";import"./Globe01-BmMm30Hp.js";import"./XClose-CZo1KF0t.js";import"./Image01-BHoZzJSj.js";import"./Key01-BiLmhCHZ.js";import"./Link01-BSX_7wIu.js";import"./LinkExternal01-COMF34Up.js";import"./Monitor01-C25vfwGa.js";import"./Sun-C6ausIaw.js";import"./Package-BCflABQ6.js";import"./Palette-By8W7B7e.js";import"./Play-C6orNG1z.js";import"./Plus-BuCQnPNG.js";import"./SearchLg-VMEsA-e7.js";import"./SearchMd-DnahVlUn.js";import"./Stars01-BcbLgM7d.js";import"./Trash01-Bt7knSgw.js";import"./Upload01-CgS71RUS.js";import"./User01-DKY_ILGI.js";import"./Users01-COWDl5zV.js";import"./XCircle-BirmII4v.js";import"./Zap-CIXkomUE.js";import"./toolbar-icon-button-Da8s1pOb.js";import"./use-in-settings-CCWZ9EQU.js";import"./shell-layout-C7iq_ybu.js";import"./avatar-DAAVe66-.js";import"./download-app-dialog-BSQlf9Pn.js";import"./dialog-BVRmgEZZ.js";import"./command-uelHA4Qc.js";import"./index--5vhPfMl.js";import"./integration-icon-CT7gtNMF.js";import"./project-icon-BuXyfXr6.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DbcZh8KB.js";import"./autosend-DrbiZ7KD.js";import"./use-organization-settings-B7QbhgeU.js";import"./use-org-sso-CSb7uzWR.js";import"./resizable-Dw8LR1j8.js";import"./route-page-header-KctxVQ_e.js";import"./drawer-BwM5wPz_.js";import"./popover-BREpugAm.js";import"./task-route-C0NB5FI3.js";import"./use-decopilot-events-CztvGxbe.js";import"./github-icon-C0b5ErP6.js";import"./get-initials-D-f_fDFw.js";import"./rich-text-link-control-XbfHUQMq.js";import"./use-task-board-analytics-5o37lq8z.js";import"./combobox-CFiHpYi-.js";import"./search-toggle-4qgH_UjE.js";import"./icon-button-DU-Ln0Ge.js";import"./repository-import-picker-Bxit3rwH.js";import"./use-navigate-to-agent-BIB5Nkxx.js";import"./thread-intent-BcdlSG8J.js";import"./slugify-CEUa2lfQ.js";import"./repository-picker-Dtn2F8yh.js";import"./input-DhQYTu0H.js";import"./label-C5dVgFkO.js";import"./useInfiniteQuery-DvCOEAKG.js";import"./infiniteQueryObserver-CzIaF1BV.js";import"./collection-search-ACimtR3t.js";import"./use-debounced-value-CPADjlu8.js";import"./use-members-2-cC5S8b.js";import"./use-org-auth-client-BQN7hmW6.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-DXxTmE03.js";import"./breadcrumb-Cl92-rSB.js";import"./calendar-D29VArmq.js";import"./alert-JJIsthFC.js";import"./collapsible-Cc5z9cdY.js";import"./use-copy-BdX2_tpS.js";import"./markdown-CdMnKnHM.js";import"./org-file-open-context-DNcgI0Uf.js";import"./index-B4Sw3hof.js";import"./gateway-client-D0oBW_qu.js";import"./form-DwCt2SR2.js";import"./utils-CVEq3hMx.js";import"./index-IS0010-i.js";import"./hooks-D0h9yhqP.js";import"./use-org-fs-up6Ae3F-.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-connection-DEkZ7Z3y.js";import"./github-repo-scope-C8GSbvaz.js";import"./thread-sheet-body-CZ7U6WOP.js";import"./useSuspenseInfiniteQuery-DMqlAGdI.js";import"./pair-mgqlVrg4.js";import"./usage-stats-DECzmKdw.js";import"./use-entitlements-Cpg4O4cU.js";import"./chat-context-BSf3NsZt.js";import"./use-ai-providers-BLQu9X4b.js";import"./location-oTTXFrSF.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-kud7EQ1E.js";import"./types-DAtj8pL_.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-prompts-pRQvLesG.js";import"./use-thread-outputs-BwzUBEaq.js";import"./file-type-icon-Dg8sADAf.js";import"./use-infinite-scroll-CQVHxZ2X.js";import"./task-status-CunX_b1I.js";import"./use-open-billing-url-DwCvmaT1.js";import"./chat-draft-CYnWSaLo.js";import"./badge-Cxdo9MSD.js";import"./separator-CMAG9KMM.js";import"./feature-paywall-BSg5h6Wb.js";import"./plan-ladder-DFDsraie.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 sr(){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{sr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as D,b as K,r as w,j as r,l as Q}from"./index-B4_5ne-m.js";import{z as q}from"./agent-icon-Bbnm30MH.js";import{i as Y}from"./SearchMd-DnahVlUn.js";import{D as Z,b as ee,d as te,c as re}from"./dialog-BVRmgEZZ.js";import{I as se}from"./input-DhQYTu0H.js";import{V as le,k as oe,W as ie,G as ne}from"./claim-phase-copy-0btUuJoC.js";import{d as X,r as ce}from"./section-preview-url-Csj0_ZDg.js";import{u as ae}from"./use-session-runtime-B1xdg1Mc.js";const fe=12,z=new Set,F=new Set;function ue(){for(const s of F)s()}function de(s){return z.has(s)?!0:z.size>=fe?!1:(z.add(s),!0)}function J(s){z.delete(s)&&ue()}function me(s){return F.add(s),()=>{F.delete(s)}}function ve(s,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(s);l.current=s;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(J(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(J(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(s){const e=D.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=s,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?r.jsxs(r.Fragment,{children:[!l&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:r.jsx(q,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),r.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(q,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=r.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(s){const e=D.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=s,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=Q("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=r.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=r.jsx(q,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=r.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&r.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=r.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=r.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=r.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function ye(s){const e=D.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=s,l=K(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,N,R,y,g,C,T;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const W=t&&i&&o?le(i,o):[],_=i?oe(i):"",G=o?ie(o):void 0,V=new Map;if(t&&_)for(const p of W)V.set(p.resolveType,X(f,_,p.previewBlock,G));const M=a.trim().toLowerCase(),H=M?W.filter(p=>p.title.toLowerCase().includes(M)||p.resolveType.toLowerCase().includes(M)||p.description?.toLowerCase().includes(M)):W;h=Z,C=t,T=d,m=ee,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=r.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=O):O=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let k;e[27]!==a||e[28]!==B?(k=r.jsxs("div",{className:"relative pt-2",children:[O,r.jsx(se,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=k):k=e[29],e[30]!==A||e[31]!==k?(g=r.jsxs(re,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,k]}),e[30]=A,e[31]=k,e[32]=g):g=e[32],j=x,N="min-h-0 flex-1 overflow-y-auto",S="p-4",b=H.length===0?r.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):r.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:H.map(p=>r.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:V.get(p.resolveType)??X(f,_,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=g,e[17]=C,e[18]=T}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],R=e[14],y=e[15],g=e[16],C=e[17],T=e[18];let P;e[33]!==S||e[34]!==b?(P=r.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=P):P=e[35];let I;e[36]!==P||e[37]!==j||e[38]!==N?(I=r.jsx("div",{ref:j,className:N,children:P}),e[36]=P,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=r.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,e[44]=g,e[45]=L):L=e[45];let E;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==T?(E=r.jsx(h,{open:C,onOpenChange:T,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=T,e[50]=E):E=e[50],E}function Ce(s){const e=D.c(4),{previewServerUrl:t,runtime:d}=ae(s.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==s.sandboxUrl||e[2]!==t?(o=ce({sandboxUrl:s.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=s.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{ye as A,Ce as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-CzIaF1BV.js";import{dF as i}from"./index-B4_5ne-m.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-CzIaF1BV.js";import{dF as u,dg as n}from"./index-B4_5ne-m.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|