decocms 4.579.0 → 4.579.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-GXBIxFcm.js → AlertCircle-zr0wX6rF.js} +1 -1
- package/dist/client/assets/{AreaChart-BliO7z1O.js → AreaChart-B2N9Bcti.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BbqwGy0e.js → ArrowLeft-Bl_oOK1R.js} +1 -1
- package/dist/client/assets/{ArrowUp-DBkhb8Yz.js → ArrowUp-elivCbuw.js} +1 -1
- package/dist/client/assets/{BookOpen01-1fjc61Mm.js → BookOpen01-CQcU8DEw.js} +1 -1
- package/dist/client/assets/{CartesianChart-D_ikhSur.js → CartesianChart-GQIn_cdf.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DFr--lUX.js → CategoricalChart-CuZXhd65.js} +1 -1
- package/dist/client/assets/{CheckCircle-B_eEhqJR.js → CheckCircle-BQ_BsFXT.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-D-7E5GYT.js → ChevronSelectorVertical-CWcLLogC.js} +1 -1
- package/dist/client/assets/{ChevronUp-FDrusEQ7.js → ChevronUp-DKklQ3bJ.js} +1 -1
- package/dist/client/assets/{CreditCard01-KjySk-5G.js → CreditCard01-5LLU-cS_.js} +1 -1
- package/dist/client/assets/{Globe04-CYg8V2eL.js → Globe04-C_iZve3L.js} +1 -1
- package/dist/client/assets/{Key01-DY2gyLvd.js → Key01-D0p4-oSK.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CzDrAWsX.js → LinkBroken01-BTepcmNH.js} +1 -1
- package/dist/client/assets/{Minus-CMxaDSgl.js → Minus-DWgslVyP.js} +1 -1
- package/dist/client/assets/{Monitor01-3IwLMf0Q.js → Monitor01-B2hjJJ-O.js} +1 -1
- package/dist/client/assets/{Play-BOARoASB.js → Play-DuBKbsmQ.js} +1 -1
- package/dist/client/assets/{Plus-D452i-ki.js → Plus-CRtXbDBy.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BCPouREj.js → ReferenceLine-BTwFdzkB.js} +1 -1
- package/dist/client/assets/{SearchMd-D9VvymBK.js → SearchMd-DDfy6PV0.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DrNjYHL1.js → ShoppingBag01-onaGPnUG.js} +1 -1
- package/dist/client/assets/{Sun-BvPiksd_.js → Sun-CEK9L4UW.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BzX5npS9.js → SwitchHorizontal01-DzexFd3R.js} +1 -1
- package/dist/client/assets/{Tool01-DoE3EsIZ.js → Tool01-B0TI67n-.js} +1 -1
- package/dist/client/assets/{Tooltip-z7WiBKoc.js → Tooltip-2DMIJ5gg.js} +1 -1
- package/dist/client/assets/{Trash01-_1ewPMOO.js → Trash01-1vS11V6D.js} +1 -1
- package/dist/client/assets/{Upload01-D11ZXRKj.js → Upload01-B5OG3xe6.js} +1 -1
- package/dist/client/assets/{UserSquare-DHrzs2xN.js → UserSquare-BAJzbhuU.js} +1 -1
- package/dist/client/assets/{Users01-DdipP4E2.js → Users01-DaLahyDL.js} +1 -1
- package/dist/client/assets/{XClose-CR92HpkN.js → XClose-RigEwdbR.js} +1 -1
- package/dist/client/assets/{Zap-D5X_AlHR.js → Zap-D0gg60Xv.js} +1 -1
- package/dist/client/assets/{access-gate-CpF5setC.js → access-gate-DpTCyI4G.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DB2eDzSO.js → add-connection-dialog-BFjNmoUE.js} +1 -1
- package/dist/client/assets/agent-app-Bpqc5TKb.js +1 -0
- package/dist/client/assets/{agent-assets-CynthE6_.js → agent-assets-BZW4eVF1.js} +1 -1
- package/dist/client/assets/{agent-automation-1MlsXRHC.js → agent-automation-DeQnvGwK.js} +1 -1
- package/dist/client/assets/{agent-automations-Dol9sHiV.js → agent-automations-EY7zcVw5.js} +1 -1
- package/dist/client/assets/{agent-blog-Db3MOHTb.js → agent-blog-DB-VUOMq.js} +2 -2
- package/dist/client/assets/{agent-blog-post-BWxagJWC.js → agent-blog-post-C7YY31uh.js} +2 -2
- package/dist/client/assets/{agent-calendar-DgGhw5pC.js → agent-calendar-B8bUAVQB.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CtbwhlqH.js → agent-capabilities-DIA4hYXj.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-ByKpOl5Z.js → agent-connect-sources-D-xJzGQW.js} +1 -1
- package/dist/client/assets/agent-deck-Cf_ErplN.js +1 -0
- package/dist/client/assets/{agent-e2e-CmmnhpPI.js → agent-e2e-g0nOI_x-.js} +1 -1
- package/dist/client/assets/agent-experiments-B-8UgQO-.js +1 -0
- package/dist/client/assets/{agent-file-BwXd7p-8.js → agent-file-YPpATd9K.js} +1 -1
- package/dist/client/assets/{agent-hosting-FxuGCE-9.js → agent-hosting-CveWqfNK.js} +1 -1
- package/dist/client/assets/{agent-icon-DPgCnEV1.js → agent-icon-mmszwibp.js} +1 -1
- package/dist/client/assets/agent-library-Dlt2bvFQ.js +1 -0
- package/dist/client/assets/agent-library-file-B139Zw2D.js +1 -0
- package/dist/client/assets/agent-overview-_bAVR0wp.js +1 -0
- package/dist/client/assets/{agent-releases-CkbrqRyS.js → agent-releases-CJfKJEbr.js} +1 -1
- package/dist/client/assets/agent-settings-DOFZ9TlT.js +1 -0
- package/dist/client/assets/{agent-site-editor-ClFcVY3S.js → agent-site-editor-BGtiRMtL.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Bk7jz-8p.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CNbkww_K.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BjbJovHJ.js +1 -0
- package/dist/client/assets/agent-view--Q6sRyG-.js +1 -0
- package/dist/client/assets/{agent-view-guard-BCiwIORn.js → agent-view-guard-D3OOa7MK.js} +1 -1
- package/dist/client/assets/{ai-providers-bDAV58Mn.js → ai-providers-B59fTAqi.js} +1 -1
- package/dist/client/assets/{alert-DXhGyLVy.js → alert-BIXfxm9q.js} +1 -1
- package/dist/client/assets/{analytics-sections-DBGqAepm.js → analytics-sections-BbaWW2MU.js} +1 -1
- package/dist/client/assets/{api-keys-BNfyNQ7I.js → api-keys-B-fVnLBR.js} +1 -1
- package/dist/client/assets/api-keys-B7T782Eb.js +1 -0
- package/dist/client/assets/{app-editor-BiIR6cEw.js → app-editor-DqTsVzBi.js} +1 -1
- package/dist/client/assets/{asset-utils-C4P9UMw5.js → asset-utils-drPwMw_i.js} +1 -1
- package/dist/client/assets/{auth-DET1t4rk.js → auth-Dpio94p4.js} +1 -1
- package/dist/client/assets/{auth-catchall-Ds0jCVCs.js → auth-catchall-CFF3U0RI.js} +1 -1
- package/dist/client/assets/{auth-entry-CcoroHhc.js → auth-entry-LKpobRVJ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DyPur8S6.js → auth-split-layout-CAxtAhO0.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BcQblp8z.js → authenticate-and-persist-oauth-uFSi1ddd.js} +1 -1
- package/dist/client/assets/{automation-list-row-CUs_NzLP.js → automation-list-row-i2iBmqhL.js} +1 -1
- package/dist/client/assets/{automation-runs-CwfQCxx5.js → automation-runs-M9kcTzv1.js} +1 -1
- package/dist/client/assets/{automations-aHGSwKcI.js → automations-DVuSVNP2.js} +1 -1
- package/dist/client/assets/{badge-CPdAi539.js → badge-DQH-sPh3.js} +1 -1
- package/dist/client/assets/{block-document-Bbw2FP3P.js → block-document-CLjK5rGg.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CZpRdqcZ.js → blocks-preview-workspace-context-D5d1lCvq.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-B3rnTo7L.js → blocks-tab-states-BWSDyN-L.js} +1 -1
- package/dist/client/assets/{blog-preview-url-D9nceA8-.js → blog-preview-url-DrIHzDC1.js} +1 -1
- package/dist/client/assets/{blog-schema-CxC8Q-yf.js → blog-schema-Dud6I1hB.js} +1 -1
- package/dist/client/assets/{blog-source-gate-SOnwSY-u.js → blog-source-gate-DgI6bq3U.js} +1 -1
- package/dist/client/assets/{blog-view-gate-CbpRy_w3.js → blog-view-gate-B2-t_Jmu.js} +1 -1
- package/dist/client/assets/{buckets-sxg53sM-.js → buckets-BqsIwhzU.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-D_rPYtI9.js → build-improve-prompt-doc-CxH_m3ql.js} +1 -1
- package/dist/client/assets/{calendar-HFJ5axO1.js → calendar-B5V9ahxZ.js} +1 -1
- package/dist/client/assets/{capability-load-error-BCoAaz36.js → capability-load-error-Cy1nsQed.js} +1 -1
- package/dist/client/assets/{category-editor-BIsXNtK9.js → category-editor-uRLzcWX7.js} +1 -1
- package/dist/client/assets/{category-tree-BwBGBNEZ.js → category-tree-DSMV8uvW.js} +1 -1
- package/dist/client/assets/{chart-_XV_ZGbS.js → chart-CxiHJ7Yx.js} +1 -1
- package/dist/client/assets/{chat-context-DmIaWG0i.js → chat-context-DdWQJl7N.js} +1 -1
- package/dist/client/assets/{chat-draft-D5guZJ-Z.js → chat-draft-CHOcPtOp.js} +1 -1
- package/dist/client/assets/{checkbox-C6L9-jtU.js → checkbox-CVml-3os.js} +1 -1
- package/dist/client/assets/{choose-editor-D-ClYTuz.js → choose-editor-CJgNaynn.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CMqt_C6d.js → cli-auth-success-BSNEAo2d.js} +1 -1
- package/dist/client/assets/{client-icons-BrNyP8bx.js → client-icons-Cvv9MyID.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-Cm7lJgYR.js → cms-settings-editor-DOHwi8qO.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-CTNFCbln.js → cms-store-drafts-Co6hs1Gm.js} +1 -1
- package/dist/client/assets/{collapsible-SBMmc8E3.js → collapsible-ZjNF64KD.js} +1 -1
- package/dist/client/assets/{collection-detail-VM7vyobJ.js → collection-detail-CFrXFPV3.js} +1 -1
- package/dist/client/assets/{collection-display-button-DNT54OXz.js → collection-display-button-D7AaZ59Q.js} +1 -1
- package/dist/client/assets/{collection-search-DXnQxUGL.js → collection-search-DrspIufR.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BtWWhOUa.js → collection-table-wrapper-BTpP_R57.js} +1 -1
- package/dist/client/assets/{collection-tabs-BPEGrrum.js → collection-tabs-2wU6BwIq.js} +1 -1
- package/dist/client/assets/{combobox-B8oSfLQg.js → combobox-BdUyw8jq.js} +1 -1
- package/dist/client/assets/{command-ARXYIBtk.js → command-ByEG2lpR.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CrDXFS6p.js → companion-mcps-section-BpRA6d5a.js} +1 -1
- package/dist/client/assets/{config-FNjB2KQg.js → config-ViHsIgIA.js} +1 -1
- package/dist/client/assets/{connect-D7SeHA4r.js → connect-Aly-0ASI.js} +1 -1
- package/dist/client/assets/{connect-layout-ByVGILi-.js → connect-layout-CbUmd0fU.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-Di53RqvY.js → connect-source-dialog-BI_iSjsz.js} +1 -1
- package/dist/client/assets/{connection-BTlRsp1B.js → connection-Bmlh47OD.js} +1 -1
- package/dist/client/assets/{connection-card-DFMJTK3o.js → connection-card-IGbEiasZ.js} +1 -1
- package/dist/client/assets/{connection-detail-C-BChkKr.js → connection-detail-D7WtScT_.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B9Yi82ri.js → connection-form-helpers-CM8A7qxi.js} +1 -1
- package/dist/client/assets/{connection-slug-COimMHkq.js → connection-slug-rgdaPyVS.js} +1 -1
- package/dist/client/assets/{connections-fJDsaPLw.js → connections-8AsK7z6U.js} +1 -1
- package/dist/client/assets/{content-tab-BV39A4DC.js → content-tab-6WPOlhG9.js} +3 -3
- package/dist/client/assets/{context-DHTHUOqh.js → context-Dgx2LMji.js} +1 -1
- package/dist/client/assets/{context-menu-B-hlKiE1.js → context-menu-h4YtCxvM.js} +1 -1
- package/dist/client/assets/{context-shell-BGKkeMCB.js → context-shell-BbE88Tyf.js} +3 -3
- package/dist/client/assets/{core.esm-Hiw5xlkT.js → core.esm-BzH_Nko5.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-EtzNyw9E.js → create-organization-dialog-CnHhjS0p.js} +1 -1
- package/dist/client/assets/{delete-copy-Bt51Emir.js → delete-copy-pOul_Q0z.js} +1 -1
- package/dist/client/assets/{device-hint-DcULIlAN.js → device-hint-BQG6K9Hf.js} +1 -1
- package/dist/client/assets/{discover-B7EzX3Z4.js → discover-kJdAd045.js} +1 -1
- package/dist/client/assets/{domain-settings-CYdry1vA.js → domain-settings-Bs--YGSm.js} +1 -1
- package/dist/client/assets/{drawer-BUu3Urhv.js → drawer-D7zE3h2P.js} +1 -1
- package/dist/client/assets/{editor-Dc6skLlO.js → editor-B0kphvbT.js} +1 -1
- package/dist/client/assets/{editor-classes-BRb8pzNp.js → editor-classes-SfZ5uUGn.js} +1 -1
- package/dist/client/assets/{empty-message-uyJw_GDm.js → empty-message-DkX3rdbv.js} +1 -1
- package/dist/client/assets/{empty-state-CQ-naxDO.js → empty-state-DKuRC7c7.js} +1 -1
- package/dist/client/assets/{empty-state-yinauESn.js → empty-state-Deh8mRpo.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-n7UpEKSe.js → experiments-tab-choice-BBShWrmo.js} +1 -1
- package/dist/client/assets/{extract-connection-data-UTX_3j8w.js → extract-connection-data-BklHKw1M.js} +1 -1
- package/dist/client/assets/{feature-gate-Caiq88-a.js → feature-gate-BlKXdO61.js} +1 -1
- package/dist/client/assets/{feature-paywall-CgY8XcJe.js → feature-paywall-6uSnqIFO.js} +1 -1
- package/dist/client/assets/{file-explorer-Dt28l_Zt.js → file-explorer-CvkaKFET.js} +1 -1
- package/dist/client/assets/{file-preview-B_OweD07.js → file-preview-B39yfF4F.js} +1 -1
- package/dist/client/assets/{file-share-button-GtMerxGo.js → file-share-button-C2MhJgEK.js} +1 -1
- package/dist/client/assets/{file-type-icon-5sEsvuio.js → file-type-icon-DVZfJOKC.js} +1 -1
- package/dist/client/assets/{folder-icon-BkVkbSXN.js → folder-icon-Dtva_-KR.js} +1 -1
- package/dist/client/assets/{form-DQshgY6C.js → form-DnzJbdNw.js} +1 -1
- package/dist/client/assets/{frame-navigation-DCO55Sf7.js → frame-navigation-mE1IyLxt.js} +1 -1
- package/dist/client/assets/{general-BaBNqFUU.js → general-DUr6-t_c.js} +1 -1
- package/dist/client/assets/{github-icon-CsOyvsM3.js → github-icon-Cd5dQEKt.js} +1 -1
- package/dist/client/assets/{held-block-view-CZDHkd7I.js → held-block-view-HcOuBva8.js} +1 -1
- package/dist/client/assets/{home-Csg3jJI1.js → home-BcJ5qMwh.js} +1 -1
- package/dist/client/assets/{home-overview-BWPQ5B3f.js → home-overview-BEZlL4ib.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-BVY_PuHB.js → hosted-reconcile-DSYVUxqr.js} +1 -1
- package/dist/client/assets/{icon-button-DTP_l7w5.js → icon-button-CR6dftyf.js} +1 -1
- package/dist/client/assets/{index-D8htcGU7.js → index-AyKz2l6b.js} +1 -1
- package/dist/client/assets/{index-CoDU2Q4W.js → index-B1RqPkvO.js} +1 -1
- package/dist/client/assets/{index--NX8xaba.js → index-BpJqVb3l.js} +1 -1
- package/dist/client/assets/{index-B_-7lo18.js → index-C5bUqIA_.js} +1 -1
- package/dist/client/assets/{index-D9OoYQHh.js → index-CBlU77jJ.js} +1 -1
- package/dist/client/assets/{index-BUzNTivf.js → index-CDiUvHd3.js} +1 -1
- package/dist/client/assets/{index-TayDSkqp.js → index-CU2-l5Z1.js} +1 -1
- package/dist/client/assets/{index-PfzOl7J6.js → index-D8HDDDUz.js} +5 -5
- package/dist/client/assets/{index-BtBKqC_9.js → index-DGscs1DX.js} +1 -1
- package/dist/client/assets/{index-BxZUC_i-.js → index-DOkOhXW8.js} +1 -1
- package/dist/client/assets/{index-Chdoy1DO.js → index-DaVJsKZ7.js} +1 -1
- package/dist/client/assets/{index-xX6vrZ6Z.js → index-De51YIVR.js} +1 -1
- package/dist/client/assets/{index-DpynbW7T.js → index-PstEiCy7.js} +1 -1
- package/dist/client/assets/{index-yk7iwtzd.js → index-b6QIszGC.js} +1 -1
- package/dist/client/assets/{index-Cwblfb1K.js → index-gXWGEUwJ.js} +1 -1
- package/dist/client/assets/{index-DThhcUFE.js → index-odrPj5u2.js} +1 -1
- package/dist/client/assets/{index-redirect-BkFuXXfk.js → index-redirect-Dj3mFirc.js} +1 -1
- package/dist/client/assets/{index-COp-j3NW.js → index-uoYFNgrb.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BSITs4kU.js → infiniteQueryObserver-C3DB8A3F.js} +1 -1
- package/dist/client/assets/{infra-billing-BoDxU99n.js → infra-billing-Dv0Y4nq2.js} +1 -1
- package/dist/client/assets/{input-D81euCkI.js → input-B9-LxoR8.js} +1 -1
- package/dist/client/assets/{input-CHXvb5rt.js → input-DCkWhN8u.js} +3 -3
- package/dist/client/assets/{integration-icon-Cypf7ART.js → integration-icon-D10Wu8in.js} +1 -1
- package/dist/client/assets/{item-actions-8EnEtcgh.js → item-actions-ChF-Wajz.js} +1 -1
- package/dist/client/assets/{jira-icon-QIwPAzLK.js → jira-icon-BTl7-hxa.js} +1 -1
- package/dist/client/assets/{label-C3bFtEDk.js → label-C6Eod_61.js} +1 -1
- package/dist/client/assets/{layout-BQNYAbQM.js → layout-KD23pdsL.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-BndvejSa.js → legacy-admin-welcome-dialog-DY8Bixis.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Dl3vADCo.js → legacy-agents-deep-DqEHBKxS.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-ChiwiSS2.js → legacy-main-redirect-xIr91LSW.js} +1 -1
- package/dist/client/assets/library-1Y_LcuJb.js +1 -0
- package/dist/client/assets/{library-tab-CrYnUaco.js → library-tab-C-gyz3ep.js} +1 -1
- package/dist/client/assets/{login-rcDgqa7Z.js → login-LU1xbL-m.js} +1 -1
- package/dist/client/assets/{markdown-sfCsYKJ3.js → markdown-xlCS0Umn.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D149puyc.js → mcp-app-renderer-P6d9M0PC.js} +1 -1
- package/dist/client/assets/{mcp-oauth-jwlMSPw2.js → mcp-oauth-B7XWBzzN.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CSBTsyXo.js → mcp-oauth-B_8eWy31.js} +1 -1
- package/dist/client/assets/{members-CelJ91W8.js → members-TkhB8ase.js} +1 -1
- package/dist/client/assets/{memory-78oDfUbY.js → memory-0HN4vn-X.js} +1 -1
- package/dist/client/assets/{mock-board-1wwE7bgl.js → mock-board-DEylkukw.js} +3 -3
- package/dist/client/assets/{monaco-editor-CdzTj7u7.js → monaco-editor-D37e6fWN.js} +1 -1
- package/dist/client/assets/{monitoring-CMxjfhWD.js → monitoring-CWDPvUi9.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DQq79-Av.js → monitoring-stats-row-BaRGE1me.js} +1 -1
- package/dist/client/assets/{multi-select-DuhSvGkq.js → multi-select-jJMhnt_d.js} +1 -1
- package/dist/client/assets/{mustache-7iPTegv4.js → mustache-B5ZYo9QF.js} +1 -1
- package/dist/client/assets/{named-rule-step-osjl7ntJ.js → named-rule-step-DxjJGQ3W.js} +1 -1
- package/dist/client/assets/{named-rule-view-BLodRfDS.js → named-rule-view-UfrOXS5F.js} +1 -1
- package/dist/client/assets/{new-project-dialog-ddGWO7oU.js → new-project-dialog-Czv5HvtS.js} +1 -1
- package/dist/client/assets/{oauth-callback-O0HaoPhW.js → oauth-callback-PiEldV4w.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-lqjcXm4x.js → oauth-callback-ai-provider-DUkKBpBm.js} +1 -1
- package/dist/client/assets/{oauth-consent-N41ISlqj.js → oauth-consent-CKXF9rY9.js} +1 -1
- package/dist/client/assets/{onboarding-5wyvG1ND.js → onboarding-ACGqZ934.js} +1 -1
- package/dist/client/assets/{openai-conversation-CHwDAykX.js → openai-conversation-BrQdLDfo.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-1aPoGedf.js → optimistic-project-sidebar-views-wCpU8FHx.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BETRE7hY.js → order-monitor-day-az11vn38.js} +1 -1
- package/dist/client/assets/{organization-choice-xEY1ZwIn.js → organization-choice-B4DvsWTU.js} +1 -1
- package/dist/client/assets/{orgs-BV4-A9Pr.js → orgs-BcVTs2Na.js} +1 -1
- package/dist/client/assets/{own-accounts-section-DY9RNK5U.js → own-accounts-section-C9C2gCIB.js} +1 -1
- package/dist/client/assets/{pair-4_jIXzEz.js → pair-CBh8Ssld.js} +1 -1
- package/dist/client/assets/{parse-sections-Crm8e-1O.js → parse-sections-HRX0mYs4.js} +2 -2
- package/dist/client/assets/{plan-TSt9lDnY.js → plan-D-fnFfEU.js} +1 -1
- package/dist/client/assets/{plan-ladder-6lanq0kZ.js → plan-ladder-B-kol46S.js} +1 -1
- package/dist/client/assets/{plan-usage-card-qPS6Eqeb.js → plan-usage-card-C1wYjY71.js} +1 -1
- package/dist/client/assets/{popover-BBhzRgR6.js → popover-BvzfBeCD.js} +1 -1
- package/dist/client/assets/{post-calendar-XeIGYeqg.js → post-calendar-DGT8MPVI.js} +1 -1
- package/dist/client/assets/{post-editor-Cuw86g74.js → post-editor-CJ6LWCYX.js} +1 -1
- package/dist/client/assets/{preview-content-CdaarV-M.js → preview-content-Dg6p6zYi.js} +1 -1
- package/dist/client/assets/{preview-dialog-eUjd7KAO.js → preview-dialog-C6UJFd8t.js} +1 -1
- package/dist/client/assets/{preview-panel-DOASEmB8.js → preview-panel-XviDcPal.js} +1 -1
- package/dist/client/assets/{preview-tab-DHUmCnt8.js → preview-tab-Bsa49d5X.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-z_7jLJp3.js → product-picker-dialog-YdUbY-7g.js} +1 -1
- package/dist/client/assets/{profile-Q_Uil_2O.js → profile-CePaZKJY.js} +1 -1
- package/dist/client/assets/{project-app-view-B_pnPMK9.js → project-app-view-DfiChkFV.js} +1 -1
- package/dist/client/assets/{project-apps-DOmYqPIW.js → project-apps-C9_2F9T-.js} +1 -1
- package/dist/client/assets/{project-icon-DdcX-1Cu.js → project-icon-CaBBGJPF.js} +1 -1
- package/dist/client/assets/{project-index-CvnWioTG.js → project-index-C7nzWFsU.js} +1 -1
- package/dist/client/assets/project-reports-CoqhcCxn.js +1 -0
- package/dist/client/assets/project-tasks-Seoutc84.js +1 -0
- package/dist/client/assets/{projects-BnupWVNC.js → projects-CO4WaEwj.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BBAZx24q.js → projects-empty-state-C5B5zjIl.js} +1 -1
- package/dist/client/assets/{prompts-CtCcnkuf.js → prompts-BjcWFXkv.js} +1 -1
- package/dist/client/assets/{record-editor-kAlyd6wn.js → record-editor-CjT1Sg-6.js} +1 -1
- package/dist/client/assets/{redirect-editor-G5HzKFY7.js → redirect-editor-OA8-5zJv.js} +1 -1
- package/dist/client/assets/{reports-CCeLAtH1.js → reports-BQZNrA6z.js} +1 -1
- package/dist/client/assets/reports-CwkGwbxw.js +1 -0
- package/dist/client/assets/{reports-onboarding-CihuSs_4.js → reports-onboarding-Bo8neYb7.js} +1 -1
- package/dist/client/assets/{reports-tab-CxCo6ljz.js → reports-tab-DgZa_ici.js} +2 -2
- package/dist/client/assets/repositories-BD2JywIJ.js +1 -0
- package/dist/client/assets/{repositories-Cr0Vmqsy.js → repositories-aSnJEtAN.js} +1 -1
- package/dist/client/assets/{repository-binding-BjyWZpYn.js → repository-binding-Dv276sdb.js} +1 -1
- package/dist/client/assets/{repository-picker-BQKFq3La.js → repository-picker-QBlZoWDu.js} +1 -1
- package/dist/client/assets/{require-capability-Ca04y4iT.js → require-capability-DR0RkcLX.js} +1 -1
- package/dist/client/assets/{required-auth-layout-rj346c5-.js → required-auth-layout-DQ6ys2Lb.js} +1 -1
- package/dist/client/assets/{reset-password-CJ8Ib39J.js → reset-password-Cey_yJ7E.js} +1 -1
- package/dist/client/assets/{resizable-BWGQtKDK.js → resizable-B8_D-RUQ.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon--gm9VDQf.js → resolve-tab-icon-BR3-CACo.js} +1 -1
- package/dist/client/assets/{review-settings-DKHV4WWw.js → review-settings-oSfLAO7Q.js} +1 -1
- package/dist/client/assets/{role-color-h7pbmUj8.js → role-color-BUSBfkmC.js} +1 -1
- package/dist/client/assets/{roles-33JtztJp.js → roles-CjDfMF0i.js} +1 -1
- package/dist/client/assets/{route-esSEnbHB.js → route-8L849BD5.js} +1 -1
- package/dist/client/assets/{route-B2mhSQ66.js → route-K2NA94TK.js} +1 -1
- package/dist/client/assets/route-hkkxUpPa.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-ciVvS_mf.js → sandbox-lifecycle-context-D0Fc_zJJ.js} +1 -1
- package/dist/client/assets/{save-status-YxsSW2Rs.js → save-status-1UoG7f0k.js} +1 -1
- package/dist/client/assets/{schema-CWJkmqKK.js → schema-CFwkIhKP.js} +1 -1
- package/dist/client/assets/{schema-MF7uKk3F.js → schema-gPek6tvx.js} +1 -1
- package/dist/client/assets/{scroll-area-D0b5TYGa.js → scroll-area-BhLv10mq.js} +1 -1
- package/dist/client/assets/{search-input-CfjxHAmm.js → search-input-CLSXdutD.js} +1 -1
- package/dist/client/assets/{search-toggle-CvrrivM1.js → search-toggle-DukKK1PI.js} +1 -1
- package/dist/client/assets/{secret-picker-Bh-9Okys.js → secret-picker-BF4D31uF.js} +1 -1
- package/dist/client/assets/{secrets-BpaSArcv.js → secrets-DZpaifDz.js} +1 -1
- package/dist/client/assets/{section-array-field-YpT7n9vG.js → section-array-field-BtcjWtvt.js} +1 -1
- package/dist/client/assets/{sections-BDOnV4mD.js → sections-DiXXDwzo.js} +1 -1
- package/dist/client/assets/{sections-editor-e-APM9PR.js → sections-editor-Nvt7HB4y.js} +1 -1
- package/dist/client/assets/{select-DbxUTGle.js → select-CpVl3_2f.js} +1 -1
- package/dist/client/assets/{select-model-B_SYZDlx.js → select-model-BMlbS-e4.js} +1 -1
- package/dist/client/assets/{seo-editor-BAb4_SVN.js → seo-editor-M_gwXcCt.js} +1 -1
- package/dist/client/assets/{separator-C0AfeS3O.js → separator-DGA-poR7.js} +1 -1
- package/dist/client/assets/settings-tab-BOF9Hfhu.js +1 -0
- package/dist/client/assets/{sheet-BeOc3FAs.js → sheet-C6rtTUBz.js} +1 -1
- package/dist/client/assets/{shell-layout-QlUCYlok.js → shell-layout-DWWwIk_z.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BsBc3-Kf.js → site-draft-actions-D5Biudjs.js} +1 -1
- package/dist/client/assets/{site-draft-view-B2Uxv1of.js → site-draft-view-NNy8S2-k.js} +1 -1
- package/dist/client/assets/site-editor-Du_VAI4F.js +1 -0
- package/dist/client/assets/{site-editor-toast-Bw0qMl-K.js → site-editor-toast-BEWqoKlP.js} +1 -1
- package/dist/client/assets/{skills-DK12dTU3.js → skills-zwuWEnTI.js} +1 -1
- package/dist/client/assets/{slider-DWOCTsGO.js → slider-CBof_Q_V.js} +1 -1
- package/dist/client/assets/{sortable.esm-Bcfqg7Xt.js → sortable.esm-Dy1h1l2l.js} +1 -1
- package/dist/client/assets/{sso-BK-CwpIa.js → sso-DA1qOy6T.js} +1 -1
- package/dist/client/assets/{suggestion-DpDJqics.js → suggestion-D56UF_pQ.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DSWf_C0v.js → super-agent-icon-CN88o8hG.js} +1 -1
- package/dist/client/assets/{switch-CdoFqihq.js → switch-CG9p29mC.js} +1 -1
- package/dist/client/assets/{synced-repos-BBp6YhqW.js → synced-repos-ClnsQNcV.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BA-Ya2gQ.js → tab-icon-glyph-1_FRhmF-.js} +1 -1
- package/dist/client/assets/{table-DBeLX30i.js → table--WoW2Lor.js} +1 -1
- package/dist/client/assets/{tabs-BwIUi1Ro.js → tabs-CnNsL319.js} +1 -1
- package/dist/client/assets/{task-board-Dt94BxWj.js → task-board-DUfmZVQ7.js} +1 -1
- package/dist/client/assets/{task-route-BLTj-Kt_.js → task-route-BZiSHzMD.js} +1 -1
- package/dist/client/assets/{task-status-COZT_U35.js → task-status-DckguLMB.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DTwKCUBR.js → taskboard-analytics-EKZ_Hvd3.js} +1 -1
- package/dist/client/assets/tasks-B2EqX_zH.js +1 -0
- package/dist/client/assets/{tasks-BSIA3XNt.js → tasks-ChO6GiZ2.js} +1 -1
- package/dist/client/assets/{textarea-0zeG6rdh.js → textarea-Cgu68q3w.js} +1 -1
- package/dist/client/assets/{thread-analytics-e-DAlOc7.js → thread-analytics-D56cWHrl.js} +1 -1
- package/dist/client/assets/{thread-intent-k_EWWvIp.js → thread-intent-DFlRKb26.js} +1 -1
- package/dist/client/assets/{thread-route-bIv-22ov.js → thread-route-BRv2L7da.js} +1 -1
- package/dist/client/assets/{thread-route-T4ycKium.js → thread-route-CCB-rd-1.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D5ENmZN2.js → thread-sheet-body-CLb6QMKy.js} +1 -1
- package/dist/client/assets/{time-range-picker-l-A1yfsB.js → time-range-picker-DJQsn3p1.js} +1 -1
- package/dist/client/assets/{toggle-group-BR3YjLpg.js → toggle-group-lGOrFANX.js} +1 -1
- package/dist/client/assets/{tool-namespace-nlvRAMHv.js → tool-namespace-cagFCGCV.js} +1 -1
- package/dist/client/assets/{tool-set-selector-iLTKI2dh.js → tool-set-selector-B71rNLSq.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-C1sAn-5j.js → toolbar-icon-button-jXG-KQc2.js} +1 -1
- package/dist/client/assets/{tooltip-7oUFzrc9.js → tooltip-BZFegydB.js} +1 -1
- package/dist/client/assets/{tooltipContext-BnluVbPZ.js → tooltipContext-C1F2kuWH.js} +1 -1
- package/dist/client/assets/{track-ClTfqB2h.js → track-lfFXhuhn.js} +1 -1
- package/dist/client/assets/{types-CT2b_f_n.js → types-FZCQuIv_.js} +1 -1
- package/dist/client/assets/{url-slug-DlwXWMoY.js → url-slug-B9Zc1vGv.js} +1 -1
- package/dist/client/assets/{usage-stats-DXQh2ym6.js → usage-stats-CphPEBVe.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BV-M-wTR.js → use-ai-providers-xj5bugI1.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-DVA8503u.js → use-apply-named-rule-BWoo6p5O.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-Ckzzwqrc.js +1 -0
- package/dist/client/assets/{use-automations-CkOHisGI.js → use-automations-D1alWz_j.js} +1 -1
- package/dist/client/assets/{use-autosave-CMjKQ8gr.js → use-autosave-iBowYJcP.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DUspd_UU.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-DYxnWGXI.js → use-chat-layout-state-DfKn-NxL.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BRuQD-xn.js → use-cms-publish-actions-3jMkJE3K.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Bz03TbqD.js → use-connect-companion-C_A5Vxk7.js} +1 -1
- package/dist/client/assets/{use-connection-b1ZFdIKu.js → use-connection-CU6X3Wkq.js} +1 -1
- package/dist/client/assets/{use-content-sync-J1DOMeIV.js → use-content-sync-DmmeRMs-.js} +1 -1
- package/dist/client/assets/{use-copy-MGOjhapZ.js → use-copy-Bn5xNYDY.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Db1-0fqy.js → use-date-fns-locale-BwLIR0jW.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-0ckPn95E.js → use-debounced-autosave-CsKCSmG6.js} +1 -1
- package/dist/client/assets/{use-debounced-value-L8Mvr3Qf.js → use-debounced-value-Bd_QEBiw.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CXHEdY4g.js → use-deco-credits-C0pODutp.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CExfz_YN.js → use-decopilot-events-BEba0iFr.js} +1 -1
- package/dist/client/assets/{use-delete-block-C4Fd-0fO.js → use-delete-block-C2VDoxSY.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CiHyt6_e.js → use-delete-connection-Dmwz6pLO.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D6ysmdql.js → use-deployment-admin-DBDDA5Db.js} +1 -1
- package/dist/client/assets/{use-entitlements-DKzKnO7t.js → use-entitlements-D_NXTAyp.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Rhzecu_l.js → use-fast-preview-draft-url-DO0FxQgi.js} +1 -1
- package/dist/client/assets/{use-file-configs-FzJwNbFB.js → use-file-configs-Css7VrGO.js} +1 -1
- package/dist/client/assets/{use-id-selection-DV-7Zfn_.js → use-id-selection-tdP-DqUr.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-P-dmKrll.js → use-inbox-feed-gupZrbXm.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D4cD1T3_.js → use-infinite-scroll-BW-rJXd9.js} +1 -1
- package/dist/client/assets/{use-join-requests-BZyMQ0xJ.js → use-join-requests-B4rRAy5i.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DTyQot8D.js → use-main-panel-tabs-1Vj7wm8E.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BzTNOh9a.js → use-mcp-auth-status-CCeGVwSv.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CVGnTbnR.js → use-mcp-client-CluVMhVq.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C72FS5ih.js → use-mcp-prompts-YffkWL7I.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DQ6qPp-q.js → use-mcp-tools-C1QW6bpR.js} +1 -1
- package/dist/client/assets/{use-mobile-Box5tF93.js → use-mobile-D2Sn1D9v.js} +1 -1
- package/dist/client/assets/{use-move-blocks-D_Vs6N9H.js → use-move-blocks-CWhuO9hg.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BFXAaVqR.js → use-navigate-to-agent-DG4RRc2l.js} +1 -1
- package/dist/client/assets/{use-never-published-D5jr8ByQ.js → use-never-published-D8nGboC4.js} +1 -1
- package/dist/client/assets/{use-org-fs-DhEmmAqR.js → use-org-fs-BySi7x_E.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D4_eFcdp.js → use-org-repo-syncs-CR3rL8dY.js} +1 -1
- package/dist/client/assets/{use-org-sso-PK2UdKUD.js → use-org-sso-C1PNiOLX.js} +1 -1
- package/dist/client/assets/{use-organization-settings-1gniuS7P.js → use-organization-settings-HcETy7Sy.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CWUPdvlx.js → use-project-native-view-presence-DwgE9Oo5.js} +1 -1
- package/dist/client/assets/{use-project-scope-RvpHL0s_.js → use-project-scope-C_D7G_Rp.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B7zKTjxf.js → use-recent-apps-h9IShd63.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Df9ZgP2V.js → use-reports-diagnostic-CKOsUeqn.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BV2Y1Vu8.js → use-sandbox-events-BRyRagyy.js} +1 -1
- package/dist/client/assets/{use-secrets-DE7J5I_l.js → use-secrets-BDiRf3Zk.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BJE9UobB.js → use-section-preview-base-C9b4a3IM.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BFQg4qhu.js → use-sidebar-collapsed-I4_8P9uh.js} +1 -1
- package/dist/client/assets/{use-tags-CV-rF5OD.js → use-tags-BLAg8Bt6.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BFgtA0eR.js → use-task-board-analytics-fe_SM3oJ.js} +1 -1
- package/dist/client/assets/{use-task-board-events-DMey0obH.js → use-task-board-events-DLrBUovp.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-B52UpU_u.js → use-task-board-item-prs-CwDomqDS.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BxTPwb-L.js → use-task-board-items-Bm6zwfzn.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BRQWf9Pf.js → use-task-board-prompts-CjwAHKAM.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CX5mjd3k.js → use-task-metadata-CM4snwYN.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-NzO2uf9T.js → use-thread-outputs-hVznlgM2.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-Czb3VJ2z.js → use-view-draft-kind-Bb6178QK.js} +1 -1
- package/dist/client/assets/{use-voice-input-CJwxrnH4.js → use-voice-input-4p-Pv-qm.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D3dviUwm.js +1 -0
- package/dist/client/assets/{useQueries-BTKHF006.js → useQueries-BDKcwXY5.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CX7nH5DS.js +1 -0
- package/dist/client/assets/{users-C1cmyiHr.js → users-JZFItgDj.js} +1 -1
- package/dist/client/assets/{utils-dLgjLO-5.js → utils-Cjet4zZt.js} +1 -1
- package/dist/client/assets/{variant-calendar-BFvdqyOs.js → variant-calendar-D2b6pfPb.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-uOKZ9bIk.js → variant-matcher-override-CNk4J4xE.js} +1 -1
- package/dist/client/assets/{view-header-g_I-xUvY.js → view-header-DeTc05o9.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CIFm7Ktp.js → virtual-mcp-Dhzw4N7R.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Cs81gduQ.js → watch-sse-pool-C_8RX2D3.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-FoPCQlJh.js +0 -1
- package/dist/client/assets/agent-deck-CYqAnEDO.js +0 -1
- package/dist/client/assets/agent-experiments-C0HV4Igp.js +0 -1
- package/dist/client/assets/agent-library-CZViQovH.js +0 -1
- package/dist/client/assets/agent-library-file-DC-34Ulj.js +0 -1
- package/dist/client/assets/agent-overview-DIMIEsnS.js +0 -1
- package/dist/client/assets/agent-settings-Ct-2qeci.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B_iiio_B.js +0 -2
- package/dist/client/assets/agent-site-editor-content-XnR2gN3f.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DuB0qtlm.js +0 -1
- package/dist/client/assets/agent-view-B8ACan0R.js +0 -1
- package/dist/client/assets/api-keys-BHoBmIeA.js +0 -1
- package/dist/client/assets/library-BRiige9x.js +0 -1
- package/dist/client/assets/project-reports-CjkBj3OZ.js +0 -1
- package/dist/client/assets/project-tasks-BR7DB76X.js +0 -1
- package/dist/client/assets/reports-BZMzVdGj.js +0 -1
- package/dist/client/assets/repositories-xVxXVGUl.js +0 -1
- package/dist/client/assets/route-L9WJSo8Z.js +0 -1
- package/dist/client/assets/settings-tab-BdJ07iEH.js +0 -1
- package/dist/client/assets/site-editor-CkLwv4jN.js +0 -1
- package/dist/client/assets/tasks-CbzokKrd.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BNelLcsB.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-DwFetary.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BVraOGoC.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Ta5X_y4e.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bn as z,c as ce,q as $t,K as nt,i as xt,fC as Lt,f7 as Ct,fl as He,fn as Mt,bw as ne,bx as rt,fD as $e,bj as Ut,bk as it,ff as It,f8 as Dt,by as ot,bz as Nt,fE as Kt,e8 as Vt,b as ye,a4 as Ft,j as L,B as xe,L as qt,h as Wt,a7 as Yt}from"./index-PfzOl7J6.js";import{c as zt,x as Qt,u as Gt,v as Ht,af as Xt,am as Zt,an as Jt,ao as en,ap as tn,C as nn,y as rn}from"./site-editor-toast-Bw0qMl-K.js";import{b as on}from"./sandbox-url-D3mC8qhT.js";import{u as sn}from"./use-voice-input-CJwxrnH4.js";import{i as cn}from"./AlertCircle-GXBIxFcm.js";import{aJ as st}from"./agent-icon-DPgCnEV1.js";import{E as Le}from"./empty-state-CQ-naxDO.js";const K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},de=["experiments","campaigns"];function ur(e){return K[e]}const pr=de.map(e=>K[e].blockKey);function an(e){for(const t of de)if(K[t].matcher===e)return t;return null}function yr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function dr(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const fn="deco";function mr(e,t){if(!z(e))return"missing";const n=K[t],r=Xe(e,n.resolveType),i=Xe(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===fn;return o(r)&&o(i)?"available":"replaced"}function Xe(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function Ze(e,t){const n=K[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,T]of Object.entries(o)){if(l==="__resolveType")continue;const S=t==="experiments"?ln(T):un(T);S===null?f.push(l):c[l]=S}return{kind:"saved",block:o,values:c,invalid:f}}function gr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function hr(e){const t=Ze(e,"experiments"),n=Ze(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function ln(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function un(e){if(!me(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function _r(e){return e<=0?"off":e>=100?"everyone":"running"}function vr(e){if(!me(e))return null;const t=an(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function br(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const pn="date";function Tr(e){return me(e)&&e.__resolveType===pn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function Ar(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function Sr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function yn(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 dn=5e3;function mn(e,t){return e.kind==="live"?new URL("/live/_meta",e.baseUrl).href:on(t,"site-meta")}const gn=new Map;async function hn(e,t,n=gn){const r=n.get(e),i=r==="refused"?void 0:t?.etag,o=await fetch(e,{cache:"no-store",headers:i?{"If-None-Match":i}:{}}).catch(()=>null),c=!o&&!!i&&r===void 0,f=c?await fetch(e,{cache:"no-store",headers:{}}).catch(()=>null):o;if(i&&(c&&f?n.set(e,"refused"):o&&n.set(e,"ok")),t&&(!f||f.status===304))return t;if(!f?.ok)return null;try{return await f.json()}catch{return null}}function _n(e){return nt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Rr(e,t){const n=ce.c(30),{url:r}=zt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Qt(e?.virtualMcpId),{previewServerUrl:l,runtime:T}=sn(e?.virtualMcpId),S=!i&&T==="cms",R=Gt(e?.virtualMcpId,e?.branch),P=R.kind==="protocol"?R:null,Q=$t(),V=Ht(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Xt(e,P):_n({...e,previewUrl:c,productionUrl:l}):nt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let U;n[5]!==R.kind||n[6]!==V||n[7]!==S||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(U=async()=>{if(P){const{meta:d}=await Zt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(R.kind==="unavailable")throw Jt("live meta");const G=()=>S?tn(e):nn(e,rn(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:yn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:S});for(const d of s){if(d.kind==="committed"){const E=await G();if(E.kind==="data")return E.data;continue}const a=Q.getQueryData(j),B=await hn(mn(d,e),i||a?.etag?a:void 0);if(B)return B}const y=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw y.status=502,y},n[5]=R.kind,n[6]=V,n[7]=S,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=U):U=n[17];const W=!!e&&R.kind!=="pending",$=P?!1:i?dn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==S||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||S||i||s.status!==502)&&G<3,n[18]=S,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==U||n[24]!==W||n[25]!==$||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:U,enabled:W,refetchInterval:$,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:en},n[22]=j,n[23]=U,n[24]=W,n[25]=$,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],xt(Y)}const vn=new Set(["split-traffic","calendar"]);function bn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const Tn=12,An=8,Ee=32,Sn=40,Je="__SECTION_REF__";function le(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function et(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const Rn="VideoWidget";function J(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function ct(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ce(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Me(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function at(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ce(e)??Me(e);if(r){for(const f of at(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=ct(e);for(const f of Object.values(n))if(f[i])return f[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function Or(e,t){return Object.keys(ge(e,t)).length>0}function ft(e,t){if(Lt(e,t))return!0;const n=Ce(t)??Me(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(at(n.vendor,n.app).some(c=>c in r))return!0;const i=ct(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function On(e){return e==="site/apps/site.ts"?!1:Ce(e)!==null||Me(e)!==null}function En(e,t){return lt(t,{resolveType:e})}function Er(e,t){return lt(t,{ref:e})}function lt(e,t){const n=e.schema??{},r="resolveType"in t?ge(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const y=s.split("/").pop()??"",d=i[y];return d||(y===Je?o.sections??{}:{})};let f;typeof r.$ref=="string"?f=c(r.$ref):Object.keys(r).length>0?f=r:f=n;const l=s=>typeof s.$ref=="string"?c(s.$ref):s,T=s=>{const d=l(s).properties?.type;if(d){if(typeof d.const=="string")return d.const;if(typeof d.default=="string")return d.default;if(Array.isArray(d.enum)&&typeof d.enum[0]=="string")return d.enum[0]}},S=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},R=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:R(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===Je?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),B=a.anyOf??a.oneOf;if(!Array.isArray(B))return[];const E=new Set([...y,d]);return B.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},U=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>Tn)return{};if(typeof s.$ref=="string"){const B=s.$ref.split("/").pop()??"";return y.has(B)?{}:W(c(s.$ref),new Set([...y,B]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...J(a.__required),...J(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const I=J(a.__required),H=W(x,y,d+1);a={...a,...H};const M=B==="allOf"?[...I,...J(H.__required)]:I;M.length>0?a.__required=M:delete a.__required}}return a},$=(s,y=0,d=new Set)=>{let a=s,B;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";B=k,k===Rn&&!a.format&&(a={...a,format:"video-uri"})}a=R(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,I=(k,m,b,O=!0)=>!E&&(!O||b<=Sn)&&m<An?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(O=>!(O.type==="null"||O.type===null)),b=O=>{if(typeof O.const=="string"||typeof O.const=="number")return O.const;if(Array.isArray(O.enum)&&O.enum.length===1&&(typeof O.enum[0]=="string"||typeof O.enum[0]=="number"))return O.enum[0]};m.length>0&&m.every(O=>b(O)!==void 0)&&(H=m.map(O=>b(O)))}}let M,oe,Fe=!1;if(a.type)M=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(b=>!(b.type==="null"||b.type===null));if(m.length===0)M="null";else if(m.length===1){const b=m[0];oe=b,M=b.type?Array.isArray(b.type)?String(b.type[0]):String(b.type):typeof b.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof s[p]=="string"?s[p]:typeof a[p]=="string"?a[p]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:H,format:u("format"),options:u("options")}}const b=m.filter(V),O=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>R(u)).find(le),Ae=u=>{if(typeof u.$ref!="string")return;const p=R(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const C=l(_),N=C.properties;return!N?.__resolveType&&!C.anyOf&&!C.oneOf&&(C.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},fe=m.flatMap(u=>{const p=Ae(u);return p?[p]:[]}),kt=fe.length===0&&m.filter(u=>!le(R(u))).every(u=>typeof u.$ref=="string"||b.includes(u)),Pt=b.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Ct||z(e)&&p[0]==="multivariate")}),Se=(u=[])=>{const p=new Map;for(const A of[...b,...m.filter(v=>!b.includes(v)).flatMap(v=>q(v)),...u]){const v=Q(A);v&&!p.has(v)&&p.set(v,A)}const g=[...p].map(([A,v])=>({resolveType:A,title:typeof v.title=="string"?v.title:ne(A),description:typeof v.description=="string"?v.description:void 0,schema:I(v,y+1,p.size)})),h=[];for(const A of m){if(b.includes(A)||typeof A.$ref!="string")continue;const v=c(A.$ref);let X;const Z=v.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(v.allOf))for(const Bt of v.allOf){const Oe=Bt.properties?.__resolveType?.enum;if(Array.isArray(Oe)&&typeof Oe[0]=="string"){X=Oe[0];break}}X&&h.push({resolveType:X,title:typeof v.title=="string"&&!v.title.startsWith("#")?v.title:ne(X),description:typeof v.description=="string"?v.description:void 0,schema:I(v,y+1,m.length)})}const w=new Set(g.map(A=>A.resolveType)),_=[...g,...h.filter(A=>!w.has(A.resolveType))],C=m.filter(A=>!b.includes(A)),N=C.length===1&&!E?$(C[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:O,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!et(D,c);if(u&&fe.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!U(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>le(R(_))),w=fe.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,C)=>({title:S(_,`Option ${C+1}`),schema:$(_,y+1,x)})),{title:S(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Se(fe.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&kt){const p=$(D,y+1,x),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:p.title,h=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:p.description;return{...p,type:"array",title:g,description:h,loaderRef:b.length>0?{...Se(),title:g,description:h}:void 0}}if(Pt){const p=$(D,y+1,x);return{...p,type:"array",title:typeof a.title=="string"?a.title:p.title,description:typeof a.description=="string"?a.description:p.description}}}if(b.length>0)return Se();const Ye=u=>{const p=l(u);if(typeof p.title=="string"&&He(p.title))return!0;const g=p.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const w=h.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},ze=m.map(u=>T(u));if(m.length>1&&ze.every(u=>typeof u=="string")&&!m.some(Ye)){const u=m.map((p,g)=>{const h=l(p),w=ze[g];return{resolveType:w,title:S(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>J(_.required).includes("type")),schema:I(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Re=u=>{if(Ye(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},jt=u=>{const p=R(u);return le(p)?!et(p,c):!1},Qe=y<Ee&&m.every(u=>Re(u)||jt(u))&&m.some(Re),Ge=m.every(u=>typeof u.$ref=="string"),wt=z(e)&&!Ge&&m.some(u=>typeof u.$ref=="string"&&vn.has(bn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Re(u));if((Ge||wt)&&!Qe){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const A=He(g.title);A&&(h=A.blockId,w=A.blockId)}if(!h&&Array.isArray(g.allOf))for(const A of g.allOf){const Z=((A.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[0],_=!0;break}}if(!h){const v=g.properties?.__resolveType?.enum;Array.isArray(v)&&typeof v[0]=="string"&&(h=v[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const C=h.includes("/")||_&&!Mt(h),N=C?void 0:T(p);!N&&!C||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:I(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:O,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Qe){const u=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[C,N]of Object.entries(w)){const A=u(N);A!==void 0&&(_[C]=A)}return{title:S(g,`Option ${h+1}`),schema:$(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}M="object"}}else a.allOf?(M="object",Fe=U(a.title)):typeof s.$ref=="string"&&(M="object");let ae,qe,We=!1;if(y<Ee&&!E){const k=W(a),m=k.__resolveType?.enum;We=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const b=J(k.__required);b.length>0&&(qe=b);const O=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(O.length>0){ae={};for(const[D,Ae]of O)ae[D]=$(Ae,y+1,x)}}let Te;if((M==="array"||a.type==="array")&&y<Ee&&!E){const k=a.items;if(k){Te=$(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Te.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},Et=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:M??"string",title:typeof s.title=="string"?s.title:!Fe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:Et(),enum:Array.isArray(a.enum)?a.enum:H??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:te("format"),properties:ae,required:qe,items:Te,lazy:We&&ae?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(M==="object"||M==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return $({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=R(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=$(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=U(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(I=>({...I,discriminators:{...I.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=$(y,0));if(Object.keys(Y).length===0)return null;const G=J(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function kr(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(T=>!T.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function Pr(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ue(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,f=o.logo,l=o,T=R=>R===!0||R==="true",S=T(l.hide)||T(l.ignore)||T(l.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof f=="string"?f:void 0,hidden:S||void 0}}const ut=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],kn=new Set(ut);function Ie(e){return kn.has(e)}function De(e,t){return Ie(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function jr(e,t){return De(e,z(t)?t:void 0)}function Ne(e){return e.replace(/\/+$/,"")||"/"}function wr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function Pn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Br(e){const t=e.trim();return t?Pn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function $r(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function pt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function xr(e){e=pt(e);const t=[];let n=0;for(const r of e.matchAll(Ke))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function Lr(e,t){return pt(e).replace(Ke,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const yt=ut[0],jn=new Set(["site/sections/Theme/Theme.tsx"]);function wn(e,t){return jn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(wn(e,z(t))||it(e)||e.toLowerCase().includes("preview"))}function dt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(Ie(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":yt}function Bn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Cr(e){return e?Bn(e)?"page":dt(e):yt}function ke(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return ke(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...ke(n));return t}return[]}function $n(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(he(o,e))continue;const c=Ue(o,e);n.push({resolveType:o,title:c.title??ne(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function Mr(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))he(o,e)||n.has(o)||n.set(o,{resolveType:o,title:ne(o)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function mt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!gt(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const o of i){const c=Ut(o,r);if(!c||typeof c!="object")continue;let f=c.__resolveType;if(typeof f=="string"&&it(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&$e(e,f))return f}return n}function gt(e,t){return e===It||t&&e===Dt}function xn(e,t){return mt(e,t)!==t.__resolveType}function ht(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||rt(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||Ie(c)||typeof o.path=="string"||he(c,e)||!($e(e,c)||gt(c,z(e))&&xn(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Ln(e,t){const n=ot(t.resolveType,e),r=n?{}:Ue(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||ne(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Ur(e,t){const n=dt(e),r=En(n,e),i=ke(r?.properties?.sections),o=new Map,c=f=>{if(!he(f.resolveType,e)){if(ot(f.resolveType,e)){rt(f.resolveType)||o.set(f.resolveType,f);return}$e(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of $n(e))c(f);for(const f of i)c(Ln(e,f));for(const f of ht(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Ir(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const _e="website/loaders/redirect.ts",Dr=new Set([_e,"website/loaders/redirects.ts"]),ve="redirect",Cn=[301,302,307,308],Mn={temporary:307,permanent:301};function Nr(e){return e.flat&&e.status||Mn[e.type]}const ue=e=>typeof e=="string"?e:"",Un=e=>e==="permanent"?"permanent":"temporary",In=e=>Cn.find(t=>t===e);function _t(e){const t=In(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function be(e){if(e?.__resolveType===ve)return _t(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:Un(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Dn(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==_e&&i.__resolveType!==ve||t.push({key:n,...be(i)})}return t}function Kr(e){return be(e)}function Nn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:ve,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:_e}}function Kn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Vn=1e3;function Vr(e,t){const n=Kn(t);for(let r=0;r<Vn;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}const Fn="Redirects",vt="redirects";function bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===vt}function qn(e){return Object.keys(e).filter(n=>bt(e[n])).sort()[0]??Fn}function Fr(e,t){const n=e.lastIndexOf("#");if(n<=0)return null;const r=e.slice(0,n),i=e.slice(n+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,r)||!bt(t[r])?null:{block:r,index:Number(i)}}function re(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(n=>!!n&&typeof n=="object"&&!Array.isArray(n)):[]}function Tt(e){return"redirect"in e?be(e):_t({...e})}function At(e,t){const{__resolveType:n,...r}=Nn(e,{...t});return r}function qr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:_e}:{...n,__resolveType:ve}])}function Wr(e,t=qn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...Tt(n)}))}function Yr(e,t){const n=re(e)[t];return n?Tt(n):be(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:vt,redirects:t}}function zr(e,t){return Ve(e,[...re(e),At(t)])}function Qr(e,t,n){const r=re(e),i=r.slice();return i[t]=At(n,r[t]),Ve(e,i)}function Gr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function Wn(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 Hr(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(f=>f.key===n);if(o)return o;const c=e.find(f=>f.key.endsWith(`-${n}`));if(c)return c}if(r){const o=Pe(e,r);if(o)return o}if(i){const o=Pe(e,i);if(o)return o}return null}function Pe(e,t,n){const r=Ne;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}function Xr(e,t,n){const r=Pe(e,t,n);return r||Ne(t)!=="/"?r:e[0]??null}const se="site",St="site/apps/site.ts";function je(e,t){return e===se?!0:t.__resolveType===St}function Zr(e,t){return e?Rt(e,t).length>0||Dn(e).length>0?!0:t?Xn(e,t).length>0||Gn(e,t)?!0:Hn(e,t).length>0:!1:!1}function Yn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!De(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:Wn(e),path:r.path}}function Rt(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Yn(r,i,t);o&&n.push(o)}return n}function we(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>we(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>we(i,t,n+1))}function tt(e,t){return Nt(e)?Kt(e).some(n=>t.has(n)):we(e,t)}function zn(e,t,n){const r=Rt(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||tt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&tt(e[c.key],o))}function Jr(e,t,n){const r=o=>Ne(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=zn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function Qn(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function Be(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ue(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function Gn(e,t){const n=e[se];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(je(se,r)||ft(t,i)))return{key:se,name:Be(se,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!je(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:St;return{key:r,name:Be(r,o,t),resolveType:c}}return null}function Hn(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(De(c,t)||typeof o.path!="string"&&(je(r,o)||!ft(t,c)&&!On(c)||n.push({key:r,name:Be(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Xn(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=mt(t,r);return{key:n.resolveType,name:n.description??Qn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const Zn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Jn={posts:"post",categories:"category",authors:"author"},Ot=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ei(e,...t){const n=e?Zn.exec(e)?.[1]:void 0;if(n)return Jn[n]??null;for(const r of t){if(!pe(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Ot.find(c=>pe(r[c]));if(o)return o}return null}function er(...e){for(const t of e)if(pe(t))for(const n of Ot){const r=t[n];if(pe(r))for(const i of["title","name"]){const o=r[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function tr(e,t=Vt){return t(`sectionsEditor.blogKind.${e}`)}function ti(e,t,n){return er(...t)??tr(e,n)}const nr="https://github.com/decocms/blocks";function ni(){const e=ce.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(st,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(Yt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(xe,{size:"sm",asChild:!0,children:L.jsxs("a",{href:nr,target:"_blank",rel:"noreferrer",children:[o,c]})}),e[8]=o,e[9]=f):f=e[9];let l;return e[10]!==r||e[11]!==i||e[12]!==f?(l=L.jsx(Le,{className:"h-full w-full",image:n,title:r,description:i,actions:f}),e[10]=r,e[11]=i,e[12]=f,e[13]=l):l=e[13],l}function ri(e){const t=ce.c(15),{source:n,onRetry:r}=e,i=ye();let o;t[0]!==n||t[1]!==i?(o=i(n==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=n,t[1]=i,t[2]=o):o=t[2];const c=o;let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=L.jsx(cn,{size:48,className:"text-muted-foreground"}),t[3]=f):f=t[3];let l;t[4]!==i?(l=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=l):l=t[5];let T;t[6]!==i?(T=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=T):T=t[7];let S;t[8]!==r||t[9]!==T?(S=L.jsx(xe,{variant:"outline",size:"sm",onClick:r,children:T}),t[8]=r,t[9]=T,t[10]=S):S=t[10];let R;return t[11]!==c||t[12]!==l||t[13]!==S?(R=L.jsx(Le,{image:f,title:l,description:c,actions:S}),t[11]=c,t[12]=l,t[13]=S,t[14]=R):R=t[14],R}function ii(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function oi(){const e=ce.c(16),t=ye(),{org:n}=Ft();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(st,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==t?(i=t("siteEditor.siteNotOwned.title"),e[1]=t,e[2]=i):i=e[2];let o;e[3]!==t?(o=t("siteEditor.siteNotOwned.body"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==n.slug?(c={org:n.slug},e[5]=n.slug,e[6]=c):c=e[6];let f;e[7]!==t?(f=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=f):f=e[8];let l;e[9]!==c||e[10]!==f?(l=L.jsx(xe,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(qt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let T;return e[12]!==i||e[13]!==o||e[14]!==l?(T=L.jsx(Le,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=T):T=e[15],T}function si(e){const t=ce.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Wt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{Pr as $,vt as A,ri as B,si as C,qr as D,yr as E,mt as F,Kr as G,Fr as H,Hr as I,Gn as J,Dn as K,Mr as L,Dr as M,de as N,qn as O,Gr as P,Wr as Q,Mn as R,oi as S,Vr as T,Nn as U,zr as V,$r as W,he as X,Cr as Y,Ie as Z,kr as _,wr as a,jr as a0,Bn as a1,ke as a2,Yn as a3,Wn as a4,ei as a5,ti as a6,dr as a7,tr as a8,yt as a9,me as aa,Er as ab,Ur as ac,vr as ad,Ze as ae,Tr as af,br as ag,gr as ah,Ar as ai,ur as aj,er as ak,_r as al,Sr as am,Ir as an,Pe as ao,Yr as ap,Cn as aq,Qr as ar,ni as b,Xn as c,Xr as d,Rt as e,Lr as f,mr as g,Zr as h,ii as i,pr as j,dt as k,Or as l,St as m,Ne as n,je as o,Jr as p,On as q,hr as r,xr as s,Be as t,Rr as u,Br as v,Ue as w,Nr as x,En as y,Qn as z};
|
|
1
|
+
import{bn as z,c as ce,q as $t,K as nt,i as xt,fC as Lt,f7 as Ct,fl as He,fn as Mt,bw as ne,bx as rt,fD as $e,bj as Ut,bk as it,ff as It,f8 as Dt,by as ot,bz as Nt,fE as Kt,e8 as Vt,b as ye,a4 as Ft,j as L,B as xe,L as qt,h as Wt,a7 as Yt}from"./index-D8HDDDUz.js";import{c as zt,x as Qt,u as Gt,v as Ht,af as Xt,am as Zt,an as Jt,ao as en,ap as tn,C as nn,y as rn}from"./site-editor-toast-BEWqoKlP.js";import{b as on}from"./sandbox-url-D3mC8qhT.js";import{u as sn}from"./use-voice-input-4p-Pv-qm.js";import{i as cn}from"./AlertCircle-zr0wX6rF.js";import{aJ as st}from"./agent-icon-mmszwibp.js";import{E as Le}from"./empty-state-DKuRC7c7.js";const K={experiments:{kind:"experiments",blockKey:"experiments",resolveType:"split-traffic",matcher:"experiment",field:"name"},campaigns:{kind:"campaigns",blockKey:"campaigns",resolveType:"calendar",matcher:"campaign",field:"name"}},de=["experiments","campaigns"];function ur(e){return K[e]}const pr=de.map(e=>K[e].blockKey);function an(e){for(const t of de)if(K[t].matcher===e)return t;return null}function yr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function dr(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const fn="deco";function mr(e,t){if(!z(e))return"missing";const n=K[t],r=Xe(e,n.resolveType),i=Xe(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===fn;return o(r)&&o(i)?"available":"replaced"}function Xe(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function Ze(e,t){const n=K[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,T]of Object.entries(o)){if(l==="__resolveType")continue;const S=t==="experiments"?ln(T):un(T);S===null?f.push(l):c[l]=S}return{kind:"saved",block:o,values:c,invalid:f}}function gr(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function hr(e){const t=Ze(e,"experiments"),n=Ze(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function ln(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function un(e){if(!me(e))return null;const t={};for(const n of["start","end"]){const r=e[n];if(!(r==null||r==="")){if(typeof r!="string")return null;t[n]=r}}return t}function _r(e){return e<=0?"off":e>=100?"everyone":"running"}function vr(e){if(!me(e))return null;const t=an(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function br(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const pn="date";function Tr(e){return me(e)&&e.__resolveType===pn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function Ar(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function Sr(e,t){if(t==="__resolveType")return e;const{[t]:n,...r}=e;return r}function me(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function yn(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 dn=5e3;function mn(e,t){return e.kind==="live"?new URL("/live/_meta",e.baseUrl).href:on(t,"site-meta")}const gn=new Map;async function hn(e,t,n=gn){const r=n.get(e),i=r==="refused"?void 0:t?.etag,o=await fetch(e,{cache:"no-store",headers:i?{"If-None-Match":i}:{}}).catch(()=>null),c=!o&&!!i&&r===void 0,f=c?await fetch(e,{cache:"no-store",headers:{}}).catch(()=>null):o;if(i&&(c&&f?n.set(e,"refused"):o&&n.set(e,"ok")),t&&(!f||f.status===304))return t;if(!f?.ok)return null;try{return await f.json()}catch{return null}}function _n(e){return nt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Rr(e,t){const n=ce.c(30),{url:r}=zt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Qt(e?.virtualMcpId),{previewServerUrl:l,runtime:T}=sn(e?.virtualMcpId),S=!i&&T==="cms",R=Gt(e?.virtualMcpId,e?.branch),P=R.kind==="protocol"?R:null,Q=$t(),V=Ht(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Xt(e,P):_n({...e,previewUrl:c,productionUrl:l}):nt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let U;n[5]!==R.kind||n[6]!==V||n[7]!==S||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(U=async()=>{if(P){const{meta:d}=await Zt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(R.kind==="unavailable")throw Jt("live meta");const G=()=>S?tn(e):nn(e,rn(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:yn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:S});for(const d of s){if(d.kind==="committed"){const E=await G();if(E.kind==="data")return E.data;continue}const a=Q.getQueryData(j),B=await hn(mn(d,e),i||a?.etag?a:void 0);if(B)return B}const y=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw y.status=502,y},n[5]=R.kind,n[6]=V,n[7]=S,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=U):U=n[17];const W=!!e&&R.kind!=="pending",$=P?!1:i?dn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==S||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||S||i||s.status!==502)&&G<3,n[18]=S,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==U||n[24]!==W||n[25]!==$||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:U,enabled:W,refetchInterval:$,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:en},n[22]=j,n[23]=U,n[24]=W,n[25]=$,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],xt(Y)}const vn=new Set(["split-traffic","calendar"]);function bn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const Tn=12,An=8,Ee=32,Sn=40,Je="__SECTION_REF__";function le(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function et(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const Rn="VideoWidget";function J(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function ct(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Ce(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Me(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function at(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Ce(e)??Me(e);if(r){for(const f of at(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=ct(e);for(const f of Object.values(n))if(f[i])return f[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function Or(e,t){return Object.keys(ge(e,t)).length>0}function ft(e,t){if(Lt(e,t))return!0;const n=Ce(t)??Me(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(at(n.vendor,n.app).some(c=>c in r))return!0;const i=ct(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function On(e){return e==="site/apps/site.ts"?!1:Ce(e)!==null||Me(e)!==null}function En(e,t){return lt(t,{resolveType:e})}function Er(e,t){return lt(t,{ref:e})}function lt(e,t){const n=e.schema??{},r="resolveType"in t?ge(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const y=s.split("/").pop()??"",d=i[y];return d||(y===Je?o.sections??{}:{})};let f;typeof r.$ref=="string"?f=c(r.$ref):Object.keys(r).length>0?f=r:f=n;const l=s=>typeof s.$ref=="string"?c(s.$ref):s,T=s=>{const d=l(s).properties?.type;if(d){if(typeof d.const=="string")return d.const;if(typeof d.default=="string")return d.default;if(Array.isArray(d.enum)&&typeof d.enum[0]=="string")return d.enum[0]}},S=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},R=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:R(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===Je?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),B=a.anyOf??a.oneOf;if(!Array.isArray(B))return[];const E=new Set([...y,d]);return B.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},U=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>Tn)return{};if(typeof s.$ref=="string"){const B=s.$ref.split("/").pop()??"";return y.has(B)?{}:W(c(s.$ref),new Set([...y,B]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...J(a.__required),...J(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const I=J(a.__required),H=W(x,y,d+1);a={...a,...H};const M=B==="allOf"?[...I,...J(H.__required)]:I;M.length>0?a.__required=M:delete a.__required}}return a},$=(s,y=0,d=new Set)=>{let a=s,B;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";B=k,k===Rn&&!a.format&&(a={...a,format:"video-uri"})}a=R(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,I=(k,m,b,O=!0)=>!E&&(!O||b<=Sn)&&m<An?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(O=>!(O.type==="null"||O.type===null)),b=O=>{if(typeof O.const=="string"||typeof O.const=="number")return O.const;if(Array.isArray(O.enum)&&O.enum.length===1&&(typeof O.enum[0]=="string"||typeof O.enum[0]=="number"))return O.enum[0]};m.length>0&&m.every(O=>b(O)!==void 0)&&(H=m.map(O=>b(O)))}}let M,oe,Fe=!1;if(a.type)M=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(b=>!(b.type==="null"||b.type===null));if(m.length===0)M="null";else if(m.length===1){const b=m[0];oe=b,M=b.type?Array.isArray(b.type)?String(b.type[0]):String(b.type):typeof b.$ref=="string"?"object":"string"}else{if(H){const u=p=>typeof s[p]=="string"?s[p]:typeof a[p]=="string"?a[p]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:H,format:u("format"),options:u("options")}}const b=m.filter(V),O=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>R(u)).find(le),Ae=u=>{if(typeof u.$ref!="string")return;const p=R(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const C=l(_),N=C.properties;return!N?.__resolveType&&!C.anyOf&&!C.oneOf&&(C.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},fe=m.flatMap(u=>{const p=Ae(u);return p?[p]:[]}),kt=fe.length===0&&m.filter(u=>!le(R(u))).every(u=>typeof u.$ref=="string"||b.includes(u)),Pt=b.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Ct||z(e)&&p[0]==="multivariate")}),Se=(u=[])=>{const p=new Map;for(const A of[...b,...m.filter(v=>!b.includes(v)).flatMap(v=>q(v)),...u]){const v=Q(A);v&&!p.has(v)&&p.set(v,A)}const g=[...p].map(([A,v])=>({resolveType:A,title:typeof v.title=="string"?v.title:ne(A),description:typeof v.description=="string"?v.description:void 0,schema:I(v,y+1,p.size)})),h=[];for(const A of m){if(b.includes(A)||typeof A.$ref!="string")continue;const v=c(A.$ref);let X;const Z=v.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(v.allOf))for(const Bt of v.allOf){const Oe=Bt.properties?.__resolveType?.enum;if(Array.isArray(Oe)&&typeof Oe[0]=="string"){X=Oe[0];break}}X&&h.push({resolveType:X,title:typeof v.title=="string"&&!v.title.startsWith("#")?v.title:ne(X),description:typeof v.description=="string"?v.description:void 0,schema:I(v,y+1,m.length)})}const w=new Set(g.map(A=>A.resolveType)),_=[...g,...h.filter(A=>!w.has(A.resolveType))],C=m.filter(A=>!b.includes(A)),N=C.length===1&&!E?$(C[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:O,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!et(D,c);if(u&&fe.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!U(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>le(R(_))),w=fe.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,C)=>({title:S(_,`Option ${C+1}`),schema:$(_,y+1,x)})),{title:S(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Se(fe.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&kt){const p=$(D,y+1,x),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:p.title,h=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:p.description;return{...p,type:"array",title:g,description:h,loaderRef:b.length>0?{...Se(),title:g,description:h}:void 0}}if(Pt){const p=$(D,y+1,x);return{...p,type:"array",title:typeof a.title=="string"?a.title:p.title,description:typeof a.description=="string"?a.description:p.description}}}if(b.length>0)return Se();const Ye=u=>{const p=l(u);if(typeof p.title=="string"&&He(p.title))return!0;const g=p.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(p.allOf))for(const h of p.allOf){const w=h.properties?.__resolveType?.enum;if(Array.isArray(w)&&typeof w[0]=="string")return!0}return!1},ze=m.map(u=>T(u));if(m.length>1&&ze.every(u=>typeof u=="string")&&!m.some(Ye)){const u=m.map((p,g)=>{const h=l(p),w=ze[g];return{resolveType:w,title:S(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>J(_.required).includes("type")),schema:I(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Re=u=>{if(Ye(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},jt=u=>{const p=R(u);return le(p)?!et(p,c):!1},Qe=y<Ee&&m.every(u=>Re(u)||jt(u))&&m.some(Re),Ge=m.every(u=>typeof u.$ref=="string"),wt=z(e)&&!Ge&&m.some(u=>typeof u.$ref=="string"&&vn.has(bn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Re(u));if((Ge||wt)&&!Qe){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const A=He(g.title);A&&(h=A.blockId,w=A.blockId)}if(!h&&Array.isArray(g.allOf))for(const A of g.allOf){const Z=((A.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[0],_=!0;break}}if(!h){const v=g.properties?.__resolveType?.enum;Array.isArray(v)&&typeof v[0]=="string"&&(h=v[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const C=h.includes("/")||_&&!Mt(h),N=C?void 0:T(p);!N&&!C||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:I(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:O,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Qe){const u=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[C,N]of Object.entries(w)){const A=u(N);A!==void 0&&(_[C]=A)}return{title:S(g,`Option ${h+1}`),schema:$(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}M="object"}}else a.allOf?(M="object",Fe=U(a.title)):typeof s.$ref=="string"&&(M="object");let ae,qe,We=!1;if(y<Ee&&!E){const k=W(a),m=k.__resolveType?.enum;We=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const b=J(k.__required);b.length>0&&(qe=b);const O=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(O.length>0){ae={};for(const[D,Ae]of O)ae[D]=$(Ae,y+1,x)}}let Te;if((M==="array"||a.type==="array")&&y<Ee&&!E){const k=a.items;if(k){Te=$(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Te.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},Et=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:M??"string",title:typeof s.title=="string"?s.title:!Fe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:Et(),enum:Array.isArray(a.enum)?a.enum:H??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:te("format"),properties:ae,required:qe,items:Te,lazy:We&&ae?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(M==="object"||M==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return $({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=R(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=$(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=U(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(I=>({...I,discriminators:{...I.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=$(y,0));if(Object.keys(Y).length===0)return null;const G=J(F.__required);return{type:"object",title:typeof f.title=="string"?f.title:void 0,properties:Y,required:G.length>0?G:void 0}}function kr(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(T=>!T.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function Pr(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ue(e,t){const n=t.schema??{},r=ge(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,f=o.logo,l=o,T=R=>R===!0||R==="true",S=T(l.hide)||T(l.ignore)||T(l.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof f=="string"?f:void 0,hidden:S||void 0}}const ut=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],kn=new Set(ut);function Ie(e){return kn.has(e)}function De(e,t){return Ie(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function jr(e,t){return De(e,z(t)?t:void 0)}function Ne(e){return e.replace(/\/+$/,"")||"/"}function wr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function Pn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Br(e){const t=e.trim();return t?Pn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function $r(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function pt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function xr(e){e=pt(e);const t=[];let n=0;for(const r of e.matchAll(Ke))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function Lr(e,t){return pt(e).replace(Ke,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}const yt=ut[0],jn=new Set(["site/sections/Theme/Theme.tsx"]);function wn(e,t){return jn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function he(e,t){return!!(wn(e,z(t))||it(e)||e.toLowerCase().includes("preview"))}function dt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(Ie(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":yt}function Bn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Cr(e){return e?Bn(e)?"page":dt(e):yt}function ke(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return ke(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...ke(n));return t}return[]}function $n(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(he(o,e))continue;const c=Ue(o,e);n.push({resolveType:o,title:c.title??ne(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function Mr(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))he(o,e)||n.has(o)||n.set(o,{resolveType:o,title:ne(o)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function mt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!gt(n,r))return n;const i=t.variants;if(!Array.isArray(i))return n;for(const o of i){const c=Ut(o,r);if(!c||typeof c!="object")continue;let f=c.__resolveType;if(typeof f=="string"&&it(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&$e(e,f))return f}return n}function gt(e,t){return e===It||t&&e===Dt}function xn(e,t){return mt(e,t)!==t.__resolveType}function ht(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||rt(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||Ie(c)||typeof o.path=="string"||he(c,e)||!($e(e,c)||gt(c,z(e))&&xn(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Ln(e,t){const n=ot(t.resolveType,e),r=n?{}:Ue(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||ne(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Ur(e,t){const n=dt(e),r=En(n,e),i=ke(r?.properties?.sections),o=new Map,c=f=>{if(!he(f.resolveType,e)){if(ot(f.resolveType,e)){rt(f.resolveType)||o.set(f.resolveType,f);return}$e(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of $n(e))c(f);for(const f of i)c(Ln(e,f));for(const f of ht(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Ir(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const _e="website/loaders/redirect.ts",Dr=new Set([_e,"website/loaders/redirects.ts"]),ve="redirect",Cn=[301,302,307,308],Mn={temporary:307,permanent:301};function Nr(e){return e.flat&&e.status||Mn[e.type]}const ue=e=>typeof e=="string"?e:"",Un=e=>e==="permanent"?"permanent":"temporary",In=e=>Cn.find(t=>t===e);function _t(e){const t=In(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function be(e){if(e?.__resolveType===ve)return _t(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:Un(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Dn(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;i.__resolveType!==_e&&i.__resolveType!==ve||t.push({key:n,...be(i)})}return t}function Kr(e){return be(e)}function Nn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:ve,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const n={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(n.discardQueryParameters=!0),{redirect:n,__resolveType:_e}}function Kn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Vn=1e3;function Vr(e,t){const n=Kn(t);for(let r=0;r<Vn;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}const Fn="Redirects",vt="redirects";function bt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===vt}function qn(e){return Object.keys(e).filter(n=>bt(e[n])).sort()[0]??Fn}function Fr(e,t){const n=e.lastIndexOf("#");if(n<=0)return null;const r=e.slice(0,n),i=e.slice(n+1);return!/^\d+$/.test(i)||!Object.hasOwn(t,r)||!bt(t[r])?null:{block:r,index:Number(i)}}function re(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e.redirects;return Array.isArray(t)?t.filter(n=>!!n&&typeof n=="object"&&!Array.isArray(n)):[]}function Tt(e){return"redirect"in e?be(e):_t({...e})}function At(e,t){const{__resolveType:n,...r}=Nn(e,{...t});return r}function qr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:_e}:{...n,__resolveType:ve}])}function Wr(e,t=qn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...Tt(n)}))}function Yr(e,t){const n=re(e)[t];return n?Tt(n):be(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:vt,redirects:t}}function zr(e,t){return Ve(e,[...re(e),At(t)])}function Qr(e,t,n){const r=re(e),i=r.slice();return i[t]=At(n,r[t]),Ve(e,i)}function Gr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function Wn(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 Hr(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(f=>f.key===n);if(o)return o;const c=e.find(f=>f.key.endsWith(`-${n}`));if(c)return c}if(r){const o=Pe(e,r);if(o)return o}if(i){const o=Pe(e,i);if(o)return o}return null}function Pe(e,t,n){const r=Ne;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}function Xr(e,t,n){const r=Pe(e,t,n);return r||Ne(t)!=="/"?r:e[0]??null}const se="site",St="site/apps/site.ts";function je(e,t){return e===se?!0:t.__resolveType===St}function Zr(e,t){return e?Rt(e,t).length>0||Dn(e).length>0?!0:t?Xn(e,t).length>0||Gn(e,t)?!0:Hn(e,t).length>0:!1:!1}function Yn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!De(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:Wn(e),path:r.path}}function Rt(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Yn(r,i,t);o&&n.push(o)}return n}function we(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>we(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>we(i,t,n+1))}function tt(e,t){return Nt(e)?Kt(e).some(n=>t.has(n)):we(e,t)}function zn(e,t,n){const r=Rt(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||tt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&tt(e[c.key],o))}function Jr(e,t,n){const r=o=>Ne(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=zn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function Qn(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function Be(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ue(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function Gn(e,t){const n=e[se];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(je(se,r)||ft(t,i)))return{key:se,name:Be(se,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!je(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:St;return{key:r,name:Be(r,o,t),resolveType:c}}return null}function Hn(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(De(c,t)||typeof o.path!="string"&&(je(r,o)||!ft(t,c)&&!On(c)||n.push({key:r,name:Be(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function Xn(e,t){return ht(t,e).map(n=>{const r=e[n.resolveType],i=mt(t,r);return{key:n.resolveType,name:n.description??Qn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const Zn=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,Jn={posts:"post",categories:"category",authors:"author"},Ot=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ei(e,...t){const n=e?Zn.exec(e)?.[1]:void 0;if(n)return Jn[n]??null;for(const r of t){if(!pe(r))continue;const i=r.__resolveType;if(typeof i!="string"||!i.startsWith("blog/"))continue;const o=Ot.find(c=>pe(r[c]));if(o)return o}return null}function er(...e){for(const t of e)if(pe(t))for(const n of Ot){const r=t[n];if(pe(r))for(const i of["title","name"]){const o=r[i];if(typeof o=="string"&&o.trim())return o.trim()}}return null}function tr(e,t=Vt){return t(`sectionsEditor.blogKind.${e}`)}function ti(e,t,n){return er(...t)??tr(e,n)}const nr="https://github.com/decocms/blocks";function ni(){const e=ce.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(st,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(Yt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(xe,{size:"sm",asChild:!0,children:L.jsxs("a",{href:nr,target:"_blank",rel:"noreferrer",children:[o,c]})}),e[8]=o,e[9]=f):f=e[9];let l;return e[10]!==r||e[11]!==i||e[12]!==f?(l=L.jsx(Le,{className:"h-full w-full",image:n,title:r,description:i,actions:f}),e[10]=r,e[11]=i,e[12]=f,e[13]=l):l=e[13],l}function ri(e){const t=ce.c(15),{source:n,onRetry:r}=e,i=ye();let o;t[0]!==n||t[1]!==i?(o=i(n==="sandbox"?"mainPanelTabs.blocksTabStates.errorStateSandbox":"mainPanelTabs.blocksTabStates.errorStateData"),t[0]=n,t[1]=i,t[2]=o):o=t[2];const c=o;let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=L.jsx(cn,{size:48,className:"text-muted-foreground"}),t[3]=f):f=t[3];let l;t[4]!==i?(l=i("mainPanelTabs.blocksTabStates.errorStateTitle"),t[4]=i,t[5]=l):l=t[5];let T;t[6]!==i?(T=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=T):T=t[7];let S;t[8]!==r||t[9]!==T?(S=L.jsx(xe,{variant:"outline",size:"sm",onClick:r,children:T}),t[8]=r,t[9]=T,t[10]=S):S=t[10];let R;return t[11]!==c||t[12]!==l||t[13]!==S?(R=L.jsx(Le,{image:f,title:l,description:c,actions:S}),t[11]=c,t[12]=l,t[13]=S,t[14]=R):R=t[14],R}function ii(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function oi(){const e=ce.c(16),t=ye(),{org:n}=Ft();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(st,{size:48,className:"text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==t?(i=t("siteEditor.siteNotOwned.title"),e[1]=t,e[2]=i):i=e[2];let o;e[3]!==t?(o=t("siteEditor.siteNotOwned.body"),e[3]=t,e[4]=o):o=e[4];let c;e[5]!==n.slug?(c={org:n.slug},e[5]=n.slug,e[6]=c):c=e[6];let f;e[7]!==t?(f=t("siteEditor.siteNotOwned.openProjects"),e[7]=t,e[8]=f):f=e[8];let l;e[9]!==c||e[10]!==f?(l=L.jsx(xe,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(qt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let T;return e[12]!==i||e[13]!==o||e[14]!==l?(T=L.jsx(Le,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=T):T=e[15],T}function si(e){const t=ce.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Wt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{Pr as $,vt as A,ri as B,si as C,qr as D,yr as E,mt as F,Kr as G,Fr as H,Hr as I,Gn as J,Dn as K,Mr as L,Dr as M,de as N,qn as O,Gr as P,Wr as Q,Mn as R,oi as S,Vr as T,Nn as U,zr as V,$r as W,he as X,Cr as Y,Ie as Z,kr as _,wr as a,jr as a0,Bn as a1,ke as a2,Yn as a3,Wn as a4,ei as a5,ti as a6,dr as a7,tr as a8,yt as a9,me as aa,Er as ab,Ur as ac,vr as ad,Ze as ae,Tr as af,br as ag,gr as ah,Ar as ai,ur as aj,er as ak,_r as al,Sr as am,Ir as an,Pe as ao,Yr as ap,Cn as aq,Qr as ar,ni as b,Xn as c,Xr as d,Rt as e,Lr as f,mr as g,Zr as h,ii as i,pr as j,dt as k,Or as l,St as m,Ne as n,je as o,Jr as p,On as q,hr as r,xr as s,Be as t,Rr as u,Br as v,Ue as w,Nr as x,En as y,Qn as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as y}from"./site-editor-toast-
|
|
1
|
+
import{N as y}from"./site-editor-toast-BEWqoKlP.js";import{a0 as h,W as _}from"./blocks-tab-states-BWSDyN-L.js";import{s as R,X as B,Y as T}from"./category-tree-DSMV8uvW.js";const s=t=>typeof t=="string"?t:"";function p(t,r){for(const e of T(t)){const o=s(e[r]);if(o)return o}return null}function b(t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const e=t;return typeof e.__resolveType!="string"||!h(e.__resolveType,r)?null:typeof e.path=="string"?e.path:null}function C(t){return _(t).filter(r=>r!=="*").length}function P(t,r,e){let o=null,a=Number.POSITIVE_INFINITY;for(const u of Object.values(t)){const n=b(u,e);if(!n||!r.test(JSON.stringify(u)))continue;const l=C(n);l<a&&(o=n,a=l)}return o}const O=/blogpostpage/i,E=/blogcategorypage/i;function m(t,r){return p(t,"pageSlug")??P(t,O,r)}function G(t,r){return p(t,"categorySlug")??P(t,E,r)}function I(t){const r=t.categories;if(!Array.isArray(r)||r.length===0)return"";const e=r[0];return s(e?.slug)}function L(t,r){let e=t;if(/:category[*?]?/.test(e)){if(!r.category)return null;e=e.replace(/:category[*?]?/g,g(r.category))}if(/:slug[*?]?/.test(e)){if(!r.slug)return null;e=e.replace(/:slug[*?]?/g,encodeURIComponent(r.slug))}return e}const f=/:(?:categorySlug|categoria|category|slug)[*?]?/,d=/:(?:categorySlug|categoria|category|slug)[*?]?/g;function A(t,r=!1){return/:(?:categorySlug|categoria|category)\*|\/\*$/.test(t)?!0:r&&/:slug\*/.test(t)&&!/:(?:categorySlug|categoria|category)[*?]?/.test(t)}function g(t){return t.split("/").filter(r=>r!=="."&&r!=="..").map(encodeURIComponent).join("/")}function S(t,r){if(!r)return"";const e=R(t).categories;return B(r,e).join("/")}function M(t,r){return/\/\*$/.test(t)&&!f.test(t)?r?t.replace(/\/\*$/,`/${g(r)}`):null:f.test(t)?r?t.replace(d,g(r)):null:t}function v({decofile:t,category:r,previewBaseUrl:e,draftPointer:o,meta:a}){if(!e)return null;const u=G(t,a);if(!u)return null;const n=s(r.slug),l=M(u,A(u,!0)?S(t,n):n);if(!l)return null;try{return y(new URL(l,e).href,o)}catch{return null}}const j="draft";function U({decofile:t,post:r,previewBaseUrl:e,draftPointer:o,meta:a,planning:u=!1}){if(!e)return null;const n=m(t,a);if(!n)return null;const l=I(r),c=L(n,{category:A(n)?S(t,l):l,slug:s(r.slug)});if(!c)return null;try{const i=new URL(c,e);return u&&i.searchParams.set(j,"true"),y(i.href,o)}catch{return null}}export{L as a,U as b,v as c,m as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,j as i,r as _,m as R,b as T}from"./index-
|
|
1
|
+
import{c as N,j as i,r as _,m as R,b as T}from"./index-D8HDDDUz.js";import{l as v}from"./agent-icon-mmszwibp.js";import{O as P,S as K,I as D,g as I}from"./held-block-view-HcOuBva8.js";import{t as y}from"./ChevronUp-DKklQ3bJ.js";import{C as W,a as Y,b as w}from"./collapsible-ZjNF64KD.js";import{ah as B,ai as L}from"./category-tree-DSMV8uvW.js";function $(l){const e=N.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=N.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(W,{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=N.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 O;return e[27]!==r||e[28]!==u||e[29]!==g||e[30]!==E?(O=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]=O):O=e[31],O}function k(l,e){if(!e)return null;const o=I(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 V=["title","slug","excerpt","date","readTime","image","mobileImage","alt","authors","categories","sections","seo","extraProps","scheduledDatetime","status","dateModified","planning","content"],te=new Set(V),M=["name","slug","parentSlug","description","sections"],se=new Set(M);export{Z as C,te as K,$ as S,A as a,ee as b,se as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as I,a4 as $,bd as Y,j as n,b as K,B as z,h as V,r as X}from"./index-
|
|
1
|
+
import{c as I,a4 as $,bd as Y,j as n,b as K,B as z,h as V,r as X}from"./index-D8HDDDUz.js";import{E as q}from"./empty-state-Deh8mRpo.js";import{n as J}from"./BookOpen01-CQcU8DEw.js";import{c as F,u as Q}from"./chat-context-DdWQJl7N.js";import{c as Z,u as ee,i as te,h as se,j as oe,f as ae,k as ie}from"./site-editor-toast-BEWqoKlP.js";import{i as ne,u as re,S as le,C as ce}from"./blocks-tab-states-BWSDyN-L.js";import{E as A,B as fe}from"./empty-message-DkX3rdbv.js";import{u as de}from"./use-sandbox-events-BRyRagyy.js";import{a as me}from"./sandbox-lifecycle-context-D0Fc_zJJ.js";import{u as ue}from"./use-voice-input-4p-Pv-qm.js";import{k as pe,S as he,i as ge,n as xe,C as be,F as ve,s as Se,p as ye}from"./category-tree-DSMV8uvW.js";import{f as je}from"./blog-preview-url-DrIHzDC1.js";import{E as ke}from"./empty-state-DKuRC7c7.js";import{G as D}from"./github-icon-Cd5dQEKt.js";import{R as Ee}from"./new-project-dialog-Czv5HvtS.js";import{a as G}from"./agent-capabilities-DIA4hYXj.js";import{u as Be}from"./repository-binding-Dv276sdb.js";function He(R){const e=I.c(27),{children:f}=R,{currentBranch:c,virtualMcpId:s}=F(),{org:d}=$(),m=de(),v=me(),{runtime:j,previewServerUrl:E}=ue(s),{url:k}=Z(s),i=ee(s,c),t=te(i),h=i.kind==="protocol"&&i.source==="github";Y(h);const r=pe({fastPreviewActive:t||j==="cms",previewState:v.previewState,lifecyclePhase:m.lifecycle.phase});let u;e[0]!==i||e[1]!==k?(u=se(i)??k,e[0]=i,e[1]=k,e[2]=u):u=e[2];const p=u,l=j==="cms"&&!p;if(r.kind==="sandbox-card"){const o=`/${d.slug}/settings/connections`;let B;return e[3]!==r.state||e[4]!==v.start||e[5]!==o||e[6]!==m.lifecycle||e[7]!==m.phase?(B=n.jsx(he,{state:r.state,claimPhase:m.phase,lifecycle:m.lifecycle,onStart:v.start,connectionsHref:o}),e[3]=r.state,e[4]=v.start,e[5]=o,e[6]=m.lifecycle,e[7]=m.phase,e[8]=B):B=e[8],B}if(!s||!c){let o;return e[9]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(A,{title:"Waiting for sandbox context…"}),e[9]=o):o=e[9],o}if(ne(i)){let o;return e[10]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(le,{}),e[10]=o):o=e[10],o}if(i.kind==="pending"){let o;return e[11]!==i?(o=n.jsx(ce,{backend:i}),e[11]=i,e[12]=o):o=e[12],o}const S=t?null:v.previewUrl,g=p??(l?E:v.previewUrl);let y;e[13]!==c||e[14]!==f||e[15]!==l||e[16]!==r.devServerReady||e[17]!==r.sandboxWarming||e[18]!==h||e[19]!==d.slug||e[20]!==S||e[21]!==g||e[22]!==s?(y=n.jsx(_e,{orgSlug:d.slug,virtualMcpId:s,branch:c,previewUrl:S,sitePreviewUrl:g,fastPreviewActive:l,hostedDraft:h,devServerReady:r.devServerReady,sandboxWarming:r.sandboxWarming,children:f}),e[13]=c,e[14]=f,e[15]=l,e[16]=r.devServerReady,e[17]=r.sandboxWarming,e[18]=h,e[19]=d.slug,e[20]=S,e[21]=g,e[22]=s,e[23]=y):y=e[23];let _;return e[24]!==t||e[25]!==y?(_=n.jsx(fe,{value:t,children:y}),e[24]=t,e[25]=y,e[26]=_):_=e[26],_}function _e(R){const e=I.c(54),{orgSlug:f,virtualMcpId:c,branch:s,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j,devServerReady:E,sandboxWarming:k,children:i}=R,t=K(),h=Q()?.taskId??null;let r;e[0]!==s||e[1]!==f||e[2]!==d||e[3]!==h||e[4]!==c?(r={orgSlug:f,virtualMcpId:c,branch:s,threadId:h,previewUrl:d},e[0]=s,e[1]=f,e[2]=d,e[3]=h,e[4]=c,e[5]=r):r=e[5];const u=r;let p;e[6]!==E?(p={fetchEnabled:E},e[6]=E,e[7]=p):p=e[7];const{data:l,isLoading:S}=oe(u,p);let g;e[8]!==E?(g={fetchEnabled:E},e[8]=E,e[9]=g):g=e[9];const{data:y,isLoading:_}=re(u,g);let o;e[10]!==s||e[11]!==j||e[12]!==f||e[13]!==c?(o=j?{orgSlug:f,virtualMcpId:c,branch:s}:null,e[10]=s,e[11]=j,e[12]=f,e[13]=c,e[14]=o):o=e[14];const B=o,W=ae(B,ge);let N;e[15]!==W?(N=[...W,xe,be,ve],e[15]=W,e[16]=N):N=e[16];let L;e[17]===Symbol.for("react.memo_cache_sentinel")?(L={withRefs:!0},e[17]=L):L=e[17];const T=ie(B,N,L);if(T.failed){let a;e[18]!==t?(a=t("sectionsEditor.hosted.blockLoadFailed"),e[18]=t,e[19]=a):a=e[19];let x;e[20]!==t?(x=t("sectionsEditor.hosted.blockLoadFailedHint"),e[20]=t,e[21]=x):x=e[21];let b;e[22]!==a||e[23]!==x?(b=n.jsx(A,{title:a,description:x}),e[22]=a,e[23]=x,e[24]=b):b=e[24];const C=T.retry;let P;e[25]!==t?(P=t("sectionsEditor.namedRules.tryAgain"),e[25]=t,e[26]=P):P=e[26];let w;e[27]!==T.retry||e[28]!==P?(w=n.jsx(z,{variant:"outline",size:"sm",onClick:C,children:P}),e[27]=T.retry,e[28]=P,e[29]=w):w=e[29];let U;return e[30]!==w||e[31]!==b?(U=n.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 p-6 text-center",children:[b,w]}),e[30]=w,e[31]=b,e[32]=U):U=e[32],U}const M=!l||!y;if(S||_||!T.ready||M&&k){let a;return e[33]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"flex h-full w-full items-center justify-center",children:n.jsx(V,{className:"size-5 text-muted-foreground"})}),e[33]=a):a=e[33],a}if(M){let a;return e[34]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(A,{title:"Could not load site data."}),e[34]=a):a=e[34],a}const H=Se(l);if(!ye.some(a=>H[a].length>0)&&!je(l,y)){let a;e[35]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(J,{size:22}),e[35]=a):a=e[35];let x;e[36]!==t?(x=t("sandbox.blogWorkspace.noBlogApp"),e[36]=t,e[37]=x):x=e[37];let b;e[38]!==t?(b=t("sandbox.blogWorkspace.noBlogAppHint"),e[38]=t,e[39]=b):b=e[39];let C;return e[40]!==x||e[41]!==b?(C=n.jsx(q,{className:"h-full",icon:a,title:x,description:b}),e[40]=x,e[41]=b,e[42]=C):C=e[42],C}let O;return e[43]!==s||e[44]!==i||e[45]!==l||e[46]!==v||e[47]!==j||e[48]!==y||e[49]!==f||e[50]!==d||e[51]!==m||e[52]!==c?(O=i({orgSlug:f,virtualMcpId:c,branch:s,decofile:l,meta:y,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j}),e[43]=s,e[44]=i,e[45]=l,e[46]=v,e[47]=j,e[48]=y,e[49]=f,e[50]=d,e[51]=m,e[52]=c,e[53]=O):O=e[53],O}function $e(R){const e=I.c(20),{virtualMcpId:f,children:c}=R,s=K(),[d,m]=X.useState(!1),v=Be(f),{activeTask:j}=F();if(G(v?.metadata)||G(j?.metadata))return c;let k;e[0]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx("div",{className:"flex size-14 items-center justify-center rounded-full bg-muted",children:n.jsx(D,{className:"size-7 text-foreground"})}),e[0]=k):k=e[0];let i;e[1]!==s?(i=s("mainPanelTabs.contentTab.noContentToEdit"),e[1]=s,e[2]=i):i=e[2];let t;e[3]!==s?(t=s("mainPanelTabs.contentTab.connectGithubDescription"),e[3]=s,e[4]=t):t=e[4];let h,r;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>m(!0),r=n.jsx(D,{className:"size-4"}),e[5]=h,e[6]=r):(h=e[5],r=e[6]);let u;e[7]!==s?(u=s("mainPanelTabs.previewTab.connectGithub"),e[7]=s,e[8]=u):u=e[8];let p;e[9]!==u?(p=n.jsxs(z,{onClick:h,children:[r,u]}),e[9]=u,e[10]=p):p=e[10];let l;e[11]!==i||e[12]!==t||e[13]!==p?(l=n.jsx(ke,{className:"h-full",image:k,title:i,description:t,actions:p}),e[11]=i,e[12]=t,e[13]=p,e[14]=l):l=e[14];let S;e[15]!==d?(S=n.jsx(Ee,{open:d,onOpenChange:m,mode:"agent"}),e[15]=d,e[16]=S):S=e[16];let g;return e[17]!==l||e[18]!==S?(g=n.jsxs(n.Fragment,{children:[l,S]}),e[17]=l,e[18]=S,e[19]=g):g=e[19],g}export{He as B,$e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as I,f as _,u as x,be as j,j as g,N as u,$ as h,aZ as S,bf as w}from"./index-
|
|
1
|
+
import{c as I,f as _,u as x,be as j,j as g,N as u,$ as h,aZ as S,bf as w}from"./index-D8HDDDUz.js";import{f as v}from"./use-view-draft-kind-Bb6178QK.js";function E(m){const e=I.c(11),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r);if(f===void 0){let t;return e[2]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx(S,{}),e[2]=t):t=e[2],t}if(f||!l.org||!l.agentId)return p;let o;e[3]!==l.agentId||e[4]!==l.org?(o={org:l.org,agentId:l.agentId},e[3]=l.agentId,e[4]=l.org,e[5]=o):o=e[5];let s;e[6]!==c?(s=t=>({...t,blogCollection:void 0,blogItem:void 0,blogView:void 0,...w(c)}),e[6]=c,e[7]=s):s=e[7];let n;return e[8]!==o||e[9]!==s?(n=g.jsx(u,{to:h.siteEditorContent,params:o,search:s,hash:!0,replace:!0}),e[8]=o,e[9]=s,e[10]=n):n=e[10],n}function k(m){const e=I.c(13),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r),{org:o,agentId:s}=l;let n;e[2]!==s||e[3]!==o||e[4]!==c?(n=o&&s?j(c):null,e[2]=s,e[3]=o,e[4]=c,e[5]=n):n=e[5];const t=n;if(!t||!o||!s||f===!1)return p;if(f===void 0){let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(S,{}),e[6]=i):i=e[6],i}const b=y;let d;return e[7]!==s||e[8]!==o||e[9]!==t.collection||e[10]!==t.item||e[11]!==t.postId?(d=t.postId?g.jsx(u,{to:h.blogPost,params:{org:o,agentId:s,postId:t.postId},search:b,hash:!0,replace:!0}):g.jsx(u,{to:h.blog,params:{org:o,agentId:s},search:i=>({...b(i),blogCollection:t.collection,blogItem:t.item}),hash:!0,replace:!0}),e[7]=s,e[8]=o,e[9]=t.collection,e[10]=t.item,e[11]=t.postId,e[12]=d):d=e[12],d}function y(m){return{...m,contentCollection:void 0,contentItem:void 0}}export{k as B,E as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,b as T,j as t,i2 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,b5 as ie,t as K,ay as O,ge 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-PfzOl7J6.js";import{i as fe}from"./AlertCircle-GXBIxFcm.js";import{s as V}from"./Plus-D452i-ki.js";import{s as me}from"./Trash01-_1ewPMOO.js";import{B as R}from"./badge-CPdAi539.js";import{E as ge}from"./empty-state-yinauESn.js";import{L as B}from"./label-C3bFtEDk.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-DbxUTGle.js";import{S as je}from"./switch-CdoFqihq.js";import{T as ke}from"./textarea-0zeG6rdh.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-FzJwNbFB.js";import{R as Se}from"./require-capability-Ca04y4iT.js";import"./index-BdQq_4o_.js";import"./index-Chdoy1DO.js";import"./ChevronUp-FDrusEQ7.js";import"./access-gate-CpF5setC.js";import"./capability-load-error-BCoAaz36.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,i2 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,b5 as ie,t as K,ay as O,ge 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-D8HDDDUz.js";import{i as fe}from"./AlertCircle-zr0wX6rF.js";import{s as V}from"./Plus-CRtXbDBy.js";import{s as me}from"./Trash01-1vS11V6D.js";import{B as R}from"./badge-DQH-sPh3.js";import{E as ge}from"./empty-state-Deh8mRpo.js";import{L as B}from"./label-C6Eod_61.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-CpVl3_2f.js";import{S as je}from"./switch-CG9p29mC.js";import{T as ke}from"./textarea-Cgu68q3w.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-Css7VrGO.js";import{R as Se}from"./require-capability-DR0RkcLX.js";import"./index-BdQq_4o_.js";import"./index-DaVJsKZ7.js";import"./ChevronUp-DKklQ3bJ.js";import"./access-gate-DpTCyI4G.js";import"./capability-load-error-Cy1nsQed.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-D8HDDDUz.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};
|