decocms 4.576.1 → 4.576.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-xXAUxL5Z.js → AlertCircle-CQW1P7_R.js} +1 -1
- package/dist/client/assets/{AreaChart-KQm98sY2.js → AreaChart-BEgOgZZj.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C3_uUc-z.js → ArrowLeft-sSY9Zm-O.js} +1 -1
- package/dist/client/assets/{ArrowUp-zmQoWTOv.js → ArrowUp-VZphHDPw.js} +1 -1
- package/dist/client/assets/{CartesianChart-DHvizK6L.js → CartesianChart-Bku6CBeN.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CFhpDsVs.js → CategoricalChart-CI96Ht0A.js} +1 -1
- package/dist/client/assets/{CheckCircle-DWmAA0cA.js → CheckCircle-BAqlx5xq.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CN80qRM1.js → ChevronSelectorVertical-CAw9AQRt.js} +1 -1
- package/dist/client/assets/{ChevronUp-CjVmbW8q.js → ChevronUp-RQuomTlc.js} +1 -1
- package/dist/client/assets/{CreditCard01-DexMydMI.js → CreditCard01-uW1Nq0L7.js} +1 -1
- package/dist/client/assets/{Globe04-DE0bAUaJ.js → Globe04-1JEh9zst.js} +1 -1
- package/dist/client/assets/{Key01-CYHpm2EC.js → Key01-B-MK6puk.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DOEirutZ.js → LinkBroken01-ArAKWl5D.js} +1 -1
- package/dist/client/assets/{Minus-CzeqOX9y.js → Minus-y3rEkH4O.js} +1 -1
- package/dist/client/assets/{Monitor01-BRxbdUXR.js → Monitor01-DkdtFPE6.js} +1 -1
- package/dist/client/assets/{Play-lt5qVoJ1.js → Play-BtmesR9D.js} +1 -1
- package/dist/client/assets/{Plus-hGBo4v46.js → Plus-BhSB1FAc.js} +1 -1
- package/dist/client/assets/{ReferenceLine-C75x_SEP.js → ReferenceLine-CguuPF_F.js} +1 -1
- package/dist/client/assets/{SearchMd-5BOhX0M5.js → SearchMd-CTCaP47C.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-drnY5mbB.js → ShoppingBag01-DEtqIAKG.js} +1 -1
- package/dist/client/assets/{Sun-qq_IYs5i.js → Sun-DhrY2nq7.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DTC4TsRM.js → SwitchHorizontal01-DTDSJnjG.js} +1 -1
- package/dist/client/assets/{Tool01-CiRc7Dx3.js → Tool01-CE4RsL2T.js} +1 -1
- package/dist/client/assets/{Tooltip-BPkeeG1S.js → Tooltip-DzoIZZA-.js} +1 -1
- package/dist/client/assets/{Trash01-Bhop9SkH.js → Trash01-DQCE9WJt.js} +1 -1
- package/dist/client/assets/{Upload01-Hve2lQE3.js → Upload01-C8pH3Rp-.js} +1 -1
- package/dist/client/assets/{UserSquare-BawmuPOv.js → UserSquare-DfCEdLMW.js} +1 -1
- package/dist/client/assets/{Users01-BjAyisfu.js → Users01-RbJbPNL4.js} +1 -1
- package/dist/client/assets/{XClose-DiD5f6J1.js → XClose-B9seet19.js} +1 -1
- package/dist/client/assets/{Zap-DKp_mX_L.js → Zap-B2TeJ3jk.js} +1 -1
- package/dist/client/assets/{access-gate-BytJbO55.js → access-gate-B3-8eUAT.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BFH1NNm1.js → add-connection-dialog-BZazlImL.js} +1 -1
- package/dist/client/assets/agent-app-S0Wudwb2.js +1 -0
- package/dist/client/assets/{agent-assets-CIjQglx7.js → agent-assets-D6n5n_j9.js} +1 -1
- package/dist/client/assets/{agent-automation-DAtnxeZt.js → agent-automation-BDFDUDqF.js} +1 -1
- package/dist/client/assets/{agent-automations-DnxzzcBV.js → agent-automations-CTb19iEo.js} +1 -1
- package/dist/client/assets/{agent-calendar-BGkmZsO1.js → agent-calendar-dOBBocaZ.js} +1 -1
- package/dist/client/assets/{agent-capabilities-JoZ74wKG.js → agent-capabilities-D8RyEQle.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BISjOBUq.js → agent-connect-sources-Cv_HfEov.js} +1 -1
- package/dist/client/assets/agent-deck-Cp4W6NYg.js +1 -0
- package/dist/client/assets/{agent-e2e-BlgOOj7a.js → agent-e2e-UuVTzQty.js} +1 -1
- package/dist/client/assets/agent-experiments-DqEDCkUD.js +1 -0
- package/dist/client/assets/{agent-file-169OLyrU.js → agent-file-BxTgqKD4.js} +1 -1
- package/dist/client/assets/{agent-hosting-YNj04bBF.js → agent-hosting-SFnhs_AJ.js} +1 -1
- package/dist/client/assets/{agent-icon-BA6h0wAH.js → agent-icon-DmYd33Zd.js} +1 -1
- package/dist/client/assets/agent-library-D-dnSVJn.js +1 -0
- package/dist/client/assets/agent-library-file-S8fMrNmL.js +1 -0
- package/dist/client/assets/agent-overview-DTBRMEQ0.js +1 -0
- package/dist/client/assets/{agent-releases-C6si7FBa.js → agent-releases-Nv7L0dpy.js} +1 -1
- package/dist/client/assets/agent-settings-BiadK6yu.js +1 -0
- package/dist/client/assets/{agent-site-editor-C1LxEaGf.js → agent-site-editor-DLrFF0Rn.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CYv63Bju.js +2 -0
- package/dist/client/assets/agent-site-editor-content-hqsSwJg4.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-YV7jDYx1.js +1 -0
- package/dist/client/assets/agent-view-X2daaOWI.js +1 -0
- package/dist/client/assets/{agent-view-guard-CacdY14y.js → agent-view-guard-D0qWi85T.js} +1 -1
- package/dist/client/assets/{ai-providers-B9VjY3-C.js → ai-providers-CjPCR-pK.js} +1 -1
- package/dist/client/assets/{alert-ClhrC_dZ.js → alert-C5FPaAXQ.js} +1 -1
- package/dist/client/assets/{analytics-sections-Ceqbg_gn.js → analytics-sections-BGMxhZwl.js} +1 -1
- package/dist/client/assets/api-keys-D-r93aBn.js +1 -0
- package/dist/client/assets/{api-keys-BQCeDppV.js → api-keys-p6Xw6r8B.js} +1 -1
- package/dist/client/assets/{app-editor-CqxGM2YR.js → app-editor-DQwdeZHJ.js} +1 -1
- package/dist/client/assets/{asset-utils-BUJSzeIX.js → asset-utils-BW1FTT9q.js} +1 -1
- package/dist/client/assets/{auth-0v5kQxM4.js → auth-DeNsOsKX.js} +1 -1
- package/dist/client/assets/{auth-catchall-4_gVhcor.js → auth-catchall-C3auT4P_.js} +1 -1
- package/dist/client/assets/{auth-entry-CuZzH35o.js → auth-entry-BBIyDdU5.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Gs_D53xo.js → auth-split-layout-CpPst90z.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CEFAAPr5.js → authenticate-and-persist-oauth-Ca1G6bWy.js} +1 -1
- package/dist/client/assets/{automation-list-row-Da0Xr3Lq.js → automation-list-row-GTaw28qY.js} +1 -1
- package/dist/client/assets/{automation-runs-DSyVjayJ.js → automation-runs-e7UMBmIy.js} +1 -1
- package/dist/client/assets/{automations-Cyou7vFe.js → automations-DVHIEzYX.js} +1 -1
- package/dist/client/assets/{autosend-QEZQmopg.js → autosend-0p4cszrD.js} +1 -1
- package/dist/client/assets/{badge-OxXf6NyW.js → badge-fJOJmdQG.js} +1 -1
- package/dist/client/assets/{block-document-B6v34vY4.js → block-document-D6lQw_Sn.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-taTuRoj9.js → blocks-preview-workspace-context-CevYm8XG.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BpFfPHVw.js → blocks-tab-states-BLBUtwwS.js} +1 -1
- package/dist/client/assets/{blog-schema-DT3MGNEM.js → blog-schema-CW6OwOTr.js} +1 -1
- package/dist/client/assets/{buckets-Cy9iWWRH.js → buckets-DJjTeJ67.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BQTuUvnz.js → build-improve-prompt-doc-Bz_NuW8p.js} +1 -1
- package/dist/client/assets/{calendar-ZOQBRbgD.js → calendar-BN8LK6az.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bb_YsAjX.js → capability-load-error-BwSdaWc5.js} +1 -1
- package/dist/client/assets/{category-editor-BSVL1WiV.js → category-editor-B2fU3l2-.js} +1 -1
- package/dist/client/assets/{chart-DuDORsVm.js → chart-TbvRqjuj.js} +1 -1
- package/dist/client/assets/{chat-context-CaBz0Fa_.js → chat-context-BwoQSegQ.js} +1 -1
- package/dist/client/assets/{chat-draft-0xyMYS4v.js → chat-draft-DH581p83.js} +1 -1
- package/dist/client/assets/{checkbox-uRiFMDEw.js → checkbox-BYltfk17.js} +1 -1
- package/dist/client/assets/{choose-editor-C8Fx5E1l.js → choose-editor-CF8pbtbx.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Bco2eMX2.js → cli-auth-success-8VRhz3fQ.js} +1 -1
- package/dist/client/assets/{client-icons-BDJ7lEQk.js → client-icons-azPimjhr.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-DcPG8xWi.js → cms-settings-editor-Dh2cgMIJ.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-DBZ0eK6D.js → cms-store-drafts-DOqjCS5l.js} +1 -1
- package/dist/client/assets/{collapsible-DaRxY8dD.js → collapsible-DMIxs55h.js} +1 -1
- package/dist/client/assets/{collection-detail-BKy6YpxD.js → collection-detail-BNTXyqsr.js} +1 -1
- package/dist/client/assets/{collection-display-button-DDs-fVtH.js → collection-display-button-DlPhjc6E.js} +1 -1
- package/dist/client/assets/{collection-search-Ji_27Bi5.js → collection-search-DFoNgd1T.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BjgrYQjR.js → collection-table-wrapper-OwJoF9HU.js} +1 -1
- package/dist/client/assets/{collection-tabs-BaAIKaN4.js → collection-tabs-DTr38V1c.js} +1 -1
- package/dist/client/assets/{combobox-DRpRWCQC.js → combobox-B8pIOucr.js} +1 -1
- package/dist/client/assets/{command-B7jjL5t_.js → command-8eo7blzl.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DwP-X6KV.js → companion-mcps-section-OBc1XSiN.js} +1 -1
- package/dist/client/assets/{config-BEwVyYgh.js → config-CZxXYayZ.js} +1 -1
- package/dist/client/assets/{connect-BznXeuBh.js → connect-BDnlsqF3.js} +1 -1
- package/dist/client/assets/{connect-layout-gSfDx1uw.js → connect-layout-f8wmYpiF.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DuLGNw3E.js → connect-source-dialog-BnoBKHvg.js} +1 -1
- package/dist/client/assets/{connection-BPIYy_H3.js → connection-B4VgNpkK.js} +1 -1
- package/dist/client/assets/{connection-card-By0LB3P3.js → connection-card-Cp7AJMDR.js} +1 -1
- package/dist/client/assets/{connection-detail-Dhu8wraq.js → connection-detail-BYR-qeWG.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C4GFwQ2z.js → connection-form-helpers-DqULERyx.js} +1 -1
- package/dist/client/assets/{connection-slug-Ch_wi6rN.js → connection-slug-CK9E8VRg.js} +1 -1
- package/dist/client/assets/{connections-B6aDUa3H.js → connections-D1yKPCTH.js} +1 -1
- package/dist/client/assets/{content-tab-D3jR5tEE.js → content-tab-D-PBLIve.js} +3 -3
- package/dist/client/assets/{context-BfZ0zud0.js → context-Ciehk0ao.js} +1 -1
- package/dist/client/assets/{context-menu-Cy3xsKiF.js → context-menu-SmukJNMU.js} +1 -1
- package/dist/client/assets/{context-shell-DzE9VmYd.js → context-shell-CO4fTNNJ.js} +3 -3
- package/dist/client/assets/{core.esm-Cqr0FhsT.js → core.esm-B_Pr2KZA.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BqBXNJjp.js → create-organization-dialog-8e7uLr8k.js} +1 -1
- package/dist/client/assets/{device-hint-D0PKUXfK.js → device-hint-_3UpNo1y.js} +1 -1
- package/dist/client/assets/{discover-CuMES_lv.js → discover-j-WmLzAr.js} +1 -1
- package/dist/client/assets/{domain-settings-DdO_JKig.js → domain-settings-nzh2Xqh2.js} +1 -1
- package/dist/client/assets/{drawer-DEBrmbLh.js → drawer-BiZQd3jF.js} +1 -1
- package/dist/client/assets/{editor-DABA4jRW.js → editor-B5BFg8L4.js} +1 -1
- package/dist/client/assets/{editor-classes-BxXnftil.js → editor-classes-DxfrzHp8.js} +1 -1
- package/dist/client/assets/{empty-state-y2HOF9fL.js → empty-state-CPhGFwFG.js} +1 -1
- package/dist/client/assets/{empty-state-JLp-0Ot0.js → empty-state-D5FGRI4e.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-B2KrY0mn.js → experiments-tab-choice-5NNTmJRW.js} +1 -1
- package/dist/client/assets/{extract-connection-data-OTtBFz40.js → extract-connection-data-lBAlP3pz.js} +1 -1
- package/dist/client/assets/{feature-gate-D548gPqm.js → feature-gate-Djob_jbU.js} +1 -1
- package/dist/client/assets/{feature-paywall-B2ECRUtY.js → feature-paywall-DWnzqDkt.js} +1 -1
- package/dist/client/assets/{file-explorer-DvIUDgnp.js → file-explorer-B7HqI107.js} +1 -1
- package/dist/client/assets/{file-preview-QvtQ9sFZ.js → file-preview-CVLvq53I.js} +1 -1
- package/dist/client/assets/{file-share-button-DwysRdf9.js → file-share-button-Ug-zwu4d.js} +1 -1
- package/dist/client/assets/{file-type-icon-BT2FK5D4.js → file-type-icon-BZTtX6EK.js} +1 -1
- package/dist/client/assets/{folder-icon-Met9dqTq.js → folder-icon-C2EzD8if.js} +1 -1
- package/dist/client/assets/{form-DbD00MVE.js → form-Bhgzwnyp.js} +1 -1
- package/dist/client/assets/{general-Bd0HlBpp.js → general-CPLHJuRp.js} +1 -1
- package/dist/client/assets/{github-icon-cCo3aev2.js → github-icon-Buu0H1v4.js} +1 -1
- package/dist/client/assets/{home-CnPWKbZI.js → home-BCYh-a3a.js} +1 -1
- package/dist/client/assets/{home-overview-DrsU8cKl.js → home-overview-DTtXcEkG.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-K8D7htGD.js → hosted-reconcile-BdwyWhOE.js} +1 -1
- package/dist/client/assets/{icon-button-jwnQI3ne.js → icon-button-Dls6AzVP.js} +1 -1
- package/dist/client/assets/{index-zkOXDA9t.js → index-0xCVweSM.js} +1 -1
- package/dist/client/assets/{index-CuVN4Aac.js → index-B3BrFVGB.js} +1 -1
- package/dist/client/assets/{index-B5_ugeYO.js → index-B4tnBHnb.js} +1 -1
- package/dist/client/assets/{index-C7Mti7OL.js → index-B6eHz5VS.js} +1 -1
- package/dist/client/assets/index-BJqMJFEL.js +4 -0
- package/dist/client/assets/{index-DwcKKa8f.js → index-BJrkqMqs.js} +1 -1
- package/dist/client/assets/{index-BrE_pa5_.js → index-C8i-vHCI.js} +1 -1
- package/dist/client/assets/{index-DU8NkptJ.js → index-CJKJ4WN3.js} +1 -1
- package/dist/client/assets/{index-Dqe8gjuB.js → index-CKuu5BgI.js} +1 -1
- package/dist/client/assets/{index-BFjarNZt.js → index-CMl-YIkn.js} +1 -1
- package/dist/client/assets/{index-7JVbNGhX.js → index-CQIKg7tc.js} +1 -1
- package/dist/client/assets/{index-C59L9F48.js → index-CtJa8hR9.js} +1 -1
- package/dist/client/assets/{index-KhB0zLZd.js → index-DAFka6tK.js} +1 -1
- package/dist/client/assets/{index-BDIGIIrk.js → index-DJy_S3Mn.js} +1 -1
- package/dist/client/assets/{index-BbbC2KAF.js → index-D_HCIUjf.js} +1 -1
- package/dist/client/assets/{index-B6JjeFQu.js → index-UxIaE43S.js} +1 -1
- package/dist/client/assets/{index-DIJ4i6l1.js → index-XdUWZF5g.js} +3 -3
- package/dist/client/assets/{index-redirect-CtwSztLi.js → index-redirect-ZoX0Nmet.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-tz8kMnh3.js → infiniteQueryObserver-DgQQHW6Y.js} +1 -1
- package/dist/client/assets/{infra-billing-CF7Nx5tW.js → infra-billing-CbpAOQ7f.js} +1 -1
- package/dist/client/assets/{input-DZ3UD8Tc.js → input-BBwM3ir1.js} +1 -1
- package/dist/client/assets/{input-DNY7YfN5.js → input-BneF5n5F.js} +3 -3
- package/dist/client/assets/{integration-icon-DBS0IIUZ.js → integration-icon-DpoZYM7e.js} +1 -1
- package/dist/client/assets/{jira-icon-DjXG4S53.js → jira-icon-CfXcnbRW.js} +1 -1
- package/dist/client/assets/{label-CE_9qjVi.js → label-CUqIqnOS.js} +1 -1
- package/dist/client/assets/{layout-BFpUPLwM.js → layout-CZKu8-AR.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DufciNkJ.js → legacy-admin-welcome-dialog-D12aat8e.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-B9awpgEd.js → legacy-agents-deep-C46PUrrS.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DeJi8kpi.js → legacy-main-redirect-si54JTxO.js} +1 -1
- package/dist/client/assets/library-bWgDO9u6.js +1 -0
- package/dist/client/assets/{library-tab-vwgQd5Km.js → library-tab-EiyuBjPa.js} +1 -1
- package/dist/client/assets/{login-BBfMw48d.js → login-D0eYUue3.js} +1 -1
- package/dist/client/assets/{markdown-B9ZXP-yI.js → markdown-A06Oe1_p.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-wdm200pr.js → mcp-app-renderer-Dkj1yLIG.js} +1 -1
- package/dist/client/assets/{mcp-oauth-De1bAphR.js → mcp-oauth-L4CbK4hz.js} +1 -1
- package/dist/client/assets/{mcp-oauth-YcJKxGgu.js → mcp-oauth-u5RBmpff.js} +1 -1
- package/dist/client/assets/{members-zJjusDEy.js → members-D2W9FUHb.js} +1 -1
- package/dist/client/assets/{memory-CmHFkNR_.js → memory-nZuh_3HW.js} +1 -1
- package/dist/client/assets/{mock-board-DSjXTehJ.js → mock-board-DkI2cfk-.js} +3 -3
- package/dist/client/assets/{monaco-editor-CKxrx3bb.js → monaco-editor-DoTBOc-e.js} +1 -1
- package/dist/client/assets/{monitoring-BweO8f9o.js → monitoring-DZ1uqyFT.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BLJYBeQS.js → monitoring-stats-row-Be_-YMn8.js} +1 -1
- package/dist/client/assets/{multi-select-BManzll9.js → multi-select-CzoYfyvg.js} +1 -1
- package/dist/client/assets/{mustache-C28Q9k19.js → mustache-BctGjQ5L.js} +1 -1
- package/dist/client/assets/{named-rule-view-B8TaXMqW.js → named-rule-view-DUsv8g0V.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CapD_z2K.js → new-project-dialog-151PED_m.js} +1 -1
- package/dist/client/assets/{oauth-callback-1dAm1mGK.js → oauth-callback-DrwI5ATg.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C4nlkpPG.js → oauth-callback-ai-provider-D9pLn0-_.js} +1 -1
- package/dist/client/assets/{oauth-consent-CA55TLKS.js → oauth-consent-o6k0sIQ6.js} +1 -1
- package/dist/client/assets/{onboarding-CydYT5k4.js → onboarding-BMQJZ4PX.js} +1 -1
- package/dist/client/assets/{openai-conversation-QjOxjJ9Z.js → openai-conversation-CWam_Ql8.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DnVqzg8N.js → optimistic-project-sidebar-views-Dx-3KOhR.js} +1 -1
- package/dist/client/assets/{order-monitor-day-bNWc2xxe.js → order-monitor-day-DGR3iDef.js} +1 -1
- package/dist/client/assets/{organization-choice-B6WjGm9l.js → organization-choice-1Lr2hM9B.js} +1 -1
- package/dist/client/assets/{orgs-Z0cs0ktw.js → orgs-CbmN-Uo3.js} +1 -1
- package/dist/client/assets/{own-accounts-section-B4lUvL8j.js → own-accounts-section-DPfUOm23.js} +1 -1
- package/dist/client/assets/{pair-OacOFJo3.js → pair-BCJ5sFP0.js} +1 -1
- package/dist/client/assets/{parse-sections-C4WdZFz6.js → parse-sections-DxG18Udv.js} +3 -3
- package/dist/client/assets/{plan-B5R54DUG.js → plan-BaYlHrHs.js} +1 -1
- package/dist/client/assets/{plan-ladder-Cw552rCe.js → plan-ladder-LKl9l3TA.js} +1 -1
- package/dist/client/assets/{plan-usage-card-BQQUJlLg.js → plan-usage-card-wDWYSVHD.js} +1 -1
- package/dist/client/assets/{popover-D5azhkxn.js → popover-DmqBIPKi.js} +1 -1
- package/dist/client/assets/{post-calendar-H3gLWQrA.js → post-calendar-C4TZhDJz.js} +1 -1
- package/dist/client/assets/{post-editor-DsfAB88f.js → post-editor-DGrj-qXP.js} +1 -1
- package/dist/client/assets/{preview-content-ABYTWtaZ.js → preview-content-8R1QUim7.js} +1 -1
- package/dist/client/assets/{preview-dialog-DY-dYyi4.js → preview-dialog-ZNHmoyI1.js} +1 -1
- package/dist/client/assets/{preview-panel-Di5XwQKi.js → preview-panel-DbX8A-HE.js} +1 -1
- package/dist/client/assets/{preview-tab-DNN5D1rF.js → preview-tab-DglGrCFS.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-RO5VZTY2.js → product-picker-dialog-B84p2GNz.js} +1 -1
- package/dist/client/assets/{profile-D1LUBdWE.js → profile-Bhqnq92W.js} +1 -1
- package/dist/client/assets/{project-app-view-CD95f-Ja.js → project-app-view-BH2u01TO.js} +1 -1
- package/dist/client/assets/{project-apps-CumaGNv9.js → project-apps-CTuZm-1a.js} +1 -1
- package/dist/client/assets/{project-icon-CapKL04Y.js → project-icon-BhWIi9DN.js} +1 -1
- package/dist/client/assets/{project-index-Dl_LNEuF.js → project-index-_-BCnGMR.js} +1 -1
- package/dist/client/assets/project-reports-yDx2KIN5.js +1 -0
- package/dist/client/assets/project-tasks-CZ24XPn7.js +1 -0
- package/dist/client/assets/{projects-CizIhWb4.js → projects-CbLcC2Cm.js} +1 -1
- package/dist/client/assets/{projects-empty-state-rX9MGuhO.js → projects-empty-state-DgeHjyWl.js} +1 -1
- package/dist/client/assets/{prompts-Bxu1gwra.js → prompts-CIAk1CWx.js} +1 -1
- package/dist/client/assets/{record-editor-BluW68E5.js → record-editor-Cqt0X6zj.js} +1 -1
- package/dist/client/assets/{redirect-editor-D_z4HgGi.js → redirect-editor-DrfUg_M2.js} +1 -1
- package/dist/client/assets/reports-BeqJdfY-.js +1 -0
- package/dist/client/assets/{reports-CdhkVMOp.js → reports-BqGiKAfm.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DiIXbBm-.js → reports-onboarding-LZjQ8G8T.js} +1 -1
- package/dist/client/assets/{reports-tab-TaW27Dib.js → reports-tab-B55dyiL7.js} +2 -2
- package/dist/client/assets/{repositories-BEIy4iov.js → repositories-0RznNRUX.js} +1 -1
- package/dist/client/assets/repositories-BoB8X409.js +1 -0
- package/dist/client/assets/{repository-binding-DnTIKvh_.js → repository-binding-Cfy_YQIZ.js} +1 -1
- package/dist/client/assets/{repository-picker-Dm4xl8L-.js → repository-picker-BKWo-jhF.js} +1 -1
- package/dist/client/assets/{require-capability-BXxAP3RL.js → require-capability-Bpnmr0un.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DhuiRYqz.js → required-auth-layout-CRKzQVpv.js} +1 -1
- package/dist/client/assets/{reset-password-B2i1JKOP.js → reset-password-DVKc7osA.js} +1 -1
- package/dist/client/assets/{resizable-CAylzP2b.js → resizable-w4diu4pE.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-uqUI1ibt.js → resolve-tab-icon-DY3vlmxg.js} +1 -1
- package/dist/client/assets/{review-settings-Dr0pk97x.js → review-settings-D7Ld59mb.js} +1 -1
- package/dist/client/assets/{role-color-Bhd8KoVS.js → role-color-DfOmE7Fu.js} +1 -1
- package/dist/client/assets/{roles-BIfyt_GY.js → roles-RQS02DUg.js} +1 -1
- package/dist/client/assets/route-59M5FlvK.js +1 -0
- package/dist/client/assets/route-B-HA2s4_.js +1 -0
- package/dist/client/assets/{route-rALNsp7W.js → route-BRvX0p-n.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-T_FHqShI.js → sandbox-lifecycle-context-D-PaTa6M.js} +1 -1
- package/dist/client/assets/{schema-B0qCyNGJ.js → schema-CJ9UcSNs.js} +1 -1
- package/dist/client/assets/{schema-D6loGo_O.js → schema-Dq7led26.js} +1 -1
- package/dist/client/assets/{scroll-area-BONvYSJN.js → scroll-area-PZSCT0ow.js} +1 -1
- package/dist/client/assets/{search-input-ZJ0TUPZ6.js → search-input-DO66exG7.js} +1 -1
- package/dist/client/assets/{search-toggle-D6en4lHd.js → search-toggle-DaBbNP1T.js} +1 -1
- package/dist/client/assets/{secret-picker-BD3pokVI.js → secret-picker-bljsK2mV.js} +1 -1
- package/dist/client/assets/{secrets-ZJiNCrVj.js → secrets-CBAb9cvk.js} +1 -1
- package/dist/client/assets/{section-array-field-BjOMaOyh.js → section-array-field-CPrkBgr3.js} +1 -1
- package/dist/client/assets/{sections-RdndL6R-.js → sections-T2vi-zI4.js} +1 -1
- package/dist/client/assets/{sections-editor-YQkpJmYe.js → sections-editor-DQwNUlLv.js} +1 -1
- package/dist/client/assets/{select-DOPxEiy0.js → select-BABowMoY.js} +1 -1
- package/dist/client/assets/{select-model-C8OsJu0P.js → select-model-CbEyJ33x.js} +1 -1
- package/dist/client/assets/{seo-editor-qGMzOY9m.js → seo-editor-C9V4Y_YB.js} +1 -1
- package/dist/client/assets/{separator-B6Wfr511.js → separator-CM0d_WPE.js} +1 -1
- package/dist/client/assets/settings-tab-DUqPlhAE.js +1 -0
- package/dist/client/assets/{sheet-O98X_91-.js → sheet-BSCF-nmk.js} +1 -1
- package/dist/client/assets/{shell-layout-BAK0t5W4.js → shell-layout-d2Ief2ja.js} +1 -1
- package/dist/client/assets/{site-draft-actions-_J98WPse.js → site-draft-actions-CH7jTGTc.js} +1 -1
- package/dist/client/assets/{site-draft-view-DiD0S10y.js → site-draft-view-CbKyFhEM.js} +1 -1
- package/dist/client/assets/site-editor-CX53l3C_.js +1 -0
- package/dist/client/assets/{site-editor-toast-DbTzFTFl.js → site-editor-toast-CluWI-yZ.js} +1 -1
- package/dist/client/assets/{skills-BcCFe-5m.js → skills-BOpgUaHZ.js} +1 -1
- package/dist/client/assets/{slider-Bh2E_axo.js → slider-QcqvUsSI.js} +1 -1
- package/dist/client/assets/{sortable.esm-DG7uouGH.js → sortable.esm-0yomt8g2.js} +1 -1
- package/dist/client/assets/{sso-QU_aZP2B.js → sso-CbSeZ9e5.js} +1 -1
- package/dist/client/assets/{suggestion-DU-baT9O.js → suggestion-C9bDFuOo.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DezxQHWn.js → super-agent-icon-DMm0_lmO.js} +1 -1
- package/dist/client/assets/{switch-DLFEYGM0.js → switch-CRe3xUPs.js} +1 -1
- package/dist/client/assets/{synced-repos-C0nMrxoG.js → synced-repos-D900mhEv.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DN2wyTv4.js → tab-icon-glyph-D5lXXFkj.js} +1 -1
- package/dist/client/assets/{table-B09bkaSv.js → table-C-Iqqanf.js} +1 -1
- package/dist/client/assets/{tabs-DeTALxBi.js → tabs-CPwYT_wy.js} +1 -1
- package/dist/client/assets/{task-board-95swTute.js → task-board-B-Jl-DnQ.js} +1 -1
- package/dist/client/assets/{task-route-CYLyBkUK.js → task-route-C-boE7jG.js} +1 -1
- package/dist/client/assets/{task-status-CYrsK5kS.js → task-status-Dg7JusRR.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Cm6WIlTm.js → taskboard-analytics-DwDfRDQC.js} +1 -1
- package/dist/client/assets/tasks-DMBPC4PI.js +1 -0
- package/dist/client/assets/{tasks-B__eknj6.js → tasks-ElocVpWd.js} +1 -1
- package/dist/client/assets/{textarea-jjFZrPcz.js → textarea-DSiKrnTK.js} +1 -1
- package/dist/client/assets/{thread-analytics-IYdfqMK_.js → thread-analytics-BtdCUFGw.js} +1 -1
- package/dist/client/assets/{thread-intent-BtmlqwRH.js → thread-intent-DnduoWYb.js} +1 -1
- package/dist/client/assets/{thread-route-DoQ3AePC.js → thread-route-D0P3i7B7.js} +1 -1
- package/dist/client/assets/{thread-route-B-VKd0Ce.js → thread-route-DSQLBJ4Y.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-kBMgJWAe.js → thread-sheet-body-BHjT7Rlx.js} +1 -1
- package/dist/client/assets/{time-range-picker-CqKQQJnw.js → time-range-picker-B0Xtja-D.js} +1 -1
- package/dist/client/assets/{toggle-group-BL47pqaq.js → toggle-group-CO1s8gR-.js} +1 -1
- package/dist/client/assets/{tool-namespace-qcytt9G1.js → tool-namespace-BskMFdfX.js} +1 -1
- package/dist/client/assets/{tool-set-selector-Jw58ZRph.js → tool-set-selector-DbHsII-W.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DjIWEs2B.js → toolbar-icon-button-DQHnJFhG.js} +1 -1
- package/dist/client/assets/{tooltip-BVSpbx-_.js → tooltip-C1oPRuFg.js} +1 -1
- package/dist/client/assets/{tooltipContext-BbDqXSlB.js → tooltipContext-Dk4Jh8sf.js} +1 -1
- package/dist/client/assets/{track-BqiZiu1D.js → track-DQNlgsAd.js} +1 -1
- package/dist/client/assets/{types-DGYfIFbD.js → types-sVhbGxrT.js} +1 -1
- package/dist/client/assets/{url-slug-Dz10RPtP.js → url-slug-kny4-Gd8.js} +1 -1
- package/dist/client/assets/{usage-stats-D5I4yIME.js → usage-stats-CkprzoQA.js} +1 -1
- package/dist/client/assets/{use-ai-providers-qcI9kSam.js → use-ai-providers-BmwnG2L7.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-D6gdtjxE.js → use-apply-named-rule-QQXumPyC.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-C56CHpt0.js +1 -0
- package/dist/client/assets/{use-automations-CE8iWCaz.js → use-automations-pGpYlQfd.js} +1 -1
- package/dist/client/assets/{use-autosave-D1oMLPfh.js → use-autosave-C1VLdEbv.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DSiCCdEB.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-D2kmyA5o.js → use-chat-layout-state-Ep7OkPup.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-B9K0jzm5.js → use-cms-publish-actions-Cls9mAWe.js} +1 -1
- package/dist/client/assets/{use-connect-companion-cF-nX84z.js → use-connect-companion-B0uthGiU.js} +1 -1
- package/dist/client/assets/{use-connection-BCwT2p8B.js → use-connection-DFsrW4Mv.js} +1 -1
- package/dist/client/assets/{use-content-sync-CLeJQt6-.js → use-content-sync-BYcD8LZk.js} +1 -1
- package/dist/client/assets/{use-copy-Bn5nWWQG.js → use-copy-9wHvlEmg.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CXg39XeJ.js → use-date-fns-locale-CfiWZhP7.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CCIK5NSm.js → use-debounced-autosave-CK8e7jku.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CALTE0-J.js → use-debounced-value-Cs49dczG.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CI_hVc5L.js → use-deco-credits-ChuCrYAR.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BGb9i2D9.js → use-decopilot-events-CR7NJgme.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BZfWavav.js → use-delete-connection-Dq2UKTpz.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CfaGw49b.js → use-deployment-admin-CALPlo_8.js} +1 -1
- package/dist/client/assets/{use-entitlements-HGoX64MA.js → use-entitlements-DzfUP8ON.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DhVINgsk.js → use-fast-preview-draft-url-B0ysxeQy.js} +1 -1
- package/dist/client/assets/{use-file-configs-DJ8uwfYI.js → use-file-configs-CfNCrD6y.js} +1 -1
- package/dist/client/assets/{use-id-selection-Byr-tWk-.js → use-id-selection-BeGsI2-X.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-D0cAFMUM.js → use-inbox-feed-HViitByF.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-KRVACoeF.js → use-infinite-scroll-DdKcODzJ.js} +1 -1
- package/dist/client/assets/{use-join-requests-CpB6cItZ.js → use-join-requests-Dg5vHh8i.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BExuHHIh.js → use-main-panel-tabs-DZH6Z-sf.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BAlx6pDX.js → use-mcp-auth-status-C13HkQ9w.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DfcqzMq1.js → use-mcp-client-B9_8tfCL.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BV72WbSD.js → use-mcp-prompts-NcFGfyZU.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-7PQ3NovP.js → use-mcp-tools-wrSWiD0P.js} +1 -1
- package/dist/client/assets/{use-mobile-CQ6V3YRN.js → use-mobile-DSmr8Fj3.js} +1 -1
- package/dist/client/assets/{use-move-blocks-JBQzX1My.js → use-move-blocks-gne4gzCh.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D5XHqsJq.js → use-navigate-to-agent-ycEqYJX7.js} +1 -1
- package/dist/client/assets/{use-org-fs-BqH5T3Sy.js → use-org-fs-C57fsXyq.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DN8-yp4r.js → use-org-repo-syncs-BcOvlKwo.js} +1 -1
- package/dist/client/assets/{use-org-sso-u9TOWNqG.js → use-org-sso-B5c0saDF.js} +1 -1
- package/dist/client/assets/{use-organization-settings-VtZHPkLh.js → use-organization-settings-B0lt5dXR.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-BBRyl28q.js +1 -0
- package/dist/client/assets/{use-project-scope-B83JUNc2.js → use-project-scope-C1eT4xwT.js} +1 -1
- package/dist/client/assets/{use-recent-apps-qkoPZRRH.js → use-recent-apps-CU27r377.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-LlEd-RbG.js → use-reports-diagnostic-QLTyI1c7.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-bTwWaKJH.js → use-sandbox-events-BNcBCK9X.js} +1 -1
- package/dist/client/assets/{use-secrets-BQOxylG3.js → use-secrets-Dh7bZZgD.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-StiVIbqe.js → use-section-preview-base-53RIdpth.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Bo_fV1ZI.js → use-sidebar-collapsed-XX5WdYs3.js} +1 -1
- package/dist/client/assets/{use-tags-BvVGefXP.js → use-tags-Cbxwh1yu.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BpE1TPch.js → use-task-board-analytics-BseFgQx7.js} +1 -1
- package/dist/client/assets/{use-task-board-events-rFqMtePj.js → use-task-board-events-CMb3Vjy2.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CLvlosI3.js → use-task-board-item-prs-2_-y1IH5.js} +1 -1
- package/dist/client/assets/{use-task-board-items-HgW8DVW2.js → use-task-board-items-CnG0LR-k.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DsxgB7IK.js → use-task-board-prompts-DschKVPr.js} +1 -1
- package/dist/client/assets/{use-task-metadata-bDql024r.js → use-task-metadata-KJjG2-5j.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DAMbPn4y.js → use-thread-outputs-B6Mbzgsq.js} +1 -1
- package/dist/client/assets/{use-voice-input-CQAqEi1v.js → use-voice-input-BVeAO01v.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BvhkDMwv.js +1 -0
- package/dist/client/assets/{useQueries-BIJ-tBOF.js → useQueries-COskgQPI.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CHeSvNyF.js +1 -0
- package/dist/client/assets/{users-9rByH5AA.js → users-D9U38Uiq.js} +1 -1
- package/dist/client/assets/{utils-DQFBRZPm.js → utils-C07I_8BL.js} +1 -1
- package/dist/client/assets/{variant-calendar-BwYXWcFz.js → variant-calendar-B1xF-pvj.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-ByMpLNRq.js → variant-matcher-override-O46bQvi2.js} +1 -1
- package/dist/client/assets/{view-header-v0F29KQ1.js → view-header-CB8g9i8I.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BaFxXna4.js → virtual-mcp-DkEy_7-s.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-yarYBhtI.js → watch-sse-pool-BUtg06cI.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-FtEM4M24.js +0 -1
- package/dist/client/assets/agent-deck-XPT7vuUL.js +0 -1
- package/dist/client/assets/agent-experiments-BX4Qxtn5.js +0 -1
- package/dist/client/assets/agent-library-Csjeb884.js +0 -1
- package/dist/client/assets/agent-library-file-Cb5y9Ot1.js +0 -1
- package/dist/client/assets/agent-overview-I8Oa7crw.js +0 -1
- package/dist/client/assets/agent-settings-D_5Nl5O6.js +0 -1
- package/dist/client/assets/agent-site-editor-code-V8zDZ0Sp.js +0 -2
- package/dist/client/assets/agent-site-editor-content-RSTA2mN_.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-v_JSJiV0.js +0 -1
- package/dist/client/assets/agent-view-B8D5kU0t.js +0 -1
- package/dist/client/assets/api-keys-CgJQdLm6.js +0 -1
- package/dist/client/assets/index-BS27oJqi.js +0 -4
- package/dist/client/assets/library-ABRgCoFW.js +0 -1
- package/dist/client/assets/project-reports-D23gm-T0.js +0 -1
- package/dist/client/assets/project-tasks-BrFIJeSm.js +0 -1
- package/dist/client/assets/reports-C31yRbSC.js +0 -1
- package/dist/client/assets/repositories-D8_di3b3.js +0 -1
- package/dist/client/assets/route-CH_5kxvW.js +0 -1
- package/dist/client/assets/route-DF0O5T7i.js +0 -1
- package/dist/client/assets/settings-tab-DQUNLW_P.js +0 -1
- package/dist/client/assets/site-editor-DO210YQD.js +0 -1
- package/dist/client/assets/tasks-BYvtx4H_.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CnM4deZ8.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-CJV-tfcs.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-Cwk8CqhY.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BPQl0e27.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BZJyWpJ1.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bf as z,c as ce,q as $t,K as nt,i as xt,fH as Lt,fA as Mt,bI as He,bL as Ct,bK as ne,c7 as rt,fI as $e,b6 as It,b7 as it,fC as Ut,bG as Dt,bB as ot,bA as Nt,fJ as Kt,bT as Vt,b as ye,a4 as Ft,j as L,B as xe,L as qt,h as Wt,a7 as Yt}from"./index-DIJ4i6l1.js";import{c as zt,o as Gt,u as Qt,l as Ht,ah as Xt,aE as Zt,aa as Jt,aF as en,aG as tn,y as nn,q as rn}from"./site-editor-toast-DbTzFTFl.js";import{u as on}from"./use-voice-input-CQAqEi1v.js";import{i as sn}from"./AlertCircle-xXAUxL5Z.js";import{aK as st}from"./agent-icon-BA6h0wAH.js";import{E as Le}from"./empty-state-JLp-0Ot0.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 ar(e){return K[e]}const fr=de.map(e=>K[e].blockKey);function cn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function lr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function ur(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const an="deco";function pr(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 Ze(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 yr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function dr(e){const t=Ze(e,"experiments"),n=Ze(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 mr(e){return e<=0?"off":e>=100?"everyone":"running"}function gr(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 hr(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const un="date";function _r(e){return me(e)&&e.__resolveType===un&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function vr(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function br(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 Tr(e,t){const n=ce.c(30),{url:r}=zt(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",R=Qt(e?.virtualMcpId,e?.branch),P=R.kind==="protocol"?R:null,G=$t(),V=Ht(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Xt(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]!==R.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]!==G||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Zt(G,P,e,V);if(d instanceof Error)throw d;return d}if(R.kind==="unavailable")throw Jt("live meta");const Q=()=>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 Q();if(E.kind==="data")return E.data;continue}const a=G.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]=R.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]=G,n[16]=j,n[17]=I):I=n[17];const W=!!e&&R.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=(Q,s)=>(P||S||i||s.status!==502)&&Q<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:en},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)}const hn=new Set(["split-traffic","calendar"]);function _n(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const vn=12,bn=8,Ee=32,Tn=40,Je="__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 An="VideoWidget";function J(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 Me(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ce(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=Me(e)??Ce(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 Ar(e,t){return Object.keys(ge(e,t)).length>0}function ft(e,t){if(Lt(e,t))return!0;const n=Me(t)??Ce(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 Sn(e){return e==="site/apps/site.ts"?!1:Me(e)!==null||Ce(e)!==null}function Rn(e,t){return lt(t,{resolveType:e})}function Sr(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===Je?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},R=(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:R(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===Je?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},G=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>G(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>vn)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=[...J(a.__required),...J(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=J(a.__required),H=W(x,y,d+1);a={...a,...H};const C=B==="allOf"?[...U,...J(H.__required)]:U;C.length>0?a.__required=C: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===An&&!a.format&&(a={...a,format:"video-uri"})}a=R(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,U=(k,m,b,O=!0)=>!E&&(!O||b<=Tn)&&m<bn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(O=>!(O.type==="null"||O.type===null)),b=O=>{if(typeof O.const=="string"||typeof O.const=="number")return O.const;if(Array.isArray(O.enum)&&O.enum.length===1&&(typeof O.enum[0]=="string"||typeof O.enum[0]=="number"))return O.enum[0]};m.length>0&&m.every(O=>b(O)!==void 0)&&(H=m.map(O=>b(O)))}}let C,oe,Fe=!1;if(a.type)C=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)C="null";else if(m.length===1){const b=m[0];oe=b,C=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),O=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>R(u)).find(le),Ae=u=>{if(typeof u.$ref!="string")return;const p=R(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 M=l(_),N=M.properties;return!N?.__resolveType&&!M.anyOf&&!M.oneOf&&(M.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(R(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=G(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 Z=v.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(v.allOf))for(const Bt of v.allOf){const Oe=Bt.properties?.__resolveType?.enum;if(Array.isArray(Oe)&&typeof Oe[0]=="string"){X=Oe[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))],M=m.filter(A=>!b.includes(A)),N=M.length===1&&!E?$(M[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:O,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(R(_))),w=fe.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,M)=>({title:S(_,`Option ${M+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(_=>J(_.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 Re=u=>{if(Ye(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},jt=u=>{const p=R(u);return le(p)?!et(p,c):!1},Ge=y<Ee&&m.every(u=>Re(u)||jt(u))&&m.some(Re),Qe=m.every(u=>typeof u.$ref=="string"),wt=z(e)&&!Qe&&m.some(u=>typeof u.$ref=="string"&&hn.has(_n(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Re(u));if((Qe||wt)&&!Ge){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 Z=((A.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[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 M=h.includes("/")||_&&!Ct(h),N=M?void 0:T(p);!N&&!M||_&&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:O,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(Ge){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[M,N]of Object.entries(w)){const A=u(N);A!==void 0&&(_[M]=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}}C="object"}}else a.allOf?(C="object",Fe=I(a.title)):typeof s.$ref=="string"&&(C="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=J(k.__required);b.length>0&&(qe=b);const O=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(O.length>0){ae={};for(const[D,Ae]of O)ae[D]=$(Ae,y+1,x)}}let Te;if((C==="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:C??"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"&&(C==="object"||C==="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=R(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 Q=J(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:Q.length>0?Q: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 Or(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=R=>R===!0||R==="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"],On=new Set(ut);function Ue(e){return On.has(e)}function De(e,t){return Ue(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function Er(e,t){return De(e,z(t)?t:void 0)}function Ne(e){return e.replace(/\/+$/,"")||"/"}function kr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function En(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Pr(e){const t=e.trim();return t?En(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function jr(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 wr(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 Br(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],kn=new Set(["site/sections/Theme/Theme.tsx"]);function Pn(e,t){return kn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(Pn(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 jn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function $r(e){return e?jn(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 wn(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 xr(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=It(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===Ut||t&&e===Dt}function Bn(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))&&Bn(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function $n(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 Lr(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 wn(e))c(f);for(const f of i)c($n(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",Cr=new Set([_e,"website/loaders/redirects.ts"]),ve="redirect",xn=[301,302,307,308],Ln={temporary:307,permanent:301};function Ir(e){return e.flat&&e.status||Ln[e.type]}const ue=e=>typeof e=="string"?e:"",Mn=e=>e==="permanent"?"permanent":"temporary",Cn=e=>xn.find(t=>t===e);function _t(e){const t=Cn(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 In(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 Ur(e){return be(e)}function Un(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 Dn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Nn=1e3;function Dr(e,t){const n=Dn(t);for(let r=0;r<Nn;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 Kn="Redirects",vt="redirects";function bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===vt}function Vn(e){return Object.keys(e).filter(n=>bt(e[n])).sort()[0]??Kn}function Nr(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}=Un(e,{...t});return r}function Kr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:_e}:{...n,__resolveType:ve}])}function Vr(e,t=Vn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...Tt(n)}))}function Fr(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 qr(e,t){return Ve(e,[...re(e),At(t)])}function Wr(e,t,n){const r=re(e),i=r.slice();return i[t]=At(n,r[t]),Ve(e,i)}function Yr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function Fn(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 zr(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 Qr(e,t){return e?Rt(e,t).length>0||In(e).length>0?!0:t?Qn(e,t).length>0||zn(e,t)?!0:Gn(e,t).length>0:!1:!1}function qn(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:Fn(e),path:r.path}}function Rt(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=qn(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 Nt(e)?Kt(e).some(n=>t.has(n)):we(e,t)}function Wn(e,t,n){const r=Rt(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 Hr(e,t,n){const r=o=>Ne(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Wn(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 Yn(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 zn(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)&&!Sn(c)||n.push({key:r,name:Be(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Qn(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=mt(t,r);return{key:n.resolveType,name:n.description??Yn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const Hn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Xn={posts:"post",categories:"category",authors:"author"},Ot=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Xr(e,...t){const n=e?Hn.exec(e)?.[1]:void 0;if(n)return Xn[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=Ot.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 Ot){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 Jn(e,t=Vt){return t(`sectionsEditor.blogKind.${e}`)}function Zr(e,t,n){return Zn(...t)??Jn(e,n)}const er="https://github.com/decocms/blocks";function Jr(){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(Yt,{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:er,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 ei(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 R;return t[11]!==c||t[12]!==l||t[13]!==S?(R=L.jsx(Le,{image:f,title:l,description:c,actions:S}),t[11]=c,t[12]=l,t[13]=S,t[14]=R):R=t[14],R}function ti(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ni(){const e=ce.c(16),t=ye(),{org:n}=Ft();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(qt,{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 ri(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(Wt,{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,ei as B,ri as C,Yn as D,vt as E,Kr as F,lr as G,mt as H,Ur as I,Nr as J,zr as K,zn as L,In as M,de as N,xr as O,Cr as P,Vn as Q,Ln as R,ni as S,Yr as T,Vr as U,Dr as V,Un as W,qr as X,Er as Y,jn as Z,$r as _,kr as a,Ue as a0,Sr as a1,Lr as a2,gr as a3,Rr as a4,Or as a5,qn as a6,Fn as a7,Xr as a8,Zr as a9,ur as aa,Jn as ab,yt as ac,me as ad,Ze as ae,_r as af,hr as ag,yr as ah,vr as ai,ar as aj,Zn as ak,mr as al,br as am,Mr as an,Pe as ao,Fr as ap,xn as aq,Wr as ar,Jr as b,Qn as c,Gr as d,Rt as e,Br as f,pr as g,Qr as h,ti as i,fr as j,dt as k,Ar as l,St as m,Ne as n,je as o,Hr as p,Sn as q,dr as r,wr as s,Be as t,Tr as u,Pr as v,Ie as w,Ir as x,jr as y,he as z};
|
|
1
|
+
import{bf as z,c as ce,q as $t,K as nt,i as xt,fH as Lt,fA as Mt,bI as He,bL as Ct,bK as ne,c7 as rt,fI as $e,b6 as It,b7 as it,fC as Ut,bG as Dt,bB as ot,bA as Nt,fJ as Kt,bT as Vt,b as ye,a4 as Ft,j as L,B as xe,L as qt,h as Wt,a7 as Yt}from"./index-XdUWZF5g.js";import{c as zt,o as Gt,u as Qt,l as Ht,ah as Xt,aE as Zt,aa as Jt,aF as en,aG as tn,y as nn,q as rn}from"./site-editor-toast-CluWI-yZ.js";import{u as on}from"./use-voice-input-BVeAO01v.js";import{i as sn}from"./AlertCircle-CQW1P7_R.js";import{aK as st}from"./agent-icon-DmYd33Zd.js";import{E as Le}from"./empty-state-D5FGRI4e.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 ar(e){return K[e]}const fr=de.map(e=>K[e].blockKey);function cn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function lr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function ur(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const an="deco";function pr(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 Ze(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 yr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function dr(e){const t=Ze(e,"experiments"),n=Ze(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 mr(e){return e<=0?"off":e>=100?"everyone":"running"}function gr(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 hr(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const un="date";function _r(e){return me(e)&&e.__resolveType===un&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function vr(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function br(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 Tr(e,t){const n=ce.c(30),{url:r}=zt(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",R=Qt(e?.virtualMcpId,e?.branch),P=R.kind==="protocol"?R:null,G=$t(),V=Ht(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Xt(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]!==R.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]!==G||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Zt(G,P,e,V);if(d instanceof Error)throw d;return d}if(R.kind==="unavailable")throw Jt("live meta");const Q=()=>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 Q();if(E.kind==="data")return E.data;continue}const a=G.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]=R.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]=G,n[16]=j,n[17]=I):I=n[17];const W=!!e&&R.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=(Q,s)=>(P||S||i||s.status!==502)&&Q<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:en},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)}const hn=new Set(["split-traffic","calendar"]);function _n(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const vn=12,bn=8,Ee=32,Tn=40,Je="__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 An="VideoWidget";function J(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 Me(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ce(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=Me(e)??Ce(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 Ar(e,t){return Object.keys(ge(e,t)).length>0}function ft(e,t){if(Lt(e,t))return!0;const n=Me(t)??Ce(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 Sn(e){return e==="site/apps/site.ts"?!1:Me(e)!==null||Ce(e)!==null}function Rn(e,t){return lt(t,{resolveType:e})}function Sr(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===Je?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},R=(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:R(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===Je?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},G=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>G(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>vn)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=[...J(a.__required),...J(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=J(a.__required),H=W(x,y,d+1);a={...a,...H};const C=B==="allOf"?[...U,...J(H.__required)]:U;C.length>0?a.__required=C: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===An&&!a.format&&(a={...a,format:"video-uri"})}a=R(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,U=(k,m,b,O=!0)=>!E&&(!O||b<=Tn)&&m<bn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(O=>!(O.type==="null"||O.type===null)),b=O=>{if(typeof O.const=="string"||typeof O.const=="number")return O.const;if(Array.isArray(O.enum)&&O.enum.length===1&&(typeof O.enum[0]=="string"||typeof O.enum[0]=="number"))return O.enum[0]};m.length>0&&m.every(O=>b(O)!==void 0)&&(H=m.map(O=>b(O)))}}let C,oe,Fe=!1;if(a.type)C=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)C="null";else if(m.length===1){const b=m[0];oe=b,C=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),O=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>R(u)).find(le),Ae=u=>{if(typeof u.$ref!="string")return;const p=R(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 M=l(_),N=M.properties;return!N?.__resolveType&&!M.anyOf&&!M.oneOf&&(M.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(R(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=G(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 Z=v.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(v.allOf))for(const Bt of v.allOf){const Oe=Bt.properties?.__resolveType?.enum;if(Array.isArray(Oe)&&typeof Oe[0]=="string"){X=Oe[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))],M=m.filter(A=>!b.includes(A)),N=M.length===1&&!E?$(M[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:O,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(R(_))),w=fe.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,M)=>({title:S(_,`Option ${M+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(_=>J(_.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 Re=u=>{if(Ye(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},jt=u=>{const p=R(u);return le(p)?!et(p,c):!1},Ge=y<Ee&&m.every(u=>Re(u)||jt(u))&&m.some(Re),Qe=m.every(u=>typeof u.$ref=="string"),wt=z(e)&&!Qe&&m.some(u=>typeof u.$ref=="string"&&hn.has(_n(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Re(u));if((Qe||wt)&&!Ge){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 Z=((A.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[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 M=h.includes("/")||_&&!Ct(h),N=M?void 0:T(p);!N&&!M||_&&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:O,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(Ge){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[M,N]of Object.entries(w)){const A=u(N);A!==void 0&&(_[M]=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}}C="object"}}else a.allOf?(C="object",Fe=I(a.title)):typeof s.$ref=="string"&&(C="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=J(k.__required);b.length>0&&(qe=b);const O=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(O.length>0){ae={};for(const[D,Ae]of O)ae[D]=$(Ae,y+1,x)}}let Te;if((C==="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:C??"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"&&(C==="object"||C==="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=R(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 Q=J(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:Q.length>0?Q: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 Or(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=R=>R===!0||R==="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"],On=new Set(ut);function Ue(e){return On.has(e)}function De(e,t){return Ue(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function Er(e,t){return De(e,z(t)?t:void 0)}function Ne(e){return e.replace(/\/+$/,"")||"/"}function kr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function En(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Pr(e){const t=e.trim();return t?En(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function jr(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 wr(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 Br(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],kn=new Set(["site/sections/Theme/Theme.tsx"]);function Pn(e,t){return kn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(Pn(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 jn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function $r(e){return e?jn(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 wn(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 xr(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=It(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===Ut||t&&e===Dt}function Bn(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))&&Bn(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function $n(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 Lr(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 wn(e))c(f);for(const f of i)c($n(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",Cr=new Set([_e,"website/loaders/redirects.ts"]),ve="redirect",xn=[301,302,307,308],Ln={temporary:307,permanent:301};function Ir(e){return e.flat&&e.status||Ln[e.type]}const ue=e=>typeof e=="string"?e:"",Mn=e=>e==="permanent"?"permanent":"temporary",Cn=e=>xn.find(t=>t===e);function _t(e){const t=Cn(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 In(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 Ur(e){return be(e)}function Un(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 Dn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Nn=1e3;function Dr(e,t){const n=Dn(t);for(let r=0;r<Nn;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 Kn="Redirects",vt="redirects";function bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===vt}function Vn(e){return Object.keys(e).filter(n=>bt(e[n])).sort()[0]??Kn}function Nr(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}=Un(e,{...t});return r}function Kr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:_e}:{...n,__resolveType:ve}])}function Vr(e,t=Vn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...Tt(n)}))}function Fr(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 qr(e,t){return Ve(e,[...re(e),At(t)])}function Wr(e,t,n){const r=re(e),i=r.slice();return i[t]=At(n,r[t]),Ve(e,i)}function Yr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function Fn(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 zr(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 Qr(e,t){return e?Rt(e,t).length>0||In(e).length>0?!0:t?Qn(e,t).length>0||zn(e,t)?!0:Gn(e,t).length>0:!1:!1}function qn(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:Fn(e),path:r.path}}function Rt(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=qn(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 Nt(e)?Kt(e).some(n=>t.has(n)):we(e,t)}function Wn(e,t,n){const r=Rt(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 Hr(e,t,n){const r=o=>Ne(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Wn(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 Yn(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 zn(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)&&!Sn(c)||n.push({key:r,name:Be(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Qn(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=mt(t,r);return{key:n.resolveType,name:n.description??Yn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const Hn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Xn={posts:"post",categories:"category",authors:"author"},Ot=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Xr(e,...t){const n=e?Hn.exec(e)?.[1]:void 0;if(n)return Xn[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=Ot.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 Ot){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 Jn(e,t=Vt){return t(`sectionsEditor.blogKind.${e}`)}function Zr(e,t,n){return Zn(...t)??Jn(e,n)}const er="https://github.com/decocms/blocks";function Jr(){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(Yt,{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:er,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 ei(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 R;return t[11]!==c||t[12]!==l||t[13]!==S?(R=L.jsx(Le,{image:f,title:l,description:c,actions:S}),t[11]=c,t[12]=l,t[13]=S,t[14]=R):R=t[14],R}function ti(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ni(){const e=ce.c(16),t=ye(),{org:n}=Ft();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(qt,{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 ri(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(Wt,{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,ei as B,ri as C,Yn as D,vt as E,Kr as F,lr as G,mt as H,Ur as I,Nr as J,zr as K,zn as L,In as M,de as N,xr as O,Cr as P,Vn as Q,Ln as R,ni as S,Yr as T,Vr as U,Dr as V,Un as W,qr as X,Er as Y,jn as Z,$r as _,kr as a,Ue as a0,Sr as a1,Lr as a2,gr as a3,Rr as a4,Or as a5,qn as a6,Fn as a7,Xr as a8,Zr as a9,ur as aa,Jn as ab,yt as ac,me as ad,Ze as ae,_r as af,hr as ag,yr as ah,vr as ai,ar as aj,Zn as ak,mr as al,br as am,Mr as an,Pe as ao,Fr as ap,xn as aq,Wr as ar,Jr as b,Qn as c,Gr as d,Rt as e,Br as f,pr as g,Qr as h,ti as i,fr as j,dt as k,Ar as l,St as m,Ne as n,je as o,Hr as p,Sn as q,dr as r,wr as s,Be as t,Tr as u,Pr as v,Ie as w,Ir as x,jr 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-XdUWZF5g.js";import{l as v}from"./agent-icon-DmYd33Zd.js";import{a8 as P,z as K,a7 as D,a9 as W}from"./parse-sections-DxG18Udv.js";import{t as y}from"./ChevronUp-RQuomTlc.js";import{C as I,a as Y,b as w}from"./collapsible-DMIxs55h.js";import{S as B,W as L}from"./content-tab-D-PBLIve.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 z(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(z,{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 A(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 k=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)&&!k.has(c)&&d.hidden!==!0));return Object.keys(o).length===0?null:{type:"object",properties:o}}function ee(l,e,t){return G(A(l,e),t)}const V=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(V),M=["name","slug","parentSlug","description","sections"],se=new Set(M);export{Z as C,te as K,$ as S,z as a,ee as b,se as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,b as T,j as t,hW as Q,r as S,B as L,D as X,v as Y,w as Z,x as ee,aS as te,I as D,y as se,bj as ie,t as K,ax as O,g6 as le,aG as ne,aH as re,aI as ce,aJ as ae,aK as oe,aL as de,aM as ue}from"./index-DIJ4i6l1.js";import{i as fe}from"./AlertCircle-xXAUxL5Z.js";import{s as V}from"./Plus-hGBo4v46.js";import{s as me}from"./Trash01-Bhop9SkH.js";import{B as R}from"./badge-OxXf6NyW.js";import{E as ge}from"./empty-state-y2HOF9fL.js";import{L as B}from"./label-CE_9qjVi.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-DOPxEiy0.js";import{S as je}from"./switch-DLFEYGM0.js";import{T as ke}from"./textarea-jjFZrPcz.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-DJ8uwfYI.js";import{R as Se}from"./require-capability-BXxAP3RL.js";import"./index-BdQq_4o_.js";import"./index-BDIGIIrk.js";import"./ChevronUp-CjVmbW8q.js";import"./access-gate-BytJbO55.js";import"./capability-load-error-Bb_YsAjX.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 G(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(W){K.error(Ne(W,s("settings.buckets.failedToAddBucket")))}}const J=U.isPending||!n.trim()||!o.trim()||!a.trim()||!$;return t.jsx(X,{open:i,onOpenChange:e,children:t.jsxs(Y,{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:G,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:J,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 We(){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{We as default};
|
|
1
|
+
import{c as F,b as T,j as t,hW as Q,r as S,B as L,D as X,v as Y,w as Z,x as ee,aS as te,I as D,y as se,bj as ie,t as K,ax as O,g6 as le,aG as ne,aH as re,aI as ce,aJ as ae,aK as oe,aL as de,aM as ue}from"./index-XdUWZF5g.js";import{i as fe}from"./AlertCircle-CQW1P7_R.js";import{s as V}from"./Plus-BhSB1FAc.js";import{s as me}from"./Trash01-DQCE9WJt.js";import{B as R}from"./badge-fJOJmdQG.js";import{E as ge}from"./empty-state-CPhGFwFG.js";import{L as B}from"./label-CUqIqnOS.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-BABowMoY.js";import{S as je}from"./switch-CRe3xUPs.js";import{T as ke}from"./textarea-DSiKrnTK.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-CfNCrD6y.js";import{R as Se}from"./require-capability-Bpnmr0un.js";import"./index-BdQq_4o_.js";import"./index-DJy_S3Mn.js";import"./ChevronUp-RQuomTlc.js";import"./access-gate-B3-8eUAT.js";import"./capability-load-error-BwSdaWc5.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 G(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(W){K.error(Ne(W,s("settings.buckets.failedToAddBucket")))}}const J=U.isPending||!n.trim()||!o.trim()||!a.trim()||!$;return t.jsx(X,{open:i,onOpenChange:e,children:t.jsxs(Y,{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:G,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:J,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 We(){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{We as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as w,aj 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 w,aj as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-XdUWZF5g.js";function R(n){const e=w.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=w.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:U,isError:k}=R(f);if(U){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(k||!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 j;e[28]!==d||e[29]!==p||e[30]!==m.email||e[31]!==m.name?(j=!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]=j):j=e[32];let g;return e[33]!==v||e[34]!==h||e[35]!==j?(g=s.jsxs("div",{className:v,children:[h,j]}),e[33]=v,e[34]=h,e[35]=j,e[36]=g):g=e[36],g}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};
|