decocms 4.564.0 → 4.565.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-CQ8p4KFs.js → AlertCircle-BavhHXrm.js} +1 -1
- package/dist/client/assets/{AreaChart-BG9b7IWq.js → AreaChart-CpdR-UAM.js} +1 -1
- package/dist/client/assets/{ArrowLeft-jRoq4RpN.js → ArrowLeft-NHzfDSKs.js} +1 -1
- package/dist/client/assets/{ArrowUp-WAaoRlHa.js → ArrowUp-D6obKkNl.js} +1 -1
- package/dist/client/assets/{CartesianChart-CGjmrhMJ.js → CartesianChart-BuCntSQu.js} +1 -1
- package/dist/client/assets/{CategoricalChart-hyHkOxr8.js → CategoricalChart-9YwAdaOL.js} +1 -1
- package/dist/client/assets/{CheckCircle-Buet-eH6.js → CheckCircle-BZC8qNjY.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DCDJ0sdb.js → ChevronSelectorVertical-XtqZtaGN.js} +1 -1
- package/dist/client/assets/{ChevronUp-BTGxI7Zs.js → ChevronUp-CP2Q1tno.js} +1 -1
- package/dist/client/assets/{CreditCard01-CnLItLU2.js → CreditCard01-DSR9reUx.js} +1 -1
- package/dist/client/assets/{Globe04-DMe5HSmJ.js → Globe04-DsEVRQ8J.js} +1 -1
- package/dist/client/assets/{Key01-Dxtn8NGa.js → Key01-CACSt4gn.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CqkORUqT.js → LinkBroken01-Dhqzd5Xp.js} +1 -1
- package/dist/client/assets/{Minus-D2T9DyMG.js → Minus-CF20rGao.js} +1 -1
- package/dist/client/assets/{Monitor01-D-9i_0yJ.js → Monitor01-CTh24U4S.js} +1 -1
- package/dist/client/assets/{Play-P7egrfAg.js → Play-Dl9rHUIQ.js} +1 -1
- package/dist/client/assets/{Plus-DsyYMAU8.js → Plus-CcxRdpHl.js} +1 -1
- package/dist/client/assets/{ReferenceLine-i4QcKbhg.js → ReferenceLine-DG_YV7QB.js} +1 -1
- package/dist/client/assets/{SearchMd-CW5cmPaz.js → SearchMd-BvpUvADB.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CajIv2w8.js → ShoppingBag01-B2TVYCJe.js} +1 -1
- package/dist/client/assets/{Sun-BZ5I37JT.js → Sun-CwYfSEKK.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DqmEmDR5.js → SwitchHorizontal01-C6F9FLuz.js} +1 -1
- package/dist/client/assets/{Tool01-CSZn_Wh0.js → Tool01-BpRvGDMW.js} +1 -1
- package/dist/client/assets/{Tooltip-BueNEHzC.js → Tooltip-DyscjpNm.js} +1 -1
- package/dist/client/assets/{Trash01-DDMIP9jc.js → Trash01-rMYgPi4D.js} +1 -1
- package/dist/client/assets/{Upload01-DT2jBuxA.js → Upload01-CTvUgusS.js} +1 -1
- package/dist/client/assets/{UserSquare-DKikapRU.js → UserSquare-CeUdUVlp.js} +1 -1
- package/dist/client/assets/{Users01-NB4c6tGb.js → Users01-CgIFV9B4.js} +1 -1
- package/dist/client/assets/{XClose-DpL893eV.js → XClose-B8ZWakSs.js} +1 -1
- package/dist/client/assets/{Zap-DOqlsWJQ.js → Zap-BheFKoJA.js} +1 -1
- package/dist/client/assets/{access-gate-OrPI42qE.js → access-gate-DetE2JQz.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-C4a3y2Tw.js → add-connection-dialog-HS2-iXa_.js} +1 -1
- package/dist/client/assets/agent-app-Cj5VRE9N.js +1 -0
- package/dist/client/assets/{agent-assets-B6JReGpa.js → agent-assets-BVfyM3W2.js} +1 -1
- package/dist/client/assets/{agent-automation-CUEwumhB.js → agent-automation-CFoval4K.js} +1 -1
- package/dist/client/assets/{agent-automations-CUEa-MdA.js → agent-automations-PQlm_1-3.js} +1 -1
- package/dist/client/assets/{agent-calendar-B-kfsJeA.js → agent-calendar-JHkSgIaW.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CmoLwTEk.js → agent-capabilities-D5dRez_U.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DCF_9i75.js → agent-connect-sources-DpIMd_nf.js} +1 -1
- package/dist/client/assets/agent-deck-C8zPFh-t.js +1 -0
- package/dist/client/assets/{agent-e2e-Me1Y__d1.js → agent-e2e-Co6-h6xW.js} +1 -1
- package/dist/client/assets/agent-experiments-DTpS9tX-.js +1 -0
- package/dist/client/assets/{agent-file-C2urOOFa.js → agent-file-D2ltAo8E.js} +1 -1
- package/dist/client/assets/{agent-hosting-bDpflwDy.js → agent-hosting-_jnJiyJB.js} +1 -1
- package/dist/client/assets/{agent-icon-TjMVTO6h.js → agent-icon-WM9Nds86.js} +1 -1
- package/dist/client/assets/agent-library-D7usyBbZ.js +1 -0
- package/dist/client/assets/agent-library-file-BctrjiTr.js +1 -0
- package/dist/client/assets/agent-overview-0_ctMLbb.js +1 -0
- package/dist/client/assets/{agent-releases-iFoEZYLj.js → agent-releases-Cs9chBHo.js} +1 -1
- package/dist/client/assets/agent-settings-V07gT5Cf.js +1 -0
- package/dist/client/assets/{agent-site-editor-Bk0gdWbE.js → agent-site-editor-CUzXKk_L.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CwFZJgDv.js +2 -0
- package/dist/client/assets/agent-site-editor-content-B-zSDz5I.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DtjBE5NW.js +1 -0
- package/dist/client/assets/agent-view-VjGFcOmA.js +1 -0
- package/dist/client/assets/{agent-view-guard-CgD2SRHj.js → agent-view-guard-BxS78jGZ.js} +1 -1
- package/dist/client/assets/{ai-providers-DP_LPW_J.js → ai-providers-Bg6XVNeS.js} +1 -1
- package/dist/client/assets/{alert-DOoQbEiz.js → alert-U9tZtWPC.js} +1 -1
- package/dist/client/assets/{analytics-sections-BnrB72yH.js → analytics-sections-_Da0sWct.js} +1 -1
- package/dist/client/assets/api-keys-B1FZ7y5P.js +1 -0
- package/dist/client/assets/{api-keys-Cz-pcuKo.js → api-keys-Bj6cZbJj.js} +1 -1
- package/dist/client/assets/{app-editor-BtQvbROq.js → app-editor-DsNvlfaV.js} +1 -1
- package/dist/client/assets/{asset-utils-D0vrhEGW.js → asset-utils-B5Sq3qKL.js} +1 -1
- package/dist/client/assets/{auth-Bo7mZ0XZ.js → auth-A_dHVlLy.js} +1 -1
- package/dist/client/assets/{auth-catchall-DpoQiWR3.js → auth-catchall-C9DBUwY3.js} +1 -1
- package/dist/client/assets/{auth-entry-BjPguG1n.js → auth-entry-B2MqWpcF.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DZpBIwlD.js → auth-split-layout-CwJlT6Oq.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-ntvNyemj.js → authenticate-and-persist-oauth-Ci98CWsZ.js} +1 -1
- package/dist/client/assets/{automation-list-row-BEFQKTX1.js → automation-list-row-5R79B6L2.js} +1 -1
- package/dist/client/assets/{automation-runs-DzWprxEK.js → automation-runs-muPpbYEP.js} +1 -1
- package/dist/client/assets/{automations-Bxf0CCXl.js → automations-C7djfZR5.js} +1 -1
- package/dist/client/assets/{autosend-U0ehaXsA.js → autosend-BLwaDfuL.js} +1 -1
- package/dist/client/assets/{badge-Dfaw3WBB.js → badge-C8SoiSYZ.js} +1 -1
- package/dist/client/assets/{block-document-6dm-00hY.js → block-document-C7XO3wXa.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-B_sPksUi.js → blocks-preview-workspace-context-Ct_L2Frv.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-eGTb5mvz.js → blocks-tab-states-DjNiCspc.js} +1 -1
- package/dist/client/assets/{blog-schema-Dsmv2ihg.js → blog-schema-Buyn-oQb.js} +1 -1
- package/dist/client/assets/{buckets-C23i5gyQ.js → buckets-D-SuQdJV.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BCaQdWBF.js → build-improve-prompt-doc-BiW3JFW6.js} +1 -1
- package/dist/client/assets/{calendar-CmUvBlY1.js → calendar-B-_EB2yo.js} +1 -1
- package/dist/client/assets/{capability-load-error-8rnJwJni.js → capability-load-error-DTfH6BCq.js} +1 -1
- package/dist/client/assets/{category-editor-Cf4WXU9v.js → category-editor-BEQyGteX.js} +1 -1
- package/dist/client/assets/{chart-C0imxM4a.js → chart-BgKVrBIO.js} +1 -1
- package/dist/client/assets/{chat-context-BBpIuXC7.js → chat-context-DGEoSZ8g.js} +1 -1
- package/dist/client/assets/{chat-draft-CGuyKppk.js → chat-draft-Hfl-Vt7X.js} +1 -1
- package/dist/client/assets/{checkbox-CTu0WRp7.js → checkbox-2hVfC1K9.js} +1 -1
- package/dist/client/assets/{choose-editor-BG1SjT1d.js → choose-editor-DoJJP7Y2.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C7trLL5C.js → cli-auth-success-BhPPAawt.js} +1 -1
- package/dist/client/assets/{client-icons-DQougokE.js → client-icons-D56oac-S.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-B30HFRSW.js → cms-settings-editor-DS_lS8up.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BphiU1zo.js → cms-store-drafts-BOzxBdUW.js} +1 -1
- package/dist/client/assets/{collapsible-Ddfj_16s.js → collapsible-CBkOKy_V.js} +1 -1
- package/dist/client/assets/{collection-detail-Cm2aKNHg.js → collection-detail-BwgBO9rx.js} +1 -1
- package/dist/client/assets/{collection-display-button-9rq6-Wdl.js → collection-display-button-B1FWTXCr.js} +1 -1
- package/dist/client/assets/{collection-search-BnR15-7O.js → collection-search-DLMLNhxJ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-yg2kkMXP.js → collection-table-wrapper-OFbnOu-w.js} +1 -1
- package/dist/client/assets/{collection-tabs-BC3eX7CT.js → collection-tabs-Tp4T2q9Y.js} +1 -1
- package/dist/client/assets/{combobox-BWpli-Xr.js → combobox-Bv4H0UoH.js} +1 -1
- package/dist/client/assets/{command-DF3tcytL.js → command-Dnw2pasR.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C8SHo1sU.js → companion-mcps-section-68jW8mRF.js} +1 -1
- package/dist/client/assets/{config-CiEg0__n.js → config-LiKo2fo2.js} +1 -1
- package/dist/client/assets/{connect-BGwBZ_Ka.js → connect-BFbtHYxe.js} +1 -1
- package/dist/client/assets/{connect-layout-DbCgCtqS.js → connect-layout-ByOzPiGU.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-qP8ktZhS.js → connect-source-dialog-B7Ld_9Px.js} +1 -1
- package/dist/client/assets/{connection-card-BwHX3nOo.js → connection-card-BChC3QcL.js} +1 -1
- package/dist/client/assets/{connection-detail-DKP8tp8_.js → connection-detail-B9GtoOQz.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BGJcgEzh.js → connection-form-helpers-B8GujYbR.js} +1 -1
- package/dist/client/assets/{connection-Dqu9RsNH.js → connection-q83jFl6d.js} +1 -1
- package/dist/client/assets/{connection-slug-taekJBaK.js → connection-slug-e_XZGcMc.js} +1 -1
- package/dist/client/assets/{connections-cWHNOk6t.js → connections-BmZaBZ7X.js} +1 -1
- package/dist/client/assets/{content-tab-BLJmurLN.js → content-tab-DEygOE9A.js} +3 -3
- package/dist/client/assets/{context-XrwEqwYe.js → context-DixWzk5F.js} +1 -1
- package/dist/client/assets/{context-menu-gp9FU1Mh.js → context-menu-sQTRwOW7.js} +1 -1
- package/dist/client/assets/{context-shell-DlBNmZfR.js → context-shell-u2FWmfVw.js} +3 -3
- package/dist/client/assets/{core.esm-CTO4JGte.js → core.esm-Dg3ste3x.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-F-su-nyA.js → create-organization-dialog-Ddfg1y7k.js} +1 -1
- package/dist/client/assets/{device-hint-tzTpy1A9.js → device-hint-CyVF9iUZ.js} +1 -1
- package/dist/client/assets/{discover-CkXTTHib.js → discover-CsUnTSVq.js} +1 -1
- package/dist/client/assets/{domain-settings-Dfq6uTsb.js → domain-settings-Bv-_QfjI.js} +1 -1
- package/dist/client/assets/{drawer-BgyRTjxD.js → drawer-Cr3trfMB.js} +1 -1
- package/dist/client/assets/{editor-CyZCJa0L.js → editor-CtNrPORw.js} +1 -1
- package/dist/client/assets/{editor-classes-D0UJsX59.js → editor-classes-DGhQ0khm.js} +1 -1
- package/dist/client/assets/{empty-state-Dx-vBzke.js → empty-state-CPzwuwQF.js} +1 -1
- package/dist/client/assets/{empty-state-qO8fmVkF.js → empty-state-CQDiVxjd.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BsONYetS.js → experiments-tab-choice-DYELyAgl.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CI_UJ-ru.js → extract-connection-data-BrWbQJSD.js} +1 -1
- package/dist/client/assets/{feature-gate-0S4LDUGl.js → feature-gate-BYSpD9vV.js} +1 -1
- package/dist/client/assets/{feature-paywall-DbRigt-8.js → feature-paywall-Vs4R367Q.js} +1 -1
- package/dist/client/assets/{feedback-DpZ51nw_.js → feedback-BvXufGHE.js} +1 -1
- package/dist/client/assets/{file-explorer-Is8X98eh.js → file-explorer-BnhpA6z2.js} +1 -1
- package/dist/client/assets/{file-preview-DA7tD6qn.js → file-preview-DUdl3Yo6.js} +1 -1
- package/dist/client/assets/{file-share-button-DNqRplIB.js → file-share-button-CVNjiAGQ.js} +1 -1
- package/dist/client/assets/{file-type-icon-DrIF_ach.js → file-type-icon-BbCX4o-i.js} +1 -1
- package/dist/client/assets/{folder-icon-CE9rKFgu.js → folder-icon-COq_f1Ug.js} +1 -1
- package/dist/client/assets/{form-BmoTeXbP.js → form-CX9Y8rXx.js} +1 -1
- package/dist/client/assets/{general-Ds6mKAD-.js → general-C2M6kUiq.js} +1 -1
- package/dist/client/assets/{github-icon-Cfkkw3me.js → github-icon-D5WAOakM.js} +1 -1
- package/dist/client/assets/{home-gn6ueFSP.js → home-BomzyME8.js} +1 -1
- package/dist/client/assets/{home-overview-Bk4OGXI-.js → home-overview-M5WdT7OK.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-liA8Ue5e.js → hosted-reconcile-CFgAFv0C.js} +1 -1
- package/dist/client/assets/{icon-button-Cpw9GkVM.js → icon-button-nqkgw44k.js} +1 -1
- package/dist/client/assets/{index-Cst8xARc.js → index-B-SSEV3y.js} +1 -1
- package/dist/client/assets/{index-DtPyNOkW.js → index-BI_4p3rJ.js} +1 -1
- package/dist/client/assets/{index-B7P1i0U8.js → index-BJboiqe7.js} +1 -1
- package/dist/client/assets/{index-C90BaQbH.js → index-C6icdhcm.js} +1 -1
- package/dist/client/assets/{index-CU6Pikl7.js → index-C7fe-3-1.js} +1 -1
- package/dist/client/assets/{index-CtB8Tw63.js → index-CH6fvsN5.js} +1 -1
- package/dist/client/assets/{index-B5Rq0Q_b.js → index-CLm0YAEW.js} +1 -1
- package/dist/client/assets/{index-CpV2sqUd.js → index-CTGLhdnQ.js} +1 -1
- package/dist/client/assets/{index-BhO2XRBo.js → index-C_uBCqyj.js} +1 -1
- package/dist/client/assets/{index-cgovyYsQ.js → index-D8pFT62M.js} +3 -3
- package/dist/client/assets/{index-DUKj5t3l.js → index-D9_88oYJ.js} +1 -1
- package/dist/client/assets/{index-Ckdck5oP.js → index-DAtb5cig.js} +1 -1
- package/dist/client/assets/{index-DLDJ3DHb.js → index-DX6T00mS.js} +1 -1
- package/dist/client/assets/{index-3pV4g77m.js → index-DsP4hX0b.js} +1 -1
- package/dist/client/assets/{index-DId4rr-A.js → index-GzXknTmE.js} +1 -1
- package/dist/client/assets/{index-redirect-pAjv5SXQ.js → index-redirect-DNhgvlnT.js} +1 -1
- package/dist/client/assets/{index-BFqtpAvr.js → index-wPGh-4Qn.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D_MIEAF-.js → infiniteQueryObserver-BCA8pHQ9.js} +1 -1
- package/dist/client/assets/{infra-billing-DRZUvwh3.js → infra-billing-tTGuSBOr.js} +1 -1
- package/dist/client/assets/{input-DuP90nBH.js → input-CS6hOcXP.js} +3 -3
- package/dist/client/assets/{input-Dm8Dm-Qz.js → input-DzvNX6KE.js} +1 -1
- package/dist/client/assets/{integration-icon-bQl-nSH8.js → integration-icon-oVgUnqWm.js} +1 -1
- package/dist/client/assets/{jira-icon-DBFOj94A.js → jira-icon-DpVhNd3p.js} +1 -1
- package/dist/client/assets/{label-BJpZpGc0.js → label-DyJSQ7-Z.js} +1 -1
- package/dist/client/assets/{layout-7S8BP6VQ.js → layout-uNVzsDnw.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DR8nRly5.js → legacy-agents-deep-DX51gRsB.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Dth5bVh1.js → legacy-main-redirect-acRLIQQu.js} +1 -1
- package/dist/client/assets/library-CxZb-jUS.js +1 -0
- package/dist/client/assets/{library-tab-BL_lF-ft.js → library-tab-Daw4myox.js} +1 -1
- package/dist/client/assets/{login-DjUNKygv.js → login-Cayh2Ab3.js} +1 -1
- package/dist/client/assets/{markdown-mKHkB6FI.js → markdown-h9PNnEh6.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DjL0niPw.js → mcp-app-renderer-CQuQ-XsR.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BIp0LO3E.js → mcp-oauth-B7rGQlv9.js} +1 -1
- package/dist/client/assets/{mcp-oauth-C7DXVMTi.js → mcp-oauth-BJRs38bR.js} +1 -1
- package/dist/client/assets/{members-CtRzSe07.js → members-CdshZLmo.js} +1 -1
- package/dist/client/assets/{memory-CRxleuoc.js → memory-DJgsUgS2.js} +1 -1
- package/dist/client/assets/{mock-board-DnsUfCSW.js → mock-board-B2foCBkp.js} +3 -3
- package/dist/client/assets/{monaco-editor-CuW8q0yx.js → monaco-editor-Cjb9-6hs.js} +1 -1
- package/dist/client/assets/{monitoring-9MjXgbIo.js → monitoring-cw60w70o.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BcsNTX2l.js → monitoring-stats-row-DUQcmnd2.js} +1 -1
- package/dist/client/assets/{multi-select-D9xyRxxq.js → multi-select-PFXUkRJa.js} +1 -1
- package/dist/client/assets/{mustache-8etVpD7L.js → mustache-DYLtwKk5.js} +1 -1
- package/dist/client/assets/{named-rule-view-CTR1XvI8.js → named-rule-view-CMSveLhT.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CG2L3MM-.js → new-project-dialog-CkpxzAtO.js} +1 -1
- package/dist/client/assets/{oauth-callback-BbuovBw_.js → oauth-callback-BN5rMV5w.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DHqdJcsI.js → oauth-callback-ai-provider-BNpWukqC.js} +1 -1
- package/dist/client/assets/{oauth-consent-DweBwUQF.js → oauth-consent-CFvEz3rr.js} +1 -1
- package/dist/client/assets/{onboarding-DrVndD7e.js → onboarding-CcWFl6rw.js} +1 -1
- package/dist/client/assets/{openai-conversation-yopZy_vm.js → openai-conversation-BwEhAFIx.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DacJkxjX.js → optimistic-project-sidebar-views-Bbojv3r5.js} +1 -1
- package/dist/client/assets/{order-monitor-day-CKYfInMA.js → order-monitor-day-Bsfg1ZCB.js} +1 -1
- package/dist/client/assets/{organization-choice-Fbcae3dn.js → organization-choice-DzLKhvgC.js} +1 -1
- package/dist/client/assets/{orgs-DDZTEU_k.js → orgs-DzDCfdd2.js} +1 -1
- package/dist/client/assets/{own-accounts-section-C1y0YP6A.js → own-accounts-section-DxED_LsY.js} +1 -1
- package/dist/client/assets/{pair-C5AjfCSI.js → pair-BqxIn6Y_.js} +1 -1
- package/dist/client/assets/{parse-sections-Cu97Vu_M.js → parse-sections-Cu3Ael-d.js} +3 -3
- package/dist/client/assets/{plan-BohW26kq.js → plan-BwTvKeoR.js} +1 -1
- package/dist/client/assets/{plan-ladder-BaPcuCG0.js → plan-ladder-Nrfbc5fv.js} +1 -1
- package/dist/client/assets/{plan-usage-card-YdOsJ_ZX.js → plan-usage-card-BTqlywv2.js} +1 -1
- package/dist/client/assets/{popover-ns8sHJq5.js → popover-Bc0Osxls.js} +1 -1
- package/dist/client/assets/{post-calendar-DXzGaukN.js → post-calendar-Cj1rSs4t.js} +1 -1
- package/dist/client/assets/{post-editor-DR58AVSj.js → post-editor-CB2rddqd.js} +1 -1
- package/dist/client/assets/{preview-content-VCoMFFk-.js → preview-content-CB9eYnQK.js} +1 -1
- package/dist/client/assets/{preview-dialog-Dhde6lFg.js → preview-dialog-DB7-jTmO.js} +1 -1
- package/dist/client/assets/{preview-panel-BL4zck9B.js → preview-panel-B_W92FeD.js} +1 -1
- package/dist/client/assets/{preview-tab-Dw3ViDnI.js → preview-tab-6TAM9aA1.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-DtlAip15.js → product-picker-dialog-BkNY0_GA.js} +1 -1
- package/dist/client/assets/{profile-CX0TYtL2.js → profile-Ctw12CJ6.js} +1 -1
- package/dist/client/assets/{project-app-view-DbconS9D.js → project-app-view-BUgKvzjP.js} +1 -1
- package/dist/client/assets/{project-apps-DCer9_HY.js → project-apps-OqNLxpWb.js} +1 -1
- package/dist/client/assets/{project-icon-BTrwq8bi.js → project-icon-D_-oKizr.js} +1 -1
- package/dist/client/assets/{project-index-DwUzdWkU.js → project-index-Dqo3lK4y.js} +1 -1
- package/dist/client/assets/project-reports-wHT0lgrT.js +1 -0
- package/dist/client/assets/{project-sidebar-views-vqZZbL1p.js → project-sidebar-views-BIhw1vTs.js} +1 -1
- package/dist/client/assets/project-tasks-CsGsl0Ue.js +1 -0
- package/dist/client/assets/{projects-DRZyZAme.js → projects-BTc2uvLZ.js} +1 -1
- package/dist/client/assets/{projects-empty-state-TY4kUtt4.js → projects-empty-state-BO8xkUWT.js} +1 -1
- package/dist/client/assets/{prompts-kv226h0M.js → prompts-DuFnMTdK.js} +1 -1
- package/dist/client/assets/record-editor-DwEzP7FO.js +1 -0
- package/dist/client/assets/{redirect-editor-B3601TC3.js → redirect-editor-DVXp876P.js} +1 -1
- package/dist/client/assets/reports-CM-guqFW.js +1 -0
- package/dist/client/assets/{reports-C7qj5Hfb.js → reports-Dv36rH_a.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DW_hGBmK.js → reports-onboarding-BaBC6lkq.js} +1 -1
- package/dist/client/assets/{reports-tab-fjcRNutW.js → reports-tab-Dixc59hm.js} +2 -2
- package/dist/client/assets/repositories-B1FKGPtG.js +1 -0
- package/dist/client/assets/{repositories-C9ox4SEq.js → repositories-CBz0Kfvj.js} +1 -1
- package/dist/client/assets/{repository-binding-CoBbz5GR.js → repository-binding-BgpHTQa3.js} +1 -1
- package/dist/client/assets/{repository-picker-_0XvcaQZ.js → repository-picker-DxnB6y8P.js} +1 -1
- package/dist/client/assets/{require-capability-BEaEpCmo.js → require-capability-rIoksLSL.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CtQpY9CE.js → required-auth-layout-BPTXO06k.js} +1 -1
- package/dist/client/assets/{reset-password-DMO2Wfnx.js → reset-password-Bbozq7HR.js} +1 -1
- package/dist/client/assets/{resizable-D1KNHtt_.js → resizable-DHZRSfuo.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DnI4GUKU.js → resolve-tab-icon-CQ5UCjTa.js} +1 -1
- package/dist/client/assets/{review-settings-qBiQynjA.js → review-settings-Ca5wNyAg.js} +1 -1
- package/dist/client/assets/{role-color-m3ekTafX.js → role-color-DaNs5ahF.js} +1 -1
- package/dist/client/assets/{roles-Dlv8qi0F.js → roles-DWA1nSJR.js} +1 -1
- package/dist/client/assets/{route-DBjrARiw.js → route-Bn0Zg4Y6.js} +1 -1
- package/dist/client/assets/{route-BwO9p6WQ.js → route-Br6B1RCL.js} +1 -1
- package/dist/client/assets/route-CFGDEN28.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-6GAWc6Uh.js → sandbox-lifecycle-context-KNW6PNmy.js} +1 -1
- package/dist/client/assets/{schema-BAc2zoda.js → schema-CTKQWjpO.js} +1 -1
- package/dist/client/assets/{schema-D09C1K2b.js → schema-Czvp_Lwx.js} +1 -1
- package/dist/client/assets/{scroll-area-DhC9My5l.js → scroll-area-mSNTFn2P.js} +1 -1
- package/dist/client/assets/{search-input-CaK4kync.js → search-input-BFuc9oQg.js} +1 -1
- package/dist/client/assets/{search-toggle-DPRPz4f9.js → search-toggle-CQD7JD66.js} +1 -1
- package/dist/client/assets/{secret-picker-KlL9XTXY.js → secret-picker-DQnAib0F.js} +1 -1
- package/dist/client/assets/{secrets-BRi5VdUF.js → secrets-DBF3k11O.js} +1 -1
- package/dist/client/assets/{section-array-field--v0XzXwk.js → section-array-field-DvmsCB7P.js} +1 -1
- package/dist/client/assets/{sections-Dm0haO3S.js → sections-BBJqTxGW.js} +1 -1
- package/dist/client/assets/{sections-editor-BpvyJAUh.js → sections-editor-CxLQrocH.js} +1 -1
- package/dist/client/assets/{select-model-BfBifSzm.js → select-model-Bb6eOMs-.js} +1 -1
- package/dist/client/assets/{select-eZpStU_o.js → select-o79Ct_ay.js} +1 -1
- package/dist/client/assets/{seo-editor-PC4JhIxf.js → seo-editor-BE13UypD.js} +1 -1
- package/dist/client/assets/{separator-DTEg-0rT.js → separator-DMd7UEiq.js} +1 -1
- package/dist/client/assets/settings-tab-DNa3VCcv.js +1 -0
- package/dist/client/assets/{sheet-DWPcPfVu.js → sheet-DzHWnq_T.js} +1 -1
- package/dist/client/assets/{shell-layout-C_vTrOFi.js → shell-layout-DP24kzbV.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BHxYhtRx.js → site-draft-actions-CecQb3Ga.js} +1 -1
- package/dist/client/assets/{site-draft-view-B62lda-n.js → site-draft-view-dNLIex4F.js} +1 -1
- package/dist/client/assets/site-editor-Z3fmTiRV.js +1 -0
- package/dist/client/assets/{site-editor-toast-DtZvuCiL.js → site-editor-toast-Aeb7soFG.js} +1 -1
- package/dist/client/assets/{skills-xTHKZ-fS.js → skills-D2_FfMjv.js} +1 -1
- package/dist/client/assets/{slider-Ciu4_ug0.js → slider-Dh1rUkk7.js} +1 -1
- package/dist/client/assets/{sortable.esm-BpQuZ2Ss.js → sortable.esm-BeVlNSdK.js} +1 -1
- package/dist/client/assets/{sso-BBNnGqrM.js → sso-BfMn38Ls.js} +1 -1
- package/dist/client/assets/{suggestion-C3ZKXBdN.js → suggestion-D7zzeZOU.js} +1 -1
- package/dist/client/assets/{switch-BMZWxSSe.js → switch-BaIjfvqD.js} +1 -1
- package/dist/client/assets/{synced-repos-CvcyOOTD.js → synced-repos-BP9uEFMS.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-C7CENxYE.js → tab-icon-glyph-CVcm827m.js} +1 -1
- package/dist/client/assets/{table-BXlZF1sj.js → table-_XF-prXn.js} +1 -1
- package/dist/client/assets/{tabs-CTACUnuC.js → tabs-CzXyAmJC.js} +1 -1
- package/dist/client/assets/{task-board-AmZMoSDj.js → task-board-HVkUhR2P.js} +1 -1
- package/dist/client/assets/{task-route-DZtDO9ed.js → task-route-B3pI7dth.js} +1 -1
- package/dist/client/assets/{task-status-CHJ2KIGX.js → task-status-yRMe4nbp.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-oNMzSYdF.js → taskboard-analytics-Du7Elnb7.js} +1 -1
- package/dist/client/assets/tasks-BtYoq0Uy.js +1 -0
- package/dist/client/assets/{tasks-CbVjJ3WE.js → tasks-BzhoYnpL.js} +1 -1
- package/dist/client/assets/{textarea-eeqMJnUq.js → textarea-B05kUdob.js} +1 -1
- package/dist/client/assets/{thread-analytics-D2UkVv7U.js → thread-analytics-BfeByGR2.js} +1 -1
- package/dist/client/assets/{thread-intent-B59SA_sa.js → thread-intent-BIRE7Qtk.js} +1 -1
- package/dist/client/assets/{thread-route-DT3i-QGQ.js → thread-route-CZ8MMB_J.js} +1 -1
- package/dist/client/assets/{thread-route-Dpw37tsP.js → thread-route-Cn39v6pB.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DfCWtsKP.js → thread-sheet-body-D65WuUvv.js} +1 -1
- package/dist/client/assets/{time-range-picker-Cd1A1wA5.js → time-range-picker-DzKmFLJB.js} +1 -1
- package/dist/client/assets/{toggle-group-C6Pg2YNy.js → toggle-group-HpKtAH98.js} +1 -1
- package/dist/client/assets/{tool-namespace-DbWzvuWO.js → tool-namespace-DxYdT3r_.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CCOfv97s.js → tool-set-selector-CnBqlG8R.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Cy2z0B4C.js → toolbar-icon-button-TYsxy9yJ.js} +1 -1
- package/dist/client/assets/{tooltip-Bg4P3YaG.js → tooltip-BgCnMV2H.js} +1 -1
- package/dist/client/assets/{tooltipContext-DNapU3M5.js → tooltipContext-BRYDLqxt.js} +1 -1
- package/dist/client/assets/{track-BAapDq3b.js → track-BDp_1Hit.js} +1 -1
- package/dist/client/assets/{types-BrSjQREm.js → types-D8M__V__.js} +1 -1
- package/dist/client/assets/{url-slug-DyPxKD3g.js → url-slug-Bsw_pMhA.js} +1 -1
- package/dist/client/assets/{usage-stats-Di2DK9Gv.js → usage-stats-DJLHvs3H.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Bz3SR-CO.js → use-ai-providers-F8TOugyU.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BXKIXuir.js → use-apply-named-rule-BRkF3nZ-.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-C9KFi3ct.js +1 -0
- package/dist/client/assets/{use-automations-BU5c4wvD.js → use-automations-EsbplC7e.js} +1 -1
- package/dist/client/assets/{use-autosave-CkIhfcE5.js → use-autosave-BG4nXiOR.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BOjb1YoC.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-DvftxykM.js → use-chat-layout-state-CQ-6yLaB.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-B3qNhOq8.js → use-cms-publish-actions-CiGJc3Qg.js} +1 -1
- package/dist/client/assets/{use-connect-companion-3Wux1jMd.js → use-connect-companion-ClTD8ccL.js} +1 -1
- package/dist/client/assets/{use-connection-IiFidBLV.js → use-connection-DCYGUl-Y.js} +1 -1
- package/dist/client/assets/{use-content-sync-BrMwpVNk.js → use-content-sync-CoOj2Ul7.js} +1 -1
- package/dist/client/assets/{use-copy-D49VwPhf.js → use-copy-L2-IdJ_Y.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DKLPMzYi.js → use-date-fns-locale-DPCm9If2.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CcnJ6SAY.js → use-debounced-autosave-DWtRBliW.js} +1 -1
- package/dist/client/assets/{use-debounced-value-nhqnKklo.js → use-debounced-value-Dn9biZK4.js} +1 -1
- package/dist/client/assets/{use-deco-credits-NgUo324z.js → use-deco-credits-dZ-Tevsi.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-mew6sG2k.js → use-decopilot-events-CKMPTK-j.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D-oKvtiI.js → use-delete-connection-DxUOloiw.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CHn3xyJc.js → use-deployment-admin-_7fnOeiD.js} +1 -1
- package/dist/client/assets/{use-entitlements-C6In-vfl.js → use-entitlements-BB4qLcGz.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CIz-3ef3.js → use-fast-preview-draft-url-D8KiT4ue.js} +1 -1
- package/dist/client/assets/{use-file-configs-CwAhp36j.js → use-file-configs-c0RGBFjk.js} +1 -1
- package/dist/client/assets/{use-id-selection-mULmZ-Hz.js → use-id-selection-CmywK9L9.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CHAfyO1k.js → use-inbox-feed-BHnwr1_f.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-fmrdKwVH.js → use-infinite-scroll-CM4CmzMp.js} +1 -1
- package/dist/client/assets/{use-join-requests-D9VYGJJu.js → use-join-requests-DbFDM92p.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-3c9VwMgJ.js → use-main-panel-tabs-Xv2NwPm3.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CK0IBQOj.js → use-mcp-auth-status-irD2t1-7.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B3mZDGvG.js → use-mcp-client-CqE4Ghrf.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DnVJp_BL.js → use-mcp-prompts-SlwHiJ8X.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dn8Dy7zb.js → use-mcp-tools-BwZkbv7p.js} +1 -1
- package/dist/client/assets/{use-mobile-dJL_Pm5y.js → use-mobile-EwBUtNij.js} +1 -1
- package/dist/client/assets/{use-move-blocks-R4zS1l6g.js → use-move-blocks-DIQrtI4I.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CYu1HJsb.js → use-navigate-to-agent-ByCAg0It.js} +1 -1
- package/dist/client/assets/{use-org-fs-C83fBFK-.js → use-org-fs-CZ6M3p96.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CVhh3XbC.js → use-org-repo-syncs-DSYvITnH.js} +1 -1
- package/dist/client/assets/{use-org-sso-BVcty70n.js → use-org-sso-BQNy4M1M.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D9LYxkkn.js → use-organization-settings-B6zxeTvg.js} +1 -1
- package/dist/client/assets/{use-project-scope-Y6vAoZoW.js → use-project-scope-BmxYOSqD.js} +1 -1
- package/dist/client/assets/{use-recent-apps-ZWyNF1BM.js → use-recent-apps-CMc3bDPy.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CGaxGYkR.js → use-reports-diagnostic-Bz_fmb8r.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BFiAvETH.js → use-sandbox-events-Bcmjy8_y.js} +1 -1
- package/dist/client/assets/{use-secrets-DLxKCtNq.js → use-secrets-D3u_mrII.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CNXXBKYv.js → use-section-preview-base-RT0rIB3U.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-SAa7Vnq8.js → use-sidebar-collapsed-BWIgVYHH.js} +1 -1
- package/dist/client/assets/{use-tags-Dns9fjGu.js → use-tags-C_S8Ff1f.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-D75AC0iX.js → use-task-board-analytics-BCLzvxv7.js} +1 -1
- package/dist/client/assets/{use-task-board-events-Dv2JYyOG.js → use-task-board-events-BQW5hXik.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DoH7p5yB.js → use-task-board-item-prs-B6Z2gJgd.js} +1 -1
- package/dist/client/assets/{use-task-board-items-CqIbwb7-.js → use-task-board-items-B3aJ_5y5.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-ptkIJi--.js → use-task-board-prompts-Dr1CEZWZ.js} +1 -1
- package/dist/client/assets/{use-task-metadata-D4qj8QP6.js → use-task-metadata-CdWilbXi.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Btu23rT9.js → use-thread-outputs-B4Zce4lE.js} +1 -1
- package/dist/client/assets/{use-voice-input-Bo9Hi7-O.js → use-voice-input-ADzQEEIx.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C3wEWRY0.js +1 -0
- package/dist/client/assets/{useQueries-Blq1gg86.js → useQueries-sl3HeH6v.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-mTZwKUMV.js +1 -0
- package/dist/client/assets/{users-CXxP5GbR.js → users-ChLpJ4P2.js} +1 -1
- package/dist/client/assets/{utils-D_vHWhJR.js → utils-ymd1FJWf.js} +1 -1
- package/dist/client/assets/{variant-calendar-B-mtMhAk.js → variant-calendar-Cs7cI_1m.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-hYkKBfSm.js → variant-matcher-override-1piR_ouW.js} +1 -1
- package/dist/client/assets/{view-header-DrakbT1r.js → view-header-DjtjUnvm.js} +1 -1
- package/dist/client/assets/{virtual-mcp-wPX8BO9V.js → virtual-mcp-BwBYFvbj.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-0ZXuPLm-.js → watch-sse-pool-BoqhatUL.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +24 -23
- package/dist/server/server.js +687 -687
- package/package.json +1 -1
- package/dist/client/assets/agent-app-ClOnnzDV.js +0 -1
- package/dist/client/assets/agent-deck-V4MMZHZM.js +0 -1
- package/dist/client/assets/agent-experiments-DH_tqVqH.js +0 -1
- package/dist/client/assets/agent-library-Co57cOat.js +0 -1
- package/dist/client/assets/agent-library-file-C_ffGwfX.js +0 -1
- package/dist/client/assets/agent-overview-D_ilxAiM.js +0 -1
- package/dist/client/assets/agent-settings-Fpuz9R9B.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CZax6TM0.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BaWyOpGo.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BwBm5AOl.js +0 -1
- package/dist/client/assets/agent-view-y52sDry1.js +0 -1
- package/dist/client/assets/api-keys-eCL0fGKt.js +0 -1
- package/dist/client/assets/library-DgHRYlXy.js +0 -1
- package/dist/client/assets/project-reports-BDw7SW7K.js +0 -1
- package/dist/client/assets/project-tasks-BrIInxOE.js +0 -1
- package/dist/client/assets/record-editor-Cybz45vp.js +0 -1
- package/dist/client/assets/reports-9BRnMytv.js +0 -1
- package/dist/client/assets/repositories-CSX3h8Qf.js +0 -1
- package/dist/client/assets/route-C9j-dl8S.js +0 -1
- package/dist/client/assets/settings-tab-BiP5If_9.js +0 -1
- package/dist/client/assets/site-editor-D-_GHa40.js +0 -1
- package/dist/client/assets/tasks-haJ5q1d6.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BF9v_lE6.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BSsXx46E.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BhHoWMFB.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DJxixS4t.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bf as z,c as ce,q as $t,K as nt,i as xt,a3 as Lt,fH as Ct,fA as Mt,bH as He,bK as It,bJ as ne,c5 as rt,fI as $e,b7 as Ut,b8 as it,fC as Dt,bF as Nt,bA as ot,bz as Kt,fJ as Vt,bS as Ft,b as ye,a5 as qt,j as L,B as xe,L as Wt,h as Yt,a8 as zt}from"./index-cgovyYsQ.js";import{c as Qt,o as Gt,u as Ht,U as Xt,af as Jt,aC as Zt,aD as en,aE as tn,x as nn,q as rn}from"./site-editor-toast-DtZvuCiL.js";import{u as on}from"./use-voice-input-Bo9Hi7-O.js";import{i as sn}from"./AlertCircle-CQ8p4KFs.js";import{aJ as st}from"./agent-icon-TjMVTO6h.js";import{E as Le}from"./empty-state-qO8fmVkF.js";const K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},de=["experiments","campaigns"];function fr(e){return K[e]}const lr=de.map(e=>K[e].blockKey);function cn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function ur(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function pr(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const an="deco";function yr(e,t){if(!z(e))return"missing";const n=K[t],r=Xe(e,n.resolveType),i=Xe(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===an;return o(r)&&o(i)?"available":"replaced"}function Xe(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function Je(e,t){const n=K[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,T]of Object.entries(o)){if(l==="__resolveType")continue;const S=t==="experiments"?fn(T):ln(T);S===null?f.push(l):c[l]=S}return{kind:"saved",block:o,values:c,invalid:f}}function dr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function mr(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function fn(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function ln(e){if(!me(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function gr(e){return e<=0?"off":e>=100?"everyone":"running"}function hr(e){if(!me(e))return null;const t=cn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function _r(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const un="date";function vr(e){return me(e)&&e.__resolveType===un&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function br(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function Tr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function pn(e){const t=[];return e.fastPreviewActive?t.push({kind:"committed"}):(e.fetchEnabled&&e.previewUrl&&t.push({kind:"live",baseUrl:e.previewUrl}),t.push({kind:"committed"})),e.productionUrl&&t.push({kind:"production",baseUrl:e.productionUrl}),t}const yn=5e3,dn=new Map;async function mn(e,t,n=dn){const r=new URL("/live/_meta",e).href,i=n.get(e),o=i==="refused"?void 0:t?.etag,c=await fetch(r,{cache:"no-store",headers:o?{"If-None-Match":o}:{}}).catch(()=>null),f=!c&&!!o&&i===void 0,l=f?await fetch(r,{cache:"no-store",headers:{}}).catch(()=>null):c;if(o&&(f&&l?n.set(e,"refused"):c&&n.set(e,"ok")),t&&(!l||l.status===304))return t;if(!l?.ok)return null;try{return await l.json()}catch{return null}}function gn(e){return nt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Ar(e,t){const n=ce.c(30),{url:r}=Qt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Gt(e?.virtualMcpId),{previewServerUrl:l,runtime:T}=on(e?.virtualMcpId),S=!i&&T==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=$t(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Jt(e,P):gn({...e,previewUrl:c,productionUrl:l}):nt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let I;n[5]!==O.kind||n[6]!==V||n[7]!==S||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Zt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>S?tn(e):nn(e,rn(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:pn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:S});for(const d of s){if(d.kind==="committed"){const E=await G();if(E.kind==="data")return E.data;continue}const a=Q.getQueryData(j),B=await mn(d.baseUrl,i||a?.etag?a:void 0);if(B)return B}const y=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw y.status=502,y},n[5]=O.kind,n[6]=V,n[7]=S,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=I):I=n[17];const W=!!e&&O.kind!=="pending",$=P?!1:i?yn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==S||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||S||i||s.status!==502)&&G<3,n[18]=S,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==I||n[24]!==W||n[25]!==$||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:I,enabled:W,refetchInterval:$,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:hn},n[22]=j,n[23]=I,n[24]=W,n[25]=$,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],xt(Y)}function hn(e){return Lt(5e3,1e3,e,2,0)}const _n=new Set(["split-traffic","calendar"]);function vn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const bn=12,Tn=8,Ee=32,An=40,Ze="__SECTION_REF__";function le(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function et(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const Sn="VideoWidget";function Z(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function ct(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ce(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Me(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function at(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ce(e)??Me(e);if(r){for(const f of at(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=ct(e);for(const f of Object.values(n))if(f[i])return f[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function Sr(e,t){return Object.keys(ge(e,t)).length>0}function ft(e,t){if(Ct(e,t))return!0;const n=Ce(t)??Me(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(at(n.vendor,n.app).some(c=>c in r))return!0;const i=ct(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function On(e){return e==="site/apps/site.ts"?!1:Ce(e)!==null||Me(e)!==null}function Rn(e,t){return lt(t,{resolveType:e})}function Or(e,t){return lt(t,{ref:e})}function lt(e,t){const n=e.schema??{},r="resolveType"in t?ge(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const y=s.split("/").pop()??"",d=i[y];return d||(y===Ze?o.sections??{}:{})};let f;typeof r.$ref=="string"?f=c(r.$ref):Object.keys(r).length>0?f=r:f=n;const l=s=>typeof s.$ref=="string"?c(s.$ref):s,T=s=>{const d=l(s).properties?.type;if(d){if(typeof d.const=="string")return d.const;if(typeof d.default=="string")return d.default;if(Array.isArray(d.enum)&&typeof d.enum[0]=="string")return d.enum[0]}},S=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},O=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:O(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===Ze?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),B=a.anyOf??a.oneOf;if(!Array.isArray(B))return[];const E=new Set([...y,d]);return B.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},I=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>bn)return{};if(typeof s.$ref=="string"){const B=s.$ref.split("/").pop()??"";return y.has(B)?{}:W(c(s.$ref),new Set([...y,B]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...Z(a.__required),...Z(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=Z(a.__required),H=W(x,y,d+1);a={...a,...H};const M=B==="allOf"?[...U,...Z(H.__required)]:U;M.length>0?a.__required=M:delete a.__required}}return a},$=(s,y=0,d=new Set)=>{let a=s,B;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";B=k,k===Sn&&!a.format&&(a={...a,format:"video-uri"})}a=O(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,U=(k,m,b,R=!0)=>!E&&(!R||b<=An)&&m<Tn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(R=>!(R.type==="null"||R.type===null)),b=R=>{if(typeof R.const=="string"||typeof R.const=="number")return R.const;if(Array.isArray(R.enum)&&R.enum.length===1&&(typeof R.enum[0]=="string"||typeof R.enum[0]=="number"))return R.enum[0]};m.length>0&&m.every(R=>b(R)!==void 0)&&(H=m.map(R=>b(R)))}}let M,oe,Fe=!1;if(a.type)M=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(b=>!(b.type==="null"||b.type===null));if(m.length===0)M="null";else if(m.length===1){const b=m[0];oe=b,M=b.type?Array.isArray(b.type)?String(b.type[0]):String(b.type):typeof b.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof s[p]=="string"?s[p]:typeof a[p]=="string"?a[p]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:H,format:u("format"),options:u("options")}}const b=m.filter(V),R=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(le),Ae=u=>{if(typeof u.$ref!="string")return;const p=O(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const C=l(_),N=C.properties;return!N?.__resolveType&&!C.anyOf&&!C.oneOf&&(C.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},fe=m.flatMap(u=>{const p=Ae(u);return p?[p]:[]}),kt=fe.length===0&&m.filter(u=>!le(O(u))).every(u=>typeof u.$ref=="string"||b.includes(u)),Pt=b.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Mt||z(e)&&p[0]==="multivariate")}),Se=(u=[])=>{const p=new Map;for(const A of[...b,...m.filter(v=>!b.includes(v)).flatMap(v=>q(v)),...u]){const v=Q(A);v&&!p.has(v)&&p.set(v,A)}const g=[...p].map(([A,v])=>({resolveType:A,title:typeof v.title=="string"?v.title:ne(A),description:typeof v.description=="string"?v.description:void 0,schema:U(v,y+1,p.size)})),h=[];for(const A of m){if(b.includes(A)||typeof A.$ref!="string")continue;const v=c(A.$ref);let X;const J=v.properties?.__resolveType;if(Array.isArray(J?.enum)&&typeof J.enum[0]=="string"&&(X=J.enum[0]),!X&&Array.isArray(v.allOf))for(const Bt of v.allOf){const Re=Bt.properties?.__resolveType?.enum;if(Array.isArray(Re)&&typeof Re[0]=="string"){X=Re[0];break}}X&&h.push({resolveType:X,title:typeof v.title=="string"&&!v.title.startsWith("#")?v.title:ne(X),description:typeof v.description=="string"?v.description:void 0,schema:U(v,y+1,m.length)})}const w=new Set(g.map(A=>A.resolveType)),_=[...g,...h.filter(A=>!w.has(A.resolveType))],C=m.filter(A=>!b.includes(A)),N=C.length===1&&!E?$(C[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:R,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!et(D,c);if(u&&fe.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!I(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>le(O(_))),w=fe.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,C)=>({title:S(_,`Option ${C+1}`),schema:$(_,y+1,x)})),{title:S(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Se(fe.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&kt){const p=$(D,y+1,x),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:p.title,h=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:p.description;return{...p,type:"array",title:g,description:h,loaderRef:b.length>0?{...Se(),title:g,description:h}:void 0}}if(Pt){const p=$(D,y+1,x);return{...p,type:"array",title:typeof a.title=="string"?a.title:p.title,description:typeof a.description=="string"?a.description:p.description}}}if(b.length>0)return Se();const Ye=u=>{const p=l(u);if(typeof p.title=="string"&&He(p.title))return!0;const g=p.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const w=h.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},ze=m.map(u=>T(u));if(m.length>1&&ze.every(u=>typeof u=="string")&&!m.some(Ye)){const u=m.map((p,g)=>{const h=l(p),w=ze[g];return{resolveType:w,title:S(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>Z(_.required).includes("type")),schema:U(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Oe=u=>{if(Ye(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},jt=u=>{const p=O(u);return le(p)?!et(p,c):!1},Qe=y<Ee&&m.every(u=>Oe(u)||jt(u))&&m.some(Oe),Ge=m.every(u=>typeof u.$ref=="string"),wt=z(e)&&!Ge&&m.some(u=>typeof u.$ref=="string"&&_n.has(vn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Oe(u));if((Ge||wt)&&!Qe){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const A=He(g.title);A&&(h=A.blockId,w=A.blockId)}if(!h&&Array.isArray(g.allOf))for(const A of g.allOf){const J=((A.properties??{}).__resolveType??{}).enum;if(Array.isArray(J)&&typeof J[0]=="string"){h=J[0],_=!0;break}}if(!h){const v=g.properties?.__resolveType?.enum;Array.isArray(v)&&typeof v[0]=="string"&&(h=v[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const C=h.includes("/")||_&&!It(h),N=C?void 0:T(p);!N&&!C||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:U(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:R,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Qe){const u=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[C,N]of Object.entries(w)){const A=u(N);A!==void 0&&(_[C]=A)}return{title:S(g,`Option ${h+1}`),schema:$(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}M="object"}}else a.allOf?(M="object",Fe=I(a.title)):typeof s.$ref=="string"&&(M="object");let ae,qe,We=!1;if(y<Ee&&!E){const k=W(a),m=k.__resolveType?.enum;We=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const b=Z(k.__required);b.length>0&&(qe=b);const R=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(R.length>0){ae={};for(const[D,Ae]of R)ae[D]=$(Ae,y+1,x)}}let Te;if((M==="array"||a.type==="array")&&y<Ee&&!E){const k=a.items;if(k){Te=$(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Te.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},Et=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:M??"string",title:typeof s.title=="string"?s.title:!Fe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:Et(),enum:Array.isArray(a.enum)?a.enum:H??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:te("format"),properties:ae,required:qe,items:Te,lazy:We&&ae?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(M==="object"||M==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return $({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=O(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=$(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=I(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=$(y,0));if(Object.keys(Y).length===0)return null;const G=Z(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function Rr(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(T=>!T.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function Er(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ie(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,f=o.logo,l=o,T=O=>O===!0||O==="true",S=T(l.hide)||T(l.ignore)||T(l.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof f=="string"?f:void 0,hidden:S||void 0}}const ut=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],En=new Set(ut);function Ue(e){return En.has(e)}function De(e,t){return Ue(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function kr(e,t){return De(e,z(t)?t:void 0)}function Ne(e){return e.replace(/\/+$/,"")||"/"}function Pr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function kn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function jr(e){const t=e.trim();return t?kn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function wr(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function pt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Br(e){e=pt(e);const t=[];let n=0;for(const r of e.matchAll(Ke))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function $r(e,t){return pt(e).replace(Ke,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const yt=ut[0],Pn=new Set(["site/sections/Theme/Theme.tsx"]);function jn(e,t){return Pn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(jn(e,z(t))||it(e)||e.toLowerCase().includes("preview"))}function dt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(Ue(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":yt}function wn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function xr(e){return e?wn(e)?"page":dt(e):yt}function ke(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return ke(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...ke(n));return t}return[]}function Bn(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(he(o,e))continue;const c=Ie(o,e);n.push({resolveType:o,title:c.title??ne(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function Lr(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))he(o,e)||n.has(o)||n.set(o,{resolveType:o,title:ne(o)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function mt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!gt(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const o of i){const c=Ut(o,r);if(!c||typeof c!="object")continue;let f=c.__resolveType;if(typeof f=="string"&&it(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&$e(e,f))return f}return n}function gt(e,t){return e===Dt||t&&e===Nt}function $n(e,t){return mt(e,t)!==t.__resolveType}function ht(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||rt(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||Ue(c)||typeof o.path=="string"||he(c,e)||!($e(e,c)||gt(c,z(e))&&$n(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function xn(e,t){const n=ot(t.resolveType,e),r=n?{}:Ie(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||ne(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Cr(e,t){const n=dt(e),r=Rn(n,e),i=ke(r?.properties?.sections),o=new Map,c=f=>{if(!he(f.resolveType,e)){if(ot(f.resolveType,e)){rt(f.resolveType)||o.set(f.resolveType,f);return}$e(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of Bn(e))c(f);for(const f of i)c(xn(e,f));for(const f of ht(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Mr(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const _e="website/loaders/redirect.ts",Ir=new Set([_e,"website/loaders/redirects.ts"]),ve="redirect",Ln=[301,302,307,308],Cn={temporary:307,permanent:301};function Ur(e){return e.flat&&e.status||Cn[e.type]}const ue=e=>typeof e=="string"?e:"",Mn=e=>e==="permanent"?"permanent":"temporary",In=e=>Ln.find(t=>t===e);function _t(e){const t=In(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function be(e){if(e?.__resolveType===ve)return _t(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:Mn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Un(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==_e&&i.__resolveType!==ve||t.push({key:n,...be(i)})}return t}function Dr(e){return be(e)}function Dn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:ve,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:_e}}function Nn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Kn=1e3;function Nr(e,t){const n=Nn(t);for(let r=0;r<Kn;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}const Vn="Redirects",vt="redirects";function bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===vt}function Fn(e){return Object.keys(e).filter(n=>bt(e[n])).sort()[0]??Vn}function Kr(e,t){const n=e.lastIndexOf("#");if(n<=0)return null;const r=e.slice(0,n),i=e.slice(n+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,r)||!bt(t[r])?null:{block:r,index:Number(i)}}function re(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(n=>!!n&&typeof n=="object"&&!Array.isArray(n)):[]}function Tt(e){return"redirect"in e?be(e):_t({...e})}function At(e,t){const{__resolveType:n,...r}=Dn(e,{...t});return r}function Vr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:_e}:{...n,__resolveType:ve}])}function Fr(e,t=Fn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...Tt(n)}))}function qr(e,t){const n=re(e)[t];return n?Tt(n):be(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:vt,redirects:t}}function Wr(e,t){return Ve(e,[...re(e),At(t)])}function Yr(e,t,n){const r=re(e),i=r.slice();return i[t]=At(n,r[t]),Ve(e,i)}function zr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function qn(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,""),t=t.replace(/-\d{5,}$/,"");try{return decodeURIComponent(t)}catch{return t}}function Qr(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(f=>f.key===n);if(o)return o;const c=e.find(f=>f.key.endsWith(`-${n}`));if(c)return c}if(r){const o=Pe(e,r);if(o)return o}if(i){const o=Pe(e,i);if(o)return o}return null}function Pe(e,t,n){const r=Ne;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}function Gr(e,t,n){const r=Pe(e,t,n);return r||Ne(t)!=="/"?r:e[0]??null}const se="site",St="site/apps/site.ts";function je(e,t){return e===se?!0:t.__resolveType===St}function Hr(e,t){return e?Ot(e,t).length>0||Un(e).length>0?!0:t?Hn(e,t).length>0||Qn(e,t)?!0:Gn(e,t).length>0:!1:!1}function Wn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!De(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:qn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Wn(r,i,t);o&&n.push(o)}return n}function we(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>we(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>we(i,t,n+1))}function tt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):we(e,t)}function Yn(e,t,n){const r=Ot(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||tt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&tt(e[c.key],o))}function Xr(e,t,n){const r=o=>Ne(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Yn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function zn(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function Be(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ie(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function Qn(e,t){const n=e[se];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(je(se,r)||ft(t,i)))return{key:se,name:Be(se,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!je(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:St;return{key:r,name:Be(r,o,t),resolveType:c}}return null}function Gn(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(De(c,t)||typeof o.path!="string"&&(je(r,o)||!ft(t,c)&&!On(c)||n.push({key:r,name:Be(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Hn(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=mt(t,r);return{key:n.resolveType,name:n.description??zn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const Xn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Jn={posts:"post",categories:"category",authors:"author"},Rt=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Jr(e,...t){const n=e?Xn.exec(e)?.[1]:void 0;if(n)return Jn[n]??null;for(const r of t){if(!pe(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Rt.find(c=>pe(r[c]));if(o)return o}return null}function Zn(...e){for(const t of e)if(pe(t))for(const n of Rt){const r=t[n];if(pe(r))for(const i of["title","name"]){const o=r[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function er(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function Zr(e,t,n){return Zn(...t)??er(e,n)}const tr="https://github.com/decocms/blocks";function ei(){const e=ce.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(st,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(zt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(xe,{size:"sm",asChild:!0,children:L.jsxs("a",{href:tr,target:"_blank",rel:"noreferrer",children:[o,c]})}),e[8]=o,e[9]=f):f=e[9];let l;return e[10]!==r||e[11]!==i||e[12]!==f?(l=L.jsx(Le,{className:"h-full w-full",image:n,title:r,description:i,actions:f}),e[10]=r,e[11]=i,e[12]=f,e[13]=l):l=e[13],l}function ti(e){const t=ce.c(15),{source:n,onRetry:r}=e,i=ye();let o;t[0]!==n||t[1]!==i?(o=i(n==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=n,t[1]=i,t[2]=o):o=t[2];const c=o;let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=L.jsx(sn,{size:48,className:"text-muted-foreground"}),t[3]=f):f=t[3];let l;t[4]!==i?(l=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=l):l=t[5];let T;t[6]!==i?(T=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=T):T=t[7];let S;t[8]!==r||t[9]!==T?(S=L.jsx(xe,{variant:"outline",size:"sm",onClick:r,children:T}),t[8]=r,t[9]=T,t[10]=S):S=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==S?(O=L.jsx(Le,{image:f,title:l,description:c,actions:S}),t[11]=c,t[12]=l,t[13]=S,t[14]=O):O=t[14],O}function ni(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ri(){const e=ce.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(st,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==t?(i=t("siteEditor.siteNotOwned.title"),e[1]=t,e[2]=i):i=e[2];let o;e[3]!==t?(o=t("siteEditor.siteNotOwned.body"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==n.slug?(c={org:n.slug},e[5]=n.slug,e[6]=c):c=e[6];let f;e[7]!==t?(f=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=f):f=e[8];let l;e[9]!==c||e[10]!==f?(l=L.jsx(xe,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(Wt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let T;return e[12]!==i||e[13]!==o||e[14]!==l?(T=L.jsx(Le,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=T):T=e[15],T}function ii(e){const t=ce.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Yt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{ke as $,Rn as A,ti as B,ii as C,zn as D,vt as E,Vr as F,ur as G,mt as H,Dr as I,Kr as J,Qr as K,Qn as L,Un as M,de as N,Lr as O,Ir as P,Fn as Q,Cn as R,ri as S,Fr as T,Nr as U,Dn as V,Wr as W,zr as X,kr as Y,wn as Z,xr as _,Pr as a,Ue as a0,Or as a1,Cr as a2,hr as a3,Rr as a4,Er as a5,Wn as a6,qn as a7,Jr as a8,Zr as a9,pr as aa,er as ab,yt as ac,me as ad,Je as ae,vr as af,fr as ag,_r as ah,dr as ai,br as aj,Zn as ak,gr as al,Tr as am,Mr as an,Pe as ao,qr as ap,Ln as aq,Yr as ar,ei as b,Hn as c,Gr as d,Ot as e,$r as f,yr as g,Hr as h,ni as i,lr as j,dt as k,Sr as l,St as m,Ne as n,je as o,Xr as p,On as q,mr as r,Br as s,Be as t,Ar as u,jr as v,Ie as w,Ur as x,wr as y,he as z};
|
|
1
|
+
import{bf as z,c as ce,q as $t,K as nt,i as xt,a3 as Lt,fH as Ct,fA as Mt,bH as He,bK as It,bJ as ne,c5 as rt,fI as $e,b7 as Ut,b8 as it,fC as Dt,bF as Nt,bA as ot,bz as Kt,fJ as Vt,bS as Ft,b as ye,a5 as qt,j as L,B as xe,L as Wt,h as Yt,a8 as zt}from"./index-D8pFT62M.js";import{c as Qt,o as Gt,u as Ht,U as Xt,af as Jt,aC as Zt,aD as en,aE as tn,x as nn,q as rn}from"./site-editor-toast-Aeb7soFG.js";import{u as on}from"./use-voice-input-ADzQEEIx.js";import{i as sn}from"./AlertCircle-BavhHXrm.js";import{aJ as st}from"./agent-icon-WM9Nds86.js";import{E as Le}from"./empty-state-CQDiVxjd.js";const K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},de=["experiments","campaigns"];function fr(e){return K[e]}const lr=de.map(e=>K[e].blockKey);function cn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function ur(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function pr(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const an="deco";function yr(e,t){if(!z(e))return"missing";const n=K[t],r=Xe(e,n.resolveType),i=Xe(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===an;return o(r)&&o(i)?"available":"replaced"}function Xe(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function Je(e,t){const n=K[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,T]of Object.entries(o)){if(l==="__resolveType")continue;const S=t==="experiments"?fn(T):ln(T);S===null?f.push(l):c[l]=S}return{kind:"saved",block:o,values:c,invalid:f}}function dr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function mr(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function fn(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function ln(e){if(!me(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function gr(e){return e<=0?"off":e>=100?"everyone":"running"}function hr(e){if(!me(e))return null;const t=cn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function _r(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const un="date";function vr(e){return me(e)&&e.__resolveType===un&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function br(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function Tr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function pn(e){const t=[];return e.fastPreviewActive?t.push({kind:"committed"}):(e.fetchEnabled&&e.previewUrl&&t.push({kind:"live",baseUrl:e.previewUrl}),t.push({kind:"committed"})),e.productionUrl&&t.push({kind:"production",baseUrl:e.productionUrl}),t}const yn=5e3,dn=new Map;async function mn(e,t,n=dn){const r=new URL("/live/_meta",e).href,i=n.get(e),o=i==="refused"?void 0:t?.etag,c=await fetch(r,{cache:"no-store",headers:o?{"If-None-Match":o}:{}}).catch(()=>null),f=!c&&!!o&&i===void 0,l=f?await fetch(r,{cache:"no-store",headers:{}}).catch(()=>null):c;if(o&&(f&&l?n.set(e,"refused"):c&&n.set(e,"ok")),t&&(!l||l.status===304))return t;if(!l?.ok)return null;try{return await l.json()}catch{return null}}function gn(e){return nt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Ar(e,t){const n=ce.c(30),{url:r}=Qt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Gt(e?.virtualMcpId),{previewServerUrl:l,runtime:T}=on(e?.virtualMcpId),S=!i&&T==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=$t(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Jt(e,P):gn({...e,previewUrl:c,productionUrl:l}):nt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let I;n[5]!==O.kind||n[6]!==V||n[7]!==S||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Zt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>S?tn(e):nn(e,rn(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:pn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:S});for(const d of s){if(d.kind==="committed"){const E=await G();if(E.kind==="data")return E.data;continue}const a=Q.getQueryData(j),B=await mn(d.baseUrl,i||a?.etag?a:void 0);if(B)return B}const y=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw y.status=502,y},n[5]=O.kind,n[6]=V,n[7]=S,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=I):I=n[17];const W=!!e&&O.kind!=="pending",$=P?!1:i?yn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==S||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||S||i||s.status!==502)&&G<3,n[18]=S,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==I||n[24]!==W||n[25]!==$||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:I,enabled:W,refetchInterval:$,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:hn},n[22]=j,n[23]=I,n[24]=W,n[25]=$,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],xt(Y)}function hn(e){return Lt(5e3,1e3,e,2,0)}const _n=new Set(["split-traffic","calendar"]);function vn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const bn=12,Tn=8,Ee=32,An=40,Ze="__SECTION_REF__";function le(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function et(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const Sn="VideoWidget";function Z(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function ct(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ce(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Me(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function at(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ce(e)??Me(e);if(r){for(const f of at(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=ct(e);for(const f of Object.values(n))if(f[i])return f[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function Sr(e,t){return Object.keys(ge(e,t)).length>0}function ft(e,t){if(Ct(e,t))return!0;const n=Ce(t)??Me(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(at(n.vendor,n.app).some(c=>c in r))return!0;const i=ct(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function On(e){return e==="site/apps/site.ts"?!1:Ce(e)!==null||Me(e)!==null}function Rn(e,t){return lt(t,{resolveType:e})}function Or(e,t){return lt(t,{ref:e})}function lt(e,t){const n=e.schema??{},r="resolveType"in t?ge(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const y=s.split("/").pop()??"",d=i[y];return d||(y===Ze?o.sections??{}:{})};let f;typeof r.$ref=="string"?f=c(r.$ref):Object.keys(r).length>0?f=r:f=n;const l=s=>typeof s.$ref=="string"?c(s.$ref):s,T=s=>{const d=l(s).properties?.type;if(d){if(typeof d.const=="string")return d.const;if(typeof d.default=="string")return d.default;if(Array.isArray(d.enum)&&typeof d.enum[0]=="string")return d.enum[0]}},S=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},O=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:O(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===Ze?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),B=a.anyOf??a.oneOf;if(!Array.isArray(B))return[];const E=new Set([...y,d]);return B.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},I=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>bn)return{};if(typeof s.$ref=="string"){const B=s.$ref.split("/").pop()??"";return y.has(B)?{}:W(c(s.$ref),new Set([...y,B]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...Z(a.__required),...Z(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=Z(a.__required),H=W(x,y,d+1);a={...a,...H};const M=B==="allOf"?[...U,...Z(H.__required)]:U;M.length>0?a.__required=M:delete a.__required}}return a},$=(s,y=0,d=new Set)=>{let a=s,B;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";B=k,k===Sn&&!a.format&&(a={...a,format:"video-uri"})}a=O(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,U=(k,m,b,R=!0)=>!E&&(!R||b<=An)&&m<Tn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(R=>!(R.type==="null"||R.type===null)),b=R=>{if(typeof R.const=="string"||typeof R.const=="number")return R.const;if(Array.isArray(R.enum)&&R.enum.length===1&&(typeof R.enum[0]=="string"||typeof R.enum[0]=="number"))return R.enum[0]};m.length>0&&m.every(R=>b(R)!==void 0)&&(H=m.map(R=>b(R)))}}let M,oe,Fe=!1;if(a.type)M=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(b=>!(b.type==="null"||b.type===null));if(m.length===0)M="null";else if(m.length===1){const b=m[0];oe=b,M=b.type?Array.isArray(b.type)?String(b.type[0]):String(b.type):typeof b.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof s[p]=="string"?s[p]:typeof a[p]=="string"?a[p]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:H,format:u("format"),options:u("options")}}const b=m.filter(V),R=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(le),Ae=u=>{if(typeof u.$ref!="string")return;const p=O(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const C=l(_),N=C.properties;return!N?.__resolveType&&!C.anyOf&&!C.oneOf&&(C.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},fe=m.flatMap(u=>{const p=Ae(u);return p?[p]:[]}),kt=fe.length===0&&m.filter(u=>!le(O(u))).every(u=>typeof u.$ref=="string"||b.includes(u)),Pt=b.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Mt||z(e)&&p[0]==="multivariate")}),Se=(u=[])=>{const p=new Map;for(const A of[...b,...m.filter(v=>!b.includes(v)).flatMap(v=>q(v)),...u]){const v=Q(A);v&&!p.has(v)&&p.set(v,A)}const g=[...p].map(([A,v])=>({resolveType:A,title:typeof v.title=="string"?v.title:ne(A),description:typeof v.description=="string"?v.description:void 0,schema:U(v,y+1,p.size)})),h=[];for(const A of m){if(b.includes(A)||typeof A.$ref!="string")continue;const v=c(A.$ref);let X;const J=v.properties?.__resolveType;if(Array.isArray(J?.enum)&&typeof J.enum[0]=="string"&&(X=J.enum[0]),!X&&Array.isArray(v.allOf))for(const Bt of v.allOf){const Re=Bt.properties?.__resolveType?.enum;if(Array.isArray(Re)&&typeof Re[0]=="string"){X=Re[0];break}}X&&h.push({resolveType:X,title:typeof v.title=="string"&&!v.title.startsWith("#")?v.title:ne(X),description:typeof v.description=="string"?v.description:void 0,schema:U(v,y+1,m.length)})}const w=new Set(g.map(A=>A.resolveType)),_=[...g,...h.filter(A=>!w.has(A.resolveType))],C=m.filter(A=>!b.includes(A)),N=C.length===1&&!E?$(C[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:R,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!et(D,c);if(u&&fe.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!I(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>le(O(_))),w=fe.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,C)=>({title:S(_,`Option ${C+1}`),schema:$(_,y+1,x)})),{title:S(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Se(fe.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&kt){const p=$(D,y+1,x),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:p.title,h=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:p.description;return{...p,type:"array",title:g,description:h,loaderRef:b.length>0?{...Se(),title:g,description:h}:void 0}}if(Pt){const p=$(D,y+1,x);return{...p,type:"array",title:typeof a.title=="string"?a.title:p.title,description:typeof a.description=="string"?a.description:p.description}}}if(b.length>0)return Se();const Ye=u=>{const p=l(u);if(typeof p.title=="string"&&He(p.title))return!0;const g=p.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const w=h.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},ze=m.map(u=>T(u));if(m.length>1&&ze.every(u=>typeof u=="string")&&!m.some(Ye)){const u=m.map((p,g)=>{const h=l(p),w=ze[g];return{resolveType:w,title:S(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>Z(_.required).includes("type")),schema:U(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Oe=u=>{if(Ye(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},jt=u=>{const p=O(u);return le(p)?!et(p,c):!1},Qe=y<Ee&&m.every(u=>Oe(u)||jt(u))&&m.some(Oe),Ge=m.every(u=>typeof u.$ref=="string"),wt=z(e)&&!Ge&&m.some(u=>typeof u.$ref=="string"&&_n.has(vn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Oe(u));if((Ge||wt)&&!Qe){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const A=He(g.title);A&&(h=A.blockId,w=A.blockId)}if(!h&&Array.isArray(g.allOf))for(const A of g.allOf){const J=((A.properties??{}).__resolveType??{}).enum;if(Array.isArray(J)&&typeof J[0]=="string"){h=J[0],_=!0;break}}if(!h){const v=g.properties?.__resolveType?.enum;Array.isArray(v)&&typeof v[0]=="string"&&(h=v[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const C=h.includes("/")||_&&!It(h),N=C?void 0:T(p);!N&&!C||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:U(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:R,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Qe){const u=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[C,N]of Object.entries(w)){const A=u(N);A!==void 0&&(_[C]=A)}return{title:S(g,`Option ${h+1}`),schema:$(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}M="object"}}else a.allOf?(M="object",Fe=I(a.title)):typeof s.$ref=="string"&&(M="object");let ae,qe,We=!1;if(y<Ee&&!E){const k=W(a),m=k.__resolveType?.enum;We=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const b=Z(k.__required);b.length>0&&(qe=b);const R=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(R.length>0){ae={};for(const[D,Ae]of R)ae[D]=$(Ae,y+1,x)}}let Te;if((M==="array"||a.type==="array")&&y<Ee&&!E){const k=a.items;if(k){Te=$(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Te.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},Et=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:M??"string",title:typeof s.title=="string"?s.title:!Fe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:Et(),enum:Array.isArray(a.enum)?a.enum:H??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:te("format"),properties:ae,required:qe,items:Te,lazy:We&&ae?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(M==="object"||M==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return $({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=O(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=$(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=I(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=$(y,0));if(Object.keys(Y).length===0)return null;const G=Z(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function Rr(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(T=>!T.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function Er(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ie(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,f=o.logo,l=o,T=O=>O===!0||O==="true",S=T(l.hide)||T(l.ignore)||T(l.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof f=="string"?f:void 0,hidden:S||void 0}}const ut=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],En=new Set(ut);function Ue(e){return En.has(e)}function De(e,t){return Ue(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function kr(e,t){return De(e,z(t)?t:void 0)}function Ne(e){return e.replace(/\/+$/,"")||"/"}function Pr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function kn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function jr(e){const t=e.trim();return t?kn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function wr(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function pt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Br(e){e=pt(e);const t=[];let n=0;for(const r of e.matchAll(Ke))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function $r(e,t){return pt(e).replace(Ke,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const yt=ut[0],Pn=new Set(["site/sections/Theme/Theme.tsx"]);function jn(e,t){return Pn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(jn(e,z(t))||it(e)||e.toLowerCase().includes("preview"))}function dt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(Ue(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":yt}function wn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function xr(e){return e?wn(e)?"page":dt(e):yt}function ke(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return ke(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...ke(n));return t}return[]}function Bn(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(he(o,e))continue;const c=Ie(o,e);n.push({resolveType:o,title:c.title??ne(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function Lr(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))he(o,e)||n.has(o)||n.set(o,{resolveType:o,title:ne(o)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function mt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!gt(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const o of i){const c=Ut(o,r);if(!c||typeof c!="object")continue;let f=c.__resolveType;if(typeof f=="string"&&it(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&$e(e,f))return f}return n}function gt(e,t){return e===Dt||t&&e===Nt}function $n(e,t){return mt(e,t)!==t.__resolveType}function ht(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||rt(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||Ue(c)||typeof o.path=="string"||he(c,e)||!($e(e,c)||gt(c,z(e))&&$n(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function xn(e,t){const n=ot(t.resolveType,e),r=n?{}:Ie(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||ne(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Cr(e,t){const n=dt(e),r=Rn(n,e),i=ke(r?.properties?.sections),o=new Map,c=f=>{if(!he(f.resolveType,e)){if(ot(f.resolveType,e)){rt(f.resolveType)||o.set(f.resolveType,f);return}$e(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of Bn(e))c(f);for(const f of i)c(xn(e,f));for(const f of ht(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Mr(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const _e="website/loaders/redirect.ts",Ir=new Set([_e,"website/loaders/redirects.ts"]),ve="redirect",Ln=[301,302,307,308],Cn={temporary:307,permanent:301};function Ur(e){return e.flat&&e.status||Cn[e.type]}const ue=e=>typeof e=="string"?e:"",Mn=e=>e==="permanent"?"permanent":"temporary",In=e=>Ln.find(t=>t===e);function _t(e){const t=In(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function be(e){if(e?.__resolveType===ve)return _t(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:Mn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Un(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==_e&&i.__resolveType!==ve||t.push({key:n,...be(i)})}return t}function Dr(e){return be(e)}function Dn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:ve,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:_e}}function Nn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Kn=1e3;function Nr(e,t){const n=Nn(t);for(let r=0;r<Kn;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}const Vn="Redirects",vt="redirects";function bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===vt}function Fn(e){return Object.keys(e).filter(n=>bt(e[n])).sort()[0]??Vn}function Kr(e,t){const n=e.lastIndexOf("#");if(n<=0)return null;const r=e.slice(0,n),i=e.slice(n+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,r)||!bt(t[r])?null:{block:r,index:Number(i)}}function re(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(n=>!!n&&typeof n=="object"&&!Array.isArray(n)):[]}function Tt(e){return"redirect"in e?be(e):_t({...e})}function At(e,t){const{__resolveType:n,...r}=Dn(e,{...t});return r}function Vr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:_e}:{...n,__resolveType:ve}])}function Fr(e,t=Fn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...Tt(n)}))}function qr(e,t){const n=re(e)[t];return n?Tt(n):be(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:vt,redirects:t}}function Wr(e,t){return Ve(e,[...re(e),At(t)])}function Yr(e,t,n){const r=re(e),i=r.slice();return i[t]=At(n,r[t]),Ve(e,i)}function zr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function qn(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,""),t=t.replace(/-\d{5,}$/,"");try{return decodeURIComponent(t)}catch{return t}}function Qr(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(f=>f.key===n);if(o)return o;const c=e.find(f=>f.key.endsWith(`-${n}`));if(c)return c}if(r){const o=Pe(e,r);if(o)return o}if(i){const o=Pe(e,i);if(o)return o}return null}function Pe(e,t,n){const r=Ne;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}function Gr(e,t,n){const r=Pe(e,t,n);return r||Ne(t)!=="/"?r:e[0]??null}const se="site",St="site/apps/site.ts";function je(e,t){return e===se?!0:t.__resolveType===St}function Hr(e,t){return e?Ot(e,t).length>0||Un(e).length>0?!0:t?Hn(e,t).length>0||Qn(e,t)?!0:Gn(e,t).length>0:!1:!1}function Wn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!De(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:qn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Wn(r,i,t);o&&n.push(o)}return n}function we(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>we(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>we(i,t,n+1))}function tt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):we(e,t)}function Yn(e,t,n){const r=Ot(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||tt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&tt(e[c.key],o))}function Xr(e,t,n){const r=o=>Ne(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Yn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function zn(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function Be(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ie(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function Qn(e,t){const n=e[se];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(je(se,r)||ft(t,i)))return{key:se,name:Be(se,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!je(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:St;return{key:r,name:Be(r,o,t),resolveType:c}}return null}function Gn(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(De(c,t)||typeof o.path!="string"&&(je(r,o)||!ft(t,c)&&!On(c)||n.push({key:r,name:Be(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Hn(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=mt(t,r);return{key:n.resolveType,name:n.description??zn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const Xn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Jn={posts:"post",categories:"category",authors:"author"},Rt=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Jr(e,...t){const n=e?Xn.exec(e)?.[1]:void 0;if(n)return Jn[n]??null;for(const r of t){if(!pe(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Rt.find(c=>pe(r[c]));if(o)return o}return null}function Zn(...e){for(const t of e)if(pe(t))for(const n of Rt){const r=t[n];if(pe(r))for(const i of["title","name"]){const o=r[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function er(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function Zr(e,t,n){return Zn(...t)??er(e,n)}const tr="https://github.com/decocms/blocks";function ei(){const e=ce.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(st,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(zt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(xe,{size:"sm",asChild:!0,children:L.jsxs("a",{href:tr,target:"_blank",rel:"noreferrer",children:[o,c]})}),e[8]=o,e[9]=f):f=e[9];let l;return e[10]!==r||e[11]!==i||e[12]!==f?(l=L.jsx(Le,{className:"h-full w-full",image:n,title:r,description:i,actions:f}),e[10]=r,e[11]=i,e[12]=f,e[13]=l):l=e[13],l}function ti(e){const t=ce.c(15),{source:n,onRetry:r}=e,i=ye();let o;t[0]!==n||t[1]!==i?(o=i(n==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=n,t[1]=i,t[2]=o):o=t[2];const c=o;let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=L.jsx(sn,{size:48,className:"text-muted-foreground"}),t[3]=f):f=t[3];let l;t[4]!==i?(l=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=l):l=t[5];let T;t[6]!==i?(T=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=T):T=t[7];let S;t[8]!==r||t[9]!==T?(S=L.jsx(xe,{variant:"outline",size:"sm",onClick:r,children:T}),t[8]=r,t[9]=T,t[10]=S):S=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==S?(O=L.jsx(Le,{image:f,title:l,description:c,actions:S}),t[11]=c,t[12]=l,t[13]=S,t[14]=O):O=t[14],O}function ni(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ri(){const e=ce.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(st,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==t?(i=t("siteEditor.siteNotOwned.title"),e[1]=t,e[2]=i):i=e[2];let o;e[3]!==t?(o=t("siteEditor.siteNotOwned.body"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==n.slug?(c={org:n.slug},e[5]=n.slug,e[6]=c):c=e[6];let f;e[7]!==t?(f=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=f):f=e[8];let l;e[9]!==c||e[10]!==f?(l=L.jsx(xe,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(Wt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let T;return e[12]!==i||e[13]!==o||e[14]!==l?(T=L.jsx(Le,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=T):T=e[15],T}function ii(e){const t=ce.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Yt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{ke as $,Rn as A,ti as B,ii as C,zn as D,vt as E,Vr as F,ur as G,mt as H,Dr as I,Kr as J,Qr as K,Qn as L,Un as M,de as N,Lr as O,Ir as P,Fn as Q,Cn as R,ri as S,Fr as T,Nr as U,Dn as V,Wr as W,zr as X,kr as Y,wn as Z,xr as _,Pr as a,Ue as a0,Or as a1,Cr as a2,hr as a3,Rr as a4,Er as a5,Wn as a6,qn as a7,Jr as a8,Zr as a9,pr as aa,er as ab,yt as ac,me as ad,Je as ae,vr as af,fr as ag,_r as ah,dr as ai,br as aj,Zn as ak,gr as al,Tr as am,Mr as an,Pe as ao,qr as ap,Ln as aq,Yr as ar,ei as b,Hn as c,Gr as d,Ot as e,$r as f,yr as g,Hr as h,ni as i,lr as j,dt as k,Sr as l,St as m,Ne as n,je as o,Xr as p,On as q,mr as r,Br as s,Be as t,Ar as u,jr as v,Ie as w,Ur as x,wr as y,he as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,j as i,r as _,m as R,b as T}from"./index-
|
|
1
|
+
import{c as O,j as i,r as _,m as R,b as T}from"./index-D8pFT62M.js";import{l as v}from"./agent-icon-WM9Nds86.js";import{a1 as P,x as K,a0 as D,a2 as W}from"./parse-sections-Cu3Ael-d.js";import{t as y}from"./ChevronUp-CP2Q1tno.js";import{C as I,a as Y,b as w}from"./collapsible-CBkOKy_V.js";import{M as B,W as L}from"./content-tab-DEygOE9A.js";function $(l){const e=O.c(2);let t;return e[0]!==l?(t=i.jsx(P,{children:i.jsx(K,{...l})}),e[0]=l,e[1]=t):t=e[1],t}function A(l){const e=O.c(18),{icon:t,title:o,defaultOpen:c,children:d}=l,j=c===void 0?!1:c,[f,C]=_.useState(j);let m;e[0]!==t?(m=i.jsx(t,{size:15}),e[0]=t,e[1]=m):m=e[1];let s;e[2]!==o?(s=i.jsx("span",{className:"flex-1 text-left",children:o}),e[2]=o,e[3]=s):s=e[3];const b=f&&"rotate-180";let n;e[4]!==b?(n=R("transition-transform",b),e[4]=b,e[5]=n):n=e[5];let p;e[6]!==n?(p=i.jsx(y,{size:15,className:n}),e[6]=n,e[7]=p):p=e[7];let r;e[8]!==m||e[9]!==s||e[10]!==p?(r=i.jsx(I,{asChild:!0,children:i.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground cursor-pointer",children:[m,s,p]})}),e[8]=m,e[9]=s,e[10]=p,e[11]=r):r=e[11];let a;e[12]!==d?(a=i.jsx(Y,{className:"px-2 pt-4",children:d}),e[12]=d,e[13]=a):a=e[13];let u;return e[14]!==f||e[15]!==r||e[16]!==a?(u=i.jsxs(w,{open:f,onOpenChange:C,className:"mt-4",children:[r,a]}),e[14]=f,e[15]=r,e[16]=a,e[17]=u):u=e[17],u}function Z(l){const e=O.c(32),{schema:t,value:o,onChange:c,basePath:d,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}=l,s=T();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[n,p]=_.useState(b);if(!t)return null;let r;e[1]!==s?(r=s("sandbox.blogCustomFields.title"),e[1]=s,e[2]=r):r=e[2];let a;e[3]!==s?(a=s("sandbox.blogCustomFields.description"),e[3]=s,e[4]=a):a=e[4];let u;e[5]!==a?(u=i.jsx("p",{className:"mb-4 text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=u):u=e[6];let x;e[7]!==s?(x=s("sandbox.blogCustomFields.breadcrumbLabel"),e[7]=s,e[8]=x):x=e[8];let h;e[9]!==s?(h=s("sandbox.blogCustomFields.backToFields"),e[9]=s,e[10]=h):h=e[10];let g;e[11]!==n||e[12]!==x||e[13]!==h?(g=i.jsx(D,{path:n,onNavigate:p,label:x,backTitle:h}),e[11]=n,e[12]=x,e[13]=h,e[14]=g):g=e[14];let S;e[15]!==c?(S=F=>c(F),e[15]=c,e[16]=S):S=e[16];let E;e[17]!==d||e[18]!==n||e[19]!==f||e[20]!==j||e[21]!==m||e[22]!==C||e[23]!==t||e[24]!==S||e[25]!==o?(E=i.jsx($,{schema:t,value:o,onChange:S,basePath:d,breadcrumbPath:n,onBreadcrumbChange:p,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}),e[17]=d,e[18]=n,e[19]=f,e[20]=j,e[21]=m,e[22]=C,e[23]=t,e[24]=S,e[25]=o,e[26]=E):E=e[26];let N;return e[27]!==r||e[28]!==u||e[29]!==g||e[30]!==E?(N=i.jsxs(A,{icon:v,title:r,children:[u,g,E]}),e[27]=r,e[28]=u,e[29]=g,e[30]=E,e[31]=N):N=e[31],N}function k(l,e){if(!e)return null;const o=W(B[l],e)?.properties?.[L[l]];if(!o)return null;const c=o.properties?o:o.plainSchema;return c?.properties?c:null}const z=new Set(["__resolveType","@type"]);function G(l,e){const t=l?.properties;if(!t)return null;const o=Object.fromEntries(Object.entries(t).filter(([c,d])=>!e.has(c)&&!z.has(c)&&d.hidden!==!0));return Object.keys(o).length===0?null:{type:"object",properties:o}}function ee(l,e,t){return G(k(l,e),t)}const M=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(M),V=["name","slug","parentSlug","description","sections"],se=new Set(V);export{Z as C,te as K,$ as S,A as a,ee as b,se as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,b as T,j as t,hY as Q,r as S,B as L,D as W,v as X,w as Z,x as ee,aT as te,I as D,y as se,bj as ie,t as K,ay as O,g2 as le,aH as ne,aI as re,aJ as ce,aK as ae,aL as oe,aM as de,aN as ue}from"./index-cgovyYsQ.js";import{i as fe}from"./AlertCircle-CQ8p4KFs.js";import{s as V}from"./Plus-DsyYMAU8.js";import{s as me}from"./Trash01-DDMIP9jc.js";import{B as R}from"./badge-Dfaw3WBB.js";import{E as ge}from"./empty-state-Dx-vBzke.js";import{L as B}from"./label-BJpZpGc0.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-eZpStU_o.js";import{S as je}from"./switch-BMZWxSSe.js";import{T as ke}from"./textarea-eeqMJnUq.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-CwAhp36j.js";import{R as Se}from"./require-capability-BEaEpCmo.js";import"./index-BdQq_4o_.js";import"./index-B5Rq0Q_b.js";import"./ChevronUp-BTGxI7Zs.js";import"./access-gate-OrPI42qE.js";import"./capability-load-error-8rnJwJni.js";function Ne(i,e){if(!(i instanceof Error))return e;const s=i.message.match(/\[\s*\{[\s\S]*\}\s*\]/);if(s)try{const l=JSON.parse(s[0])[0];if(l?.message){const r=l.path?.join(".");return r?`${r}: ${l.message}`:l.message}}catch{}return i.message||e}function Be(i){const e=F.c(6),{error:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(fe,{size:16}),e[0]=l):l=e[0];let r;e[1]!==s.message||e[2]!==n?(r=n("settings.buckets.failedToLoadConfigs",{error:s.message}),e[1]=s.message,e[2]=n,e[3]=r):r=e[3];let c;return e[4]!==r?(c=t.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[l,t.jsx("span",{className:"text-sm font-medium",children:r})]}),e[4]=r,e[5]=c):c=e[5],c}function De(i){const e=F.c(51),{config:s,onDelete:n}=i,l=T();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:t.jsx(O,{size:16,className:"text-muted-foreground"})}),e[0]=r):r=e[0];let c;e[1]!==s.name?(c=t.jsx("span",{className:"font-medium text-sm truncate",children:s.name}),e[1]=s.name,e[2]=c):c=e[2];let o;e[3]!==s.credentialType||e[4]!==l?(o=s.credentialType==="sts-session"?t.jsx(R,{variant:"muted",size:"sm",children:"STS"}):s.credentialType==="managed"?t.jsx(R,{variant:"muted",size:"sm",children:l("settings.buckets.managed")}):null,e[3]=s.credentialType,e[4]=l,e[5]=o):o=e[5];let d;e[6]!==s.bucket||e[7]!==s.region?(d=t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:[s.bucket," · ",s.region]}),e[6]=s.bucket,e[7]=s.region,e[8]=d):d=e[8];let a;e[9]!==c||e[10]!==o||e[11]!==d?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[c,o,d]}),e[9]=c,e[10]=o,e[11]=d,e[12]=a):a=e[12];let u;e[13]!==s.description?(u=s.description?t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:s.description}):null,e[13]=s.description,e[14]=u):u=e[14];let x;e[15]!==s.endpoint||e[16]!==s.forcePathStyle||e[17]!==l?(x=s.endpoint?t.jsxs("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:[s.endpoint,s.forcePathStyle?` (${l("settings.buckets.pathStyle")})`:""]}):null,e[15]=s.endpoint,e[16]=s.forcePathStyle,e[17]=l,e[18]=x):x=e[18];let v;e[19]!==s.prefix||e[20]!==l?(v=s.prefix?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.prefix",{prefix:s.prefix})}):null,e[19]=s.prefix,e[20]=l,e[21]=v):v=e[21];let p;e[22]!==s.publicUrlBase||e[23]!==l?(p=s.publicUrlBase?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.public",{url:s.publicUrlBase})}):null,e[22]=s.publicUrlBase,e[23]=l,e[24]=p):p=e[24];let h;e[25]!==a||e[26]!==u||e[27]!==x||e[28]!==v||e[29]!==p?(h=t.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[r,t.jsxs("div",{className:"min-w-0",children:[a,u,x,v,p]})]}),e[25]=a,e[26]=u,e[27]=x,e[28]=v,e[29]=p,e[30]=h):h=e[30];let b;e[31]!==s.createdAt?(b=new Date(s.createdAt).toLocaleDateString(),e[31]=s.createdAt,e[32]=b):b=e[32];let C;e[33]!==b?(C=t.jsx("span",{className:"text-xs text-muted-foreground",children:b}),e[33]=b,e[34]=C):C=e[34];let y;e[35]!==s||e[36]!==n?(y=()=>n(s),e[35]=s,e[36]=n,e[37]=y):y=e[37];let j;e[38]!==s.name||e[39]!==l?(j=l("settings.buckets.deleteButton",{name:s.name}),e[38]=s.name,e[39]=l,e[40]=j):j=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(me,{size:14}),e[41]=k):k=e[41];let f;e[42]!==y||e[43]!==j?(f=t.jsx(L,{variant:"ghost",size:"sm",onClick:y,"aria-label":j,children:k}),e[42]=y,e[43]=j,e[44]=f):f=e[44];let m;e[45]!==C||e[46]!==f?(m=t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[C,f]}),e[45]=C,e[46]=f,e[47]=m):m=e[47];let N;return e[48]!==h||e[49]!==m?(N=t.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,m]}),e[48]=h,e[49]=m,e[50]=N):N=e[50],N}function Pe(i){const e=F.c(15),{onCreate:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(O,{}),e[0]=l):l=e[0];let r;e[1]!==n?(r=n("settings.buckets.noBucketsConfigured"),e[1]=n,e[2]=r):r=e[2];let c;e[3]!==n?(c=n("settings.buckets.emptyStateDescription"),e[3]=n,e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(V,{size:14}),e[5]=o):o=e[5];let d;e[6]!==n?(d=n("settings.buckets.addBucket"),e[6]=n,e[7]=d):d=e[7];let a;e[8]!==s||e[9]!==d?(a=t.jsxs(L,{onClick:s,size:"sm",children:[o,d]}),e[8]=s,e[9]=d,e[10]=a):a=e[10];let u;return e[11]!==r||e[12]!==c||e[13]!==a?(u=t.jsx(le,{children:t.jsx(ge,{size:"inline",icon:l,title:r,description:c,children:a})}),e[11]=r,e[12]=c,e[13]=a,e[14]=u):u=e[14],u}function I({open:i,onOpenChange:e}){const s=T(),[n,l]=S.useState(""),[r,c]=S.useState(""),[o,d]=S.useState(""),[a,u]=S.useState(""),[x,v]=S.useState(""),[p,h]=S.useState(!1),[b,C]=S.useState(""),[y,j]=S.useState(""),[k,f]=S.useState("static"),[m,N]=S.useState(""),[P,_]=S.useState(""),[w,A]=S.useState(""),[z,E]=S.useState(""),U=ve();function H(){l(""),c(""),d(""),u(""),v(""),h(!1),C(""),j(""),f("static"),N(""),_(""),A(""),E("")}const $=k==="sts-session"?!!(w.trim()&&z.trim()):!!(m&&P);async function J(g){if(g.preventDefault(),!n.trim()||!o.trim()||!a.trim()||!$)return;const M=k==="sts-session"?{credentialType:"sts-session",refreshUrl:w.trim(),apiKey:z.trim()}:{credentialType:"static",accessKeyId:m,secretAccessKey:P};try{await U.mutateAsync({name:n.trim(),description:r.trim()||void 0,bucket:o.trim(),region:a.trim(),endpoint:x.trim()||void 0,forcePathStyle:p,prefix:b.trim()||void 0,publicUrlBase:y.trim()||void 0,...M}),K.success(s("settings.buckets.bucketAdded",{name:n.trim()})),H(),e(!1)}catch(Y){K.error(Ne(Y,s("settings.buckets.failedToAddBucket")))}}const G=U.isPending||!n.trim()||!o.trim()||!a.trim()||!$;return t.jsx(W,{open:i,onOpenChange:e,children:t.jsxs(X,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[t.jsxs(Z,{children:[t.jsx(ee,{children:s("settings.buckets.addS3Bucket")}),t.jsx(te,{children:s("settings.buckets.credentialsEncryptedDescription")})]}),t.jsxs("form",{onSubmit:J,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-name",children:s("settings.buckets.nameLabel")}),t.jsx(D,{id:"file-config-name",value:n,onChange:g=>l(g.target.value),placeholder:s("settings.buckets.namePlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.nameHelperText")})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-bucket",children:s("settings.buckets.bucketLabel")}),t.jsx(D,{id:"file-config-bucket",value:o,onChange:g=>d(g.target.value),placeholder:s("settings.buckets.bucketPlaceholder"),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-region",children:s("settings.buckets.regionLabel")}),t.jsx(D,{id:"file-config-region",value:a,onChange:g=>u(g.target.value),placeholder:s("settings.buckets.regionPlaceholder"),autoComplete:"off",required:!0})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-endpoint",children:s("settings.buckets.endpointLabel")}),t.jsx(D,{id:"file-config-endpoint",type:"url",value:x,onChange:g=>v(g.target.value),placeholder:s("settings.buckets.endpointPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.endpointHelperText")})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 p-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx(B,{htmlFor:"file-config-path-style",className:"text-sm",children:s("settings.buckets.forcePathStyleLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("settings.buckets.forcePathStyleHelperText")})]}),t.jsx(je,{id:"file-config-path-style",checked:p,onCheckedChange:h})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-prefix",children:s("settings.buckets.prefixLabel")}),t.jsx(D,{id:"file-config-prefix",value:b,onChange:g=>C(g.target.value),placeholder:s("settings.buckets.prefixPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.prefixHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-public-url-base",children:s("settings.buckets.publicUrlBaseLabel")}),t.jsx(D,{id:"file-config-public-url-base",type:"url",value:y,onChange:g=>j(g.target.value),placeholder:s("settings.buckets.publicUrlBasePlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.publicUrlBaseHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-credential-type",children:s("settings.buckets.credentialsLabel")}),t.jsxs(xe,{value:k,onValueChange:g=>f(g),children:[t.jsx(pe,{id:"file-config-credential-type",className:"w-full",children:t.jsx(he,{})}),t.jsxs(be,{children:[t.jsx(q,{value:"static",children:s("settings.buckets.staticKeyOption")}),t.jsx(q,{value:"sts-session",children:s("settings.buckets.temporarySessionOption")})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s(k==="sts-session"?"settings.buckets.stsSessionHelperText":"settings.buckets.staticKeyHelperText")})]}),k==="static"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-access-key",children:s("settings.buckets.accessKeyIdLabel")}),t.jsx(D,{id:"file-config-access-key",value:m,onChange:g=>N(g.target.value),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-secret-key",children:s("settings.buckets.secretAccessKeyLabel")}),t.jsx(D,{id:"file-config-secret-key",type:"password",value:P,onChange:g=>_(g.target.value),autoComplete:"new-password",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-refresh-url",children:s("settings.buckets.refreshUrlLabel")}),t.jsx(D,{id:"file-config-refresh-url",type:"url",value:w,onChange:g=>A(g.target.value),placeholder:s("settings.buckets.refreshUrlPlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.refreshUrlHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-api-key",children:s("settings.buckets.apiKeyLabel")}),t.jsx(D,{id:"file-config-api-key",type:"password",value:z,onChange:g=>E(g.target.value),autoComplete:"new-password",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.apiKeyHelperText")})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-description",children:s("settings.buckets.descriptionLabel")}),t.jsx(ke,{id:"file-config-description",value:r,onChange:g=>c(g.target.value),rows:2,placeholder:s("settings.buckets.descriptionPlaceholder")})]}),t.jsxs(se,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>{H(),e(!1)},disabled:U.isPending,children:s("settings.buckets.cancelButton")}),t.jsx(L,{type:"submit",disabled:G,children:U.isPending?s("settings.buckets.addingButton"):s("settings.buckets.addBucketButton")})]})]})]})})}function Fe(i){const e=F.c(41),{config:s,onClose:n}=i,l=T(),r=Ce();let c;e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l?(c=async function(){if(s)try{await r.mutateAsync(s.id),K.success(l("settings.buckets.bucketRemoved",{name:s.name})),n()}catch(w){const A=w;K.error(A instanceof Error?A.message:l("settings.buckets.failedToRemoveBucket"))}},e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=c):c=e[4];const o=c,d=s!==null;let a;e[5]!==n?(a=_=>!_&&n(),e[5]=n,e[6]=a):a=e[6];let u;e[7]!==l?(u=l("settings.buckets.removeBucketTitle"),e[7]=l,e[8]=u):u=e[8];let x;e[9]!==u?(x=t.jsx(ne,{children:u}),e[9]=u,e[10]=x):x=e[10];const v=s?.name??"";let p;e[11]!==l||e[12]!==v?(p=l("settings.buckets.removeBucketDescription",{name:v}),e[11]=l,e[12]=v,e[13]=p):p=e[13];let h;e[14]!==p?(h=t.jsx(re,{children:p}),e[14]=p,e[15]=h):h=e[15];let b;e[16]!==x||e[17]!==h?(b=t.jsxs(ce,{children:[x,h]}),e[16]=x,e[17]=h,e[18]=b):b=e[18];const C=r.isPending;let y;e[19]!==l?(y=l("settings.buckets.cancelButton"),e[19]=l,e[20]=y):y=e[20];let j;e[21]!==r.isPending||e[22]!==y?(j=t.jsx(ae,{disabled:C,children:y}),e[21]=r.isPending,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==r.isPending||e[25]!==l?(k=r.isPending?l("settings.buckets.removingButton"):l("settings.buckets.removeButton"),e[24]=r.isPending,e[25]=l,e[26]=k):k=e[26];let f;e[27]!==r.isPending||e[28]!==o||e[29]!==k?(f=t.jsx(ie,{onClick:o,disabled:r.isPending,children:k}),e[27]=r.isPending,e[28]=o,e[29]=k,e[30]=f):f=e[30];let m;e[31]!==j||e[32]!==f?(m=t.jsxs(oe,{children:[j,f]}),e[31]=j,e[32]=f,e[33]=m):m=e[33];let N;e[34]!==m||e[35]!==b?(N=t.jsxs(de,{children:[b,m]}),e[34]=m,e[35]=b,e[36]=N):N=e[36];let P;return e[37]!==N||e[38]!==d||e[39]!==a?(P=t.jsx(ue,{open:d,onOpenChange:a,children:N}),e[37]=N,e[38]=d,e[39]=a,e[40]=P):P=e[40],P}function Te(){const i=F.c(32),e=T(),s=ye(),[n,l]=S.useState(!1),[r,c]=S.useState(null);if(s.length===0){let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{onCreate:()=>l(!0)}),i[0]=f):f=i[0];let m;return i[1]!==n?(m=t.jsxs(t.Fragment,{children:[f,t.jsx(I,{open:n,onOpenChange:l})]}),i[1]=n,i[2]=m):m=i[2],m}let o;i[3]!==s.length||i[4]!==e?(o=e("settings.buckets.bucketsConfigured",{count:s.length}),i[3]=s.length,i[4]=e,i[5]=o):o=i[5];let d;i[6]!==o?(d=t.jsx("p",{className:"text-sm text-muted-foreground",children:o}),i[6]=o,i[7]=d):d=i[7];let a;i[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>l(!0),i[8]=a):a=i[8];let u;i[9]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(V,{size:14}),i[9]=u):u=i[9];let x;i[10]!==e?(x=e("settings.buckets.addBucket"),i[10]=e,i[11]=x):x=i[11];let v;i[12]!==x?(v=t.jsxs(L,{onClick:a,size:"sm",children:[u,x]}),i[12]=x,i[13]=v):v=i[13];let p;i[14]!==d||i[15]!==v?(p=t.jsxs("div",{className:"flex items-center justify-between",children:[d,v]}),i[14]=d,i[15]=v,i[16]=p):p=i[16];let h;if(i[17]!==s){let f;i[19]===Symbol.for("react.memo_cache_sentinel")?(f=m=>t.jsx(De,{config:m,onDelete:c},m.id),i[19]=f):f=i[19],h=s.map(f),i[17]=s,i[18]=h}else h=i[18];let b;i[20]!==h?(b=t.jsx("section",{className:"surface p-5",children:t.jsx("div",{children:h})}),i[20]=h,i[21]=b):b=i[21];let C;i[22]!==n?(C=t.jsx(I,{open:n,onOpenChange:l}),i[22]=n,i[23]=C):C=i[23];let y;i[24]===Symbol.for("react.memo_cache_sentinel")?(y=()=>c(null),i[24]=y):y=i[24];let j;i[25]!==r?(j=t.jsx(Fe,{config:r,onClose:y}),i[25]=r,i[26]=j):j=i[26];let k;return i[27]!==j||i[28]!==p||i[29]!==b||i[30]!==C?(k=t.jsxs(t.Fragment,{children:[p,b,C,j]}),i[27]=j,i[28]=p,i[29]=b,i[30]=C,i[31]=k):k=i[31],k}function _e(){const i=F.c(5),e=T();let s;i[0]!==e?(s=r=>{const{error:c}=r;return t.jsx(Be,{error:c??new Error(e("settings.buckets.failedToLoadConfigsFallback"))})},i[0]=e,i[1]=s):s=i[1];let n;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Te,{}),i[2]=n):n=i[2];let l;return i[3]!==s?(l=t.jsx(Q,{group:"storage",errorFallback:s,children:n}),i[3]=s,i[4]=l):l=i[4],l}function Ye(){const i=F.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Se,{capability:"file-configs:manage",area:"files",children:t.jsx(_e,{})}),i[0]=e):e=i[0],e}export{Ye as default};
|
|
1
|
+
import{c as F,b as T,j as t,hY as Q,r as S,B as L,D as W,v as X,w as Z,x as ee,aT as te,I as D,y as se,bj as ie,t as K,ay as O,g2 as le,aH as ne,aI as re,aJ as ce,aK as ae,aL as oe,aM as de,aN as ue}from"./index-D8pFT62M.js";import{i as fe}from"./AlertCircle-BavhHXrm.js";import{s as V}from"./Plus-CcxRdpHl.js";import{s as me}from"./Trash01-rMYgPi4D.js";import{B as R}from"./badge-C8SoiSYZ.js";import{E as ge}from"./empty-state-CPzwuwQF.js";import{L as B}from"./label-DyJSQ7-Z.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-o79Ct_ay.js";import{S as je}from"./switch-BaIjfvqD.js";import{T as ke}from"./textarea-B05kUdob.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-c0RGBFjk.js";import{R as Se}from"./require-capability-rIoksLSL.js";import"./index-BdQq_4o_.js";import"./index-CLm0YAEW.js";import"./ChevronUp-CP2Q1tno.js";import"./access-gate-DetE2JQz.js";import"./capability-load-error-DTfH6BCq.js";function Ne(i,e){if(!(i instanceof Error))return e;const s=i.message.match(/\[\s*\{[\s\S]*\}\s*\]/);if(s)try{const l=JSON.parse(s[0])[0];if(l?.message){const r=l.path?.join(".");return r?`${r}: ${l.message}`:l.message}}catch{}return i.message||e}function Be(i){const e=F.c(6),{error:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(fe,{size:16}),e[0]=l):l=e[0];let r;e[1]!==s.message||e[2]!==n?(r=n("settings.buckets.failedToLoadConfigs",{error:s.message}),e[1]=s.message,e[2]=n,e[3]=r):r=e[3];let c;return e[4]!==r?(c=t.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[l,t.jsx("span",{className:"text-sm font-medium",children:r})]}),e[4]=r,e[5]=c):c=e[5],c}function De(i){const e=F.c(51),{config:s,onDelete:n}=i,l=T();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:t.jsx(O,{size:16,className:"text-muted-foreground"})}),e[0]=r):r=e[0];let c;e[1]!==s.name?(c=t.jsx("span",{className:"font-medium text-sm truncate",children:s.name}),e[1]=s.name,e[2]=c):c=e[2];let o;e[3]!==s.credentialType||e[4]!==l?(o=s.credentialType==="sts-session"?t.jsx(R,{variant:"muted",size:"sm",children:"STS"}):s.credentialType==="managed"?t.jsx(R,{variant:"muted",size:"sm",children:l("settings.buckets.managed")}):null,e[3]=s.credentialType,e[4]=l,e[5]=o):o=e[5];let d;e[6]!==s.bucket||e[7]!==s.region?(d=t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:[s.bucket," · ",s.region]}),e[6]=s.bucket,e[7]=s.region,e[8]=d):d=e[8];let a;e[9]!==c||e[10]!==o||e[11]!==d?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[c,o,d]}),e[9]=c,e[10]=o,e[11]=d,e[12]=a):a=e[12];let u;e[13]!==s.description?(u=s.description?t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:s.description}):null,e[13]=s.description,e[14]=u):u=e[14];let x;e[15]!==s.endpoint||e[16]!==s.forcePathStyle||e[17]!==l?(x=s.endpoint?t.jsxs("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:[s.endpoint,s.forcePathStyle?` (${l("settings.buckets.pathStyle")})`:""]}):null,e[15]=s.endpoint,e[16]=s.forcePathStyle,e[17]=l,e[18]=x):x=e[18];let v;e[19]!==s.prefix||e[20]!==l?(v=s.prefix?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.prefix",{prefix:s.prefix})}):null,e[19]=s.prefix,e[20]=l,e[21]=v):v=e[21];let p;e[22]!==s.publicUrlBase||e[23]!==l?(p=s.publicUrlBase?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.public",{url:s.publicUrlBase})}):null,e[22]=s.publicUrlBase,e[23]=l,e[24]=p):p=e[24];let h;e[25]!==a||e[26]!==u||e[27]!==x||e[28]!==v||e[29]!==p?(h=t.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[r,t.jsxs("div",{className:"min-w-0",children:[a,u,x,v,p]})]}),e[25]=a,e[26]=u,e[27]=x,e[28]=v,e[29]=p,e[30]=h):h=e[30];let b;e[31]!==s.createdAt?(b=new Date(s.createdAt).toLocaleDateString(),e[31]=s.createdAt,e[32]=b):b=e[32];let C;e[33]!==b?(C=t.jsx("span",{className:"text-xs text-muted-foreground",children:b}),e[33]=b,e[34]=C):C=e[34];let y;e[35]!==s||e[36]!==n?(y=()=>n(s),e[35]=s,e[36]=n,e[37]=y):y=e[37];let j;e[38]!==s.name||e[39]!==l?(j=l("settings.buckets.deleteButton",{name:s.name}),e[38]=s.name,e[39]=l,e[40]=j):j=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(me,{size:14}),e[41]=k):k=e[41];let f;e[42]!==y||e[43]!==j?(f=t.jsx(L,{variant:"ghost",size:"sm",onClick:y,"aria-label":j,children:k}),e[42]=y,e[43]=j,e[44]=f):f=e[44];let m;e[45]!==C||e[46]!==f?(m=t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[C,f]}),e[45]=C,e[46]=f,e[47]=m):m=e[47];let N;return e[48]!==h||e[49]!==m?(N=t.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,m]}),e[48]=h,e[49]=m,e[50]=N):N=e[50],N}function Pe(i){const e=F.c(15),{onCreate:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(O,{}),e[0]=l):l=e[0];let r;e[1]!==n?(r=n("settings.buckets.noBucketsConfigured"),e[1]=n,e[2]=r):r=e[2];let c;e[3]!==n?(c=n("settings.buckets.emptyStateDescription"),e[3]=n,e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(V,{size:14}),e[5]=o):o=e[5];let d;e[6]!==n?(d=n("settings.buckets.addBucket"),e[6]=n,e[7]=d):d=e[7];let a;e[8]!==s||e[9]!==d?(a=t.jsxs(L,{onClick:s,size:"sm",children:[o,d]}),e[8]=s,e[9]=d,e[10]=a):a=e[10];let u;return e[11]!==r||e[12]!==c||e[13]!==a?(u=t.jsx(le,{children:t.jsx(ge,{size:"inline",icon:l,title:r,description:c,children:a})}),e[11]=r,e[12]=c,e[13]=a,e[14]=u):u=e[14],u}function I({open:i,onOpenChange:e}){const s=T(),[n,l]=S.useState(""),[r,c]=S.useState(""),[o,d]=S.useState(""),[a,u]=S.useState(""),[x,v]=S.useState(""),[p,h]=S.useState(!1),[b,C]=S.useState(""),[y,j]=S.useState(""),[k,f]=S.useState("static"),[m,N]=S.useState(""),[P,_]=S.useState(""),[w,A]=S.useState(""),[z,E]=S.useState(""),U=ve();function H(){l(""),c(""),d(""),u(""),v(""),h(!1),C(""),j(""),f("static"),N(""),_(""),A(""),E("")}const $=k==="sts-session"?!!(w.trim()&&z.trim()):!!(m&&P);async function J(g){if(g.preventDefault(),!n.trim()||!o.trim()||!a.trim()||!$)return;const M=k==="sts-session"?{credentialType:"sts-session",refreshUrl:w.trim(),apiKey:z.trim()}:{credentialType:"static",accessKeyId:m,secretAccessKey:P};try{await U.mutateAsync({name:n.trim(),description:r.trim()||void 0,bucket:o.trim(),region:a.trim(),endpoint:x.trim()||void 0,forcePathStyle:p,prefix:b.trim()||void 0,publicUrlBase:y.trim()||void 0,...M}),K.success(s("settings.buckets.bucketAdded",{name:n.trim()})),H(),e(!1)}catch(Y){K.error(Ne(Y,s("settings.buckets.failedToAddBucket")))}}const G=U.isPending||!n.trim()||!o.trim()||!a.trim()||!$;return t.jsx(W,{open:i,onOpenChange:e,children:t.jsxs(X,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[t.jsxs(Z,{children:[t.jsx(ee,{children:s("settings.buckets.addS3Bucket")}),t.jsx(te,{children:s("settings.buckets.credentialsEncryptedDescription")})]}),t.jsxs("form",{onSubmit:J,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-name",children:s("settings.buckets.nameLabel")}),t.jsx(D,{id:"file-config-name",value:n,onChange:g=>l(g.target.value),placeholder:s("settings.buckets.namePlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.nameHelperText")})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-bucket",children:s("settings.buckets.bucketLabel")}),t.jsx(D,{id:"file-config-bucket",value:o,onChange:g=>d(g.target.value),placeholder:s("settings.buckets.bucketPlaceholder"),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-region",children:s("settings.buckets.regionLabel")}),t.jsx(D,{id:"file-config-region",value:a,onChange:g=>u(g.target.value),placeholder:s("settings.buckets.regionPlaceholder"),autoComplete:"off",required:!0})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-endpoint",children:s("settings.buckets.endpointLabel")}),t.jsx(D,{id:"file-config-endpoint",type:"url",value:x,onChange:g=>v(g.target.value),placeholder:s("settings.buckets.endpointPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.endpointHelperText")})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 p-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx(B,{htmlFor:"file-config-path-style",className:"text-sm",children:s("settings.buckets.forcePathStyleLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("settings.buckets.forcePathStyleHelperText")})]}),t.jsx(je,{id:"file-config-path-style",checked:p,onCheckedChange:h})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-prefix",children:s("settings.buckets.prefixLabel")}),t.jsx(D,{id:"file-config-prefix",value:b,onChange:g=>C(g.target.value),placeholder:s("settings.buckets.prefixPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.prefixHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-public-url-base",children:s("settings.buckets.publicUrlBaseLabel")}),t.jsx(D,{id:"file-config-public-url-base",type:"url",value:y,onChange:g=>j(g.target.value),placeholder:s("settings.buckets.publicUrlBasePlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.publicUrlBaseHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-credential-type",children:s("settings.buckets.credentialsLabel")}),t.jsxs(xe,{value:k,onValueChange:g=>f(g),children:[t.jsx(pe,{id:"file-config-credential-type",className:"w-full",children:t.jsx(he,{})}),t.jsxs(be,{children:[t.jsx(q,{value:"static",children:s("settings.buckets.staticKeyOption")}),t.jsx(q,{value:"sts-session",children:s("settings.buckets.temporarySessionOption")})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s(k==="sts-session"?"settings.buckets.stsSessionHelperText":"settings.buckets.staticKeyHelperText")})]}),k==="static"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-access-key",children:s("settings.buckets.accessKeyIdLabel")}),t.jsx(D,{id:"file-config-access-key",value:m,onChange:g=>N(g.target.value),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-secret-key",children:s("settings.buckets.secretAccessKeyLabel")}),t.jsx(D,{id:"file-config-secret-key",type:"password",value:P,onChange:g=>_(g.target.value),autoComplete:"new-password",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-refresh-url",children:s("settings.buckets.refreshUrlLabel")}),t.jsx(D,{id:"file-config-refresh-url",type:"url",value:w,onChange:g=>A(g.target.value),placeholder:s("settings.buckets.refreshUrlPlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.refreshUrlHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-api-key",children:s("settings.buckets.apiKeyLabel")}),t.jsx(D,{id:"file-config-api-key",type:"password",value:z,onChange:g=>E(g.target.value),autoComplete:"new-password",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.apiKeyHelperText")})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-description",children:s("settings.buckets.descriptionLabel")}),t.jsx(ke,{id:"file-config-description",value:r,onChange:g=>c(g.target.value),rows:2,placeholder:s("settings.buckets.descriptionPlaceholder")})]}),t.jsxs(se,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>{H(),e(!1)},disabled:U.isPending,children:s("settings.buckets.cancelButton")}),t.jsx(L,{type:"submit",disabled:G,children:U.isPending?s("settings.buckets.addingButton"):s("settings.buckets.addBucketButton")})]})]})]})})}function Fe(i){const e=F.c(41),{config:s,onClose:n}=i,l=T(),r=Ce();let c;e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l?(c=async function(){if(s)try{await r.mutateAsync(s.id),K.success(l("settings.buckets.bucketRemoved",{name:s.name})),n()}catch(w){const A=w;K.error(A instanceof Error?A.message:l("settings.buckets.failedToRemoveBucket"))}},e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=c):c=e[4];const o=c,d=s!==null;let a;e[5]!==n?(a=_=>!_&&n(),e[5]=n,e[6]=a):a=e[6];let u;e[7]!==l?(u=l("settings.buckets.removeBucketTitle"),e[7]=l,e[8]=u):u=e[8];let x;e[9]!==u?(x=t.jsx(ne,{children:u}),e[9]=u,e[10]=x):x=e[10];const v=s?.name??"";let p;e[11]!==l||e[12]!==v?(p=l("settings.buckets.removeBucketDescription",{name:v}),e[11]=l,e[12]=v,e[13]=p):p=e[13];let h;e[14]!==p?(h=t.jsx(re,{children:p}),e[14]=p,e[15]=h):h=e[15];let b;e[16]!==x||e[17]!==h?(b=t.jsxs(ce,{children:[x,h]}),e[16]=x,e[17]=h,e[18]=b):b=e[18];const C=r.isPending;let y;e[19]!==l?(y=l("settings.buckets.cancelButton"),e[19]=l,e[20]=y):y=e[20];let j;e[21]!==r.isPending||e[22]!==y?(j=t.jsx(ae,{disabled:C,children:y}),e[21]=r.isPending,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==r.isPending||e[25]!==l?(k=r.isPending?l("settings.buckets.removingButton"):l("settings.buckets.removeButton"),e[24]=r.isPending,e[25]=l,e[26]=k):k=e[26];let f;e[27]!==r.isPending||e[28]!==o||e[29]!==k?(f=t.jsx(ie,{onClick:o,disabled:r.isPending,children:k}),e[27]=r.isPending,e[28]=o,e[29]=k,e[30]=f):f=e[30];let m;e[31]!==j||e[32]!==f?(m=t.jsxs(oe,{children:[j,f]}),e[31]=j,e[32]=f,e[33]=m):m=e[33];let N;e[34]!==m||e[35]!==b?(N=t.jsxs(de,{children:[b,m]}),e[34]=m,e[35]=b,e[36]=N):N=e[36];let P;return e[37]!==N||e[38]!==d||e[39]!==a?(P=t.jsx(ue,{open:d,onOpenChange:a,children:N}),e[37]=N,e[38]=d,e[39]=a,e[40]=P):P=e[40],P}function Te(){const i=F.c(32),e=T(),s=ye(),[n,l]=S.useState(!1),[r,c]=S.useState(null);if(s.length===0){let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{onCreate:()=>l(!0)}),i[0]=f):f=i[0];let m;return i[1]!==n?(m=t.jsxs(t.Fragment,{children:[f,t.jsx(I,{open:n,onOpenChange:l})]}),i[1]=n,i[2]=m):m=i[2],m}let o;i[3]!==s.length||i[4]!==e?(o=e("settings.buckets.bucketsConfigured",{count:s.length}),i[3]=s.length,i[4]=e,i[5]=o):o=i[5];let d;i[6]!==o?(d=t.jsx("p",{className:"text-sm text-muted-foreground",children:o}),i[6]=o,i[7]=d):d=i[7];let a;i[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>l(!0),i[8]=a):a=i[8];let u;i[9]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(V,{size:14}),i[9]=u):u=i[9];let x;i[10]!==e?(x=e("settings.buckets.addBucket"),i[10]=e,i[11]=x):x=i[11];let v;i[12]!==x?(v=t.jsxs(L,{onClick:a,size:"sm",children:[u,x]}),i[12]=x,i[13]=v):v=i[13];let p;i[14]!==d||i[15]!==v?(p=t.jsxs("div",{className:"flex items-center justify-between",children:[d,v]}),i[14]=d,i[15]=v,i[16]=p):p=i[16];let h;if(i[17]!==s){let f;i[19]===Symbol.for("react.memo_cache_sentinel")?(f=m=>t.jsx(De,{config:m,onDelete:c},m.id),i[19]=f):f=i[19],h=s.map(f),i[17]=s,i[18]=h}else h=i[18];let b;i[20]!==h?(b=t.jsx("section",{className:"surface p-5",children:t.jsx("div",{children:h})}),i[20]=h,i[21]=b):b=i[21];let C;i[22]!==n?(C=t.jsx(I,{open:n,onOpenChange:l}),i[22]=n,i[23]=C):C=i[23];let y;i[24]===Symbol.for("react.memo_cache_sentinel")?(y=()=>c(null),i[24]=y):y=i[24];let j;i[25]!==r?(j=t.jsx(Fe,{config:r,onClose:y}),i[25]=r,i[26]=j):j=i[26];let k;return i[27]!==j||i[28]!==p||i[29]!==b||i[30]!==C?(k=t.jsxs(t.Fragment,{children:[p,b,C,j]}),i[27]=j,i[28]=p,i[29]=b,i[30]=C,i[31]=k):k=i[31],k}function _e(){const i=F.c(5),e=T();let s;i[0]!==e?(s=r=>{const{error:c}=r;return t.jsx(Be,{error:c??new Error(e("settings.buckets.failedToLoadConfigsFallback"))})},i[0]=e,i[1]=s):s=i[1];let n;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Te,{}),i[2]=n):n=i[2];let l;return i[3]!==s?(l=t.jsx(Q,{group:"storage",errorFallback:s,children:n}),i[3]=s,i[4]=l):l=i[4],l}function Ye(){const i=F.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Se,{capability:"file-configs:manage",area:"files",children:t.jsx(_e,{})}),i[0]=e):e=i[0],e}export{Ye as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as k,ak as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-
|
|
1
|
+
import{c as k,ak as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-D8pFT62M.js";function R(n){const e=k.c(9),f=$();let r;e[0]!==n?(r=T.user(n),e[0]=n,e[1]=r):r=e[1];let c;e[2]!==f||e[3]!==n?(c=async()=>{const{user:o}=await f.call("USER_GET",{id:n});return o},e[2]=f,e[3]=n,e[4]=c):c=e[4];const x=!!n;let t;return e[5]!==r||e[6]!==c||e[7]!==x?(t={queryKey:r,queryFn:c,staleTime:3e5,retry:1,enabled:x},e[5]=r,e[6]=c,e[7]=x,e[8]=t):t=e[8],S(t)}function q(n){const e=k.c(37),{id:f,size:r,showEmail:c,avatarOnly:x,className:t}=n,o=r===void 0?"xs":r,p=c===void 0?!1:c,d=x===void 0?!1:x,y=K(),{data:m,isLoading:w,isError:U}=R(f);if(w){let a;e[0]!==t?(a=b("flex items-center gap-2",t),e[0]=t,e[1]=a):a=e[1];let i;e[2]!==o?(i=s.jsx(E.Skeleton,{shape:"circle",size:o}),e[2]=o,e[3]=i):i=e[3];let l;e[4]!==d||e[5]!==p?(l=!d&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),p&&s.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==i||e[9]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[7]=a,e[8]=i,e[9]=l,e[10]=u):u=e[10],u}if(U||!m){let a;e[11]!==t?(a=b("flex items-center gap-2",t),e[11]=t,e[12]=a):a=e[12];let i;e[13]!==o?(i=s.jsx(E,{shape:"circle",size:o,fallback:"?",muted:!0}),e[13]=o,e[14]=i):i=e[14];let l;e[15]!==d||e[16]!==y?(l=!d&&s.jsx("div",{className:"flex flex-col",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:y("user.user.unknownUser")})}),e[15]=d,e[16]=y,e[17]=l):l=e[17];let u;return e[18]!==a||e[19]!==i||e[20]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[18]=a,e[19]=i,e[20]=l,e[21]=u):u=e[21],u}let v;e[22]!==t?(v=b("flex items-center gap-2",t),e[22]=t,e[23]=v):v=e[23];const N=m.image??void 0;let h;e[24]!==o||e[25]!==N||e[26]!==m.name?(h=s.jsx(E,{shape:"circle",size:o,url:N,fallback:m.name}),e[24]=o,e[25]=N,e[26]=m.name,e[27]=h):h=e[27];let g;e[28]!==d||e[29]!==p||e[30]!==m.email||e[31]!==m.name?(g=!d&&s.jsxs("div",{className:"flex flex-col",children:[s.jsx("div",{className:"text-sm font-medium",children:m.name}),p&&s.jsx("div",{className:"text-xs text-muted-foreground",children:m.email})]}),e[28]=d,e[29]=p,e[30]=m.email,e[31]=m.name,e[32]=g):g=e[32];let j;return e[33]!==v||e[34]!==h||e[35]!==g?(j=s.jsxs("div",{className:v,children:[h,g]}),e[33]=v,e[34]=h,e[35]=g,e[36]=j):j=e[36],j}function z(n){const{managerAgentId:e,managerName:f,kind:r,id:c,instructions:x}=n,t=` to improve the instructions of ${r} "${c}". Here are its current instructions.
|
|
2
2
|
<current_instructions>${x}</current_instructions>`;return{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"Use "},{type:"mention",attrs:{id:e,name:f,char:"@",metadata:{agentId:e,title:f}}},{type:"text",text:t}]}]}}export{q as U,z as b};
|