decocms 4.561.0 → 4.562.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DlXniLTL.js → AlertCircle-Cwj2JDLb.js} +1 -1
- package/dist/client/assets/{AreaChart-9TAFJEQT.js → AreaChart-M71cxP0N.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DIqRNJY3.js → ArrowLeft-D6im8CSl.js} +1 -1
- package/dist/client/assets/{ArrowUp-Cy-4CLBm.js → ArrowUp-zoWFBt83.js} +1 -1
- package/dist/client/assets/{CartesianChart-pC5Ct2Py.js → CartesianChart-CkRq1ukN.js} +1 -1
- package/dist/client/assets/{CategoricalChart-ChT3v5_x.js → CategoricalChart-CJyVrm-b.js} +1 -1
- package/dist/client/assets/{CheckCircle-DdQJ6K1s.js → CheckCircle-Dycaqr3_.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DJwn4vk3.js → ChevronSelectorVertical-Cq__IjWt.js} +1 -1
- package/dist/client/assets/{ChevronUp-0ZUNuXoh.js → ChevronUp-B0uKxpVg.js} +1 -1
- package/dist/client/assets/{CreditCard01-BzR1cQHR.js → CreditCard01-CMHPxKus.js} +1 -1
- package/dist/client/assets/{Globe04-DgADHmww.js → Globe04-BLpPYUUd.js} +1 -1
- package/dist/client/assets/{Key01-BnGTLStV.js → Key01-KS2Cdqso.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DuElxfIa.js → LinkBroken01-CFo-1erV.js} +1 -1
- package/dist/client/assets/{Minus-DKEGggSd.js → Minus-CR14C6Ew.js} +1 -1
- package/dist/client/assets/{Monitor01-RPmPp9yV.js → Monitor01-PjSuNm4O.js} +1 -1
- package/dist/client/assets/{Play-CCrxvWEX.js → Play-DAD0wkps.js} +1 -1
- package/dist/client/assets/{Plus-Dwl0ymG8.js → Plus-Caq968Zm.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DLcYrvmE.js → ReferenceLine-DEAQfOjW.js} +1 -1
- package/dist/client/assets/{SearchMd-Cf7uAP7Q.js → SearchMd-BionSqTl.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-lKolYH3w.js → ShoppingBag01-DUpALglE.js} +1 -1
- package/dist/client/assets/{Sun-CLH4DOsz.js → Sun-x19ShBxe.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-AyEyHl5j.js → SwitchHorizontal01-Dghq_Bvd.js} +1 -1
- package/dist/client/assets/{Tool01-D54u8MkG.js → Tool01-GdBdG6P_.js} +1 -1
- package/dist/client/assets/{Tooltip-CDBpzwgt.js → Tooltip-CDDThlKy.js} +1 -1
- package/dist/client/assets/{Trash01-CLcCE4W6.js → Trash01-DhMVlpac.js} +1 -1
- package/dist/client/assets/{Upload01-CQ4MgovG.js → Upload01-hsehoAUh.js} +1 -1
- package/dist/client/assets/{UserSquare-DorunsHP.js → UserSquare-T5uOviXx.js} +1 -1
- package/dist/client/assets/{Users01-mVHDEY41.js → Users01-DDaeVlhF.js} +1 -1
- package/dist/client/assets/{XClose-DJErxj2G.js → XClose-NmocES7U.js} +1 -1
- package/dist/client/assets/{Zap-C1zrSwKR.js → Zap-aTbgq59l.js} +1 -1
- package/dist/client/assets/{access-gate-C2fRlAo_.js → access-gate-CpAtBb_h.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-vc7esFXt.js → add-connection-dialog-BFqv_pWT.js} +1 -1
- package/dist/client/assets/agent-app-ZW_Vm-c7.js +1 -0
- package/dist/client/assets/{agent-assets-7ydz3P8Q.js → agent-assets-kQe7VufN.js} +1 -1
- package/dist/client/assets/{agent-automation-BU4egU3g.js → agent-automation-7-KjK-1c.js} +1 -1
- package/dist/client/assets/{agent-automations-LhCkKpX3.js → agent-automations-DnNwxwTt.js} +1 -1
- package/dist/client/assets/agent-calendar-CbAiDaBT.js +1 -0
- package/dist/client/assets/{agent-capabilities-C_fHyyST.js → agent-capabilities-DKq2l6j_.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-B6vNvPYt.js → agent-connect-sources-SuTyB8Qe.js} +1 -1
- package/dist/client/assets/agent-deck-8VVMhl7J.js +1 -0
- package/dist/client/assets/{agent-e2e-Bqq8mI7x.js → agent-e2e-C9FJgu1a.js} +1 -1
- package/dist/client/assets/{agent-file-Bi75RtUP.js → agent-file-D5ZobkO7.js} +1 -1
- package/dist/client/assets/{agent-hosting-BoJ7XB5h.js → agent-hosting-Df5G-pNf.js} +1 -1
- package/dist/client/assets/{agent-icon-qder0a6G.js → agent-icon-DD6O0sln.js} +1 -1
- package/dist/client/assets/agent-library-C_HTRhOS.js +1 -0
- package/dist/client/assets/agent-library-file-8gKy0Im-.js +1 -0
- package/dist/client/assets/agent-overview-CSsPaJjm.js +1 -0
- package/dist/client/assets/{agent-releases-Bd2Tpw8T.js → agent-releases-6IDVzk1I.js} +1 -1
- package/dist/client/assets/agent-settings-uWS3yWiw.js +1 -0
- package/dist/client/assets/{agent-site-editor-CDMr8brx.js → agent-site-editor-YGSo4JHf.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-wtgSW_Bw.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BC5jgNMj.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-Dd0H-yKP.js +1 -0
- package/dist/client/assets/agent-view-C4jCWfsN.js +1 -0
- package/dist/client/assets/{agent-view-guard-PjkyYQIO.js → agent-view-guard-Ud9RVhUT.js} +1 -1
- package/dist/client/assets/{ai-providers-dLqMBFxg.js → ai-providers-CdWvTe6E.js} +1 -1
- package/dist/client/assets/{alert-CngVua4h.js → alert-rSlkmSpl.js} +1 -1
- package/dist/client/assets/{analytics-sections-B89f2wMG.js → analytics-sections-CdJGMHGj.js} +1 -1
- package/dist/client/assets/{api-keys-Dw9LLspW.js → api-keys-CgV7T2W3.js} +1 -1
- package/dist/client/assets/api-keys-CmWPTVBS.js +1 -0
- package/dist/client/assets/{app-editor-DjCF4o53.js → app-editor-DQrUb2qq.js} +1 -1
- package/dist/client/assets/{asset-utils-uyXmTXD2.js → asset-utils-DJaTbmOK.js} +1 -1
- package/dist/client/assets/{auth-DXM0rgLv.js → auth-Dfx2bf9S.js} +1 -1
- package/dist/client/assets/{auth-catchall-D6YH9v93.js → auth-catchall-BzI646tE.js} +1 -1
- package/dist/client/assets/{auth-entry-n3NnpIVo.js → auth-entry-BA2dv7O1.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CabbHOl5.js → auth-split-layout-3t1_TKos.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-C_fCYd84.js → authenticate-and-persist-oauth-EuyAX3Gy.js} +1 -1
- package/dist/client/assets/{automation-list-row-BE7Mtfuu.js → automation-list-row-BK5XD6ZY.js} +1 -1
- package/dist/client/assets/{automation-runs-C__qlbXc.js → automation-runs-BekfbsHI.js} +1 -1
- package/dist/client/assets/{automations-BAFxOc2Y.js → automations-ocOVuWpR.js} +1 -1
- package/dist/client/assets/{autosend-BuzWxJ_9.js → autosend-BLYIlkXq.js} +1 -1
- package/dist/client/assets/{badge-CM9VoPn3.js → badge-9UZ-oy57.js} +1 -1
- package/dist/client/assets/{block-document-BlNqArtF.js → block-document-B5Xpou_B.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-cN8B_PL1.js → blocks-preview-workspace-context-CGoI0EUn.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DhWZqku3.js → blocks-tab-states-CNkB95lx.js} +1 -1
- package/dist/client/assets/{blog-schema-CWB6DzeS.js → blog-schema-DMB79fe6.js} +1 -1
- package/dist/client/assets/{buckets-CtjG5O0U.js → buckets-C5e8GKB5.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BscLA4ml.js → build-improve-prompt-doc-aExDV9Mz.js} +1 -1
- package/dist/client/assets/{calendar-ng2FQ19x.js → calendar-CKcdkgh5.js} +1 -1
- package/dist/client/assets/{capability-load-error-BlktRdv_.js → capability-load-error-D8AT7eAw.js} +1 -1
- package/dist/client/assets/{category-editor-BaahwiYp.js → category-editor-DDFXYf_d.js} +1 -1
- package/dist/client/assets/{chart-BWR8wMN7.js → chart-Ch4wXn1G.js} +1 -1
- package/dist/client/assets/{chat-context-CbLWEfcx.js → chat-context-tsaqCp6v.js} +1 -1
- package/dist/client/assets/{chat-draft-CqQowXE0.js → chat-draft-DeOYn8wH.js} +1 -1
- package/dist/client/assets/{checkbox-CLe06xtZ.js → checkbox-bO8ZnM7n.js} +1 -1
- package/dist/client/assets/{choose-editor-CNAJrAnR.js → choose-editor-B-1DX2pl.js} +1 -1
- package/dist/client/assets/{cli-auth-success-D6HLf98p.js → cli-auth-success-WUcj8Laj.js} +1 -1
- package/dist/client/assets/{client-icons-DYF7aeKo.js → client-icons-CJKwmsS5.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-CBbwxc0o.js → cms-settings-editor-CL1HXF3j.js} +1 -1
- package/dist/client/assets/cms-store-drafts-C_ZG08jQ.js +1 -0
- package/dist/client/assets/{collapsible-t9cEILA0.js → collapsible-CehJ-xlR.js} +1 -1
- package/dist/client/assets/{collection-detail-ByZqmhXB.js → collection-detail-w7NYTWNb.js} +1 -1
- package/dist/client/assets/{collection-display-button-B7jvkHFb.js → collection-display-button-CVOVdzmi.js} +1 -1
- package/dist/client/assets/{collection-search-DVuo1pjJ.js → collection-search-Lm88VC-w.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Cy5iDhCR.js → collection-table-wrapper-LUTykEyP.js} +1 -1
- package/dist/client/assets/{collection-tabs-DJVITgIT.js → collection-tabs-BW9NTpao.js} +1 -1
- package/dist/client/assets/{combobox-MSjb-buw.js → combobox-C8IS_aP5.js} +1 -1
- package/dist/client/assets/{command-3SMlch0Q.js → command-B42vqDSm.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-be246Qaj.js → companion-mcps-section-gN7svOR8.js} +1 -1
- package/dist/client/assets/{config-DtxU1wmQ.js → config--cZAprAj.js} +1 -1
- package/dist/client/assets/{connect-e7sohufh.js → connect-BAZtz6qy.js} +1 -1
- package/dist/client/assets/{connect-layout-CYf0yreo.js → connect-layout-FGHNVpHc.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-BT6gBx-j.js → connect-source-dialog-BlacChCY.js} +1 -1
- package/dist/client/assets/{connection-Bu1PnSek.js → connection-Brtus8mh.js} +1 -1
- package/dist/client/assets/{connection-card-twsNz0iZ.js → connection-card-CSkWTxJN.js} +1 -1
- package/dist/client/assets/{connection-detail-DzTu69ud.js → connection-detail-Dz92Js40.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B0xDJFtW.js → connection-form-helpers-CQaJSXmJ.js} +1 -1
- package/dist/client/assets/{connection-slug-CfDtYvgF.js → connection-slug-DREkgXeA.js} +1 -1
- package/dist/client/assets/{connections-DLef9v48.js → connections-BZUJ_roU.js} +1 -1
- package/dist/client/assets/{content-tab-BBa6VyOA.js → content-tab-Bc_Tg1a4.js} +3 -3
- package/dist/client/assets/{context-CUfU0IjI.js → context-2NK4t-Lg.js} +1 -1
- package/dist/client/assets/{context-menu-BsNBSqQT.js → context-menu-D-JkcRvL.js} +1 -1
- package/dist/client/assets/{context-shell-D4IkyI4F.js → context-shell-Bwve3xDx.js} +3 -3
- package/dist/client/assets/{core.esm-BWCUlskR.js → core.esm-ByTukYOF.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-C-miI-DE.js → create-organization-dialog-BIe1f-Sz.js} +1 -1
- package/dist/client/assets/{device-hint-BAl-Wimj.js → device-hint-Djy4F7LR.js} +1 -1
- package/dist/client/assets/{discover-BkKaKiee.js → discover-D050EtE3.js} +1 -1
- package/dist/client/assets/{domain-settings-m3KQ6IUr.js → domain-settings-DPbJEdjs.js} +1 -1
- package/dist/client/assets/{drawer-D47Dw-K5.js → drawer-Dijofbhl.js} +1 -1
- package/dist/client/assets/{editor-BWpbvGUJ.js → editor-BODVgWYK.js} +1 -1
- package/dist/client/assets/{editor-classes-J2Hl0Yqy.js → editor-classes-BdpfcKyR.js} +1 -1
- package/dist/client/assets/{empty-state-CibwE54W.js → empty-state-CwfRxt_B.js} +1 -1
- package/dist/client/assets/{empty-state-Z2OuiQOQ.js → empty-state-Drt9QRbX.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CY3M43Pj.js → extract-connection-data-Pe-Tip3g.js} +1 -1
- package/dist/client/assets/{feature-gate-DIw-mvZ7.js → feature-gate-2Z3FyCIy.js} +1 -1
- package/dist/client/assets/{feature-paywall-CFzfdEnd.js → feature-paywall-CpM-erQe.js} +1 -1
- package/dist/client/assets/{feedback-ACIX3HAK.js → feedback-DcWPFhR_.js} +1 -1
- package/dist/client/assets/{file-explorer-imOCcEy6.js → file-explorer-xWdf34ip.js} +1 -1
- package/dist/client/assets/{file-preview-DrvqFq0i.js → file-preview-Ca_4k6rv.js} +1 -1
- package/dist/client/assets/{file-share-button-Ck8dYa4c.js → file-share-button-DgOCZ5mM.js} +1 -1
- package/dist/client/assets/{file-type-icon-CpyvcXG2.js → file-type-icon-DiS0iV28.js} +1 -1
- package/dist/client/assets/{folder-icon-D2Q0oygq.js → folder-icon-swAD3bQU.js} +1 -1
- package/dist/client/assets/{form-Di6X4re-.js → form-CRja9i9j.js} +1 -1
- package/dist/client/assets/{general-B7NplQZY.js → general-C7SfdAAF.js} +1 -1
- package/dist/client/assets/{github-icon-CgGTVNey.js → github-icon-tpEVyIwD.js} +1 -1
- package/dist/client/assets/{home-jKie_yX3.js → home-DsrjQvGT.js} +1 -1
- package/dist/client/assets/{home-overview-B95RCjGn.js → home-overview-CMI03yPH.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-DTemoIcy.js → hosted-reconcile-BnVn2LVL.js} +1 -1
- package/dist/client/assets/{icon-button-DNR19rRF.js → icon-button-BZ9f2Pt9.js} +1 -1
- package/dist/client/assets/{index-DmZ8PTrQ.js → index-68Cr2r1N.js} +1 -1
- package/dist/client/assets/{index-CDR02Ldc.js → index-B8Pa92mK.js} +1 -1
- package/dist/client/assets/{index-CAJzXKA5.js → index-BGom2FnM.js} +1 -1
- package/dist/client/assets/{index-DjbHauib.js → index-BW7-bbk0.js} +1 -1
- package/dist/client/assets/{index-C1J7wkkB.js → index-C2wTYLQr.js} +1 -1
- package/dist/client/assets/{index-wHHWd0G4.js → index-CZXPJi4-.js} +1 -1
- package/dist/client/assets/{index-KR4p316Z.js → index-CbuCRTrW.js} +1 -1
- package/dist/client/assets/{index-B80PkxJB.js → index-CcZq_9Fb.js} +1 -1
- package/dist/client/assets/{index-CoIqGnkT.js → index-Cvc22Qvh.js} +6 -6
- package/dist/client/assets/{index-RA-jAYZL.js → index-D-DRzVEB.js} +1 -1
- package/dist/client/assets/{index-NrdVW9bX.js → index-D0G5dFqT.js} +1 -1
- package/dist/client/assets/{index-Czbh2wlZ.js → index-DQAtcq3Z.js} +1 -1
- package/dist/client/assets/{index-CDNgDa9K.js → index-Dt7ZIwRY.js} +1 -1
- package/dist/client/assets/{index-C3pJvzEE.js → index-Dw1u8oXT.js} +1 -1
- package/dist/client/assets/{index-DQFlQUCO.js → index-LnWr599j.js} +1 -1
- package/dist/client/assets/{index-Z0F9sezb.js → index-Z8XjhDCo.js} +1 -1
- package/dist/client/assets/{index-redirect-DB9ebXs9.js → index-redirect-PbFd_QHU.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DAKXTyVS.js → infiniteQueryObserver-CmujZk55.js} +1 -1
- package/dist/client/assets/{infra-billing-Dn3vHYmi.js → infra-billing-BlZrBUYP.js} +1 -1
- package/dist/client/assets/{input-oiyfOdq_.js → input-C7_FCkgY.js} +3 -3
- package/dist/client/assets/{input-8jGMlXl7.js → input-D6ZRMHIB.js} +1 -1
- package/dist/client/assets/{integration-icon-DwBMZgrw.js → integration-icon-DMt85Vdd.js} +1 -1
- package/dist/client/assets/{jira-icon-IS61wuXe.js → jira-icon-C0C7R9Uf.js} +1 -1
- package/dist/client/assets/{label-Cz3ISXTG.js → label-RB5C5N6z.js} +1 -1
- package/dist/client/assets/{layout-CqB0N585.js → layout-CBfnb3CZ.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CEAUs1Ab.js → legacy-agents-deep-zWqSTSjP.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-ByWdLVJx.js → legacy-main-redirect-BZlpoESe.js} +1 -1
- package/dist/client/assets/library-pMQg4GCR.js +1 -0
- package/dist/client/assets/{library-tab-BAPbFjTT.js → library-tab-C7gKe5iN.js} +1 -1
- package/dist/client/assets/{login-yJ2gJF93.js → login-D9zRzHBo.js} +1 -1
- package/dist/client/assets/{markdown-BzJtnofQ.js → markdown-HhU9_nSI.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BrjPpO12.js → mcp-app-renderer-DeLjk14w.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DseEuoup.js → mcp-oauth-C-i6IZ7F.js} +1 -1
- package/dist/client/assets/{mcp-oauth-O8kCHxpg.js → mcp-oauth-DLwsgkOm.js} +1 -1
- package/dist/client/assets/{members-3k5dxXet.js → members-DocomT72.js} +1 -1
- package/dist/client/assets/{memory-BamorpT0.js → memory-BP3-K3oo.js} +1 -1
- package/dist/client/assets/{mock-board-scAFzBl7.js → mock-board-CoWf0eSd.js} +3 -3
- package/dist/client/assets/{monaco-editor-DOFMDCyC.js → monaco-editor-oUmtqDLR.js} +1 -1
- package/dist/client/assets/{monitoring-DjJ3TtUM.js → monitoring-DKfNSCeR.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BUfFJFpo.js → monitoring-stats-row-XSvwSWAi.js} +1 -1
- package/dist/client/assets/{multi-select-DfedcXqi.js → multi-select-CISJC82c.js} +1 -1
- package/dist/client/assets/{mustache-C2jWivSN.js → mustache-D4zVU9iA.js} +1 -1
- package/dist/client/assets/{named-rule-view-BKpXrbcs.js → named-rule-view-BTwHmZ5L.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CYkZ_7Mu.js → new-project-dialog-BA0jmhgS.js} +1 -1
- package/dist/client/assets/{oauth-callback-YciRSKJB.js → oauth-callback-C1NevZMJ.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C-QzMEVu.js → oauth-callback-ai-provider-BJwoy8qA.js} +1 -1
- package/dist/client/assets/{oauth-consent-X72D0Xq8.js → oauth-consent-BTT41r6l.js} +1 -1
- package/dist/client/assets/{onboarding-DLH1z-Ha.js → onboarding-C2uIwwWY.js} +1 -1
- package/dist/client/assets/{openai-conversation-DUFicgp3.js → openai-conversation-pUSF1vof.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BGyFPmWx.js → optimistic-project-sidebar-views-BnUNFsLR.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BEhzJJLC.js → order-monitor-day-BzMajB7Y.js} +1 -1
- package/dist/client/assets/{organization-choice-sGtkKPK1.js → organization-choice-5ra3ZqkQ.js} +1 -1
- package/dist/client/assets/{orgs-DzNGZq3U.js → orgs-ZeqGcjOU.js} +1 -1
- package/dist/client/assets/{own-accounts-section-BpXuuW62.js → own-accounts-section-Dd8ELrvu.js} +1 -1
- package/dist/client/assets/{pair-DRdkhABe.js → pair-Bx1LbJmC.js} +1 -1
- package/dist/client/assets/{parse-sections-DpGddWrT.js → parse-sections-BTDQNPKy.js} +3 -3
- package/dist/client/assets/{plan-Cs7MSJD8.js → plan-bz8_rmrJ.js} +1 -1
- package/dist/client/assets/{plan-ladder-D5AQfuNm.js → plan-ladder-CZUMQESY.js} +1 -1
- package/dist/client/assets/{plan-usage-card-dKMEumDo.js → plan-usage-card-SygAb3OS.js} +1 -1
- package/dist/client/assets/{popover-C20V6lAt.js → popover-D5YX99Kp.js} +1 -1
- package/dist/client/assets/{post-calendar-bcG8oRix.js → post-calendar-BIBU13NF.js} +1 -1
- package/dist/client/assets/{post-editor-DzpUG7aB.js → post-editor-BAf1z147.js} +1 -1
- package/dist/client/assets/{preview-content-RCgFW_sl.js → preview-content-TDEad-bh.js} +1 -1
- package/dist/client/assets/{preview-dialog-rActp1mK.js → preview-dialog-BkHpQdXG.js} +1 -1
- package/dist/client/assets/{preview-panel-CRI13pwa.js → preview-panel-DduOnxXk.js} +1 -1
- package/dist/client/assets/{preview-tab-Cos61Cco.js → preview-tab-Cgfndmyh.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-C2osTe5y.js → product-picker-dialog-DDkB9ByB.js} +1 -1
- package/dist/client/assets/{profile-CfiCAfn9.js → profile-DHJVxDvo.js} +1 -1
- package/dist/client/assets/{project-app-view-8qcY_2-I.js → project-app-view-BfcPf6du.js} +1 -1
- package/dist/client/assets/{project-apps-DedVk-Nz.js → project-apps-Bny6_T2A.js} +1 -1
- package/dist/client/assets/{project-icon-Uszb7VXV.js → project-icon-eZOGIGwj.js} +1 -1
- package/dist/client/assets/{project-index-DxnUyMmA.js → project-index-BSMjLbxc.js} +1 -1
- package/dist/client/assets/project-reports-BzA8d8hO.js +1 -0
- package/dist/client/assets/{project-sidebar-views-Deemwf6B.js → project-sidebar-views-CrRbPbLq.js} +1 -1
- package/dist/client/assets/project-tasks-BCE2SgoF.js +1 -0
- package/dist/client/assets/{projects-DgaT7j1o.js → projects-D7HB1QKY.js} +1 -1
- package/dist/client/assets/{projects-empty-state-B9m6wSpL.js → projects-empty-state-DBWek16Y.js} +1 -1
- package/dist/client/assets/{prompts-DRqjf0OJ.js → prompts-MMmII7eb.js} +1 -1
- package/dist/client/assets/record-editor-DVouiUmR.js +1 -0
- package/dist/client/assets/{redirect-editor-BlBkzrUB.js → redirect-editor-cm3-huyu.js} +1 -1
- package/dist/client/assets/reports-BHAVwnBG.js +1 -0
- package/dist/client/assets/{reports-BxHeWjsA.js → reports-D0VzI1C_.js} +1 -1
- package/dist/client/assets/{reports-onboarding-BF03h6Lz.js → reports-onboarding-DonafHiF.js} +1 -1
- package/dist/client/assets/{reports-tab-C8lpsYgo.js → reports-tab-Wl9IyKm6.js} +2 -2
- package/dist/client/assets/{repositories-vjVPQ6I9.js → repositories-9kTJbSW8.js} +1 -1
- package/dist/client/assets/repositories-bPxFm30V.js +1 -0
- package/dist/client/assets/{repository-binding-CyaIIWjt.js → repository-binding-B7A7NBUB.js} +1 -1
- package/dist/client/assets/{repository-picker-ERyaEscX.js → repository-picker-CI7xSsin.js} +1 -1
- package/dist/client/assets/{require-capability-DrZOeXFb.js → require-capability-BTBUQsVM.js} +1 -1
- package/dist/client/assets/{required-auth-layout-OBk7IzAK.js → required-auth-layout-ClYF4eFR.js} +1 -1
- package/dist/client/assets/{reset-password-DDidguVk.js → reset-password-Ah3K7D-l.js} +1 -1
- package/dist/client/assets/{resizable-CHAafS5W.js → resizable-DzzgKGKP.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DwPVAW_f.js → resolve-tab-icon-DMbVCUvi.js} +1 -1
- package/dist/client/assets/{review-settings-bYHupYo-.js → review-settings-Fxdols3J.js} +1 -1
- package/dist/client/assets/{role-color-BSeNtGi1.js → role-color-CEkb11P4.js} +1 -1
- package/dist/client/assets/{roles-BJ9XswSj.js → roles-CqJ0hOtT.js} +1 -1
- package/dist/client/assets/route-BA7jjOjA.js +1 -0
- package/dist/client/assets/{route-D1kSARK4.js → route-DGCMYgfH.js} +1 -1
- package/dist/client/assets/route-DJbiUXJl.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-DPyi5-UY.js → sandbox-lifecycle-context-WaQV2LhH.js} +1 -1
- package/dist/client/assets/{schema-BR70Vo5Y.js → schema-BH82js-o.js} +1 -1
- package/dist/client/assets/{schema-y4LFWED4.js → schema-DHahXPsT.js} +1 -1
- package/dist/client/assets/{scroll-area-DbCNV5xq.js → scroll-area-BN87AboJ.js} +1 -1
- package/dist/client/assets/{search-input-Bx2x3uO8.js → search-input-BBYghT-z.js} +1 -1
- package/dist/client/assets/{search-toggle-NGIVu4q_.js → search-toggle-pLnMgrhP.js} +1 -1
- package/dist/client/assets/{secret-picker-DUPig2Xn.js → secret-picker-DWWFQJzg.js} +1 -1
- package/dist/client/assets/{secrets-BZFZm3tO.js → secrets-CM4b3_qA.js} +1 -1
- package/dist/client/assets/{sections-DP49hK6v.js → sections-CgO1w_IT.js} +1 -1
- package/dist/client/assets/{sections-editor-C4o9LGck.js → sections-editor-Uk83RbMN.js} +1 -1
- package/dist/client/assets/{select-DR3RwfpI.js → select-GzsOSPza.js} +1 -1
- package/dist/client/assets/{select-model-BfVgSLS5.js → select-model-BU2ssn1V.js} +1 -1
- package/dist/client/assets/{seo-editor-B0kA-535.js → seo-editor-dMXY0ofk.js} +1 -1
- package/dist/client/assets/{separator-DZpsLNey.js → separator-CuwdHpjW.js} +1 -1
- package/dist/client/assets/settings-tab-FvtSSyQC.js +1 -0
- package/dist/client/assets/{sheet-C0gthVwC.js → sheet-BIQm-3An.js} +1 -1
- package/dist/client/assets/{shell-layout-BN9dcRYV.js → shell-layout-CH0j9rog.js} +1 -1
- package/dist/client/assets/site-draft-view-C74WkBDm.js +3 -0
- package/dist/client/assets/site-editor-CazX9Ijc.js +1 -0
- package/dist/client/assets/{site-editor-toast-VaN8V1I2.js → site-editor-toast-DrW9VMK5.js} +1 -1
- package/dist/client/assets/{skills-CrNoAgQg.js → skills-C71x-yhC.js} +1 -1
- package/dist/client/assets/{slider-C-TEQZK0.js → slider-BTgIuWj6.js} +1 -1
- package/dist/client/assets/{sortable.esm-BYS1QaMo.js → sortable.esm-Dd1EVaQb.js} +1 -1
- package/dist/client/assets/{sso-BK4lPlbr.js → sso-BfwIPTh8.js} +1 -1
- package/dist/client/assets/{suggestion-BGsc91Hz.js → suggestion-CsEyXKDY.js} +1 -1
- package/dist/client/assets/{switch-CzTsDB3z.js → switch-BRZA_xq0.js} +1 -1
- package/dist/client/assets/{synced-repos-DBjP4HMv.js → synced-repos-Do7bESqI.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DE2TUhh7.js → tab-icon-glyph-BsVyyg_A.js} +1 -1
- package/dist/client/assets/{table-B-mHKzHC.js → table-DJd8n4EY.js} +1 -1
- package/dist/client/assets/{tabs-W2tygsn9.js → tabs-D5AMuciq.js} +1 -1
- package/dist/client/assets/{task-board-dajPV_XW.js → task-board-DN88kD7h.js} +1 -1
- package/dist/client/assets/{task-route-GeZcjNWN.js → task-route-4C0M-4XY.js} +1 -1
- package/dist/client/assets/{task-status-TTxT6L0h.js → task-status-B2JNuBbQ.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-pPV1Wqb4.js → taskboard-analytics-D_AXxVNg.js} +1 -1
- package/dist/client/assets/tasks-BlrmxtrG.js +1 -0
- package/dist/client/assets/{tasks-eMCDmtbp.js → tasks-dMEgvkta.js} +1 -1
- package/dist/client/assets/{textarea-DH4lLGjS.js → textarea-D7HQlMVo.js} +1 -1
- package/dist/client/assets/{thread-analytics-CfsCF0qC.js → thread-analytics-BQjHh_yV.js} +1 -1
- package/dist/client/assets/{thread-intent-DsvstIYH.js → thread-intent-Bs-Q7fma.js} +1 -1
- package/dist/client/assets/{thread-route-SXxESRM6.js → thread-route-B44higRI.js} +1 -1
- package/dist/client/assets/{thread-route-D2x3lEXe.js → thread-route-C-uX4C4C.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DJsgTtYx.js → thread-sheet-body-BNo76_XD.js} +1 -1
- package/dist/client/assets/{time-range-picker-CFjr88ku.js → time-range-picker-D4sglVBw.js} +1 -1
- package/dist/client/assets/{toggle-group-CtP6sNQ9.js → toggle-group-BBgjmF6C.js} +1 -1
- package/dist/client/assets/{tool-namespace-CNnPmHfP.js → tool-namespace-l4eN7YZ5.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CnipdprK.js → tool-set-selector-Bi-Sw2KD.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-1M1cEETB.js → toolbar-icon-button-nrUHQe-I.js} +1 -1
- package/dist/client/assets/{tooltip-DycNDw2G.js → tooltip-C0GWPsi8.js} +1 -1
- package/dist/client/assets/{tooltipContext-BIhnjJZf.js → tooltipContext-DdEokZtY.js} +1 -1
- package/dist/client/assets/{track-BCTe4eN0.js → track-29FVOdFL.js} +1 -1
- package/dist/client/assets/{types-CUZBmViJ.js → types-DKuFfsqr.js} +1 -1
- package/dist/client/assets/{url-slug-DOp56bVw.js → url-slug-5t39ocbn.js} +1 -1
- package/dist/client/assets/{usage-stats-DZlhabNT.js → usage-stats-CHeI7dPd.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CT41YQMU.js → use-ai-providers-BbVlPdZd.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BBYkq507.js → use-apply-named-rule-CnOcORn0.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-Cp_wqFIx.js +1 -0
- package/dist/client/assets/{use-automations-DW8dHpTW.js → use-automations-BoyfX_H0.js} +1 -1
- package/dist/client/assets/{use-autosave-Ckpm_M6m.js → use-autosave-CZD-Fkyk.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-PWVkseE_.js → use-chat-layout-state-BC5WrKKn.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-D2RPgS1y.js → use-cms-publish-actions-BbDVRUuf.js} +1 -1
- package/dist/client/assets/{use-connect-companion-AM_jLP9g.js → use-connect-companion-DEAJWvqA.js} +1 -1
- package/dist/client/assets/{use-connection-Bc88fzeR.js → use-connection-Dqyf1wn8.js} +1 -1
- package/dist/client/assets/{use-content-sync-xOHgSIER.js → use-content-sync-vr73v2b2.js} +1 -1
- package/dist/client/assets/{use-copy-BR702L1I.js → use-copy-BGfQrJIh.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-SZQhS1cr.js → use-date-fns-locale-C4jbLuwI.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DhCDTrxW.js → use-debounced-autosave-BrjHHNNB.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DlRWnR28.js → use-debounced-value-BF84eZeF.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BmrhY51W.js → use-deco-credits-MCc3vHir.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BHP9on7q.js → use-decopilot-events-uSeDcfUe.js} +1 -1
- package/dist/client/assets/{use-delete-connection-a41JhfA0.js → use-delete-connection-CLe-XFxn.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BhTKxM6k.js → use-deployment-admin-ShnoFTNr.js} +1 -1
- package/dist/client/assets/{use-entitlements-DU-An4VI.js → use-entitlements-wE65MYfi.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Bq8X4SK6.js → use-fast-preview-draft-url-BmUgrEyk.js} +1 -1
- package/dist/client/assets/{use-file-configs-CGfkm6PJ.js → use-file-configs-D9BR1kJU.js} +1 -1
- package/dist/client/assets/{use-id-selection-CMyoYtHh.js → use-id-selection-BcfcmGZl.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-B0e0cq4F.js → use-inbox-feed-EYADn16y.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Camm6qqR.js → use-infinite-scroll-Ds1Wd1cw.js} +1 -1
- package/dist/client/assets/{use-join-requests-BIAFYC5s.js → use-join-requests-CkWiAH0i.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-Be64FM8O.js → use-main-panel-tabs-DTMcBtUc.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DBPe1KW6.js → use-mcp-auth-status-DhFx8XVQ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DuvY0YQh.js → use-mcp-client-BfCmeMHR.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DGMojcFt.js → use-mcp-prompts-DoojBZhS.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dt1w2efB.js → use-mcp-tools-DwTtnjNb.js} +1 -1
- package/dist/client/assets/{use-mobile-CQqLe5Fj.js → use-mobile-C1stVK0E.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DavDm8qw.js → use-move-blocks-Bclcq-Qe.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BP-fuYpJ.js → use-navigate-to-agent-D2d0cpFU.js} +1 -1
- package/dist/client/assets/{use-org-fs-DwzY3jVQ.js → use-org-fs-DHnEDbF9.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CtTPlokI.js → use-org-repo-syncs-CcoLGdUP.js} +1 -1
- package/dist/client/assets/{use-org-sso-B3MWcxrY.js → use-org-sso-d82WgyRM.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CZAS8Fwc.js → use-organization-settings-a6mUKPHv.js} +1 -1
- package/dist/client/assets/{use-project-scope-C2qD7yC0.js → use-project-scope-C0EKXyqg.js} +1 -1
- package/dist/client/assets/{use-recent-apps-D7w2xW8F.js → use-recent-apps-DEMyNf2W.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BH1du4EA.js → use-reports-diagnostic-rjeHGSYu.js} +1 -1
- package/dist/client/assets/{use-secrets-Cw3WgXHF.js → use-secrets-CifnNbah.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BHjsGtU7.js → use-section-preview-base-SkN8HQaB.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Cx7HQy1d.js → use-sidebar-collapsed-DwcGl0-e.js} +1 -1
- package/dist/client/assets/{use-tags-qkt7D6HU.js → use-tags-CgXVAtG9.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CBMwXJ9I.js → use-task-board-analytics-BTZNDNnK.js} +1 -1
- package/dist/client/assets/{use-task-board-events-B5PJHCY3.js → use-task-board-events-DCguN7A5.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CvmHZRRv.js → use-task-board-item-prs-CnqmEndd.js} +1 -1
- package/dist/client/assets/{use-task-board-items-e9YgnV6R.js → use-task-board-items-BmpaMZkF.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-jxu88jn3.js → use-task-board-prompts-DdSO4gLi.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DmUyAx53.js → use-task-metadata-D3xqf4sH.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DiVqGaU9.js → use-thread-outputs-D6sQTVJo.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-P9--kf7E.js +1 -0
- package/dist/client/assets/{useQueries-CiCIRDU-.js → useQueries-BuMODvFG.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C2ZhOGvp.js +1 -0
- package/dist/client/assets/{users-juR-Mf-x.js → users-Ct3PwBMT.js} +1 -1
- package/dist/client/assets/{utils-DsMBpUcw.js → utils-DA49HMaO.js} +1 -1
- package/dist/client/assets/{variant-calendar-D0VBOg4q.js → variant-calendar-CPtUMCAS.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-TIETIQ4W.js → variant-matcher-override-DnlLYEoa.js} +1 -1
- package/dist/client/assets/{view-header-BupmkwFn.js → view-header-CAO18iqy.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DqDEHqCs.js → virtual-mcp-C4mAz3N8.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DwGCR27q.js → watch-sse-pool-BI4P-Lkx.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-B3LTC-z6.js +0 -1
- package/dist/client/assets/agent-calendar-CUj5ygBN.js +0 -1
- package/dist/client/assets/agent-deck-B2XAonlC.js +0 -1
- package/dist/client/assets/agent-library-CnjQ4-dS.js +0 -1
- package/dist/client/assets/agent-library-file-DORygQ2_.js +0 -1
- package/dist/client/assets/agent-overview--DJQfkWj.js +0 -1
- package/dist/client/assets/agent-settings-LC6lUh-Z.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CLPv9-CF.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DnCCavW0.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-B7zbGUx6.js +0 -1
- package/dist/client/assets/agent-view-CAp5PQrn.js +0 -1
- package/dist/client/assets/api-keys-gr-XS1eV.js +0 -1
- package/dist/client/assets/branch-name-D4VItpp3.js +0 -1
- package/dist/client/assets/library-DRjhGmVa.js +0 -1
- package/dist/client/assets/project-reports-BiRpC0Ut.js +0 -1
- package/dist/client/assets/project-tasks-DNAB3dSd.js +0 -1
- package/dist/client/assets/record-editor-Dyz0HnM9.js +0 -1
- package/dist/client/assets/reports-Df12mzuV.js +0 -1
- package/dist/client/assets/repositories-BRECfYRM.js +0 -1
- package/dist/client/assets/route-CDiHNgIq.js +0 -1
- package/dist/client/assets/route-CJdkN5-r.js +0 -1
- package/dist/client/assets/settings-tab-CbWALbd6.js +0 -1
- package/dist/client/assets/site-draft-view-DACL5z9x.js +0 -3
- package/dist/client/assets/site-editor-BI3RzfpH.js +0 -1
- package/dist/client/assets/tasks-CdHhNSUE.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CuTdZYOa.js +0 -1
- package/dist/client/assets/useInfiniteQuery-FqvtVI1A.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bp4UXIRf.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bf as z,c as fe,q as Jt,K as dt,i as Zt,a3 as er,fC as tr,fD as ve,bH as ct,bK as rr,bJ as re,c5 as Ne,fE as Fe,b7 as mt,b8 as gt,fF as We,bF as ne,bA as _e,bz as nr,fG as ir,bS as or,fH as sr,fg as ar,bL as be,bX as cr,fI as lr,bE as ht,bV as vt,bC as fr,bW as ur,bR as pr,bY as yr,b as Te,a5 as dr,j as $,B as qe,L as mr,h as gr,a8 as hr}from"./index-CoIqGnkT.js";import{c as vr,o as _r,u as br,S as Tr,ae as Ar,az as Sr,aA as Rr,aB as kr,x as Or,q as Er}from"./site-editor-toast-VaN8V1I2.js";import{a as Pr}from"./input-oiyfOdq_.js";import{i as jr}from"./AlertCircle-DlXniLTL.js";import{aO as _t}from"./agent-icon-qder0a6G.js";import{E as Ye}from"./empty-state-Z2OuiQOQ.js";const ae="https://docs.decocms.com/storefront/blocks",Wn={quickstart:`${ae}/next/quickstart`,siteEditor:`${ae}/next/site-editor#edit-on-your-machine`,serve:`${ae}/next/cli#deco-serve`,schema:`${ae}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${ae}/next/troubleshooting#site-editor`},qn="https://github.com/decocms/blocks/tree/main/.agents/skills/deco-site-workflow",K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},Ae=["experiments","campaigns"];function Yn(e){return K[e]}const zn=Ae.map(e=>K[e].blockKey);function wr(e){for(const t of Ae)if(K[t].matcher===e)return t;return null}function Qn(e){for(const t of Ae)if(K[t].resolveType===e)return t;return null}function Gn(e){for(const t of Ae)if(K[t].blockKey===e)return t;return null}const Br="deco";function Hn(e,t){if(!z(e))return"missing";const r=K[t],n=lt(e,r.resolveType),i=lt(e,r.matcher);if(!n||!i)return"missing";const o=s=>s.namespace===void 0||s.namespace===Br;return o(n)&&o(i)?"available":"replaced"}function lt(e,t){const r=e?.manifest?.blocks??{};for(const n of Object.values(r))if(n&&Object.hasOwn(n,t))return n[t]??{};return null}function ft(e,t){const r=K[t],n=Object.hasOwn(e,r.blockKey)?e[r.blockKey]:void 0;if(n==null)return{kind:"absent",block:{__resolveType:r.resolveType},values:Object.create(null),invalid:[]};const i=ue(n)?n.__resolveType:void 0;if(i!==r.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=n,s=Object.create(null),c=[];for(const[f,h]of Object.entries(o)){if(f==="__resolveType")continue;const _=t==="experiments"?xr(h):$r(h);_===null?c.push(f):s[f]=_}return{kind:"saved",block:o,values:s,invalid:c}}function Xn(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function Mr(e){const t=ft(e,"experiments"),r=ft(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:r.kind==="conflict"?{}:r.values}}function xr(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function $r(e){if(!ue(e))return null;const t={};for(const r of["start","end"]){const n=e[r];if(!(n==null||n==="")){if(typeof n!="string")return null;t[r]=n}}return t}function Jn(e){return e<=0?"off":e>=100?"everyone":"running"}function Zn(e){if(!ue(e))return null;const t=wr(e.__resolveType);if(!t)return null;const r=e[K[t].field];return typeof r=="string"?{kind:t,name:r}:null}function ei(e,t){const r=K[e];return{__resolveType:r.matcher,[r.field]:t}}const Lr="date";function ti(e){return ue(e)&&e.__resolveType===Lr&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function ri(e,t,r,n){return{...e,__resolveType:K[t].resolveType,[r]:n}}function ni(e,t){if(t==="__resolveType")return e;const{[t]:r,...n}=e;return n}function ue(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Cr(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 Dr=5e3,Ir=new Map;async function Ur(e,t,r=Ir){const n=new URL("/live/_meta",e).href,i=r.get(e),o=i==="refused"?void 0:t?.etag,s=await fetch(n,{cache:"no-store",headers:o?{"If-None-Match":o}:{}}).catch(()=>null),c=!s&&!!o&&i===void 0,f=c?await fetch(n,{cache:"no-store",headers:{}}).catch(()=>null):s;if(o&&(c&&f?r.set(e,"refused"):s&&r.set(e,"ok")),t&&(!f||f.status===304))return t;if(!f?.ok)return null;try{return await f.json()}catch{return null}}function Vr(e){return dt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function ii(e,t){const r=fe.c(30),{url:n}=vr(e?.virtualMcpId),i=!!n,o=i||(t?.fetchEnabled??!0),s=n??e?.previewUrl,c=_r(e?.virtualMcpId),{previewServerUrl:f,runtime:h}=Pr(e?.virtualMcpId),_=!i&&h==="cms",R=br(e?.virtualMcpId,e?.branch),P=R.kind==="protocol"?R:null,Q=Jt(),N=Tr(e??null);let W;r[0]!==e||r[1]!==s||r[2]!==f||r[3]!==P?(W=e?P?Ar(e,P):Vr({...e,previewUrl:s,productionUrl:f}):dt.liveMeta(""),r[0]=e,r[1]=s,r[2]=f,r[3]=P,r[4]=W):W=r[4];const j=W;let D;r[5]!==R.kind||r[6]!==N||r[7]!==_||r[8]!==o||r[9]!==i||r[10]!==c||r[11]!==e||r[12]!==s||r[13]!==f||r[14]!==P||r[15]!==Q||r[16]!==j?(D=async()=>{if(P){const{meta:d}=await Sr(Q,P,e,N);if(d instanceof Error)throw d;return d}if(R.kind==="unavailable")throw Rr("live meta");const G=()=>_?kr(e):Or(e,Er(c,".deco/meta.gen.json")),a=i&&s?[{kind:"live",baseUrl:s}]:Cr({fetchEnabled:o,previewUrl:s,productionUrl:f,fastPreviewActive:_});for(const d of a){if(d.kind==="committed"){const O=await G();if(O.kind==="data")return O.data;continue}const l=Q.getQueryData(j),B=await Ur(d.baseUrl,i||l?.etag?l: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},r[5]=R.kind,r[6]=N,r[7]=_,r[8]=o,r[9]=i,r[10]=c,r[11]=e,r[12]=s,r[13]=f,r[14]=P,r[15]=Q,r[16]=j,r[17]=D):D=r[17];const q=!!e&&R.kind!=="pending",M=P?!1:i?Dr:t?.refetchInterval,ee=P?!1:void 0,oe=P?P.describe.pollIntervalMs:3e5;let F;r[18]!==_||r[19]!==i||r[20]!==P?(F=(G,a)=>(P||_||i||a.status!==502)&&G<3,r[18]=_,r[19]=i,r[20]=P,r[21]=F):F=r[21];let Y;return r[22]!==j||r[23]!==D||r[24]!==q||r[25]!==M||r[26]!==ee||r[27]!==oe||r[28]!==F?(Y={queryKey:j,queryFn:D,enabled:q,refetchInterval:M,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:oe,retry:F,retryDelay:Kr},r[22]=j,r[23]=D,r[24]=q,r[25]=M,r[26]=ee,r[27]=oe,r[28]=F,r[29]=Y):Y=r[29],Zt(Y)}function Kr(e){return er(5e3,1e3,e,2,0)}const Nr=new Set(["split-traffic","calendar"]);function Fr(e){const r=e.properties?.__resolveType?.enum;return Array.isArray(r)&&typeof r[0]=="string"?r[0]:""}const Wr=12,qr=8,xe=32,Yr=40,ut="__SECTION_REF__";function me(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function pt(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const i=r.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const zr="VideoWidget";function Z(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function bt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function ze(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Qe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Tt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Se(e,t){const r=t.manifest?.blocks??{};for(const c of Object.values(r))if(c[e])return c[e];const n=ze(e)??Qe(e);if(n){for(const c of Tt(n.vendor,n.app))for(const f of Object.values(r))if(f[c])return f[c]}const i=bt(e);for(const c of Object.values(r))if(c[i])return c[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function oi(e,t){return Object.keys(Se(e,t)).length>0}function At(e,t){if(tr(e,t))return!0;const r=ze(t)??Qe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(Tt(r.vendor,r.app).some(s=>s in n))return!0;const i=bt(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function Qr(e){return e==="site/apps/site.ts"?!1:ze(e)!==null||Qe(e)!==null}function St(e,t){return Rt(t,{resolveType:e})}function si(e,t){return Rt(t,{ref:e})}function Rt(e,t){const r=e.schema??{},n="resolveType"in t?Se(t.resolveType,e):{},i=r.$defs??r.definitions??{},o=r.root??{},s=a=>{if(a.startsWith("#/root/")){const l=a.slice(7);return o[l]??{}}const y=a.split("/").pop()??"",d=i[y];return d||(y===ut?o.sections??{}:{})};let c;typeof n.$ref=="string"?c=s(n.$ref):Object.keys(n).length>0?c=n:c=r;const f=a=>typeof a.$ref=="string"?s(a.$ref):a,h=a=>{const d=f(a).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]}},_=(a,y)=>{const d=f(a);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},R=(a,y=new Set)=>{if(typeof a.$ref!="string"||a.properties||a.anyOf||a.allOf||a.oneOf||a.type)return a;const d=a.$ref.split("/").pop()??"";return!d||y.has(d)?a:R(s(a.$ref),new Set([...y,d]))},P=(a,y=new Set)=>{if(typeof a.$ref!="string")return!1;const d=a.$ref.split("/").pop()??"";return a.$ref==="#/root/sections"||d===ut?!0:!d||y.has(d)?!1:P(s(a.$ref),new Set([...y,d]))},Q=a=>{const y=a.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},N=a=>Q(a)!==void 0,W=(a,y=new Set)=>{if(typeof a.$ref!="string")return[];const d=a.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const l=s(a.$ref),B=l.anyOf??l.oneOf;if(!Array.isArray(B))return[];const O=new Set([...y,d]);return B.flatMap(x=>N(x)?[x]:W(x,O))},j=a=>{const y=a.hide;return y===!0||y==="true"},D=a=>typeof a=="string"&&(a.includes("://")||!/\s/.test(a)&&(a.includes("|")||a.includes("&")||a.includes("@"))),q=(a,y=new Set,d=0)=>{if(d>Wr)return{};if(typeof a.$ref=="string"){const B=a.$ref.split("/").pop()??"";return y.has(B)?{}:q(s(a.$ref),new Set([...y,B]),d+1)}let l={};a.properties&&typeof a.properties=="object"&&(l={...l,...a.properties}),Array.isArray(a.required)&&(l.__required=[...Z(l.__required),...Z(a.required)]);for(const B of["allOf","anyOf","oneOf"]){const O=a[B];if(Array.isArray(O))for(const x of O){const I=Z(l.__required),H=q(x,y,d+1);l={...l,...H};const C=B==="allOf"?[...I,...Z(H.__required)]:I;C.length>0?l.__required=C:delete l.__required}}return l},M=(a,y=0,d=new Set)=>{let l=a,B;if(typeof a.$ref=="string"){l=s(a.$ref);const E=a.$ref.split("/").pop()??"";B=E,E===zr&&!l.format&&(l={...l,format:"video-uri"})}l=R(l);const O=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,I=(E,m,A,k=!0)=>!O&&(!k||A<=Yr)&&m<qr?M(E,m,x):void 0;let H;{const E=l.anyOf??l.oneOf;if(Array.isArray(E)){const m=E.filter(k=>!(k.type==="null"||k.type===null)),A=k=>{if(typeof k.const=="string"||typeof k.const=="number")return k.const;if(Array.isArray(k.enum)&&k.enum.length===1&&(typeof k.enum[0]=="string"||typeof k.enum[0]=="number"))return k.enum[0]};m.length>0&&m.every(k=>A(k)!==void 0)&&(H=m.map(k=>A(k)))}}let C,se,tt=!1;if(l.type)C=Array.isArray(l.type)?String(l.type.find(E=>E!=="null")??l.type[0]):String(l.type);else if(l.anyOf||l.oneOf){const m=(l.anyOf??l.oneOf).filter(A=>!(A.type==="null"||A.type===null));if(m.length===0)C="null";else if(m.length===1){const A=m[0];se=A,C=A.type?Array.isArray(A.type)?String(A.type[0]):String(A.type):typeof A.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof a[p]=="string"?a[p]:typeof l[p]=="string"?l[p]:void 0;return{type:"string",title:typeof l.title=="string"?l.title:void 0,description:typeof l.description=="string"?l.description:void 0,enum:H,format:u("format"),options:u("options")}}const A=m.filter(N),k=P(a)||m.some(u=>P(u))||void 0,U=m.map(u=>R(u)).find(me),je=u=>{if(typeof u.$ref!="string")return;const p=R(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const v=[...g.filter(N),...g.filter(b=>!N(b)).flatMap(b=>W(b))],w=g.filter(b=>{if(N(b)||b.type==="null")return!1;const L=f(b),V=L.properties;return!V?.__resolveType&&!L.anyOf&&!L.oneOf&&(L.type==="object"||!!V)});return v.length>0&&w.length>0?{data:w,loaders:v}:void 0},de=m.flatMap(u=>{const p=je(u);return p?[p]:[]}),zt=de.length===0&&m.filter(u=>!me(R(u))).every(u=>typeof u.$ref=="string"||A.includes(u)),Qt=A.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===ve||z(e)&&p[0]==="multivariate")}),we=(u=[])=>{const p=new Map;for(const S of[...A,...m.filter(T=>!A.includes(T)).flatMap(T=>W(T)),...u]){const T=Q(S);T&&!p.has(T)&&p.set(T,S)}const g=[...p].map(([S,T])=>({resolveType:S,title:typeof T.title=="string"?T.title:re(S),description:typeof T.description=="string"?T.description:void 0,schema:I(T,y+1,p.size)})),v=[];for(const S of m){if(A.includes(S)||typeof S.$ref!="string")continue;const T=s(S.$ref);let X;const J=T.properties?.__resolveType;if(Array.isArray(J?.enum)&&typeof J.enum[0]=="string"&&(X=J.enum[0]),!X&&Array.isArray(T.allOf))for(const Xt of T.allOf){const Me=Xt.properties?.__resolveType?.enum;if(Array.isArray(Me)&&typeof Me[0]=="string"){X=Me[0];break}}X&&v.push({resolveType:X,title:typeof T.title=="string"&&!T.title.startsWith("#")?T.title:re(X),description:typeof T.description=="string"?T.description:void 0,schema:I(T,y+1,m.length)})}const w=new Set(g.map(S=>S.resolveType)),b=[...g,...v.filter(S=>!w.has(S.resolveType))],L=m.filter(S=>!A.includes(S)),V=L.length===1&&!O?M(L[0],y+1,x):void 0;return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:void 0,description:typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:void 0,anyOfRefs:b,acceptsAnySection:k,plainSchema:V,hidden:j(l)||j(a)?!0:void 0}};if(U){const u=!pt(U,s);if(u&&de.length>0){const p=typeof a.title=="string"?a.title:typeof l.title=="string"&&!D(l.title)?l.title:void 0,g=typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:void 0,v=m.find(b=>me(R(b))),w=de.flatMap(b=>b.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((b,L)=>({title:_(b,`Option ${L+1}`),schema:M(b,y+1,x)})),{title:_(v,`Option ${w.length+1}`),schema:M(U,y+1,x)}],loaderRef:{...we(de.flatMap(b=>b.loaders)),title:p,description:g},hidden:j(l)||j(a)?!0:void 0}}if(u&&m.length>1&&zt){const p=M(U,y+1,x),g=typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:p.title,v=typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:p.description;return{...p,type:"array",title:g,description:v,loaderRef:A.length>0?{...we(),title:g,description:v}:void 0}}if(Qt){const p=M(U,y+1,x);return{...p,type:"array",title:typeof l.title=="string"?l.title:p.title,description:typeof l.description=="string"?l.description:p.description}}}if(A.length>0)return we();const it=u=>{const p=f(u);if(typeof p.title=="string"&&ct(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 v of p.allOf){const w=v.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},ot=m.map(u=>h(u));if(m.length>1&&ot.every(u=>typeof u=="string")&&!m.some(it)){const u=m.map((p,g)=>{const v=f(p),w=ot[g];return{resolveType:w,title:_(p,w),description:typeof v.description=="string"?v.description:void 0,discriminatorValue:w,discriminatorRequired:[v,...v.allOf??[]].some(b=>Z(b.required).includes("type")),schema:I(v,y+1,m.length,!1)}});return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:void 0,description:typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(l)||j(a)?!0:void 0}}const Be=u=>{if(it(u))return!1;const p=f(u);return p.type==="object"||!!p.properties},Gt=u=>{const p=R(u);return me(p)?!pt(p,s):!1},st=y<xe&&m.every(u=>Be(u)||Gt(u))&&m.some(Be),at=m.every(u=>typeof u.$ref=="string"),Ht=z(e)&&!at&&m.some(u=>typeof u.$ref=="string"&&Nr.has(Fr(s(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Be(u));if((at||Ht)&&!st){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=s(p.$ref);let v,w,b=!1;if(typeof g.title=="string"){const S=ct(g.title);S&&(v=S.blockId,w=S.blockId)}if(!v&&Array.isArray(g.allOf))for(const S of g.allOf){const J=((S.properties??{}).__resolveType??{}).enum;if(Array.isArray(J)&&typeof J[0]=="string"){v=J[0],b=!0;break}}if(!v){const T=g.properties?.__resolveType?.enum;Array.isArray(T)&&typeof T[0]=="string"&&(v=T[0],b=!0)}v||(v=p.$ref.split("/").pop()??"");const L=v.includes("/")||b&&!rr(v),V=L?void 0:h(p);!V&&!L||b&&v==="lazy"||u.push({resolveType:V??v,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:re(v)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:V,schema:I(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:k,title:typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:void 0,description:typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:void 0,anyOfRefs:u,hidden:j(l)||j(a)?!0:void 0}}if(st){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,v)=>{const w=f(g).properties??{},b={};for(const[L,V]of Object.entries(w)){const S=u(V);S!==void 0&&(b[L]=S)}return{title:_(g,`Option ${v+1}`),schema:M(g,y+1),discriminators:Object.keys(b).length?b:void 0}});return{type:"inline-union",title:typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:void 0,description:typeof l.description=="string"?l.description:void 0,inlineUnionBranches:p,hidden:j(l)||j(a)?!0:void 0}}C="object"}}else l.allOf?(C="object",tt=D(l.title)):typeof a.$ref=="string"&&(C="object");let ye,rt,nt=!1;if(y<xe&&!O){const E=q(l),m=E.__resolveType?.enum;nt=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const A=Z(E.__required);A.length>0&&(rt=A);const k=Object.entries(E).filter(([U])=>!U.startsWith("__")&&U!=="@type");if(k.length>0){ye={};for(const[U,je]of k)ye[U]=M(je,y+1,x)}}let Pe;if((C==="array"||l.type==="array")&&y<xe&&!O){const E=l.items;if(E){Pe=M(E,y+1,x);const m=f(E);typeof m.title=="string"&&m.title.includes("{{")&&(Pe.titleBy=m.title)}}const te=E=>{const m=se?.[E];return typeof m=="string"?m:void 0},Yt=()=>{if("default"in a)return a.default;if("default"in l)return l.default;if(se&&"default"in se)return se.default};return{type:C??"string",title:typeof a.title=="string"?a.title:!tt&&typeof l.title=="string"?l.title:te("title"),description:typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:te("description"),default:Yt(),enum:Array.isArray(l.enum)?l.enum:H??void 0,format:typeof a.format=="string"?a.format:typeof l.format=="string"?l.format:te("format"),properties:ye,required:rt,items:Pe,lazy:nt&&ye?.value?!0:void 0,recursiveRef:O&&typeof a.$ref=="string"&&(C==="object"||C==="array"||l.type==="array")?a.$ref:void 0,hidden:j(l)||j(a)?!0:void 0,titleBy:typeof l.titleBy=="string"?l.titleBy:te("titleBy"),image:typeof l.image=="string"?l.image:te("image"),options:typeof a.options=="string"?a.options:typeof l.options=="string"?l.options:te("options")}};if("ref"in t)return M({$ref:t.ref});const ee=c.properties??{},oe=Object.keys(ee).every(a=>a.startsWith("__"));if(Array.isArray(c.allOf)&&c.allOf.length===1&&oe){const a=ee.__resolveType,y=Array.isArray(a?.enum)&&typeof a.enum[0]=="string"?a.enum[0]:typeof a?.const=="string"?a.const:typeof a?.default=="string"?a.default:void 0;for(const d of c.allOf){const l=R(d);if(!(Array.isArray(l.anyOf)||Array.isArray(l.oneOf))||l.properties)continue;const O=M(l,0);if(O.type==="inline-union"&&O.inlineUnionBranches){const x=D(O.title);return{...O,title:x?void 0:O.title,inlineUnionBranches:y?O.inlineUnionBranches.map(I=>({...I,discriminators:{...I.discriminators??{},__resolveType:y}})):O.inlineUnionBranches}}}}const F=q(c),Y={};for(const[a,y]of Object.entries(F))a.startsWith("__")||a==="@type"||(Y[a]=M(y,0));if(Object.keys(Y).length===0)return null;const G=Z(F.__required);return{type:"object",title:typeof c.title=="string"?c.title:void 0,properties:Y,required:G.length>0?G:void 0}}function ai(e,t){const r=t.schema??{},n=Se(e,t),i=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?i[n.$ref.split("/").pop()??""]??{}:n,s=o.properties??{};if(Object.keys(s).some(h=>!h.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const f=s.__resolveType;return!!f&&Array.isArray(f.enum)&&f.enum[0]===e}function ci(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const i={};for(const[o,s]of Object.entries(n))o.startsWith("__")||(i[o]=t(s));return{type:"object",properties:i}}default:return{type:"string"}}},r={};for(const[n,i]of Object.entries(e))n.startsWith("__")||(r[n]=t(i));return Object.keys(r).length===0?null:{type:"object",properties:r}}function Ge(e,t){const r=t.schema??{},n=Se(e,t),i=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?i[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},s=o.icon,c=o.logo,f=o,h=R=>R===!0||R==="true",_=h(f.hide)||h(f.ignore)||h(f.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof s=="string"?s:void 0,logo:typeof c=="string"?c:void 0,hidden:_||void 0}}const kt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Gr=new Set(kt);function He(e){return Gr.has(e)}function Xe(e,t){return He(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function Hr(e,t){return Xe(e,z(t)?t:void 0)}function Je(e){return e.replace(/\/+$/,"")||"/"}function li(e){return e.trim().replace(/^\/+|\/+$/g,"")}function Xr(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function fi(e){const t=e.trim();return t?Xr(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ze=/:([A-Za-z0-9_-]+)|\*/g;function ui(e){const t=[];for(const r of e.matchAll(Ze)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function Ot(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function pi(e){e=Ot(e);const t=[];let r=0;for(const n of e.matchAll(Ze))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function yi(e,t){return Ot(e).replace(Ze,(r,n)=>{const i=t[n??"*"]?.trim();return i?n!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}const Et=kt[0],Jr=new Set(["site/sections/Theme/Theme.tsx"]);function Zr(e,t){return Jr.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function Re(e,t){return!!(Zr(e,z(t))||gt(e)||e.toLowerCase().includes("preview"))}function Pt(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(He(n))return n;return Object.hasOwn(t.pages??{},"page")?"page":Et}function en(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function di(e){return e?en(e)?"page":Pt(e):Et}function Le(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Le(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...Le(r));return t}return[]}function tn(e){const t=e.manifest?.blocks??{},r=[];for(const[n,i]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(i)){if(Re(o,e))continue;const s=Ge(o,e);r.push({resolveType:o,title:s.title??re(o),description:s.description,previewBlock:o,isSavedBlock:!1})}return r}function mi(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,i]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(i))Re(o,e)||r.has(o)||r.set(o,{resolveType:o,title:re(o)});return[...r.values()].sort((n,i)=>n.title.localeCompare(i.title))}function jt(e,t){const r=t.__resolveType;if(typeof r!="string")return"";const n=z(e);if(!wt(r,n))return r;const i=t.variants;if(!Array.isArray(i))return r;for(const o of i){const s=mt(o,n);if(!s||typeof s!="object")continue;let c=s.__resolveType;if(typeof c=="string"&>(c)&&(c=s.section?.__resolveType??c),typeof c=="string"&&Fe(e,c))return c}return r}function wt(e,t){return e===We||t&&e===ne}function rn(e,t){return jt(e,t)!==t.__resolveType}function Bt(e,t){const r=[];for(const[n,i]of Object.entries(t)){if(n.includes("/")||Ne(n)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,s=o.__resolveType;typeof s!="string"||He(s)||typeof o.path=="string"||Re(s,e)||!(Fe(e,s)||wt(s,z(e))&&rn(e,o))||r.push({resolveType:n,title:n,description:typeof o.name=="string"?o.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function nn(e,t){const r=_e(t.resolveType,e),n=r?{}:Ge(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||re(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function gi(e,t){const r=Pt(e),n=St(r,e),i=Le(n?.properties?.sections),o=new Map,s=c=>{if(!Re(c.resolveType,e)){if(_e(c.resolveType,e)){Ne(c.resolveType)||o.set(c.resolveType,c);return}Fe(e,c.resolveType)&&(o.has(c.resolveType)||o.set(c.resolveType,c))}};for(const c of tn(e))s(c);for(const c of i)s(nn(e,c));for(const c of Bt(e,t))s(c);return[...o.values()].sort((c,f)=>c.title.localeCompare(f.title))}function hi(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const ke="website/loaders/redirect.ts",vi=new Set([ke,"website/loaders/redirects.ts"]),Oe="redirect",on=[301,302,307,308],sn={temporary:307,permanent:301};function _i(e){return e.flat&&e.status||sn[e.type]}const ge=e=>typeof e=="string"?e:"",an=e=>e==="permanent"?"permanent":"temporary",cn=e=>on.find(t=>t===e);function Mt(e){const t=cn(e.status);return{from:ge(e.from),to:ge(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function Ee(e){if(e?.__resolveType===Oe)return Mt(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ge(t.from),to:ge(t.to),type:an(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function ln(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const i=n;i.__resolveType!==ke&&i.__resolveType!==Oe||t.push({key:r,...Ee(i)})}return t}function bi(e){return Ee(e)}function fn(e,t){if(e.flat){const{status:n,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:Oe,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const r={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(r.discardQueryParameters=!0),{redirect:r,__resolveType:ke}}function un(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const pn=1e3;function Ti(e,t){const r=un(t);for(let n=0;n<pn;n++){const i=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}const yn="Redirects",xt="redirects";function $t(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===xt}function dn(e){return Object.keys(e).filter(r=>$t(e[r])).sort()[0]??yn}function Ai(e,t){const r=e.lastIndexOf("#");if(r<=0)return null;const n=e.slice(0,r),i=e.slice(r+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,n)||!$t(t[n])?null:{block:n,index:Number(i)}}function ie(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(r=>!!r&&typeof r=="object"&&!Array.isArray(r)):[]}function Lt(e){return"redirect"in e?Ee(e):Mt({...e})}function Ct(e,t){const{__resolveType:r,...n}=fn(e,{...t});return n}function Si(e,t){return ie(t).map((r,n)=>[`${e}#${n}`,"redirect"in r?{...r,__resolveType:ke}:{...r,__resolveType:Oe}])}function Ri(e,t=dn(e)){return ie(e[t]).map((r,n)=>({key:`${t}#${n}`,...Lt(r)}))}function ki(e,t){const r=ie(e)[t];return r?Lt(r):Ee(void 0)}function et(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:xt,redirects:t}}function Oi(e,t){return et(e,[...ie(e),Ct(t)])}function Ei(e,t,r){const n=ie(e),i=n.slice();return i[t]=Ct(r,n[t]),et(e,i)}function Pi(e,t){return et(e,ie(e).filter((r,n)=>n!==t))}function mn(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 ji(e,t){const{pageId:r,path:n,pathTemplate:i}=t;if(r){const o=e.find(c=>c.key===r);if(o)return o;const s=e.find(c=>c.key.endsWith(`-${r}`));if(s)return s}if(n){const o=Ce(e,n);if(o)return o}if(i){const o=Ce(e,i);if(o)return o}return null}function Ce(e,t,r){const n=Je;if(r){const o=e.find(s=>s.key===r);if(o)return o}const i=e.filter(o=>n(o.path)===n(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,s)=>o.key.localeCompare(s.key))[0]??null}function wi(e,t,r){const n=Ce(e,t,r);return n||Je(t)!=="/"?n:e[0]??null}const ce="site",Dt="site/apps/site.ts";function De(e,t){return e===ce?!0:t.__resolveType===Dt}function Bi(e,t){return e?It(e,t).length>0||ln(e).length>0?!0:t?bn(e,t).length>0||vn(e,t)?!0:_n(e,t).length>0:!1:!1}function gn(e,t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!Xe(n.__resolveType,r)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:mn(e),path:n.path}}function It(e,t){const r=[];for(const[n,i]of Object.entries(e)){const o=gn(n,i,t);o&&r.push(o)}return r}function Ie(e,t,r=0){if(r>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>Ie(i,t,r+1));const n=e;return typeof n.__resolveType=="string"&&t.has(n.__resolveType)?!0:Object.values(n).some(i=>Ie(i,t,r+1))}function yt(e,t){return nr(e)?ir(e).some(r=>t.has(r)):Ie(e,t)}function hn(e,t,r){const n=It(e,r),i=new Set(n.map(s=>s.key)),o=new Set([t]);for(let s=!0;s;){s=!1;for(const[c,f]of Object.entries(e))o.has(c)||i.has(c)||yt(f,o)&&(o.add(c),s=!0)}return n.filter(s=>s.key!==t&&yt(e[s.key],o))}function Mi(e,t,r){const n=o=>Je(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=hn(e,t,r).sort((o,s)=>n(o)-n(s)||(o.path<s.path?-1:o.path>s.path?1:0));return i??null}function Ut(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Ue(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",i=n?Ge(n,r):{};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 vn(e,t){const r=e[ce];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,i=n.__resolveType;if(typeof i=="string"&&(De(ce,n)||At(t,i)))return{key:ce,name:Ue(ce,n,t),resolveType:i}}for(const[n,i]of Object.entries(e)){if(n.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!De(n,o))continue;const s=typeof o.__resolveType=="string"?o.__resolveType:Dt;return{key:n,name:Ue(n,o,t),resolveType:s}}return null}function _n(e,t){const r=[];for(const[n,i]of Object.entries(e)){if(n.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,s=o.__resolveType;typeof s=="string"&&(Xe(s,t)||typeof o.path!="string"&&(De(n,o)||!At(t,s)&&!Qr(s)||r.push({key:n,name:Ue(n,o,t),resolveType:s})))}return r.sort((n,i)=>n.name.localeCompare(i.name))}function bn(e,t){return Bt(t,e).map(r=>{const n=e[r.resolveType],i=jt(t,n);return{key:r.resolveType,name:r.description??Ut(r.resolveType,n),resolveType:i}}).sort((r,n)=>r.name.localeCompare(n.name))}const Tn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,An={posts:"post",categories:"category",authors:"author"},Vt=["post","category","author"];function he(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function xi(e,...t){const r=e?Tn.exec(e)?.[1]:void 0;if(r)return An[r]??null;for(const n of t){if(!he(n))continue;const i=n.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Vt.find(s=>he(n[s]));if(o)return o}return null}function Sn(...e){for(const t of e)if(he(t))for(const r of Vt){const n=t[r];if(he(n))for(const i of["title","name"]){const o=n[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function Rn(e,t=or){return t(`sectionsEditor.blogKind.${e}`)}function $i(e,t,r){return Sn(...t)??Rn(e,r)}function kn(e){return e.includes("matchers")||e.includes("Match")}function Kt(e,t){const r=e.__resolveType;return typeof r!="string"||!r||Hr(r,t)?!1:t?sr(t,r):kn(r)}function Li(e,t){const r=[];for(const[n,i]of Object.entries(t)){if(n.includes("/")||!_e(n,e)||Ne(n)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;Kt(o,e)&&r.push({blockKey:n,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return r.sort((n,i)=>(n.name??n.blockKey).localeCompare(i.name??i.blockKey))}function pe(e,t,r){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!_e(n,r)||!Object.hasOwn(t,n))return!1;const i=t[n];return!i||typeof i!="object"||Array.isArray(i)?!1:Kt(i,r)}function Ci(e,t,r){return pe(e,t,r)?e?.__resolveType??null:null}function Nt(e,t,r){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(pe(e,t,r)){const s=t[n]??{},c=s.__resolveType??n,{__resolveType:f,name:h,..._}=s;return{resolveType:c,data:_,blockKey:n}}const{__resolveType:i,...o}=e;return{resolveType:n,data:o}}function On(e,t,r){const n=Nt(e,t,r);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function Di(e,t,r){if(e)return pe(e,t,r)?On(e,t,r):e}function En(e,t,r,n){if(!e)return"Default";if(pe(e,t,n)){const i=e.__resolveType??"",o=t[i];return Ut(i,o)}return r(e,Mr(t))}function Ii(e,t,r){return{__resolveType:e,...t,name:r}}function Ui(e){return{__resolveType:e}}function Vi(e,t,r){const n=Nt(e,t,r);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function Ki(e,t){const r={__resolveType:e};if(!e||!t)return r;const n=St(e,t),i=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...r,...i}:r}function Ft(e){const t=[];for(let r=e;r?.key!=null;r=r.parent)t.push(r.key);return t.reverse()}function Pn(e){return{blockKey:e.blockKey,path:Ft(e)}}function jn(e,t,r){const n=[];for(const[o,s]of Object.entries(e))o!==t&&n.push({node:s,blockKey:o,parent:null,key:null});const i=new Set;for(;n.length>0;){const o=n.pop(),{node:s}=o;if(!(!s||typeof s!="object")&&!i.has(s)){if(i.add(s),Array.isArray(s)){s.forEach((c,f)=>{n.push({node:c,blockKey:o.blockKey,parent:o,key:f})});continue}r(s,o);for(const[c,f]of Object.entries(s))n.push({node:f,blockKey:o.blockKey,parent:o,key:c})}}}function wn(e,t,r){if(!t)return[];const n=[];return jn(e,t,(i,o)=>{if(i.__resolveType!==t||!pe(i,e,r))return;const s=Bn(o);n.push({...Pn(o),...s?{variant:s}:{}})}),n}function Bn(e){for(let t=e;t;t=t.parent){const r=t.parent,n=r?.parent,i=n?.parent;if(!r||!n||!i)return;if(t.key==="rule"&&typeof r.key=="number"&&n.key==="variants"&&ue(i.node)&&ar(i.node.__resolveType)){const o=i.node.experiment;return{containerPath:Ft(i),containerType:i.node.__resolveType,index:r.key,...typeof o=="string"?{experiment:o}:{}}}}}function Mn(e){for(const t of e.anyOfRefs??[]){if(t.resolveType!==ve&&t.resolveType!==ne)continue;const r=t.schema?.properties?.variants?.items?.properties?.value,n=r?.lazy?r.properties?.value:r;if(n?.type==="array")return n}}function xn(e){return Mn(e)!==void 0}function Ni(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const r=e;return Array.isArray(r.variants)?r.__resolveType===We?!0:t&&r.__resolveType===ne&&!Wt(r.variants):!1}function Wt(e){return e.some(t=>Array.isArray(be(t)))}function qt(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const r=e;return r.__resolveType===ve?!0:t&&r.__resolveType===ne&&Array.isArray(r.variants)&&Wt(r.variants)}function Fi(e,t){if(!qt(e,t))return null;const r=e.variants;if(!Array.isArray(r))return null;const n=mt(r[0],t);return Array.isArray(n)?n:null}function Wi(e,t,r,n){if(!qt(e,n))return t;const i=structuredClone(e),o=[...i.variants??[]];return o.length===0?o.push({rule:vt(r),value:ht(i.__resolveType,t)}):o[0]=pr(i.__resolveType,o[0],t),{...i,variants:o}}function qi(e,t){const n=e[t]?.sections;if(!n||Array.isArray(n))return 1;const i=n;return Array.isArray(i.variants)?i.variants.length:1}function Yi(e,t,r){const i=e[t]?.sections;if(Array.isArray(i))return r===0?i:[];if(i&&typeof i=="object"){const o=i.variants;if(Array.isArray(o)){const s=be(o[r]);return Array.isArray(s)?s:[]}}return[]}function zi(e,t,r){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const i=n.variants,o=lr(i.map(s=>En(s.rule,t,r)));return i.map((s,c)=>{const f=o[c],h=be(s);return{label:f||`Variant ${c+1}`,sections:Array.isArray(h)?h:[],rule:s.rule}})}}return[]}function $e(e,t,r){return{rule:vt(t),value:ht(r,e)}}function Ve(e,t){return e?e.__resolveType===ne?ne:ve:fr(t)}function le(e,t,r){return{...t,__resolveType:Ve(t,r),variants:e}}function Qi(e,t,r,n=!1){const i=structuredClone(t);if(e&&typeof e=="object"&&!Array.isArray(e)){const f=e;if(!Array.isArray(f.variants))return null;const h=[...f.variants],_=cr(h,n);return h.splice(_,0,$e(i,r,Ve(f))),{sections:le(h,f),newVariantIndex:_}}const o=Ve(void 0,r),s=$e(Array.isArray(e)?e:[],r,o),c=$e(i,r,o);return{sections:le(n?[c,s]:[s,c],void 0,r),newVariantIndex:n?0:1}}function Gi(e,t,r=!1){const n=e[t];if(!n)return null;const i=[...e];return i.splice(yr(e,t,r),0,structuredClone(n)),i}function Hi(e,t){if(t.length===0)return le([],e);if(t.length===1){const r=t[0],n=r?.rule;if(!ur(n))return le(t,e);const i=be(r);if(Array.isArray(i))return i}return le(t,e)}function $n(e,t,r){return wn(e,t,r).length}function Xi(e,t,r,n){return n?!1:$n(e,t,r)===0}const Ji={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function Ke(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===We}function Ln(e){if(e.anyOfRefs?.length)return e.anyOfRefs.some(r=>Ke(r.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(r=>Ke(r.resolveType)):!1}function Zi(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>Ke(t.resolveType))}function eo(e,t){if(t==="global"||t==="sections"||xn(e))return!0;const r=e.type==="array"?e.items:void 0;return r?Ln(r):!1}const Cn="https://github.com/decocms/blocks";function to(){const e=fe.c(14),t=Te();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=$.jsx(_t,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let n;e[1]!==t?(n=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=n):n=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 s;e[7]===Symbol.for("react.memo_cache_sentinel")?(s=$.jsx(hr,{size:14}),e[7]=s):s=e[7];let c;e[8]!==o?(c=$.jsx(qe,{size:"sm",asChild:!0,children:$.jsxs("a",{href:Cn,target:"_blank",rel:"noreferrer",children:[o,s]})}),e[8]=o,e[9]=c):c=e[9];let f;return e[10]!==n||e[11]!==i||e[12]!==c?(f=$.jsx(Ye,{className:"h-full w-full",image:r,title:n,description:i,actions:c}),e[10]=n,e[11]=i,e[12]=c,e[13]=f):f=e[13],f}function ro(e){const t=fe.c(15),{source:r,onRetry:n}=e,i=Te();let o;t[0]!==r||t[1]!==i?(o=i(r==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=r,t[1]=i,t[2]=o):o=t[2];const s=o;let c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=$.jsx(jr,{size:48,className:"text-muted-foreground"}),t[3]=c):c=t[3];let f;t[4]!==i?(f=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=f):f=t[5];let h;t[6]!==i?(h=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=h):h=t[7];let _;t[8]!==n||t[9]!==h?(_=$.jsx(qe,{variant:"outline",size:"sm",onClick:n,children:h}),t[8]=n,t[9]=h,t[10]=_):_=t[10];let R;return t[11]!==s||t[12]!==f||t[13]!==_?(R=$.jsx(Ye,{image:c,title:f,description:s,actions:_}),t[11]=s,t[12]=f,t[13]=_,t[14]=R):R=t[14],R}function no(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function io(){const e=fe.c(16),t=Te(),{org:r}=dr();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=$.jsx(_t,{size:48,className:"text-muted-foreground"}),e[0]=n):n=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 s;e[5]!==r.slug?(s={org:r.slug},e[5]=r.slug,e[6]=s):s=e[6];let c;e[7]!==t?(c=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=c):c=e[8];let f;e[9]!==s||e[10]!==c?(f=$.jsx(qe,{size:"sm",variant:"outline",asChild:!0,children:$.jsx(mr,{to:"/$org/projects",params:s,"data-testid":"site-not-owned-projects",children:c})}),e[9]=s,e[10]=c,e[11]=f):f=e[11];let h;return e[12]!==i||e[13]!==o||e[14]!==f?(h=$.jsx(Ye,{className:"h-full w-full",image:n,title:i,description:o,actions:f}),e[12]=i,e[13]=o,e[14]=f,e[15]=h):h=e[15],h}function oo(e){const t=fe.c(6),{backend:r}=e,n=Te(),i=r.kind==="pending"?r.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=$.jsx(gr,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let s;t[1]!==i||t[2]!==n?(s=i&&$.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:n("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=n,t[3]=s):s=t[3];let c;return t[4]!==s?(c=$.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,s]}),t[4]=s,t[5]=c):c=t[5],c}export{Ji as $,Re as A,ro as B,oo as C,St as D,Ut as E,xt as F,Si as G,Qn as H,jt as I,bi as J,Ai as K,ji as L,vn as M,Ae as N,ln as O,mi as P,qi as Q,sn as R,io as S,vi as T,Qi as U,dn as V,Ri as W,Ti as X,fn as Y,Oi as Z,Pi as _,li as a,qn as a0,Hr as a1,en as a2,di as a3,Le as a4,He as a5,xn as a6,si as a7,eo as a8,Li as a9,Rn as aA,Ke as aB,Et as aC,ft as aD,ti as aE,Yn as aF,ei as aG,Xn as aH,ri as aI,Sn as aJ,ni as aK,Jn as aL,hi as aM,Nt as aN,Ce as aO,Hi as aP,Xi as aQ,Gi as aR,ki as aS,on as aT,Ei as aU,On as aa,Ui as ab,Di as ac,zi as ad,Zi as ae,gi as af,En as ag,Ci as ah,Vi as ai,Zn as aj,pe as ak,Ii as al,Ki as am,Ni as an,qt as ao,Fi as ap,Wi as aq,Mn as ar,ai as as,ci as at,Wn as au,gn as av,mn as aw,xi as ax,$i as ay,Gn as az,to as b,bn as c,wi as d,It as e,yi as f,Yi as g,Bi as h,no as i,Hn as j,zn as k,Pt as l,oi as m,Je as n,Dt as o,Mi as p,De as q,Mr as r,pi as s,Qr as t,ii as u,fi as v,Ue as w,Ge as x,_i as y,ui as z};
|
|
1
|
+
import{bf as z,c as fe,q as Jt,K as dt,i as Zt,a3 as er,fC as tr,fD as ve,bH as ct,bK as rr,bJ as re,c5 as Ne,fE as Fe,b7 as mt,b8 as gt,fF as We,bF as ne,bA as _e,bz as nr,fG as ir,bS as or,fH as sr,fg as ar,bL as be,bX as cr,fI as lr,bE as ht,bV as vt,bC as fr,bW as ur,bR as pr,bY as yr,b as Te,a5 as dr,j as $,B as qe,L as mr,h as gr,a8 as hr}from"./index-Cvc22Qvh.js";import{c as vr,o as _r,u as br,S as Tr,ae as Ar,az as Sr,aA as Rr,aB as kr,x as Or,q as Er}from"./site-editor-toast-DrW9VMK5.js";import{a as Pr}from"./input-C7_FCkgY.js";import{i as jr}from"./AlertCircle-Cwj2JDLb.js";import{aO as _t}from"./agent-icon-DD6O0sln.js";import{E as Ye}from"./empty-state-Drt9QRbX.js";const ae="https://docs.decocms.com/storefront/blocks",Wn={quickstart:`${ae}/next/quickstart`,siteEditor:`${ae}/next/site-editor#edit-on-your-machine`,serve:`${ae}/next/cli#deco-serve`,schema:`${ae}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${ae}/next/troubleshooting#site-editor`},qn="https://github.com/decocms/blocks/tree/main/.agents/skills/deco-site-workflow",K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},Ae=["experiments","campaigns"];function Yn(e){return K[e]}const zn=Ae.map(e=>K[e].blockKey);function wr(e){for(const t of Ae)if(K[t].matcher===e)return t;return null}function Qn(e){for(const t of Ae)if(K[t].resolveType===e)return t;return null}function Gn(e){for(const t of Ae)if(K[t].blockKey===e)return t;return null}const Br="deco";function Hn(e,t){if(!z(e))return"missing";const r=K[t],n=lt(e,r.resolveType),i=lt(e,r.matcher);if(!n||!i)return"missing";const o=s=>s.namespace===void 0||s.namespace===Br;return o(n)&&o(i)?"available":"replaced"}function lt(e,t){const r=e?.manifest?.blocks??{};for(const n of Object.values(r))if(n&&Object.hasOwn(n,t))return n[t]??{};return null}function ft(e,t){const r=K[t],n=Object.hasOwn(e,r.blockKey)?e[r.blockKey]:void 0;if(n==null)return{kind:"absent",block:{__resolveType:r.resolveType},values:Object.create(null),invalid:[]};const i=ue(n)?n.__resolveType:void 0;if(i!==r.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=n,s=Object.create(null),c=[];for(const[f,h]of Object.entries(o)){if(f==="__resolveType")continue;const _=t==="experiments"?xr(h):$r(h);_===null?c.push(f):s[f]=_}return{kind:"saved",block:o,values:s,invalid:c}}function Xn(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function Mr(e){const t=ft(e,"experiments"),r=ft(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:r.kind==="conflict"?{}:r.values}}function xr(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function $r(e){if(!ue(e))return null;const t={};for(const r of["start","end"]){const n=e[r];if(!(n==null||n==="")){if(typeof n!="string")return null;t[r]=n}}return t}function Jn(e){return e<=0?"off":e>=100?"everyone":"running"}function Zn(e){if(!ue(e))return null;const t=wr(e.__resolveType);if(!t)return null;const r=e[K[t].field];return typeof r=="string"?{kind:t,name:r}:null}function ei(e,t){const r=K[e];return{__resolveType:r.matcher,[r.field]:t}}const Lr="date";function ti(e){return ue(e)&&e.__resolveType===Lr&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function ri(e,t,r,n){return{...e,__resolveType:K[t].resolveType,[r]:n}}function ni(e,t){if(t==="__resolveType")return e;const{[t]:r,...n}=e;return n}function ue(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Cr(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 Dr=5e3,Ir=new Map;async function Ur(e,t,r=Ir){const n=new URL("/live/_meta",e).href,i=r.get(e),o=i==="refused"?void 0:t?.etag,s=await fetch(n,{cache:"no-store",headers:o?{"If-None-Match":o}:{}}).catch(()=>null),c=!s&&!!o&&i===void 0,f=c?await fetch(n,{cache:"no-store",headers:{}}).catch(()=>null):s;if(o&&(c&&f?r.set(e,"refused"):s&&r.set(e,"ok")),t&&(!f||f.status===304))return t;if(!f?.ok)return null;try{return await f.json()}catch{return null}}function Vr(e){return dt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function ii(e,t){const r=fe.c(30),{url:n}=vr(e?.virtualMcpId),i=!!n,o=i||(t?.fetchEnabled??!0),s=n??e?.previewUrl,c=_r(e?.virtualMcpId),{previewServerUrl:f,runtime:h}=Pr(e?.virtualMcpId),_=!i&&h==="cms",R=br(e?.virtualMcpId,e?.branch),P=R.kind==="protocol"?R:null,Q=Jt(),N=Tr(e??null);let W;r[0]!==e||r[1]!==s||r[2]!==f||r[3]!==P?(W=e?P?Ar(e,P):Vr({...e,previewUrl:s,productionUrl:f}):dt.liveMeta(""),r[0]=e,r[1]=s,r[2]=f,r[3]=P,r[4]=W):W=r[4];const j=W;let D;r[5]!==R.kind||r[6]!==N||r[7]!==_||r[8]!==o||r[9]!==i||r[10]!==c||r[11]!==e||r[12]!==s||r[13]!==f||r[14]!==P||r[15]!==Q||r[16]!==j?(D=async()=>{if(P){const{meta:d}=await Sr(Q,P,e,N);if(d instanceof Error)throw d;return d}if(R.kind==="unavailable")throw Rr("live meta");const G=()=>_?kr(e):Or(e,Er(c,".deco/meta.gen.json")),a=i&&s?[{kind:"live",baseUrl:s}]:Cr({fetchEnabled:o,previewUrl:s,productionUrl:f,fastPreviewActive:_});for(const d of a){if(d.kind==="committed"){const O=await G();if(O.kind==="data")return O.data;continue}const l=Q.getQueryData(j),B=await Ur(d.baseUrl,i||l?.etag?l: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},r[5]=R.kind,r[6]=N,r[7]=_,r[8]=o,r[9]=i,r[10]=c,r[11]=e,r[12]=s,r[13]=f,r[14]=P,r[15]=Q,r[16]=j,r[17]=D):D=r[17];const q=!!e&&R.kind!=="pending",M=P?!1:i?Dr:t?.refetchInterval,ee=P?!1:void 0,oe=P?P.describe.pollIntervalMs:3e5;let F;r[18]!==_||r[19]!==i||r[20]!==P?(F=(G,a)=>(P||_||i||a.status!==502)&&G<3,r[18]=_,r[19]=i,r[20]=P,r[21]=F):F=r[21];let Y;return r[22]!==j||r[23]!==D||r[24]!==q||r[25]!==M||r[26]!==ee||r[27]!==oe||r[28]!==F?(Y={queryKey:j,queryFn:D,enabled:q,refetchInterval:M,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:oe,retry:F,retryDelay:Kr},r[22]=j,r[23]=D,r[24]=q,r[25]=M,r[26]=ee,r[27]=oe,r[28]=F,r[29]=Y):Y=r[29],Zt(Y)}function Kr(e){return er(5e3,1e3,e,2,0)}const Nr=new Set(["split-traffic","calendar"]);function Fr(e){const r=e.properties?.__resolveType?.enum;return Array.isArray(r)&&typeof r[0]=="string"?r[0]:""}const Wr=12,qr=8,xe=32,Yr=40,ut="__SECTION_REF__";function me(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function pt(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const i=r.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const zr="VideoWidget";function Z(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function bt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function ze(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Qe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Tt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Se(e,t){const r=t.manifest?.blocks??{};for(const c of Object.values(r))if(c[e])return c[e];const n=ze(e)??Qe(e);if(n){for(const c of Tt(n.vendor,n.app))for(const f of Object.values(r))if(f[c])return f[c]}const i=bt(e);for(const c of Object.values(r))if(c[i])return c[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function oi(e,t){return Object.keys(Se(e,t)).length>0}function At(e,t){if(tr(e,t))return!0;const r=ze(t)??Qe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(Tt(r.vendor,r.app).some(s=>s in n))return!0;const i=bt(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function Qr(e){return e==="site/apps/site.ts"?!1:ze(e)!==null||Qe(e)!==null}function St(e,t){return Rt(t,{resolveType:e})}function si(e,t){return Rt(t,{ref:e})}function Rt(e,t){const r=e.schema??{},n="resolveType"in t?Se(t.resolveType,e):{},i=r.$defs??r.definitions??{},o=r.root??{},s=a=>{if(a.startsWith("#/root/")){const l=a.slice(7);return o[l]??{}}const y=a.split("/").pop()??"",d=i[y];return d||(y===ut?o.sections??{}:{})};let c;typeof n.$ref=="string"?c=s(n.$ref):Object.keys(n).length>0?c=n:c=r;const f=a=>typeof a.$ref=="string"?s(a.$ref):a,h=a=>{const d=f(a).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]}},_=(a,y)=>{const d=f(a);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},R=(a,y=new Set)=>{if(typeof a.$ref!="string"||a.properties||a.anyOf||a.allOf||a.oneOf||a.type)return a;const d=a.$ref.split("/").pop()??"";return!d||y.has(d)?a:R(s(a.$ref),new Set([...y,d]))},P=(a,y=new Set)=>{if(typeof a.$ref!="string")return!1;const d=a.$ref.split("/").pop()??"";return a.$ref==="#/root/sections"||d===ut?!0:!d||y.has(d)?!1:P(s(a.$ref),new Set([...y,d]))},Q=a=>{const y=a.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},N=a=>Q(a)!==void 0,W=(a,y=new Set)=>{if(typeof a.$ref!="string")return[];const d=a.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const l=s(a.$ref),B=l.anyOf??l.oneOf;if(!Array.isArray(B))return[];const O=new Set([...y,d]);return B.flatMap(x=>N(x)?[x]:W(x,O))},j=a=>{const y=a.hide;return y===!0||y==="true"},D=a=>typeof a=="string"&&(a.includes("://")||!/\s/.test(a)&&(a.includes("|")||a.includes("&")||a.includes("@"))),q=(a,y=new Set,d=0)=>{if(d>Wr)return{};if(typeof a.$ref=="string"){const B=a.$ref.split("/").pop()??"";return y.has(B)?{}:q(s(a.$ref),new Set([...y,B]),d+1)}let l={};a.properties&&typeof a.properties=="object"&&(l={...l,...a.properties}),Array.isArray(a.required)&&(l.__required=[...Z(l.__required),...Z(a.required)]);for(const B of["allOf","anyOf","oneOf"]){const O=a[B];if(Array.isArray(O))for(const x of O){const I=Z(l.__required),H=q(x,y,d+1);l={...l,...H};const C=B==="allOf"?[...I,...Z(H.__required)]:I;C.length>0?l.__required=C:delete l.__required}}return l},M=(a,y=0,d=new Set)=>{let l=a,B;if(typeof a.$ref=="string"){l=s(a.$ref);const E=a.$ref.split("/").pop()??"";B=E,E===zr&&!l.format&&(l={...l,format:"video-uri"})}l=R(l);const O=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,I=(E,m,A,k=!0)=>!O&&(!k||A<=Yr)&&m<qr?M(E,m,x):void 0;let H;{const E=l.anyOf??l.oneOf;if(Array.isArray(E)){const m=E.filter(k=>!(k.type==="null"||k.type===null)),A=k=>{if(typeof k.const=="string"||typeof k.const=="number")return k.const;if(Array.isArray(k.enum)&&k.enum.length===1&&(typeof k.enum[0]=="string"||typeof k.enum[0]=="number"))return k.enum[0]};m.length>0&&m.every(k=>A(k)!==void 0)&&(H=m.map(k=>A(k)))}}let C,se,tt=!1;if(l.type)C=Array.isArray(l.type)?String(l.type.find(E=>E!=="null")??l.type[0]):String(l.type);else if(l.anyOf||l.oneOf){const m=(l.anyOf??l.oneOf).filter(A=>!(A.type==="null"||A.type===null));if(m.length===0)C="null";else if(m.length===1){const A=m[0];se=A,C=A.type?Array.isArray(A.type)?String(A.type[0]):String(A.type):typeof A.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof a[p]=="string"?a[p]:typeof l[p]=="string"?l[p]:void 0;return{type:"string",title:typeof l.title=="string"?l.title:void 0,description:typeof l.description=="string"?l.description:void 0,enum:H,format:u("format"),options:u("options")}}const A=m.filter(N),k=P(a)||m.some(u=>P(u))||void 0,U=m.map(u=>R(u)).find(me),je=u=>{if(typeof u.$ref!="string")return;const p=R(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const v=[...g.filter(N),...g.filter(b=>!N(b)).flatMap(b=>W(b))],w=g.filter(b=>{if(N(b)||b.type==="null")return!1;const L=f(b),V=L.properties;return!V?.__resolveType&&!L.anyOf&&!L.oneOf&&(L.type==="object"||!!V)});return v.length>0&&w.length>0?{data:w,loaders:v}:void 0},de=m.flatMap(u=>{const p=je(u);return p?[p]:[]}),zt=de.length===0&&m.filter(u=>!me(R(u))).every(u=>typeof u.$ref=="string"||A.includes(u)),Qt=A.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===ve||z(e)&&p[0]==="multivariate")}),we=(u=[])=>{const p=new Map;for(const S of[...A,...m.filter(T=>!A.includes(T)).flatMap(T=>W(T)),...u]){const T=Q(S);T&&!p.has(T)&&p.set(T,S)}const g=[...p].map(([S,T])=>({resolveType:S,title:typeof T.title=="string"?T.title:re(S),description:typeof T.description=="string"?T.description:void 0,schema:I(T,y+1,p.size)})),v=[];for(const S of m){if(A.includes(S)||typeof S.$ref!="string")continue;const T=s(S.$ref);let X;const J=T.properties?.__resolveType;if(Array.isArray(J?.enum)&&typeof J.enum[0]=="string"&&(X=J.enum[0]),!X&&Array.isArray(T.allOf))for(const Xt of T.allOf){const Me=Xt.properties?.__resolveType?.enum;if(Array.isArray(Me)&&typeof Me[0]=="string"){X=Me[0];break}}X&&v.push({resolveType:X,title:typeof T.title=="string"&&!T.title.startsWith("#")?T.title:re(X),description:typeof T.description=="string"?T.description:void 0,schema:I(T,y+1,m.length)})}const w=new Set(g.map(S=>S.resolveType)),b=[...g,...v.filter(S=>!w.has(S.resolveType))],L=m.filter(S=>!A.includes(S)),V=L.length===1&&!O?M(L[0],y+1,x):void 0;return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:void 0,description:typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:void 0,anyOfRefs:b,acceptsAnySection:k,plainSchema:V,hidden:j(l)||j(a)?!0:void 0}};if(U){const u=!pt(U,s);if(u&&de.length>0){const p=typeof a.title=="string"?a.title:typeof l.title=="string"&&!D(l.title)?l.title:void 0,g=typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:void 0,v=m.find(b=>me(R(b))),w=de.flatMap(b=>b.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((b,L)=>({title:_(b,`Option ${L+1}`),schema:M(b,y+1,x)})),{title:_(v,`Option ${w.length+1}`),schema:M(U,y+1,x)}],loaderRef:{...we(de.flatMap(b=>b.loaders)),title:p,description:g},hidden:j(l)||j(a)?!0:void 0}}if(u&&m.length>1&&zt){const p=M(U,y+1,x),g=typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:p.title,v=typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:p.description;return{...p,type:"array",title:g,description:v,loaderRef:A.length>0?{...we(),title:g,description:v}:void 0}}if(Qt){const p=M(U,y+1,x);return{...p,type:"array",title:typeof l.title=="string"?l.title:p.title,description:typeof l.description=="string"?l.description:p.description}}}if(A.length>0)return we();const it=u=>{const p=f(u);if(typeof p.title=="string"&&ct(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 v of p.allOf){const w=v.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},ot=m.map(u=>h(u));if(m.length>1&&ot.every(u=>typeof u=="string")&&!m.some(it)){const u=m.map((p,g)=>{const v=f(p),w=ot[g];return{resolveType:w,title:_(p,w),description:typeof v.description=="string"?v.description:void 0,discriminatorValue:w,discriminatorRequired:[v,...v.allOf??[]].some(b=>Z(b.required).includes("type")),schema:I(v,y+1,m.length,!1)}});return{type:"block-ref",title:typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:void 0,description:typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(l)||j(a)?!0:void 0}}const Be=u=>{if(it(u))return!1;const p=f(u);return p.type==="object"||!!p.properties},Gt=u=>{const p=R(u);return me(p)?!pt(p,s):!1},st=y<xe&&m.every(u=>Be(u)||Gt(u))&&m.some(Be),at=m.every(u=>typeof u.$ref=="string"),Ht=z(e)&&!at&&m.some(u=>typeof u.$ref=="string"&&Nr.has(Fr(s(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Be(u));if((at||Ht)&&!st){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=s(p.$ref);let v,w,b=!1;if(typeof g.title=="string"){const S=ct(g.title);S&&(v=S.blockId,w=S.blockId)}if(!v&&Array.isArray(g.allOf))for(const S of g.allOf){const J=((S.properties??{}).__resolveType??{}).enum;if(Array.isArray(J)&&typeof J[0]=="string"){v=J[0],b=!0;break}}if(!v){const T=g.properties?.__resolveType?.enum;Array.isArray(T)&&typeof T[0]=="string"&&(v=T[0],b=!0)}v||(v=p.$ref.split("/").pop()??"");const L=v.includes("/")||b&&!rr(v),V=L?void 0:h(p);!V&&!L||b&&v==="lazy"||u.push({resolveType:V??v,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:re(v)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:V,schema:I(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:k,title:typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:void 0,description:typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:void 0,anyOfRefs:u,hidden:j(l)||j(a)?!0:void 0}}if(st){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,v)=>{const w=f(g).properties??{},b={};for(const[L,V]of Object.entries(w)){const S=u(V);S!==void 0&&(b[L]=S)}return{title:_(g,`Option ${v+1}`),schema:M(g,y+1),discriminators:Object.keys(b).length?b:void 0}});return{type:"inline-union",title:typeof a.title=="string"?a.title:typeof l.title=="string"?l.title:void 0,description:typeof l.description=="string"?l.description:void 0,inlineUnionBranches:p,hidden:j(l)||j(a)?!0:void 0}}C="object"}}else l.allOf?(C="object",tt=D(l.title)):typeof a.$ref=="string"&&(C="object");let ye,rt,nt=!1;if(y<xe&&!O){const E=q(l),m=E.__resolveType?.enum;nt=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const A=Z(E.__required);A.length>0&&(rt=A);const k=Object.entries(E).filter(([U])=>!U.startsWith("__")&&U!=="@type");if(k.length>0){ye={};for(const[U,je]of k)ye[U]=M(je,y+1,x)}}let Pe;if((C==="array"||l.type==="array")&&y<xe&&!O){const E=l.items;if(E){Pe=M(E,y+1,x);const m=f(E);typeof m.title=="string"&&m.title.includes("{{")&&(Pe.titleBy=m.title)}}const te=E=>{const m=se?.[E];return typeof m=="string"?m:void 0},Yt=()=>{if("default"in a)return a.default;if("default"in l)return l.default;if(se&&"default"in se)return se.default};return{type:C??"string",title:typeof a.title=="string"?a.title:!tt&&typeof l.title=="string"?l.title:te("title"),description:typeof a.description=="string"?a.description:typeof l.description=="string"?l.description:te("description"),default:Yt(),enum:Array.isArray(l.enum)?l.enum:H??void 0,format:typeof a.format=="string"?a.format:typeof l.format=="string"?l.format:te("format"),properties:ye,required:rt,items:Pe,lazy:nt&&ye?.value?!0:void 0,recursiveRef:O&&typeof a.$ref=="string"&&(C==="object"||C==="array"||l.type==="array")?a.$ref:void 0,hidden:j(l)||j(a)?!0:void 0,titleBy:typeof l.titleBy=="string"?l.titleBy:te("titleBy"),image:typeof l.image=="string"?l.image:te("image"),options:typeof a.options=="string"?a.options:typeof l.options=="string"?l.options:te("options")}};if("ref"in t)return M({$ref:t.ref});const ee=c.properties??{},oe=Object.keys(ee).every(a=>a.startsWith("__"));if(Array.isArray(c.allOf)&&c.allOf.length===1&&oe){const a=ee.__resolveType,y=Array.isArray(a?.enum)&&typeof a.enum[0]=="string"?a.enum[0]:typeof a?.const=="string"?a.const:typeof a?.default=="string"?a.default:void 0;for(const d of c.allOf){const l=R(d);if(!(Array.isArray(l.anyOf)||Array.isArray(l.oneOf))||l.properties)continue;const O=M(l,0);if(O.type==="inline-union"&&O.inlineUnionBranches){const x=D(O.title);return{...O,title:x?void 0:O.title,inlineUnionBranches:y?O.inlineUnionBranches.map(I=>({...I,discriminators:{...I.discriminators??{},__resolveType:y}})):O.inlineUnionBranches}}}}const F=q(c),Y={};for(const[a,y]of Object.entries(F))a.startsWith("__")||a==="@type"||(Y[a]=M(y,0));if(Object.keys(Y).length===0)return null;const G=Z(F.__required);return{type:"object",title:typeof c.title=="string"?c.title:void 0,properties:Y,required:G.length>0?G:void 0}}function ai(e,t){const r=t.schema??{},n=Se(e,t),i=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?i[n.$ref.split("/").pop()??""]??{}:n,s=o.properties??{};if(Object.keys(s).some(h=>!h.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const f=s.__resolveType;return!!f&&Array.isArray(f.enum)&&f.enum[0]===e}function ci(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const i={};for(const[o,s]of Object.entries(n))o.startsWith("__")||(i[o]=t(s));return{type:"object",properties:i}}default:return{type:"string"}}},r={};for(const[n,i]of Object.entries(e))n.startsWith("__")||(r[n]=t(i));return Object.keys(r).length===0?null:{type:"object",properties:r}}function Ge(e,t){const r=t.schema??{},n=Se(e,t),i=r.$defs??r.definitions??{},o=typeof n.$ref=="string"?i[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},s=o.icon,c=o.logo,f=o,h=R=>R===!0||R==="true",_=h(f.hide)||h(f.ignore)||h(f.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof s=="string"?s:void 0,logo:typeof c=="string"?c:void 0,hidden:_||void 0}}const kt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Gr=new Set(kt);function He(e){return Gr.has(e)}function Xe(e,t){return He(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function Hr(e,t){return Xe(e,z(t)?t:void 0)}function Je(e){return e.replace(/\/+$/,"")||"/"}function li(e){return e.trim().replace(/^\/+|\/+$/g,"")}function Xr(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function fi(e){const t=e.trim();return t?Xr(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ze=/:([A-Za-z0-9_-]+)|\*/g;function ui(e){const t=[];for(const r of e.matchAll(Ze)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function Ot(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function pi(e){e=Ot(e);const t=[];let r=0;for(const n of e.matchAll(Ze))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function yi(e,t){return Ot(e).replace(Ze,(r,n)=>{const i=t[n??"*"]?.trim();return i?n!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}const Et=kt[0],Jr=new Set(["site/sections/Theme/Theme.tsx"]);function Zr(e,t){return Jr.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function Re(e,t){return!!(Zr(e,z(t))||gt(e)||e.toLowerCase().includes("preview"))}function Pt(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(He(n))return n;return Object.hasOwn(t.pages??{},"page")?"page":Et}function en(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function di(e){return e?en(e)?"page":Pt(e):Et}function Le(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Le(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...Le(r));return t}return[]}function tn(e){const t=e.manifest?.blocks??{},r=[];for(const[n,i]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(i)){if(Re(o,e))continue;const s=Ge(o,e);r.push({resolveType:o,title:s.title??re(o),description:s.description,previewBlock:o,isSavedBlock:!1})}return r}function mi(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,i]of Object.entries(t))if(n.includes("sections"))for(const o of Object.keys(i))Re(o,e)||r.has(o)||r.set(o,{resolveType:o,title:re(o)});return[...r.values()].sort((n,i)=>n.title.localeCompare(i.title))}function jt(e,t){const r=t.__resolveType;if(typeof r!="string")return"";const n=z(e);if(!wt(r,n))return r;const i=t.variants;if(!Array.isArray(i))return r;for(const o of i){const s=mt(o,n);if(!s||typeof s!="object")continue;let c=s.__resolveType;if(typeof c=="string"&>(c)&&(c=s.section?.__resolveType??c),typeof c=="string"&&Fe(e,c))return c}return r}function wt(e,t){return e===We||t&&e===ne}function rn(e,t){return jt(e,t)!==t.__resolveType}function Bt(e,t){const r=[];for(const[n,i]of Object.entries(t)){if(n.includes("/")||Ne(n)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,s=o.__resolveType;typeof s!="string"||He(s)||typeof o.path=="string"||Re(s,e)||!(Fe(e,s)||wt(s,z(e))&&rn(e,o))||r.push({resolveType:n,title:n,description:typeof o.name=="string"?o.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function nn(e,t){const r=_e(t.resolveType,e),n=r?{}:Ge(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||re(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function gi(e,t){const r=Pt(e),n=St(r,e),i=Le(n?.properties?.sections),o=new Map,s=c=>{if(!Re(c.resolveType,e)){if(_e(c.resolveType,e)){Ne(c.resolveType)||o.set(c.resolveType,c);return}Fe(e,c.resolveType)&&(o.has(c.resolveType)||o.set(c.resolveType,c))}};for(const c of tn(e))s(c);for(const c of i)s(nn(e,c));for(const c of Bt(e,t))s(c);return[...o.values()].sort((c,f)=>c.title.localeCompare(f.title))}function hi(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const ke="website/loaders/redirect.ts",vi=new Set([ke,"website/loaders/redirects.ts"]),Oe="redirect",on=[301,302,307,308],sn={temporary:307,permanent:301};function _i(e){return e.flat&&e.status||sn[e.type]}const ge=e=>typeof e=="string"?e:"",an=e=>e==="permanent"?"permanent":"temporary",cn=e=>on.find(t=>t===e);function Mt(e){const t=cn(e.status);return{from:ge(e.from),to:ge(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function Ee(e){if(e?.__resolveType===Oe)return Mt(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ge(t.from),to:ge(t.to),type:an(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function ln(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const i=n;i.__resolveType!==ke&&i.__resolveType!==Oe||t.push({key:r,...Ee(i)})}return t}function bi(e){return Ee(e)}function fn(e,t){if(e.flat){const{status:n,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:Oe,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const r={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(r.discardQueryParameters=!0),{redirect:r,__resolveType:ke}}function un(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const pn=1e3;function Ti(e,t){const r=un(t);for(let n=0;n<pn;n++){const i=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}const yn="Redirects",xt="redirects";function $t(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===xt}function dn(e){return Object.keys(e).filter(r=>$t(e[r])).sort()[0]??yn}function Ai(e,t){const r=e.lastIndexOf("#");if(r<=0)return null;const n=e.slice(0,r),i=e.slice(r+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,n)||!$t(t[n])?null:{block:n,index:Number(i)}}function ie(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(r=>!!r&&typeof r=="object"&&!Array.isArray(r)):[]}function Lt(e){return"redirect"in e?Ee(e):Mt({...e})}function Ct(e,t){const{__resolveType:r,...n}=fn(e,{...t});return n}function Si(e,t){return ie(t).map((r,n)=>[`${e}#${n}`,"redirect"in r?{...r,__resolveType:ke}:{...r,__resolveType:Oe}])}function Ri(e,t=dn(e)){return ie(e[t]).map((r,n)=>({key:`${t}#${n}`,...Lt(r)}))}function ki(e,t){const r=ie(e)[t];return r?Lt(r):Ee(void 0)}function et(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:xt,redirects:t}}function Oi(e,t){return et(e,[...ie(e),Ct(t)])}function Ei(e,t,r){const n=ie(e),i=n.slice();return i[t]=Ct(r,n[t]),et(e,i)}function Pi(e,t){return et(e,ie(e).filter((r,n)=>n!==t))}function mn(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 ji(e,t){const{pageId:r,path:n,pathTemplate:i}=t;if(r){const o=e.find(c=>c.key===r);if(o)return o;const s=e.find(c=>c.key.endsWith(`-${r}`));if(s)return s}if(n){const o=Ce(e,n);if(o)return o}if(i){const o=Ce(e,i);if(o)return o}return null}function Ce(e,t,r){const n=Je;if(r){const o=e.find(s=>s.key===r);if(o)return o}const i=e.filter(o=>n(o.path)===n(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,s)=>o.key.localeCompare(s.key))[0]??null}function wi(e,t,r){const n=Ce(e,t,r);return n||Je(t)!=="/"?n:e[0]??null}const ce="site",Dt="site/apps/site.ts";function De(e,t){return e===ce?!0:t.__resolveType===Dt}function Bi(e,t){return e?It(e,t).length>0||ln(e).length>0?!0:t?bn(e,t).length>0||vn(e,t)?!0:_n(e,t).length>0:!1:!1}function gn(e,t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!Xe(n.__resolveType,r)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:mn(e),path:n.path}}function It(e,t){const r=[];for(const[n,i]of Object.entries(e)){const o=gn(n,i,t);o&&r.push(o)}return r}function Ie(e,t,r=0){if(r>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>Ie(i,t,r+1));const n=e;return typeof n.__resolveType=="string"&&t.has(n.__resolveType)?!0:Object.values(n).some(i=>Ie(i,t,r+1))}function yt(e,t){return nr(e)?ir(e).some(r=>t.has(r)):Ie(e,t)}function hn(e,t,r){const n=It(e,r),i=new Set(n.map(s=>s.key)),o=new Set([t]);for(let s=!0;s;){s=!1;for(const[c,f]of Object.entries(e))o.has(c)||i.has(c)||yt(f,o)&&(o.add(c),s=!0)}return n.filter(s=>s.key!==t&&yt(e[s.key],o))}function Mi(e,t,r){const n=o=>Je(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=hn(e,t,r).sort((o,s)=>n(o)-n(s)||(o.path<s.path?-1:o.path>s.path?1:0));return i??null}function Ut(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Ue(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",i=n?Ge(n,r):{};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 vn(e,t){const r=e[ce];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,i=n.__resolveType;if(typeof i=="string"&&(De(ce,n)||At(t,i)))return{key:ce,name:Ue(ce,n,t),resolveType:i}}for(const[n,i]of Object.entries(e)){if(n.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!De(n,o))continue;const s=typeof o.__resolveType=="string"?o.__resolveType:Dt;return{key:n,name:Ue(n,o,t),resolveType:s}}return null}function _n(e,t){const r=[];for(const[n,i]of Object.entries(e)){if(n.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,s=o.__resolveType;typeof s=="string"&&(Xe(s,t)||typeof o.path!="string"&&(De(n,o)||!At(t,s)&&!Qr(s)||r.push({key:n,name:Ue(n,o,t),resolveType:s})))}return r.sort((n,i)=>n.name.localeCompare(i.name))}function bn(e,t){return Bt(t,e).map(r=>{const n=e[r.resolveType],i=jt(t,n);return{key:r.resolveType,name:r.description??Ut(r.resolveType,n),resolveType:i}}).sort((r,n)=>r.name.localeCompare(n.name))}const Tn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,An={posts:"post",categories:"category",authors:"author"},Vt=["post","category","author"];function he(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function xi(e,...t){const r=e?Tn.exec(e)?.[1]:void 0;if(r)return An[r]??null;for(const n of t){if(!he(n))continue;const i=n.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Vt.find(s=>he(n[s]));if(o)return o}return null}function Sn(...e){for(const t of e)if(he(t))for(const r of Vt){const n=t[r];if(he(n))for(const i of["title","name"]){const o=n[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function Rn(e,t=or){return t(`sectionsEditor.blogKind.${e}`)}function $i(e,t,r){return Sn(...t)??Rn(e,r)}function kn(e){return e.includes("matchers")||e.includes("Match")}function Kt(e,t){const r=e.__resolveType;return typeof r!="string"||!r||Hr(r,t)?!1:t?sr(t,r):kn(r)}function Li(e,t){const r=[];for(const[n,i]of Object.entries(t)){if(n.includes("/")||!_e(n,e)||Ne(n)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;Kt(o,e)&&r.push({blockKey:n,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return r.sort((n,i)=>(n.name??n.blockKey).localeCompare(i.name??i.blockKey))}function pe(e,t,r){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!_e(n,r)||!Object.hasOwn(t,n))return!1;const i=t[n];return!i||typeof i!="object"||Array.isArray(i)?!1:Kt(i,r)}function Ci(e,t,r){return pe(e,t,r)?e?.__resolveType??null:null}function Nt(e,t,r){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(pe(e,t,r)){const s=t[n]??{},c=s.__resolveType??n,{__resolveType:f,name:h,..._}=s;return{resolveType:c,data:_,blockKey:n}}const{__resolveType:i,...o}=e;return{resolveType:n,data:o}}function On(e,t,r){const n=Nt(e,t,r);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function Di(e,t,r){if(e)return pe(e,t,r)?On(e,t,r):e}function En(e,t,r,n){if(!e)return"Default";if(pe(e,t,n)){const i=e.__resolveType??"",o=t[i];return Ut(i,o)}return r(e,Mr(t))}function Ii(e,t,r){return{__resolveType:e,...t,name:r}}function Ui(e){return{__resolveType:e}}function Vi(e,t,r){const n=Nt(e,t,r);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function Ki(e,t){const r={__resolveType:e};if(!e||!t)return r;const n=St(e,t),i=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...r,...i}:r}function Ft(e){const t=[];for(let r=e;r?.key!=null;r=r.parent)t.push(r.key);return t.reverse()}function Pn(e){return{blockKey:e.blockKey,path:Ft(e)}}function jn(e,t,r){const n=[];for(const[o,s]of Object.entries(e))o!==t&&n.push({node:s,blockKey:o,parent:null,key:null});const i=new Set;for(;n.length>0;){const o=n.pop(),{node:s}=o;if(!(!s||typeof s!="object")&&!i.has(s)){if(i.add(s),Array.isArray(s)){s.forEach((c,f)=>{n.push({node:c,blockKey:o.blockKey,parent:o,key:f})});continue}r(s,o);for(const[c,f]of Object.entries(s))n.push({node:f,blockKey:o.blockKey,parent:o,key:c})}}}function wn(e,t,r){if(!t)return[];const n=[];return jn(e,t,(i,o)=>{if(i.__resolveType!==t||!pe(i,e,r))return;const s=Bn(o);n.push({...Pn(o),...s?{variant:s}:{}})}),n}function Bn(e){for(let t=e;t;t=t.parent){const r=t.parent,n=r?.parent,i=n?.parent;if(!r||!n||!i)return;if(t.key==="rule"&&typeof r.key=="number"&&n.key==="variants"&&ue(i.node)&&ar(i.node.__resolveType)){const o=i.node.experiment;return{containerPath:Ft(i),containerType:i.node.__resolveType,index:r.key,...typeof o=="string"?{experiment:o}:{}}}}}function Mn(e){for(const t of e.anyOfRefs??[]){if(t.resolveType!==ve&&t.resolveType!==ne)continue;const r=t.schema?.properties?.variants?.items?.properties?.value,n=r?.lazy?r.properties?.value:r;if(n?.type==="array")return n}}function xn(e){return Mn(e)!==void 0}function Ni(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const r=e;return Array.isArray(r.variants)?r.__resolveType===We?!0:t&&r.__resolveType===ne&&!Wt(r.variants):!1}function Wt(e){return e.some(t=>Array.isArray(be(t)))}function qt(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const r=e;return r.__resolveType===ve?!0:t&&r.__resolveType===ne&&Array.isArray(r.variants)&&Wt(r.variants)}function Fi(e,t){if(!qt(e,t))return null;const r=e.variants;if(!Array.isArray(r))return null;const n=mt(r[0],t);return Array.isArray(n)?n:null}function Wi(e,t,r,n){if(!qt(e,n))return t;const i=structuredClone(e),o=[...i.variants??[]];return o.length===0?o.push({rule:vt(r),value:ht(i.__resolveType,t)}):o[0]=pr(i.__resolveType,o[0],t),{...i,variants:o}}function qi(e,t){const n=e[t]?.sections;if(!n||Array.isArray(n))return 1;const i=n;return Array.isArray(i.variants)?i.variants.length:1}function Yi(e,t,r){const i=e[t]?.sections;if(Array.isArray(i))return r===0?i:[];if(i&&typeof i=="object"){const o=i.variants;if(Array.isArray(o)){const s=be(o[r]);return Array.isArray(s)?s:[]}}return[]}function zi(e,t,r){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const i=n.variants,o=lr(i.map(s=>En(s.rule,t,r)));return i.map((s,c)=>{const f=o[c],h=be(s);return{label:f||`Variant ${c+1}`,sections:Array.isArray(h)?h:[],rule:s.rule}})}}return[]}function $e(e,t,r){return{rule:vt(t),value:ht(r,e)}}function Ve(e,t){return e?e.__resolveType===ne?ne:ve:fr(t)}function le(e,t,r){return{...t,__resolveType:Ve(t,r),variants:e}}function Qi(e,t,r,n=!1){const i=structuredClone(t);if(e&&typeof e=="object"&&!Array.isArray(e)){const f=e;if(!Array.isArray(f.variants))return null;const h=[...f.variants],_=cr(h,n);return h.splice(_,0,$e(i,r,Ve(f))),{sections:le(h,f),newVariantIndex:_}}const o=Ve(void 0,r),s=$e(Array.isArray(e)?e:[],r,o),c=$e(i,r,o);return{sections:le(n?[c,s]:[s,c],void 0,r),newVariantIndex:n?0:1}}function Gi(e,t,r=!1){const n=e[t];if(!n)return null;const i=[...e];return i.splice(yr(e,t,r),0,structuredClone(n)),i}function Hi(e,t){if(t.length===0)return le([],e);if(t.length===1){const r=t[0],n=r?.rule;if(!ur(n))return le(t,e);const i=be(r);if(Array.isArray(i))return i}return le(t,e)}function $n(e,t,r){return wn(e,t,r).length}function Xi(e,t,r,n){return n?!1:$n(e,t,r)===0}const Ji={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function Ke(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===We}function Ln(e){if(e.anyOfRefs?.length)return e.anyOfRefs.some(r=>Ke(r.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(r=>Ke(r.resolveType)):!1}function Zi(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>Ke(t.resolveType))}function eo(e,t){if(t==="global"||t==="sections"||xn(e))return!0;const r=e.type==="array"?e.items:void 0;return r?Ln(r):!1}const Cn="https://github.com/decocms/blocks";function to(){const e=fe.c(14),t=Te();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=$.jsx(_t,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let n;e[1]!==t?(n=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=n):n=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 s;e[7]===Symbol.for("react.memo_cache_sentinel")?(s=$.jsx(hr,{size:14}),e[7]=s):s=e[7];let c;e[8]!==o?(c=$.jsx(qe,{size:"sm",asChild:!0,children:$.jsxs("a",{href:Cn,target:"_blank",rel:"noreferrer",children:[o,s]})}),e[8]=o,e[9]=c):c=e[9];let f;return e[10]!==n||e[11]!==i||e[12]!==c?(f=$.jsx(Ye,{className:"h-full w-full",image:r,title:n,description:i,actions:c}),e[10]=n,e[11]=i,e[12]=c,e[13]=f):f=e[13],f}function ro(e){const t=fe.c(15),{source:r,onRetry:n}=e,i=Te();let o;t[0]!==r||t[1]!==i?(o=i(r==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=r,t[1]=i,t[2]=o):o=t[2];const s=o;let c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=$.jsx(jr,{size:48,className:"text-muted-foreground"}),t[3]=c):c=t[3];let f;t[4]!==i?(f=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=f):f=t[5];let h;t[6]!==i?(h=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=h):h=t[7];let _;t[8]!==n||t[9]!==h?(_=$.jsx(qe,{variant:"outline",size:"sm",onClick:n,children:h}),t[8]=n,t[9]=h,t[10]=_):_=t[10];let R;return t[11]!==s||t[12]!==f||t[13]!==_?(R=$.jsx(Ye,{image:c,title:f,description:s,actions:_}),t[11]=s,t[12]=f,t[13]=_,t[14]=R):R=t[14],R}function no(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function io(){const e=fe.c(16),t=Te(),{org:r}=dr();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=$.jsx(_t,{size:48,className:"text-muted-foreground"}),e[0]=n):n=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 s;e[5]!==r.slug?(s={org:r.slug},e[5]=r.slug,e[6]=s):s=e[6];let c;e[7]!==t?(c=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=c):c=e[8];let f;e[9]!==s||e[10]!==c?(f=$.jsx(qe,{size:"sm",variant:"outline",asChild:!0,children:$.jsx(mr,{to:"/$org/projects",params:s,"data-testid":"site-not-owned-projects",children:c})}),e[9]=s,e[10]=c,e[11]=f):f=e[11];let h;return e[12]!==i||e[13]!==o||e[14]!==f?(h=$.jsx(Ye,{className:"h-full w-full",image:n,title:i,description:o,actions:f}),e[12]=i,e[13]=o,e[14]=f,e[15]=h):h=e[15],h}function oo(e){const t=fe.c(6),{backend:r}=e,n=Te(),i=r.kind==="pending"?r.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=$.jsx(gr,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let s;t[1]!==i||t[2]!==n?(s=i&&$.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:n("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=n,t[3]=s):s=t[3];let c;return t[4]!==s?(c=$.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,s]}),t[4]=s,t[5]=c):c=t[5],c}export{Ji as $,Re as A,ro as B,oo as C,St as D,Ut as E,xt as F,Si as G,Qn as H,jt as I,bi as J,Ai as K,ji as L,vn as M,Ae as N,ln as O,mi as P,qi as Q,sn as R,io as S,vi as T,Qi as U,dn as V,Ri as W,Ti as X,fn as Y,Oi as Z,Pi as _,li as a,qn as a0,Hr as a1,en as a2,di as a3,Le as a4,He as a5,xn as a6,si as a7,eo as a8,Li as a9,Rn as aA,Ke as aB,Et as aC,ft as aD,ti as aE,Yn as aF,ei as aG,Xn as aH,ri as aI,Sn as aJ,ni as aK,Jn as aL,hi as aM,Nt as aN,Ce as aO,Hi as aP,Xi as aQ,Gi as aR,ki as aS,on as aT,Ei as aU,On as aa,Ui as ab,Di as ac,zi as ad,Zi as ae,gi as af,En as ag,Ci as ah,Vi as ai,Zn as aj,pe as ak,Ii as al,Ki as am,Ni as an,qt as ao,Fi as ap,Wi as aq,Mn as ar,ai as as,ci as at,Wn as au,gn as av,mn as aw,xi as ax,$i as ay,Gn as az,to as b,bn as c,wi as d,It as e,yi as f,Yi as g,Bi as h,no as i,Hn as j,zn as k,Pt as l,oi as m,Je as n,Dt as o,Mi as p,De as q,Mr as r,pi as s,Qr as t,ii as u,fi as v,Ue as w,Ge as x,_i as y,ui 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-Cvc22Qvh.js";import{l as v}from"./agent-icon-DD6O0sln.js";import{a1 as P,x as K,a0 as D,a2 as W}from"./parse-sections-BTDQNPKy.js";import{t as y}from"./ChevronUp-B0uKxpVg.js";import{C as I,a as Y,b as w}from"./collapsible-CehJ-xlR.js";import{M as B,W as L}from"./content-tab-Bc_Tg1a4.js";function $(l){const e=O.c(2);let t;return e[0]!==l?(t=i.jsx(P,{children:i.jsx(K,{...l})}),e[0]=l,e[1]=t):t=e[1],t}function A(l){const e=O.c(18),{icon:t,title:o,defaultOpen:c,children:d}=l,j=c===void 0?!1:c,[f,C]=_.useState(j);let m;e[0]!==t?(m=i.jsx(t,{size:15}),e[0]=t,e[1]=m):m=e[1];let s;e[2]!==o?(s=i.jsx("span",{className:"flex-1 text-left",children:o}),e[2]=o,e[3]=s):s=e[3];const b=f&&"rotate-180";let n;e[4]!==b?(n=R("transition-transform",b),e[4]=b,e[5]=n):n=e[5];let p;e[6]!==n?(p=i.jsx(y,{size:15,className:n}),e[6]=n,e[7]=p):p=e[7];let r;e[8]!==m||e[9]!==s||e[10]!==p?(r=i.jsx(I,{asChild:!0,children:i.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground cursor-pointer",children:[m,s,p]})}),e[8]=m,e[9]=s,e[10]=p,e[11]=r):r=e[11];let a;e[12]!==d?(a=i.jsx(Y,{className:"px-2 pt-4",children:d}),e[12]=d,e[13]=a):a=e[13];let u;return e[14]!==f||e[15]!==r||e[16]!==a?(u=i.jsxs(w,{open:f,onOpenChange:C,className:"mt-4",children:[r,a]}),e[14]=f,e[15]=r,e[16]=a,e[17]=u):u=e[17],u}function Z(l){const e=O.c(32),{schema:t,value:o,onChange:c,basePath:d,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}=l,s=T();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const[n,p]=_.useState(b);if(!t)return null;let r;e[1]!==s?(r=s("sandbox.blogCustomFields.title"),e[1]=s,e[2]=r):r=e[2];let a;e[3]!==s?(a=s("sandbox.blogCustomFields.description"),e[3]=s,e[4]=a):a=e[4];let u;e[5]!==a?(u=i.jsx("p",{className:"mb-4 text-xs text-muted-foreground",children:a}),e[5]=a,e[6]=u):u=e[6];let x;e[7]!==s?(x=s("sandbox.blogCustomFields.breadcrumbLabel"),e[7]=s,e[8]=x):x=e[8];let h;e[9]!==s?(h=s("sandbox.blogCustomFields.backToFields"),e[9]=s,e[10]=h):h=e[10];let g;e[11]!==n||e[12]!==x||e[13]!==h?(g=i.jsx(D,{path:n,onNavigate:p,label:x,backTitle:h}),e[11]=n,e[12]=x,e[13]=h,e[14]=g):g=e[14];let S;e[15]!==c?(S=F=>c(F),e[15]=c,e[16]=S):S=e[16];let E;e[17]!==d||e[18]!==n||e[19]!==f||e[20]!==j||e[21]!==m||e[22]!==C||e[23]!==t||e[24]!==S||e[25]!==o?(E=i.jsx($,{schema:t,value:o,onChange:S,basePath:d,breadcrumbPath:n,onBreadcrumbChange:p,meta:j,decofile:f,sandbox:C,onSaveReferencedBlock:m}),e[17]=d,e[18]=n,e[19]=f,e[20]=j,e[21]=m,e[22]=C,e[23]=t,e[24]=S,e[25]=o,e[26]=E):E=e[26];let N;return e[27]!==r||e[28]!==u||e[29]!==g||e[30]!==E?(N=i.jsxs(A,{icon:v,title:r,children:[u,g,E]}),e[27]=r,e[28]=u,e[29]=g,e[30]=E,e[31]=N):N=e[31],N}function k(l,e){if(!e)return null;const o=W(B[l],e)?.properties?.[L[l]];if(!o)return null;const c=o.properties?o:o.plainSchema;return c?.properties?c:null}const z=new Set(["__resolveType","@type"]);function G(l,e){const t=l?.properties;if(!t)return null;const o=Object.fromEntries(Object.entries(t).filter(([c,d])=>!e.has(c)&&!z.has(c)&&d.hidden!==!0));return Object.keys(o).length===0?null:{type:"object",properties:o}}function ee(l,e,t){return G(k(l,e),t)}const M=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(M),V=["name","slug","parentSlug","description","sections"],se=new Set(V);export{Z as C,te as K,$ as S,A as a,ee as b,se as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,b as T,j as t,hV as W,r as S,B as L,D as X,v as Y,w as Z,x as ee,aT as te,I as D,y as se,bj as ie,t as K,ay as O,g1 as le,aH as ne,aI as re,aJ as ce,aK as ae,aL as oe,aM as de,aN as ue}from"./index-CoIqGnkT.js";import{i as fe}from"./AlertCircle-DlXniLTL.js";import{s as V}from"./Plus-Dwl0ymG8.js";import{s as me}from"./Trash01-CLcCE4W6.js";import{B as R}from"./badge-CM9VoPn3.js";import{E as ge}from"./empty-state-CibwE54W.js";import{L as B}from"./label-Cz3ISXTG.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-DR3RwfpI.js";import{S as je}from"./switch-CzTsDB3z.js";import{T as ke}from"./textarea-DH4lLGjS.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-CGfkm6PJ.js";import{R as Se}from"./require-capability-DrZOeXFb.js";import"./index-BdQq_4o_.js";import"./index-DQFlQUCO.js";import"./ChevronUp-0ZUNuXoh.js";import"./access-gate-C2fRlAo_.js";import"./capability-load-error-BlktRdv_.js";function Ne(i,e){if(!(i instanceof Error))return e;const s=i.message.match(/\[\s*\{[\s\S]*\}\s*\]/);if(s)try{const l=JSON.parse(s[0])[0];if(l?.message){const r=l.path?.join(".");return r?`${r}: ${l.message}`:l.message}}catch{}return i.message||e}function Be(i){const e=F.c(6),{error:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(fe,{size:16}),e[0]=l):l=e[0];let r;e[1]!==s.message||e[2]!==n?(r=n("settings.buckets.failedToLoadConfigs",{error:s.message}),e[1]=s.message,e[2]=n,e[3]=r):r=e[3];let c;return e[4]!==r?(c=t.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[l,t.jsx("span",{className:"text-sm font-medium",children:r})]}),e[4]=r,e[5]=c):c=e[5],c}function De(i){const e=F.c(51),{config:s,onDelete:n}=i,l=T();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:t.jsx(O,{size:16,className:"text-muted-foreground"})}),e[0]=r):r=e[0];let c;e[1]!==s.name?(c=t.jsx("span",{className:"font-medium text-sm truncate",children:s.name}),e[1]=s.name,e[2]=c):c=e[2];let o;e[3]!==s.credentialType||e[4]!==l?(o=s.credentialType==="sts-session"?t.jsx(R,{variant:"muted",size:"sm",children:"STS"}):s.credentialType==="managed"?t.jsx(R,{variant:"muted",size:"sm",children:l("settings.buckets.managed")}):null,e[3]=s.credentialType,e[4]=l,e[5]=o):o=e[5];let d;e[6]!==s.bucket||e[7]!==s.region?(d=t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:[s.bucket," · ",s.region]}),e[6]=s.bucket,e[7]=s.region,e[8]=d):d=e[8];let a;e[9]!==c||e[10]!==o||e[11]!==d?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[c,o,d]}),e[9]=c,e[10]=o,e[11]=d,e[12]=a):a=e[12];let u;e[13]!==s.description?(u=s.description?t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:s.description}):null,e[13]=s.description,e[14]=u):u=e[14];let x;e[15]!==s.endpoint||e[16]!==s.forcePathStyle||e[17]!==l?(x=s.endpoint?t.jsxs("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:[s.endpoint,s.forcePathStyle?` (${l("settings.buckets.pathStyle")})`:""]}):null,e[15]=s.endpoint,e[16]=s.forcePathStyle,e[17]=l,e[18]=x):x=e[18];let v;e[19]!==s.prefix||e[20]!==l?(v=s.prefix?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.prefix",{prefix:s.prefix})}):null,e[19]=s.prefix,e[20]=l,e[21]=v):v=e[21];let p;e[22]!==s.publicUrlBase||e[23]!==l?(p=s.publicUrlBase?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.public",{url:s.publicUrlBase})}):null,e[22]=s.publicUrlBase,e[23]=l,e[24]=p):p=e[24];let h;e[25]!==a||e[26]!==u||e[27]!==x||e[28]!==v||e[29]!==p?(h=t.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[r,t.jsxs("div",{className:"min-w-0",children:[a,u,x,v,p]})]}),e[25]=a,e[26]=u,e[27]=x,e[28]=v,e[29]=p,e[30]=h):h=e[30];let b;e[31]!==s.createdAt?(b=new Date(s.createdAt).toLocaleDateString(),e[31]=s.createdAt,e[32]=b):b=e[32];let C;e[33]!==b?(C=t.jsx("span",{className:"text-xs text-muted-foreground",children:b}),e[33]=b,e[34]=C):C=e[34];let y;e[35]!==s||e[36]!==n?(y=()=>n(s),e[35]=s,e[36]=n,e[37]=y):y=e[37];let j;e[38]!==s.name||e[39]!==l?(j=l("settings.buckets.deleteButton",{name:s.name}),e[38]=s.name,e[39]=l,e[40]=j):j=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(me,{size:14}),e[41]=k):k=e[41];let f;e[42]!==y||e[43]!==j?(f=t.jsx(L,{variant:"ghost",size:"sm",onClick:y,"aria-label":j,children:k}),e[42]=y,e[43]=j,e[44]=f):f=e[44];let m;e[45]!==C||e[46]!==f?(m=t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[C,f]}),e[45]=C,e[46]=f,e[47]=m):m=e[47];let N;return e[48]!==h||e[49]!==m?(N=t.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,m]}),e[48]=h,e[49]=m,e[50]=N):N=e[50],N}function Pe(i){const e=F.c(15),{onCreate:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(O,{}),e[0]=l):l=e[0];let r;e[1]!==n?(r=n("settings.buckets.noBucketsConfigured"),e[1]=n,e[2]=r):r=e[2];let c;e[3]!==n?(c=n("settings.buckets.emptyStateDescription"),e[3]=n,e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(V,{size:14}),e[5]=o):o=e[5];let d;e[6]!==n?(d=n("settings.buckets.addBucket"),e[6]=n,e[7]=d):d=e[7];let a;e[8]!==s||e[9]!==d?(a=t.jsxs(L,{onClick:s,size:"sm",children:[o,d]}),e[8]=s,e[9]=d,e[10]=a):a=e[10];let u;return e[11]!==r||e[12]!==c||e[13]!==a?(u=t.jsx(le,{children:t.jsx(ge,{size:"inline",icon:l,title:r,description:c,children:a})}),e[11]=r,e[12]=c,e[13]=a,e[14]=u):u=e[14],u}function I({open:i,onOpenChange:e}){const s=T(),[n,l]=S.useState(""),[r,c]=S.useState(""),[o,d]=S.useState(""),[a,u]=S.useState(""),[x,v]=S.useState(""),[p,h]=S.useState(!1),[b,C]=S.useState(""),[y,j]=S.useState(""),[k,f]=S.useState("static"),[m,N]=S.useState(""),[P,_]=S.useState(""),[w,A]=S.useState(""),[z,E]=S.useState(""),U=ve();function H(){l(""),c(""),d(""),u(""),v(""),h(!1),C(""),j(""),f("static"),N(""),_(""),A(""),E("")}const $=k==="sts-session"?!!(w.trim()&&z.trim()):!!(m&&P);async function J(g){if(g.preventDefault(),!n.trim()||!o.trim()||!a.trim()||!$)return;const M=k==="sts-session"?{credentialType:"sts-session",refreshUrl:w.trim(),apiKey:z.trim()}:{credentialType:"static",accessKeyId:m,secretAccessKey:P};try{await U.mutateAsync({name:n.trim(),description:r.trim()||void 0,bucket:o.trim(),region:a.trim(),endpoint:x.trim()||void 0,forcePathStyle:p,prefix:b.trim()||void 0,publicUrlBase:y.trim()||void 0,...M}),K.success(s("settings.buckets.bucketAdded",{name:n.trim()})),H(),e(!1)}catch(Q){K.error(Ne(Q,s("settings.buckets.failedToAddBucket")))}}const G=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:J,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-name",children:s("settings.buckets.nameLabel")}),t.jsx(D,{id:"file-config-name",value:n,onChange:g=>l(g.target.value),placeholder:s("settings.buckets.namePlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.nameHelperText")})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-bucket",children:s("settings.buckets.bucketLabel")}),t.jsx(D,{id:"file-config-bucket",value:o,onChange:g=>d(g.target.value),placeholder:s("settings.buckets.bucketPlaceholder"),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-region",children:s("settings.buckets.regionLabel")}),t.jsx(D,{id:"file-config-region",value:a,onChange:g=>u(g.target.value),placeholder:s("settings.buckets.regionPlaceholder"),autoComplete:"off",required:!0})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-endpoint",children:s("settings.buckets.endpointLabel")}),t.jsx(D,{id:"file-config-endpoint",type:"url",value:x,onChange:g=>v(g.target.value),placeholder:s("settings.buckets.endpointPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.endpointHelperText")})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 p-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx(B,{htmlFor:"file-config-path-style",className:"text-sm",children:s("settings.buckets.forcePathStyleLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("settings.buckets.forcePathStyleHelperText")})]}),t.jsx(je,{id:"file-config-path-style",checked:p,onCheckedChange:h})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-prefix",children:s("settings.buckets.prefixLabel")}),t.jsx(D,{id:"file-config-prefix",value:b,onChange:g=>C(g.target.value),placeholder:s("settings.buckets.prefixPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.prefixHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-public-url-base",children:s("settings.buckets.publicUrlBaseLabel")}),t.jsx(D,{id:"file-config-public-url-base",type:"url",value:y,onChange:g=>j(g.target.value),placeholder:s("settings.buckets.publicUrlBasePlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.publicUrlBaseHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-credential-type",children:s("settings.buckets.credentialsLabel")}),t.jsxs(xe,{value:k,onValueChange:g=>f(g),children:[t.jsx(pe,{id:"file-config-credential-type",className:"w-full",children:t.jsx(he,{})}),t.jsxs(be,{children:[t.jsx(q,{value:"static",children:s("settings.buckets.staticKeyOption")}),t.jsx(q,{value:"sts-session",children:s("settings.buckets.temporarySessionOption")})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s(k==="sts-session"?"settings.buckets.stsSessionHelperText":"settings.buckets.staticKeyHelperText")})]}),k==="static"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-access-key",children:s("settings.buckets.accessKeyIdLabel")}),t.jsx(D,{id:"file-config-access-key",value:m,onChange:g=>N(g.target.value),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-secret-key",children:s("settings.buckets.secretAccessKeyLabel")}),t.jsx(D,{id:"file-config-secret-key",type:"password",value:P,onChange:g=>_(g.target.value),autoComplete:"new-password",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-refresh-url",children:s("settings.buckets.refreshUrlLabel")}),t.jsx(D,{id:"file-config-refresh-url",type:"url",value:w,onChange:g=>A(g.target.value),placeholder:s("settings.buckets.refreshUrlPlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.refreshUrlHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-api-key",children:s("settings.buckets.apiKeyLabel")}),t.jsx(D,{id:"file-config-api-key",type:"password",value:z,onChange:g=>E(g.target.value),autoComplete:"new-password",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.apiKeyHelperText")})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-description",children:s("settings.buckets.descriptionLabel")}),t.jsx(ke,{id:"file-config-description",value:r,onChange:g=>c(g.target.value),rows:2,placeholder:s("settings.buckets.descriptionPlaceholder")})]}),t.jsxs(se,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>{H(),e(!1)},disabled:U.isPending,children:s("settings.buckets.cancelButton")}),t.jsx(L,{type:"submit",disabled:G,children:U.isPending?s("settings.buckets.addingButton"):s("settings.buckets.addBucketButton")})]})]})]})})}function Fe(i){const e=F.c(41),{config:s,onClose:n}=i,l=T(),r=Ce();let c;e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l?(c=async function(){if(s)try{await r.mutateAsync(s.id),K.success(l("settings.buckets.bucketRemoved",{name:s.name})),n()}catch(w){const A=w;K.error(A instanceof Error?A.message:l("settings.buckets.failedToRemoveBucket"))}},e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=c):c=e[4];const o=c,d=s!==null;let a;e[5]!==n?(a=_=>!_&&n(),e[5]=n,e[6]=a):a=e[6];let u;e[7]!==l?(u=l("settings.buckets.removeBucketTitle"),e[7]=l,e[8]=u):u=e[8];let x;e[9]!==u?(x=t.jsx(ne,{children:u}),e[9]=u,e[10]=x):x=e[10];const v=s?.name??"";let p;e[11]!==l||e[12]!==v?(p=l("settings.buckets.removeBucketDescription",{name:v}),e[11]=l,e[12]=v,e[13]=p):p=e[13];let h;e[14]!==p?(h=t.jsx(re,{children:p}),e[14]=p,e[15]=h):h=e[15];let b;e[16]!==x||e[17]!==h?(b=t.jsxs(ce,{children:[x,h]}),e[16]=x,e[17]=h,e[18]=b):b=e[18];const C=r.isPending;let y;e[19]!==l?(y=l("settings.buckets.cancelButton"),e[19]=l,e[20]=y):y=e[20];let j;e[21]!==r.isPending||e[22]!==y?(j=t.jsx(ae,{disabled:C,children:y}),e[21]=r.isPending,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==r.isPending||e[25]!==l?(k=r.isPending?l("settings.buckets.removingButton"):l("settings.buckets.removeButton"),e[24]=r.isPending,e[25]=l,e[26]=k):k=e[26];let f;e[27]!==r.isPending||e[28]!==o||e[29]!==k?(f=t.jsx(ie,{onClick:o,disabled:r.isPending,children:k}),e[27]=r.isPending,e[28]=o,e[29]=k,e[30]=f):f=e[30];let m;e[31]!==j||e[32]!==f?(m=t.jsxs(oe,{children:[j,f]}),e[31]=j,e[32]=f,e[33]=m):m=e[33];let N;e[34]!==m||e[35]!==b?(N=t.jsxs(de,{children:[b,m]}),e[34]=m,e[35]=b,e[36]=N):N=e[36];let P;return e[37]!==N||e[38]!==d||e[39]!==a?(P=t.jsx(ue,{open:d,onOpenChange:a,children:N}),e[37]=N,e[38]=d,e[39]=a,e[40]=P):P=e[40],P}function Te(){const i=F.c(32),e=T(),s=ye(),[n,l]=S.useState(!1),[r,c]=S.useState(null);if(s.length===0){let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{onCreate:()=>l(!0)}),i[0]=f):f=i[0];let m;return i[1]!==n?(m=t.jsxs(t.Fragment,{children:[f,t.jsx(I,{open:n,onOpenChange:l})]}),i[1]=n,i[2]=m):m=i[2],m}let o;i[3]!==s.length||i[4]!==e?(o=e("settings.buckets.bucketsConfigured",{count:s.length}),i[3]=s.length,i[4]=e,i[5]=o):o=i[5];let d;i[6]!==o?(d=t.jsx("p",{className:"text-sm text-muted-foreground",children:o}),i[6]=o,i[7]=d):d=i[7];let a;i[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>l(!0),i[8]=a):a=i[8];let u;i[9]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(V,{size:14}),i[9]=u):u=i[9];let x;i[10]!==e?(x=e("settings.buckets.addBucket"),i[10]=e,i[11]=x):x=i[11];let v;i[12]!==x?(v=t.jsxs(L,{onClick:a,size:"sm",children:[u,x]}),i[12]=x,i[13]=v):v=i[13];let p;i[14]!==d||i[15]!==v?(p=t.jsxs("div",{className:"flex items-center justify-between",children:[d,v]}),i[14]=d,i[15]=v,i[16]=p):p=i[16];let h;if(i[17]!==s){let f;i[19]===Symbol.for("react.memo_cache_sentinel")?(f=m=>t.jsx(De,{config:m,onDelete:c},m.id),i[19]=f):f=i[19],h=s.map(f),i[17]=s,i[18]=h}else h=i[18];let b;i[20]!==h?(b=t.jsx("section",{className:"surface p-5",children:t.jsx("div",{children:h})}),i[20]=h,i[21]=b):b=i[21];let C;i[22]!==n?(C=t.jsx(I,{open:n,onOpenChange:l}),i[22]=n,i[23]=C):C=i[23];let y;i[24]===Symbol.for("react.memo_cache_sentinel")?(y=()=>c(null),i[24]=y):y=i[24];let j;i[25]!==r?(j=t.jsx(Fe,{config:r,onClose:y}),i[25]=r,i[26]=j):j=i[26];let k;return i[27]!==j||i[28]!==p||i[29]!==b||i[30]!==C?(k=t.jsxs(t.Fragment,{children:[p,b,C,j]}),i[27]=j,i[28]=p,i[29]=b,i[30]=C,i[31]=k):k=i[31],k}function _e(){const i=F.c(5),e=T();let s;i[0]!==e?(s=r=>{const{error:c}=r;return t.jsx(Be,{error:c??new Error(e("settings.buckets.failedToLoadConfigsFallback"))})},i[0]=e,i[1]=s):s=i[1];let n;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Te,{}),i[2]=n):n=i[2];let l;return i[3]!==s?(l=t.jsx(W,{group:"storage",errorFallback:s,children:n}),i[3]=s,i[4]=l):l=i[4],l}function Qe(){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{Qe as default};
|
|
1
|
+
import{c as F,b as T,j as t,hV as W,r as S,B as L,D as X,v as Y,w as Z,x as ee,aT as te,I as D,y as se,bj as ie,t as K,ay as O,g1 as le,aH as ne,aI as re,aJ as ce,aK as ae,aL as oe,aM as de,aN as ue}from"./index-Cvc22Qvh.js";import{i as fe}from"./AlertCircle-Cwj2JDLb.js";import{s as V}from"./Plus-Caq968Zm.js";import{s as me}from"./Trash01-DhMVlpac.js";import{B as R}from"./badge-9UZ-oy57.js";import{E as ge}from"./empty-state-CwfRxt_B.js";import{L as B}from"./label-RB5C5N6z.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-GzsOSPza.js";import{S as je}from"./switch-BRZA_xq0.js";import{T as ke}from"./textarea-D7HQlMVo.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-D9BR1kJU.js";import{R as Se}from"./require-capability-BTBUQsVM.js";import"./index-BdQq_4o_.js";import"./index-LnWr599j.js";import"./ChevronUp-B0uKxpVg.js";import"./access-gate-CpAtBb_h.js";import"./capability-load-error-D8AT7eAw.js";function Ne(i,e){if(!(i instanceof Error))return e;const s=i.message.match(/\[\s*\{[\s\S]*\}\s*\]/);if(s)try{const l=JSON.parse(s[0])[0];if(l?.message){const r=l.path?.join(".");return r?`${r}: ${l.message}`:l.message}}catch{}return i.message||e}function Be(i){const e=F.c(6),{error:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(fe,{size:16}),e[0]=l):l=e[0];let r;e[1]!==s.message||e[2]!==n?(r=n("settings.buckets.failedToLoadConfigs",{error:s.message}),e[1]=s.message,e[2]=n,e[3]=r):r=e[3];let c;return e[4]!==r?(c=t.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[l,t.jsx("span",{className:"text-sm font-medium",children:r})]}),e[4]=r,e[5]=c):c=e[5],c}function De(i){const e=F.c(51),{config:s,onDelete:n}=i,l=T();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:t.jsx(O,{size:16,className:"text-muted-foreground"})}),e[0]=r):r=e[0];let c;e[1]!==s.name?(c=t.jsx("span",{className:"font-medium text-sm truncate",children:s.name}),e[1]=s.name,e[2]=c):c=e[2];let o;e[3]!==s.credentialType||e[4]!==l?(o=s.credentialType==="sts-session"?t.jsx(R,{variant:"muted",size:"sm",children:"STS"}):s.credentialType==="managed"?t.jsx(R,{variant:"muted",size:"sm",children:l("settings.buckets.managed")}):null,e[3]=s.credentialType,e[4]=l,e[5]=o):o=e[5];let d;e[6]!==s.bucket||e[7]!==s.region?(d=t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:[s.bucket," · ",s.region]}),e[6]=s.bucket,e[7]=s.region,e[8]=d):d=e[8];let a;e[9]!==c||e[10]!==o||e[11]!==d?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[c,o,d]}),e[9]=c,e[10]=o,e[11]=d,e[12]=a):a=e[12];let u;e[13]!==s.description?(u=s.description?t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:s.description}):null,e[13]=s.description,e[14]=u):u=e[14];let x;e[15]!==s.endpoint||e[16]!==s.forcePathStyle||e[17]!==l?(x=s.endpoint?t.jsxs("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:[s.endpoint,s.forcePathStyle?` (${l("settings.buckets.pathStyle")})`:""]}):null,e[15]=s.endpoint,e[16]=s.forcePathStyle,e[17]=l,e[18]=x):x=e[18];let v;e[19]!==s.prefix||e[20]!==l?(v=s.prefix?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.prefix",{prefix:s.prefix})}):null,e[19]=s.prefix,e[20]=l,e[21]=v):v=e[21];let p;e[22]!==s.publicUrlBase||e[23]!==l?(p=s.publicUrlBase?t.jsx("p",{className:"text-xs text-muted-foreground/80 mt-0.5 truncate font-mono",children:l("settings.buckets.public",{url:s.publicUrlBase})}):null,e[22]=s.publicUrlBase,e[23]=l,e[24]=p):p=e[24];let h;e[25]!==a||e[26]!==u||e[27]!==x||e[28]!==v||e[29]!==p?(h=t.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[r,t.jsxs("div",{className:"min-w-0",children:[a,u,x,v,p]})]}),e[25]=a,e[26]=u,e[27]=x,e[28]=v,e[29]=p,e[30]=h):h=e[30];let b;e[31]!==s.createdAt?(b=new Date(s.createdAt).toLocaleDateString(),e[31]=s.createdAt,e[32]=b):b=e[32];let C;e[33]!==b?(C=t.jsx("span",{className:"text-xs text-muted-foreground",children:b}),e[33]=b,e[34]=C):C=e[34];let y;e[35]!==s||e[36]!==n?(y=()=>n(s),e[35]=s,e[36]=n,e[37]=y):y=e[37];let j;e[38]!==s.name||e[39]!==l?(j=l("settings.buckets.deleteButton",{name:s.name}),e[38]=s.name,e[39]=l,e[40]=j):j=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(me,{size:14}),e[41]=k):k=e[41];let f;e[42]!==y||e[43]!==j?(f=t.jsx(L,{variant:"ghost",size:"sm",onClick:y,"aria-label":j,children:k}),e[42]=y,e[43]=j,e[44]=f):f=e[44];let m;e[45]!==C||e[46]!==f?(m=t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[C,f]}),e[45]=C,e[46]=f,e[47]=m):m=e[47];let N;return e[48]!==h||e[49]!==m?(N=t.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,m]}),e[48]=h,e[49]=m,e[50]=N):N=e[50],N}function Pe(i){const e=F.c(15),{onCreate:s}=i,n=T();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(O,{}),e[0]=l):l=e[0];let r;e[1]!==n?(r=n("settings.buckets.noBucketsConfigured"),e[1]=n,e[2]=r):r=e[2];let c;e[3]!==n?(c=n("settings.buckets.emptyStateDescription"),e[3]=n,e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(V,{size:14}),e[5]=o):o=e[5];let d;e[6]!==n?(d=n("settings.buckets.addBucket"),e[6]=n,e[7]=d):d=e[7];let a;e[8]!==s||e[9]!==d?(a=t.jsxs(L,{onClick:s,size:"sm",children:[o,d]}),e[8]=s,e[9]=d,e[10]=a):a=e[10];let u;return e[11]!==r||e[12]!==c||e[13]!==a?(u=t.jsx(le,{children:t.jsx(ge,{size:"inline",icon:l,title:r,description:c,children:a})}),e[11]=r,e[12]=c,e[13]=a,e[14]=u):u=e[14],u}function I({open:i,onOpenChange:e}){const s=T(),[n,l]=S.useState(""),[r,c]=S.useState(""),[o,d]=S.useState(""),[a,u]=S.useState(""),[x,v]=S.useState(""),[p,h]=S.useState(!1),[b,C]=S.useState(""),[y,j]=S.useState(""),[k,f]=S.useState("static"),[m,N]=S.useState(""),[P,_]=S.useState(""),[w,A]=S.useState(""),[z,E]=S.useState(""),U=ve();function H(){l(""),c(""),d(""),u(""),v(""),h(!1),C(""),j(""),f("static"),N(""),_(""),A(""),E("")}const $=k==="sts-session"?!!(w.trim()&&z.trim()):!!(m&&P);async function J(g){if(g.preventDefault(),!n.trim()||!o.trim()||!a.trim()||!$)return;const M=k==="sts-session"?{credentialType:"sts-session",refreshUrl:w.trim(),apiKey:z.trim()}:{credentialType:"static",accessKeyId:m,secretAccessKey:P};try{await U.mutateAsync({name:n.trim(),description:r.trim()||void 0,bucket:o.trim(),region:a.trim(),endpoint:x.trim()||void 0,forcePathStyle:p,prefix:b.trim()||void 0,publicUrlBase:y.trim()||void 0,...M}),K.success(s("settings.buckets.bucketAdded",{name:n.trim()})),H(),e(!1)}catch(Q){K.error(Ne(Q,s("settings.buckets.failedToAddBucket")))}}const G=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:J,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-name",children:s("settings.buckets.nameLabel")}),t.jsx(D,{id:"file-config-name",value:n,onChange:g=>l(g.target.value),placeholder:s("settings.buckets.namePlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.nameHelperText")})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-bucket",children:s("settings.buckets.bucketLabel")}),t.jsx(D,{id:"file-config-bucket",value:o,onChange:g=>d(g.target.value),placeholder:s("settings.buckets.bucketPlaceholder"),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-region",children:s("settings.buckets.regionLabel")}),t.jsx(D,{id:"file-config-region",value:a,onChange:g=>u(g.target.value),placeholder:s("settings.buckets.regionPlaceholder"),autoComplete:"off",required:!0})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-endpoint",children:s("settings.buckets.endpointLabel")}),t.jsx(D,{id:"file-config-endpoint",type:"url",value:x,onChange:g=>v(g.target.value),placeholder:s("settings.buckets.endpointPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.endpointHelperText")})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 p-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx(B,{htmlFor:"file-config-path-style",className:"text-sm",children:s("settings.buckets.forcePathStyleLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("settings.buckets.forcePathStyleHelperText")})]}),t.jsx(je,{id:"file-config-path-style",checked:p,onCheckedChange:h})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-prefix",children:s("settings.buckets.prefixLabel")}),t.jsx(D,{id:"file-config-prefix",value:b,onChange:g=>C(g.target.value),placeholder:s("settings.buckets.prefixPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.prefixHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-public-url-base",children:s("settings.buckets.publicUrlBaseLabel")}),t.jsx(D,{id:"file-config-public-url-base",type:"url",value:y,onChange:g=>j(g.target.value),placeholder:s("settings.buckets.publicUrlBasePlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.publicUrlBaseHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-credential-type",children:s("settings.buckets.credentialsLabel")}),t.jsxs(xe,{value:k,onValueChange:g=>f(g),children:[t.jsx(pe,{id:"file-config-credential-type",className:"w-full",children:t.jsx(he,{})}),t.jsxs(be,{children:[t.jsx(q,{value:"static",children:s("settings.buckets.staticKeyOption")}),t.jsx(q,{value:"sts-session",children:s("settings.buckets.temporarySessionOption")})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s(k==="sts-session"?"settings.buckets.stsSessionHelperText":"settings.buckets.staticKeyHelperText")})]}),k==="static"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-access-key",children:s("settings.buckets.accessKeyIdLabel")}),t.jsx(D,{id:"file-config-access-key",value:m,onChange:g=>N(g.target.value),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-secret-key",children:s("settings.buckets.secretAccessKeyLabel")}),t.jsx(D,{id:"file-config-secret-key",type:"password",value:P,onChange:g=>_(g.target.value),autoComplete:"new-password",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-refresh-url",children:s("settings.buckets.refreshUrlLabel")}),t.jsx(D,{id:"file-config-refresh-url",type:"url",value:w,onChange:g=>A(g.target.value),placeholder:s("settings.buckets.refreshUrlPlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.refreshUrlHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-api-key",children:s("settings.buckets.apiKeyLabel")}),t.jsx(D,{id:"file-config-api-key",type:"password",value:z,onChange:g=>E(g.target.value),autoComplete:"new-password",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.apiKeyHelperText")})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-description",children:s("settings.buckets.descriptionLabel")}),t.jsx(ke,{id:"file-config-description",value:r,onChange:g=>c(g.target.value),rows:2,placeholder:s("settings.buckets.descriptionPlaceholder")})]}),t.jsxs(se,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>{H(),e(!1)},disabled:U.isPending,children:s("settings.buckets.cancelButton")}),t.jsx(L,{type:"submit",disabled:G,children:U.isPending?s("settings.buckets.addingButton"):s("settings.buckets.addBucketButton")})]})]})]})})}function Fe(i){const e=F.c(41),{config:s,onClose:n}=i,l=T(),r=Ce();let c;e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l?(c=async function(){if(s)try{await r.mutateAsync(s.id),K.success(l("settings.buckets.bucketRemoved",{name:s.name})),n()}catch(w){const A=w;K.error(A instanceof Error?A.message:l("settings.buckets.failedToRemoveBucket"))}},e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=c):c=e[4];const o=c,d=s!==null;let a;e[5]!==n?(a=_=>!_&&n(),e[5]=n,e[6]=a):a=e[6];let u;e[7]!==l?(u=l("settings.buckets.removeBucketTitle"),e[7]=l,e[8]=u):u=e[8];let x;e[9]!==u?(x=t.jsx(ne,{children:u}),e[9]=u,e[10]=x):x=e[10];const v=s?.name??"";let p;e[11]!==l||e[12]!==v?(p=l("settings.buckets.removeBucketDescription",{name:v}),e[11]=l,e[12]=v,e[13]=p):p=e[13];let h;e[14]!==p?(h=t.jsx(re,{children:p}),e[14]=p,e[15]=h):h=e[15];let b;e[16]!==x||e[17]!==h?(b=t.jsxs(ce,{children:[x,h]}),e[16]=x,e[17]=h,e[18]=b):b=e[18];const C=r.isPending;let y;e[19]!==l?(y=l("settings.buckets.cancelButton"),e[19]=l,e[20]=y):y=e[20];let j;e[21]!==r.isPending||e[22]!==y?(j=t.jsx(ae,{disabled:C,children:y}),e[21]=r.isPending,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==r.isPending||e[25]!==l?(k=r.isPending?l("settings.buckets.removingButton"):l("settings.buckets.removeButton"),e[24]=r.isPending,e[25]=l,e[26]=k):k=e[26];let f;e[27]!==r.isPending||e[28]!==o||e[29]!==k?(f=t.jsx(ie,{onClick:o,disabled:r.isPending,children:k}),e[27]=r.isPending,e[28]=o,e[29]=k,e[30]=f):f=e[30];let m;e[31]!==j||e[32]!==f?(m=t.jsxs(oe,{children:[j,f]}),e[31]=j,e[32]=f,e[33]=m):m=e[33];let N;e[34]!==m||e[35]!==b?(N=t.jsxs(de,{children:[b,m]}),e[34]=m,e[35]=b,e[36]=N):N=e[36];let P;return e[37]!==N||e[38]!==d||e[39]!==a?(P=t.jsx(ue,{open:d,onOpenChange:a,children:N}),e[37]=N,e[38]=d,e[39]=a,e[40]=P):P=e[40],P}function Te(){const i=F.c(32),e=T(),s=ye(),[n,l]=S.useState(!1),[r,c]=S.useState(null);if(s.length===0){let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{onCreate:()=>l(!0)}),i[0]=f):f=i[0];let m;return i[1]!==n?(m=t.jsxs(t.Fragment,{children:[f,t.jsx(I,{open:n,onOpenChange:l})]}),i[1]=n,i[2]=m):m=i[2],m}let o;i[3]!==s.length||i[4]!==e?(o=e("settings.buckets.bucketsConfigured",{count:s.length}),i[3]=s.length,i[4]=e,i[5]=o):o=i[5];let d;i[6]!==o?(d=t.jsx("p",{className:"text-sm text-muted-foreground",children:o}),i[6]=o,i[7]=d):d=i[7];let a;i[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>l(!0),i[8]=a):a=i[8];let u;i[9]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(V,{size:14}),i[9]=u):u=i[9];let x;i[10]!==e?(x=e("settings.buckets.addBucket"),i[10]=e,i[11]=x):x=i[11];let v;i[12]!==x?(v=t.jsxs(L,{onClick:a,size:"sm",children:[u,x]}),i[12]=x,i[13]=v):v=i[13];let p;i[14]!==d||i[15]!==v?(p=t.jsxs("div",{className:"flex items-center justify-between",children:[d,v]}),i[14]=d,i[15]=v,i[16]=p):p=i[16];let h;if(i[17]!==s){let f;i[19]===Symbol.for("react.memo_cache_sentinel")?(f=m=>t.jsx(De,{config:m,onDelete:c},m.id),i[19]=f):f=i[19],h=s.map(f),i[17]=s,i[18]=h}else h=i[18];let b;i[20]!==h?(b=t.jsx("section",{className:"surface p-5",children:t.jsx("div",{children:h})}),i[20]=h,i[21]=b):b=i[21];let C;i[22]!==n?(C=t.jsx(I,{open:n,onOpenChange:l}),i[22]=n,i[23]=C):C=i[23];let y;i[24]===Symbol.for("react.memo_cache_sentinel")?(y=()=>c(null),i[24]=y):y=i[24];let j;i[25]!==r?(j=t.jsx(Fe,{config:r,onClose:y}),i[25]=r,i[26]=j):j=i[26];let k;return i[27]!==j||i[28]!==p||i[29]!==b||i[30]!==C?(k=t.jsxs(t.Fragment,{children:[p,b,C,j]}),i[27]=j,i[28]=p,i[29]=b,i[30]=C,i[31]=k):k=i[31],k}function _e(){const i=F.c(5),e=T();let s;i[0]!==e?(s=r=>{const{error:c}=r;return t.jsx(Be,{error:c??new Error(e("settings.buckets.failedToLoadConfigsFallback"))})},i[0]=e,i[1]=s):s=i[1];let n;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Te,{}),i[2]=n):n=i[2];let l;return i[3]!==s?(l=t.jsx(W,{group:"storage",errorFallback:s,children:n}),i[3]=s,i[4]=l):l=i[4],l}function Qe(){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{Qe as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as k,ak as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-
|
|
1
|
+
import{c as k,ak as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-Cvc22Qvh.js";function R(n){const e=k.c(9),f=$();let r;e[0]!==n?(r=T.user(n),e[0]=n,e[1]=r):r=e[1];let c;e[2]!==f||e[3]!==n?(c=async()=>{const{user:o}=await f.call("USER_GET",{id:n});return o},e[2]=f,e[3]=n,e[4]=c):c=e[4];const x=!!n;let t;return e[5]!==r||e[6]!==c||e[7]!==x?(t={queryKey:r,queryFn:c,staleTime:3e5,retry:1,enabled:x},e[5]=r,e[6]=c,e[7]=x,e[8]=t):t=e[8],S(t)}function q(n){const e=k.c(37),{id:f,size:r,showEmail:c,avatarOnly:x,className:t}=n,o=r===void 0?"xs":r,p=c===void 0?!1:c,d=x===void 0?!1:x,y=K(),{data:m,isLoading:w,isError:U}=R(f);if(w){let a;e[0]!==t?(a=b("flex items-center gap-2",t),e[0]=t,e[1]=a):a=e[1];let i;e[2]!==o?(i=s.jsx(E.Skeleton,{shape:"circle",size:o}),e[2]=o,e[3]=i):i=e[3];let l;e[4]!==d||e[5]!==p?(l=!d&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),p&&s.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==i||e[9]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[7]=a,e[8]=i,e[9]=l,e[10]=u):u=e[10],u}if(U||!m){let a;e[11]!==t?(a=b("flex items-center gap-2",t),e[11]=t,e[12]=a):a=e[12];let i;e[13]!==o?(i=s.jsx(E,{shape:"circle",size:o,fallback:"?",muted:!0}),e[13]=o,e[14]=i):i=e[14];let l;e[15]!==d||e[16]!==y?(l=!d&&s.jsx("div",{className:"flex flex-col",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:y("user.user.unknownUser")})}),e[15]=d,e[16]=y,e[17]=l):l=e[17];let u;return e[18]!==a||e[19]!==i||e[20]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[18]=a,e[19]=i,e[20]=l,e[21]=u):u=e[21],u}let v;e[22]!==t?(v=b("flex items-center gap-2",t),e[22]=t,e[23]=v):v=e[23];const N=m.image??void 0;let h;e[24]!==o||e[25]!==N||e[26]!==m.name?(h=s.jsx(E,{shape:"circle",size:o,url:N,fallback:m.name}),e[24]=o,e[25]=N,e[26]=m.name,e[27]=h):h=e[27];let g;e[28]!==d||e[29]!==p||e[30]!==m.email||e[31]!==m.name?(g=!d&&s.jsxs("div",{className:"flex flex-col",children:[s.jsx("div",{className:"text-sm font-medium",children:m.name}),p&&s.jsx("div",{className:"text-xs text-muted-foreground",children:m.email})]}),e[28]=d,e[29]=p,e[30]=m.email,e[31]=m.name,e[32]=g):g=e[32];let j;return e[33]!==v||e[34]!==h||e[35]!==g?(j=s.jsxs("div",{className:v,children:[h,g]}),e[33]=v,e[34]=h,e[35]=g,e[36]=j):j=e[36],j}function z(n){const{managerAgentId:e,managerName:f,kind:r,id:c,instructions:x}=n,t=` to improve the instructions of ${r} "${c}". Here are its current instructions.
|
|
2
2
|
<current_instructions>${x}</current_instructions>`;return{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"Use "},{type:"mention",attrs:{id:e,name:f,char:"@",metadata:{agentId:e,title:f}}},{type:"text",text:t}]}]}}export{q as U,z as b};
|