decocms 4.613.2 → 4.614.0
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-Dq-KNxM5.js → AlertCircle-DAO8Cblw.js} +1 -1
- package/dist/client/assets/{AreaChart-DJZ5kkMZ.js → AreaChart-DmQd6PSL.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Dqn2bT_w.js → ArrowLeft-CT2LzszE.js} +1 -1
- package/dist/client/assets/{ArrowRight-CAgDickW.js → ArrowRight-pWGgV3sk.js} +1 -1
- package/dist/client/assets/{ArrowUp-4sBBKZzK.js → ArrowUp-BJQg9AA1.js} +1 -1
- package/dist/client/assets/{BookOpen01-B7HgfzTg.js → BookOpen01-NJdRqnsB.js} +1 -1
- package/dist/client/assets/{CartesianChart-C6F39bSp.js → CartesianChart-vfIUAkaA.js} +1 -1
- package/dist/client/assets/{CategoricalChart-C1JOIphb.js → CategoricalChart-vKY4cy0c.js} +1 -1
- package/dist/client/assets/{CheckCircle-C_Ajm69Q.js → CheckCircle-TiszLk0g.js} +1 -1
- package/dist/client/assets/{ChevronDown-CTfQz_yW.js → ChevronDown-DLp4f_Dh.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-wx6gpppj.js → ChevronSelectorVertical-CWnQQEhh.js} +1 -1
- package/dist/client/assets/{ChevronUp-Bg3xtRAf.js → ChevronUp-CWIsOhVe.js} +1 -1
- package/dist/client/assets/{CreditCard01-CB7PvVHx.js → CreditCard01-Cup3kK-t.js} +1 -1
- package/dist/client/assets/{Eye-DlR25mJG.js → Eye-CpYkFfrM.js} +1 -1
- package/dist/client/assets/{File02-B5-QN1Dl.js → File02-DIeMsRip.js} +1 -1
- package/dist/client/assets/{Fingerprint04-CN5vYo8p.js → Fingerprint04-DHrTMQWz.js} +1 -1
- package/dist/client/assets/{Globe04-H2BdZ0Ti.js → Globe04-B3z7rCIS.js} +1 -1
- package/dist/client/assets/{Image01-BFqudZKw.js → Image01-c7d3c0NN.js} +1 -1
- package/dist/client/assets/{Key01-DIFUZKO4.js → Key01-B4doqhLg.js} +1 -1
- package/dist/client/assets/{LayoutLeft-D8DREd3Q.js → LayoutLeft-W1QrQNCQ.js} +1 -1
- package/dist/client/assets/{LinkBroken01-OtZzvuyI.js → LinkBroken01-B1J8elNo.js} +1 -1
- package/dist/client/assets/{MessageCircle01-DiHU7gWc.js → MessageCircle01-B4uczpCj.js} +1 -1
- package/dist/client/assets/{Minus-C-L0uUsK.js → Minus-CjA8gEfB.js} +1 -1
- package/dist/client/assets/{Monitor01-Dd5mByvl.js → Monitor01-Sf2_a_zw.js} +1 -1
- package/dist/client/assets/{Play-Cz8nUNXY.js → Play-BoXUJR8B.js} +1 -1
- package/dist/client/assets/{Plus-Hrr9Aktn.js → Plus-C9Aly22c.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DVi6s9_q.js → ReferenceLine-CN7wd2Ky.js} +1 -1
- package/dist/client/assets/{SearchMd-Bw_DK2gP.js → SearchMd-BGdlYs4L.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BcP4nQLO.js → ShoppingBag01-Csv6OfPx.js} +1 -1
- package/dist/client/assets/{Sun-BBMaxO6y.js → Sun-BV3Rjj5o.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DLzxh9Gd.js → SwitchHorizontal01-BypmkJpL.js} +1 -1
- package/dist/client/assets/{Tool01-nVLtxvHv.js → Tool01-AKltE4in.js} +1 -1
- package/dist/client/assets/{Tooltip-B1HSol_f.js → Tooltip-CCQIZeI4.js} +1 -1
- package/dist/client/assets/{Trash01-Dh6D7ABD.js → Trash01-BIsikoZ9.js} +1 -1
- package/dist/client/assets/{Upload01-CuWxQjza.js → Upload01-KlZn1WFA.js} +1 -1
- package/dist/client/assets/{UserCheck01-C0gKOYWe.js → UserCheck01--3bpkFxi.js} +1 -1
- package/dist/client/assets/{UserSquare-DqYKKMSn.js → UserSquare-DQ1GTm9S.js} +1 -1
- package/dist/client/assets/{Users01-BFb0vp-t.js → Users01-1IU76HkK.js} +1 -1
- package/dist/client/assets/{XClose-CcNfsDjh.js → XClose-DjYKMVV7.js} +1 -1
- package/dist/client/assets/{Zap-Dg9_Uuep.js → Zap-CAuzJCQQ.js} +1 -1
- package/dist/client/assets/{access-gate-B0BUDTBB.js → access-gate-BjKwrEoi.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-D8yvZRqW.js → add-connection-dialog-BhDktSiS.js} +1 -1
- package/dist/client/assets/agent-app-0w4aCRlp.js +1 -0
- package/dist/client/assets/{agent-assets-D4pZ70ME.js → agent-assets-C3ECJx34.js} +1 -1
- package/dist/client/assets/{agent-automation-Bou8c436.js → agent-automation-Bcjl85RL.js} +1 -1
- package/dist/client/assets/{agent-automations-9MMhBcJW.js → agent-automations-B2eTQS99.js} +1 -1
- package/dist/client/assets/{agent-blog-BB8ao3RW.js → agent-blog-Cye4FB7J.js} +2 -2
- package/dist/client/assets/{agent-blog-post-CYDyrSUs.js → agent-blog-post-BDlwkMB5.js} +2 -2
- package/dist/client/assets/{agent-business-case-BTaC_R0K.js → agent-business-case-BHzosbfk.js} +1 -1
- package/dist/client/assets/{agent-calendar-COMylNyr.js → agent-calendar-C7jxdDxm.js} +1 -1
- package/dist/client/assets/{agent-capabilities-B548bjTr.js → agent-capabilities-CqBL254L.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CoXgdwS0.js → agent-connect-sources-BgiXxdZo.js} +1 -1
- package/dist/client/assets/agent-deck-CD3LQQ2o.js +1 -0
- package/dist/client/assets/{agent-e2e-C65B8hGv.js → agent-e2e-CRkMEwdK.js} +1 -1
- package/dist/client/assets/agent-experiments-BANE_Vte.js +1 -0
- package/dist/client/assets/agent-file-h2ha3iyY.js +1 -0
- package/dist/client/assets/{agent-hosting-D4Z6xzJ7.js → agent-hosting-DSGfXe7D.js} +1 -1
- package/dist/client/assets/{agent-icon-TiRfS6qN.js → agent-icon-0bk2UcIS.js} +1 -1
- package/dist/client/assets/agent-library-BlVrt-Mh.js +1 -0
- package/dist/client/assets/agent-library-file-DA1vwjxZ.js +1 -0
- package/dist/client/assets/agent-overview-BzPLYj0I.js +1 -0
- package/dist/client/assets/{agent-releases-ChNVOFY0.js → agent-releases-aK-8TPYt.js} +1 -1
- package/dist/client/assets/agent-settings-BHHaGITT.js +1 -0
- package/dist/client/assets/{agent-site-editor-DeBHGJyd.js → agent-site-editor-CdKQGd7Z.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-B18xGY1I.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BTzSjidc.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CsSmNnGy.js +1 -0
- package/dist/client/assets/agent-view-D-JWIh6v.js +1 -0
- package/dist/client/assets/{agent-view-guard-6uqg13NS.js → agent-view-guard-DqvQ1F6B.js} +1 -1
- package/dist/client/assets/{ai-providers-CU_EzZfp.js → ai-providers-BeS15LZf.js} +1 -1
- package/dist/client/assets/{alert-BAKJ5tDY.js → alert-B4E-pz_8.js} +1 -1
- package/dist/client/assets/{analytics-sections-kXxFHR8K.js → analytics-sections-Ds7eb47h.js} +1 -1
- package/dist/client/assets/api-keys-C9noRsfE.js +1 -0
- package/dist/client/assets/{api-keys-F_tbBvf0.js → api-keys-Ca0zqoWz.js} +1 -1
- package/dist/client/assets/{app-editor-CBnearTx.js → app-editor-BrH3BC5S.js} +1 -1
- package/dist/client/assets/{asset-utils-HMGAdoDi.js → asset-utils-CTNjcxfT.js} +1 -1
- package/dist/client/assets/{auth-D02eFBMZ.js → auth-Cp8AG92B.js} +1 -1
- package/dist/client/assets/{auth-catchall-e7kz1Zn1.js → auth-catchall-D0SukS2x.js} +1 -1
- package/dist/client/assets/{auth-entry-BCAumgkq.js → auth-entry-eEnICvFw.js} +1 -1
- package/dist/client/assets/{auth-split-layout-eS8OY8FQ.js → auth-split-layout-CdXFMg0a.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-ByjK-IN5.js → authenticate-and-persist-oauth-CbpIFClV.js} +1 -1
- package/dist/client/assets/{automation-list-row-BVpyBCbG.js → automation-list-row-BrsDauKw.js} +1 -1
- package/dist/client/assets/{automation-runs-CNPxxThM.js → automation-runs-dj99ZHlz.js} +1 -1
- package/dist/client/assets/{automations-Dq3dBjCm.js → automations-DLNV1FeW.js} +1 -1
- package/dist/client/assets/{badge-BBSQh6Uu.js → badge-MSgPF8i6.js} +1 -1
- package/dist/client/assets/{block-document-RjLwgnqu.js → block-document-d5qeh-5R.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BPIeOkFy.js → blocks-preview-workspace-context-k6_o_sTg.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BK5yayIF.js → blocks-tab-states-C8EhNA94.js} +1 -1
- package/dist/client/assets/{blog-preview-url-C-j3cWFn.js → blog-preview-url-Bd4vzpOU.js} +1 -1
- package/dist/client/assets/{blog-schema-DECpfoR_.js → blog-schema-96Hbg5pM.js} +1 -1
- package/dist/client/assets/{blog-source-gate-4Qts-ar8.js → blog-source-gate-CVk34e-_.js} +1 -1
- package/dist/client/assets/{blog-view-gate-DhsbDKri.js → blog-view-gate-B2RpRsK5.js} +1 -1
- package/dist/client/assets/{buckets-wb15whxi.js → buckets-CxKFg1Rq.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DEjZ9hmy.js → build-improve-prompt-doc-D2jdOkRZ.js} +1 -1
- package/dist/client/assets/{calendar-D9jiUY0V.js → calendar-BvlMTEJz.js} +1 -1
- package/dist/client/assets/{capability-load-error-CejuD9Wa.js → capability-load-error-BIP7OfRW.js} +1 -1
- package/dist/client/assets/{category-editor-CehKb-Ft.js → category-editor-B6OhTBuY.js} +1 -1
- package/dist/client/assets/{category-tree-B0yO1Gq4.js → category-tree-CfcuYGq1.js} +1 -1
- package/dist/client/assets/{chart-Di4PD1Ji.js → chart-qPtsM-po.js} +1 -1
- package/dist/client/assets/{chat-context-DpOzXt67.js → chat-context-DjT4b8lQ.js} +24 -25
- package/dist/client/assets/{chat-draft-5W1w5RyD.js → chat-draft-CCkjIQCm.js} +1 -1
- package/dist/client/assets/{checkbox-DONKjPez.js → checkbox-DDfyr6g6.js} +1 -1
- package/dist/client/assets/{choose-editor-D6fBK6_s.js → choose-editor-C7Ola2VR.js} +1 -1
- package/dist/client/assets/{cli-auth-success-D5JPZlKL.js → cli-auth-success-Cd8H0jhw.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-B-tSTY59.js → cms-settings-editor-DUScdF0j.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-COCpu3ir.js → cms-store-drafts-713r2LTs.js} +1 -1
- package/dist/client/assets/{collapsible-Bkbqa1G8.js → collapsible-B2z4b61B.js} +1 -1
- package/dist/client/assets/{collection-detail-C9zAMC1T.js → collection-detail-BXtc6ekK.js} +1 -1
- package/dist/client/assets/{collection-display-button-B_m3Bbl9.js → collection-display-button-TJREQ-hZ.js} +1 -1
- package/dist/client/assets/{collection-search-CpEkYZRJ.js → collection-search-DMUeYNum.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-25JYiKDs.js → collection-table-wrapper-Blb8NJFf.js} +1 -1
- package/dist/client/assets/{collection-tabs-CcFA7CAt.js → collection-tabs-DXVhkE7f.js} +1 -1
- package/dist/client/assets/{combobox-CtbjK522.js → combobox-DBLqJQwK.js} +1 -1
- package/dist/client/assets/{command-DOsfIbnR.js → command-CMA98G_b.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-ChQXno59.js → companion-mcps-section-C6ssP1JL.js} +1 -1
- package/dist/client/assets/{config-SXpXedVw.js → config-DmE-h3o5.js} +1 -1
- package/dist/client/assets/{connect-FNLd1CWe.js → connect-BC31DKmL.js} +1 -1
- package/dist/client/assets/{connect-key-NAk-jeH9.js → connect-key-CPt8mh8U.js} +1 -1
- package/dist/client/assets/{connect-layout-DOfe8ci6.js → connect-layout-DKIHuML_.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-8Z_ZVQcB.js → connect-source-dialog-fXZLh_sB.js} +1 -1
- package/dist/client/assets/{connection-DVaoR-0s.js → connection-BwZ4lmw2.js} +1 -1
- package/dist/client/assets/{connection-card-B1-XvXXp.js → connection-card-BPzewKTU.js} +1 -1
- package/dist/client/assets/{connection-detail-OV0LjFGf.js → connection-detail-TaI_RvqN.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-jkxcvfr-.js → connection-form-helpers-Dh-UO47F.js} +1 -1
- package/dist/client/assets/{connection-slug-woWVmFSM.js → connection-slug-RL5I0rfj.js} +1 -1
- package/dist/client/assets/{connections-DPkjll4_.js → connections-DGerGDKv.js} +1 -1
- package/dist/client/assets/{content-changes-CL5pqu3o.js → content-changes-CHbng7Fl.js} +1 -1
- package/dist/client/assets/{content-tab-DTlwh5lS.js → content-tab-n2PFPVPw.js} +3 -3
- package/dist/client/assets/{context-Bzdt0Vmq.js → context-3oFD507u.js} +1 -1
- package/dist/client/assets/{context-menu-DuU5Im6X.js → context-menu-DIpwBrgd.js} +1 -1
- package/dist/client/assets/{context-shell-C34E3UmN.js → context-shell-CNgVrDrh.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-DCXCnTtw.js → create-organization-dialog-CxHpYFD9.js} +1 -1
- package/dist/client/assets/{daily-pulse-pGzxz6az.js → daily-pulse-B1DjserV.js} +1 -1
- package/dist/client/assets/{delete-copy-DrkS10Tk.js → delete-copy-DzXdPBt9.js} +1 -1
- package/dist/client/assets/{device-hint-D2mnF0WW.js → device-hint-BAwO2-11.js} +1 -1
- package/dist/client/assets/{discover-CxlzrXFo.js → discover-Cy4nx0DQ.js} +1 -1
- package/dist/client/assets/{domain-settings-5GZZzP9P.js → domain-settings-CfCFdjWH.js} +1 -1
- package/dist/client/assets/{drawer-DBYfxUc5.js → drawer--TAK3w4e.js} +1 -1
- package/dist/client/assets/{editor-k1lz5vd2.js → editor-Di-PiOHZ.js} +1 -1
- package/dist/client/assets/{editor-classes-Dt9x0HTK.js → editor-classes-DoqQAPex.js} +1 -1
- package/dist/client/assets/{empty-state-DG74voMp.js → empty-state-BxQvC8dr.js} +1 -1
- package/dist/client/assets/{empty-state-BaX7qcT6.js → empty-state-DVbcNWDh.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BuTlL0UN.js → experiments-tab-choice-H9XZQm5N.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D8RA7aNY.js → extract-connection-data-BIXY1F36.js} +1 -1
- package/dist/client/assets/{feature-gate-INFDgxGv.js → feature-gate-CPiqJcA7.js} +1 -1
- package/dist/client/assets/{feature-paywall-DzuuNoC0.js → feature-paywall-DInbXGdg.js} +1 -1
- package/dist/client/assets/{file-explorer-BzowyIJt.js → file-explorer-YURfBwo8.js} +1 -1
- package/dist/client/assets/{file-preview-CFmw-Mpm.js → file-preview-69js7s8F.js} +1 -1
- package/dist/client/assets/{file-share-button-jBqCmXDE.js → file-share-button-CKuUsk2M.js} +1 -1
- package/dist/client/assets/{file-type-icon-DDtj-qsY.js → file-type-icon-DNMrvTXh.js} +1 -1
- package/dist/client/assets/{folder-icon-C6S6S7y5.js → folder-icon-Sye7ezIF.js} +1 -1
- package/dist/client/assets/{form-Dj9qATwb.js → form-DPvjiqhu.js} +1 -1
- package/dist/client/assets/{frame-navigation-DfV5ZXB6.js → frame-navigation-A0LVte-y.js} +1 -1
- package/dist/client/assets/{gateway-client-Bt-zgCod.js → gateway-client-BZYQ57Xz.js} +1 -1
- package/dist/client/assets/{general-DcAkDAnh.js → general-D2mCv6M6.js} +1 -1
- package/dist/client/assets/{github-icon-CA0Se8ib.js → github-icon-Csyi9aVw.js} +1 -1
- package/dist/client/assets/{held-block-view-DjEfvbV2.js → held-block-view-Cz6SKldK.js} +1 -1
- package/dist/client/assets/{home-BskRwsLF.js → home-Cbai8otj.js} +1 -1
- package/dist/client/assets/{home-overview-BtB0DXFZ.js → home-overview-Beeq-x1h.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-5ztqbsR8.js → hosted-reconcile-BmTwITCX.js} +1 -1
- package/dist/client/assets/{icon-button-C-do25HN.js → icon-button-T38urafn.js} +1 -1
- package/dist/client/assets/{index-IihCyBIe.js → index-B4as1hxW.js} +1 -1
- package/dist/client/assets/{index-DFlR3TGo.js → index-BBtvnV78.js} +1 -1
- package/dist/client/assets/{index-B9qoaIXB.js → index-BRpTnqSP.js} +1 -1
- package/dist/client/assets/{index-CKWVjdl2.js → index-BTqCAGGA.js} +1 -1
- package/dist/client/assets/{index-Cbr3sV-N.js → index-Bg2Sq8-p.js} +1 -1
- package/dist/client/assets/{index-TxpTb6t-.js → index-BmFua4_V.js} +3 -3
- package/dist/client/assets/{index-rQ7Z7wiX.js → index-CEvi6MRf.js} +1 -1
- package/dist/client/assets/{index-BqI8xAEu.js → index-CHJQo1pu.js} +1 -1
- package/dist/client/assets/{index-D4h9lMWL.js → index-CObSRL90.js} +1 -1
- package/dist/client/assets/{index-hsXsAM7a.js → index-CekzbOTN.js} +1 -1
- package/dist/client/assets/{index-s9Fdb2Os.js → index-CufGYOzR.js} +1 -1
- package/dist/client/assets/{index-CxzzYASZ.js → index-D0kUoV3I.js} +1 -1
- package/dist/client/assets/{index-DI7rDat7.js → index-D1g4VlMb.js} +1 -1
- package/dist/client/assets/{index-BkmXMKSP.js → index-De6pkEUU.js} +1 -1
- package/dist/client/assets/{index-OS1HwRA4.js → index-j19Cnreh.js} +1 -1
- package/dist/client/assets/{index-CmIQCfmv.js → index-qLQc7GJ9.js} +1 -1
- package/dist/client/assets/{index-redirect-B1lzC4kG.js → index-redirect-BURqf7qm.js} +1 -1
- package/dist/client/assets/{index-DV21r4ku.js → index-vb6x8krx.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DIsWsg7j.js → infiniteQueryObserver-B07wc3gz.js} +1 -1
- package/dist/client/assets/{infra-billing-Cv366YeZ.js → infra-billing-mI9_ZX9w.js} +1 -1
- package/dist/client/assets/{input-B0bn39Xh.js → input-BtWx1h9I.js} +3 -3
- package/dist/client/assets/{input-D3XRlNJ0.js → input-SdMF8jO-.js} +1 -1
- package/dist/client/assets/{integration-icon-BwJVBZD3.js → integration-icon-CgXZyLPZ.js} +1 -1
- package/dist/client/assets/{item-actions-sAOtmY_t.js → item-actions-CsyJY4hq.js} +1 -1
- package/dist/client/assets/{jira-icon-DnVzGbtF.js → jira-icon-c5TocDCn.js} +1 -1
- package/dist/client/assets/{label-DBXumtTI.js → label-DLrqdV8m.js} +1 -1
- package/dist/client/assets/{layout-B01bM09Y.js → layout-CAAWA3dA.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-BpjGA_Qv.js → legacy-admin-welcome-dialog-DE1LU3w1.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-D4KFdpXi.js → legacy-agents-deep-DuAPkgg8.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DtMiSRM8.js → legacy-main-redirect-DTLo_Dyv.js} +1 -1
- package/dist/client/assets/library-DsCGjda2.js +1 -0
- package/dist/client/assets/{library-tab-DmJI4J-D.js → library-tab-DeUw_4zK.js} +1 -1
- package/dist/client/assets/{login-BeE0wfrC.js → login-C2y7Yh92.js} +1 -1
- package/dist/client/assets/{markdown-hcA80xrk.js → markdown-BFHFiMsu.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CLV9FGK8.js → mcp-app-renderer-BElODDsa.js} +1 -1
- package/dist/client/assets/{mcp-oauth-5-PCIXK8.js → mcp-oauth-ac-uLk4g.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D2tuj_Fq.js → mcp-oauth-rLBhBYCb.js} +1 -1
- package/dist/client/assets/{members-Dy1mBWZ8.js → members-Cx0v1fnV.js} +1 -1
- package/dist/client/assets/{memory-BrJnBalp.js → memory-CUyoxZNc.js} +1 -1
- package/dist/client/assets/{mock-board-CPIKUKL1.js → mock-board-a3EqpDi2.js} +3 -3
- package/dist/client/assets/{monaco-editor-DMwFk1Pi.js → monaco-editor-B_7PVA6R.js} +1 -1
- package/dist/client/assets/{monitoring-CnoT48hP.js → monitoring-DO5IV-Bu.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BBhVaUWr.js → monitoring-stats-row-BrQLx0B-.js} +1 -1
- package/dist/client/assets/{multi-select-D4aZZa9s.js → multi-select-D7EVDx2J.js} +1 -1
- package/dist/client/assets/{mustache-CGuBlULa.js → mustache-Q6yQ8khe.js} +1 -1
- package/dist/client/assets/{named-rule-step-JGMEcn4W.js → named-rule-step-CFoc5qUE.js} +1 -1
- package/dist/client/assets/{named-rule-view-BfDnPZe1.js → named-rule-view-DO9utpu1.js} +1 -1
- package/dist/client/assets/{new-project-dialog-dB7_i4Qt.js → new-project-dialog-BZK8ka6l.js} +1 -1
- package/dist/client/assets/{new-project-store-yM3ZBfr8.js → new-project-store-DwU6DopG.js} +1 -1
- package/dist/client/assets/{oauth-callback-BRFLeRze.js → oauth-callback-CNfYP0kC.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BIkfCc8L.js → oauth-callback-ai-provider-C2uXF8m_.js} +1 -1
- package/dist/client/assets/{oauth-consent-n4PMUX9j.js → oauth-consent-CllrUvYR.js} +1 -1
- package/dist/client/assets/{onboarding-COIJY0bR.js → onboarding-DhXbs-fH.js} +1 -1
- package/dist/client/assets/{openai-conversation-DJJmihen.js → openai-conversation-CD5iNQyb.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CyT7T37Q.js → optimistic-project-sidebar-views-BOWGMupL.js} +1 -1
- package/dist/client/assets/{order-monitor-day-xy0NwjGB.js → order-monitor-day-Bg7cKKH8.js} +1 -1
- package/dist/client/assets/{organization-choice-Dd6EFRi5.js → organization-choice-AvOqhGWN.js} +1 -1
- package/dist/client/assets/{orgs-CVbB4v1z.js → orgs-Djb91Ddh.js} +1 -1
- package/dist/client/assets/{own-accounts-section-hyTDXYqP.js → own-accounts-section-DY05KyFR.js} +1 -1
- package/dist/client/assets/{pair-Cpn9911A.js → pair-DwdNU8in.js} +1 -1
- package/dist/client/assets/{parse-sections-BNgGwb6K.js → parse-sections-BfJ0En-V.js} +2 -2
- package/dist/client/assets/plan-DsJjzSpH.js +1 -0
- package/dist/client/assets/{plan-ladder-SUG2zxVV.js → plan-ladder-k40NveZy.js} +1 -1
- package/dist/client/assets/{plan-page-B97PZapX.js → plan-page-BWctllEJ.js} +1 -1
- package/dist/client/assets/{plan-usage-card-v0p0iaSW.js → plan-usage-card-BQXVDdHv.js} +1 -1
- package/dist/client/assets/{popover-BhQvI6Ci.js → popover-DXE2ZxJe.js} +1 -1
- package/dist/client/assets/{post-calendar-CJI0B6nx.js → post-calendar-DnnzK0Zf.js} +1 -1
- package/dist/client/assets/{post-editor-Bm9waQu0.js → post-editor-CLcH6e9N.js} +1 -1
- package/dist/client/assets/{preview-content-v0t5au3m.js → preview-content-Bz-He8KU.js} +1 -1
- package/dist/client/assets/{preview-dialog-_4bYbxJT.js → preview-dialog-wmutK6r5.js} +1 -1
- package/dist/client/assets/{preview-panel-CT3YwHBi.js → preview-panel-BLn0wZ0O.js} +1 -1
- package/dist/client/assets/{preview-tab-DnzBBG3r.js → preview-tab-DQ9iO25O.js} +3 -3
- package/dist/client/assets/{primitives-B09ImGmM.js → primitives-DhPOvKh2.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-BpoeAcrJ.js → product-picker-dialog-CU4RdL1t.js} +1 -1
- package/dist/client/assets/{profile-B2mQKj4P.js → profile-z_q_kXbV.js} +1 -1
- package/dist/client/assets/{project-app-view-CJ0A-hzz.js → project-app-view-B-aHXB5j.js} +1 -1
- package/dist/client/assets/{project-apps-DTdFltAq.js → project-apps-BjG-gQ2D.js} +1 -1
- package/dist/client/assets/{project-icon-79iKoL5J.js → project-icon-DQECQJRO.js} +1 -1
- package/dist/client/assets/{project-index-Dvzw5ZPI.js → project-index-Bh9jfwR8.js} +1 -1
- package/dist/client/assets/project-reports-Bj7jiUWg.js +1 -0
- package/dist/client/assets/project-tasks-BXiKvYiD.js +1 -0
- package/dist/client/assets/{projects-DeIxK4ey.js → projects-BSlWm-Wh.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BXwSmEvF.js → projects-empty-state-CPzIeLmU.js} +1 -1
- package/dist/client/assets/{prompts-BtYZ6KQi.js → prompts-PfNwUNQI.js} +1 -1
- package/dist/client/assets/record-editor-CjhnirQn.js +1 -0
- package/dist/client/assets/{redirect-editor-FE4kqSSu.js → redirect-editor-DPFYJLy_.js} +1 -1
- package/dist/client/assets/reports-DIz5OTLp.js +1 -0
- package/dist/client/assets/{reports-P6WItYho.js → reports-_AG0d3B_.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DQj52VFI.js → reports-onboarding-DVc0ggVW.js} +1 -1
- package/dist/client/assets/{reports-tab-ChXJb_14.js → reports-tab-CkaQ9mZO.js} +2 -2
- package/dist/client/assets/{repositories-C9coyoWr.js → repositories-BY5EZJ6Z.js} +1 -1
- package/dist/client/assets/repositories-DGImKazf.js +1 -0
- package/dist/client/assets/{repository-binding-C6Q6rTCq.js → repository-binding-CabkwAHk.js} +1 -1
- package/dist/client/assets/{repository-picker-qO39HBTX.js → repository-picker-C5foJ37k.js} +1 -1
- package/dist/client/assets/{require-capability-BGgQVq09.js → require-capability-FySDF95c.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C0Zoqnd5.js → required-auth-layout-BPH0ESw7.js} +1 -1
- package/dist/client/assets/{reset-password-DR2sfETw.js → reset-password-Xt58kreD.js} +1 -1
- package/dist/client/assets/{resizable-BU4mxyhl.js → resizable-CD_IWP4z.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DzSk2OX5.js → resolve-tab-icon-PxjRZX1H.js} +1 -1
- package/dist/client/assets/{review-settings-CkjRPLoQ.js → review-settings-kLfb142p.js} +1 -1
- package/dist/client/assets/{role-color-ofXYD2zQ.js → role-color-IuFM2ryV.js} +1 -1
- package/dist/client/assets/{roles-CeC1qNxL.js → roles-ChChHxNe.js} +1 -1
- package/dist/client/assets/{route-CbX_GqVG.js → route-B8iUhppJ.js} +1 -1
- package/dist/client/assets/route-BxTybqtK.js +1 -0
- package/dist/client/assets/{route-Q-TODpFM.js → route-CrNL-7g4.js} +1 -1
- package/dist/client/assets/{route-page-header-1R1hO2lM.js → route-page-header-DCLl7OR3.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-b8vIZog_.js → sandbox-git-api-Col1MWY3.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-ByKDEtoo.js → sandbox-lifecycle-context-D5b-1gmk.js} +1 -1
- package/dist/client/assets/{save-status-BSEg8O16.js → save-status-DRBFObbb.js} +1 -1
- package/dist/client/assets/{schema-BMMpRaT7.js → schema-C9adA9zO.js} +1 -1
- package/dist/client/assets/schema-DSiYMOaw.js +1 -0
- package/dist/client/assets/{scroll-area-BX1dEYr0.js → scroll-area-eq_7FsGx.js} +1 -1
- package/dist/client/assets/{search-input-Cqw1sfoq.js → search-input-BoK5M9a3.js} +1 -1
- package/dist/client/assets/{search-toggle-DFPiKmeS.js → search-toggle-BjojcpZc.js} +1 -1
- package/dist/client/assets/{secret-picker-DM_GCERi.js → secret-picker-CYgqZ7Hs.js} +1 -1
- package/dist/client/assets/{secrets-BZLR1Tiv.js → secrets-BKHsbBC1.js} +1 -1
- package/dist/client/assets/{section-array-field-C53JCS6V.js → section-array-field-CFTEx6aa.js} +1 -1
- package/dist/client/assets/{sections-Dm3F-fbD.js → sections-dcTP2l6r.js} +1 -1
- package/dist/client/assets/{sections-editor-DqVIkY4X.js → sections-editor-abMn7yC2.js} +1 -1
- package/dist/client/assets/{select-B043gNlI.js → select-BeWEAY37.js} +1 -1
- package/dist/client/assets/{select-model-ey39mV4L.js → select-model-BYnA0Gwu.js} +1 -1
- package/dist/client/assets/{seo-editor-3qfBE8tb.js → seo-editor-DSBQXHQz.js} +1 -1
- package/dist/client/assets/{separator-BbdzmQ7G.js → separator-NMEa418C.js} +1 -1
- package/dist/client/assets/{session-runtime-C7t2dJ2C.js → session-runtime-C2nnx1Yy.js} +1 -1
- package/dist/client/assets/settings-tab-CGly607F.js +1 -0
- package/dist/client/assets/{sheet-BabUGgfu.js → sheet-kN_qJtMS.js} +1 -1
- package/dist/client/assets/{shell-layout-CQtuJ10m.js → shell-layout-3lFHGRrU.js} +1 -1
- package/dist/client/assets/{site-draft-actions-RiUXDN62.js → site-draft-actions-B9Zn1-TU.js} +1 -1
- package/dist/client/assets/{site-draft-view-C02Ag8Td.js → site-draft-view-DNdjn9-p.js} +1 -1
- package/dist/client/assets/site-editor-DMFFmEQP.js +1 -0
- package/dist/client/assets/{site-editor-toast-Dw3Pw8Me.js → site-editor-toast-XhGY7zwS.js} +1 -1
- package/dist/client/assets/{skills-CHy7b1a1.js → skills-BOhR4tMn.js} +1 -1
- package/dist/client/assets/{slider-Cuy5OPtR.js → slider-C7epTuZ8.js} +1 -1
- package/dist/client/assets/{sortable.esm-DsfJ7ZSD.js → sortable.esm-cU4I4793.js} +1 -1
- package/dist/client/assets/{sso-a2YGfBSd.js → sso-DTIktZWR.js} +1 -1
- package/dist/client/assets/{suggestion-C_46bv7Q.js → suggestion-DDGRykra.js} +1 -1
- package/dist/client/assets/{super-agent-icon-Cu75RS7q.js → super-agent-icon-DuRj24lp.js} +1 -1
- package/dist/client/assets/{switch-CYj4jY2U.js → switch-BDueaRYD.js} +1 -1
- package/dist/client/assets/{synced-repos-_8GdV1yJ.js → synced-repos-C9zElGzV.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-C0XKpT27.js → tab-icon-glyph-DDgZ5H3d.js} +1 -1
- package/dist/client/assets/{table-C7JAS84x.js → table-DVo_G9_3.js} +1 -1
- package/dist/client/assets/{tabs-BjPWlou5.js → tabs-CdvvfON1.js} +1 -1
- package/dist/client/assets/{task-board-nk38_QK1.js → task-board-Yoy13hyS.js} +1 -1
- package/dist/client/assets/{task-key-BqL0wDoN.js → task-key-C5ElV36G.js} +1 -1
- package/dist/client/assets/{task-route-I0jIuRPI.js → task-route-Ch0tFEd1.js} +1 -1
- package/dist/client/assets/{task-status-bacBrTx-.js → task-status-DTW_J3bv.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DlpWTStQ.js → taskboard-analytics-DKHMo41r.js} +1 -1
- package/dist/client/assets/{tasks-D3aEqkkc.js → tasks-C5GIN5E_.js} +1 -1
- package/dist/client/assets/tasks-DvmfNBQ-.js +1 -0
- package/dist/client/assets/{textarea-BtM4NiRw.js → textarea-DLWBFN0v.js} +1 -1
- package/dist/client/assets/{thread-analytics-Dc7tir8o.js → thread-analytics-BTLWyHKx.js} +1 -1
- package/dist/client/assets/{thread-button-DCotVRko.js → thread-button-DhVQCmsX.js} +1 -1
- package/dist/client/assets/{thread-intent-xzBTK_RX.js → thread-intent-_uutGDUM.js} +1 -1
- package/dist/client/assets/{thread-route-De5HF2y6.js → thread-route-6FnoI5qD.js} +1 -1
- package/dist/client/assets/{thread-route-CHHapqFU.js → thread-route-D1CUkAJD.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-C-nzP9iT.js → thread-sheet-body-Cub1fKq-.js} +1 -1
- package/dist/client/assets/{time-range-picker-BegNa_X6.js → time-range-picker-BMwT3626.js} +1 -1
- package/dist/client/assets/{toggle-group-DKY7ztEe.js → toggle-group-DWX0nZ4H.js} +1 -1
- package/dist/client/assets/{tool-set-selector-DgXNH17f.js → tool-set-selector-ALSL3hVp.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-uzcw3yD2.js → toolbar-icon-button-Dqj7VQX8.js} +1 -1
- package/dist/client/assets/{tooltip-DYXaNugu.js → tooltip-CZRZIxk-.js} +1 -1
- package/dist/client/assets/{tooltipContext-Jj9fHDnV.js → tooltipContext-C809C4iy.js} +1 -1
- package/dist/client/assets/{track-Bq86LoP3.js → track-bHg709cw.js} +1 -1
- package/dist/client/assets/{types-CIVGvpZ0.js → types-DlpVggui.js} +1 -1
- package/dist/client/assets/{url-slug-DMOAQ_lT.js → url-slug-BB82g1u7.js} +1 -1
- package/dist/client/assets/{usage-stats-BDD0I25a.js → usage-stats-DoFb8ztD.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B_vRXviN.js → use-ai-providers-BiyN-WCF.js} +1 -1
- package/dist/client/assets/{use-api-keys-uAL0hDQR.js → use-api-keys-Cxi_5Vd-.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-Dk0qpjV1.js → use-apply-named-rule-DYECMRmC.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-BxctC8S7.js +1 -0
- package/dist/client/assets/{use-automations-DRPUZksG.js → use-automations-QvQ9-U2U.js} +1 -1
- package/dist/client/assets/{use-autosave-DV_OoQIn.js → use-autosave-daygBqez.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-B-t0WNBy.js +1 -0
- package/dist/client/assets/use-blog-view-BIvVJJix.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-Cyyj9Un-.js → use-chat-layout-state-0AI7ifjI.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-OZwei3g4.js → use-cms-publish-actions-BftFrua2.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BYNhLNMG.js → use-connect-companion-m06ztMgB.js} +1 -1
- package/dist/client/assets/{use-connection-IXleYE4j.js → use-connection-B0cGUNwk.js} +1 -1
- package/dist/client/assets/{use-content-sync-BMrVE7lN.js → use-content-sync-Uc9pHBlX.js} +1 -1
- package/dist/client/assets/{use-copy-9udQq6fq.js → use-copy-DBQlG5IR.js} +1 -1
- package/dist/client/assets/{use-current-view-mBQFHLUH.js → use-current-view-C2oQ48ps.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BQ8fok30.js → use-date-fns-locale-CTETVyWx.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CKKt6tHK.js → use-debounced-autosave-MeU8h_HM.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CbXd2Ffh.js → use-debounced-value-DuUlLfhZ.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Cqj99_dF.js → use-deco-credits-Uln4dtix.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CSZ1As5G.js → use-decopilot-events-CMFmWECg.js} +1 -1
- package/dist/client/assets/{use-delete-block-Do2HxsU1.js → use-delete-block-C86wRu-_.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DrCH_dJP.js → use-delete-connection-DOgqGw9b.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-TEfqeIeo.js → use-deployment-admin-D_-Itupi.js} +1 -1
- package/dist/client/assets/{use-entitlements-DQIFZSxg.js → use-entitlements-Dia0AILI.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DKxuxaaY.js → use-fast-preview-draft-url-CknqyNDE.js} +1 -1
- package/dist/client/assets/{use-file-configs-BUa8LWQS.js → use-file-configs-CzQQ90JX.js} +1 -1
- package/dist/client/assets/{use-id-selection-LPkxd-T5.js → use-id-selection-19rSeTxc.js} +1 -1
- package/dist/client/assets/{use-in-settings-CMsR7cZQ.js → use-in-settings-Bq0BGd_d.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BGCSyRP9.js → use-inbox-feed-n8hshusZ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BCd_t7BT.js → use-infinite-scroll-BH-5t-Jt.js} +1 -1
- package/dist/client/assets/{use-join-requests-BQQOoEyQ.js → use-join-requests-BL2OdQfH.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DOFIkafU.js → use-main-panel-tabs-CC60Yh9H.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BbCzZJ_7.js → use-mcp-auth-status-DSNKfIOW.js} +1 -1
- package/dist/client/assets/{use-mcp-client-ExS_LtHV.js → use-mcp-client-TEXwfWPr.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CMM6TNGu.js → use-mcp-prompts-BaL3X4-_.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CCU4p9Rz.js → use-mcp-tools-B28YCUnj.js} +1 -1
- package/dist/client/assets/{use-mobile-CJUXV6Cd.js → use-mobile-G7Femuy-.js} +1 -1
- package/dist/client/assets/{use-move-blocks-CVrXFQf9.js → use-move-blocks-DOZBEkmq.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-GgUPd_lv.js → use-navigate-to-agent-ecN99SMa.js} +1 -1
- package/dist/client/assets/{use-never-published-BXBSYXJD.js → use-never-published-Dx3XaQEP.js} +1 -1
- package/dist/client/assets/{use-org-fs-7ZhjAHDq.js → use-org-fs-DJGPTW8O.js} +1 -1
- package/dist/client/assets/{use-org-notice-DZNaXzPK.js → use-org-notice-C1K-wnIy.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CU6eNoAC.js → use-org-repo-syncs-BYwpsVLM.js} +1 -1
- package/dist/client/assets/{use-org-sso-BKEBkMtq.js → use-org-sso-B8YY7LK8.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BMzmJwkq.js → use-organization-settings-DnrsF2IG.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-TXIh5Jjf.js → use-panel-navigate-TgZj9ROm.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-iIZzPh0n.js → use-project-native-view-presence-D7VbyaBn.js} +1 -1
- package/dist/client/assets/{use-project-scope-CKvnTLpI.js → use-project-scope-LWmEyb6r.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CsoTzvcJ.js → use-recent-apps-DfJLp7oI.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-B5ktHIcG.js → use-reports-diagnostic-DkJXZlqi.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-DgTm5p14.js → use-sandbox-events-B1yboBKL.js} +1 -1
- package/dist/client/assets/{use-secrets-CmhNvyh-.js → use-secrets-DEk6ozji.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CxmHxD8c.js → use-section-preview-base-C-VDv-6q.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-DdxzWT5S.js → use-sidebar-collapsed-CHZKq9oZ.js} +1 -1
- package/dist/client/assets/{use-tags-CyEQyAhi.js → use-tags-CoDR1Zmu.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BPZdg5me.js → use-task-board-analytics-VYu88gcp.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-ByWZevYZ.js → use-task-board-item-prs-BWa7fz4R.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BIQu-vu8.js → use-task-board-items--V3JyFqK.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BD95sybY.js → use-task-board-prompts-BwomBVhP.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DGT_hCy-.js → use-task-metadata-lWqkLjl-.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DvgezGKZ.js → use-thread-outputs-BlJPEHoZ.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-kwEa5AZ1.js → use-view-draft-kind-C3BJYXR8.js} +1 -1
- package/dist/client/assets/{use-voice-input-B_fCdMky.js → use-voice-input-Cor9Dsop.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-F3rbh2kJ.js +1 -0
- package/dist/client/assets/{useQueries-DCrQluth.js → useQueries-B-JshDOA.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DltqzRHJ.js +1 -0
- package/dist/client/assets/{users-DdaIDntv.js → users-43nQLl3d.js} +1 -1
- package/dist/client/assets/{utils-D0VJmDFc.js → utils-eOeHxAm4.js} +1 -1
- package/dist/client/assets/{variant-calendar-CY-CCOVR.js → variant-calendar-Blbs7r8N.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-cLg6yoTm.js → variant-matcher-override-DeKQe6Ib.js} +1 -1
- package/dist/client/assets/{view-header-b9iFwHmd.js → view-header-K5jK9-59.js} +1 -1
- package/dist/client/assets/{virtual-mcp-D_GJvAm-.js → virtual-mcp-CKMXaKii.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-El5ChbJr.js → watch-sse-pool-Bcd0P23K.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +607 -607
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DAxew1JC.js +0 -1
- package/dist/client/assets/agent-deck-BHuydkDy.js +0 -1
- package/dist/client/assets/agent-experiments-zhJy530d.js +0 -1
- package/dist/client/assets/agent-file-DRxbKJHY.js +0 -1
- package/dist/client/assets/agent-library-DAqV7GV5.js +0 -1
- package/dist/client/assets/agent-library-file-BOPS4LzV.js +0 -1
- package/dist/client/assets/agent-overview-765039jq.js +0 -1
- package/dist/client/assets/agent-settings-CAaYS-Qb.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CkHYzP36.js +0 -2
- package/dist/client/assets/agent-site-editor-content-vjaFp3r3.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-D3yLw8y2.js +0 -1
- package/dist/client/assets/agent-view-Bmp94OXB.js +0 -1
- package/dist/client/assets/api-keys-DgrPbRdJ.js +0 -1
- package/dist/client/assets/library-C7GgLZCd.js +0 -1
- package/dist/client/assets/plan-BgBMTT48.js +0 -1
- package/dist/client/assets/project-reports-BOQt_VM8.js +0 -1
- package/dist/client/assets/project-tasks-D-84Davh.js +0 -1
- package/dist/client/assets/record-editor-QKxjwfux.js +0 -1
- package/dist/client/assets/reports-CC1bODVK.js +0 -1
- package/dist/client/assets/repositories-Dhj06u1H.js +0 -1
- package/dist/client/assets/route-D2IDmDBG.js +0 -1
- package/dist/client/assets/schema-DQMwqc3y.js +0 -1
- package/dist/client/assets/settings-tab-DmZrvXS-.js +0 -1
- package/dist/client/assets/site-editor-CvXc40pp.js +0 -1
- package/dist/client/assets/tasks-DrukY02x.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BVkYjPHL.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BSH68G_p.js +0 -1
- package/dist/client/assets/use-blog-view-CtOHSMkK.js +0 -1
- package/dist/client/assets/useInfiniteQuery-B1B1l9Rx.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DFT4-et2.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bu as z,c as ae,q as xt,K as rt,i as Lt,fJ as Ct,fe as Mt,fr as Xe,fu as It,bB as ne,bC as it,fK as xe,bq as Ut,br as ot,fm as Dt,ff as Nt,bD as st,bE as Kt,fL as Vt,ef as Ft,b as ye,a6 as qt,j as L,B as Le,L as Wt,h as Yt,a9 as zt}from"./index-TxpTb6t-.js";import{c as Qt,x as Gt,u as Ht,v as Xt,ac as Zt,ai as Jt,aj as en,ak as tn,al as nn,C as rn,y as on}from"./site-editor-toast-Dw3Pw8Me.js";import{b as sn}from"./sandbox-url-D3mC8qhT.js";import{u as cn}from"./use-voice-input-B_fCdMky.js";import{i as an}from"./AlertCircle-Dq-KNxM5.js";import{ar as ct}from"./agent-icon-TiRfS6qN.js";import{E as Ce}from"./empty-state-DG74voMp.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 mr(e){return K[e]}const gr=de.map(e=>K[e].blockKey);function fn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function hr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function _r(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const ln="deco";function vr(e,t){if(!z(e))return"missing";const n=K[t],r=Ze(e,n.resolveType),i=Ze(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===ln;return o(r)&&o(i)?"available":"replaced"}function Ze(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function Je(e,t){const n=K[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,A]of Object.entries(o)){if(l==="__resolveType")continue;const R=t==="experiments"?un(A):pn(A);R===null?f.push(l):c[l]=R}return{kind:"saved",block:o,values:c,invalid:f}}function br(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function Tr(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function un(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function pn(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 Ar(e){return e<=0?"off":e>=100?"everyone":"running"}function Sr(e){if(!me(e))return null;const t=fn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function Rr(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const yn="date";function Or(e){return me(e)&&e.__resolveType===yn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function Er(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function kr(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 dn(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 mn=5e3;function gn(e,t){return e.kind==="live"?new URL("/live/_meta",e.baseUrl).href:sn(t,"site-meta")}const hn=new Map;async function _n(e,t,n=hn){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 vn(e){return rt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Pr(e,t){const n=ae.c(30),{url:r}=Qt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Gt(e?.virtualMcpId),{previewServerUrl:l,runtime:A}=cn(e?.virtualMcpId),R=!i&&A==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=xt(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Zt(e,P):vn({...e,previewUrl:c,productionUrl:l}):rt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let I;n[5]!==O.kind||n[6]!==V||n[7]!==R||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Jt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>R?nn(e):rn(e,on(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:dn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:R});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 _n(gn(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]=O.kind,n[6]=V,n[7]=R,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=I):I=n[17];const W=!!e&&O.kind!=="pending",$=P?!1:i?mn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==R||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||R||i||s.status!==502)&&G<3,n[18]=R,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==I||n[24]!==W||n[25]!==$||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:I,enabled:W,refetchInterval:$,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:tn},n[22]=j,n[23]=I,n[24]=W,n[25]=$,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],Lt(Y)}const bn=new Set(["split-traffic","calendar"]);function Tn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const An=12,Sn=8,ke=32,Rn=40,et="__SECTION_REF__";function se(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function tt(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 On="VideoWidget";function J(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function at(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Me(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ie(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function ft(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Me(e)??Ie(e);if(r){for(const f of ft(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=at(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 jr(e,t){return Object.keys(ge(e,t)).length>0}function lt(e,t){if(Ct(e,t))return!0;const n=Me(t)??Ie(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(ft(n.vendor,n.app).some(c=>c in r))return!0;const i=at(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function En(e){return e==="site/apps/site.ts"?!1:Me(e)!==null||Ie(e)!==null}function kn(e,t){return ut(t,{resolveType:e})}function wr(e,t){return ut(t,{ref:e})}function ut(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===et?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,A=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]}},R=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},O=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:O(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===et?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),B=a.anyOf??a.oneOf;if(!Array.isArray(B))return[];const E=new Set([...y,d]);return B.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},I=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>An)return{};if(typeof s.$ref=="string"){const B=s.$ref.split("/").pop()??"";return y.has(B)?{}:W(c(s.$ref),new Set([...y,B]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...J(a.__required),...J(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=J(a.__required),H=W(x,y,d+1);a={...a,...H};const C=B==="allOf"?[...U,...J(H.__required)]:U;C.length>0?a.__required=C:delete a.__required}}return a},$=(s,y=0,d=new Set)=>{let a=s,B;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";B=k,k===On&&!a.format&&(a={...a,format:"video-uri"})}a=O(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,U=(k,m,v,T=!0)=>!E&&(!T||v<=Rn)&&m<Sn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(T=>!(T.type==="null"||T.type===null)),v=T=>{if(typeof T.const=="string"||typeof T.const=="number")return T.const;if(Array.isArray(T.enum)&&T.enum.length===1&&(typeof T.enum[0]=="string"||typeof T.enum[0]=="number"))return T.enum[0]};m.length>0&&m.every(T=>v(T)!==void 0)&&(H=m.map(T=>v(T)))}}let C,oe,Fe,qe=!1;if(a.type)C=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(v=>!(v.type==="null"||v.type===null));if(m.length===0)C="null";else if(m.length===1){const v=m[0];oe=v;const T=O(v);typeof v.$ref=="string"&&se(T)?(C="array",Fe=T.items):C=v.type?Array.isArray(v.type)?String(v.type[0]):String(v.type):typeof v.$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 v=m.filter(V),T=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(se),Se=u=>{if(typeof u.$ref!="string")return;const p=O(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const M=l(_),N=M.properties;return!N?.__resolveType&&!M.anyOf&&!M.oneOf&&(M.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},le=m.flatMap(u=>{const p=Se(u);return p?[p]:[]}),Pt=le.length===0&&m.filter(u=>!se(O(u))).every(u=>typeof u.$ref=="string"||v.includes(u)),jt=v.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Mt||z(e)&&p[0]==="multivariate")}),Re=(u=[])=>{const p=new Map;for(const S of[...v,...m.filter(b=>!v.includes(b)).flatMap(b=>q(b)),...u]){const b=Q(S);b&&!p.has(b)&&p.set(b,S)}const g=[...p].map(([S,b])=>({resolveType:S,title:typeof b.title=="string"?b.title:ne(S),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,p.size)})),h=[];for(const S of m){if(v.includes(S)||typeof S.$ref!="string")continue;const b=c(S.$ref);let X;const Z=b.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(b.allOf))for(const $t of b.allOf){const Ee=$t.properties?.__resolveType?.enum;if(Array.isArray(Ee)&&typeof Ee[0]=="string"){X=Ee[0];break}}X&&h.push({resolveType:X,title:typeof b.title=="string"&&!b.title.startsWith("#")?b.title:ne(X),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,m.length)})}const w=new Set(g.map(S=>S.resolveType)),_=[...g,...h.filter(S=>!w.has(S.resolveType))],M=m.filter(S=>!v.includes(S)),N=M.length===1&&!E?$(M[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:T,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!tt(D,c);if(u&&le.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!I(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>se(O(_))),w=le.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,M)=>({title:R(_,`Option ${M+1}`),schema:$(_,y+1,x)})),{title:R(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Re(le.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&Pt){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:v.length>0?{...Re(),title:g,description:h}:void 0}}if(jt){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(v.length>0)return Re();const ze=u=>{const p=l(u);if(typeof p.title=="string"&&Xe(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},Qe=m.map(u=>A(u));if(m.length>1&&Qe.every(u=>typeof u=="string")&&!m.some(ze)){const u=m.map((p,g)=>{const h=l(p),w=Qe[g];return{resolveType:w,title:R(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>J(_.required).includes("type")),schema:U(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Oe=u=>{if(ze(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},wt=u=>{const p=O(u);return se(p)?!tt(p,c):!1},Ge=y<ke&&m.every(u=>Oe(u)||wt(u))&&m.some(Oe),He=m.every(u=>typeof u.$ref=="string"),Bt=z(e)&&!He&&m.some(u=>typeof u.$ref=="string"&&bn.has(Tn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Oe(u));if((He||Bt)&&!Ge){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const S=Xe(g.title);S&&(h=S.blockId,w=S.blockId)}if(!h&&Array.isArray(g.allOf))for(const S of g.allOf){const Z=((S.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[0],_=!0;break}}if(!h){const b=g.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(h=b[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const M=h.includes("/")||_&&!It(h),N=M?void 0:A(p);!N&&!M||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:U(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:T,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Ge){const u=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[M,N]of Object.entries(w)){const S=u(N);S!==void 0&&(_[M]=S)}return{title:R(g,`Option ${h+1}`),schema:$(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}C="object"}}else a.allOf?(C="object",qe=I(a.title)):typeof s.$ref=="string"&&(C="object");let fe,We,Ye=!1;if(y<ke&&!E){const k=W(a),m=k.__resolveType?.enum;Ye=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const v=J(k.__required);v.length>0&&(We=v);const T=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(T.length>0){fe={};for(const[D,Se]of T)fe[D]=$(Se,y+1,x)}}let Ae;if((C==="array"||a.type==="array")&&y<ke&&!E){const k=a.items??Fe;if(k){Ae=$(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Ae.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},kt=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:C??"string",title:typeof s.title=="string"?s.title:!qe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:kt(),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:fe,required:We,items:Ae,lazy:Ye&&fe?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(C==="object"||C==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return $({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=O(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=$(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=I(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=$(y,0));if(Object.keys(Y).length===0)return null;const G=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 Br(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(A=>!A.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function $r(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,A=O=>O===!0||O==="true",R=A(l.hide)||A(l.ignore)||A(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:R||void 0}}const pt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Pn=new Set(pt);function De(e){return Pn.has(e)}function Ne(e,t){return De(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function xr(e,t){return Ne(e,z(t)?t:void 0)}function he(e){return e.replace(/\/+$/,"")||"/"}function Lr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function jn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Cr(e){const t=e.trim();return t?jn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function wn(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function yt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Mr(e){e=yt(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 Ir(e,t){return yt(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 dt=pt[0],Bn=new Set(["site/sections/Theme/Theme.tsx"]);function $n(e,t){return Bn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function _e(e,t){return!!($n(e,z(t))||ot(e)||e.toLowerCase().includes("preview"))}function mt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(De(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":dt}function xn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Ur(e){return e?xn(e)?"page":mt(e):dt}function Pe(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Pe(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...Pe(n));return t}return[]}function Ln(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(_e(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 Dr(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))_e(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 gt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!ht(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"&&ot(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&xe(e,f))return f}return n}function ht(e,t){return e===Dt||t&&e===Nt}function Cn(e,t){return gt(e,t)!==t.__resolveType}function _t(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||it(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||De(c)||typeof o.path=="string"||_e(c,e)||!(xe(e,c)||ht(c,z(e))&&Cn(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Mn(e,t){const n=st(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 Nr(e,t){const n=mt(e),r=kn(n,e),i=Pe(r?.properties?.sections),o=new Map,c=f=>{if(!_e(f.resolveType,e)){if(st(f.resolveType,e)){it(f.resolveType)||o.set(f.resolveType,f);return}xe(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of Ln(e))c(f);for(const f of i)c(Mn(e,f));for(const f of _t(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Kr(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 ve="website/loaders/redirect.ts",Vr=new Set([ve,"website/loaders/redirects.ts"]),be="redirect",In=[301,302,307,308],Un={temporary:307,permanent:301};function Fr(e){return e.flat&&e.status||Un[e.type]}const ue=e=>typeof e=="string"?e:"",Dn=e=>e==="permanent"?"permanent":"temporary",Nn=e=>In.find(t=>t===e);function vt(e){const t=Nn(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 Te(e){if(e?.__resolveType===be)return vt(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:Dn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Kn(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!==ve&&i.__resolveType!==be||t.push({key:n,...Te(i)})}return t}function qr(e){return Te(e)}function Vn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:be,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:ve}}function Fn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const qn=1e3;function Wr(e,t){const n=Fn(t);for(let r=0;r<qn;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 Wn="Redirects",bt="redirects";function Tt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===bt}function Yn(e){return Object.keys(e).filter(n=>Tt(e[n])).sort()[0]??Wn}function Yr(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)||!Tt(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 At(e){return"redirect"in e?Te(e):vt({...e})}function St(e,t){const{__resolveType:n,...r}=Vn(e,{...t});return r}function zr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:ve}:{...n,__resolveType:be}])}function Qr(e,t=Yn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...At(n)}))}function Gr(e,t){const n=re(e)[t];return n?At(n):Te(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:bt,redirects:t}}function Hr(e,t){return Ve(e,[...re(e),St(t)])}function Xr(e,t,n){const r=re(e),i=r.slice();return i[t]=St(n,r[t]),Ve(e,i)}function Zr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function zn(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 Jr(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=je(e,r);if(o)return o}if(i){const o=je(e,i);if(o)return o}return null}function je(e,t,n){const r=he;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 ei(e,t,n){const r=je(e,t,n);return r||he(t)!=="/"?r:Gn(e)??e[0]??null}function Qn(e){return he(e).split("/").filter(Boolean)}function Gn(e){const t=e.map(n=>Qn(n.path));return e.find((n,r)=>{if(wn(n.path).length>0)return!1;const i=t[r];return t.every(o=>i.every((c,f)=>o[f]===c))})??null}const ce="site",Rt="site/apps/site.ts";function we(e,t){return e===ce?!0:t.__resolveType===Rt}function ti(e,t){return e?Ot(e,t).length>0||Kn(e).length>0?!0:t?tr(e,t).length>0||Jn(e,t)?!0:er(e,t).length>0:!1:!1}function Hn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Ne(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:zn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Hn(r,i,t);o&&n.push(o)}return n}function Be(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>Be(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>Be(i,t,n+1))}function nt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):Be(e,t)}function Xn(e,t,n){const r=Ot(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||nt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&nt(e[c.key],o))}function ni(e,t,n){const r=o=>he(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Xn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function Zn(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function $e(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 Jn(e,t){const n=e[ce];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(we(ce,r)||lt(t,i)))return{key:ce,name:$e(ce,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(!we(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:Rt;return{key:r,name:$e(r,o,t),resolveType:c}}return null}function er(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"&&(Ne(c,t)||typeof o.path!="string"&&(we(r,o)||!lt(t,c)&&!En(c)||n.push({key:r,name:$e(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function tr(e,t){return _t(t,e).map(n=>{const r=e[n.resolveType],i=gt(t,r);return{key:n.resolveType,name:n.description??Zn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const nr=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,rr={posts:"post",categories:"category",authors:"author"},Et=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ri(e,...t){const n=e?nr.exec(e)?.[1]:void 0;if(n)return rr[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=Et.find(c=>pe(r[c]));if(o)return o}return null}function ir(...e){for(const t of e)if(pe(t))for(const n of Et){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 or(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function ii(e,t,n){return ir(...t)??or(e,n)}const sr="https://github.com/decocms/blocks";function oi(){const e=ae.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(zt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(Le,{size:"sm",asChild:!0,children:L.jsxs("a",{href:sr,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(Ce,{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 si(e){const t=ae.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(an,{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 A;t[6]!==i?(A=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=A):A=t[7];let R;t[8]!==r||t[9]!==A?(R=L.jsx(Le,{variant:"outline",size:"sm",onClick:r,children:A}),t[8]=r,t[9]=A,t[10]=R):R=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==R?(O=L.jsx(Ce,{image:f,title:l,description:c,actions:R}),t[11]=c,t[12]=l,t[13]=R,t[14]=O):O=t[14],O}function ci(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ai(){const e=ae.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(ct,{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(Le,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(Wt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let A;return e[12]!==i||e[13]!==o||e[14]!==l?(A=L.jsx(Ce,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=A):A=e[15],A}function fi(e){const t=ae.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Yt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{xr as $,Zn as A,si as B,fi as C,bt as D,zr as E,hr as F,gt as G,qr as H,Yr as I,Jr as J,Jn as K,Kn as L,Dr as M,de as N,Vr as O,Yn as P,Zr as Q,Un as R,ai as S,Qr as T,Wr as U,Vn as V,Hr as W,Ur as X,De as Y,Br as Z,$r as _,Lr as a,xn as a0,Pe as a1,_e as a2,Hn as a3,zn as a4,ri as a5,ii as a6,_r as a7,or as a8,dt as a9,me as aa,wr as ab,Nr as ac,Sr as ad,Je as ae,Or as af,Rr as ag,br as ah,Er as ai,mr as aj,ir as ak,Ar as al,kr as am,Kr as an,je as ao,Gr as ap,In as aq,Xr as ar,oi as b,Ot as c,tr as d,wn as e,Ir as f,ei as g,ti as h,ci as i,vr as j,gr as k,mt as l,jr as m,he as n,Rt as o,ni as p,we as q,Tr as r,Mr as s,En as t,Pr as u,Cr as v,$e as w,Ue as x,Fr as y,kn as z};
|
|
1
|
+
import{bu as z,c as ae,q as xt,K as rt,i as Lt,fJ as Ct,fe as Mt,fr as Xe,fu as It,bB as ne,bC as it,fK as xe,bq as Ut,br as ot,fm as Dt,ff as Nt,bD as st,bE as Kt,fL as Vt,ef as Ft,b as ye,a6 as qt,j as L,B as Le,L as Wt,h as Yt,a9 as zt}from"./index-BmFua4_V.js";import{c as Qt,x as Gt,u as Ht,v as Xt,ac as Zt,ai as Jt,aj as en,ak as tn,al as nn,C as rn,y as on}from"./site-editor-toast-XhGY7zwS.js";import{b as sn}from"./sandbox-url-D3mC8qhT.js";import{u as cn}from"./use-voice-input-Cor9Dsop.js";import{i as an}from"./AlertCircle-DAO8Cblw.js";import{ar as ct}from"./agent-icon-0bk2UcIS.js";import{E as Ce}from"./empty-state-BxQvC8dr.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 mr(e){return K[e]}const gr=de.map(e=>K[e].blockKey);function fn(e){for(const t of de)if(K[t].matcher===e)return t;return null}function hr(e){for(const t of de)if(K[t].resolveType===e)return t;return null}function _r(e){for(const t of de)if(K[t].blockKey===e)return t;return null}const ln="deco";function vr(e,t){if(!z(e))return"missing";const n=K[t],r=Ze(e,n.resolveType),i=Ze(e,n.matcher);if(!r||!i)return"missing";const o=c=>c.namespace===void 0||c.namespace===ln;return o(r)&&o(i)?"available":"replaced"}function Ze(e,t){const n=e?.manifest?.blocks??{};for(const r of Object.values(n))if(r&&Object.hasOwn(r,t))return r[t]??{};return null}function Je(e,t){const n=K[t],r=Object.hasOwn(e,n.blockKey)?e[n.blockKey]:void 0;if(r==null)return{kind:"absent",block:{__resolveType:n.resolveType},values:Object.create(null),invalid:[]};const i=me(r)?r.__resolveType:void 0;if(i!==n.resolveType)return{kind:"conflict",resolveType:typeof i=="string"?i:""};const o=r,c=Object.create(null),f=[];for(const[l,A]of Object.entries(o)){if(l==="__resolveType")continue;const R=t==="experiments"?un(A):pn(A);R===null?f.push(l):c[l]=R}return{kind:"saved",block:o,values:c,invalid:f}}function br(e,t){return e.kind!=="conflict"&&Object.hasOwn(e.values,t)}function Tr(e){const t=Je(e,"experiments"),n=Je(e,"campaigns");return{experiments:t.kind==="conflict"?{}:t.values,campaigns:n.kind==="conflict"?{}:n.values}}function un(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=100?e:null}function pn(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 Ar(e){return e<=0?"off":e>=100?"everyone":"running"}function Sr(e){if(!me(e))return null;const t=fn(e.__resolveType);if(!t)return null;const n=e[K[t].field];return typeof n=="string"?{kind:t,name:n}:null}function Rr(e,t){const n=K[e];return{__resolveType:n.matcher,[n.field]:t}}const yn="date";function Or(e){return me(e)&&e.__resolveType===yn&&(Object.hasOwn(e,"start")||Object.hasOwn(e,"end"))}function Er(e,t,n,r){return{...e,__resolveType:K[t].resolveType,[n]:r}}function kr(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 dn(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 mn=5e3;function gn(e,t){return e.kind==="live"?new URL("/live/_meta",e.baseUrl).href:sn(t,"site-meta")}const hn=new Map;async function _n(e,t,n=hn){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 vn(e){return rt.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,e.previewUrl??"",e.productionUrl??"")}function Pr(e,t){const n=ae.c(30),{url:r}=Qt(e?.virtualMcpId),i=!!r,o=i||(t?.fetchEnabled??!0),c=r??e?.previewUrl,f=Gt(e?.virtualMcpId),{previewServerUrl:l,runtime:A}=cn(e?.virtualMcpId),R=!i&&A==="cms",O=Ht(e?.virtualMcpId,e?.branch),P=O.kind==="protocol"?O:null,Q=xt(),V=Xt(e??null);let q;n[0]!==e||n[1]!==c||n[2]!==l||n[3]!==P?(q=e?P?Zt(e,P):vn({...e,previewUrl:c,productionUrl:l}):rt.liveMeta(""),n[0]=e,n[1]=c,n[2]=l,n[3]=P,n[4]=q):q=n[4];const j=q;let I;n[5]!==O.kind||n[6]!==V||n[7]!==R||n[8]!==o||n[9]!==i||n[10]!==f||n[11]!==e||n[12]!==c||n[13]!==l||n[14]!==P||n[15]!==Q||n[16]!==j?(I=async()=>{if(P){const{meta:d}=await Jt(Q,P,e,V);if(d instanceof Error)throw d;return d}if(O.kind==="unavailable")throw en("live meta");const G=()=>R?nn(e):rn(e,on(f,".deco/meta.gen.json")),s=i&&c?[{kind:"live",baseUrl:c}]:dn({fetchEnabled:o,previewUrl:c,productionUrl:l,fastPreviewActive:R});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 _n(gn(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]=O.kind,n[6]=V,n[7]=R,n[8]=o,n[9]=i,n[10]=f,n[11]=e,n[12]=c,n[13]=l,n[14]=P,n[15]=Q,n[16]=j,n[17]=I):I=n[17];const W=!!e&&O.kind!=="pending",$=P?!1:i?mn:t?.refetchInterval,ee=P?!1:void 0,ie=P?P.describe.pollIntervalMs:3e5;let F;n[18]!==R||n[19]!==i||n[20]!==P?(F=(G,s)=>(P||R||i||s.status!==502)&&G<3,n[18]=R,n[19]=i,n[20]=P,n[21]=F):F=n[21];let Y;return n[22]!==j||n[23]!==I||n[24]!==W||n[25]!==$||n[26]!==ee||n[27]!==ie||n[28]!==F?(Y={queryKey:j,queryFn:I,enabled:W,refetchInterval:$,refetchIntervalInBackground:!1,refetchOnWindowFocus:ee,staleTime:ie,retry:F,retryDelay:tn},n[22]=j,n[23]=I,n[24]=W,n[25]=$,n[26]=ee,n[27]=ie,n[28]=F,n[29]=Y):Y=n[29],Lt(Y)}const bn=new Set(["split-traffic","calendar"]);function Tn(e){const n=e.properties?.__resolveType?.enum;return Array.isArray(n)&&typeof n[0]=="string"?n[0]:""}const An=12,Sn=8,ke=32,Rn=40,et="__SECTION_REF__";function se(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function tt(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 On="VideoWidget";function J(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function at(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function Me(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Ie(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function ft(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function ge(e,t){const n=t.manifest?.blocks??{};for(const f of Object.values(n))if(f[e])return f[e];const r=Me(e)??Ie(e);if(r){for(const f of ft(r.vendor,r.app))for(const l of Object.values(n))if(l[f])return l[f]}const i=at(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 jr(e,t){return Object.keys(ge(e,t)).length>0}function lt(e,t){if(Ct(e,t))return!0;const n=Me(t)??Ie(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(ft(n.vendor,n.app).some(c=>c in r))return!0;const i=at(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function En(e){return e==="site/apps/site.ts"?!1:Me(e)!==null||Ie(e)!==null}function kn(e,t){return ut(t,{resolveType:e})}function wr(e,t){return ut(t,{ref:e})}function ut(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===et?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,A=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]}},R=(s,y)=>{const d=l(s);return typeof d.title=="string"&&!d.title.startsWith("#")?d.title:y},O=(s,y=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const d=s.$ref.split("/").pop()??"";return!d||y.has(d)?s:O(c(s.$ref),new Set([...y,d]))},P=(s,y=new Set)=>{if(typeof s.$ref!="string")return!1;const d=s.$ref.split("/").pop()??"";return s.$ref==="#/root/sections"||d===et?!0:!d||y.has(d)?!1:P(c(s.$ref),new Set([...y,d]))},Q=s=>{const y=s.properties?.__resolveType?.enum;return Array.isArray(y)&&typeof y[0]=="string"?y[0]:void 0},V=s=>Q(s)!==void 0,q=(s,y=new Set)=>{if(typeof s.$ref!="string")return[];const d=s.$ref.split("/").pop()??"";if(!d||y.has(d))return[];const a=c(s.$ref),B=a.anyOf??a.oneOf;if(!Array.isArray(B))return[];const E=new Set([...y,d]);return B.flatMap(x=>V(x)?[x]:q(x,E))},j=s=>{const y=s.hide;return y===!0||y==="true"},I=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),W=(s,y=new Set,d=0)=>{if(d>An)return{};if(typeof s.$ref=="string"){const B=s.$ref.split("/").pop()??"";return y.has(B)?{}:W(c(s.$ref),new Set([...y,B]),d+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...J(a.__required),...J(s.required)]);for(const B of["allOf","anyOf","oneOf"]){const E=s[B];if(Array.isArray(E))for(const x of E){const U=J(a.__required),H=W(x,y,d+1);a={...a,...H};const C=B==="allOf"?[...U,...J(H.__required)]:U;C.length>0?a.__required=C:delete a.__required}}return a},$=(s,y=0,d=new Set)=>{let a=s,B;if(typeof s.$ref=="string"){a=c(s.$ref);const k=s.$ref.split("/").pop()??"";B=k,k===On&&!a.format&&(a={...a,format:"video-uri"})}a=O(a);const E=B!==void 0&&d.has(B),x=B!==void 0?new Set([...d,B]):d,U=(k,m,v,T=!0)=>!E&&(!T||v<=Rn)&&m<Sn?$(k,m,x):void 0;let H;{const k=a.anyOf??a.oneOf;if(Array.isArray(k)){const m=k.filter(T=>!(T.type==="null"||T.type===null)),v=T=>{if(typeof T.const=="string"||typeof T.const=="number")return T.const;if(Array.isArray(T.enum)&&T.enum.length===1&&(typeof T.enum[0]=="string"||typeof T.enum[0]=="number"))return T.enum[0]};m.length>0&&m.every(T=>v(T)!==void 0)&&(H=m.map(T=>v(T)))}}let C,oe,Fe,qe=!1;if(a.type)C=Array.isArray(a.type)?String(a.type.find(k=>k!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const m=(a.anyOf??a.oneOf).filter(v=>!(v.type==="null"||v.type===null));if(m.length===0)C="null";else if(m.length===1){const v=m[0];oe=v;const T=O(v);typeof v.$ref=="string"&&se(T)?(C="array",Fe=T.items):C=v.type?Array.isArray(v.type)?String(v.type[0]):String(v.type):typeof v.$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 v=m.filter(V),T=P(s)||m.some(u=>P(u))||void 0,D=m.map(u=>O(u)).find(se),Se=u=>{if(typeof u.$ref!="string")return;const p=O(u),g=p.anyOf??p.oneOf;if(!Array.isArray(g))return;const h=[...g.filter(V),...g.filter(_=>!V(_)).flatMap(_=>q(_))],w=g.filter(_=>{if(V(_)||_.type==="null")return!1;const M=l(_),N=M.properties;return!N?.__resolveType&&!M.anyOf&&!M.oneOf&&(M.type==="object"||!!N)});return h.length>0&&w.length>0?{data:w,loaders:h}:void 0},le=m.flatMap(u=>{const p=Se(u);return p?[p]:[]}),Pt=le.length===0&&m.filter(u=>!se(O(u))).every(u=>typeof u.$ref=="string"||v.includes(u)),jt=v.some(u=>{const p=u.properties?.__resolveType?.enum;return Array.isArray(p)&&(p[0]===Mt||z(e)&&p[0]==="multivariate")}),Re=(u=[])=>{const p=new Map;for(const S of[...v,...m.filter(b=>!v.includes(b)).flatMap(b=>q(b)),...u]){const b=Q(S);b&&!p.has(b)&&p.set(b,S)}const g=[...p].map(([S,b])=>({resolveType:S,title:typeof b.title=="string"?b.title:ne(S),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,p.size)})),h=[];for(const S of m){if(v.includes(S)||typeof S.$ref!="string")continue;const b=c(S.$ref);let X;const Z=b.properties?.__resolveType;if(Array.isArray(Z?.enum)&&typeof Z.enum[0]=="string"&&(X=Z.enum[0]),!X&&Array.isArray(b.allOf))for(const $t of b.allOf){const Ee=$t.properties?.__resolveType?.enum;if(Array.isArray(Ee)&&typeof Ee[0]=="string"){X=Ee[0];break}}X&&h.push({resolveType:X,title:typeof b.title=="string"&&!b.title.startsWith("#")?b.title:ne(X),description:typeof b.description=="string"?b.description:void 0,schema:U(b,y+1,m.length)})}const w=new Set(g.map(S=>S.resolveType)),_=[...g,...h.filter(S=>!w.has(S.resolveType))],M=m.filter(S=>!v.includes(S)),N=M.length===1&&!E?$(M[0],y+1,x):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:_,acceptsAnySection:T,plainSchema:N,hidden:j(a)||j(s)?!0:void 0}};if(D){const u=!tt(D,c);if(u&&le.length>0){const p=typeof s.title=="string"?s.title:typeof a.title=="string"&&!I(a.title)?a.title:void 0,g=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,h=m.find(_=>se(O(_))),w=le.flatMap(_=>_.data);return{type:"inline-union",title:p,description:g,inlineUnionBranches:[...w.map((_,M)=>({title:R(_,`Option ${M+1}`),schema:$(_,y+1,x)})),{title:R(h,`Option ${w.length+1}`),schema:$(D,y+1,x)}],loaderRef:{...Re(le.flatMap(_=>_.loaders)),title:p,description:g},hidden:j(a)||j(s)?!0:void 0}}if(u&&m.length>1&&Pt){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:v.length>0?{...Re(),title:g,description:h}:void 0}}if(jt){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(v.length>0)return Re();const ze=u=>{const p=l(u);if(typeof p.title=="string"&&Xe(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},Qe=m.map(u=>A(u));if(m.length>1&&Qe.every(u=>typeof u=="string")&&!m.some(ze)){const u=m.map((p,g)=>{const h=l(p),w=Qe[g];return{resolveType:w,title:R(p,w),description:typeof h.description=="string"?h.description:void 0,discriminatorValue:w,discriminatorRequired:[h,...h.allOf??[]].some(_=>J(_.required).includes("type")),schema:U(h,y+1,m.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}const Oe=u=>{if(ze(u))return!1;const p=l(u);return p.type==="object"||!!p.properties},wt=u=>{const p=O(u);return se(p)?!tt(p,c):!1},Ge=y<ke&&m.every(u=>Oe(u)||wt(u))&&m.some(Oe),He=m.every(u=>typeof u.$ref=="string"),Bt=z(e)&&!He&&m.some(u=>typeof u.$ref=="string"&&bn.has(Tn(c(u.$ref))))&&m.every(u=>typeof u.$ref=="string"||Oe(u));if((He||Bt)&&!Ge){const u=[];for(const p of m){if(typeof p.$ref!="string")continue;const g=c(p.$ref);let h,w,_=!1;if(typeof g.title=="string"){const S=Xe(g.title);S&&(h=S.blockId,w=S.blockId)}if(!h&&Array.isArray(g.allOf))for(const S of g.allOf){const Z=((S.properties??{}).__resolveType??{}).enum;if(Array.isArray(Z)&&typeof Z[0]=="string"){h=Z[0],_=!0;break}}if(!h){const b=g.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(h=b[0],_=!0)}h||(h=p.$ref.split("/").pop()??"");const M=h.includes("/")||_&&!It(h),N=M?void 0:A(p);!N&&!M||_&&h==="lazy"||u.push({resolveType:N??h,title:w??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:ne(h)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:N,schema:U(g,y+1,m.length)})}return{type:"block-ref",acceptsAnySection:T,title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:u,hidden:j(a)||j(s)?!0:void 0}}if(Ge){const u=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},p=m.map((g,h)=>{const w=l(g).properties??{},_={};for(const[M,N]of Object.entries(w)){const S=u(N);S!==void 0&&(_[M]=S)}return{title:R(g,`Option ${h+1}`),schema:$(g,y+1),discriminators:Object.keys(_).length?_:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:p,hidden:j(a)||j(s)?!0:void 0}}C="object"}}else a.allOf?(C="object",qe=I(a.title)):typeof s.$ref=="string"&&(C="object");let fe,We,Ye=!1;if(y<ke&&!E){const k=W(a),m=k.__resolveType?.enum;Ye=Array.isArray(m)&&m.length===1&&m[0]==="lazy";const v=J(k.__required);v.length>0&&(We=v);const T=Object.entries(k).filter(([D])=>!D.startsWith("__")&&D!=="@type");if(T.length>0){fe={};for(const[D,Se]of T)fe[D]=$(Se,y+1,x)}}let Ae;if((C==="array"||a.type==="array")&&y<ke&&!E){const k=a.items??Fe;if(k){Ae=$(k,y+1,x);const m=l(k);typeof m.title=="string"&&m.title.includes("{{")&&(Ae.titleBy=m.title)}}const te=k=>{const m=oe?.[k];return typeof m=="string"?m:void 0},kt=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(oe&&"default"in oe)return oe.default};return{type:C??"string",title:typeof s.title=="string"?s.title:!qe&&typeof a.title=="string"?a.title:te("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:te("description"),default:kt(),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:fe,required:We,items:Ae,lazy:Ye&&fe?.value?!0:void 0,recursiveRef:E&&typeof s.$ref=="string"&&(C==="object"||C==="array"||a.type==="array")?s.$ref:void 0,hidden:j(a)||j(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:te("titleBy"),image:typeof a.image=="string"?a.image:te("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:te("options")}};if("ref"in t)return $({$ref:t.ref});const ee=f.properties??{},ie=Object.keys(ee).every(s=>s.startsWith("__"));if(Array.isArray(f.allOf)&&f.allOf.length===1&&ie){const s=ee.__resolveType,y=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const d of f.allOf){const a=O(d);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=$(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const x=I(E.title);return{...E,title:x?void 0:E.title,inlineUnionBranches:y?E.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:y}})):E.inlineUnionBranches}}}}const F=W(f),Y={};for(const[s,y]of Object.entries(F))s.startsWith("__")||s==="@type"||(Y[s]=$(y,0));if(Object.keys(Y).length===0)return null;const G=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 Br(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(A=>!A.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const l=c.__resolveType;return!!l&&Array.isArray(l.enum)&&l.enum[0]===e}function $r(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,A=O=>O===!0||O==="true",R=A(l.hide)||A(l.ignore)||A(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:R||void 0}}const pt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],Pn=new Set(pt);function De(e){return Pn.has(e)}function Ne(e,t){return De(e)?!0:Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}function xr(e,t){return Ne(e,z(t)?t:void 0)}function he(e){return e.replace(/\/+$/,"")||"/"}function Lr(e){return e.trim().replace(/^\/+|\/+$/g,"")}function jn(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function Cr(e){const t=e.trim();return t?jn(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Ke=/:([A-Za-z0-9_-]+)|\*/g;function wn(e){const t=[];for(const n of e.matchAll(Ke)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function yt(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Mr(e){e=yt(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 Ir(e,t){return yt(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 dt=pt[0],Bn=new Set(["site/sections/Theme/Theme.tsx"]);function $n(e,t){return Bn.has(e)?!0:t&&!e.includes("/")&&e.toLowerCase()==="theme"}function _e(e,t){return!!($n(e,z(t))||ot(e)||e.toLowerCase().includes("preview"))}function mt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(De(r))return r;return Object.hasOwn(t.pages??{},"page")?"page":dt}function xn(e){return z(e)?Object.hasOwn(e?.manifest?.blocks?.pages??{},"page"):!1}function Ur(e){return e?xn(e)?"page":mt(e):dt}function Pe(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return Pe(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...Pe(n));return t}return[]}function Ln(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(_e(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 Dr(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))_e(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 gt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";const r=z(e);if(!ht(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"&&ot(f)&&(f=c.section?.__resolveType??f),typeof f=="string"&&xe(e,f))return f}return n}function ht(e,t){return e===Dt||t&&e===Nt}function Cn(e,t){return gt(e,t)!==t.__resolveType}function _t(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||it(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||De(c)||typeof o.path=="string"||_e(c,e)||!(xe(e,c)||ht(c,z(e))&&Cn(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Mn(e,t){const n=st(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 Nr(e,t){const n=mt(e),r=kn(n,e),i=Pe(r?.properties?.sections),o=new Map,c=f=>{if(!_e(f.resolveType,e)){if(st(f.resolveType,e)){it(f.resolveType)||o.set(f.resolveType,f);return}xe(e,f.resolveType)&&(o.has(f.resolveType)||o.set(f.resolveType,f))}};for(const f of Ln(e))c(f);for(const f of i)c(Mn(e,f));for(const f of _t(e,t))c(f);return[...o.values()].sort((f,l)=>f.title.localeCompare(l.title))}function Kr(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 ve="website/loaders/redirect.ts",Vr=new Set([ve,"website/loaders/redirects.ts"]),be="redirect",In=[301,302,307,308],Un={temporary:307,permanent:301};function Fr(e){return e.flat&&e.status||Un[e.type]}const ue=e=>typeof e=="string"?e:"",Dn=e=>e==="permanent"?"permanent":"temporary",Nn=e=>In.find(t=>t===e);function vt(e){const t=Nn(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 Te(e){if(e?.__resolveType===be)return vt(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:Dn(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function Kn(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!==ve&&i.__resolveType!==be||t.push({key:n,...Te(i)})}return t}function qr(e){return Te(e)}function Vn(e,t){if(e.flat){const{status:r,discardQueryParameters:i,...o}=t??{};return{...o,__resolveType:be,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:ve}}function Fn(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const qn=1e3;function Wr(e,t){const n=Fn(t);for(let r=0;r<qn;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 Wn="Redirects",bt="redirects";function Tt(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===bt}function Yn(e){return Object.keys(e).filter(n=>Tt(e[n])).sort()[0]??Wn}function Yr(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)||!Tt(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 At(e){return"redirect"in e?Te(e):vt({...e})}function St(e,t){const{__resolveType:n,...r}=Vn(e,{...t});return r}function zr(e,t){return re(t).map((n,r)=>[`${e}#${r}`,"redirect"in n?{...n,__resolveType:ve}:{...n,__resolveType:be}])}function Qr(e,t=Yn(e)){return re(e[t]).map((n,r)=>({key:`${t}#${r}`,...At(n)}))}function Gr(e,t){const n=re(e)[t];return n?At(n):Te(void 0)}function Ve(e,t){return{...e&&typeof e=="object"&&!Array.isArray(e)?e:{},__resolveType:bt,redirects:t}}function Hr(e,t){return Ve(e,[...re(e),St(t)])}function Xr(e,t,n){const r=re(e),i=r.slice();return i[t]=St(n,r[t]),Ve(e,i)}function Zr(e,t){return Ve(e,re(e).filter((n,r)=>r!==t))}function zn(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 Jr(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=je(e,r);if(o)return o}if(i){const o=je(e,i);if(o)return o}return null}function je(e,t,n){const r=he;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 ei(e,t,n){const r=je(e,t,n);return r||he(t)!=="/"?r:Gn(e)??e[0]??null}function Qn(e){return he(e).split("/").filter(Boolean)}function Gn(e){const t=e.map(n=>Qn(n.path));return e.find((n,r)=>{if(wn(n.path).length>0)return!1;const i=t[r];return t.every(o=>i.every((c,f)=>o[f]===c))})??null}const ce="site",Rt="site/apps/site.ts";function we(e,t){return e===ce?!0:t.__resolveType===Rt}function ti(e,t){return e?Ot(e,t).length>0||Kn(e).length>0?!0:t?tr(e,t).length>0||Jn(e,t)?!0:er(e,t).length>0:!1:!1}function Hn(e,t,n){if(!t||typeof t!="object"||Array.isArray(t))return null;const r=t;return typeof r.__resolveType!="string"||!Ne(r.__resolveType,n)||typeof r.path!="string"?null:{key:e,name:typeof r.name=="string"?r.name:zn(e),path:r.path}}function Ot(e,t){const n=[];for(const[r,i]of Object.entries(e)){const o=Hn(r,i,t);o&&n.push(o)}return n}function Be(e,t,n=0){if(n>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(i=>Be(i,t,n+1));const r=e;return typeof r.__resolveType=="string"&&t.has(r.__resolveType)?!0:Object.values(r).some(i=>Be(i,t,n+1))}function nt(e,t){return Kt(e)?Vt(e).some(n=>t.has(n)):Be(e,t)}function Xn(e,t,n){const r=Ot(e,n),i=new Set(r.map(c=>c.key)),o=new Set([t]);for(let c=!0;c;){c=!1;for(const[f,l]of Object.entries(e))o.has(f)||i.has(f)||nt(l,o)&&(o.add(f),c=!0)}return r.filter(c=>c.key!==t&&nt(e[c.key],o))}function ni(e,t,n){const r=o=>he(o.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(o.path)?2:1,[i]=Xn(e,t,n).sort((o,c)=>r(o)-r(c)||(o.path<c.path?-1:o.path>c.path?1:0));return i??null}function Zn(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function $e(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 Jn(e,t){const n=e[ce];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(we(ce,r)||lt(t,i)))return{key:ce,name:$e(ce,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(!we(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:Rt;return{key:r,name:$e(r,o,t),resolveType:c}}return null}function er(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"&&(Ne(c,t)||typeof o.path!="string"&&(we(r,o)||!lt(t,c)&&!En(c)||n.push({key:r,name:$e(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function tr(e,t){return _t(t,e).map(n=>{const r=e[n.resolveType],i=gt(t,r);return{key:n.resolveType,name:n.description??Zn(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const nr=/^(?:collections\/blog|blog-manager)\/(posts|categories|authors)\//,rr={posts:"post",categories:"category",authors:"author"},Et=["post","category","author"];function pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ri(e,...t){const n=e?nr.exec(e)?.[1]:void 0;if(n)return rr[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=Et.find(c=>pe(r[c]));if(o)return o}return null}function ir(...e){for(const t of e)if(pe(t))for(const n of Et){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 or(e,t=Ft){return t(`sectionsEditor.blogKind.${e}`)}function ii(e,t,n){return ir(...t)??or(e,n)}const sr="https://github.com/decocms/blocks";function oi(){const e=ae.c(14),t=ye();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=L.jsx(ct,{size:48,className:"text-muted-foreground"}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t("mainPanelTabs.blocksTabStates.emptyStateTitle"),e[1]=t,e[2]=r):r=e[2];let i;e[3]!==t?(i=t("mainPanelTabs.blocksTabStates.emptyStateDescription"),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=t("mainPanelTabs.blocksTabStates.setupContentEditing"),e[5]=t,e[6]=o):o=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=L.jsx(zt,{size:14}),e[7]=c):c=e[7];let f;e[8]!==o?(f=L.jsx(Le,{size:"sm",asChild:!0,children:L.jsxs("a",{href:sr,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(Ce,{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 si(e){const t=ae.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(an,{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 A;t[6]!==i?(A=i("mainPanelTabs.blocksTabStates.retry"),t[6]=i,t[7]=A):A=t[7];let R;t[8]!==r||t[9]!==A?(R=L.jsx(Le,{variant:"outline",size:"sm",onClick:r,children:A}),t[8]=r,t[9]=A,t[10]=R):R=t[10];let O;return t[11]!==c||t[12]!==l||t[13]!==R?(O=L.jsx(Ce,{image:f,title:l,description:c,actions:R}),t[11]=c,t[12]=l,t[13]=R,t[14]=O):O=t[14],O}function ci(e){return e.kind==="unavailable"&&e.siteNotOwned===!0}function ai(){const e=ae.c(16),t=ye(),{org:n}=qt();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=L.jsx(ct,{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(Le,{size:"sm",variant:"outline",asChild:!0,children:L.jsx(Wt,{to:"/$org/projects",params:c,"data-testid":"site-not-owned-projects",children:f})}),e[9]=c,e[10]=f,e[11]=l):l=e[11];let A;return e[12]!==i||e[13]!==o||e[14]!==l?(A=L.jsx(Ce,{className:"h-full w-full",image:r,title:i,description:o,actions:l}),e[12]=i,e[13]=o,e[14]=l,e[15]=A):A=e[15],A}function fi(e){const t=ae.c(6),{backend:n}=e,r=ye(),i=n.kind==="pending"?n.retrying:void 0;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=L.jsx(Yt,{className:"size-5 text-muted-foreground"}),t[0]=o):o=t[0];let c;t[1]!==i||t[2]!==r?(c=i&&L.jsx("p",{className:"max-w-xs text-center text-sm text-muted-foreground",children:r("siteEditor.retrying.sandbox")}),t[1]=i,t[2]=r,t[3]=c):c=t[3];let f;return t[4]!==c?(f=L.jsxs("div",{"data-testid":"content-backend-waiting",className:"flex h-full w-full flex-col items-center justify-center gap-3",children:[o,c]}),t[4]=c,t[5]=f):f=t[5],f}export{xr as $,Zn as A,si as B,fi as C,bt as D,zr as E,hr as F,gt as G,qr as H,Yr as I,Jr as J,Jn as K,Kn as L,Dr as M,de as N,Vr as O,Yn as P,Zr as Q,Un as R,ai as S,Qr as T,Wr as U,Vn as V,Hr as W,Ur as X,De as Y,Br as Z,$r as _,Lr as a,xn as a0,Pe as a1,_e as a2,Hn as a3,zn as a4,ri as a5,ii as a6,_r as a7,or as a8,dt as a9,me as aa,wr as ab,Nr as ac,Sr as ad,Je as ae,Or as af,Rr as ag,br as ah,Er as ai,mr as aj,ir as ak,Ar as al,kr as am,Kr as an,je as ao,Gr as ap,In as aq,Xr as ar,oi as b,Ot as c,tr as d,wn as e,Ir as f,ei as g,ti as h,ci as i,vr as j,gr as k,mt as l,jr as m,he as n,Rt as o,ni as p,we as q,Tr as r,Mr as s,En as t,Pr as u,Cr as v,$e as w,Ue as x,Fr as y,kn as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as i}from"./site-editor-toast-
|
|
1
|
+
import{N as i}from"./site-editor-toast-XhGY7zwS.js";import{$ as A,e as h}from"./blocks-tab-states-C8EhNA94.js";import{s as S,a4 as _,a5 as R}from"./category-tree-CfcuYGq1.js";const s=t=>typeof t=="string"?t:"";function f(t,r){for(const e of R(t)){const n=s(e[r]);if(n)return n}return null}function B(t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const e=t;return typeof e.__resolveType!="string"||!A(e.__resolveType,r)?null:typeof e.path=="string"?e.path:null}function b(t){return h(t).filter(r=>r!=="*").length}function y(t,r,e){let n=null,o=Number.POSITIVE_INFINITY;for(const u of Object.values(t)){const a=B(u,e);if(!a||!r.test(JSON.stringify(u)))continue;const l=b(a);l<o&&(n=a,o=l)}return n}const C=/blogpostpage/i,T=/blogcategorypage/i;function O(t,r){return f(t,"pageSlug")??y(t,C,r)}function E(t,r){return f(t,"categorySlug")??y(t,T,r)}function m(t){const r=t.categories;if(!Array.isArray(r)||r.length===0)return"";const e=r[0];return s(e?.slug)}function G(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 c=/:(?:categorySlug|categoria|category|slug)[*?]?/,d=/:(?:categorySlug|categoria|category|slug)[*?]?/g;function p(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 P(t,r){if(!r)return"";const e=S(t).categories;return _(r,e).join("/")}function I(t,r){return/\/\*$/.test(t)&&!c.test(t)?r?t.replace(/\/\*$/,`/${g(r)}`):null:c.test(t)?r?t.replace(d,g(r)):null:t}function L(t,r,e){const n=E(t,e);if(!n)return null;const o=s(r.slug);return I(n,p(n,!0)?P(t,o):o)}function M(t,r,e){const n=O(t,e);if(!n)return null;const o=m(r);return G(n,{category:p(n)?P(t,o):o,slug:s(r.slug)})}function v({decofile:t,category:r,previewBaseUrl:e,draftPointer:n,meta:o}){if(!e)return null;const u=L(t,r,o);if(!u)return null;try{return i(new URL(u,e).href,n)}catch{return null}}const j="draft";function U({decofile:t,post:r,previewBaseUrl:e,draftPointer:n,meta:o,planning:u=!1}){if(!e)return null;const a=M(t,r,o);if(!a)return null;try{const l=new URL(a,e);return u&&l.searchParams.set(j,"true"),i(l.href,n)}catch{return null}}export{M as a,U as b,L as c,G as d,v as e,O 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-BmFua4_V.js";import{a as v}from"./UserCheck01--3bpkFxi.js";import{O as P,S as K,I as D,a as I}from"./held-block-view-Cz6SKldK.js";import{t as W}from"./ChevronDown-DLp4f_Dh.js";import{C as y,a as Y,b as w}from"./collapsible-B2z4b61B.js";import{ai as B,W as L}from"./category-tree-CfcuYGq1.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(W,{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(y,{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 A,a6 as V,bk as X,j as a,b as z,B as F,h as q,r as J}from"./index-
|
|
1
|
+
import{c as A,a6 as V,bk as X,j as a,b as z,B as F,h as q,r as J}from"./index-BmFua4_V.js";import{E as Q}from"./empty-state-DVbcNWDh.js";import{n as Z}from"./BookOpen01-NJdRqnsB.js";import{c as H,u as ee}from"./chat-context-DjT4b8lQ.js";import{c as te,u as se,i as oe,h as re,j as ae,f as ie,k as ne}from"./site-editor-toast-XhGY7zwS.js";import{i as le,u as ce,S as fe,C as de,B as me}from"./blocks-tab-states-C8EhNA94.js";import{i as ue,h as pe,C as he,F as ge,s as xe,j as be,E as $,k as ve}from"./category-tree-CfcuYGq1.js";import{u as Se}from"./use-sandbox-events-B1yboBKL.js";import{a as ye}from"./sandbox-lifecycle-context-D5b-1gmk.js";import{u as je}from"./use-voice-input-Cor9Dsop.js";import{r as ke,S as Ee}from"./primitives-DhPOvKh2.js";import{f as Be}from"./blog-preview-url-Bd4vzpOU.js";import{E as Pe}from"./empty-state-BxQvC8dr.js";import{G}from"./github-icon-Csyi9aVw.js";import{R as we}from"./new-project-dialog-BZK8ka6l.js";import{a as K}from"./agent-capabilities-CqBL254L.js";import{b as Ce}from"./repository-binding-CabkwAHk.js";function Ve(R){const e=A.c(27),{children:f}=R,{currentBranch:c,virtualMcpId:s}=H(),{org:d}=V(),m=Se(),v=ye(),{runtime:j,previewServerUrl:B}=je(s),{url:E}=te(s),r=se(s,c),t=oe(r),h=r.kind==="protocol"&&r.source==="github";X(h);const n=ke({fastPreviewActive:t||j==="cms",previewState:v.previewState,lifecyclePhase:m.lifecycle.phase});let u;e[0]!==r||e[1]!==E?(u=re(r)??E,e[0]=r,e[1]=E,e[2]=u):u=e[2];const p=u,i=j==="cms"&&!p;if(n.kind==="sandbox-card"){const l=`/${d.slug}/settings/connections`;let P;return e[3]!==n.state||e[4]!==v.start||e[5]!==l||e[6]!==m.lifecycle||e[7]!==m.phase?(P=a.jsx(Ee,{state:n.state,claimPhase:m.phase,lifecycle:m.lifecycle,onStart:v.start,connectionsHref:l}),e[3]=n.state,e[4]=v.start,e[5]=l,e[6]=m.lifecycle,e[7]=m.phase,e[8]=P):P=e[8],P}if(!s||!c){let l;return e[9]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx($,{title:"Waiting for sandbox context…"}),e[9]=l):l=e[9],l}if(le(r)){let l;return e[10]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(fe,{}),e[10]=l):l=e[10],l}if(r.kind==="pending"){let l;return e[11]!==r?(l=a.jsx(de,{backend:r}),e[11]=r,e[12]=l):l=e[12],l}const S=t?null:v.previewUrl,y=p??(i?B:v.previewUrl);let k;e[13]!==c||e[14]!==f||e[15]!==i||e[16]!==n.devServerReady||e[17]!==n.sandboxWarming||e[18]!==h||e[19]!==d.slug||e[20]!==S||e[21]!==y||e[22]!==s?(k=a.jsx(_e,{orgSlug:d.slug,virtualMcpId:s,branch:c,previewUrl:S,sitePreviewUrl:y,fastPreviewActive:i,hostedDraft:h,devServerReady:n.devServerReady,sandboxWarming:n.sandboxWarming,children:f}),e[13]=c,e[14]=f,e[15]=i,e[16]=n.devServerReady,e[17]=n.sandboxWarming,e[18]=h,e[19]=d.slug,e[20]=S,e[21]=y,e[22]=s,e[23]=k):k=e[23];let g;return e[24]!==t||e[25]!==k?(g=a.jsx(ve,{value:t,children:k}),e[24]=t,e[25]=k,e[26]=g):g=e[26],g}function _e(R){const e=A.c(58),{orgSlug:f,virtualMcpId:c,branch:s,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j,devServerReady:B,sandboxWarming:E,children:r}=R,t=z(),h=ee()?.taskId??null;let n;e[0]!==s||e[1]!==f||e[2]!==d||e[3]!==h||e[4]!==c?(n={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]=n):n=e[5];const u=n;let p;e[6]!==B?(p={fetchEnabled:B},e[6]=B,e[7]=p):p=e[7];const{data:i,isLoading:S,refetch:y}=ae(u,p);let k;e[8]!==B?(k={fetchEnabled:B},e[8]=B,e[9]=k):k=e[9];const{data:g,isLoading:l,refetch:P}=ce(u,k);let N;e[10]!==s||e[11]!==j||e[12]!==f||e[13]!==c?(N=j?{orgSlug:f,virtualMcpId:c,branch:s}:null,e[10]=s,e[11]=j,e[12]=f,e[13]=c,e[14]=N):N=e[14];const D=N,M=ie(D,ue);let L;e[15]!==M?(L=[...M,pe,he,ge],e[15]=M,e[16]=L):L=e[16];let O;e[17]===Symbol.for("react.memo_cache_sentinel")?(O={withRefs:!0},e[17]=O):O=e[17];const T=ne(D,L,O);if(T.failed){let o;e[18]!==t?(o=t("sectionsEditor.hosted.blockLoadFailed"),e[18]=t,e[19]=o):o=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]!==o||e[23]!==x?(b=a.jsx($,{title:o,description:x}),e[22]=o,e[23]=x,e[24]=b):b=e[24];const w=T.retry;let C;e[25]!==t?(C=t("sectionsEditor.namedRules.tryAgain"),e[25]=t,e[26]=C):C=e[26];let _;e[27]!==T.retry||e[28]!==C?(_=a.jsx(F,{variant:"outline",size:"sm",onClick:w,children:C}),e[27]=T.retry,e[28]=C,e[29]=_):_=e[29];let W;return e[30]!==_||e[31]!==b?(W=a.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 p-6 text-center",children:[b,_]}),e[30]=_,e[31]=b,e[32]=W):W=e[32],W}const I=!i||!g;if(S||l||!T.ready||I&&E){let o;return e[33]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx(q,{className:"size-5 text-muted-foreground"})}),e[33]=o):o=e[33],o}if(I){let o;return e[34]!==i||e[35]!==g||e[36]!==y||e[37]!==P?(o=a.jsx(me,{source:"data",onRetry:()=>{i||y(),g||P()}}),e[34]=i,e[35]=g,e[36]=y,e[37]=P,e[38]=o):o=e[38],o}const Y=xe(i);if(!be.some(o=>Y[o].length>0)&&!Be(i,g)){let o;e[39]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Z,{size:22}),e[39]=o):o=e[39];let x;e[40]!==t?(x=t("sandbox.blogWorkspace.noBlogApp"),e[40]=t,e[41]=x):x=e[41];let b;e[42]!==t?(b=t("sandbox.blogWorkspace.noBlogAppHint"),e[42]=t,e[43]=b):b=e[43];let w;return e[44]!==x||e[45]!==b?(w=a.jsx(Q,{className:"h-full",icon:o,title:x,description:b}),e[44]=x,e[45]=b,e[46]=w):w=e[46],w}let U;return e[47]!==s||e[48]!==r||e[49]!==i||e[50]!==v||e[51]!==j||e[52]!==g||e[53]!==f||e[54]!==d||e[55]!==m||e[56]!==c?(U=r({orgSlug:f,virtualMcpId:c,branch:s,decofile:i,meta:g,previewUrl:d,sitePreviewUrl:m,fastPreviewActive:v,hostedDraft:j}),e[47]=s,e[48]=r,e[49]=i,e[50]=v,e[51]=j,e[52]=g,e[53]=f,e[54]=d,e[55]=m,e[56]=c,e[57]=U):U=e[57],U}function Xe(R){const e=A.c(20),{virtualMcpId:f,children:c}=R,s=z(),[d,m]=J.useState(!1),v=Ce(f),{activeTask:j}=H();if(K(v?.metadata)||K(j?.metadata))return c;let E;e[0]===Symbol.for("react.memo_cache_sentinel")?(E=a.jsx("div",{className:"flex size-14 items-center justify-center rounded-full bg-muted",children:a.jsx(G,{className:"size-7 text-foreground"})}),e[0]=E):E=e[0];let r;e[1]!==s?(r=s("mainPanelTabs.contentTab.noContentToEdit"),e[1]=s,e[2]=r):r=e[2];let t;e[3]!==s?(t=s("mainPanelTabs.contentTab.connectGithubDescription"),e[3]=s,e[4]=t):t=e[4];let h,n;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>m(!0),n=a.jsx(G,{className:"size-4"}),e[5]=h,e[6]=n):(h=e[5],n=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=a.jsxs(F,{onClick:h,children:[n,u]}),e[9]=u,e[10]=p):p=e[10];let i;e[11]!==r||e[12]!==t||e[13]!==p?(i=a.jsx(Pe,{className:"h-full",image:E,title:r,description:t,actions:p}),e[11]=r,e[12]=t,e[13]=p,e[14]=i):i=e[14];let S;e[15]!==d?(S=a.jsx(we,{open:d,onOpenChange:m,mode:"agent"}),e[15]=d,e[16]=S):S=e[16];let y;return e[17]!==i||e[18]!==S?(y=a.jsxs(a.Fragment,{children:[i,S]}),e[17]=i,e[18]=S,e[19]=y):y=e[19],y}export{Ve as B,Xe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as I,f as _,u as x,bl as j,j as g,N as u,$ as b,ba as S,bm as w}from"./index-
|
|
1
|
+
import{c as I,f as _,u as x,bl as j,j as g,N as u,$ as b,ba as S,bm as w}from"./index-BmFua4_V.js";import{a as v}from"./use-blog-view-BIvVJJix.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:b.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 h=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:b.blogPost,params:{org:o,agentId:s,postId:t.postId},search:h,hash:!0,replace:!0}):g.jsx(u,{to:b.blog,params:{org:o,agentId:s},search:i=>({...h(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,i9 as W,r as S,B as L,D as X,v as Y,w as Z,x as ee,aW as te,I as D,y as se,bc as ie,t as K,aB as I,gl as le,aL as ne,aM as re,aN as ce,aO as ae,aP as oe,aQ as de,aR as ue}from"./index-TxpTb6t-.js";import{i as fe}from"./AlertCircle-Dq-KNxM5.js";import{s as V}from"./Plus-Hrr9Aktn.js";import{s as me}from"./Trash01-Dh6D7ABD.js";import{B as R}from"./badge-BBSQh6Uu.js";import{E as ge}from"./empty-state-BaX7qcT6.js";import{L as B}from"./label-DBXumtTI.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-B043gNlI.js";import{S as je}from"./switch-CYj4jY2U.js";import{T as ke}from"./textarea-BtM4NiRw.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-BUa8LWQS.js";import{R as Se}from"./require-capability-BGgQVq09.js";import"./index-BdQq_4o_.js";import"./index-hsXsAM7a.js";import"./ChevronDown-CTfQz_yW.js";import"./ChevronUp-Bg3xtRAf.js";import"./access-gate-B0BUDTBB.js";import"./capability-load-error-CejuD9Wa.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(I,{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(I,{}),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 O({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 $(){l(""),c(""),d(""),u(""),v(""),h(!1),C(""),j(""),f("static"),N(""),_(""),A(""),E("")}const H=k==="sts-session"?!!(w.trim()&&z.trim()):!!(m&&P);async function G(g){if(g.preventDefault(),!n.trim()||!o.trim()||!a.trim()||!H)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()})),$(),e(!1)}catch(Q){K.error(Ne(Q,s("settings.buckets.failedToAddBucket")))}}const J=U.isPending||!n.trim()||!o.trim()||!a.trim()||!H;return t.jsx(X,{open:i,onOpenChange:e,children:t.jsxs(Y,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[t.jsxs(Z,{children:[t.jsx(ee,{children:s("settings.buckets.addS3Bucket")}),t.jsx(te,{children:s("settings.buckets.credentialsEncryptedDescription")})]}),t.jsxs("form",{onSubmit:G,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-name",children:s("settings.buckets.nameLabel")}),t.jsx(D,{id:"file-config-name",value:n,onChange:g=>l(g.target.value),placeholder:s("settings.buckets.namePlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.nameHelperText")})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-bucket",children:s("settings.buckets.bucketLabel")}),t.jsx(D,{id:"file-config-bucket",value:o,onChange:g=>d(g.target.value),placeholder:s("settings.buckets.bucketPlaceholder"),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-region",children:s("settings.buckets.regionLabel")}),t.jsx(D,{id:"file-config-region",value:a,onChange:g=>u(g.target.value),placeholder:s("settings.buckets.regionPlaceholder"),autoComplete:"off",required:!0})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-endpoint",children:s("settings.buckets.endpointLabel")}),t.jsx(D,{id:"file-config-endpoint",type:"url",value:x,onChange:g=>v(g.target.value),placeholder:s("settings.buckets.endpointPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.endpointHelperText")})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 p-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx(B,{htmlFor:"file-config-path-style",className:"text-sm",children:s("settings.buckets.forcePathStyleLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("settings.buckets.forcePathStyleHelperText")})]}),t.jsx(je,{id:"file-config-path-style",checked:p,onCheckedChange:h})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-prefix",children:s("settings.buckets.prefixLabel")}),t.jsx(D,{id:"file-config-prefix",value:b,onChange:g=>C(g.target.value),placeholder:s("settings.buckets.prefixPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.prefixHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-public-url-base",children:s("settings.buckets.publicUrlBaseLabel")}),t.jsx(D,{id:"file-config-public-url-base",type:"url",value:y,onChange:g=>j(g.target.value),placeholder:s("settings.buckets.publicUrlBasePlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.publicUrlBaseHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-credential-type",children:s("settings.buckets.credentialsLabel")}),t.jsxs(xe,{value:k,onValueChange:g=>f(g),children:[t.jsx(pe,{id:"file-config-credential-type",className:"w-full",children:t.jsx(he,{})}),t.jsxs(be,{children:[t.jsx(q,{value:"static",children:s("settings.buckets.staticKeyOption")}),t.jsx(q,{value:"sts-session",children:s("settings.buckets.temporarySessionOption")})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s(k==="sts-session"?"settings.buckets.stsSessionHelperText":"settings.buckets.staticKeyHelperText")})]}),k==="static"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-access-key",children:s("settings.buckets.accessKeyIdLabel")}),t.jsx(D,{id:"file-config-access-key",value:m,onChange:g=>N(g.target.value),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-secret-key",children:s("settings.buckets.secretAccessKeyLabel")}),t.jsx(D,{id:"file-config-secret-key",type:"password",value:P,onChange:g=>_(g.target.value),autoComplete:"new-password",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-refresh-url",children:s("settings.buckets.refreshUrlLabel")}),t.jsx(D,{id:"file-config-refresh-url",type:"url",value:w,onChange:g=>A(g.target.value),placeholder:s("settings.buckets.refreshUrlPlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.refreshUrlHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-api-key",children:s("settings.buckets.apiKeyLabel")}),t.jsx(D,{id:"file-config-api-key",type:"password",value:z,onChange:g=>E(g.target.value),autoComplete:"new-password",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.apiKeyHelperText")})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-description",children:s("settings.buckets.descriptionLabel")}),t.jsx(ke,{id:"file-config-description",value:r,onChange:g=>c(g.target.value),rows:2,placeholder:s("settings.buckets.descriptionPlaceholder")})]}),t.jsxs(se,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>{$(),e(!1)},disabled:U.isPending,children:s("settings.buckets.cancelButton")}),t.jsx(L,{type:"submit",disabled:J,children:U.isPending?s("settings.buckets.addingButton"):s("settings.buckets.addBucketButton")})]})]})]})})}function Fe(i){const e=F.c(41),{config:s,onClose:n}=i,l=T(),r=Ce();let c;e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l?(c=async function(){if(s)try{await r.mutateAsync(s.id),K.success(l("settings.buckets.bucketRemoved",{name:s.name})),n()}catch(w){const A=w;K.error(A instanceof Error?A.message:l("settings.buckets.failedToRemoveBucket"))}},e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=c):c=e[4];const o=c,d=s!==null;let a;e[5]!==n?(a=_=>!_&&n(),e[5]=n,e[6]=a):a=e[6];let u;e[7]!==l?(u=l("settings.buckets.removeBucketTitle"),e[7]=l,e[8]=u):u=e[8];let x;e[9]!==u?(x=t.jsx(ne,{children:u}),e[9]=u,e[10]=x):x=e[10];const v=s?.name??"";let p;e[11]!==l||e[12]!==v?(p=l("settings.buckets.removeBucketDescription",{name:v}),e[11]=l,e[12]=v,e[13]=p):p=e[13];let h;e[14]!==p?(h=t.jsx(re,{children:p}),e[14]=p,e[15]=h):h=e[15];let b;e[16]!==x||e[17]!==h?(b=t.jsxs(ce,{children:[x,h]}),e[16]=x,e[17]=h,e[18]=b):b=e[18];const C=r.isPending;let y;e[19]!==l?(y=l("settings.buckets.cancelButton"),e[19]=l,e[20]=y):y=e[20];let j;e[21]!==r.isPending||e[22]!==y?(j=t.jsx(ae,{disabled:C,children:y}),e[21]=r.isPending,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==r.isPending||e[25]!==l?(k=r.isPending?l("settings.buckets.removingButton"):l("settings.buckets.removeButton"),e[24]=r.isPending,e[25]=l,e[26]=k):k=e[26];let f;e[27]!==r.isPending||e[28]!==o||e[29]!==k?(f=t.jsx(ie,{onClick:o,disabled:r.isPending,children:k}),e[27]=r.isPending,e[28]=o,e[29]=k,e[30]=f):f=e[30];let m;e[31]!==j||e[32]!==f?(m=t.jsxs(oe,{children:[j,f]}),e[31]=j,e[32]=f,e[33]=m):m=e[33];let N;e[34]!==m||e[35]!==b?(N=t.jsxs(de,{children:[b,m]}),e[34]=m,e[35]=b,e[36]=N):N=e[36];let P;return e[37]!==N||e[38]!==d||e[39]!==a?(P=t.jsx(ue,{open:d,onOpenChange:a,children:N}),e[37]=N,e[38]=d,e[39]=a,e[40]=P):P=e[40],P}function Te(){const i=F.c(32),e=T(),s=ye(),[n,l]=S.useState(!1),[r,c]=S.useState(null);if(s.length===0){let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{onCreate:()=>l(!0)}),i[0]=f):f=i[0];let m;return i[1]!==n?(m=t.jsxs(t.Fragment,{children:[f,t.jsx(O,{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(O,{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 We(){const i=F.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Se,{capability:"file-configs:manage",area:"files",children:t.jsx(_e,{})}),i[0]=e):e=i[0],e}export{We as default};
|
|
1
|
+
import{c as F,b as T,j as t,i9 as W,r as S,B as L,D as X,v as Y,w as Z,x as ee,aW as te,I as D,y as se,bc as ie,t as K,aB as I,gl as le,aL as ne,aM as re,aN as ce,aO as ae,aP as oe,aQ as de,aR as ue}from"./index-BmFua4_V.js";import{i as fe}from"./AlertCircle-DAO8Cblw.js";import{s as V}from"./Plus-C9Aly22c.js";import{s as me}from"./Trash01-BIsikoZ9.js";import{B as R}from"./badge-MSgPF8i6.js";import{E as ge}from"./empty-state-DVbcNWDh.js";import{L as B}from"./label-DLrqdV8m.js";import{S as xe,b as pe,a as he,d as be,c as q}from"./select-BeWEAY37.js";import{S as je}from"./switch-BDueaRYD.js";import{T as ke}from"./textarea-DLWBFN0v.js";import{a as ye,b as ve,c as Ce}from"./use-file-configs-CzQQ90JX.js";import{R as Se}from"./require-capability-FySDF95c.js";import"./index-BdQq_4o_.js";import"./index-CekzbOTN.js";import"./ChevronDown-DLp4f_Dh.js";import"./ChevronUp-CWIsOhVe.js";import"./access-gate-BjKwrEoi.js";import"./capability-load-error-BIP7OfRW.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(I,{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(I,{}),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 O({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 $(){l(""),c(""),d(""),u(""),v(""),h(!1),C(""),j(""),f("static"),N(""),_(""),A(""),E("")}const H=k==="sts-session"?!!(w.trim()&&z.trim()):!!(m&&P);async function G(g){if(g.preventDefault(),!n.trim()||!o.trim()||!a.trim()||!H)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()})),$(),e(!1)}catch(Q){K.error(Ne(Q,s("settings.buckets.failedToAddBucket")))}}const J=U.isPending||!n.trim()||!o.trim()||!a.trim()||!H;return t.jsx(X,{open:i,onOpenChange:e,children:t.jsxs(Y,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[t.jsxs(Z,{children:[t.jsx(ee,{children:s("settings.buckets.addS3Bucket")}),t.jsx(te,{children:s("settings.buckets.credentialsEncryptedDescription")})]}),t.jsxs("form",{onSubmit:G,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-name",children:s("settings.buckets.nameLabel")}),t.jsx(D,{id:"file-config-name",value:n,onChange:g=>l(g.target.value),placeholder:s("settings.buckets.namePlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.nameHelperText")})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-bucket",children:s("settings.buckets.bucketLabel")}),t.jsx(D,{id:"file-config-bucket",value:o,onChange:g=>d(g.target.value),placeholder:s("settings.buckets.bucketPlaceholder"),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-region",children:s("settings.buckets.regionLabel")}),t.jsx(D,{id:"file-config-region",value:a,onChange:g=>u(g.target.value),placeholder:s("settings.buckets.regionPlaceholder"),autoComplete:"off",required:!0})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-endpoint",children:s("settings.buckets.endpointLabel")}),t.jsx(D,{id:"file-config-endpoint",type:"url",value:x,onChange:g=>v(g.target.value),placeholder:s("settings.buckets.endpointPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.endpointHelperText")})]}),t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 p-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx(B,{htmlFor:"file-config-path-style",className:"text-sm",children:s("settings.buckets.forcePathStyleLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("settings.buckets.forcePathStyleHelperText")})]}),t.jsx(je,{id:"file-config-path-style",checked:p,onCheckedChange:h})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-prefix",children:s("settings.buckets.prefixLabel")}),t.jsx(D,{id:"file-config-prefix",value:b,onChange:g=>C(g.target.value),placeholder:s("settings.buckets.prefixPlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.prefixHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-public-url-base",children:s("settings.buckets.publicUrlBaseLabel")}),t.jsx(D,{id:"file-config-public-url-base",type:"url",value:y,onChange:g=>j(g.target.value),placeholder:s("settings.buckets.publicUrlBasePlaceholder"),autoComplete:"off"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.publicUrlBaseHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-credential-type",children:s("settings.buckets.credentialsLabel")}),t.jsxs(xe,{value:k,onValueChange:g=>f(g),children:[t.jsx(pe,{id:"file-config-credential-type",className:"w-full",children:t.jsx(he,{})}),t.jsxs(be,{children:[t.jsx(q,{value:"static",children:s("settings.buckets.staticKeyOption")}),t.jsx(q,{value:"sts-session",children:s("settings.buckets.temporarySessionOption")})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s(k==="sts-session"?"settings.buckets.stsSessionHelperText":"settings.buckets.staticKeyHelperText")})]}),k==="static"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-access-key",children:s("settings.buckets.accessKeyIdLabel")}),t.jsx(D,{id:"file-config-access-key",value:m,onChange:g=>N(g.target.value),autoComplete:"off",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-secret-key",children:s("settings.buckets.secretAccessKeyLabel")}),t.jsx(D,{id:"file-config-secret-key",type:"password",value:P,onChange:g=>_(g.target.value),autoComplete:"new-password",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-refresh-url",children:s("settings.buckets.refreshUrlLabel")}),t.jsx(D,{id:"file-config-refresh-url",type:"url",value:w,onChange:g=>A(g.target.value),placeholder:s("settings.buckets.refreshUrlPlaceholder"),autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.refreshUrlHelperText")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-api-key",children:s("settings.buckets.apiKeyLabel")}),t.jsx(D,{id:"file-config-api-key",type:"password",value:z,onChange:g=>E(g.target.value),autoComplete:"new-password",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("settings.buckets.apiKeyHelperText")})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(B,{htmlFor:"file-config-description",children:s("settings.buckets.descriptionLabel")}),t.jsx(ke,{id:"file-config-description",value:r,onChange:g=>c(g.target.value),rows:2,placeholder:s("settings.buckets.descriptionPlaceholder")})]}),t.jsxs(se,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>{$(),e(!1)},disabled:U.isPending,children:s("settings.buckets.cancelButton")}),t.jsx(L,{type:"submit",disabled:J,children:U.isPending?s("settings.buckets.addingButton"):s("settings.buckets.addBucketButton")})]})]})]})})}function Fe(i){const e=F.c(41),{config:s,onClose:n}=i,l=T(),r=Ce();let c;e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l?(c=async function(){if(s)try{await r.mutateAsync(s.id),K.success(l("settings.buckets.bucketRemoved",{name:s.name})),n()}catch(w){const A=w;K.error(A instanceof Error?A.message:l("settings.buckets.failedToRemoveBucket"))}},e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=c):c=e[4];const o=c,d=s!==null;let a;e[5]!==n?(a=_=>!_&&n(),e[5]=n,e[6]=a):a=e[6];let u;e[7]!==l?(u=l("settings.buckets.removeBucketTitle"),e[7]=l,e[8]=u):u=e[8];let x;e[9]!==u?(x=t.jsx(ne,{children:u}),e[9]=u,e[10]=x):x=e[10];const v=s?.name??"";let p;e[11]!==l||e[12]!==v?(p=l("settings.buckets.removeBucketDescription",{name:v}),e[11]=l,e[12]=v,e[13]=p):p=e[13];let h;e[14]!==p?(h=t.jsx(re,{children:p}),e[14]=p,e[15]=h):h=e[15];let b;e[16]!==x||e[17]!==h?(b=t.jsxs(ce,{children:[x,h]}),e[16]=x,e[17]=h,e[18]=b):b=e[18];const C=r.isPending;let y;e[19]!==l?(y=l("settings.buckets.cancelButton"),e[19]=l,e[20]=y):y=e[20];let j;e[21]!==r.isPending||e[22]!==y?(j=t.jsx(ae,{disabled:C,children:y}),e[21]=r.isPending,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==r.isPending||e[25]!==l?(k=r.isPending?l("settings.buckets.removingButton"):l("settings.buckets.removeButton"),e[24]=r.isPending,e[25]=l,e[26]=k):k=e[26];let f;e[27]!==r.isPending||e[28]!==o||e[29]!==k?(f=t.jsx(ie,{onClick:o,disabled:r.isPending,children:k}),e[27]=r.isPending,e[28]=o,e[29]=k,e[30]=f):f=e[30];let m;e[31]!==j||e[32]!==f?(m=t.jsxs(oe,{children:[j,f]}),e[31]=j,e[32]=f,e[33]=m):m=e[33];let N;e[34]!==m||e[35]!==b?(N=t.jsxs(de,{children:[b,m]}),e[34]=m,e[35]=b,e[36]=N):N=e[36];let P;return e[37]!==N||e[38]!==d||e[39]!==a?(P=t.jsx(ue,{open:d,onOpenChange:a,children:N}),e[37]=N,e[38]=d,e[39]=a,e[40]=P):P=e[40],P}function Te(){const i=F.c(32),e=T(),s=ye(),[n,l]=S.useState(!1),[r,c]=S.useState(null);if(s.length===0){let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{onCreate:()=>l(!0)}),i[0]=f):f=i[0];let m;return i[1]!==n?(m=t.jsxs(t.Fragment,{children:[f,t.jsx(O,{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(O,{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 We(){const i=F.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Se,{capability:"file-configs:manage",area:"files",children:t.jsx(_e,{})}),i[0]=e):e=i[0],e}export{We as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as w,an as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-
|
|
1
|
+
import{c as w,an as $,i as S,K as T,b as K,m as b,j as s,o as E}from"./index-BmFua4_V.js";function R(n){const e=w.c(9),f=$();let r;e[0]!==n?(r=T.user(n),e[0]=n,e[1]=r):r=e[1];let c;e[2]!==f||e[3]!==n?(c=async()=>{const{user:o}=await f.call("USER_GET",{id:n});return o},e[2]=f,e[3]=n,e[4]=c):c=e[4];const x=!!n;let t;return e[5]!==r||e[6]!==c||e[7]!==x?(t={queryKey:r,queryFn:c,staleTime:3e5,retry:1,enabled:x},e[5]=r,e[6]=c,e[7]=x,e[8]=t):t=e[8],S(t)}function q(n){const e=w.c(37),{id:f,size:r,showEmail:c,avatarOnly:x,className:t}=n,o=r===void 0?"xs":r,p=c===void 0?!1:c,d=x===void 0?!1:x,y=K(),{data:m,isLoading:U,isError:k}=R(f);if(U){let a;e[0]!==t?(a=b("flex items-center gap-2",t),e[0]=t,e[1]=a):a=e[1];let i;e[2]!==o?(i=s.jsx(E.Skeleton,{shape:"circle",size:o}),e[2]=o,e[3]=i):i=e[3];let l;e[4]!==d||e[5]!==p?(l=!d&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),p&&s.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==i||e[9]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[7]=a,e[8]=i,e[9]=l,e[10]=u):u=e[10],u}if(k||!m){let a;e[11]!==t?(a=b("flex items-center gap-2",t),e[11]=t,e[12]=a):a=e[12];let i;e[13]!==o?(i=s.jsx(E,{shape:"circle",size:o,fallback:"?",muted:!0}),e[13]=o,e[14]=i):i=e[14];let l;e[15]!==d||e[16]!==y?(l=!d&&s.jsx("div",{className:"flex flex-col",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:y("user.user.unknownUser")})}),e[15]=d,e[16]=y,e[17]=l):l=e[17];let u;return e[18]!==a||e[19]!==i||e[20]!==l?(u=s.jsxs("div",{className:a,children:[i,l]}),e[18]=a,e[19]=i,e[20]=l,e[21]=u):u=e[21],u}let v;e[22]!==t?(v=b("flex items-center gap-2",t),e[22]=t,e[23]=v):v=e[23];const N=m.image??void 0;let h;e[24]!==o||e[25]!==N||e[26]!==m.name?(h=s.jsx(E,{shape:"circle",size:o,url:N,fallback:m.name}),e[24]=o,e[25]=N,e[26]=m.name,e[27]=h):h=e[27];let 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};
|