decocms 4.580.1 → 4.580.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DuMz-jFi.js → AlertCircle-Bw3i2ESn.js} +1 -1
- package/dist/client/assets/{AreaChart-BqIC3e-u.js → AreaChart-YZwx98Is.js} +1 -1
- package/dist/client/assets/{ArrowLeft-5NT3k46C.js → ArrowLeft-6fw6vHKx.js} +1 -1
- package/dist/client/assets/{ArrowUp-D5JWz7Yq.js → ArrowUp-CoOHlCW9.js} +1 -1
- package/dist/client/assets/{BookOpen01-m1uNXDEc.js → BookOpen01-CIigO21o.js} +1 -1
- package/dist/client/assets/{CartesianChart-D9oScPZv.js → CartesianChart-BiVhh5D6.js} +1 -1
- package/dist/client/assets/{CategoricalChart-BR_4thmy.js → CategoricalChart-LwMiidhq.js} +1 -1
- package/dist/client/assets/{CheckCircle-DAPdRkcW.js → CheckCircle-Bp8tITGL.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-5fTMRN5v.js → ChevronSelectorVertical-EzXJxozj.js} +1 -1
- package/dist/client/assets/{ChevronUp-BaKxA_AU.js → ChevronUp-rwg_m6Bz.js} +1 -1
- package/dist/client/assets/{CreditCard01-BU3Icpfr.js → CreditCard01-BSJJY0ul.js} +1 -1
- package/dist/client/assets/{Globe04-KZ-J2ZUi.js → Globe04-vWAQu6ql.js} +1 -1
- package/dist/client/assets/{Key01-RIzbDsEi.js → Key01-CJqMVRWW.js} +1 -1
- package/dist/client/assets/{LinkBroken01-IVC8feVZ.js → LinkBroken01-eOLBCf9g.js} +1 -1
- package/dist/client/assets/{Minus-Dw050KAn.js → Minus-D2dKSFlw.js} +1 -1
- package/dist/client/assets/{Monitor01-D7QUQToM.js → Monitor01-Ib8XdXsU.js} +1 -1
- package/dist/client/assets/{Play-BDSDyO5E.js → Play-2aGPtJuo.js} +1 -1
- package/dist/client/assets/{Plus-CRqz0c82.js → Plus-lUyuDazr.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DKoY4fDh.js → ReferenceLine-B_-wMiIS.js} +1 -1
- package/dist/client/assets/{SearchMd-CcAFkP0F.js → SearchMd-D0-9ej42.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CspfAlNO.js → ShoppingBag01-Ct2vEJ5p.js} +1 -1
- package/dist/client/assets/{Sun-DRT9bMW5.js → Sun-DgJwoRO5.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D3zx9VNf.js → SwitchHorizontal01-1mxe_S61.js} +1 -1
- package/dist/client/assets/{Tool01-D9-ePNaJ.js → Tool01-Yd8ogx8N.js} +1 -1
- package/dist/client/assets/{Tooltip-DZ7sGrNE.js → Tooltip-sBZ1wr_5.js} +1 -1
- package/dist/client/assets/{Trash01-BTZDkUzq.js → Trash01-CGn497Nk.js} +1 -1
- package/dist/client/assets/{Upload01-BRP1bAMs.js → Upload01-bs3kHvY6.js} +1 -1
- package/dist/client/assets/{UserSquare-Dv0YcmkC.js → UserSquare-CMedzjXl.js} +1 -1
- package/dist/client/assets/{Users01-DKwguy8Z.js → Users01-DBiECFzL.js} +1 -1
- package/dist/client/assets/{XClose-CyHahh4m.js → XClose-CjAbxo6W.js} +1 -1
- package/dist/client/assets/{Zap-Dja9fdMf.js → Zap-BNB_xEwI.js} +1 -1
- package/dist/client/assets/{access-gate-VlWUv9j2.js → access-gate-DnxUMUUc.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DJ5sN8e_.js → add-connection-dialog-Ci7nF80a.js} +1 -1
- package/dist/client/assets/agent-app-CgBlsdxv.js +1 -0
- package/dist/client/assets/{agent-assets-n0l0tFBN.js → agent-assets-DW6IxMNR.js} +1 -1
- package/dist/client/assets/{agent-automation-DETSj7J9.js → agent-automation-BVkfRmrC.js} +1 -1
- package/dist/client/assets/{agent-automations-DeXM-DYA.js → agent-automations-CipWfqGX.js} +1 -1
- package/dist/client/assets/{agent-blog-Dw89uwrE.js → agent-blog-B9tZD6I7.js} +2 -2
- package/dist/client/assets/{agent-blog-post-BBh6a8oA.js → agent-blog-post-Bz4HBy8Z.js} +2 -2
- package/dist/client/assets/{agent-calendar-CMtYd4vL.js → agent-calendar-9OIzucax.js} +1 -1
- package/dist/client/assets/{agent-capabilities-BtnZBraK.js → agent-capabilities-CUP63BgI.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CIDxepQB.js → agent-connect-sources-CaQuqdds.js} +1 -1
- package/dist/client/assets/agent-deck-BDsmc-WO.js +1 -0
- package/dist/client/assets/{agent-e2e-CjpTFQWV.js → agent-e2e-WCBtnyjS.js} +1 -1
- package/dist/client/assets/agent-experiments-BI8egj34.js +1 -0
- package/dist/client/assets/{agent-file-Cd74xgom.js → agent-file-CVS3E5P1.js} +1 -1
- package/dist/client/assets/{agent-hosting-Dv13VH72.js → agent-hosting-DpUln3JV.js} +1 -1
- package/dist/client/assets/{agent-icon-DvD5kv_K.js → agent-icon-BFR8_3zP.js} +1 -1
- package/dist/client/assets/agent-library-B0EBwJN9.js +1 -0
- package/dist/client/assets/agent-library-file-DTeHfuOr.js +1 -0
- package/dist/client/assets/agent-overview-BO0vXHXf.js +1 -0
- package/dist/client/assets/{agent-releases-BNRiLrFJ.js → agent-releases-CGIlDi4h.js} +1 -1
- package/dist/client/assets/agent-settings-BGpFw8xn.js +1 -0
- package/dist/client/assets/{agent-site-editor-87vQ9ufh.js → agent-site-editor-DAIgJQEZ.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DH3SllH_.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CbuNFOxK.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-o2YfbLEH.js +1 -0
- package/dist/client/assets/{agent-view-guard-H1xbnpPJ.js → agent-view-guard-BGDwff2e.js} +1 -1
- package/dist/client/assets/agent-view-pdBq0p5X.js +1 -0
- package/dist/client/assets/{ai-providers-B9LfkD2O.js → ai-providers-Cm5oVFDV.js} +1 -1
- package/dist/client/assets/{alert-NGt4-O3B.js → alert-CUxou095.js} +1 -1
- package/dist/client/assets/{analytics-sections-LriChYtf.js → analytics-sections-CCUq05Wb.js} +1 -1
- package/dist/client/assets/api-keys-Bmt0Z1d3.js +1 -0
- package/dist/client/assets/{api-keys-Dsk0h5qe.js → api-keys-Ci7K2c5M.js} +1 -1
- package/dist/client/assets/{app-editor-CdNfOH0q.js → app-editor-Bcpx-hkZ.js} +1 -1
- package/dist/client/assets/{asset-utils-CZ4gg2Dc.js → asset-utils-Cm9qiSAT.js} +1 -1
- package/dist/client/assets/{auth-ygmhxR7o.js → auth-BEwu0a-x.js} +1 -1
- package/dist/client/assets/{auth-catchall-o-VGmahb.js → auth-catchall-CZ9gFtkN.js} +1 -1
- package/dist/client/assets/{auth-entry-CvNRh315.js → auth-entry-DQRpj7zn.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Dy80rL_w.js → auth-split-layout-CDkLebwC.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Di92Hz1m.js → authenticate-and-persist-oauth-s29KUt6J.js} +1 -1
- package/dist/client/assets/{automation-list-row-BtDcNrc_.js → automation-list-row-BxrxLejb.js} +1 -1
- package/dist/client/assets/{automation-runs-dkRISa5B.js → automation-runs-a6qF3SvW.js} +1 -1
- package/dist/client/assets/{automations-Be95spA2.js → automations-gzRA8y9-.js} +1 -1
- package/dist/client/assets/{badge-DzB3sqoD.js → badge-C7t6LTfR.js} +1 -1
- package/dist/client/assets/{block-document-DrJlmgeQ.js → block-document-CYqbJzu2.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-ClN63sTc.js → blocks-preview-workspace-context-CsoNzElb.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DQr9dBZQ.js → blocks-tab-states-CITyhFLq.js} +1 -1
- package/dist/client/assets/{blog-preview-url-BNeiu40F.js → blog-preview-url-B3s1HKrf.js} +1 -1
- package/dist/client/assets/{blog-schema-BSQdtgIY.js → blog-schema-BkYmMuIN.js} +1 -1
- package/dist/client/assets/{blog-source-gate-WL-fQwzo.js → blog-source-gate-ObteKPqG.js} +1 -1
- package/dist/client/assets/{blog-view-gate-EO5JR8Eq.js → blog-view-gate-COpydlZZ.js} +1 -1
- package/dist/client/assets/{buckets-g82zij8V.js → buckets-BtdFp7x2.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BdkcM1jX.js → build-improve-prompt-doc-mvHEeMRP.js} +1 -1
- package/dist/client/assets/{calendar-RWRp4FJU.js → calendar-BzCbg4ac.js} +1 -1
- package/dist/client/assets/{capability-load-error-KmDfOtoP.js → capability-load-error-DOumSsHX.js} +1 -1
- package/dist/client/assets/{category-editor-C9uuMYru.js → category-editor-LNIPQku6.js} +1 -1
- package/dist/client/assets/{category-tree-DJrnPSNg.js → category-tree-D93GzJKM.js} +1 -1
- package/dist/client/assets/{chart-B9PgP-e_.js → chart-DoFUxyzx.js} +1 -1
- package/dist/client/assets/{chat-context--RKzWa6k.js → chat-context-CYceSwsW.js} +1 -1
- package/dist/client/assets/{chat-draft-BGQDbeF5.js → chat-draft-BnWEOJEz.js} +1 -1
- package/dist/client/assets/{checkbox-H8QR9D0_.js → checkbox-CatUuWpu.js} +1 -1
- package/dist/client/assets/{choose-editor-WBWd1WOu.js → choose-editor-lBrezox9.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C9vCBK1d.js → cli-auth-success-CTZyHvy1.js} +1 -1
- package/dist/client/assets/{client-icons-BKCD3ufp.js → client-icons-DWq7lbi2.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BbDRN695.js → cms-settings-editor-Fbx4SvQp.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BejfL8Fe.js → cms-store-drafts-BlEVeidT.js} +1 -1
- package/dist/client/assets/{collapsible-DbCvR955.js → collapsible-Cn64wIV8.js} +1 -1
- package/dist/client/assets/{collection-detail-C2j-WZ3j.js → collection-detail-CSgxC7jS.js} +1 -1
- package/dist/client/assets/{collection-display-button-1DK_MMnx.js → collection-display-button-WiUHbW4Q.js} +1 -1
- package/dist/client/assets/{collection-search-DvsK7hSv.js → collection-search-D22DG-N6.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-bm-LalTq.js → collection-table-wrapper-C4E2H8ma.js} +1 -1
- package/dist/client/assets/{collection-tabs-6iiAOwW9.js → collection-tabs-D5_OqrKG.js} +1 -1
- package/dist/client/assets/{combobox-6gjOOlze.js → combobox-jjs4eQim.js} +1 -1
- package/dist/client/assets/{command-DQleocFC.js → command-Bvze9Tif.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CeIGkazX.js → companion-mcps-section-DXXRrWwX.js} +1 -1
- package/dist/client/assets/{config-C2ncmLTD.js → config-tetulvEK.js} +1 -1
- package/dist/client/assets/{connect-DlXzYtCQ.js → connect-B-JF1Swb.js} +1 -1
- package/dist/client/assets/{connect-layout-Boxkt-tt.js → connect-layout-Crhi6OLb.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DYJ40IKC.js → connect-source-dialog-DuRrdg_m.js} +1 -1
- package/dist/client/assets/{connection-CJZ6RQ2g.js → connection-MdGKY2XR.js} +1 -1
- package/dist/client/assets/{connection-card-qoqR63NP.js → connection-card-PbivGt0u.js} +1 -1
- package/dist/client/assets/{connection-detail-BTXE_HXc.js → connection-detail-CTR0SCc3.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B9JY5oaH.js → connection-form-helpers-BF6bBhxD.js} +1 -1
- package/dist/client/assets/{connection-slug-CP70si3t.js → connection-slug-DjZZC92k.js} +1 -1
- package/dist/client/assets/{connections-D8py3O3a.js → connections-CX8LGFB-.js} +1 -1
- package/dist/client/assets/{content-tab-lkbVE2xf.js → content-tab-DpjaAWls.js} +3 -3
- package/dist/client/assets/{context-DH-yMERA.js → context-04OXdETR.js} +1 -1
- package/dist/client/assets/{context-menu-Da3prNKL.js → context-menu-DJ6EtlZo.js} +1 -1
- package/dist/client/assets/{context-shell--6NpIOhl.js → context-shell-DHGUs3h1.js} +3 -3
- package/dist/client/assets/{core.esm-DJRh9rDF.js → core.esm-BBx9DFCe.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BJJn8Tn9.js → create-organization-dialog-B2z-lMM3.js} +1 -1
- package/dist/client/assets/{delete-copy-p7sDnlSk.js → delete-copy-C1OD72vk.js} +1 -1
- package/dist/client/assets/{device-hint-Dz-Lgu6D.js → device-hint-Bt7sIQmQ.js} +1 -1
- package/dist/client/assets/{discover-DnaaaTAL.js → discover-DlOTrxS0.js} +1 -1
- package/dist/client/assets/{domain-settings-rt-urBCE.js → domain-settings-Cu5x5rE1.js} +1 -1
- package/dist/client/assets/{drawer-CSA_YXe9.js → drawer-CYcKWGYw.js} +1 -1
- package/dist/client/assets/{editor-BDmwWZXW.js → editor-DnLe1jNS.js} +1 -1
- package/dist/client/assets/{editor-classes-BflxT3Em.js → editor-classes-CmD68Fq4.js} +1 -1
- package/dist/client/assets/{empty-message-CqeY7z6M.js → empty-message-mnnSg0iM.js} +1 -1
- package/dist/client/assets/{empty-state-BBFh_11d.js → empty-state-D60YSb1b.js} +1 -1
- package/dist/client/assets/{empty-state-Wyw1gzAU.js → empty-state-Sh3VG-tE.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-D-e89e6v.js → experiments-tab-choice-DSclvOvL.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Dcbv_gVC.js → extract-connection-data-B1idI_Er.js} +1 -1
- package/dist/client/assets/{feature-gate-Z7tVIxLA.js → feature-gate-DPkeE7uF.js} +1 -1
- package/dist/client/assets/{feature-paywall-DtbDRafp.js → feature-paywall-DDg1qLzb.js} +1 -1
- package/dist/client/assets/{file-explorer-CfNNkZY3.js → file-explorer-CHHt0QX9.js} +1 -1
- package/dist/client/assets/{file-preview-BIcXPFXf.js → file-preview-CgYNe-Mr.js} +1 -1
- package/dist/client/assets/{file-share-button-CRptWZ51.js → file-share-button-BJO30SNe.js} +1 -1
- package/dist/client/assets/{file-type-icon-B8w_B6Ur.js → file-type-icon-e_gGiYxT.js} +1 -1
- package/dist/client/assets/{folder-icon-DLenjLsE.js → folder-icon-L-0b54kb.js} +1 -1
- package/dist/client/assets/{form-fep7EsZM.js → form-Bk3nslfo.js} +1 -1
- package/dist/client/assets/{frame-navigation-DuQkTvmc.js → frame-navigation-BEgM6h8_.js} +1 -1
- package/dist/client/assets/{general-CXgCOcj0.js → general-DaQy4K-t.js} +1 -1
- package/dist/client/assets/{github-icon-BmJmIA35.js → github-icon-DQGQvMmf.js} +1 -1
- package/dist/client/assets/{held-block-view-L4ScXyc0.js → held-block-view-Cm31vjrE.js} +1 -1
- package/dist/client/assets/{home-B8uWiLZ8.js → home-DGBnV40S.js} +1 -1
- package/dist/client/assets/{home-overview-B4YOi7ww.js → home-overview-CyukxPn8.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-TIWxrhyM.js → hosted-reconcile-CfexzNYR.js} +1 -1
- package/dist/client/assets/{icon-button-y7e4XAeL.js → icon-button-BXu6Qjya.js} +1 -1
- package/dist/client/assets/{index-CMsvPj3a.js → index-B5IfyADC.js} +1 -1
- package/dist/client/assets/{index-CWyPzcrL.js → index-BKpLGEvk.js} +3 -3
- package/dist/client/assets/{index-CNwv7lrZ.js → index-BgOAo4xm.js} +1 -1
- package/dist/client/assets/{index-6bDgVJQF.js → index-BkBkbj9f.js} +1 -1
- package/dist/client/assets/{index-D19_uhum.js → index-Bmu-UHY1.js} +1 -1
- package/dist/client/assets/{index-Dj0a2kN-.js → index-C7tYkEQ8.js} +1 -1
- package/dist/client/assets/{index-CHutq_y1.js → index-CePmTsdo.js} +1 -1
- package/dist/client/assets/{index-DvJkVFQT.js → index-CfNLmuQI.js} +1 -1
- package/dist/client/assets/{index-DVZtQRVw.js → index-CrfTUiEe.js} +1 -1
- package/dist/client/assets/{index-pvUDeJng.js → index-DEBA1pg3.js} +1 -1
- package/dist/client/assets/{index-ChH0sLX7.js → index-DEZsHYz8.js} +1 -1
- package/dist/client/assets/{index-CVAn8xNL.js → index-DHKBL-0w.js} +1 -1
- package/dist/client/assets/{index-C2ij8p-x.js → index-DXL41NDn.js} +1 -1
- package/dist/client/assets/{index-CmAlUJfb.js → index-Dg0S3jvO.js} +1 -1
- package/dist/client/assets/{index-Bvx7roR3.js → index-RR-LocRS.js} +1 -1
- package/dist/client/assets/{index-ixp03eW8.js → index-_JElq8CH.js} +1 -1
- package/dist/client/assets/{index-CMmFyekL.js → index-qU__HJAz.js} +1 -1
- package/dist/client/assets/{index-redirect-D4F9QPKL.js → index-redirect-CKuiylNe.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-OShuiwgE.js → infiniteQueryObserver-B581IWWx.js} +1 -1
- package/dist/client/assets/{infra-billing-CWpsn-Rt.js → infra-billing-n55oYuuQ.js} +1 -1
- package/dist/client/assets/{input-BgfY5gpb.js → input-B7-dSOUM.js} +3 -3
- package/dist/client/assets/{input-DTQsyDJB.js → input-BUWCiQ-z.js} +1 -1
- package/dist/client/assets/{integration-icon-C_WzTScv.js → integration-icon-Ct_bDgI9.js} +1 -1
- package/dist/client/assets/{item-actions-DXH2d6Fe.js → item-actions-D6KeBwnZ.js} +1 -1
- package/dist/client/assets/{jira-icon-D56pw7mD.js → jira-icon-f6_UboMT.js} +1 -1
- package/dist/client/assets/{label-Cf_dlQhi.js → label-BDLTo2Y-.js} +1 -1
- package/dist/client/assets/{layout-CtDg9WFK.js → layout-xW4i621c.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-Bh63ptd4.js → legacy-admin-welcome-dialog-_KyfyHo4.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-j_eDHMz_.js → legacy-agents-deep-CTGA8FAw.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C9oF56pC.js → legacy-main-redirect-DYEHBu75.js} +1 -1
- package/dist/client/assets/library-CPjn6zN-.js +1 -0
- package/dist/client/assets/{library-tab-B0xPdiji.js → library-tab-D3KV5O71.js} +1 -1
- package/dist/client/assets/{login-XaVtTkis.js → login-BFDkXk1-.js} +1 -1
- package/dist/client/assets/{markdown-DCvPsl1N.js → markdown-BsYAi8XQ.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DBs207iT.js → mcp-app-renderer-dDBi3URO.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CciCTLp9.js → mcp-oauth-2WlHJ7R6.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DOQO_m1D.js → mcp-oauth-D84_fl26.js} +1 -1
- package/dist/client/assets/{members-CL8zrENK.js → members-SEORNWe5.js} +1 -1
- package/dist/client/assets/{memory-C0eybouW.js → memory-1tcv0zES.js} +1 -1
- package/dist/client/assets/{mock-board-iZzwB0Ec.js → mock-board-GTW4H-2e.js} +3 -3
- package/dist/client/assets/{monaco-editor-BjOCHD6R.js → monaco-editor-D1vzjghk.js} +1 -1
- package/dist/client/assets/{monitoring-auJHCqSG.js → monitoring-DQHeaSK4.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D-1eXI4W.js → monitoring-stats-row-DXyyo-Bj.js} +1 -1
- package/dist/client/assets/{multi-select-C7KaI7rL.js → multi-select-BlUZOCfN.js} +1 -1
- package/dist/client/assets/{mustache-Dm8yyGpD.js → mustache-CucS04fv.js} +1 -1
- package/dist/client/assets/{named-rule-step-DLS79yYb.js → named-rule-step-DzxARGEs.js} +1 -1
- package/dist/client/assets/{named-rule-view-Bgyvi0X-.js → named-rule-view-BLh1VTgV.js} +1 -1
- package/dist/client/assets/{new-project-dialog-uK1Ixj7a.js → new-project-dialog-kOo0CX1I.js} +1 -1
- package/dist/client/assets/{oauth-callback-xd-D45xF.js → oauth-callback-Bkh0nm9p.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-xMCIdlQV.js → oauth-callback-ai-provider-CnZgrcLv.js} +1 -1
- package/dist/client/assets/{oauth-consent-BH8-t4eI.js → oauth-consent-D9UeLvHW.js} +1 -1
- package/dist/client/assets/{onboarding-C46p79BL.js → onboarding-DGDSLHwI.js} +1 -1
- package/dist/client/assets/{openai-conversation-LX4vhoSF.js → openai-conversation-DBql2S54.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CQDM5Smz.js → optimistic-project-sidebar-views-Cw_kLunc.js} +1 -1
- package/dist/client/assets/{order-monitor-day-CdZki-hX.js → order-monitor-day-DTMjwt2_.js} +1 -1
- package/dist/client/assets/{organization-choice-C2R9F9mc.js → organization-choice-2jucsQRU.js} +1 -1
- package/dist/client/assets/{orgs-HpCUPqLm.js → orgs-CJ-0OF4Z.js} +1 -1
- package/dist/client/assets/{own-accounts-section-Bj2ZQcZp.js → own-accounts-section-J0NWrWHr.js} +1 -1
- package/dist/client/assets/{pair-CZjLWCpF.js → pair-CTPgNFFV.js} +1 -1
- package/dist/client/assets/{parse-sections-C-6WrwoU.js → parse-sections-B9nhzb36.js} +3 -3
- package/dist/client/assets/{plan-z7jyUflE.js → plan-CQaDNoCH.js} +1 -1
- package/dist/client/assets/{plan-ladder-K1-uMNFn.js → plan-ladder-BI4eUCeS.js} +1 -1
- package/dist/client/assets/{plan-usage-card-ByfsqyV3.js → plan-usage-card-DFQGd0O4.js} +1 -1
- package/dist/client/assets/{popover-L7EmpGzG.js → popover-CIHDNHCs.js} +1 -1
- package/dist/client/assets/{post-calendar-CrzSJ4wO.js → post-calendar-BDMjG2dP.js} +1 -1
- package/dist/client/assets/{post-editor-D6PvmOkx.js → post-editor-CZDC6xA9.js} +1 -1
- package/dist/client/assets/{preview-content-BdQavgtT.js → preview-content-BTrjkSSQ.js} +1 -1
- package/dist/client/assets/{preview-dialog-DRt8NRQg.js → preview-dialog-CrvvVaQF.js} +1 -1
- package/dist/client/assets/{preview-panel-C7R9FzB7.js → preview-panel-DNIoRAHt.js} +1 -1
- package/dist/client/assets/{preview-tab-DE998jcM.js → preview-tab-VYZ8NJdg.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-CasJjhcc.js → product-picker-dialog-Ci68Qqvg.js} +1 -1
- package/dist/client/assets/{profile-DaVD3rXx.js → profile-XTQB4V6Q.js} +1 -1
- package/dist/client/assets/{project-app-view-BgNgayQ9.js → project-app-view-BzijeZdr.js} +1 -1
- package/dist/client/assets/{project-apps-9RUwCLHJ.js → project-apps-D_TFWUBb.js} +1 -1
- package/dist/client/assets/{project-icon-DCOepmMu.js → project-icon-Bvu6n5OS.js} +1 -1
- package/dist/client/assets/{project-index-kHTy1V43.js → project-index-s3N3q8ZI.js} +1 -1
- package/dist/client/assets/project-reports-CRj65wwW.js +1 -0
- package/dist/client/assets/project-tasks-CkomURVN.js +1 -0
- package/dist/client/assets/{projects-Cfrtdtxw.js → projects-0pKUprB3.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BOqzKLFM.js → projects-empty-state-CY5mYsav.js} +1 -1
- package/dist/client/assets/{prompts-CeNm4O78.js → prompts-HlF9eomi.js} +1 -1
- package/dist/client/assets/{record-editor-BDc47aTz.js → record-editor-CV-pm9D2.js} +1 -1
- package/dist/client/assets/{redirect-editor-B5YbT02W.js → redirect-editor-ewT0Z79b.js} +1 -1
- package/dist/client/assets/{reports-yqXMJIxG.js → reports-D7FZXXLc.js} +1 -1
- package/dist/client/assets/reports-meX1koUH.js +1 -0
- package/dist/client/assets/{reports-onboarding-BF3nb40S.js → reports-onboarding-BCKv5hwM.js} +1 -1
- package/dist/client/assets/{reports-tab-CGHZrbkt.js → reports-tab-Cyot8IJh.js} +2 -2
- package/dist/client/assets/repositories-Cp4Zu6Qh.js +1 -0
- package/dist/client/assets/{repositories-Dxg6NBM0.js → repositories-DYAzvJ2e.js} +1 -1
- package/dist/client/assets/{repository-binding-SYfLLQPp.js → repository-binding-CP5rmeRO.js} +1 -1
- package/dist/client/assets/{repository-picker-CbFl2YYE.js → repository-picker-DC1bdVSR.js} +1 -1
- package/dist/client/assets/{require-capability-BiwpdxIn.js → require-capability-BVqYoN67.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DFuLVB75.js → required-auth-layout-DkFLkHwK.js} +1 -1
- package/dist/client/assets/{reset-password-HUKzr46F.js → reset-password-TRWNpcby.js} +1 -1
- package/dist/client/assets/{resizable-CmCl4ei7.js → resizable-BkCowlJw.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BjnMFr70.js → resolve-tab-icon-CP2POYlU.js} +1 -1
- package/dist/client/assets/{review-settings-CA-nqHST.js → review-settings-BXaEkW6w.js} +1 -1
- package/dist/client/assets/{role-color-boYo8Hxk.js → role-color-LPLD9FHS.js} +1 -1
- package/dist/client/assets/{roles-B5mCkh61.js → roles-D5PyY97I.js} +1 -1
- package/dist/client/assets/{route-B6oRH5TC.js → route-BsF04vyP.js} +1 -1
- package/dist/client/assets/{route-_4HjzOd2.js → route-C0IU8ikw.js} +1 -1
- package/dist/client/assets/route-COHimIC5.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-Dz7l9f2x.js → sandbox-lifecycle-context-yl4f8uag.js} +1 -1
- package/dist/client/assets/{save-status-C-e1JPTQ.js → save-status-D_jJpmHD.js} +1 -1
- package/dist/client/assets/{schema-CLtIHsoR.js → schema-B-LAHoUK.js} +1 -1
- package/dist/client/assets/{schema-821-vfww.js → schema-DvaJ2rNl.js} +1 -1
- package/dist/client/assets/{scroll-area-Jht8lpyk.js → scroll-area-DYFB45XI.js} +1 -1
- package/dist/client/assets/{search-input-B93QU4Dy.js → search-input-DqHJAiRd.js} +1 -1
- package/dist/client/assets/{search-toggle-tlJ3SbIE.js → search-toggle-YJLuuKM2.js} +1 -1
- package/dist/client/assets/{secret-picker-CAALtPpd.js → secret-picker-CrMeaVIe.js} +1 -1
- package/dist/client/assets/{secrets-C80xJsHQ.js → secrets-BaXvvDw0.js} +1 -1
- package/dist/client/assets/{section-array-field-CBZsskhA.js → section-array-field-Bkmst1qa.js} +1 -1
- package/dist/client/assets/sections-editor-DFr81VGf.js +1 -0
- package/dist/client/assets/{sections-B_HR2jtY.js → sections-yfZBPLDD.js} +1 -1
- package/dist/client/assets/{select-e2tvI61e.js → select-B5iUwwXV.js} +1 -1
- package/dist/client/assets/{select-model-M3nxcPkm.js → select-model-4Zcj6CUr.js} +1 -1
- package/dist/client/assets/{seo-editor-DEOahzw6.js → seo-editor-CMO3yFNl.js} +1 -1
- package/dist/client/assets/{separator-BI2slX_5.js → separator-CjulnSNe.js} +1 -1
- package/dist/client/assets/settings-tab-Cjr1l3iK.js +1 -0
- package/dist/client/assets/{sheet-DvkksJq0.js → sheet-gfkwParf.js} +1 -1
- package/dist/client/assets/{shell-layout-BCfYpYFh.js → shell-layout-BMzHKR9t.js} +1 -1
- package/dist/client/assets/{site-draft-actions-qfCZ-0Ms.js → site-draft-actions-7lwHkvwZ.js} +3 -3
- package/dist/client/assets/{site-draft-view-DVJ5_AAD.js → site-draft-view-DPG5iFOp.js} +1 -1
- package/dist/client/assets/site-editor-BzDBOZfD.js +1 -0
- package/dist/client/assets/{site-editor-toast-B030LZGc.js → site-editor-toast-BceqMxyH.js} +1 -1
- package/dist/client/assets/{skills-DU3JvR9H.js → skills-DE4484hs.js} +1 -1
- package/dist/client/assets/{slider-BqNz0Q_x.js → slider-DcuTWtwH.js} +1 -1
- package/dist/client/assets/{sortable.esm-Dgvk_55x.js → sortable.esm-ANscIFFj.js} +1 -1
- package/dist/client/assets/{sso-B36MJWf3.js → sso-DdFXot92.js} +1 -1
- package/dist/client/assets/{suggestion-DjTd4iW-.js → suggestion-NKgMRlVT.js} +1 -1
- package/dist/client/assets/{super-agent-icon-BFe-gjNi.js → super-agent-icon-COQfkqms.js} +1 -1
- package/dist/client/assets/{switch-CVqJR3dk.js → switch-C9Bl2pnH.js} +1 -1
- package/dist/client/assets/{synced-repos-CdEL5OLa.js → synced-repos-BHxMHIO9.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-we-DMaKk.js → tab-icon-glyph-Bqn-t2kR.js} +1 -1
- package/dist/client/assets/{table-DyAbyTkr.js → table-3tc9vMUS.js} +1 -1
- package/dist/client/assets/{tabs-RDxPTimY.js → tabs-CEaEmLtB.js} +1 -1
- package/dist/client/assets/{task-board-CNxFcEEU.js → task-board-DsQ_oTs1.js} +1 -1
- package/dist/client/assets/{task-route-BY8SQPrf.js → task-route-Dhjxq4rN.js} +1 -1
- package/dist/client/assets/{task-status-BQ9l-imv.js → task-status-BACgzbhl.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-D-fKcUTx.js → taskboard-analytics-fedXTaWV.js} +1 -1
- package/dist/client/assets/{tasks-H_163psh.js → tasks-DN4gUG8s.js} +1 -1
- package/dist/client/assets/tasks-XUCgNKqq.js +1 -0
- package/dist/client/assets/{textarea-D8L9nIm0.js → textarea-BI99K3kU.js} +1 -1
- package/dist/client/assets/{thread-analytics-B6wRhPTZ.js → thread-analytics-BF5ms8Xu.js} +1 -1
- package/dist/client/assets/{thread-intent-BoKpDkXm.js → thread-intent-CCp7NTzo.js} +1 -1
- package/dist/client/assets/{thread-route-D-qV5LOQ.js → thread-route--4ncLAuV.js} +1 -1
- package/dist/client/assets/{thread-route-CjhH3Hve.js → thread-route-CngUV5dW.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BmxCKr5-.js → thread-sheet-body-Dz8sB7AN.js} +1 -1
- package/dist/client/assets/{time-range-picker-BI1bqfR0.js → time-range-picker-CgzxFYO6.js} +1 -1
- package/dist/client/assets/{toggle-group-C9F5Qvi7.js → toggle-group-DRCRlz-o.js} +1 -1
- package/dist/client/assets/{tool-namespace-Cwe3IZ6z.js → tool-namespace-CDKIr-qo.js} +1 -1
- package/dist/client/assets/{tool-set-selector-BIHpKu9L.js → tool-set-selector-BNZjFKrK.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-C4QFd50C.js → toolbar-icon-button-Dnuh3g8k.js} +1 -1
- package/dist/client/assets/{tooltip-C-0kDxkl.js → tooltip-CHkAenL4.js} +1 -1
- package/dist/client/assets/{tooltipContext-DjUViqx9.js → tooltipContext-C0rU2vdL.js} +1 -1
- package/dist/client/assets/{track-DWFP8jCm.js → track-DLP1jT71.js} +1 -1
- package/dist/client/assets/{types-DrwTBhGr.js → types-BU7qSv9N.js} +1 -1
- package/dist/client/assets/{url-slug-xvxPIesW.js → url-slug-D24e6cXS.js} +1 -1
- package/dist/client/assets/{usage-stats-BFAUXiEn.js → usage-stats-CqG5Et7U.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Drq9rd-R.js → use-ai-providers-monFFnof.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BqLt_ETT.js → use-apply-named-rule-qmErOd6S.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-C6XbAhIh.js +1 -0
- package/dist/client/assets/{use-automations-DnYKYkJG.js → use-automations-ClAQYeNg.js} +1 -1
- package/dist/client/assets/{use-autosave-BxcdTX-O.js → use-autosave-C7jfVfde.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DvmEriaW.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-CIpS2ixg.js → use-chat-layout-state-DvsxRxjF.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-CFC3bJmB.js → use-cms-publish-actions-OI0sEt7b.js} +1 -1
- package/dist/client/assets/{use-connect-companion-ortXPeJY.js → use-connect-companion-Bve2cc5H.js} +1 -1
- package/dist/client/assets/{use-connection-CoSLklxV.js → use-connection-awawZ6Wu.js} +1 -1
- package/dist/client/assets/{use-content-sync-BvIburw3.js → use-content-sync-DgF3iqQY.js} +1 -1
- package/dist/client/assets/{use-copy-ChDt5LN5.js → use-copy-CHckM0yQ.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-6TxnLgf0.js → use-date-fns-locale-BQZx4bZQ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DuzJ4VFK.js → use-debounced-autosave-DITgBReP.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CPC4qMn_.js → use-debounced-value-JGqBfV3A.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Cct8YuxZ.js → use-deco-credits-C-U99OMS.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DrQkcg1u.js → use-decopilot-events-CQZ1l3Ag.js} +1 -1
- package/dist/client/assets/{use-delete-block-CZz_ptBE.js → use-delete-block-CS6BnCmg.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CpvyLSMF.js → use-delete-connection-DomyIOZf.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DqLzMbx4.js → use-deployment-admin-BJVjKk5d.js} +1 -1
- package/dist/client/assets/{use-entitlements-BTXwUzEe.js → use-entitlements-Bc6hnlLI.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BpU8VWnC.js → use-fast-preview-draft-url-0fgsSk43.js} +1 -1
- package/dist/client/assets/{use-file-configs-DlI3360C.js → use-file-configs-BAq4cYjg.js} +1 -1
- package/dist/client/assets/{use-id-selection-q64VX8pH.js → use-id-selection-Cud8tUSI.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BXQf8xik.js → use-inbox-feed-ZpuYzxRQ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DToG_mXG.js → use-infinite-scroll-BbjRydsW.js} +1 -1
- package/dist/client/assets/{use-join-requests-BkEJmRDc.js → use-join-requests-BEtvUTya.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-dGK32Zdd.js → use-main-panel-tabs-ihvJFTYu.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CMiOMa1q.js → use-mcp-auth-status-Ba321CQi.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BJYqkCGO.js → use-mcp-client-B3T-i6Yy.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-L17hBbZI.js → use-mcp-prompts-DBrWE8Dr.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BmsHVJ_e.js → use-mcp-tools-BGMuCnaV.js} +1 -1
- package/dist/client/assets/{use-mobile-BZxtzMj7.js → use-mobile-DcM2ppEE.js} +1 -1
- package/dist/client/assets/{use-move-blocks-BhC8Ou_b.js → use-move-blocks-Devk2xQ3.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-v5tv9KVo.js → use-navigate-to-agent-D8_0egfT.js} +1 -1
- package/dist/client/assets/{use-never-published-ftzoQCEb.js → use-never-published-8biSL1xa.js} +1 -1
- package/dist/client/assets/{use-org-fs-DwXaWmOv.js → use-org-fs-EF-fi1l8.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-C9CNVJm1.js → use-org-repo-syncs-C6h3bPrX.js} +1 -1
- package/dist/client/assets/{use-org-sso-BxQ8a0VK.js → use-org-sso-B2a8dOEH.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DNlKPHFq.js → use-organization-settings-Csn2HHVU.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-AFSL4S75.js → use-project-native-view-presence-D7A-wshs.js} +1 -1
- package/dist/client/assets/{use-project-scope-Fr7Egb1F.js → use-project-scope-X9RqbqiU.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BEYnfhfp.js → use-recent-apps-rUq1bjhz.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-2pn_94P0.js → use-reports-diagnostic-CGI2Xl9F.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-jMtZqiMa.js → use-sandbox-events-DZThvbj1.js} +1 -1
- package/dist/client/assets/{use-secrets-CBdbQcuQ.js → use-secrets-DAnpZEOQ.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-J9b63pbx.js → use-section-preview-base-BJCE_bK_.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BfQVGyVT.js → use-sidebar-collapsed-DSgGjO0O.js} +1 -1
- package/dist/client/assets/{use-tags-BEbkxwEv.js → use-tags-B7tFSqKt.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CjF5lq2A.js → use-task-board-analytics-CMOJTnLm.js} +1 -1
- package/dist/client/assets/{use-task-board-events-ube60SA0.js → use-task-board-events-CwTqGsbl.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-nU2PcUzp.js → use-task-board-item-prs-Cru9Avpm.js} +1 -1
- package/dist/client/assets/{use-task-board-items-Di-1rSrZ.js → use-task-board-items-7fqoywfp.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BDQ8kbX2.js → use-task-board-prompts-1o75tM7-.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DrDAhZTp.js → use-task-metadata-_SaXSt_H.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Ch3NEbJD.js → use-thread-outputs-XJ2zBtCL.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-C5ojzKhH.js → use-view-draft-kind-DwK_OsiM.js} +1 -1
- package/dist/client/assets/{use-voice-input-DHuYIV5W.js → use-voice-input-c6FA5Zln.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dbi-NOGt.js +1 -0
- package/dist/client/assets/{useQueries-PCnHBPMW.js → useQueries-6Lw5qdba.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B992fqNS.js +1 -0
- package/dist/client/assets/{users-y7gdQpb2.js → users-Dv2yl9ko.js} +1 -1
- package/dist/client/assets/{utils-DZ4Tq9_F.js → utils-DGdwEw5F.js} +1 -1
- package/dist/client/assets/{variant-calendar-Jezxzb2B.js → variant-calendar-CLdhbIZB.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-R9Ip3akP.js → variant-matcher-override-WZWgmOzs.js} +1 -1
- package/dist/client/assets/{view-header-DQwHRwa3.js → view-header-Bu2ZBbKL.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BMNTjIAW.js → virtual-mcp-BX4v2LOq.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CR6i9l-S.js → watch-sse-pool-D62Siohr.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-C3awWskd.js +0 -1
- package/dist/client/assets/agent-deck-CQmtmyYp.js +0 -1
- package/dist/client/assets/agent-experiments-BNt-4I9S.js +0 -1
- package/dist/client/assets/agent-library-Ggp4u0Nt.js +0 -1
- package/dist/client/assets/agent-library-file--sN5r5DJ.js +0 -1
- package/dist/client/assets/agent-overview-4OlQ8oKX.js +0 -1
- package/dist/client/assets/agent-settings-CVXhUEvS.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DmCPSKgw.js +0 -2
- package/dist/client/assets/agent-site-editor-content-cBVAi7GZ.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-kwoTpAUq.js +0 -1
- package/dist/client/assets/agent-view-BLlyMWQJ.js +0 -1
- package/dist/client/assets/api-keys-CN81fd1q.js +0 -1
- package/dist/client/assets/library-Bl-LzTcJ.js +0 -1
- package/dist/client/assets/project-reports-SFE87SXv.js +0 -1
- package/dist/client/assets/project-tasks-CZgEt2Vy.js +0 -1
- package/dist/client/assets/reports-CGHHsIAg.js +0 -1
- package/dist/client/assets/repositories-CXahUI4R.js +0 -1
- package/dist/client/assets/route-BGFrmL98.js +0 -1
- package/dist/client/assets/sections-editor-EHDr6zm_.js +0 -1
- package/dist/client/assets/settings-tab-CU7bs3DW.js +0 -1
- package/dist/client/assets/site-editor-Cm6TtNkp.js +0 -1
- package/dist/client/assets/tasks-CWBTMAuG.js +0 -1
- package/dist/client/assets/use-ask-in-chat-DRRgH5qP.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-Ce_mrKLc.js +0 -1
- package/dist/client/assets/useInfiniteQuery--BgI5-DV.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B_FBCJuI.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-editor-
|
|
2
|
-
import{r as R,b4 as Ue,c as W,b as Q,m as ne,j as s,B as K,b2 as ye,h as je,I as ge,t as Pe,bu as ve,a7 as Oe,bv as Ke,n as We,bw as ce,bx as Ge,e as He,bk as Se,by as pe,bh as Te,bi as qe,bj as he}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-editor-D1vzjghk.js","assets/index-BKpLGEvk.js","assets/index-DYPWHH-M.css","assets/editor-DnLe1jNS.js","assets/delay-CnY5UFtP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as R,b4 as Ue,c as W,b as Q,m as ne,j as s,B as K,b2 as ye,h as je,I as ge,t as Pe,bu as ve,a7 as Oe,bv as Ke,n as We,bw as ce,bx as Ge,e as He,bk as Se,by as pe,bh as Te,bi as qe,bj as he}from"./index-BKpLGEvk.js";import{C as Ye,a as Qe,S as Ze,M as Xe,v as es}from"./held-block-view-Cm31vjrE.js";import{b as Le}from"./use-never-published-8biSL1xa.js";import{c as ss,u as ts}from"./hosted-reconcile-CfexzNYR.js";import{u as ns,b as ls}from"./repository-binding-CP5rmeRO.js";import{F as $e,a0 as Ae,ae as as,e as os,a7 as is,af as rs,O as cs}from"./agent-icon-BFR8_3zP.js";import{i as ds}from"./SearchMd-D0-9ej42.js";import{L as _e}from"./label-BDLTo2Y-.js";import{S as us}from"./switch-C9Bl2pnH.js";import{T as fs}from"./textarea-BI99K3kU.js";import{u as ms}from"./use-copy-CHckM0yQ.js";import{D as xs}from"./section-array-field-Bkmst1qa.js";import{a4 as ps,a5 as ke,a6 as hs,a7 as Ee,w as bs,q as vs}from"./site-editor-toast-BceqMxyH.js";import{Y as ys,Z as js,M as ze,w as gs,y as ks,_ as Ns,$ as Ss}from"./blocks-tab-states-CITyhFLq.js";import{a as Ts}from"./empty-message-mnnSg0iM.js";import{i as _s}from"./ChevronSelectorVertical-EzXJxozj.js";import{a as Es,C as ws,b as we,e as Cs,c as Bs,f as Rs}from"./command-Bvze9Tif.js";import{a as Ps,b as Os,P as Ls}from"./popover-CIHDNHCs.js";import{u as $s}from"./chat-context-CYceSwsW.js";import{i as As}from"./Play-2aGPtJuo.js";import{S as zs}from"./scroll-area-DYFB45XI.js";import{c as ue,T as fe,a as me}from"./tooltip-CHkAenL4.js";import{MonacoCodeEditor as Ie}from"./monaco-editor-D1vzjghk.js";import{S as Is}from"./save-status-D_jJpmHD.js";const Ms=R.lazy(()=>Ue(()=>import("./monaco-editor-D1vzjghk.js"),__vite__mapDeps([0,1,2,3,4])).then(o=>({default:o.MonacoCodeEditor}))),te=o=>!!o&&typeof o=="object"&&!Array.isArray(o);function Js(o,e){return o("sandbox.schemaless.agentPrompt",{site:e?`"${e}"`:o("sandbox.schemaless.agentPromptSiteUnknown")})}function Vs(o){const e=W.c(56),{site:l,className:n}=o,t=Q(),{handleCopy:a,copied:i}=ms();let r;e[0]!==n?(r=ne("flex shrink-0 flex-col gap-2.5 border-b bg-muted/40 px-4 py-3",n),e[0]=n,e[1]=r):r=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(as,{"aria-hidden":"true",className:"mt-0.5 size-4 shrink-0 text-muted-foreground"}),e[2]=f):f=e[2];let x;e[3]!==t?(x=t("sandbox.schemaless.bannerTitle"),e[3]=t,e[4]=x):x=e[4];let b;e[5]!==x?(b=s.jsx("h2",{id:"schema-pending-title",className:"text-sm font-medium text-foreground",children:x}),e[5]=x,e[6]=b):b=e[6];let h;e[7]!==t?(h=t("sandbox.schemaless.bannerBody"),e[7]=t,e[8]=h):h=e[8];let p;e[9]!==h?(p=s.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:h}),e[9]=h,e[10]=p):p=e[10];let y;e[11]!==b||e[12]!==p?(y=s.jsxs("div",{className:"flex items-start gap-2",children:[f,s.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[b,p]})]}),e[11]=b,e[12]=p,e[13]=y):y=e[13];let m;e[14]!==a||e[15]!==l||e[16]!==t?(m=()=>{a(Js(t,l)).catch(()=>Pe.error(t("sandbox.schemaless.copyPromptFailed")))},e[14]=a,e[15]=l,e[16]=t,e[17]=m):m=e[17];let d;e[18]!==i?(d=i?s.jsx(ve,{className:"text-success"}):s.jsx(os,{}),e[18]=i,e[19]=d):d=e[19];let u;e[20]!==i||e[21]!==t?(u=t(i?"sandbox.schemaless.promptCopied":"sandbox.schemaless.copyPrompt"),e[20]=i,e[21]=t,e[22]=u):u=e[22];let c;e[23]!==u||e[24]!==m||e[25]!==d?(c=s.jsxs(K,{type:"button",variant:"outline",size:"sm",onClick:m,children:[d,u]}),e[23]=u,e[24]=m,e[25]=d,e[26]=c):c=e[26];let g;e[27]!==i||e[28]!==t?(g=i?t("sandbox.schemaless.promptCopiedAnnouncement"):"",e[27]=i,e[28]=t,e[29]=g):g=e[29];let j;e[30]!==g?(j=s.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:g}),e[30]=g,e[31]=j):j=e[31];let v;e[32]!==t?(v=t("sandbox.schemaless.usesSkill"),e[32]=t,e[33]=v):v=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("span",{"aria-hidden":"true",children:" · "}),e[34]=E):E=e[34];let k;e[35]!==t?(k=t("sandbox.schemaless.installSkill"),e[35]=t,e[36]=k):k=e[36];let S;e[37]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Oe,{"aria-hidden":"true",className:"size-3.5"}),e[37]=S):S=e[37];let N;e[38]!==t?(N=t("decoServe.docs.newTab"),e[38]=t,e[39]=N):N=e[39];let _;e[40]!==N?(_=s.jsx("span",{className:"sr-only",children:N}),e[40]=N,e[41]=_):_=e[41];let C;e[42]!==k||e[43]!==_?(C=s.jsxs("a",{href:xs,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground underline-offset-4 hover:underline focus-visible:underline",children:[k,S,_]}),e[42]=k,e[43]=_,e[44]=C):C=e[44];let T;e[45]!==v||e[46]!==C?(T=s.jsxs("span",{className:"text-xs text-muted-foreground",children:[v,E,C]}),e[45]=v,e[46]=C,e[47]=T):T=e[47];let w;e[48]!==c||e[49]!==j||e[50]!==T?(w=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 pl-6",children:[c,j,T]}),e[48]=c,e[49]=j,e[50]=T,e[51]=w):w=e[51];let B;return e[52]!==r||e[53]!==w||e[54]!==y?(B=s.jsxs("section",{"aria-labelledby":"schema-pending-title","data-testid":"schema-pending-banner",className:r,children:[y,w]}),e[52]=r,e[53]=w,e[54]=y,e[55]=B):B=e[55],B}function Ds(o,e,l){if(te(o)){for(const n of["name","title","label"]){const t=o[n];if(typeof t=="string"&&t.trim())return t.trim()}if(typeof o.__resolveType=="string")return ke(o.__resolveType);for(const[n,t]of Object.entries(o)){if(n.startsWith("__")||typeof t!="string")continue;const a=t.trim();if(a&&a.length<=80&&!a.startsWith("<"))return a}}return l("sandbox.schemaless.item",{n:e+1})}const Fs=o=>`schemaless-${o.join(".")}`;function Us(o){const e=W.c(7),{id:l,value:n,onChange:t}=o;let a;e[0]!==n?(a=()=>n.includes(`
|
|
3
3
|
`)||n.length>80,e[0]=n,e[1]=a):a=e[1];const[i]=R.useState(a);let r;return e[2]!==l||e[3]!==i||e[4]!==t||e[5]!==n?(r=i?s.jsx(fs,{id:l,value:n,rows:Math.min(8,Math.max(3,n.split(`
|
|
4
|
-
`).length)),onChange:f=>t(f.target.value)}):s.jsx(ge,{id:l,value:n,onChange:f=>t(f.target.value)}),e[2]=l,e[3]=i,e[4]=t,e[5]=n,e[6]=r):r=e[6],r}function Ks(o){const e=W.c(15),{id:l,value:n,onChange:t}=o,a=Q(),[i,r]=R.useState(String(n));let f;e[0]!==i?(f=Ee(i),e[0]=i,e[1]=f):f=e[1];const x=f===null;let b;e[2]!==t?(b=m=>{r(m.target.value);const d=Ee(m.target.value);d!==null&&t(d)},e[2]=t,e[3]=b):b=e[3];let h;e[4]!==l||e[5]!==x||e[6]!==b||e[7]!==i?(h=s.jsx(ge,{id:l,inputMode:"decimal",value:i,"aria-invalid":x,onChange:b}),e[4]=l,e[5]=x,e[6]=b,e[7]=i,e[8]=h):h=e[8];let p;e[9]!==x||e[10]!==a?(p=x&&s.jsx("p",{className:"text-xs text-destructive",children:a("sandbox.schemaless.notANumber")}),e[9]=x,e[10]=a,e[11]=p):p=e[11];let y;return e[12]!==h||e[13]!==p?(y=s.jsxs("div",{className:"flex flex-col gap-1",children:[h,p]}),e[12]=h,e[13]=p,e[14]=y):y=e[14],y}function Me(o){const e=W.c(67),{label:l,value:n,path:t,depth:a,onChange:i}=o,r=Q();let f;e[0]!==t?(f=Fs(t),e[0]=t,e[1]=f):f=e[1];const x=f;if(typeof n=="boolean"){let m;e[2]!==x||e[3]!==l?(m=s.jsx(_e,{htmlFor:x,className:"min-w-0 truncate",children:l}),e[2]=x,e[3]=l,e[4]=m):m=e[4];let d;e[5]!==i||e[6]!==t?(d=g=>i(t,g),e[5]=i,e[6]=t,e[7]=d):d=e[7];let u;e[8]!==x||e[9]!==d||e[10]!==n?(u=s.jsx(us,{id:x,checked:n,onCheckedChange:d}),e[8]=x,e[9]=d,e[10]=n,e[11]=u):u=e[11];let c;return e[12]!==m||e[13]!==u?(c=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m,u]}),e[12]=m,e[13]=u,e[14]=c):c=e[14],c}if(typeof n=="string"||typeof n=="number"){let m;e[15]!==x||e[16]!==l?(m=s.jsx(_e,{htmlFor:x,className:"min-w-0 truncate",children:l}),e[15]=x,e[16]=l,e[17]=m):m=e[17];let d;e[18]!==x||e[19]!==i||e[20]!==t||e[21]!==n?(d=typeof n=="string"?s.jsx(Us,{id:x,value:n,onChange:c=>i(t,c)}):s.jsx(Ks,{id:x,value:n,onChange:c=>i(t,c)}),e[18]=x,e[19]=i,e[20]=t,e[21]=n,e[22]=d):d=e[22];let u;return e[23]!==m||e[24]!==d?(u=s.jsxs("div",{className:"flex flex-col gap-1.5",children:[m,d]}),e[23]=m,e[24]=d,e[25]=u):u=e[25],u}if(Array.isArray(n)||te(n)){let m,d,u,c,g;if(e[26]!==a||e[27]!==l||e[28]!==i||e[29]!==t||e[30]!==r||e[31]!==n){const E=Array.isArray(n)?n.map((T,C)=>[Ds(T,C,r),T,C]):Object.entries(n).filter(Gs).map(Ws),k=te(n)&&typeof n.__resolveType=="string"?n.__resolveType:null;u=a===0,c="group rounded-md border border-border";let S;e[37]!==l?(S=s.jsx("span",{className:"min-w-0 truncate",children:l}),e[37]=l,e[38]=S):S=e[38];let N;e[39]!==k?(N=k&&s.jsx("span",{className:"min-w-0 truncate font-mono text-xs font-normal text-muted-foreground",title:k,children:ke(k)}),e[39]=k,e[40]=N):N=e[40];let _;e[41]!==r||e[42]!==n?(_=Array.isArray(n)?r("sandbox.schemaless.itemCount",{count:n.length}):null,e[41]=r,e[42]=n,e[43]=_):_=e[43];let w;e[44]!==_?(w=s.jsx("span",{className:"ml-auto shrink-0 text-xs font-normal text-muted-foreground",children:_}),e[44]=_,e[45]=w):w=e[45],e[46]!==w||e[47]!==S||e[48]!==N?(g=s.jsxs("summary",{className:"flex cursor-pointer select-none items-center gap-2 px-3 py-2 text-sm font-medium text-foreground",children:[S,N,w]}),e[46]=w,e[47]=S,e[48]=N,e[49]=g):g=e[49],m="flex flex-col gap-4 border-t border-border px-3 py-3",d=E.length===0?s.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.schemaless.empty")}):E.map(T=>{const[C,B,O]=T;return s.jsx(Me,{label:C,value:B,path:[...t,O],depth:a+1,onChange:i},O)}),e[26]=a,e[27]=l,e[28]=i,e[29]=t,e[30]=r,e[31]=n,e[32]=m,e[33]=d,e[34]=u,e[35]=c,e[36]=g}else m=e[32],d=e[33],u=e[34],c=e[35],g=e[36];let j;e[50]!==m||e[51]!==d?(j=s.jsx("div",{className:m,children:d}),e[50]=m,e[51]=d,e[52]=j):j=e[52];let v;return e[53]!==u||e[54]!==c||e[55]!==g||e[56]!==j?(v=s.jsxs("details",{open:u,className:c,children:[g,j]}),e[53]=u,e[54]=c,e[55]=g,e[56]=j,e[57]=v):v=e[57],v}let b;e[58]!==l?(b=s.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:l}),e[58]=l,e[59]=b):b=e[59];let h;e[60]!==r?(h=r("sandbox.schemaless.notSet"),e[60]=r,e[61]=h):h=e[61];let p;e[62]!==h?(p=s.jsx("span",{className:"text-xs text-muted-foreground",children:h}),e[62]=h,e[63]=p):p=e[63];let y;return e[64]!==b||e[65]!==p?(y=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[b,p]}),e[64]=b,e[65]=p,e[66]=y):y=e[66],y}function Ws(o){const[e,l]=o;return[e,l,e]}function Gs(o){const[e]=o;return e!=="__resolveType"}function Hs({blockKey:o,block:e,onChange:l,onBack:n,onOpenBlock:t}){const a=Q(),[i,r]=R.useState(()=>(t?.(o),e)),[f,x]=R.useState(0),[b,h]=R.useState(null),[p,y]=R.useState(!1),m=v=>{r(v),l(o,v)},d=typeof i.__resolveType=="string"?i.__resolveType:null,u=Object.entries(i).filter(([v])=>v!=="__resolveType"),c=()=>{b!==null?(h(null),y(!1),x(v=>v+1)):h(JSON.stringify(i,null,2))},g=v=>{try{const E=JSON.parse(v??"");if(te(E)){y(!1),m(E);return}}catch{}y(!0)},j=a(b!==null?"sandbox.savedSectionEditor.closeJsonEditor":"sandbox.savedSectionEditor.editAsJson");return s.jsxs("div",{className:"flex h-full min-w-0 flex-1 flex-col",children:[s.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b px-3 py-2",children:[n&&s.jsxs(K,{variant:"ghost",size:"sm",className:"shrink-0",onClick:n,children:[s.jsx($e,{"aria-hidden":"true"}),a("sandbox.schemaless.back")]}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s.jsx("h3",{className:"truncate text-sm font-medium",title:o,children:o}),d&&s.jsx("span",{className:"truncate font-mono text-xs text-muted-foreground",title:d,children:d})]}),s.jsx(K,{variant:b!==null?"default":"ghost",size:"icon",className:"shrink-0",onClick:c,"aria-label":j,"aria-pressed":b!==null,title:j,children:b!==null?s.jsx(ye,{size:14}):s.jsx(Ae,{size:14})})]}),s.jsxs("div",{className:"relative min-h-0 flex-1",children:[s.jsx("div",{className:"h-full overflow-y-auto",children:s.jsx("form",{"aria-label":o,className:"mx-auto flex max-w-2xl flex-col gap-4 px-6 py-4",onSubmit:v=>v.preventDefault(),children:u.length===0?s.jsx("p",{className:"text-xs text-muted-foreground",children:a("sandbox.schemaless.empty")}):u.map(([v,E])=>s.jsx(Me,{label:v,value:E,path:[v],depth:0,onChange:(k,S)=>m(hs(i,k,S))},v))},f)}),b!==null&&s.jsxs("div",{className:"absolute inset-0 flex flex-col bg-background",children:[p&&s.jsx("div",{className:"shrink-0 border-b bg-destructive/10 px-3 py-1.5 text-xs text-destructive",children:a("sandbox.savedSectionEditor.invalidJsonError")}),s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(R.Suspense,{fallback:s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(je,{className:"size-5 text-muted-foreground"})}),children:s.jsx(Ms,{language:"json",height:"100%",code:b,onChange:g})})})]})]})]})}function qs(o){const e=W.c(70),{decofile:l,onChange:n,onLeaveBlock:t,onOpenBlock:a,wrapEditor:i,v8:r,copyEpochOf:f,site:x,initialKey:b,compact:h}=o,p=r===void 0?!1:r,y=x===void 0?null:x,m=b===void 0?null:b,d=h===void 0?!1:h,u=Q(),[c,g]=R.useState(m&&te(l[m])?m:null),[j,v]=R.useState("");let E;e[0]!==t||e[1]!==a||e[2]!==c||e[3]!==p?(E=A=>{A!==c&&(t?.(),!p&&A!==null&&a?.(A),g(A))},e[0]=t,e[1]=a,e[2]=c,e[3]=p,e[4]=E):E=e[4];const k=E;let S;e[5]!==f||e[6]!==c?(S=c?f?.(c)??0:0,e[5]=f,e[6]=c,e[7]=S):S=e[7];const N=S,[_,w]=R.useState(N);_!==N&&(w(N),!p&&c!==null&&a?.(c));const T=c?l[c]:void 0;let C,B,O,J,P;if(e[8]!==d||e[9]!==l||e[10]!==j||e[11]!==k||e[12]!==c||e[13]!==u){const A=j.trim().toLowerCase(),F=ps(l).map(M=>({...M,blocks:A?M.blocks.filter(U=>U.label.toLowerCase().includes(A)||U.key.toLowerCase().includes(A)||(M.resolveType??"").toLowerCase().includes(A)):M.blocks})).filter(Ys),xe=Object.keys(l).length;e[19]!==u?(P=u("sandbox.schemaless.listLabel"),e[19]=u,e[20]=P):P=e[20];const re=d?"flex-1":"w-72 shrink-0 border-r";e[21]!==re?(C=ne("flex min-h-0 flex-col",re),e[21]=re,e[22]=C):C=e[22];let se;e[23]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(ds,{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground"}),e[23]=se):se=e[23];let ae;e[24]===Symbol.for("react.memo_cache_sentinel")?(ae=M=>v(M.target.value),e[24]=ae):ae=e[24];let q;e[25]!==u?(q=u("sandbox.schemaless.searchPlaceholder"),e[25]=u,e[26]=q):q=e[26];let Y;e[27]!==u?(Y=u("sandbox.schemaless.searchPlaceholder"),e[27]=u,e[28]=Y):Y=e[28],e[29]!==j||e[30]!==q||e[31]!==Y?(B=s.jsx("div",{className:"shrink-0 border-b p-2",children:s.jsxs("div",{className:"relative",children:[se,s.jsx(ge,{type:"search",value:j,onChange:ae,placeholder:q,"aria-label":Y,className:"pl-8"})]})}),e[29]=j,e[30]=q,e[31]=Y,e[32]=B):B=e[32],O="min-h-0 flex-1 overflow-y-auto py-1",J=xe===0?s.jsx("p",{className:"px-4 py-6 text-center text-xs text-muted-foreground",children:u("sandbox.schemaless.noBlocks")}):F.length===0?s.jsx("p",{className:"px-4 py-6 text-center text-xs text-muted-foreground",children:u("sandbox.schemaless.noMatches")}):F.map(M=>s.jsxs("section",{"aria-label":M.resolveType??u("sandbox.schemaless.noType"),className:"py-1",children:[s.jsxs("h3",{className:"flex items-baseline gap-2 px-3 pt-2 pb-1 text-xs font-medium text-muted-foreground",title:M.resolveType??void 0,children:[s.jsx("span",{className:"truncate",children:M.resolveType?ke(M.resolveType):u("sandbox.schemaless.noType")}),s.jsx("span",{className:"ml-auto shrink-0 tabular-nums",children:M.blocks.length})]}),s.jsx("ul",{children:M.blocks.map(U=>s.jsx("li",{children:s.jsx("button",{type:"button",onClick:()=>k(U.key),"aria-current":U.key===c?"true":void 0,title:U.key,className:ne("block w-full truncate px-3 py-1.5 text-left text-sm hover:bg-accent focus-visible:bg-accent focus-visible:outline-none",U.key===c&&"bg-accent font-medium"),children:U.label})},U.key))})]},M.resolveType??"")),e[8]=d,e[9]=l,e[10]=j,e[11]=k,e[12]=c,e[13]=u,e[14]=C,e[15]=B,e[16]=O,e[17]=J,e[18]=P}else C=e[14],B=e[15],O=e[16],J=e[17],P=e[18];let $;e[33]!==O||e[34]!==J?($=s.jsx("div",{className:O,children:J}),e[33]=O,e[34]=J,e[35]=$):$=e[35];let D;e[36]!==C||e[37]!==B||e[38]!==$||e[39]!==P?(D=s.jsxs("nav",{"aria-label":P,className:C,children:[B,$]}),e[36]=C,e[37]=B,e[38]=$,e[39]=P,e[40]=D):D=e[40];const I=D;let L;e[41]!==T||e[42]!==d||e[43]!==f||e[44]!==n||e[45]!==a||e[46]!==k||e[47]!==c||e[48]!==u||e[49]!==p?(L=c&&te(T)?s.jsx(Hs,{blockKey:c,block:T,onOpenBlock:p?a:void 0,onChange:n,onBack:d?()=>k(null):void 0},`${c}:${f?.(c)??0}`):s.jsx("div",{className:"flex min-w-0 flex-1 items-center justify-center p-6",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:u("sandbox.schemaless.pickBlock")})}),e[41]=T,e[42]=d,e[43]=f,e[44]=n,e[45]=a,e[46]=k,e[47]=c,e[48]=u,e[49]=p,e[50]=L):L=e[50];const Z=L;let X;e[51]!==Z||e[52]!==c||e[53]!==p||e[54]!==i?(X=p&&c&&i?i(c,Z):Z,e[51]=Z,e[52]=c,e[53]=p,e[54]=i,e[55]=X):X=e[55];const ee=X;let G;e[56]!==y?(G=s.jsx(Vs,{site:y}),e[56]=y,e[57]=G):G=e[57];let V;e[58]!==T||e[59]!==d||e[60]!==ee||e[61]!==I||e[62]!==c?(V=d&&c&&te(T)?ee:I,e[58]=T,e[59]=d,e[60]=ee,e[61]=I,e[62]=c,e[63]=V):V=e[63];const ie=!d&ⅇlet H;e[64]!==V||e[65]!==ie?(H=s.jsxs("div",{className:"flex min-h-0 flex-1",children:[V,ie]}),e[64]=V,e[65]=ie,e[66]=H):H=e[66];let le;return e[67]!==G||e[68]!==H?(le=s.jsxs("div",{"data-testid":"schemaless-content",className:"flex h-full min-h-0 w-full flex-col",children:[G,H]}),e[67]=G,e[68]=H,e[69]=le):le=e[69],le}function Ys(o){return o.blocks.length>0}function Ot(o){const e=W.c(35),{orgSlug:l,virtualMcpId:n,branch:t,decofile:a,initialKey:i,compact:r}=o,f=ns(n)?.metadata;let x;e[0]!==f?(x=Ke(f),e[0]=f,e[1]=x):x=e[1];const b=x;let h;e[2]!==t||e[3]!==l||e[4]!==n?(h={orgSlug:l,virtualMcpId:n,branch:t},e[2]=t,e[3]=l,e[4]=n,e[5]=h):h=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={holdsCopy:!0},e[6]=p):p=e[6];const{save:y,flush:m,hold:d,v8:u}=Le(h,p);let c;e[7]!==t||e[8]!==l||e[9]!==n?(c=ss({orgSlug:l,virtualMcpId:n,branch:t}),e[7]=t,e[8]=l,e[9]=n,e[10]=c):c=e[10];const g=ts(c);let j;e[11]!==m?(j=()=>m(),e[11]=m,e[12]=j):j=e[12];const v=R.useEffectEvent(j);let E;e[13]!==v?(E=()=>()=>v(),e[13]=v,e[14]=E):E=e[14];let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k=[],e[15]=k):k=e[15],R.useEffect(E,k);let S;e[16]!==y?(S=(w,T)=>y(w,T),e[16]=y,e[17]=S):S=e[17];let N;e[18]!==t||e[19]!==a||e[20]!==l||e[21]!==u||e[22]!==n?(N=u?(w,T)=>s.jsx(Ye,{listing:a,scope:{orgSlug:l,virtualMcpId:n,branch:t},names:[w],children:T}):void 0,e[18]=t,e[19]=a,e[20]=l,e[21]=u,e[22]=n,e[23]=N):N=e[23];let _;return e[24]!==r||e[25]!==g||e[26]!==a||e[27]!==m||e[28]!==d||e[29]!==i||e[30]!==b||e[31]!==N||e[32]!==S||e[33]!==u?(_=s.jsx(qs,{decofile:a,site:b,onChange:S,onLeaveBlock:m,onOpenBlock:d,v8:u,wrapEditor:N,copyEpochOf:g,initialKey:i,compact:r}),e[24]=r,e[25]=g,e[26]=a,e[27]=m,e[28]=d,e[29]=i,e[30]=b,e[31]=N,e[32]=S,e[33]=u,e[34]=_):_=e[34],_}const we={resolveType:"website/pages/Page.tsx",seoResolveType:"website/sections/Seo/SeoV2.tsx"};function Lt(o){return`pages-${encodeURIComponent(o)}-${crypto.randomUUID()}`}function $t(o,e,l){if(bs(l))return{name:o,path:e,sections:[],__resolveType:"page"};const n=ys(l??void 0);if(!l||js(n))return{name:o,path:e,sections:[],seo:{__resolveType:we.seoResolveType},__resolveType:we.resolveType};const t=Ts(l);return{name:o,path:e,sections:[],...t?{seo:{__resolveType:t}}:{},__resolveType:n}}const Be="__blank__";function At(o){const e=W.c(65),{id:l,value:n,onChange:t,templates:a,disabled:i}=o,r=Q(),[f,x]=R.useState(!1);let b;if(e[0]!==a||e[1]!==n){let I;e[3]!==n?(I=L=>L.key===n,e[3]=n,e[4]=I):I=e[4],b=a.find(I),e[0]=a,e[1]=n,e[2]=b}else b=e[2];const h=b;let p;e[5]!==h?.name||e[6]!==r?(p=h?.name??r("sectionsEditor.pageTemplateSelect.blankPageDefaultLabel"),e[5]=h?.name,e[6]=r,e[7]=p):p=e[7];let y;e[8]!==p?(y=s.jsx("span",{className:"max-w-full shrink-0 truncate",children:p}),e[8]=p,e[9]=y):y=e[9];let m;e[10]!==h?(m=h?.path?s.jsx("span",{className:"truncate text-muted-foreground",children:h.path}):null,e[10]=h,e[11]=m):m=e[11];let d;e[12]!==y||e[13]!==m?(d=s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[y,m]}),e[12]=y,e[13]=m,e[14]=d):d=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(_s,{className:"shrink-0 opacity-50"}),e[15]=u):u=e[15];let c;e[16]!==i||e[17]!==l||e[18]!==f||e[19]!==d?(c=s.jsx(Ps,{asChild:!0,children:s.jsxs(K,{id:l,type:"button",variant:"outline",role:"combobox","aria-expanded":f,disabled:i,className:"w-full justify-between font-normal contain-inline-size",children:[d,u]})}),e[16]=i,e[17]=l,e[18]=f,e[19]=d,e[20]=c):c=e[20];let g;e[21]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[21]=g):g=e[21];let j;e[22]!==r?(j=r("sectionsEditor.pageTemplateSelect.searchPlaceholder"),e[22]=r,e[23]=j):j=e[23];let v;e[24]!==j?(v=s.jsx(Es,{placeholder:j,className:"h-9"}),e[24]=j,e[25]=v):v=e[25];let E;e[26]!==r?(E=r("sectionsEditor.pageTemplateSelect.noPagesFoundMessage"),e[26]=r,e[27]=E):E=e[27];let k;e[28]!==E?(k=s.jsx(Cs,{children:E}),e[28]=E,e[29]=k):k=e[29];let S;e[30]!==r?(S=r("sectionsEditor.pageTemplateSelect.blankPageLabel"),e[30]=r,e[31]=S):S=e[31];let N;e[32]!==t?(N=()=>{t(Be),x(!1)},e[32]=t,e[33]=N):N=e[33];let _;e[34]!==r?(_=r("sectionsEditor.pageTemplateSelect.blankPageLabel"),e[34]=r,e[35]=_):_=e[35];const w=n===Be?"opacity-100":"opacity-0";let T;e[36]!==w?(T=ne("ml-auto",w),e[36]=w,e[37]=T):T=e[37];let C;e[38]!==T?(C=s.jsx(ve,{className:T}),e[38]=T,e[39]=C):C=e[39];let B;e[40]!==S||e[41]!==N||e[42]!==_||e[43]!==C?(B=s.jsxs(Ce,{value:S,onSelect:N,children:[_,C]}),e[40]=S,e[41]=N,e[42]=_,e[43]=C,e[44]=B):B=e[44];let O;if(e[45]!==t||e[46]!==a||e[47]!==n){let I;e[49]!==t||e[50]!==n?(I=L=>s.jsxs(Ce,{value:`${L.name} ${L.path}`,onSelect:()=>{t(L.key),x(!1)},children:[s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx("span",{className:"truncate",children:L.name}),s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:L.path})]}),s.jsx(ve,{className:ne("ml-auto",n===L.key?"opacity-100":"opacity-0")})]},L.key),e[49]=t,e[50]=n,e[51]=I):I=e[51],O=a.map(I),e[45]=t,e[46]=a,e[47]=n,e[48]=O}else O=e[48];let J;e[52]!==B||e[53]!==O?(J=s.jsxs(ws,{children:[B,O]}),e[52]=B,e[53]=O,e[54]=J):J=e[54];let P;e[55]!==k||e[56]!==J?(P=s.jsxs(Bs,{onWheel:Qs,children:[k,J]}),e[55]=k,e[56]=J,e[57]=P):P=e[57];let $;e[58]!==v||e[59]!==P?($=s.jsx(Os,{className:"p-0",style:g,children:s.jsxs(Rs,{children:[v,P]})}),e[58]=v,e[59]=P,e[60]=$):$=e[60];let D;return e[61]!==f||e[62]!==$||e[63]!==c?(D=s.jsxs(Ls,{open:f,onOpenChange:x,children:[c,$]}),e[61]=f,e[62]=$,e[63]=c,e[64]=D):D=e[64],D}function Qs(o){const e=o.deltaMode===1?16:1;o.currentTarget.scrollTop=o.currentTarget.scrollTop+o.deltaY*e}function Zs(o){const e=W.c(13),{crumbs:l,onSelect:n,onSelectRoot:t}=o;let a;e[0]!==n||e[1]!==t?(a=t??(()=>n(0)),e[0]=n,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==a?(i={onSelect:a},e[3]=a,e[4]=i):i=e[4];let r;if(e[5]!==l||e[6]!==n){let x;e[8]!==n?(x=(b,h)=>({key:`block-${h}`,label:Qe(b),onSelect:()=>n(h)}),e[8]=n,e[9]=x):x=e[9],r=l.map(x),e[5]=l,e[6]=n,e[7]=r}else r=e[7];let f;return e[10]!==i||e[11]!==r?(f=s.jsx(We.Breadcrumbs,{after:"page",parent:i,items:r}),e[10]=i,e[11]=r,e[12]=f):f=e[12],f}const Xs={loaders:"loader",actions:"action"},Je=new Set(["workflows"]);function et(o){return Xs[o]}function Ve(o,e,l){const n=o.manifest?.blocks??{};for(const[t,a]of Object.entries(n))if(t.includes(l)&&e in a)return!0;return!1}function st(o,e,l){return/\.tsx?$/.test(e)?!0:Ve(o,e,l)}function zt(o,e){const l=new Set,n=o.manifest?.blocks??{};for(const[t,a]of Object.entries(n))if(t.includes(e))for(const i of Object.keys(a))l.add(i);return l}function tt(o,e){return/\.tsx?$/.test(o)?!1:e.has(`${o}.ts`)||e.has(`${o}.tsx`)}function nt(o,e){const l=o.manifest?.blocks??{},n=[],t=new Set;for(const[a,i]of Object.entries(l))if(a.includes(e))for(const r of Object.keys(i))t.add(r);for(const a of t){if(a.toLowerCase().includes("preview")||ze.has(a)||Je.has(Ne(a))||tt(a,t))continue;const i=gs(a,o);if(i.hidden)continue;const r=i.title&&i.title!==a?i.title:ce(a);n.push({resolveType:a,title:r})}return n.sort((a,i)=>a.title.localeCompare(i.title))}function It(o,e){return nt(o,e).length}function Ne(o){return o.startsWith("deco-sites/")?o.split("/")[1]||"site":o.startsWith("$live")||o.startsWith("deco/")?"deco":o.split("/")[0]||"other"}const lt={deco:"Deco",std:"Deco Standard",website:"Website"};function Mt(o){return lt[o]??o}function Jt(o){const e=Ne(o);let n=o.split("/").filter(Boolean).slice(o.startsWith("deco-sites/")?2:1);return(n[0]==="loaders"||n[0]==="actions")&&(n=n.slice(1)),[e,...n.slice(0,-1)]}function Vt(o,e,l){const n=[];for(const[t,a]of Object.entries(e)){if(st(o,t,l)||Ge(t)||!a||typeof a!="object"||Array.isArray(a))continue;const i=a,r=i.__resolveType;typeof r=="string"&&(ze.has(r)||Je.has(Ne(r))||Ve(o,r,l)&&n.push({key:t,resolveType:r,title:typeof i.name=="string"&&i.name?i.name:t}))}return n.sort((t,a)=>t.title.localeCompare(a.title))}function Dt(o,e){const l=o[e],n=typeof l?.__resolveType=="string"?l.__resolveType:"",{__resolveType:t,...a}=l??{},i=typeof l?.name=="string"&&l.name?l.name:e;return{resolveType:n,props:a,title:i}}const Re=3e4;function at(o,e,l,n){const t=new URL(`/deco/invoke/${e}`,o);return t.searchParams.set("__cb",n.toString(36)),t.searchParams.set("__decoFBT","0"),t.searchParams.set("__d",`run-${n.toString(36)}`),t.searchParams.set("props",btoa(encodeURIComponent(JSON.stringify(l)))),t.href}async function ot(o,{resolveType:e,props:l}){let n;try{n=await fetch(vs(o),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({__resolveType:e,...l}),signal:AbortSignal.timeout(Re)})}catch(r){throw r instanceof DOMException&&r.name==="TimeoutError"?new Error(`Run timed out after ${Re/1e3}s — the block may be slow or the preview unresponsive.`):r}const t=await n.text();let a=null,i=!1;try{a=t?JSON.parse(t):null,i=!0}catch{}if(!n.ok){const r=i&&a&&typeof a=="object"&&"error"in a&&typeof a.error=="string"?a.error:t||`Run failed (${n.status})`;throw new Error(r)}return i?a:t}function it(o){const e=W.c(2);let l;return e[0]!==o?(l={mutationFn:n=>ot(o,n)},e[0]=o,e[1]=l):l=e[1],He(l)}function Ft({orgSlug:o,virtualMcpId:e,branch:l,previewUrl:n,meta:t,decofile:a,kind:i,target:r,initialValue:f,isCreating:x,onCreate:b,onSaveReferencedBlock:h,onBack:p,backLabel:y,showRun:m=!0}){const d=$s(),u=d?.taskId??null,c=Q(),g=d?.virtualMcpId,v=ls(g===e?e:null)?.metadata?.siteSlug??null,E=ks(r.resolveType,t),k=!E&&Ns(r.resolveType,t),S=k?Ss(f):null,N=E??S,[_,w]=R.useState(f),[T,C]=R.useState([]),[B,O]=R.useState(0),[J,P]=R.useState(!1),[$,D]=R.useState(null),[I,L]=R.useState(!1),[Z,X]=R.useState(!1),[ee,G]=R.useState(!1),V=$!==null,{save:ie,flush:H,isPending:le}=Le({orgSlug:o,virtualMcpId:e,branch:l},{holdsCopy:r.mode==="saved"}),A=it({orgSlug:o,virtualMcpId:e,branch:l,threadId:u});R.useEffect(()=>()=>{H()},[]);const F=et(i),xe=r.resolveType.split("/").pop()?.replace(/\.tsx?$/,"")??r.resolveType,re={orgSlug:o,virtualMcpId:e,branch:l,threadId:u,previewUrl:n??void 0,siteSlug:v},se=z=>{w(z),r.mode==="saved"&&ie(r.blockKey,{__resolveType:r.resolveType,...z})},ae=()=>{V?(D(null),P(!1),O(z=>z+1)):D(JSON.stringify(_,null,2))},q=z=>{const oe=z??"";try{const de=JSON.parse(oe);if(de&&typeof de=="object"&&!Array.isArray(de)){P(!1),se(de);return}P(!0)}catch{P(!0)}},Y=async z=>{const oe=es(z,a);if(oe){Pe.error(oe);return}await b(z,{__resolveType:r.resolveType,..._}),L(!1)},M=()=>{X(!0),A.mutate({resolveType:r.resolveType,props:_})},U=()=>{n&&window.open(at(n,r.resolveType,_,Date.now()),"_blank","noopener")},De=[r.title,...T],Fe=z=>{C(T.slice(0,z)),O(oe=>oe+1)};return s.jsxs("div",{className:"flex h-full w-full min-w-0 flex-col",children:[s.jsx(Zs,{crumbs:De,onSelect:Fe,onSelectRoot:p}),s.jsxs("div",{className:"shrink-0 border-b px-3 py-2.5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[p&&y&&s.jsxs(K,{variant:"ghost",size:"sm",className:"-ml-1 min-w-0 shrink gap-1",onClick:p,children:[s.jsx($e,{size:14,className:"shrink-0"}),s.jsx("span",{className:"truncate",children:y})]}),s.jsx("div",{className:"flex-1"}),r.mode==="saved"&&s.jsx(Is,{isPending:le,isError:!1}),m&&s.jsxs(K,{size:"default",variant:"outline",className:"shrink-0 gap-1.5",onClick:M,disabled:A.isPending,"aria-label":c("sandbox.runnableBlockEditor.runAriaLabel",{singular:F}),children:[A.isPending?s.jsx(je,{className:"size-3.5"}):s.jsx(As,{size:14}),c("sandbox.runnableBlockEditor.run")]}),r.mode==="available"&&s.jsxs(ue,{children:[s.jsx(fe,{asChild:!0,children:s.jsx(K,{size:"icon",className:"shrink-0",disabled:x,onClick:()=>L(!0),"aria-label":c("sandbox.runnableBlockEditor.saveAsGlobalAriaLabel",{singular:F}),children:s.jsx(is,{size:14})})}),s.jsx(me,{side:"bottom",children:c("sandbox.runnableBlockEditor.saveAsGlobal",{singular:F})})]}),s.jsxs(ue,{children:[s.jsx(fe,{asChild:!0,children:s.jsx(K,{variant:V?"default":"ghost",size:"icon",className:"shrink-0",onClick:ae,"aria-label":c(V?"sandbox.runnableBlockEditor.closeJsonEditor":"sandbox.runnableBlockEditor.editAsJson"),"aria-pressed":V,children:V?s.jsx(ye,{size:14}):s.jsx(Ae,{size:14})})}),s.jsx(me,{side:"bottom",children:c(V?"sandbox.runnableBlockEditor.closeJsonEditor":"sandbox.runnableBlockEditor.editAsJson")})]})]}),s.jsx("p",{className:"mt-1.5 py-1 pl-1 text-sm leading-snug text-muted-foreground",children:r.mode==="saved"?c("sandbox.runnableBlockEditor.savedModeDescription",{singular:F}):c("sandbox.runnableBlockEditor.availableModeDescription",{typeLabel:xe,singular:F})})]}),s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[s.jsxs("div",{className:ne("relative min-h-0 flex-1",Z&&ee&&"hidden"),children:[s.jsx(zs,{className:"h-full [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:s.jsxs("div",{className:"mx-auto max-w-2xl",children:[S&&N===S&&s.jsx("p",{className:"mb-3 rounded-md bg-muted px-3 py-2 text-xs leading-snug text-muted-foreground",children:c("sandbox.runnableBlockEditor.inferredSchemaNotice",{singular:F})}),N?s.jsx(Ze,{schema:N,value:_,onChange:z=>se(z),basePath:"",breadcrumbPath:T,onBreadcrumbChange:C,meta:t,decofile:a,onSaveReferencedBlock:h,sandbox:re},B):s.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:k?c("sandbox.runnableBlockEditor.freeformPropsEmptyState",{singular:F}):c("sandbox.runnableBlockEditor.noInputEmptyState",{singular:F})})]})})}),$!==null&&s.jsxs("div",{className:"absolute inset-0 flex flex-col bg-background",children:[J&&s.jsx("div",{className:"shrink-0 border-b bg-destructive/10 px-3 py-1.5 text-xs text-destructive",children:c("sandbox.runnableBlockEditor.invalidJsonError")}),s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(Ie,{language:"json",height:"100%",code:$,onChange:q,onSave:z=>{q(z),H()}})})]})]}),Z&&s.jsx(rt,{singular:F,result:{isPending:A.isPending,error:A.error,data:A.data,hasRun:A.status!=="idle"},expanded:ee,onToggleExpand:()=>G(z=>!z),onOpenInNewTab:n?U:void 0,onClose:()=>{X(!1),G(!1)}})]}),s.jsx(Xe,{open:I,onOpenChange:L,defaultBlockId:"",isPending:x,onSubmit:Y})]})}function rt(o){const e=W.c(54),{singular:l,result:n,expanded:t,onToggleExpand:a,onOpenInNewTab:i,onClose:r}=o,f=Q();let x;e[0]!==n.data?(x=typeof n.data=="string"?n.data:JSON.stringify(n.data??null,null,2),e[0]=n.data,e[1]=x):x=e[1];const b=x,h=t?"flex-1":"h-[45%] shrink-0";let p;e[2]!==h?(p=ne("flex min-h-0 flex-col border-t",h),e[2]=h,e[3]=p):p=e[3];let y;e[4]!==f?(y=f("sandbox.runnableBlockEditor.resultPanelTitle"),e[4]=f,e[5]=y):y=e[5];let m;e[6]!==y?(m=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:y}),e[6]=y,e[7]=m):m=e[7];let d;e[8]!==i||e[9]!==l||e[10]!==f?(d=i&&s.jsxs(ue,{children:[s.jsx(fe,{asChild:!0,children:s.jsx(K,{variant:"ghost",size:"icon-sm",onClick:i,"aria-label":f("sandbox.runnableBlockEditor.openResultInNewTabAriaLabel"),children:s.jsx(Oe,{size:14})})}),s.jsx(me,{side:"bottom",children:f("sandbox.runnableBlockEditor.openInNewTabTooltip",{singular:l})})]}),e[8]=i,e[9]=l,e[10]=f,e[11]=d):d=e[11];let u;e[12]!==t||e[13]!==f?(u=f(t?"sandbox.runnableBlockEditor.collapseResult":"sandbox.runnableBlockEditor.expandResult"),e[12]=t,e[13]=f,e[14]=u):u=e[14];let c;e[15]!==t?(c=t?s.jsx(rs,{size:14}):s.jsx(cs,{size:14}),e[15]=t,e[16]=c):c=e[16];let g;e[17]!==t||e[18]!==a||e[19]!==u||e[20]!==c?(g=s.jsx(fe,{asChild:!0,children:s.jsx(K,{variant:"ghost",size:"icon-sm",onClick:a,"aria-label":u,"aria-pressed":t,children:c})}),e[17]=t,e[18]=a,e[19]=u,e[20]=c,e[21]=g):g=e[21];let j;e[22]!==t||e[23]!==f?(j=f(t?"sandbox.runnableBlockEditor.collapse":"sandbox.runnableBlockEditor.expand"),e[22]=t,e[23]=f,e[24]=j):j=e[24];let v;e[25]!==j?(v=s.jsx(me,{side:"bottom",children:j}),e[25]=j,e[26]=v):v=e[26];let E;e[27]!==v||e[28]!==g?(E=s.jsxs(ue,{children:[g,v]}),e[27]=v,e[28]=g,e[29]=E):E=e[29];let k;e[30]!==f?(k=f("sandbox.runnableBlockEditor.closeResult"),e[30]=f,e[31]=k):k=e[31];let S;e[32]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(ye,{size:14}),e[32]=S):S=e[32];let N;e[33]!==r||e[34]!==k?(N=s.jsx(K,{variant:"ghost",size:"icon-sm",onClick:r,"aria-label":k,children:S}),e[33]=r,e[34]=k,e[35]=N):N=e[35];let _;e[36]!==E||e[37]!==N||e[38]!==d?(_=s.jsxs("div",{className:"flex items-center gap-0.5",children:[d,E,N]}),e[36]=E,e[37]=N,e[38]=d,e[39]=_):_=e[39];let w;e[40]!==_||e[41]!==m?(w=s.jsxs("div",{className:"flex h-9 shrink-0 items-center justify-between border-b px-3",children:[m,_]}),e[40]=_,e[41]=m,e[42]=w):w=e[42];let T;e[43]!==n.error||e[44]!==n.hasRun||e[45]!==n.isPending||e[46]!==b||e[47]!==l||e[48]!==f?(T=s.jsx("div",{className:"min-h-0 flex-1",children:n.isPending?s.jsxs("div",{className:"flex h-full items-center justify-center gap-2 text-xs text-muted-foreground",children:[s.jsx(je,{className:"size-4"}),f("sandbox.runnableBlockEditor.running",{singular:l})]}):n.error?s.jsxs("div",{className:"h-full overflow-auto px-4 py-3",children:[s.jsx("p",{className:"text-xs font-medium text-destructive",children:f("sandbox.runnableBlockEditor.failedToRun",{singular:l})}),s.jsx("pre",{className:"mt-1 whitespace-pre-wrap break-words text-xs text-destructive/90",children:n.error.message})]}):n.hasRun?s.jsx(Ie,{language:"json",height:"100%",code:b,readOnly:!0}):s.jsx("div",{className:"flex h-full items-center justify-center text-xs text-muted-foreground",children:f("sandbox.runnableBlockEditor.pressRunToInvoke",{singular:l})})}),e[43]=n.error,e[44]=n.hasRun,e[45]=n.isPending,e[46]=b,e[47]=l,e[48]=f,e[49]=T):T=e[49];let C;return e[50]!==w||e[51]!==T||e[52]!==p?(C=s.jsxs("div",{className:p,children:[w,T]}),e[50]=w,e[51]=T,e[52]=p,e[53]=C):C=e[53],C}function be(o,e,l){const n=l[o];return typeof n?.name=="string"&&n.name||o.replace(/[-_]/g," ").replace(/\b\w/g,t=>t.toUpperCase())||`Section ${e+1}`}function Ut(o,e,l=!1){return o.map((n,t)=>{const a=n.__resolveType??"",i=Se(a);if(!i&&a!==""&&pe(a)&&a in e)return{index:t,resolveType:a,label:be(a,t,e),isLazy:!1,isSavedBlock:!0};const r=i?n.section:void 0,f=i?r?.__resolveType??"":a;if(Te(f,l)){const b=i?r:n,h=Array.isArray(b?.variants)?b.variants:[];if(h.length===1&&qe(h[0]?.rule?.__resolveType,l)){const m=he(h[0],l)??{};let d=m.__resolveType??"";const u=Se(d);let c=m;if(u){const g=m.section;d=g?.__resolveType??d,g&&(c=g)}if(Te(d,l)){const g=Array.isArray(c.variants)?c.variants:[],j=he(g[0],l)?.__resolveType,v=j?ce(j):"Section";return{index:t,resolveType:a,label:`Variants of ${v}`,variantOf:v,isHidden:!0,isLazy:u}}return d!==""&&pe(d)&&d in e?{index:t,resolveType:a,label:be(d,t,e),isHidden:!0,isLazy:u,isSavedBlock:!0}:{index:t,resolveType:a,label:ce(d)||`Section ${t+1}`,isHidden:!0,isLazy:u}}const p=he(h[0],l)?.__resolveType,y=p?ce(p):"Section";return{index:t,resolveType:a,label:`Variants of ${y}`,variantOf:y,isMultivariate:!0,isLazy:i}}const x=i?n.section?.__resolveType??a:a;return i&&x!==""&&pe(x)&&x in e?{index:t,resolveType:a,label:be(x,t,e),isLazy:!0,isSavedBlock:!0}:{index:t,resolveType:a,label:ce(x)||`Section ${t+1}`,isLazy:i}})}export{Be as B,At as P,Ft as R,Ot as S,nt as a,Jt as b,$t as c,Mt as d,et as e,Zs as f,Lt as g,It as h,Vt as l,zt as m,Ut as p,Dt as r};
|
|
4
|
+
`).length)),onChange:f=>t(f.target.value)}):s.jsx(ge,{id:l,value:n,onChange:f=>t(f.target.value)}),e[2]=l,e[3]=i,e[4]=t,e[5]=n,e[6]=r):r=e[6],r}function Ks(o){const e=W.c(15),{id:l,value:n,onChange:t}=o,a=Q(),[i,r]=R.useState(String(n));let f;e[0]!==i?(f=Ee(i),e[0]=i,e[1]=f):f=e[1];const x=f===null;let b;e[2]!==t?(b=m=>{r(m.target.value);const d=Ee(m.target.value);d!==null&&t(d)},e[2]=t,e[3]=b):b=e[3];let h;e[4]!==l||e[5]!==x||e[6]!==b||e[7]!==i?(h=s.jsx(ge,{id:l,inputMode:"decimal",value:i,"aria-invalid":x,onChange:b}),e[4]=l,e[5]=x,e[6]=b,e[7]=i,e[8]=h):h=e[8];let p;e[9]!==x||e[10]!==a?(p=x&&s.jsx("p",{className:"text-xs text-destructive",children:a("sandbox.schemaless.notANumber")}),e[9]=x,e[10]=a,e[11]=p):p=e[11];let y;return e[12]!==h||e[13]!==p?(y=s.jsxs("div",{className:"flex flex-col gap-1",children:[h,p]}),e[12]=h,e[13]=p,e[14]=y):y=e[14],y}function Me(o){const e=W.c(67),{label:l,value:n,path:t,depth:a,onChange:i}=o,r=Q();let f;e[0]!==t?(f=Fs(t),e[0]=t,e[1]=f):f=e[1];const x=f;if(typeof n=="boolean"){let m;e[2]!==x||e[3]!==l?(m=s.jsx(_e,{htmlFor:x,className:"min-w-0 truncate",children:l}),e[2]=x,e[3]=l,e[4]=m):m=e[4];let d;e[5]!==i||e[6]!==t?(d=g=>i(t,g),e[5]=i,e[6]=t,e[7]=d):d=e[7];let u;e[8]!==x||e[9]!==d||e[10]!==n?(u=s.jsx(us,{id:x,checked:n,onCheckedChange:d}),e[8]=x,e[9]=d,e[10]=n,e[11]=u):u=e[11];let c;return e[12]!==m||e[13]!==u?(c=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[m,u]}),e[12]=m,e[13]=u,e[14]=c):c=e[14],c}if(typeof n=="string"||typeof n=="number"){let m;e[15]!==x||e[16]!==l?(m=s.jsx(_e,{htmlFor:x,className:"min-w-0 truncate",children:l}),e[15]=x,e[16]=l,e[17]=m):m=e[17];let d;e[18]!==x||e[19]!==i||e[20]!==t||e[21]!==n?(d=typeof n=="string"?s.jsx(Us,{id:x,value:n,onChange:c=>i(t,c)}):s.jsx(Ks,{id:x,value:n,onChange:c=>i(t,c)}),e[18]=x,e[19]=i,e[20]=t,e[21]=n,e[22]=d):d=e[22];let u;return e[23]!==m||e[24]!==d?(u=s.jsxs("div",{className:"flex flex-col gap-1.5",children:[m,d]}),e[23]=m,e[24]=d,e[25]=u):u=e[25],u}if(Array.isArray(n)||te(n)){let m,d,u,c,g;if(e[26]!==a||e[27]!==l||e[28]!==i||e[29]!==t||e[30]!==r||e[31]!==n){const E=Array.isArray(n)?n.map((T,w)=>[Ds(T,w,r),T,w]):Object.entries(n).filter(Gs).map(Ws),k=te(n)&&typeof n.__resolveType=="string"?n.__resolveType:null;u=a===0,c="group rounded-md border border-border";let S;e[37]!==l?(S=s.jsx("span",{className:"min-w-0 truncate",children:l}),e[37]=l,e[38]=S):S=e[38];let N;e[39]!==k?(N=k&&s.jsx("span",{className:"min-w-0 truncate font-mono text-xs font-normal text-muted-foreground",title:k,children:ke(k)}),e[39]=k,e[40]=N):N=e[40];let _;e[41]!==r||e[42]!==n?(_=Array.isArray(n)?r("sandbox.schemaless.itemCount",{count:n.length}):null,e[41]=r,e[42]=n,e[43]=_):_=e[43];let C;e[44]!==_?(C=s.jsx("span",{className:"ml-auto shrink-0 text-xs font-normal text-muted-foreground",children:_}),e[44]=_,e[45]=C):C=e[45],e[46]!==C||e[47]!==S||e[48]!==N?(g=s.jsxs("summary",{className:"flex cursor-pointer select-none items-center gap-2 px-3 py-2 text-sm font-medium text-foreground",children:[S,N,C]}),e[46]=C,e[47]=S,e[48]=N,e[49]=g):g=e[49],m="flex flex-col gap-4 border-t border-border px-3 py-3",d=E.length===0?s.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.schemaless.empty")}):E.map(T=>{const[w,B,O]=T;return s.jsx(Me,{label:w,value:B,path:[...t,O],depth:a+1,onChange:i},O)}),e[26]=a,e[27]=l,e[28]=i,e[29]=t,e[30]=r,e[31]=n,e[32]=m,e[33]=d,e[34]=u,e[35]=c,e[36]=g}else m=e[32],d=e[33],u=e[34],c=e[35],g=e[36];let j;e[50]!==m||e[51]!==d?(j=s.jsx("div",{className:m,children:d}),e[50]=m,e[51]=d,e[52]=j):j=e[52];let v;return e[53]!==u||e[54]!==c||e[55]!==g||e[56]!==j?(v=s.jsxs("details",{open:u,className:c,children:[g,j]}),e[53]=u,e[54]=c,e[55]=g,e[56]=j,e[57]=v):v=e[57],v}let b;e[58]!==l?(b=s.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:l}),e[58]=l,e[59]=b):b=e[59];let h;e[60]!==r?(h=r("sandbox.schemaless.notSet"),e[60]=r,e[61]=h):h=e[61];let p;e[62]!==h?(p=s.jsx("span",{className:"text-xs text-muted-foreground",children:h}),e[62]=h,e[63]=p):p=e[63];let y;return e[64]!==b||e[65]!==p?(y=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[b,p]}),e[64]=b,e[65]=p,e[66]=y):y=e[66],y}function Ws(o){const[e,l]=o;return[e,l,e]}function Gs(o){const[e]=o;return e!=="__resolveType"}function Hs({blockKey:o,block:e,onChange:l,onBack:n,onOpenBlock:t}){const a=Q(),[i,r]=R.useState(()=>(t?.(o),e)),[f,x]=R.useState(0),[b,h]=R.useState(null),[p,y]=R.useState(!1),m=v=>{r(v),l(o,v)},d=typeof i.__resolveType=="string"?i.__resolveType:null,u=Object.entries(i).filter(([v])=>v!=="__resolveType"),c=()=>{b!==null?(h(null),y(!1),x(v=>v+1)):h(JSON.stringify(i,null,2))},g=v=>{try{const E=JSON.parse(v??"");if(te(E)){y(!1),m(E);return}}catch{}y(!0)},j=a(b!==null?"sandbox.savedSectionEditor.closeJsonEditor":"sandbox.savedSectionEditor.editAsJson");return s.jsxs("div",{className:"flex h-full min-w-0 flex-1 flex-col",children:[s.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b px-3 py-2",children:[n&&s.jsxs(K,{variant:"ghost",size:"sm",className:"shrink-0",onClick:n,children:[s.jsx($e,{"aria-hidden":"true"}),a("sandbox.schemaless.back")]}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s.jsx("h3",{className:"truncate text-sm font-medium",title:o,children:o}),d&&s.jsx("span",{className:"truncate font-mono text-xs text-muted-foreground",title:d,children:d})]}),s.jsx(K,{variant:b!==null?"default":"ghost",size:"icon",className:"shrink-0",onClick:c,"aria-label":j,"aria-pressed":b!==null,title:j,children:b!==null?s.jsx(ye,{size:14}):s.jsx(Ae,{size:14})})]}),s.jsxs("div",{className:"relative min-h-0 flex-1",children:[s.jsx("div",{className:"h-full overflow-y-auto",children:s.jsx("form",{"aria-label":o,className:"mx-auto flex max-w-2xl flex-col gap-4 px-6 py-4",onSubmit:v=>v.preventDefault(),children:u.length===0?s.jsx("p",{className:"text-xs text-muted-foreground",children:a("sandbox.schemaless.empty")}):u.map(([v,E])=>s.jsx(Me,{label:v,value:E,path:[v],depth:0,onChange:(k,S)=>m(hs(i,k,S))},v))},f)}),b!==null&&s.jsxs("div",{className:"absolute inset-0 flex flex-col bg-background",children:[p&&s.jsx("div",{className:"shrink-0 border-b bg-destructive/10 px-3 py-1.5 text-xs text-destructive",children:a("sandbox.savedSectionEditor.invalidJsonError")}),s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(R.Suspense,{fallback:s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(je,{className:"size-5 text-muted-foreground"})}),children:s.jsx(Ms,{language:"json",height:"100%",code:b,onChange:g})})})]})]})]})}function qs(o){const e=W.c(70),{decofile:l,onChange:n,onLeaveBlock:t,onOpenBlock:a,wrapEditor:i,v8:r,copyEpochOf:f,site:x,initialKey:b,compact:h}=o,p=r===void 0?!1:r,y=x===void 0?null:x,m=b===void 0?null:b,d=h===void 0?!1:h,u=Q(),[c,g]=R.useState(m&&te(l[m])?m:null),[j,v]=R.useState("");let E;e[0]!==t||e[1]!==a||e[2]!==c||e[3]!==p?(E=A=>{A!==c&&(t?.(),!p&&A!==null&&a?.(A),g(A))},e[0]=t,e[1]=a,e[2]=c,e[3]=p,e[4]=E):E=e[4];const k=E;let S;e[5]!==f||e[6]!==c?(S=c?f?.(c)??0:0,e[5]=f,e[6]=c,e[7]=S):S=e[7];const N=S,[_,C]=R.useState(N);_!==N&&(C(N),!p&&c!==null&&a?.(c));const T=c?l[c]:void 0;let w,B,O,J,P;if(e[8]!==d||e[9]!==l||e[10]!==j||e[11]!==k||e[12]!==c||e[13]!==u){const A=j.trim().toLowerCase(),F=ps(l).map(M=>({...M,blocks:A?M.blocks.filter(U=>U.label.toLowerCase().includes(A)||U.key.toLowerCase().includes(A)||(M.resolveType??"").toLowerCase().includes(A)):M.blocks})).filter(Ys),xe=Object.keys(l).length;e[19]!==u?(P=u("sandbox.schemaless.listLabel"),e[19]=u,e[20]=P):P=e[20];const re=d?"flex-1":"w-72 shrink-0 border-r";e[21]!==re?(w=ne("flex min-h-0 flex-col",re),e[21]=re,e[22]=w):w=e[22];let se;e[23]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(ds,{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground"}),e[23]=se):se=e[23];let ae;e[24]===Symbol.for("react.memo_cache_sentinel")?(ae=M=>v(M.target.value),e[24]=ae):ae=e[24];let q;e[25]!==u?(q=u("sandbox.schemaless.searchPlaceholder"),e[25]=u,e[26]=q):q=e[26];let Y;e[27]!==u?(Y=u("sandbox.schemaless.searchPlaceholder"),e[27]=u,e[28]=Y):Y=e[28],e[29]!==j||e[30]!==q||e[31]!==Y?(B=s.jsx("div",{className:"shrink-0 border-b p-2",children:s.jsxs("div",{className:"relative",children:[se,s.jsx(ge,{type:"search",value:j,onChange:ae,placeholder:q,"aria-label":Y,className:"pl-8"})]})}),e[29]=j,e[30]=q,e[31]=Y,e[32]=B):B=e[32],O="min-h-0 flex-1 overflow-y-auto py-1",J=xe===0?s.jsx("p",{className:"px-4 py-6 text-center text-xs text-muted-foreground",children:u("sandbox.schemaless.noBlocks")}):F.length===0?s.jsx("p",{className:"px-4 py-6 text-center text-xs text-muted-foreground",children:u("sandbox.schemaless.noMatches")}):F.map(M=>s.jsxs("section",{"aria-label":M.resolveType??u("sandbox.schemaless.noType"),className:"py-1",children:[s.jsxs("h3",{className:"flex items-baseline gap-2 px-3 pt-2 pb-1 text-xs font-medium text-muted-foreground",title:M.resolveType??void 0,children:[s.jsx("span",{className:"truncate",children:M.resolveType?ke(M.resolveType):u("sandbox.schemaless.noType")}),s.jsx("span",{className:"ml-auto shrink-0 tabular-nums",children:M.blocks.length})]}),s.jsx("ul",{children:M.blocks.map(U=>s.jsx("li",{children:s.jsx("button",{type:"button",onClick:()=>k(U.key),"aria-current":U.key===c?"true":void 0,title:U.key,className:ne("block w-full truncate px-3 py-1.5 text-left text-sm hover:bg-accent focus-visible:bg-accent focus-visible:outline-none",U.key===c&&"bg-accent font-medium"),children:U.label})},U.key))})]},M.resolveType??"")),e[8]=d,e[9]=l,e[10]=j,e[11]=k,e[12]=c,e[13]=u,e[14]=w,e[15]=B,e[16]=O,e[17]=J,e[18]=P}else w=e[14],B=e[15],O=e[16],J=e[17],P=e[18];let $;e[33]!==O||e[34]!==J?($=s.jsx("div",{className:O,children:J}),e[33]=O,e[34]=J,e[35]=$):$=e[35];let D;e[36]!==w||e[37]!==B||e[38]!==$||e[39]!==P?(D=s.jsxs("nav",{"aria-label":P,className:w,children:[B,$]}),e[36]=w,e[37]=B,e[38]=$,e[39]=P,e[40]=D):D=e[40];const I=D;let L;e[41]!==T||e[42]!==d||e[43]!==f||e[44]!==n||e[45]!==a||e[46]!==k||e[47]!==c||e[48]!==u||e[49]!==p?(L=c&&te(T)?s.jsx(Hs,{blockKey:c,block:T,onOpenBlock:p?a:void 0,onChange:n,onBack:d?()=>k(null):void 0},`${c}:${f?.(c)??0}`):s.jsx("div",{className:"flex min-w-0 flex-1 items-center justify-center p-6",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:u("sandbox.schemaless.pickBlock")})}),e[41]=T,e[42]=d,e[43]=f,e[44]=n,e[45]=a,e[46]=k,e[47]=c,e[48]=u,e[49]=p,e[50]=L):L=e[50];const Z=L;let X;e[51]!==Z||e[52]!==c||e[53]!==p||e[54]!==i?(X=p&&c&&i?i(c,Z):Z,e[51]=Z,e[52]=c,e[53]=p,e[54]=i,e[55]=X):X=e[55];const ee=X;let G;e[56]!==y?(G=s.jsx(Vs,{site:y}),e[56]=y,e[57]=G):G=e[57];let V;e[58]!==T||e[59]!==d||e[60]!==ee||e[61]!==I||e[62]!==c?(V=d&&c&&te(T)?ee:I,e[58]=T,e[59]=d,e[60]=ee,e[61]=I,e[62]=c,e[63]=V):V=e[63];const ie=!d&ⅇlet H;e[64]!==V||e[65]!==ie?(H=s.jsxs("div",{className:"flex min-h-0 flex-1",children:[V,ie]}),e[64]=V,e[65]=ie,e[66]=H):H=e[66];let le;return e[67]!==G||e[68]!==H?(le=s.jsxs("div",{"data-testid":"schemaless-content",className:"flex h-full min-h-0 w-full flex-col",children:[G,H]}),e[67]=G,e[68]=H,e[69]=le):le=e[69],le}function Ys(o){return o.blocks.length>0}function Ot(o){const e=W.c(35),{orgSlug:l,virtualMcpId:n,branch:t,decofile:a,initialKey:i,compact:r}=o,f=ns(n)?.metadata;let x;e[0]!==f?(x=Ke(f),e[0]=f,e[1]=x):x=e[1];const b=x;let h;e[2]!==t||e[3]!==l||e[4]!==n?(h={orgSlug:l,virtualMcpId:n,branch:t},e[2]=t,e[3]=l,e[4]=n,e[5]=h):h=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={holdsCopy:!0},e[6]=p):p=e[6];const{save:y,flush:m,hold:d,v8:u}=Le(h,p);let c;e[7]!==t||e[8]!==l||e[9]!==n?(c=ss({orgSlug:l,virtualMcpId:n,branch:t}),e[7]=t,e[8]=l,e[9]=n,e[10]=c):c=e[10];const g=ts(c);let j;e[11]!==m?(j=()=>m(),e[11]=m,e[12]=j):j=e[12];const v=R.useEffectEvent(j);let E;e[13]!==v?(E=()=>()=>v(),e[13]=v,e[14]=E):E=e[14];let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k=[],e[15]=k):k=e[15],R.useEffect(E,k);let S;e[16]!==y?(S=(C,T)=>y(C,T),e[16]=y,e[17]=S):S=e[17];let N;e[18]!==t||e[19]!==a||e[20]!==l||e[21]!==u||e[22]!==n?(N=u?(C,T)=>s.jsx(Ye,{listing:a,scope:{orgSlug:l,virtualMcpId:n,branch:t},names:[C],children:T}):void 0,e[18]=t,e[19]=a,e[20]=l,e[21]=u,e[22]=n,e[23]=N):N=e[23];let _;return e[24]!==r||e[25]!==g||e[26]!==a||e[27]!==m||e[28]!==d||e[29]!==i||e[30]!==b||e[31]!==N||e[32]!==S||e[33]!==u?(_=s.jsx(qs,{decofile:a,site:b,onChange:S,onLeaveBlock:m,onOpenBlock:d,v8:u,wrapEditor:N,copyEpochOf:g,initialKey:i,compact:r}),e[24]=r,e[25]=g,e[26]=a,e[27]=m,e[28]=d,e[29]=i,e[30]=b,e[31]=N,e[32]=S,e[33]=u,e[34]=_):_=e[34],_}const Ce={resolveType:"website/pages/Page.tsx",seoResolveType:"website/sections/Seo/SeoV2.tsx"};function Lt(o){return`pages-${encodeURIComponent(o)}-${crypto.randomUUID()}`}function $t(o,e,l){if(bs(l))return{name:o,path:e,sections:[],__resolveType:"page"};const n=ys(l??void 0);if(!l||js(n))return{name:o,path:e,sections:[],seo:{__resolveType:Ce.seoResolveType},__resolveType:Ce.resolveType};const t=Ts(l);return{name:o,path:e,sections:[],...t?{seo:{__resolveType:t}}:{},__resolveType:n}}const Be="__blank__";function At(o){const e=W.c(65),{id:l,value:n,onChange:t,templates:a,disabled:i}=o,r=Q(),[f,x]=R.useState(!1);let b;if(e[0]!==a||e[1]!==n){let I;e[3]!==n?(I=L=>L.key===n,e[3]=n,e[4]=I):I=e[4],b=a.find(I),e[0]=a,e[1]=n,e[2]=b}else b=e[2];const h=b;let p;e[5]!==h?.name||e[6]!==r?(p=h?.name??r("sectionsEditor.pageTemplateSelect.blankPageDefaultLabel"),e[5]=h?.name,e[6]=r,e[7]=p):p=e[7];let y;e[8]!==p?(y=s.jsx("span",{className:"max-w-full shrink-0 truncate",children:p}),e[8]=p,e[9]=y):y=e[9];let m;e[10]!==h?(m=h?.path?s.jsx("span",{className:"truncate text-muted-foreground",children:h.path}):null,e[10]=h,e[11]=m):m=e[11];let d;e[12]!==y||e[13]!==m?(d=s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[y,m]}),e[12]=y,e[13]=m,e[14]=d):d=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(_s,{className:"shrink-0 opacity-50"}),e[15]=u):u=e[15];let c;e[16]!==i||e[17]!==l||e[18]!==f||e[19]!==d?(c=s.jsx(Ps,{asChild:!0,children:s.jsxs(K,{id:l,type:"button",variant:"outline",role:"combobox","aria-expanded":f,disabled:i,className:"w-full justify-between font-normal contain-inline-size",children:[d,u]})}),e[16]=i,e[17]=l,e[18]=f,e[19]=d,e[20]=c):c=e[20];let g;e[21]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[21]=g):g=e[21];let j;e[22]!==r?(j=r("sectionsEditor.pageTemplateSelect.searchPlaceholder"),e[22]=r,e[23]=j):j=e[23];let v;e[24]!==j?(v=s.jsx(Es,{placeholder:j,className:"h-9"}),e[24]=j,e[25]=v):v=e[25];let E;e[26]!==r?(E=r("sectionsEditor.pageTemplateSelect.noPagesFoundMessage"),e[26]=r,e[27]=E):E=e[27];let k;e[28]!==E?(k=s.jsx(ws,{children:E}),e[28]=E,e[29]=k):k=e[29];let S;e[30]!==r?(S=r("sectionsEditor.pageTemplateSelect.blankPageLabel"),e[30]=r,e[31]=S):S=e[31];let N;e[32]!==t?(N=()=>{t(Be),x(!1)},e[32]=t,e[33]=N):N=e[33];let _;e[34]!==r?(_=r("sectionsEditor.pageTemplateSelect.blankPageLabel"),e[34]=r,e[35]=_):_=e[35];const C=n===Be?"opacity-100":"opacity-0";let T;e[36]!==C?(T=ne("ml-auto",C),e[36]=C,e[37]=T):T=e[37];let w;e[38]!==T?(w=s.jsx(ve,{className:T}),e[38]=T,e[39]=w):w=e[39];let B;e[40]!==S||e[41]!==N||e[42]!==_||e[43]!==w?(B=s.jsxs(we,{value:S,onSelect:N,children:[_,w]}),e[40]=S,e[41]=N,e[42]=_,e[43]=w,e[44]=B):B=e[44];let O;if(e[45]!==t||e[46]!==a||e[47]!==n){let I;e[49]!==t||e[50]!==n?(I=L=>s.jsxs(we,{value:`${L.name} ${L.path}`,onSelect:()=>{t(L.key),x(!1)},children:[s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx("span",{className:"truncate",children:L.name}),s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:L.path})]}),s.jsx(ve,{className:ne("ml-auto",n===L.key?"opacity-100":"opacity-0")})]},L.key),e[49]=t,e[50]=n,e[51]=I):I=e[51],O=a.map(I),e[45]=t,e[46]=a,e[47]=n,e[48]=O}else O=e[48];let J;e[52]!==B||e[53]!==O?(J=s.jsxs(Cs,{children:[B,O]}),e[52]=B,e[53]=O,e[54]=J):J=e[54];let P;e[55]!==k||e[56]!==J?(P=s.jsxs(Bs,{onWheel:Qs,children:[k,J]}),e[55]=k,e[56]=J,e[57]=P):P=e[57];let $;e[58]!==v||e[59]!==P?($=s.jsx(Os,{className:"p-0",style:g,children:s.jsxs(Rs,{children:[v,P]})}),e[58]=v,e[59]=P,e[60]=$):$=e[60];let D;return e[61]!==f||e[62]!==$||e[63]!==c?(D=s.jsxs(Ls,{open:f,onOpenChange:x,children:[c,$]}),e[61]=f,e[62]=$,e[63]=c,e[64]=D):D=e[64],D}function Qs(o){const e=o.deltaMode===1?16:1;o.currentTarget.scrollTop=o.currentTarget.scrollTop+o.deltaY*e}function Zs(o){const e=W.c(13),{crumbs:l,onSelect:n,onSelectRoot:t}=o;let a;e[0]!==n||e[1]!==t?(a=t??(()=>n(0)),e[0]=n,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==a?(i={onSelect:a},e[3]=a,e[4]=i):i=e[4];let r;if(e[5]!==l||e[6]!==n){let x;e[8]!==n?(x=(b,h)=>({key:`block-${h}`,label:Qe(b),onSelect:()=>n(h)}),e[8]=n,e[9]=x):x=e[9],r=l.map(x),e[5]=l,e[6]=n,e[7]=r}else r=e[7];let f;return e[10]!==i||e[11]!==r?(f=s.jsx(We.Breadcrumbs,{after:"page",parent:i,items:r}),e[10]=i,e[11]=r,e[12]=f):f=e[12],f}const Xs={loaders:"loader",actions:"action"},Je=new Set(["workflows"]);function et(o){return Xs[o]}function Ve(o,e,l){const n=o.manifest?.blocks??{};for(const[t,a]of Object.entries(n))if(t.includes(l)&&e in a)return!0;return!1}function st(o,e,l){return/\.tsx?$/.test(e)?!0:Ve(o,e,l)}function zt(o,e){const l=new Set,n=o.manifest?.blocks??{};for(const[t,a]of Object.entries(n))if(t.includes(e))for(const i of Object.keys(a))l.add(i);return l}function tt(o,e){return/\.tsx?$/.test(o)?!1:e.has(`${o}.ts`)||e.has(`${o}.tsx`)}function nt(o,e){const l=o.manifest?.blocks??{},n=[],t=new Set;for(const[a,i]of Object.entries(l))if(a.includes(e))for(const r of Object.keys(i))t.add(r);for(const a of t){if(a.toLowerCase().includes("preview")||ze.has(a)||Je.has(Ne(a))||tt(a,t))continue;const i=gs(a,o);if(i.hidden)continue;const r=i.title&&i.title!==a?i.title:ce(a);n.push({resolveType:a,title:r})}return n.sort((a,i)=>a.title.localeCompare(i.title))}function It(o,e){return nt(o,e).length}function Ne(o){return o.startsWith("deco-sites/")?o.split("/")[1]||"site":o.startsWith("$live")||o.startsWith("deco/")?"deco":o.split("/")[0]||"other"}const lt={deco:"Deco",std:"Deco Standard",website:"Website"};function Mt(o){return lt[o]??o}function Jt(o){const e=Ne(o);let n=o.split("/").filter(Boolean).slice(o.startsWith("deco-sites/")?2:1);return(n[0]==="loaders"||n[0]==="actions")&&(n=n.slice(1)),[e,...n.slice(0,-1)]}function Vt(o,e,l){const n=[];for(const[t,a]of Object.entries(e)){if(st(o,t,l)||Ge(t)||!a||typeof a!="object"||Array.isArray(a))continue;const i=a,r=i.__resolveType;typeof r=="string"&&(ze.has(r)||Je.has(Ne(r))||Ve(o,r,l)&&n.push({key:t,resolveType:r,title:typeof i.name=="string"&&i.name?i.name:t}))}return n.sort((t,a)=>t.title.localeCompare(a.title))}function Dt(o,e){const l=o[e],n=typeof l?.__resolveType=="string"?l.__resolveType:"",{__resolveType:t,...a}=l??{},i=typeof l?.name=="string"&&l.name?l.name:e;return{resolveType:n,props:a,title:i}}const Re=3e4;function at(o,e,l,n){const t=new URL(`/deco/invoke/${e}`,o);return t.searchParams.set("__cb",n.toString(36)),t.searchParams.set("__decoFBT","0"),t.searchParams.set("__d",`run-${n.toString(36)}`),t.searchParams.set("props",btoa(encodeURIComponent(JSON.stringify(l)))),t.href}async function ot(o,{resolveType:e,props:l}){let n;try{n=await fetch(vs(o),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({__resolveType:e,...l}),signal:AbortSignal.timeout(Re)})}catch(r){throw r instanceof DOMException&&r.name==="TimeoutError"?new Error(`Run timed out after ${Re/1e3}s — the block may be slow or the preview unresponsive.`):r}const t=await n.text();let a=null,i=!1;try{a=t?JSON.parse(t):null,i=!0}catch{}if(!n.ok){const r=i&&a&&typeof a=="object"&&"error"in a&&typeof a.error=="string"?a.error:t||`Run failed (${n.status})`;throw new Error(r)}return i?a:t}function it(o){const e=W.c(2);let l;return e[0]!==o?(l={mutationFn:n=>ot(o,n)},e[0]=o,e[1]=l):l=e[1],He(l)}function Ft({orgSlug:o,virtualMcpId:e,branch:l,previewUrl:n,meta:t,decofile:a,kind:i,target:r,initialValue:f,isCreating:x,onCreate:b,onSaveReferencedBlock:h,onBack:p,backLabel:y,showRun:m=!0}){const d=$s(),u=d?.taskId??null,c=Q(),g=d?.virtualMcpId,v=ls(g===e?e:null)?.metadata?.siteSlug??null,E=ks(r.resolveType,t),k=!E&&Ns(r.resolveType,t),S=k?Ss(f):null,N=E??S,[_,C]=R.useState(f),[T,w]=R.useState([]),[B,O]=R.useState(0),[J,P]=R.useState(!1),[$,D]=R.useState(null),[I,L]=R.useState(!1),[Z,X]=R.useState(!1),[ee,G]=R.useState(!1),V=$!==null,{save:ie,flush:H,isPending:le}=Le({orgSlug:o,virtualMcpId:e,branch:l},{holdsCopy:r.mode==="saved"}),A=it({orgSlug:o,virtualMcpId:e,branch:l,threadId:u});R.useEffect(()=>()=>{H()},[]);const F=et(i),xe=r.resolveType.split("/").pop()?.replace(/\.tsx?$/,"")??r.resolveType,re={orgSlug:o,virtualMcpId:e,branch:l,threadId:u,previewUrl:n??void 0,siteSlug:v},se=z=>{C(z),r.mode==="saved"&&ie(r.blockKey,{__resolveType:r.resolveType,...z})},ae=()=>{V?(D(null),P(!1),O(z=>z+1)):D(JSON.stringify(_,null,2))},q=z=>{const oe=z??"";try{const de=JSON.parse(oe);if(de&&typeof de=="object"&&!Array.isArray(de)){P(!1),se(de);return}P(!0)}catch{P(!0)}},Y=async z=>{const oe=es(z,a);if(oe){Pe.error(oe);return}await b(z,{__resolveType:r.resolveType,..._}),L(!1)},M=()=>{X(!0),A.mutate({resolveType:r.resolveType,props:_})},U=()=>{n&&window.open(at(n,r.resolveType,_,Date.now()),"_blank","noopener")},De=[r.title,...T],Fe=z=>{w(T.slice(0,z)),O(oe=>oe+1)};return s.jsxs("div",{className:"flex h-full w-full min-w-0 flex-col",children:[s.jsx(Zs,{crumbs:De,onSelect:Fe,onSelectRoot:p}),s.jsxs("div",{className:"shrink-0 border-b px-3 py-2.5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[p&&y&&s.jsxs(K,{variant:"ghost",size:"sm",className:"-ml-1 min-w-0 shrink gap-1",onClick:p,children:[s.jsx($e,{size:14,className:"shrink-0"}),s.jsx("span",{className:"truncate",children:y})]}),s.jsx("div",{className:"flex-1"}),r.mode==="saved"&&s.jsx(Is,{isPending:le,isError:!1}),m&&s.jsxs(K,{size:"default",variant:"outline",className:"shrink-0 gap-1.5",onClick:M,disabled:A.isPending,"aria-label":c("sandbox.runnableBlockEditor.runAriaLabel",{singular:F}),children:[A.isPending?s.jsx(je,{className:"size-3.5"}):s.jsx(As,{size:14}),c("sandbox.runnableBlockEditor.run")]}),r.mode==="available"&&s.jsxs(ue,{children:[s.jsx(fe,{asChild:!0,children:s.jsx(K,{size:"icon",className:"shrink-0",disabled:x,onClick:()=>L(!0),"aria-label":c("sandbox.runnableBlockEditor.saveAsGlobalAriaLabel",{singular:F}),children:s.jsx(is,{size:14})})}),s.jsx(me,{side:"bottom",children:c("sandbox.runnableBlockEditor.saveAsGlobal",{singular:F})})]}),s.jsxs(ue,{children:[s.jsx(fe,{asChild:!0,children:s.jsx(K,{variant:V?"default":"ghost",size:"icon",className:"shrink-0",onClick:ae,"aria-label":c(V?"sandbox.runnableBlockEditor.closeJsonEditor":"sandbox.runnableBlockEditor.editAsJson"),"aria-pressed":V,children:V?s.jsx(ye,{size:14}):s.jsx(Ae,{size:14})})}),s.jsx(me,{side:"bottom",children:c(V?"sandbox.runnableBlockEditor.closeJsonEditor":"sandbox.runnableBlockEditor.editAsJson")})]})]}),s.jsx("p",{className:"mt-1.5 py-1 pl-1 text-sm leading-snug text-muted-foreground",children:r.mode==="saved"?c("sandbox.runnableBlockEditor.savedModeDescription",{singular:F}):c("sandbox.runnableBlockEditor.availableModeDescription",{typeLabel:xe,singular:F})})]}),s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[s.jsxs("div",{className:ne("relative min-h-0 flex-1",Z&&ee&&"hidden"),children:[s.jsx(zs,{className:"h-full [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:s.jsxs("div",{className:"mx-auto max-w-2xl",children:[S&&N===S&&s.jsx("p",{className:"mb-3 rounded-md bg-muted px-3 py-2 text-xs leading-snug text-muted-foreground",children:c("sandbox.runnableBlockEditor.inferredSchemaNotice",{singular:F})}),N?s.jsx(Ze,{schema:N,value:_,onChange:z=>se(z),basePath:"",breadcrumbPath:T,onBreadcrumbChange:w,meta:t,decofile:a,onSaveReferencedBlock:h,sandbox:re},B):s.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:k?c("sandbox.runnableBlockEditor.freeformPropsEmptyState",{singular:F}):c("sandbox.runnableBlockEditor.noInputEmptyState",{singular:F})})]})})}),$!==null&&s.jsxs("div",{className:"absolute inset-0 flex flex-col bg-background",children:[J&&s.jsx("div",{className:"shrink-0 border-b bg-destructive/10 px-3 py-1.5 text-xs text-destructive",children:c("sandbox.runnableBlockEditor.invalidJsonError")}),s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(Ie,{language:"json",height:"100%",code:$,onChange:q,onSave:z=>{q(z),H()}})})]})]}),Z&&s.jsx(rt,{singular:F,result:{isPending:A.isPending,error:A.error,data:A.data,hasRun:A.status!=="idle"},expanded:ee,onToggleExpand:()=>G(z=>!z),onOpenInNewTab:n?U:void 0,onClose:()=>{X(!1),G(!1)}})]}),s.jsx(Xe,{open:I,onOpenChange:L,defaultBlockId:"",isPending:x,onSubmit:Y})]})}function rt(o){const e=W.c(54),{singular:l,result:n,expanded:t,onToggleExpand:a,onOpenInNewTab:i,onClose:r}=o,f=Q();let x;e[0]!==n.data?(x=typeof n.data=="string"?n.data:JSON.stringify(n.data??null,null,2),e[0]=n.data,e[1]=x):x=e[1];const b=x,h=t?"flex-1":"h-[45%] shrink-0";let p;e[2]!==h?(p=ne("flex min-h-0 flex-col border-t",h),e[2]=h,e[3]=p):p=e[3];let y;e[4]!==f?(y=f("sandbox.runnableBlockEditor.resultPanelTitle"),e[4]=f,e[5]=y):y=e[5];let m;e[6]!==y?(m=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:y}),e[6]=y,e[7]=m):m=e[7];let d;e[8]!==i||e[9]!==l||e[10]!==f?(d=i&&s.jsxs(ue,{children:[s.jsx(fe,{asChild:!0,children:s.jsx(K,{variant:"ghost",size:"icon-sm",onClick:i,"aria-label":f("sandbox.runnableBlockEditor.openResultInNewTabAriaLabel"),children:s.jsx(Oe,{size:14})})}),s.jsx(me,{side:"bottom",children:f("sandbox.runnableBlockEditor.openInNewTabTooltip",{singular:l})})]}),e[8]=i,e[9]=l,e[10]=f,e[11]=d):d=e[11];let u;e[12]!==t||e[13]!==f?(u=f(t?"sandbox.runnableBlockEditor.collapseResult":"sandbox.runnableBlockEditor.expandResult"),e[12]=t,e[13]=f,e[14]=u):u=e[14];let c;e[15]!==t?(c=t?s.jsx(rs,{size:14}):s.jsx(cs,{size:14}),e[15]=t,e[16]=c):c=e[16];let g;e[17]!==t||e[18]!==a||e[19]!==u||e[20]!==c?(g=s.jsx(fe,{asChild:!0,children:s.jsx(K,{variant:"ghost",size:"icon-sm",onClick:a,"aria-label":u,"aria-pressed":t,children:c})}),e[17]=t,e[18]=a,e[19]=u,e[20]=c,e[21]=g):g=e[21];let j;e[22]!==t||e[23]!==f?(j=f(t?"sandbox.runnableBlockEditor.collapse":"sandbox.runnableBlockEditor.expand"),e[22]=t,e[23]=f,e[24]=j):j=e[24];let v;e[25]!==j?(v=s.jsx(me,{side:"bottom",children:j}),e[25]=j,e[26]=v):v=e[26];let E;e[27]!==v||e[28]!==g?(E=s.jsxs(ue,{children:[g,v]}),e[27]=v,e[28]=g,e[29]=E):E=e[29];let k;e[30]!==f?(k=f("sandbox.runnableBlockEditor.closeResult"),e[30]=f,e[31]=k):k=e[31];let S;e[32]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(ye,{size:14}),e[32]=S):S=e[32];let N;e[33]!==r||e[34]!==k?(N=s.jsx(K,{variant:"ghost",size:"icon-sm",onClick:r,"aria-label":k,children:S}),e[33]=r,e[34]=k,e[35]=N):N=e[35];let _;e[36]!==E||e[37]!==N||e[38]!==d?(_=s.jsxs("div",{className:"flex items-center gap-0.5",children:[d,E,N]}),e[36]=E,e[37]=N,e[38]=d,e[39]=_):_=e[39];let C;e[40]!==_||e[41]!==m?(C=s.jsxs("div",{className:"flex h-9 shrink-0 items-center justify-between border-b px-3",children:[m,_]}),e[40]=_,e[41]=m,e[42]=C):C=e[42];let T;e[43]!==n.error||e[44]!==n.hasRun||e[45]!==n.isPending||e[46]!==b||e[47]!==l||e[48]!==f?(T=s.jsx("div",{className:"min-h-0 flex-1",children:n.isPending?s.jsxs("div",{className:"flex h-full items-center justify-center gap-2 text-xs text-muted-foreground",children:[s.jsx(je,{className:"size-4"}),f("sandbox.runnableBlockEditor.running",{singular:l})]}):n.error?s.jsxs("div",{className:"h-full overflow-auto px-4 py-3",children:[s.jsx("p",{className:"text-xs font-medium text-destructive",children:f("sandbox.runnableBlockEditor.failedToRun",{singular:l})}),s.jsx("pre",{className:"mt-1 whitespace-pre-wrap break-words text-xs text-destructive/90",children:n.error.message})]}):n.hasRun?s.jsx(Ie,{language:"json",height:"100%",code:b,readOnly:!0}):s.jsx("div",{className:"flex h-full items-center justify-center text-xs text-muted-foreground",children:f("sandbox.runnableBlockEditor.pressRunToInvoke",{singular:l})})}),e[43]=n.error,e[44]=n.hasRun,e[45]=n.isPending,e[46]=b,e[47]=l,e[48]=f,e[49]=T):T=e[49];let w;return e[50]!==C||e[51]!==T||e[52]!==p?(w=s.jsxs("div",{className:p,children:[C,T]}),e[50]=C,e[51]=T,e[52]=p,e[53]=w):w=e[53],w}function be(o,e,l){const n=l[o];return typeof n?.name=="string"&&n.name||o.replace(/[-_]/g," ").replace(/\b\w/g,t=>t.toUpperCase())||`Section ${e+1}`}function Ut(o,e,l=!1){return o.map((n,t)=>{const a=n.__resolveType??"",i=Se(a);if(!i&&a!==""&&pe(a)&&a in e)return{index:t,resolveType:a,label:be(a,t,e),isLazy:!1,isSavedBlock:!0};const r=i?n.section:void 0,f=i?r?.__resolveType??"":a;if(Te(f,l)){const b=i?r:n,h=Array.isArray(b?.variants)?b.variants:[];if(h.length===1&&qe(h[0]?.rule?.__resolveType,l)){const m=he(h[0],l)??{};let d=m.__resolveType??"";const u=Se(d);let c=m;if(u){const g=m.section;d=g?.__resolveType??d,g&&(c=g)}if(Te(d,l)){const g=Array.isArray(c.variants)?c.variants:[],j=he(g[0],l)?.__resolveType,v=j?ce(j):"Section";return{index:t,resolveType:a,label:`Variants of ${v}`,variantOf:v,isHidden:!0,isLazy:u}}return d!==""&&pe(d)&&d in e?{index:t,resolveType:a,label:be(d,t,e),isHidden:!0,isLazy:u,isSavedBlock:!0}:{index:t,resolveType:a,label:ce(d)||`Section ${t+1}`,isHidden:!0,isLazy:u}}const p=he(h[0],l)?.__resolveType,y=p?ce(p):"Section";return{index:t,resolveType:a,label:`Variants of ${y}`,variantOf:y,isMultivariate:!0,isLazy:i}}const x=i?n.section?.__resolveType??a:a;return i&&x!==""&&pe(x)&&x in e?{index:t,resolveType:a,label:be(x,t,e),isLazy:!0,isSavedBlock:!0}:{index:t,resolveType:a,label:ce(x)||`Section ${t+1}`,isLazy:i}})}function Kt(o){let e=o.length;for(;e>0&&o[e-1]?.isSavedBlock;)e--;return e>0?e:Math.max(o.length-1,0)}export{Be as B,At as P,Ft as R,Ot as S,nt as a,Jt as b,$t as c,Mt as d,et as e,Zs as f,Lt as g,It as h,Vt as l,zt as m,Kt as n,Ut as p,Dt as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,b as C,j as t,n as w,m as N}from"./index-
|
|
1
|
+
import{c as b,b as C,j as t,n as w,m as N}from"./index-BKpLGEvk.js";import{C as P}from"./index-DEBA1pg3.js";import{j as y,u as $,bO as z}from"./agent-icon-BFR8_3zP.js";import{B as I}from"./badge-C7t6LTfR.js";import"./use-mobile-DcM2ppEE.js";import"./use-sidebar-collapsed-DSgGjO0O.js";import"./use-chat-layout-state-DvsxRxjF.js";import"./thread-route--4ncLAuV.js";import"./use-view-draft-kind-DwK_OsiM.js";import"./use-project-scope-X9RqbqiU.js";import"./repository-binding-CP5rmeRO.js";import"./use-mcp-client-B3T-i6Yy.js";import"./auth-BEwu0a-x.js";import"./use-organization-settings-Csn2HHVU.js";import"./schema-B-LAHoUK.js";import"./task-board-DsQ_oTs1.js";import"./thread-intent-CCp7NTzo.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D62Siohr.js";import"./tooltip-CHkAenL4.js";import"./index-_JElq8CH.js";import"./toolbar-icon-button-Dnuh3g8k.js";import"./shell-layout-BMzHKR9t.js";import"./Globe04-vWAQu6ql.js";import"./UserSquare-CMedzjXl.js";import"./use-deployment-admin-BJVjKk5d.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-CjAbxo6W.js";import"./CheckCircle-Bp8tITGL.js";import"./Monitor01-Ib8XdXsU.js";import"./Zap-BNB_xEwI.js";import"./Plus-lUyuDazr.js";import"./Tool01-Yd8ogx8N.js";import"./command-Bvze9Tif.js";import"./index-DHKBL-0w.js";import"./SearchMd-D0-9ej42.js";import"./integration-icon-Ct_bDgI9.js";import"./LinkBroken01-eOLBCf9g.js";import"./project-icon-Bvu6n5OS.js";import"./use-navigate-to-agent-D8_0egfT.js";import"./use-debounced-value-JGqBfV3A.js";import"./new-project-dialog-kOo0CX1I.js";import"./ArrowLeft-6fw6vHKx.js";import"./label-BDLTo2Y-.js";import"./repository-picker-DC1bdVSR.js";import"./github-icon-DQGQvMmf.js";import"./useInfiniteQuery-Dbi-NOGt.js";import"./infiniteQueryObserver-B581IWWx.js";import"./collection-search-D22DG-N6.js";import"./BookOpen01-CIigO21o.js";import"./ShoppingBag01-Ct2vEJ5p.js";import"./legacy-admin-welcome-dialog-_KyfyHo4.js";import"./drawer-CYcKWGYw.js";import"./required-auth-layout-DkFLkHwK.js";import"./use-org-sso-B2a8dOEH.js";import"./sheet-gfkwParf.js";import"./resizable-BkCowlJw.js";import"./AlertCircle-Bw3i2ESn.js";import"./ArrowUp-CoOHlCW9.js";import"./ChevronUp-rwg_m6Bz.js";import"./ChevronSelectorVertical-EzXJxozj.js";import"./CreditCard01-BSJJY0ul.js";import"./SwitchHorizontal01-1mxe_S61.js";import"./Key01-CJqMVRWW.js";import"./Minus-D2dKSFlw.js";import"./Sun-DgJwoRO5.js";import"./Play-2aGPtJuo.js";import"./Trash01-CGn497Nk.js";import"./Upload01-bs3kHvY6.js";import"./Users01-DBiECFzL.js";const K={plan:{heading:"home.comingSoon.planHeading",description:"home.comingSoon.planDescription",points:[{Icon:y,labelKey:"home.comingSoon.planGoals",tone:"bg-chart-2/15 text-chart-2"},{Icon:$,labelKey:"home.comingSoon.planTasks",tone:"bg-chart-1/15 text-chart-1"},{Icon:z,labelKey:"home.comingSoon.planProgress",tone:"bg-chart-4/15 text-chart-4"}]}};function L(o){const e=b.c(4),{className:f}=o;let i;e[0]!==f?(i=N("block h-2 rounded-full bg-muted",f),e[0]=f,e[1]=i):i=e[1];let r;return e[2]!==i?(r=t.jsx("span",{className:i}),e[2]=i,e[3]=r):r=e[3],r}const O=[{title:"w-32",fill:"w-[72%]",tone:"bg-chart-2",value:"72%"},{title:"w-24",fill:"w-[45%]",tone:"bg-chart-1",value:"45%"},{title:"w-28",fill:"w-[88%]",tone:"bg-chart-4",value:"88%"}];function R(){const o=b.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex flex-col gap-5",children:O.map(B)}),o[0]=e):e=o[0],e}function B(o){return t.jsxs("div",{className:"flex flex-col gap-2.5",children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx("span",{className:"flex size-6 items-center justify-center rounded-md bg-muted text-muted-foreground",children:t.jsx(y,{size:14})}),t.jsx(L,{className:o.title}),t.jsx("span",{className:"ml-auto text-xs font-medium tabular-nums text-muted-foreground",children:o.value})]}),t.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:t.jsx("div",{className:N("h-full rounded-full",o.fill,o.tone)})})]},o.value)}function E(o){const e=b.c(30),{kind:f}=o,i=C(),r=K[f];let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("div",{className:"absolute inset-x-10 -top-4 h-40 rounded-full bg-chart-2/20 blur-3xl"}),e[0]=u):u=e[0];let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsxs("div",{"aria-hidden":!0,className:"relative w-full max-w-md",children:[u,t.jsx("div",{className:"relative surface p-6 [mask-image:linear-gradient(to_bottom,black_65%,transparent)]",children:t.jsx(R,{})})]}),e[1]=h):h=e[1];let s;e[2]!==i?(s=i("home.comingSoon.badge"),e[2]=i,e[3]=s):s=e[3];let l;e[4]!==s?(l=t.jsx(I,{variant:"muted",children:s}),e[4]=s,e[5]=l):l=e[5];let m;e[6]!==r.heading||e[7]!==i?(m=i(r.heading),e[6]=r.heading,e[7]=i,e[8]=m):m=e[8];let n;e[9]!==m?(n=t.jsx("h1",{className:"text-2xl font-medium text-balance text-foreground",children:m}),e[9]=m,e[10]=n):n=e[10];let a;e[11]!==r.description||e[12]!==i?(a=i(r.description),e[11]=r.description,e[12]=i,e[13]=a):a=e[13];let c;e[14]!==a?(c=t.jsx("p",{className:"max-w-md text-sm text-pretty text-muted-foreground",children:a}),e[14]=a,e[15]=c):c=e[15];let p;e[16]!==l||e[17]!==n||e[18]!==c?(p=t.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[l,n,c]}),e[16]=l,e[17]=n,e[18]=c,e[19]=p):p=e[19];let d;if(e[20]!==r.points||e[21]!==i){let j;e[23]!==i?(j=S=>{const{Icon:_,labelKey:v,tone:k}=S;return t.jsxs("li",{className:"flex items-center gap-3 surface p-4 sm:flex-col sm:items-start",children:[t.jsx("span",{className:N("flex size-9 shrink-0 items-center justify-center rounded-lg",k),children:t.jsx(_,{size:18})}),t.jsx("span",{className:"text-sm text-foreground",children:i(v)})]},v)},e[23]=i,e[24]=j):j=e[24],d=r.points.map(j),e[20]=r.points,e[21]=i,e[22]=d}else d=e[22];let x;e[25]!==d?(x=t.jsx("ul",{className:"grid w-full gap-3 sm:grid-cols-3",children:d}),e[25]=d,e[26]=x):x=e[26];let g;return e[27]!==x||e[28]!==p?(g=t.jsx(w,{children:t.jsx(w.Content,{children:t.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-10 px-4 pt-12 pb-16 md:pt-20",children:[h,p,x]})})}),e[27]=x,e[28]=p,e[29]=g):g=e[29],g}function tt(){const o=b.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(P.Content,{children:t.jsx(E,{kind:"plan"})}),o[0]=e):e=o[0],e}export{tt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,a4 as g,ak as P,K as _,i as y,m as h,j as d}from"./index-
|
|
1
|
+
import{c as f,a4 as g,ak as P,K as _,i as y,m as h,j as d}from"./index-BKpLGEvk.js";import{u as A}from"./use-entitlements-Bc6hnlLI.js";function I(){const e=f.c(6),t=P(),a=A();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_.aiPlanPrices(),e[0]=o):o=e[0];let n;e[1]!==t?(n=async()=>{const{prices:r}=await t.call("ORGANIZATION_BILLING_PLAN_PRICES",{});return Object.fromEntries(r.map(p))},e[1]=t,e[2]=n):n=e[2];let s;return e[3]!==a||e[4]!==n?(s={queryKey:o,enabled:a,staleTime:6e5,queryFn:n},e[3]=a,e[4]=n,e[5]=s):s=e[5],y(s)}function p(e){return[e.planId,{amountCents:e.amountCents,currency:e.currency,interval:e.interval}]}function v(e,t){return(e.amountCents/100).toLocaleString(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0})}const F=["chat","cms","credits","monitoring","kanban","model_choice","diagnostic_enriched"];function R(e,t){if(!e)return null;const a=e.findIndex(n=>n.features[t]===!0),o=a>=0?e[a]:void 0;return o?{plan:o,index:a}:null}const j="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function k(){const e=f.c(8),{org:t}=g(),a=P(),o=A();let n;e[0]!==t.id?(n=_.aiPlanCatalog(t.id),e[0]=t.id,e[1]=n):n=e[1];let s;e[2]!==a?(s=async()=>{const{plans:c}=await a.call("AI_PLAN_LIST",{providerId:"deco"});return c.filter(E)},e[2]=a,e[3]=s):s=e[3];let r;return e[4]!==o||e[5]!==n||e[6]!==s?(r={queryKey:n,enabled:o,staleTime:3e5,queryFn:s},e[4]=o,e[5]=n,e[6]=s,e[7]=r):r=e[7],y(r)}function E(e){return e.id!=="free"}const u=[{symbol:"starter",color:"text-chart-4"},{symbol:"growth",color:"text-chart-1"},{symbol:"scale",color:"text-brand-blue"}],L=u[u.length-1];function q(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function D(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color:x}=S(a);n=b,s="0 0 16 16",r="true",c=h("size-8 shrink-0",x,o),t[0]=o,t[1]=a,t[2]=n,t[3]=s,t[4]=r,t[5]=c}else n=t[2],s=t[3],r=t[4],c=t[5];const m=`/plan-icons.svg#${n}-icon`;let l;t[6]!==m?(l=d.jsx("use",{href:m}),t[6]=m,t[7]=l):l=t[7];let i;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==l?(i=d.jsx("svg",{viewBox:s,"aria-hidden":r,className:c,children:l}),t[8]=s,t[9]=r,t[10]=c,t[11]=l,t[12]=i):i=t[12],i}export{j as C,F,D as P,w as S,I as a,q as b,v as f,O as i,R as p,k as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as Y,j as s,dT as me,hP as ye,c as G,m as X,bX as Pe,b as q,a4 as se,ak as Z,q as _e,e as ae,J as ge,B as V,I as Se,t as W,K as ee,aH as we,aI as Ee,aJ as Ie,aK as Ae,b5 as Ue,aL as Te,aM as De,aN as $e,ge as le,gT as ne,i as xe,dY as pe,b3 as Re,aq as Be,as as Le,L as ke,gD as He}from"./index-
|
|
1
|
+
import{r as Y,j as s,dT as me,hP as ye,c as G,m as X,bX as Pe,b as q,a4 as se,ak as Z,q as _e,e as ae,J as ge,B as V,I as Se,t as W,K as ee,aH as we,aI as Ee,aJ as Ie,aK as Ae,b5 as Ue,aL as Te,aM as De,aN as $e,ge as le,gT as ne,i as xe,dY as pe,b3 as Re,aq as Be,as as Le,L as ke,gD as He}from"./index-BKpLGEvk.js";import{s as Oe}from"./Plus-lUyuDazr.js";import{B as Fe}from"./badge-C7t6LTfR.js";import{a as Me,b as ze,P as Ve}from"./popover-CIHDNHCs.js";import{T as ce,a as Ge}from"./toggle-group-DRCRlz-o.js";import{g as Ke}from"./use-ai-providers-monFFnof.js";import{u as ie,d as he,a as qe}from"./use-entitlements-Bc6hnlLI.js";import{u as Qe,P as Ye}from"./plan-ladder-BI4eUCeS.js";var re="Progress",oe=100,[Xe]=ye(re),[Ze,Je]=Xe(re),ve=Y.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:a,getValueLabel:l=We,...c}=e;(a||a===0)&&!de(a)&&console.error(et(`${a}`,"Progress"));const i=de(a)?a:oe;o!==null&&!ue(o,i)&&console.error(tt(`${o}`,"Progress"));const r=ue(o,i)?o:null,u=te(r)?l(r,i):void 0;return s.jsx(Ze,{scope:n,value:r,max:i,children:s.jsx(me.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":te(r)?r:void 0,"aria-valuetext":u,role:"progressbar","data-state":Ne(r,i),"data-value":r??void 0,"data-max":i,...c,ref:t})})});ve.displayName=re;var be="ProgressIndicator",je=Y.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=Je(be,n);return s.jsx(me.div,{"data-state":Ne(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...o,ref:t})});je.displayName=be;function We(e,t){return`${Math.round(e/t*100)}%`}function Ne(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function te(e){return typeof e=="number"}function de(e){return te(e)&&!isNaN(e)&&e>0}function ue(e,t){return te(e)&&!isNaN(e)&&e<=t&&e>=0}function et(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${oe}\`.`}function tt(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
2
2
|
- a positive number
|
|
3
3
|
- less than the value passed to \`max\` (or ${oe} if no \`max\` prop is set)
|
|
4
4
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,c1 as _,j as c,c3 as j,c4 as x,c2 as b,b_ as z,b$ as G,c0 as H,c8 as w,ch as K,dZ as E,cc as Z,ce as U,ci as V,cd as W,cf as q,cg as B,cj as J,ck as Q,c6 as X,c as R,m as Y}from"./index-
|
|
1
|
+
import{r as l,c1 as _,j as c,c3 as j,c4 as x,c2 as b,b_ as z,b$ as G,c0 as H,c8 as w,ch as K,dZ as E,cc as Z,ce as U,ci as V,cd as W,cf as q,cg as B,cj as J,ck as Q,c6 as X,c as R,m as Y}from"./index-BKpLGEvk.js";var A="Popover",[N]=K(A,[w]),m=w(),[ee,P]=N(A),F=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,i=m(e),u=l.useRef(null),[f,v]=l.useState(!1),[g,p]=z({prop:r,defaultProp:n??!1,onChange:s,caller:A});return c.jsx(G,{...i,children:c.jsx(ee,{scope:e,contentId:H(),triggerRef:u,open:g,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),hasCustomAnchor:f,onCustomAnchorAdd:l.useCallback(()=>v(!0),[]),onCustomAnchorRemove:l.useCallback(()=>v(!1),[]),modal:a,children:o})})};F.displayName=A;var y="PopoverAnchor",S=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(y,o),s=m(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(b,{...s,...r,ref:e})});S.displayName=y;var D="PopoverTrigger",M=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(D,o),s=m(o),a=_(e,n.triggerRef),i=c.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":L(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(b,{asChild:!0,...s,children:i})});M.displayName=D;var O="PopoverPortal",[oe,te]=N(O,{forceMount:void 0}),k=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(O,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(E,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};k.displayName=O;var h="PopoverContent",T=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(E,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});T.displayName=h;var re=V("PopoverContent.RemoveScroll"),ne=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(null),n=_(e,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return Z(a)},[]),c.jsx(U,{as:re,allowPinchZoom:!0,children:c.jsx(I,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:x(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,f=i.button===2||u;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:x(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),se=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(!1),n=l.useRef(!1);return c.jsx(I,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),I=l.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:v,...g}=t,p=P(h,o),d=m(o);return W(),c.jsx(q,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(B,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(J,{"data-state":L(p.open),role:"dialog",id:p.contentId,...d,...g,ref:e,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose",ae=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P($,o);return c.jsx(j.button,{type:"button",...r,ref:e,onClick:x(t.onClick,()=>n.onOpenChange(!1))})});ae.displayName=$;var ce="PopoverArrow",ie=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=m(o);return c.jsx(Q,{...n,...r,ref:e})});ie.displayName=ce;function L(t){return t?"open":"closed"}var le=F,pe=S,de=M,ue=k,fe=T;function ge(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(le,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(de,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function he(t){const e=R.c(19);let o,r,n,s,a,i;e[0]!==t?({className:o,align:s,sideOffset:a,container:r,variant:i,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s,e[5]=a,e[6]=i):(o=e[1],r=e[2],n=e[3],s=e[4],a=e[5],i=e[6]);const u=s===void 0?"center":s,f=a===void 0?4:a,v=i===void 0?"default":i,g=v==="glass"?"glass rounded-[0.875rem] px-3.5 py-3":"bg-popover border p-4 shadow-md";let p;e[7]!==o||e[8]!==g?(p=Y("notranslate text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[var(--studio-surface-radius,var(--radius-lg))] overflow-hidden outline-hidden",g,o),e[7]=o,e[8]=g,e[9]=p):p=e[9];let d;e[10]!==u||e[11]!==n||e[12]!==f||e[13]!==p||e[14]!==v?(d=c.jsx(fe,{"data-slot":"popover-content",align:u,sideOffset:f,translate:"no","data-variant":v,className:p,...n}),e[10]=u,e[11]=n,e[12]=f,e[13]=p,e[14]=v,e[15]=d):d=e[15];let C;return e[16]!==r||e[17]!==d?(C=c.jsx(ue,{container:r,children:d}),e[16]=r,e[17]=d,e[18]=C):C=e[18],C}function xe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ge as P,Pe as a,he as b,xe as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as se,b as pe,r as ae,J as je,j as t,m as te,B as ee,as as Ce}from"./index-CWyPzcrL.js";import{R as Ne,F as De}from"./agent-icon-DvD5kv_K.js";import{s as ke}from"./Plus-CRqz0c82.js";import{S as Se}from"./scroll-area-Jht8lpyk.js";import{c as we,s as Te,b as ce,a as de}from"./date-utils-CrvIKg-s.js";import{M as ze}from"./category-tree-DJrnPSNg.js";import{g as Ee,d as Me}from"./item-actions-DXH2d6Fe.js";import"./AlertCircle-DuMz-jFi.js";import"./Tool01-D9-ePNaJ.js";import"./ArrowUp-D5JWz7Yq.js";import"./ArrowLeft-5NT3k46C.js";import"./LinkBroken01-IVC8feVZ.js";import"./BookOpen01-m1uNXDEc.js";import"./Globe04-KZ-J2ZUi.js";import"./CheckCircle-DAPdRkcW.js";import"./ChevronUp-BaKxA_AU.js";import"./ChevronSelectorVertical-5fTMRN5v.js";import"./UserSquare-Dv0YcmkC.js";import"./CreditCard01-BU3Icpfr.js";import"./SwitchHorizontal01-D3zx9VNf.js";import"./Key01-RIzbDsEi.js";import"./Minus-Dw050KAn.js";import"./Monitor01-D7QUQToM.js";import"./Sun-DRT9bMW5.js";import"./Play-BDSDyO5E.js";import"./SearchMd-CcAFkP0F.js";import"./ShoppingBag01-CspfAlNO.js";import"./Trash01-BTZDkUzq.js";import"./Upload01-BRP1bAMs.js";import"./Users01-DKwguy8Z.js";import"./XClose-CyHahh4m.js";import"./Zap-Dja9fdMf.js";import"./index-BdQq_4o_.js";import"./empty-message-CqeY7z6M.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-CZjLWCpF.js";import"./collapsible-DbCvR955.js";import"./use-copy-ChDt5LN5.js";import"./usage-stats-BFAUXiEn.js";import"./tool-namespace-Cwe3IZ6z.js";import"./form-fep7EsZM.js";import"./label-Cf_dlQhi.js";import"./utils-CVEq3hMx.js";import"./markdown-DCvPsl1N.js";import"./chat-context--RKzWa6k.js";import"./use-view-draft-kind-C5ojzKhH.js";import"./thread-route-D-qV5LOQ.js";import"./use-project-scope-Fr7Egb1F.js";import"./repository-binding-SYfLLQPp.js";import"./use-mcp-client-BJYqkCGO.js";import"./auth-ygmhxR7o.js";import"./use-organization-settings-DNlKPHFq.js";import"./schema-CLtIHsoR.js";import"./task-board-CNxFcEEU.js";import"./thread-intent-BoKpDkXm.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CR6i9l-S.js";import"./use-entitlements-BTXwUzEe.js";import"./use-ai-providers-Drq9rd-R.js";import"./use-decopilot-events-DrQkcg1u.js";import"./use-mobile-BZxtzMj7.js";import"./tooltip-C-0kDxkl.js";import"./index-ixp03eW8.js";import"./shell-layout-BCfYpYFh.js";import"./use-deployment-admin-DqLzMbx4.js";import"./admin-fetch-BhTJlAsX.js";import"./command-DQleocFC.js";import"./index-CVAn8xNL.js";import"./integration-icon-C_WzTScv.js";import"./project-icon-DCOepmMu.js";import"./use-navigate-to-agent-v5tv9KVo.js";import"./use-debounced-value-CPC4qMn_.js";import"./new-project-dialog-uK1Ixj7a.js";import"./repository-picker-CbFl2YYE.js";import"./github-icon-BmJmIA35.js";import"./useInfiniteQuery--BgI5-DV.js";import"./infiniteQueryObserver-OShuiwgE.js";import"./collection-search-DvsK7hSv.js";import"./legacy-admin-welcome-dialog-Bh63ptd4.js";import"./drawer-CSA_YXe9.js";import"./required-auth-layout-DFuLVB75.js";import"./use-org-sso-BxQ8a0VK.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DBs207iT.js";import"./types-DrwTBhGr.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-DvkksJq0.js";import"./use-connection-CoSLklxV.js";import"./use-mcp-prompts-L17hBbZI.js";import"./use-thread-outputs-Ch3NEbJD.js";import"./file-type-icon-B8w_B6Ur.js";import"./section-array-field-CBZsskhA.js";import"./blocks-tab-states-DQr9dBZQ.js";import"./site-editor-toast-B030LZGc.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-jMtZqiMa.js";import"./use-blocks-v8-project-Ce_mrKLc.js";import"./use-voice-input-DHuYIV5W.js";import"./popover-L7EmpGzG.js";import"./index-C2ij8p-x.js";import"./checkbox-H8QR9D0_.js";import"./select-e2tvI61e.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-DZ4Tq9_F.js";import"./sandbox-git-api-DcqI6XE4.js";import"./empty-state-BBFh_11d.js";import"./use-move-blocks-BhC8Ou_b.js";import"./hosted-reconcile-TIWxrhyM.js";import"./badge-DzB3sqoD.js";import"./empty-state-Wyw1gzAU.js";import"./delete-copy-p7sDnlSk.js";import"./use-never-published-ftzoQCEb.js";import"./search-input-B93QU4Dy.js";import"./tabs-RDxPTimY.js";import"./active-indicator-CCMhAsc_.js";import"./use-file-configs-DlI3360C.js";import"./asset-utils-CZ4gg2Dc.js";import"./index-ChH0sLX7.js";import"./textarea-D8L9nIm0.js";import"./monaco-editor-BjOCHD6R.js";import"./editor-BDmwWZXW.js";const fe="border-success/30 bg-success/10 text-success hover:bg-success/20",xe="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function Vr(h){const e=se.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:n,onReschedule:s,isCreating:D}=h,i=D===void 0?!1:D,r=pe(),[j,C]=ae.useState(null),[re]=je(),[m,f]=ae.useState(Ie),p=re.language;let N;e[0]!==m||e[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(m),e[0]=m,e[1]=p,e[2]=N):N=e[2];const y=N;let x,u,l,c,v,k,S,w,T,z;if(e[3]!==m||e[4]!==b||e[5]!==j||e[6]!==i||e[7]!==p||e[8]!==y||e[9]!==n||e[10]!==s||e[11]!==o||e[12]!==d||e[13]!==r){const ue=new Intl.DateTimeFormat(p,{weekday:"short"}),ge=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:he,undated:oe}=Ee(ze(b)),ie=we(m),be=Te(new Date);u="flex h-full w-full flex-col";let G;e[24]===Symbol.for("react.memo_cache_sentinel")?(G=()=>f(ce(new Date)),e[24]=G):G=e[24];let I;e[25]!==r?(I=r("sandbox.postCalendar.today"),e[25]=r,e[26]=I):I=e[26];let H;e[27]!==I?(H=t.jsx(ee,{variant:"outline",size:"sm",onClick:G,children:I}),e[27]=I,e[28]=H):H=e[28];let Q;e[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Le),e[29]=Q):Q=e[29];let U;e[30]!==r?(U=r("sandbox.postCalendar.previous"),e[30]=r,e[31]=U):U=e[31];let V;e[32]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(De,{size:16}),e[32]=V):V=e[32];let _;e[33]!==U?(_=t.jsx(ee,{variant:"ghost",size:"icon",onClick:Q,"aria-label":U,children:V}),e[33]=U,e[34]=_):_=e[34];let X;e[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Pe),e[35]=X):X=e[35];let $;e[36]!==r?($=r("sandbox.postCalendar.next"),e[36]=r,e[37]=$):$=e[37];let Y;e[38]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(Ce,{size:16}),e[38]=Y):Y=e[38];let F;e[39]!==$?(F=t.jsx(ee,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),e[39]=$,e[40]=F):F=e[40];let O;e[41]!==y?(O=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),e[41]=y,e[42]=O):O=e[42];let R;e[43]!==r?(R=r("sandbox.postCalendar.legendScheduled"),e[43]=r,e[44]=R):R=e[44];let B;e[45]!==R?(B=t.jsx(ne,{className:fe,label:R}),e[45]=R,e[46]=B):B=e[46];let A;e[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),e[47]=r,e[48]=A):A=e[48];let K;e[49]!==A?(K=t.jsx(ne,{className:xe,label:A}),e[49]=A,e[50]=K):K=e[50];let W;e[51]!==B||e[52]!==K?(W=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[B,K]}),e[51]=B,e[52]=K,e[53]=W):W=e[53],e[54]!==H||e[55]!==_||e[56]!==F||e[57]!==O||e[58]!==W?(l=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,_,F,O,W]}),e[54]=H,e[55]=_,e[56]=F,e[57]=O,e[58]=W,e[59]=l):l=e[59],z="relative flex-1 min-h-0",x=Se,T="h-full",S="flex min-w-[880px] gap-4 p-4";let J;e[60]!==r?(J=r("sandbox.postCalendar.unscheduledHint"),e[60]=r,e[61]=J):J=e[61];let Z;e[62]!==J?(Z=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:J}),e[62]=J,e[63]=Z):Z=e[63],w=t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"grid grid-cols-7 mb-2",children:ie[0]?.map(a=>t.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ue.format(a)},a.getDay()))}),t.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:ie.flat().map(a=>{const ye=a.getMonth()===m.getMonth(),ve=he.get(Me(a))??[];return t.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const le=g.dataTransfer.getData("text/plain");C(null),le&&s(le,a)},className:te("group/day min-h-28 space-y-1 p-2 transition-colors",ye?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:te("grid size-6 place-items-center rounded-full text-xs",a.getTime()===be.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:a.getDate()}),t.jsx(ee,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:i,onClick:()=>n(a),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:ge.format(a)}),children:t.jsx(ke,{size:14})})]}),ve.map(g=>t.jsx(me,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},a.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",v=t.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:oe.length})}),k=oe.length===0?t.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[t.jsx(Ne,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):oe.map(a=>t.jsx(me,{entry:a,active:a.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},a.post.key)),e[3]=m,e[4]=b,e[5]=j,e[6]=i,e[7]=p,e[8]=y,e[9]=n,e[10]=s,e[11]=o,e[12]=d,e[13]=r,e[14]=x,e[15]=u,e[16]=l,e[17]=c,e[18]=v,e[19]=k,e[20]=S,e[21]=w,e[22]=T,e[23]=z}else x=e[14],u=e[15],l=e[16],c=e[17],v=e[18],k=e[19],S=e[20],w=e[21],T=e[22],z=e[23];let E;e[64]!==c||e[65]!==v||e[66]!==k?(E=t.jsxs("div",{className:c,children:[v,k]}),e[64]=c,e[65]=v,e[66]=k,e[67]=E):E=e[67];let M;e[68]!==E||e[69]!==S||e[70]!==w?(M=t.jsxs("div",{className:S,children:[w,E]}),e[68]=E,e[69]=S,e[70]=w,e[71]=M):M=e[71];let P;e[72]!==x||e[73]!==M||e[74]!==T?(P=t.jsx(x,{className:T,children:M}),e[72]=x,e[73]=M,e[74]=T,e[75]=P):P=e[75];let L;e[76]!==P||e[77]!==z?(L=t.jsx("div",{className:z,children:P}),e[76]=P,e[77]=z,e[78]=L):L=e[78];let q;return e[79]!==u||e[80]!==l||e[81]!==L?(q=t.jsxs("div",{className:u,children:[l,L]}),e[79]=u,e[80]=l,e[81]=L,e[82]=q):q=e[82],q}function Pe(h){return de(h,1)}function Le(h){return de(h,-1)}function Ie(){return ce(new Date)}function ne(h){const e=se.c(7),{className:b,label:d}=h;let o;e[0]!==b?(o=te("size-3 rounded-sm border",b),e[0]=b,e[1]=o):o=e[1];let n;e[2]!==o?(n=t.jsx("span",{className:o}),e[2]=o,e[3]=n):n=e[3];let s;return e[4]!==d||e[5]!==n?(s=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[n,d]}),e[4]=d,e[5]=n,e[6]=s):s=e[6],s}function me(h){const e=se.c(23),{entry:b,active:d,draggable:o,onSelect:n,onDragStateChange:s}=h,D=pe(),{post:i,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;e[0]!==D||e[1]!==j?(C=D(j),e[0]=D,e[1]=j,e[2]=C):C=e[2];const re=C;let m;e[3]!==s||e[4]!==i.key?(m=v=>{v.dataTransfer.setData("text/plain",i.key),v.dataTransfer.effectAllowed="move",s(i.key)},e[3]=s,e[4]=i.key,e[5]=m):m=e[5];let f;e[6]!==s?(f=()=>s(null),e[6]=s,e[7]=f):f=e[7];let p;e[8]!==n||e[9]!==i.key?(p=()=>n(i.key),e[8]=n,e[9]=i.key,e[10]=p):p=e[10];const N=`${i.title} · ${re}`,y=r?fe:xe,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let l;e[11]!==y||e[12]!==x||e[13]!==u?(l=te("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),e[11]=y,e[12]=x,e[13]=u,e[14]=l):l=e[14];let c;return e[15]!==o||e[16]!==i.title||e[17]!==l||e[18]!==m||e[19]!==f||e[20]!==p||e[21]!==N?(c=t.jsx("button",{type:"button",draggable:o,onDragStart:m,onDragEnd:f,onClick:p,title:N,className:l,children:i.title}),e[15]=o,e[16]=i.title,e[17]=l,e[18]=m,e[19]=f,e[20]=p,e[21]=N,e[22]=c):c=e[22],c}export{Vr as PostCalendar};
|
|
1
|
+
import{c as se,b as pe,r as ae,J as je,j as t,m as te,B as ee,as as Ce}from"./index-BKpLGEvk.js";import{R as Ne,F as De}from"./agent-icon-BFR8_3zP.js";import{s as ke}from"./Plus-lUyuDazr.js";import{S as Se}from"./scroll-area-DYFB45XI.js";import{c as we,s as Te,b as ce,a as de}from"./date-utils-CrvIKg-s.js";import{M as ze}from"./category-tree-D93GzJKM.js";import{g as Ee,d as Me}from"./item-actions-D6KeBwnZ.js";import"./AlertCircle-Bw3i2ESn.js";import"./Tool01-Yd8ogx8N.js";import"./ArrowUp-CoOHlCW9.js";import"./ArrowLeft-6fw6vHKx.js";import"./LinkBroken01-eOLBCf9g.js";import"./BookOpen01-CIigO21o.js";import"./Globe04-vWAQu6ql.js";import"./CheckCircle-Bp8tITGL.js";import"./ChevronUp-rwg_m6Bz.js";import"./ChevronSelectorVertical-EzXJxozj.js";import"./UserSquare-CMedzjXl.js";import"./CreditCard01-BSJJY0ul.js";import"./SwitchHorizontal01-1mxe_S61.js";import"./Key01-CJqMVRWW.js";import"./Minus-D2dKSFlw.js";import"./Monitor01-Ib8XdXsU.js";import"./Sun-DgJwoRO5.js";import"./Play-2aGPtJuo.js";import"./SearchMd-D0-9ej42.js";import"./ShoppingBag01-Ct2vEJ5p.js";import"./Trash01-CGn497Nk.js";import"./Upload01-bs3kHvY6.js";import"./Users01-DBiECFzL.js";import"./XClose-CjAbxo6W.js";import"./Zap-BNB_xEwI.js";import"./index-BdQq_4o_.js";import"./empty-message-mnnSg0iM.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-CTPgNFFV.js";import"./collapsible-Cn64wIV8.js";import"./use-copy-CHckM0yQ.js";import"./usage-stats-CqG5Et7U.js";import"./tool-namespace-CDKIr-qo.js";import"./form-Bk3nslfo.js";import"./label-BDLTo2Y-.js";import"./utils-CVEq3hMx.js";import"./markdown-BsYAi8XQ.js";import"./chat-context-CYceSwsW.js";import"./use-view-draft-kind-DwK_OsiM.js";import"./thread-route--4ncLAuV.js";import"./use-project-scope-X9RqbqiU.js";import"./repository-binding-CP5rmeRO.js";import"./use-mcp-client-B3T-i6Yy.js";import"./auth-BEwu0a-x.js";import"./use-organization-settings-Csn2HHVU.js";import"./schema-B-LAHoUK.js";import"./task-board-DsQ_oTs1.js";import"./thread-intent-CCp7NTzo.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D62Siohr.js";import"./use-entitlements-Bc6hnlLI.js";import"./use-ai-providers-monFFnof.js";import"./use-decopilot-events-CQZ1l3Ag.js";import"./use-mobile-DcM2ppEE.js";import"./tooltip-CHkAenL4.js";import"./index-_JElq8CH.js";import"./shell-layout-BMzHKR9t.js";import"./use-deployment-admin-BJVjKk5d.js";import"./admin-fetch-BhTJlAsX.js";import"./command-Bvze9Tif.js";import"./index-DHKBL-0w.js";import"./integration-icon-Ct_bDgI9.js";import"./project-icon-Bvu6n5OS.js";import"./use-navigate-to-agent-D8_0egfT.js";import"./use-debounced-value-JGqBfV3A.js";import"./new-project-dialog-kOo0CX1I.js";import"./repository-picker-DC1bdVSR.js";import"./github-icon-DQGQvMmf.js";import"./useInfiniteQuery-Dbi-NOGt.js";import"./infiniteQueryObserver-B581IWWx.js";import"./collection-search-D22DG-N6.js";import"./legacy-admin-welcome-dialog-_KyfyHo4.js";import"./drawer-CYcKWGYw.js";import"./required-auth-layout-DkFLkHwK.js";import"./use-org-sso-B2a8dOEH.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-dDBi3URO.js";import"./types-BU7qSv9N.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-gfkwParf.js";import"./use-connection-awawZ6Wu.js";import"./use-mcp-prompts-DBrWE8Dr.js";import"./use-thread-outputs-XJ2zBtCL.js";import"./file-type-icon-e_gGiYxT.js";import"./section-array-field-Bkmst1qa.js";import"./blocks-tab-states-CITyhFLq.js";import"./site-editor-toast-BceqMxyH.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-DZThvbj1.js";import"./use-blocks-v8-project-DvmEriaW.js";import"./use-voice-input-c6FA5Zln.js";import"./popover-CIHDNHCs.js";import"./index-DXL41NDn.js";import"./checkbox-CatUuWpu.js";import"./select-B5iUwwXV.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-DGdwEw5F.js";import"./sandbox-git-api-DcqI6XE4.js";import"./empty-state-D60YSb1b.js";import"./use-move-blocks-Devk2xQ3.js";import"./hosted-reconcile-CfexzNYR.js";import"./badge-C7t6LTfR.js";import"./empty-state-Sh3VG-tE.js";import"./delete-copy-C1OD72vk.js";import"./use-never-published-8biSL1xa.js";import"./search-input-DqHJAiRd.js";import"./tabs-CEaEmLtB.js";import"./active-indicator-CCMhAsc_.js";import"./use-file-configs-BAq4cYjg.js";import"./asset-utils-Cm9qiSAT.js";import"./index-DEZsHYz8.js";import"./textarea-BI99K3kU.js";import"./monaco-editor-D1vzjghk.js";import"./editor-DnLe1jNS.js";const fe="border-success/30 bg-success/10 text-success hover:bg-success/20",xe="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function Vr(h){const e=se.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:n,onReschedule:s,isCreating:D}=h,i=D===void 0?!1:D,r=pe(),[j,C]=ae.useState(null),[re]=je(),[m,f]=ae.useState(Ie),p=re.language;let N;e[0]!==m||e[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(m),e[0]=m,e[1]=p,e[2]=N):N=e[2];const y=N;let x,u,l,c,v,k,S,w,T,z;if(e[3]!==m||e[4]!==b||e[5]!==j||e[6]!==i||e[7]!==p||e[8]!==y||e[9]!==n||e[10]!==s||e[11]!==o||e[12]!==d||e[13]!==r){const ue=new Intl.DateTimeFormat(p,{weekday:"short"}),ge=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:he,undated:oe}=Ee(ze(b)),ie=we(m),be=Te(new Date);u="flex h-full w-full flex-col";let G;e[24]===Symbol.for("react.memo_cache_sentinel")?(G=()=>f(ce(new Date)),e[24]=G):G=e[24];let I;e[25]!==r?(I=r("sandbox.postCalendar.today"),e[25]=r,e[26]=I):I=e[26];let H;e[27]!==I?(H=t.jsx(ee,{variant:"outline",size:"sm",onClick:G,children:I}),e[27]=I,e[28]=H):H=e[28];let Q;e[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Le),e[29]=Q):Q=e[29];let U;e[30]!==r?(U=r("sandbox.postCalendar.previous"),e[30]=r,e[31]=U):U=e[31];let V;e[32]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(De,{size:16}),e[32]=V):V=e[32];let _;e[33]!==U?(_=t.jsx(ee,{variant:"ghost",size:"icon",onClick:Q,"aria-label":U,children:V}),e[33]=U,e[34]=_):_=e[34];let X;e[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Pe),e[35]=X):X=e[35];let $;e[36]!==r?($=r("sandbox.postCalendar.next"),e[36]=r,e[37]=$):$=e[37];let Y;e[38]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(Ce,{size:16}),e[38]=Y):Y=e[38];let F;e[39]!==$?(F=t.jsx(ee,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),e[39]=$,e[40]=F):F=e[40];let O;e[41]!==y?(O=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),e[41]=y,e[42]=O):O=e[42];let R;e[43]!==r?(R=r("sandbox.postCalendar.legendScheduled"),e[43]=r,e[44]=R):R=e[44];let B;e[45]!==R?(B=t.jsx(ne,{className:fe,label:R}),e[45]=R,e[46]=B):B=e[46];let A;e[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),e[47]=r,e[48]=A):A=e[48];let K;e[49]!==A?(K=t.jsx(ne,{className:xe,label:A}),e[49]=A,e[50]=K):K=e[50];let W;e[51]!==B||e[52]!==K?(W=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[B,K]}),e[51]=B,e[52]=K,e[53]=W):W=e[53],e[54]!==H||e[55]!==_||e[56]!==F||e[57]!==O||e[58]!==W?(l=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,_,F,O,W]}),e[54]=H,e[55]=_,e[56]=F,e[57]=O,e[58]=W,e[59]=l):l=e[59],z="relative flex-1 min-h-0",x=Se,T="h-full",S="flex min-w-[880px] gap-4 p-4";let J;e[60]!==r?(J=r("sandbox.postCalendar.unscheduledHint"),e[60]=r,e[61]=J):J=e[61];let Z;e[62]!==J?(Z=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:J}),e[62]=J,e[63]=Z):Z=e[63],w=t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"grid grid-cols-7 mb-2",children:ie[0]?.map(a=>t.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ue.format(a)},a.getDay()))}),t.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:ie.flat().map(a=>{const ye=a.getMonth()===m.getMonth(),ve=he.get(Me(a))??[];return t.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const le=g.dataTransfer.getData("text/plain");C(null),le&&s(le,a)},className:te("group/day min-h-28 space-y-1 p-2 transition-colors",ye?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:te("grid size-6 place-items-center rounded-full text-xs",a.getTime()===be.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:a.getDate()}),t.jsx(ee,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:i,onClick:()=>n(a),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:ge.format(a)}),children:t.jsx(ke,{size:14})})]}),ve.map(g=>t.jsx(me,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},a.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",v=t.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:oe.length})}),k=oe.length===0?t.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[t.jsx(Ne,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):oe.map(a=>t.jsx(me,{entry:a,active:a.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},a.post.key)),e[3]=m,e[4]=b,e[5]=j,e[6]=i,e[7]=p,e[8]=y,e[9]=n,e[10]=s,e[11]=o,e[12]=d,e[13]=r,e[14]=x,e[15]=u,e[16]=l,e[17]=c,e[18]=v,e[19]=k,e[20]=S,e[21]=w,e[22]=T,e[23]=z}else x=e[14],u=e[15],l=e[16],c=e[17],v=e[18],k=e[19],S=e[20],w=e[21],T=e[22],z=e[23];let E;e[64]!==c||e[65]!==v||e[66]!==k?(E=t.jsxs("div",{className:c,children:[v,k]}),e[64]=c,e[65]=v,e[66]=k,e[67]=E):E=e[67];let M;e[68]!==E||e[69]!==S||e[70]!==w?(M=t.jsxs("div",{className:S,children:[w,E]}),e[68]=E,e[69]=S,e[70]=w,e[71]=M):M=e[71];let P;e[72]!==x||e[73]!==M||e[74]!==T?(P=t.jsx(x,{className:T,children:M}),e[72]=x,e[73]=M,e[74]=T,e[75]=P):P=e[75];let L;e[76]!==P||e[77]!==z?(L=t.jsx("div",{className:z,children:P}),e[76]=P,e[77]=z,e[78]=L):L=e[78];let q;return e[79]!==u||e[80]!==l||e[81]!==L?(q=t.jsxs("div",{className:u,children:[l,L]}),e[79]=u,e[80]=l,e[81]=L,e[82]=q):q=e[82],q}function Pe(h){return de(h,1)}function Le(h){return de(h,-1)}function Ie(){return ce(new Date)}function ne(h){const e=se.c(7),{className:b,label:d}=h;let o;e[0]!==b?(o=te("size-3 rounded-sm border",b),e[0]=b,e[1]=o):o=e[1];let n;e[2]!==o?(n=t.jsx("span",{className:o}),e[2]=o,e[3]=n):n=e[3];let s;return e[4]!==d||e[5]!==n?(s=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[n,d]}),e[4]=d,e[5]=n,e[6]=s):s=e[6],s}function me(h){const e=se.c(23),{entry:b,active:d,draggable:o,onSelect:n,onDragStateChange:s}=h,D=pe(),{post:i,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;e[0]!==D||e[1]!==j?(C=D(j),e[0]=D,e[1]=j,e[2]=C):C=e[2];const re=C;let m;e[3]!==s||e[4]!==i.key?(m=v=>{v.dataTransfer.setData("text/plain",i.key),v.dataTransfer.effectAllowed="move",s(i.key)},e[3]=s,e[4]=i.key,e[5]=m):m=e[5];let f;e[6]!==s?(f=()=>s(null),e[6]=s,e[7]=f):f=e[7];let p;e[8]!==n||e[9]!==i.key?(p=()=>n(i.key),e[8]=n,e[9]=i.key,e[10]=p):p=e[10];const N=`${i.title} · ${re}`,y=r?fe:xe,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let l;e[11]!==y||e[12]!==x||e[13]!==u?(l=te("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),e[11]=y,e[12]=x,e[13]=u,e[14]=l):l=e[14];let c;return e[15]!==o||e[16]!==i.title||e[17]!==l||e[18]!==m||e[19]!==f||e[20]!==p||e[21]!==N?(c=t.jsx("button",{type:"button",draggable:o,onDragStart:m,onDragEnd:f,onClick:p,title:N,className:l,children:i.title}),e[15]=o,e[16]=i.title,e[17]=l,e[18]=m,e[19]=f,e[20]=p,e[21]=N,e[22]=c):c=e[22],c}export{Vr as PostCalendar};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as ee,ak as lt,r as K,j as t,B as Le,D as at,v as nt,w as rt,x as ct,aT as dt,bu as mt,m as Be,y as pt,t as we,c as se,a7 as ut,aN as ft,aM as xt,aJ as ht,aH as gt,aI as bt,aL as jt,aK as vt,b5 as yt,h as St,b6 as _t,I as Ae}from"./index-
|
|
1
|
+
import{b as ee,ak as lt,r as K,j as t,B as Le,D as at,v as nt,w as rt,x as ct,aT as dt,bu as mt,m as Be,y as pt,t as we,c as se,a7 as ut,aN as ft,aM as xt,aJ as ht,aH as gt,aI as bt,aL as jt,aK as vt,b5 as yt,h as St,b6 as _t,I as Ae}from"./index-BKpLGEvk.js";import{u as kt}from"./chat-context-CYceSwsW.js";import{i as Oe}from"./AlertCircle-Bw3i2ESn.js";import{aa as Et,aY as Ct,bZ as Nt,af as Pt,aG as Tt,l as Lt}from"./agent-icon-BFR8_3zP.js";import{d as wt}from"./UserSquare-CMedzjXl.js";import{s as Dt}from"./Trash01-CGn497Nk.js";import{s as Bt}from"./XClose-CjAbxo6W.js";import{L as te}from"./label-BDLTo2Y-.js";import{M as At}from"./multi-select-BlUZOCfN.js";import{b as Ft,a as It,T as Ge,c as We}from"./tabs-CEaEmLtB.js";import{S as Ot}from"./switch-C9Bl2pnH.js";import{T as Je}from"./textarea-BI99K3kU.js";import{S as Rt,I as zt}from"./save-status-D_jJpmHD.js";import{u as $t,I as qt,a as Ie,B as Ut,R as Mt}from"./block-document-CYqbJzu2.js";import{R as Ht,e as Vt,H as Gt,c as Wt,f as ze,N as Yt}from"./held-block-view-Cm31vjrE.js";import{b as Kt,C as Zt,K as Qt}from"./blog-schema-BkYmMuIN.js";import{Z as Jt,M as Xt,a as es,d as ts,f as ss,_ as os,j as I,$ as is,a0 as ls,m as Ye,a1 as as,a2 as Xe,a3 as ns,H as et,a4 as rs,W as cs,V as ds,a5 as ms,a6 as ps,R as us,Q as fs}from"./category-tree-D93GzJKM.js";import{c as $e,T as qe,a as Ue}from"./tooltip-CHkAenL4.js";import{f as xs,a as hs,b as gs}from"./blog-preview-url-B3s1HKrf.js";import{e as bs,f as js,g as Ke,u as vs,a as ys,d as Ss}from"./delete-copy-C1OD72vk.js";import{u as _s}from"./use-ai-providers-monFFnof.js";import{u as ks}from"./use-delete-block-CS6BnCmg.js";import{F as Es,u as Ze,a as Cs,k as Ns}from"./use-never-published-8biSL1xa.js";import{u as Ps}from"./use-fast-preview-draft-url-0fgsSk43.js";import{u as Ts}from"./use-autosave-C7jfVfde.js";import{e as Ls,b as ws}from"./Tool01-Yd8ogx8N.js";import{a as Ds,E as Bs,u as As}from"./usage-stats-CqG5Et7U.js";import{s as Fs}from"./suggestion-NKgMRlVT.js";import{E as Is,T as Me}from"./editor-classes-CmD68Fq4.js";import{u as Os}from"./site-editor-toast-BceqMxyH.js";import"./use-view-draft-kind-DwK_OsiM.js";import"./thread-route--4ncLAuV.js";import"./use-project-scope-X9RqbqiU.js";import"./repository-binding-CP5rmeRO.js";import"./use-mcp-client-B3T-i6Yy.js";import"./auth-BEwu0a-x.js";import"./use-organization-settings-Csn2HHVU.js";import"./schema-B-LAHoUK.js";import"./task-board-DsQ_oTs1.js";import"./thread-intent-CCp7NTzo.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D62Siohr.js";import"./use-entitlements-Bc6hnlLI.js";import"./use-decopilot-events-CQZ1l3Ag.js";import"./ArrowUp-CoOHlCW9.js";import"./ArrowLeft-6fw6vHKx.js";import"./LinkBroken01-eOLBCf9g.js";import"./BookOpen01-CIigO21o.js";import"./Globe04-vWAQu6ql.js";import"./CheckCircle-Bp8tITGL.js";import"./ChevronUp-rwg_m6Bz.js";import"./ChevronSelectorVertical-EzXJxozj.js";import"./CreditCard01-BSJJY0ul.js";import"./SwitchHorizontal01-1mxe_S61.js";import"./Key01-CJqMVRWW.js";import"./Minus-D2dKSFlw.js";import"./Monitor01-Ib8XdXsU.js";import"./Sun-DgJwoRO5.js";import"./Play-2aGPtJuo.js";import"./Plus-lUyuDazr.js";import"./SearchMd-D0-9ej42.js";import"./ShoppingBag01-Ct2vEJ5p.js";import"./Upload01-bs3kHvY6.js";import"./Users01-DBiECFzL.js";import"./Zap-BNB_xEwI.js";import"./badge-C7t6LTfR.js";import"./checkbox-CatUuWpu.js";import"./command-Bvze9Tif.js";import"./index-DHKBL-0w.js";import"./popover-CIHDNHCs.js";import"./active-indicator-CCMhAsc_.js";import"./toggle-group-DRCRlz-o.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-BAq4cYjg.js";import"./asset-utils-Cm9qiSAT.js";import"./useInfiniteQuery-Dbi-NOGt.js";import"./infiniteQueryObserver-B581IWWx.js";import"./core.esm-BBx9DFCe.js";import"./sortable.esm-ANscIFFj.js";import"./product-picker-dialog-Ci68Qqvg.js";import"./index-RR-LocRS.js";import"./index-DEZsHYz8.js";import"./blocks-tab-states-CITyhFLq.js";import"./sandbox-url-D3mC8qhT.js";import"./use-voice-input-c6FA5Zln.js";import"./drawer-CYcKWGYw.js";import"./use-mobile-DcM2ppEE.js";import"./index-DXL41NDn.js";import"./select-B5iUwwXV.js";import"./index-BdQq_4o_.js";import"./index-_JElq8CH.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-D60YSb1b.js";import"./utils-DGdwEw5F.js";import"./calendar-BzCbg4ac.js";import"./empty-message-mnnSg0iM.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-CTPgNFFV.js";import"./collapsible-Cn64wIV8.js";import"./use-copy-CHckM0yQ.js";import"./shell-layout-BMzHKR9t.js";import"./use-deployment-admin-BJVjKk5d.js";import"./admin-fetch-BhTJlAsX.js";import"./integration-icon-Ct_bDgI9.js";import"./project-icon-Bvu6n5OS.js";import"./use-navigate-to-agent-D8_0egfT.js";import"./use-debounced-value-JGqBfV3A.js";import"./new-project-dialog-kOo0CX1I.js";import"./repository-picker-DC1bdVSR.js";import"./github-icon-DQGQvMmf.js";import"./collection-search-D22DG-N6.js";import"./legacy-admin-welcome-dialog-_KyfyHo4.js";import"./required-auth-layout-DkFLkHwK.js";import"./use-org-sso-B2a8dOEH.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-dDBi3URO.js";import"./types-BU7qSv9N.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./tool-namespace-CDKIr-qo.js";import"./utils-CVEq3hMx.js";import"./markdown-BsYAi8XQ.js";import"./sheet-gfkwParf.js";import"./use-connection-awawZ6Wu.js";import"./use-mcp-prompts-DBrWE8Dr.js";import"./use-thread-outputs-XJ2zBtCL.js";import"./file-type-icon-e_gGiYxT.js";import"./section-array-field-Bkmst1qa.js";import"./named-rule-step-DzxARGEs.js";import"./slider-DcuTWtwH.js";import"./index-CePmTsdo.js";import"./tooltipContext-C0rU2vdL.js";import"./CategoricalChart-LwMiidhq.js";import"./index-B5IfyADC.js";import"./combobox-jjs4eQim.js";import"./scroll-area-DYFB45XI.js";import"./hosted-reconcile-CfexzNYR.js";import"./use-move-blocks-Devk2xQ3.js";import"./sandbox-git-api-DcqI6XE4.js";import"./search-input-DqHJAiRd.js";import"./form-Bk3nslfo.js";import"./use-sandbox-events-DZThvbj1.js";import"./use-blocks-v8-project-DvmEriaW.js";const De=a=>typeof a=="string"?a:"",Rs={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","'":"'"};function tt(a){const e=[];let s=0,l=!1;for(;s<a.length;){if(a[s]==="<"){const c=a.indexOf(">",s);s=c<0?a.length:c+1;continue}let o=a[s]??"",d=s+1;if(a[s]==="&"){const c=a.indexOf(";",s);if(c>=0&&c-s<=10){const i=Rs[a.slice(s,c+1).toLowerCase()];i!==void 0&&(o=i,d=c+1)}}const n=s;if(s=d,/\s/.test(o)){if(l){const c=e[e.length-1];c&&(c.end=d);continue}e.push({ch:" ",start:n,end:d}),l=!0}else e.push({ch:o,start:n,end:d}),l=!1}return{text:e.map(o=>o.ch).join(""),chars:e}}function zs(a){return tt(a).text.trim()}function $s(a){const e=[];for(const s of a)switch(Jt(De(s.__resolveType))){case"Paragraph":e.push(zs(De(s.html)));break;case"Heading":e.push(De(s.text));break;case"Quote":e.push(De(s.quote));break;case"List":e.push(De(s.items));break}return e.filter(Boolean).join(`
|
|
2
2
|
`)}function qs(a){return a.replace(/&/g,"&").replace(/"/g,""")}function Us(a,e){const s=a.slice(0,e);return s.lastIndexOf("<a")>s.lastIndexOf("</a")}function Ms(a,e,s){const l=e.trim();if(!l||!s)return{blocks:a,applied:!1};for(let o=0;o<a.length;o++){const d=a[o];if(!d||typeof d.html!="string")continue;const n=d.html,{text:c,chars:i}=tt(n);let p=c.indexOf(l);for(;p>=0;){const x=i[p],f=i[p+l.length-1];if(x&&f){const g=x.start,r=f.end,u=n.slice(g,r);if(!u.includes("<")&&!Us(n,g)){const m=n.slice(0,g)+`<a href="${qs(s)}">${u}</a>`+n.slice(r),h=a.slice();return h[o]={...d,html:m},{blocks:h,applied:!0}}}p=c.indexOf(l,p+1)}}return{blocks:a,applied:!1}}function Hs(a,e){let s=a,l=0;for(const o of e){const d=Ms(s,o.quote,o.href);d.applied&&(s=d.blocks,l++)}return{blocks:s,applied:l}}function Vs({virtualMcpId:a,decofile:e,sections:s,currentKey:l,meta:o,hasAi:d,onApply:n}){const c=ee(),i=lt(),[p,x]=K.useState(!1),[f,g]=K.useState(!1),[r,u]=K.useState([]),[m,h]=K.useState(new Set),y=xs(e,o),k=Xt(e).filter(j=>j.key!==l&&j.slug),T=async()=>{g(!0);try{const j=$s(s),E=await i.call("BLOG_SITE_GROUND",{virtualMcpId:a,purpose:"link"}).catch(S=>{console.warn("[linkSuggest] grounding failed",S)}),v=await i.call("BLOG_LINK_SUGGEST",{virtualMcpId:a,body:j,posts:k.map(S=>({title:S.title,slug:S.slug})),grounding:E?{report:E.report,outcome:E.outcome}:void 0}),C=[],b=new Set;for(const S of v.suggestions){const L=k.find(z=>z.slug===S.slug);if(!L||!y)continue;const P=hs(y,{category:L.categorySlugs[0]??"",slug:L.slug});if(!P||!j.includes(S.quote))continue;const w=`${S.quote}→${L.slug}`;b.has(w)||(b.add(w),C.push({quote:S.quote,href:P,title:L.title}))}u(C),h(new Set(C.map((S,L)=>L))),x(!0),C.length===0&&we.info(c("sandbox.linkSuggest.none"))}catch(j){we.error(j instanceof Error?j.message:c("sandbox.linkSuggest.failed"))}finally{g(!1)}},D=j=>h(E=>{const v=new Set(E);return v.has(j)?v.delete(j):v.add(j),v}),B=()=>{const j=r.filter((C,b)=>m.has(b)).map(C=>({quote:C.quote,href:C.href})),{blocks:E,applied:v}=Hs(s,j);n(E),x(!1),we.success(c("sandbox.linkSuggest.applied",{count:String(v)}))};return t.jsxs(t.Fragment,{children:[t.jsxs(Le,{type:"button",variant:"outline",size:"sm",disabled:f||!d||k.length===0,title:d?k.length===0?c("sandbox.linkSuggest.noCandidates"):c("sandbox.linkSuggest.hint"):c("sandbox.autonomous.noAiProvider"),onClick:()=>{T()},children:[f?t.jsx(Et,{size:14,className:"animate-spin"}):t.jsx(Ct,{size:14}),c("sandbox.linkSuggest.button")]}),t.jsx(at,{open:p,onOpenChange:x,children:t.jsxs(nt,{className:"max-h-[85vh] sm:max-w-lg",children:[t.jsxs(rt,{children:[t.jsx(ct,{children:c("sandbox.linkSuggest.title")}),t.jsx(dt,{children:c("sandbox.linkSuggest.description")})]}),r.length===0?t.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:c("sandbox.linkSuggest.none")}):t.jsx("ul",{className:"max-h-[50vh] space-y-1 overflow-y-auto",children:r.map((j,E)=>{const v=m.has(E);return t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>D(E),"aria-pressed":v,className:"flex w-full items-start gap-2.5 rounded-lg border p-2.5 text-left transition-colors hover:bg-accent",children:[t.jsx("span",{className:Be("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border",v?"border-primary bg-primary text-primary-foreground":"border-input"),children:v&&t.jsx(mt,{size:11})}),t.jsxs("span",{className:"min-w-0 flex-1 text-sm",children:[t.jsxs("span",{className:"font-medium",children:["“",j.quote,"”"]}),t.jsxs("span",{className:"text-muted-foreground",children:[" → ",j.title]})]})]})},`${j.quote}-${j.href}`)})}),t.jsx(pt,{children:t.jsx(Le,{type:"button",disabled:m.size===0,onClick:B,children:c("sandbox.linkSuggest.apply",{count:String(m.size)})})})]})})]})}const Gs={unit:"pt",initial:12,min:6,max:96},Ws=["outline-none min-h-80 px-4 py-3 text-[15px] leading-relaxed text-foreground","[&>*:first-child]:mt-0 [&_p]:my-3","[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-3xl [&_h1]:font-bold","[&_h2]:mb-3 [&_h2]:mt-6 [&_h2]:text-2xl [&_h2]:font-bold","[&_h3]:mb-2 [&_h3]:mt-5 [&_h3]:text-xl [&_h3]:font-bold","[&_h4]:mb-2 [&_h4]:mt-4 [&_h4]:text-lg [&_h4]:font-bold","[&_h5]:mb-2 [&_h5]:mt-4 [&_h5]:text-base [&_h5]:font-bold","[&_h6]:mb-2 [&_h6]:mt-4 [&_h6]:text-sm [&_h6]:font-bold","[&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-6 [&_li>p]:my-1","[&_blockquote]:my-3 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground","[&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-lg [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:font-mono [&_pre]:text-sm","[&_img]:inline-block [&_img]:h-auto [&_img]:max-w-full","[&_img.ProseMirror-selectednode]:outline-2 [&_img.ProseMirror-selectednode]:outline-primary","[&_table]:my-3 [&_table]:w-full [&_table]:border-collapse [&_td>p]:my-0 [&_th>p]:my-0","[&_td]:border [&_td]:border-border [&_td]:p-2 [&_th]:border [&_th]:border-border [&_th]:bg-muted [&_th]:p-2","[&_strong]:font-bold",Is],Ys=["[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none"];function Ks(a){const e=se.c(39),{editor:s}=a,l=ee(),[o,d]=K.useState(!1),[n,c]=K.useState(null),[i,p]=K.useState(null);let x;e[0]!==s?(x=P=>{s.chain().setImage({src:P}).run()},e[0]=s,e[1]=x):x=e[1];const f=x;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{c(null),p(null)},e[2]=g):g=e[2];const r=g;let u;e[3]!==f||e[4]!==l||e[5]!==n?(u=()=>{const P=(n??"").trim(),w=Ke(P);if(!w&&P){p(P.toLowerCase().startsWith("data:")?l("sandbox.postEditor.legacyImageDataUrl"):l("sectionsEditor.imageField.unsafeUrl"));return}w&&f(w),r()},e[3]=f,e[4]=l,e[5]=n,e[6]=u):u=e[6];const m=u;let h;e[7]!==l?(h=l("sandbox.postEditor.legacyInsertImage"),e[7]=l,e[8]=h):h=e[8];let y,k;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=()=>d(!0),k=t.jsx(Ls,{size:14}),e[9]=y,e[10]=k):(y=e[9],k=e[10]);let T;e[11]!==o||e[12]!==h?(T=t.jsx(Me,{active:o,label:h,onClick:y,children:k}),e[11]=o,e[12]=h,e[13]=T):T=e[13];const D=n!==null;let B;e[14]!==l?(B=l("sandbox.postEditor.legacyInsertImageUrl"),e[14]=l,e[15]=B):B=e[15];let j;e[16]!==m||e[17]!==n?(j=()=>n===null?c(""):m(),e[16]=m,e[17]=n,e[18]=j):j=e[18];let E;e[19]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(ws,{size:14}),e[19]=E):E=e[19];let v;e[20]!==j||e[21]!==D||e[22]!==B?(v=t.jsx(Me,{active:D,label:B,onClick:j,children:E}),e[20]=j,e[21]=D,e[22]=B,e[23]=v):v=e[23];let C;e[24]!==m||e[25]!==l||e[26]!==n||e[27]!==i?(C=n!==null&&t.jsx(qt,{draft:n,notice:i,label:l("sandbox.postEditor.legacyInsertImageUrl"),placeholder:l("sectionsEditor.imageField.urlPlaceholder"),onDraftChange:P=>{p(null),c(P)},onCommit:m,onCancel:r}),e[24]=m,e[25]=l,e[26]=n,e[27]=i,e[28]=C):C=e[28];let b;e[29]!==f?(b=P=>{const w=Ke(P);w&&f(w)},e[29]=f,e[30]=b):b=e[30];let S;e[31]!==o||e[32]!==b?(S=t.jsx(Es,{open:o,onOpenChange:d,mode:"image",onSelect:b}),e[31]=o,e[32]=b,e[33]=S):S=e[33];let L;return e[34]!==v||e[35]!==C||e[36]!==S||e[37]!==T?(L=t.jsxs("div",{className:"flex items-center gap-0.5",children:[T,v,C,S]}),e[34]=v,e[35]=C,e[36]=S,e[37]=T,e[38]=L):L=e[38],L}function Zs(a){const e=se.c(21),{editor:s}=a,l=ee(),[o,d]=K.useState(!1);let n;e[0]!==s?(n={editor:s,selector:Qs},e[0]=s,e[1]=n):n=e[1];const c=As(n);let i;e[2]!==s||e[3]!==o||e[4]!==c.highlight?(i=t.jsx(Vt,{editor:s,mark:"highlight",currentColor:c.highlight,open:o,onOpenChange:d}),e[2]=s,e[3]=o,e[4]=c.highlight,e[5]=i):i=e[5];const p=c.codeBlock;let x;e[6]!==l?(x=l("sandbox.postEditor.legacyCodeBlock"),e[6]=l,e[7]=x):x=e[7];let f;e[8]!==s?(f=()=>s.chain().focus().toggleCodeBlock().run(),e[8]=s,e[9]=f):f=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(Nt,{size:14}),e[10]=g):g=e[10];let r;e[11]!==c.codeBlock||e[12]!==x||e[13]!==f?(r=t.jsx(Me,{active:p,label:x,onClick:f,children:g}),e[11]=c.codeBlock,e[12]=x,e[13]=f,e[14]=r):r=e[14];let u;e[15]!==s?(u=t.jsx(Ks,{editor:s}),e[15]=s,e[16]=u):u=e[16];let m;return e[17]!==i||e[18]!==r||e[19]!==u?(m=t.jsxs(t.Fragment,{children:[i,r,u]}),e[17]=i,e[18]=r,e[19]=u,e[20]=m):m=e[20],m}function Qs(a){const{editor:e}=a;return{highlight:e.isActive("highlight")?e.getAttributes("highlight").color??null:null,codeBlock:e.isActive("codeBlock")}}function Js({value:a,onChange:e,decofile:s,sandboxRef:l}){const o=ee(),d=K.useRef(e);d.current=e;const n=Ds({extensions:[...js(),Fs.configure({placeholder:o("sandbox.postEditor.legacyContentPlaceholder")})],content:a,editorProps:{attributes:{class:Be(Ws)}},onUpdate:({editor:i})=>{d.current(bs(i.getHTML()))}}),c=$t({decofile:s,sandboxRef:l});return n?t.jsxs("div",{className:"rounded-[var(--studio-surface-radius,var(--radius-md))] border shadow-edge border-input",children:[t.jsx(Ht,{editor:n,fontSize:Gs,linkSources:c,extras:t.jsx(Zs,{editor:n})}),t.jsx(Bs,{editor:n,className:Be("max-h-[70vh] overflow-y-auto",Ys)})]}):null}function Xs(a){return Array.isArray(a)?a.map(e=>({key:I(e?.key),value:I(e?.value)})):[]}function eo({orgSlug:a,virtualMcpId:e,branch:s,blockKey:l,block:o,decofile:d,meta:n,previewBaseUrl:c,move:i,onClose:p,expanded:x,onToggleExpand:f,onDeleted:g}){const r=ee(),u=kt()?.taskId??null,m=Ze({orgSlug:a,virtualMcpId:e,branch:s},{holdsCopy:!0}),h=ks({orgSlug:a,virtualMcpId:e,branch:s}),y=Os(e,s),k=y.kind==="protocol"&&y.source==="github",T=Cs({orgSlug:a,virtualMcpId:e,branch:s}),D=_s().length>0,B=vs(),j=ys(e),E=Ps({orgSlug:a,virtualMcpId:e,branch:s}),v=es(o,"posts"),C=_=>{const X=m.shown(_);return X?{[_]:X}:{}},[b,S,L,P]=Ts(v,_=>{m.mutate({blockKey:l,data:ts(l,ss(_))})},{isSaving:m.isPending,onSeed:()=>m.hold(l)}),[w,z]=K.useState(l);w!==l&&(z(l),L(v));const U=_=>{L(b),i.apply(l,_,b,()=>C(l))},F=(_,X)=>S({...b,[_]:X}),M=Kt("posts",n,Qt),$=Ze({orgSlug:a,virtualMcpId:e,branch:s}),Z=Wt(_=>(m.v8?$:m).mutate(_),d,m.v8),[H,V]=K.useState(0),O=gs({decofile:d,post:b,previewBaseUrl:c,draftPointer:E,meta:n}),G=os(d,"posts",l,I(b.title)),Q=is(b),[W,q]=K.useState(!1),Y=async()=>{L(b);try{const _=await h.mutateAsync({blockKey:l,shown:()=>m.shown(l)});if(q(!1),Ns(_))return;we.success(r("sandbox.postEditor.deletePostSuccess",{title:I(b.title)})),g?.(),p?.()}catch(_){we.error(_ instanceof Error?_.message:r("sandbox.postEditor.deletePostFailed"))}},R=ls(b),A=R.length>0,J=R.length===1?r("sandbox.postEditor.missingFieldSingular",{fields:Ye(R,r)}):r("sandbox.postEditor.missingFieldPlural",{fields:Ye(R,r)});return t.jsxs("div",{className:"relative flex h-full flex-col",children:[t.jsx("div",{className:"absolute inset-x-0 top-0 z-10 bg-background/80 backdrop-blur-sm",children:t.jsxs("div",{className:"mx-auto flex max-w-4xl items-center justify-between gap-2 px-8 py-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(Rt,{isPending:m.isPending||m.v8&&$.isPending||P,isError:m.isError||m.v8&&$.isError}),A&&t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Oe,{size:14}),R.length," ",R.length===1?r("sandbox.postEditor.issueSingular"):r("sandbox.postEditor.issuePlural")]})}),t.jsx(Ue,{side:"bottom",children:J})]})]}),(f||p)&&t.jsxs("div",{className:"-mr-2 flex items-center gap-0.5",children:[f&&t.jsx(Le,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:f,title:r(x?"sandbox.postBoard.collapse":"sandbox.postBoard.expand"),children:x?t.jsx(Pt,{size:16}):t.jsx(Tt,{size:16})}),p&&t.jsx(Le,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:p,title:r("sandbox.postBoard.close"),children:t.jsx(Bt,{size:16})})]})]})}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 pb-6 pt-14",children:[t.jsx(as,{value:I(b.title),onChange:_=>F("title",_),placeholder:r("sandbox.postEditor.postTitlePlaceholder"),className:"py-1 text-4xl font-bold text-foreground"}),G&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.duplicateTitleWarning")]}),t.jsxs(Ft,{defaultValue:"content",className:"mt-6 gap-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs(It,{children:[t.jsxs(Ge,{value:"content",children:[t.jsx(wt,{}),r("sandbox.postEditor.contentTab")]}),t.jsxs(Ge,{value:"settings",children:[t.jsx(Lt,{}),r("sandbox.postEditor.settingsTab")]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[Q&&t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx(Le,{type:"button",variant:"ghost-destructive",size:"sm",className:"px-2","aria-label":r("sandbox.postEditor.deletePost"),onClick:()=>q(!0),children:t.jsx(Dt,{size:14})})}),t.jsx(Ue,{side:"bottom",children:r("sandbox.postEditor.deletePost")})]}),B&&!j&&t.jsx(Vs,{decofile:d,virtualMcpId:e,sections:Ie(b.sections),currentKey:l,meta:n,hasAi:D,onApply:_=>{F("sections",_),V(X=>X+1)}}),p&&t.jsxs(Le,{type:"button",variant:"outline",size:"sm",disabled:!O,title:r(O?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),onClick:()=>{O&&window.open(O,"_blank","noopener,noreferrer")},children:[t.jsx(ut,{size:14}),r("sandbox.postEditor.seePreview")]})]})]}),t.jsx(We,{value:"content",children:j?t.jsxs("div",{className:"space-y-3",children:[Ie(b.sections).length>0&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.legacySectionsNotice",{count:Ie(b.sections).length})]}),t.jsx(Js,{value:I(b.content),onChange:_=>F("content",_),decofile:d,sandboxRef:{orgSlug:a,virtualMcpId:e,branch:s,threadId:u}})]}):t.jsx("div",{className:"surface p-8",children:t.jsx(Ut,{value:Ie(b.sections),onChange:_=>F("sections",_),meta:n,decofile:d,sandboxRef:{orgSlug:a,virtualMcpId:e,branch:s,threadId:u},previewBaseUrl:c,onSaveReferencedBlock:Z,emptyMessage:r("sandbox.postEditor.noContentYet")},H)})}),t.jsx(We,{value:"settings",children:t.jsxs("div",{className:"surface p-6",children:[t.jsx(so,{post:b,decofile:d,onChange:F,blockKey:l,move:i,onMoveStatus:U}),t.jsx(Zt,{schema:M,value:b,onChange:S,basePath:"post",meta:n,decofile:d,sandbox:{orgSlug:a,virtualMcpId:e,branch:s,threadId:u},onSaveReferencedBlock:Z})]})})]})]})}),t.jsx(ft,{open:W,onOpenChange:_=>{!_&&!h.isPending&&q(!1)},children:t.jsxs(xt,{children:[t.jsxs(ht,{children:[t.jsx(gt,{children:r("sandbox.postEditor.deletePostConfirmTitle")}),t.jsx(bt,{children:r(Ss("post",k,{neverPublished:T(l)}),{title:I(b.title)||r("sandbox.postBoard.untitled")})})]}),t.jsxs(jt,{children:[t.jsx(vt,{disabled:h.isPending,children:r("sandbox.postEditor.deletePostCancel")}),t.jsx(yt,{onClick:_=>{_.preventDefault(),Y()},disabled:h.isPending,className:Be(_t({variant:"destructive"})),children:h.isPending?t.jsxs(t.Fragment,{children:[t.jsx(St,{className:"size-3.5"}),r("sandbox.postEditor.deletingPost")]}):r("sandbox.postEditor.deletePost")})]})]})})]})}function to(a){const e=se.c(15),{blockKey:s,post:l,move:o,onMoveStatus:d}=a,n=ee();let c;e[0]!==l?(c=Xe(l),e[0]=l,e[1]=c):c=e[1];const i=c;let p,x;if(e[2]!==s||e[3]!==i||e[4]!==o||e[5]!==d||e[6]!==l||e[7]!==n){let g;e[10]!==i?(g=u=>u!=="generating"||i==="generating",e[10]=i,e[11]=g):g=e[11];const r=us.filter(g);p="flex flex-wrap gap-1.5",x=r.map(u=>{const m=u===i,h=m?null:o.refuse(s,u,l);return t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx("span",{children:t.jsx("button",{type:"button",disabled:!!h,"aria-pressed":m,onClick:()=>d(u),className:Be("rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",m?"border-primary bg-primary text-primary-foreground":"cursor-pointer bg-card hover:bg-accent",h&&"cursor-not-allowed opacity-50"),children:n(fs[u])})})}),h&&t.jsx(Ue,{side:"bottom",children:o.reasonText(h)})]},u)}),e[2]=s,e[3]=i,e[4]=o,e[5]=d,e[6]=l,e[7]=n,e[8]=p,e[9]=x}else p=e[8],x=e[9];let f;return e[12]!==p||e[13]!==x?(f=t.jsx("div",{className:p,children:x}),e[12]=p,e[13]=x,e[14]=f):f=e[14],f}function so(a){const e=se.c(166),{post:s,decofile:l,onChange:o,blockKey:d,move:n,onMoveStatus:c}=a,i=ee();let p;e[0]!==s?(p=Xe(s),e[0]=s,e[1]=p):p=e[1];const f=p==="scheduled";let g;e[2]!==s.slug?(g=I(s.slug),e[2]=s.slug,e[3]=g):g=e[3];const r=g,[u,m]=K.useState(r),[h,y]=K.useState(null),[k,T]=K.useState(r);k!==r&&(T(r),m(r));let D;e[4]!==d||e[5]!==r||e[6]!==l||e[7]!==o||e[8]!==u||e[9]!==i?(D=()=>{const N=cs(u);if(m(N),N===r)return;if(!N){y(null),o("slug","");return}const He=et(l,"posts").filter(it=>it.key!==d).map(lo).filter(Boolean);if(!He.includes(N)){y(null),o("slug",N);return}const Re=ds(N,He),Ve=i("sandbox.postEditor.slugDeduped",{slug:Re});m(Re),y(Ve),we.info(Ve),o("slug",Re)},e[4]=d,e[5]=r,e[6]=l,e[7]=o,e[8]=u,e[9]=i,e[10]=D):D=e[10];const B=D;let j;e[11]!==i?(j=i("sandbox.postEditor.statusLabel"),e[11]=i,e[12]=j):j=e[12];let E;e[13]!==j?(E=t.jsx(te,{children:j}),e[13]=j,e[14]=E):E=e[14];let v;e[15]!==d||e[16]!==n||e[17]!==c||e[18]!==s?(v=t.jsx(to,{blockKey:d,post:s,move:n,onMoveStatus:c}),e[15]=d,e[16]=n,e[17]=c,e[18]=s,e[19]=v):v=e[19];let C;e[20]!==E||e[21]!==v?(C=t.jsxs("div",{className:"space-y-2",children:[E,v]}),e[20]=E,e[21]=v,e[22]=C):C=e[22];let b;e[23]!==f||e[24]!==o||e[25]!==s.scheduledDatetime||e[26]!==i?(b=f&&t.jsx(ze,{schema:{type:"string",format:"date-time",title:i("sandbox.postEditor.scheduledDatetimeLabel"),description:i("sandbox.postEditor.scheduledDatetimeDescription")},value:I(s.scheduledDatetime),onChange:N=>o("scheduledDatetime",N),path:"post-scheduled-datetime",label:i("sandbox.postEditor.scheduledDatetimeLabel")}),e[23]=f,e[24]=o,e[25]=s.scheduledDatetime,e[26]=i,e[27]=b):b=e[27];let S;e[28]!==C||e[29]!==b?(S=t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[C,b]}),e[28]=C,e[29]=b,e[30]=S):S=e[30];let L;e[31]!==i?(L=i("sandbox.postEditor.excerptLabel"),e[31]=i,e[32]=L):L=e[32];let P;e[33]!==L?(P=t.jsx(te,{htmlFor:"post-excerpt",children:L}),e[33]=L,e[34]=P):P=e[34];let w;e[35]!==s.excerpt?(w=I(s.excerpt),e[35]=s.excerpt,e[36]=w):w=e[36];let z;e[37]!==o?(z=N=>o("excerpt",N.target.value),e[37]=o,e[38]=z):z=e[38];let U;e[39]!==w||e[40]!==z?(U=t.jsx(Je,{id:"post-excerpt",value:w,onChange:z,rows:2}),e[39]=w,e[40]=z,e[41]=U):U=e[41];let F;e[42]!==P||e[43]!==U?(F=t.jsxs("div",{className:"space-y-2",children:[P,U]}),e[42]=P,e[43]=U,e[44]=F):F=e[44];let M;e[45]!==i?(M=i("sandbox.postEditor.slugLabel"),e[45]=i,e[46]=M):M=e[46];let $;e[47]!==M?($=t.jsx(te,{htmlFor:"post-slug",children:M}),e[47]=M,e[48]=$):$=e[48];let Z;e[49]===Symbol.for("react.memo_cache_sentinel")?(Z=N=>{y(null),m(ms(N.target.value))},e[49]=Z):Z=e[49];let H;e[50]!==i?(H=i("sandbox.postEditor.slugPlaceholder"),e[50]=i,e[51]=H):H=e[51];let V;e[52]!==B||e[53]!==u||e[54]!==H?(V=t.jsx(Ae,{id:"post-slug",value:u,onChange:Z,onBlur:B,placeholder:H,maxLength:80,className:"h-10"}),e[52]=B,e[53]=u,e[54]=H,e[55]=V):V=e[55];let O;e[56]!==h?(O=h&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),h]}),e[56]=h,e[57]=O):O=e[57];let G;e[58]!==$||e[59]!==V||e[60]!==O?(G=t.jsxs("div",{className:"space-y-2",children:[$,V,O]}),e[58]=$,e[59]=V,e[60]=O,e[61]=G):G=e[61];let Q;e[62]!==i?(Q=i("sandbox.postEditor.dateLabel"),e[62]=i,e[63]=Q):Q=e[63];let W;e[64]!==Q?(W={type:"string",format:"date",title:Q},e[64]=Q,e[65]=W):W=e[65];let q;e[66]!==s.date?(q=I(s.date),e[66]=s.date,e[67]=q):q=e[67];let Y;e[68]!==o?(Y=N=>o("date",N),e[68]=o,e[69]=Y):Y=e[69];let R;e[70]!==i?(R=i("sandbox.postEditor.dateLabel"),e[70]=i,e[71]=R):R=e[71];let A;e[72]!==W||e[73]!==q||e[74]!==Y||e[75]!==R?(A=t.jsx(ze,{schema:W,value:q,onChange:Y,path:"post-date",label:R}),e[72]=W,e[73]=q,e[74]=Y,e[75]=R,e[76]=A):A=e[76];let J;e[77]!==i?(J=i("sandbox.postEditor.readTimeLabel"),e[77]=i,e[78]=J):J=e[78];let _;e[79]!==J?(_={type:"integer",title:J},e[79]=J,e[80]=_):_=e[80];const X=typeof s.readTime=="number"?s.readTime:void 0;let oe;e[81]!==o?(oe=N=>o("readTime",N),e[81]=o,e[82]=oe):oe=e[82];let ie;e[83]!==i?(ie=i("sandbox.postEditor.readTimeLabel"),e[83]=i,e[84]=ie):ie=e[84];let le;e[85]!==_||e[86]!==X||e[87]!==oe||e[88]!==ie?(le=t.jsx(Yt,{schema:_,value:X,onChange:oe,path:"post-read-time",label:ie}),e[85]=_,e[86]=X,e[87]=oe,e[88]=ie,e[89]=le):le=e[89];let ae;e[90]!==G||e[91]!==A||e[92]!==le?(ae=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[G,A,le]}),e[90]=G,e[91]=A,e[92]=le,e[93]=ae):ae=e[93];const st=s.image,ot=s.mobileImage;let ne,re;e[94]!==o?(ne=N=>o("image",N),re=N=>o("mobileImage",N),e[94]=o,e[95]=ne,e[96]=re):(ne=e[95],re=e[96]);let ce;e[97]!==s.alt?(ce=I(s.alt),e[97]=s.alt,e[98]=ce):ce=e[98];let de;e[99]!==i?(de=i("sandbox.postEditor.coverImageLabel"),e[99]=i,e[100]=de):de=e[100];let me;e[101]!==s.image||e[102]!==s.mobileImage||e[103]!==ne||e[104]!==re||e[105]!==ce||e[106]!==de?(me=t.jsx(Mt,{value:st,mobileValue:ot,onChange:ne,onMobileChange:re,alt:ce,label:de}),e[101]=s.image,e[102]=s.mobileImage,e[103]=ne,e[104]=re,e[105]=ce,e[106]=de,e[107]=me):me=e[107];let pe;e[108]!==i?(pe=i("sandbox.postEditor.coverAltLabel"),e[108]=i,e[109]=pe):pe=e[109];let ue;e[110]!==i?(ue=i("sandbox.postEditor.coverAltDescription"),e[110]=i,e[111]=ue):ue=e[111];let fe;e[112]!==pe||e[113]!==ue?(fe={type:"string",title:pe,description:ue},e[112]=pe,e[113]=ue,e[114]=fe):fe=e[114];let xe;e[115]!==s.alt?(xe=I(s.alt),e[115]=s.alt,e[116]=xe):xe=e[116];let he;e[117]!==o?(he=N=>o("alt",N),e[117]=o,e[118]=he):he=e[118];let ge;e[119]!==i?(ge=i("sandbox.postEditor.coverAltLabel"),e[119]=i,e[120]=ge):ge=e[120];let be;e[121]!==fe||e[122]!==xe||e[123]!==he||e[124]!==ge?(be=t.jsx(ze,{schema:fe,value:xe,onChange:he,path:"post-alt",label:ge}),e[121]=fe,e[122]=xe,e[123]=he,e[124]=ge,e[125]=be):be=e[125];let je;e[126]!==me||e[127]!==be?(je=t.jsxs("div",{className:"space-y-2",children:[me,be]}),e[126]=me,e[127]=be,e[128]=je):je=e[128];let ve;e[129]!==i?(ve=i("sandbox.postEditor.authorsLabel"),e[129]=i,e[130]=ve):ve=e[130];let ye;e[131]!==o?(ye=N=>o("authors",N),e[131]=o,e[132]=ye):ye=e[132];let Se;e[133]!==l||e[134]!==s.authors||e[135]!==ve||e[136]!==ye?(Se=t.jsx(Qe,{label:ve,decofile:l,kind:"authors",valueField:"email",toRef:io,selected:s.authors,onChange:ye}),e[133]=l,e[134]=s.authors,e[135]=ve,e[136]=ye,e[137]=Se):Se=e[137];let _e;e[138]!==i?(_e=i("sandbox.postEditor.categoriesLabel"),e[138]=i,e[139]=_e):_e=e[139];let ke;e[140]!==o?(ke=N=>o("categories",N),e[140]=o,e[141]=ke):ke=e[141];let Ee;e[142]!==l||e[143]!==s.categories||e[144]!==_e||e[145]!==ke?(Ee=t.jsx(Qe,{label:_e,decofile:l,kind:"categories",valueField:"slug",toRef:oo,selected:s.categories,onChange:ke}),e[142]=l,e[143]=s.categories,e[144]=_e,e[145]=ke,e[146]=Ee):Ee=e[146];let Ce;e[147]!==o?(Ce=N=>o("extraProps",N),e[147]=o,e[148]=Ce):Ce=e[148];let Ne;e[149]!==s.extraProps||e[150]!==Ce?(Ne=t.jsx(no,{value:s.extraProps,onChange:Ce}),e[149]=s.extraProps,e[150]=Ce,e[151]=Ne):Ne=e[151];let Pe;e[152]!==o?(Pe=N=>o("seo",N),e[152]=o,e[153]=Pe):Pe=e[153];let Te;e[154]!==s.seo||e[155]!==Pe?(Te=t.jsx(ao,{value:s.seo,onChange:Pe}),e[154]=s.seo,e[155]=Pe,e[156]=Te):Te=e[156];let Fe;return e[157]!==F||e[158]!==ae||e[159]!==je||e[160]!==Se||e[161]!==Ee||e[162]!==Ne||e[163]!==Te||e[164]!==S?(Fe=t.jsxs("div",{className:"space-y-5",children:[S,F,ae,je,Se,Ee,Ne,Te]}),e[157]=F,e[158]=ae,e[159]=je,e[160]=Se,e[161]=Ee,e[162]=Ne,e[163]=Te,e[164]=S,e[165]=Fe):Fe=e[165],Fe}function oo(a){return{name:I(a.name),slug:I(a.slug)}}function io(a){return{...a}}function lo(a){return I(a.payload.slug)}function ao(a){const e=se.c(93),{value:s,onChange:l}=a,o=ee();let d;e[0]!==s?(d=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=d):d=e[1];const n=d;let c;e[2]!==l||e[3]!==n?(c=(A,J)=>l({...n,[A]:J}),e[2]=l,e[3]=n,e[4]=c):c=e[4];const i=c;let p;e[5]!==o?(p=o("sandbox.postEditor.seoSectionLabel"),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==p?(x=t.jsx("p",{className:"text-sm font-medium",children:p}),e[7]=p,e[8]=x):x=e[8];let f;e[9]!==o?(f=o("sandbox.postEditor.seoSectionHint"),e[9]=o,e[10]=f):f=e[10];let g;e[11]!==f?(g=t.jsx("p",{className:"text-xs text-muted-foreground",children:f}),e[11]=f,e[12]=g):g=e[12];let r;e[13]!==x||e[14]!==g?(r=t.jsxs("div",{className:"space-y-1",children:[x,g]}),e[13]=x,e[14]=g,e[15]=r):r=e[15];let u;e[16]!==o?(u=o("sandbox.postEditor.seoTitleLabel"),e[16]=o,e[17]=u):u=e[17];let m;e[18]!==u?(m=t.jsx(te,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=m):m=e[19];let h;e[20]!==n.title?(h=I(n.title),e[20]=n.title,e[21]=h):h=e[21];let y;e[22]!==i?(y=A=>i("title",A.target.value),e[22]=i,e[23]=y):y=e[23];let k;e[24]!==h||e[25]!==y?(k=t.jsx(Ae,{id:"post-seo-title",value:h,onChange:y,className:"h-10"}),e[24]=h,e[25]=y,e[26]=k):k=e[26];let T;e[27]!==k||e[28]!==m?(T=t.jsxs("div",{className:"space-y-2",children:[m,k]}),e[27]=k,e[28]=m,e[29]=T):T=e[29];let D;e[30]!==o?(D=o("sandbox.postEditor.seoDescriptionLabel"),e[30]=o,e[31]=D):D=e[31];let B;e[32]!==D?(B=t.jsx(te,{htmlFor:"post-seo-description",children:D}),e[32]=D,e[33]=B):B=e[33];let j;e[34]!==n.description?(j=I(n.description),e[34]=n.description,e[35]=j):j=e[35];let E;e[36]!==i?(E=A=>i("description",A.target.value),e[36]=i,e[37]=E):E=e[37];let v;e[38]!==j||e[39]!==E?(v=t.jsx(Je,{id:"post-seo-description",value:j,onChange:E,rows:2}),e[38]=j,e[39]=E,e[40]=v):v=e[40];let C;e[41]!==B||e[42]!==v?(C=t.jsxs("div",{className:"space-y-2",children:[B,v]}),e[41]=B,e[42]=v,e[43]=C):C=e[43];let b;e[44]!==o?(b=o("sandbox.postEditor.seoImageLabel"),e[44]=o,e[45]=b):b=e[45];let S;e[46]!==b?(S={type:"string",format:"image-uri",title:b},e[46]=b,e[47]=S):S=e[47];const L=n.image;let P;e[48]!==i?(P=A=>i("image",A),e[48]=i,e[49]=P):P=e[49];let w;e[50]!==o?(w=o("sandbox.postEditor.seoImageLabel"),e[50]=o,e[51]=w):w=e[51];let z;e[52]!==n.image||e[53]!==S||e[54]!==P||e[55]!==w?(z=t.jsx(zt,{schema:S,value:L,onChange:P,path:"post-seo-image",label:w}),e[52]=n.image,e[53]=S,e[54]=P,e[55]=w,e[56]=z):z=e[56];let U;e[57]!==o?(U=o("sandbox.postEditor.seoCanonicalLabel"),e[57]=o,e[58]=U):U=e[58];let F;e[59]!==U?(F=t.jsx(te,{htmlFor:"post-seo-canonical",children:U}),e[59]=U,e[60]=F):F=e[60];let M;e[61]!==n.canonical?(M=I(n.canonical),e[61]=n.canonical,e[62]=M):M=e[62];let $;e[63]!==i?($=A=>i("canonical",A.target.value),e[63]=i,e[64]=$):$=e[64];let Z;e[65]!==o?(Z=o("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=o,e[66]=Z):Z=e[66];let H;e[67]!==M||e[68]!==$||e[69]!==Z?(H=t.jsx(Ae,{id:"post-seo-canonical",value:M,onChange:$,placeholder:Z,className:"h-10"}),e[67]=M,e[68]=$,e[69]=Z,e[70]=H):H=e[70];let V;e[71]!==F||e[72]!==H?(V=t.jsxs("div",{className:"space-y-2",children:[F,H]}),e[71]=F,e[72]=H,e[73]=V):V=e[73];let O;e[74]!==o?(O=o("sandbox.postEditor.seoNoIndexingLabel"),e[74]=o,e[75]=O):O=e[75];let G;e[76]!==O?(G=t.jsx(te,{htmlFor:"post-seo-no-indexing",children:O}),e[76]=O,e[77]=G):G=e[77];const Q=n.noIndexing===!0;let W;e[78]!==i?(W=A=>i("noIndexing",A),e[78]=i,e[79]=W):W=e[79];let q;e[80]!==Q||e[81]!==W?(q=t.jsx(Ot,{id:"post-seo-no-indexing",checked:Q,onCheckedChange:W}),e[80]=Q,e[81]=W,e[82]=q):q=e[82];let Y;e[83]!==G||e[84]!==q?(Y=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[G,q]}),e[83]=G,e[84]=q,e[85]=Y):Y=e[85];let R;return e[86]!==T||e[87]!==C||e[88]!==z||e[89]!==V||e[90]!==Y||e[91]!==r?(R=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[r,T,C,z,V,Y]}),e[86]=T,e[87]=C,e[88]=z,e[89]=V,e[90]=Y,e[91]=r,e[92]=R):R=e[92],R}function no(a){const e=se.c(24),{value:s,onChange:l}=a,o=ee();let d,n,c,i;if(e[0]!==l||e[1]!==o||e[2]!==s){d=Xs(s);const r=(m,h)=>l(d.map((y,k)=>k===m?{...y,...h}:y));n="space-y-2";let u;e[7]!==o?(u=o("sandbox.postEditor.extraPropsLabel"),e[7]=o,e[8]=u):u=e[8],e[9]!==u?(c=t.jsx(te,{children:u}),e[9]=u,e[10]=c):c=e[10],i=d.length>0&&t.jsx("ul",{className:"space-y-2",children:d.map((m,h)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(Ae,{value:m.key,onChange:y=>r(h,{key:y.target.value}),placeholder:o("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(Ae,{value:m.value,onChange:y=>r(h,{value:y.target.value}),placeholder:o("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(rs,{label:o("sandbox.postEditor.removePropLabel"),onClick:()=>l(d.filter((y,k)=>k!==h))})]},h))}),e[0]=l,e[1]=o,e[2]=s,e[3]=d,e[4]=n,e[5]=c,e[6]=i}else d=e[3],n=e[4],c=e[5],i=e[6];let p;e[11]!==o?(p=o("sandbox.postEditor.addPropLabel"),e[11]=o,e[12]=p):p=e[12];let x;e[13]!==d||e[14]!==l?(x=()=>l([...d,{key:"",value:""}]),e[13]=d,e[14]=l,e[15]=x):x=e[15];let f;e[16]!==p||e[17]!==x?(f=t.jsx(ps,{label:p,onClick:x}),e[16]=p,e[17]=x,e[18]=f):f=e[18];let g;return e[19]!==n||e[20]!==c||e[21]!==i||e[22]!==f?(g=t.jsxs("div",{className:n,children:[c,i,f]}),e[19]=n,e[20]=c,e[21]=i,e[22]=f,e[23]=g):g=e[23],g}function Qe(a){const e=se.c(24),{label:s,decofile:l,kind:o,valueField:d,toRef:n,selected:c,onChange:i}=a,p=ee();let x;e[0]!==l||e[1]!==o||e[2]!==c||e[3]!==n||e[4]!==d?(x=ns({records:et(l,o),selected:c,valueField:d,toRef:n}),e[0]=l,e[1]=o,e[2]=c,e[3]=n,e[4]=d,e[5]=x):x=e[5];const{options:f,selectedValues:g,refsForValues:r}=x;let u;e[6]!==o||e[7]!==p?(u=p(o==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=o,e[7]=p,e[8]=u):u=e[8];const m=u;let h;e[9]!==o||e[10]!==p?(h=p(o==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=o,e[10]=p,e[11]=h):h=e[11];const y=h;let k;e[12]!==s?(k=t.jsx(te,{children:s}),e[12]=s,e[13]=k):k=e[13];let T;e[14]!==m||e[15]!==i||e[16]!==f||e[17]!==r||e[18]!==y||e[19]!==g?(T=f.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:m}):t.jsx(At,{options:f,defaultValue:g,onValueChange:B=>i(r(B)),placeholder:y,maxCount:4}),e[14]=m,e[15]=i,e[16]=f,e[17]=r,e[18]=y,e[19]=g,e[20]=T):T=e[20];let D;return e[21]!==k||e[22]!==T?(D=t.jsxs("div",{className:"space-y-2",children:[k,T]}),e[21]=k,e[22]=T,e[23]=D):D=e[23],D}function Vl(a){const e=se.c(10),s=a.block!==void 0;let l;e[0]!==a?(l=t.jsx(eo,{...a}),e[0]=a,e[1]=l):l=e[1];let o;return e[2]!==a.blockKey||e[3]!==a.branch||e[4]!==a.decofile||e[5]!==a.orgSlug||e[6]!==a.virtualMcpId||e[7]!==s||e[8]!==l?(o=t.jsx(Gt,{listing:a.decofile,orgSlug:a.orgSlug,virtualMcpId:a.virtualMcpId,branch:a.branch,blockKey:a.blockKey,present:s,children:l}),e[2]=a.blockKey,e[3]=a.branch,e[4]=a.decofile,e[5]=a.orgSlug,e[6]=a.virtualMcpId,e[7]=s,e[8]=l,e[9]=o):o=e[9],o}export{Vl as PostEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,b as D,d as ne,f as re,ae as oe,j as t,B as Q,a7 as ce,n as de,x as W,m as X}from"./index-
|
|
1
|
+
import{c as E,b as D,d as ne,f as re,ae as oe,j as t,B as Q,a7 as ce,n as de,x as W,m as X}from"./index-BKpLGEvk.js";import{I as ae}from"./icon-button-BXu6Qjya.js";import{c as Y,T as Z,a as ee}from"./tooltip-CHkAenL4.js";import{m as fe,aO as me,af as xe,O as he}from"./agent-icon-BFR8_3zP.js";import{s as pe}from"./XClose-CjAbxo6W.js";import{F as te,t as V,H as ue}from"./file-share-button-BJO30SNe.js";import{f as je,F as be,a as ge}from"./file-preview-CgYNe-Mr.js";import{F as se}from"./file-type-icon-e_gGiYxT.js";import{c as ve,a as we,e as ye}from"./use-org-fs-EF-fi1l8.js";import{O as Pe,J as Ce}from"./chat-context-CYceSwsW.js";function Ne(j){const e=E.c(13),{previewPath:l}=j,m=D(),r=ne(),p=re({strict:!1}).org??"";let s;e[0]!==l?(s=l.split("/").slice(0,-1).join("/"),e[0]=l,e[1]=s):s=e[1];const o=s;let a;e[2]!==r||e[3]!==p||e[4]!==o||e[5]!==l?(a=()=>{r({to:oe.library,params:{org:p},search:{path:o||void 0,preview:l}})},e[2]=r,e[3]=p,e[4]=o,e[5]=l,e[6]=a):a=e[6];const c=a;let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(fe,{size:14}),e[7]=b):b=e[7];let u;e[8]!==m?(u=m("library.seeInLibrary.label"),e[8]=m,e[9]=u):u=e[9];let x;return e[10]!==c||e[11]!==u?(x=t.jsxs(Q,{variant:"ghost",size:"sm",onClick:c,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:[b,u]}),e[10]=c,e[11]=u,e[12]=x):x=e[12],x}const Fe=j=>/\.html?$/i.test(j);function le(j){switch(j){case"dialog":return"h-11 py-1 pr-12 pl-2";case"panel":return"h-9 px-2";case"aside":return"h-12 gap-2 px-1.5";default:return j}}function ke(j){const e=E.c(12),{expanded:l,onToggle:m,placement:r}=j,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];const o=l?"library.previewContent.collapse":"library.previewContent.expand";let a;e[2]!==p||e[3]!==o?(a=p(o),e[2]=p,e[3]=o,e[4]=a):a=e[4];let c;e[5]!==l?(c=l?t.jsx(xe,{size:14}):t.jsx(he,{size:14}),e[5]=l,e[6]=c):c=e[6];let b;return e[7]!==m||e[8]!==s||e[9]!==a||e[10]!==c?(b=t.jsx(ae,{...s,label:a,tooltipSide:"bottom",onClick:m,children:c}),e[7]=m,e[8]=s,e[9]=a,e[10]=c,e[11]=b):b=e[11],b}function ie(j){const e=E.c(9),{onClose:l,placement:m}=j,r=m===void 0?"bar":m,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];let o;e[2]!==p?(o=p("library.previewContent.close"),e[2]=p,e[3]=o):o=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(pe,{size:14}),e[4]=a):a=e[4];let c;return e[5]!==l||e[6]!==s||e[7]!==o?(c=t.jsx(ae,{...s,label:o,tooltipSide:"bottom",onClick:l,children:a}),e[5]=l,e[6]=s,e[7]=o,e[8]=c):c=e[8],c}function _e(j){const e=E.c(92),{previewPath:l,onClose:m,expand:r,showSeeInLibrary:p,variant:s}=j,o=p===void 0?!1:p,a=D();let c;e[0]!==l?(c=Pe(l),e[0]=l,e[1]=c):c=e[1];const b=c,{volume:u,dirPath:x}=b,{data:f,isPending:A}=ve(u,x),H=we(u??"");let w,y,n,d,h,i,P,B;if(e[2]!==H||e[3]!==f||e[4]!==r||e[5]!==x||e[6]!==l||e[7]!==o||e[8]!==s){d=Ce(x),h=s==="dialog",i=r?.expanded?"topbar":s==="aside"?"aside":"bar";let g;e[17]!==i?(g=V(i),e[17]=i,e[18]=g):g=e[18],w=g;let T;e[19]!==r||e[20]!==i?(T=r?.onToggle&&t.jsx(ke,{expanded:r.expanded,onToggle:r.onToggle,placement:i}),e[19]=r,e[20]=i,e[21]=T):T=e[21],y=T;let v;e[22]!==l||e[23]!==o?(v=o?t.jsx(Ne,{previewPath:l}):null,e[22]=l,e[23]=o,e[24]=v):v=e[24],P=v,n=f&&f.kind==="file"?{key:l,filename:d,size:f.size,downloadUrl:H(f.path)}:null,B=n&&f&&Fe(d),e[2]=H,e[3]=f,e[4]=r,e[5]=x,e[6]=l,e[7]=o,e[8]=s,e[9]=w,e[10]=y,e[11]=n,e[12]=d,e[13]=h,e[14]=i,e[15]=P,e[16]=B}else w=e[9],y=e[10],n=e[11],d=e[12],h=e[13],i=e[14],P=e[15],B=e[16];if(B){let g;e[25]!==d||e[26]!==h?(g=h&&t.jsx(W,{className:"sr-only",children:d}),e[25]=d,e[26]=h,e[27]=g):g=e[27];const T=n.downloadUrl;let v;e[28]!==f?(v=ye(f),e[28]=f,e[29]=v):v=e[29];let z;e[30]!==s?(z=s==="panel"?void 0:le(s),e[30]=s,e[31]=z):z=e[31];const R=u==="home"?x:void 0,J=u??"",q=f.shareMode??"private",G=f.effectivePublic??!1,K=window.location.origin+n.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==q||e[35]!==G||e[36]!==K||e[37]!==J?(S=t.jsx(te,{volume:J,path:x,shareMode:q,effectivePublic:G,url:K,placement:i}),e[32]=x,e[33]=i,e[34]=q,e[35]=G,e[36]=K,e[37]=J,e[38]=S):S=e[38];let U;e[39]!==y||e[40]!==h||e[41]!==m||e[42]!==i?(U=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[39]=y,e[40]=h,e[41]=m,e[42]=i,e[43]=U):U=e[43];let I;e[44]!==P||e[45]!==S||e[46]!==U?(I=t.jsxs(t.Fragment,{children:[S,P,U]}),e[44]=P,e[45]=S,e[46]=U,e[47]=I):I=e[47];let L;e[48]!==n.downloadUrl||e[49]!==d||e[50]!==i||e[51]!==l||e[52]!==I||e[53]!==v||e[54]!==z||e[55]!==R?(L=t.jsx(ue,{readUrl:T,marker:v,toolbarClassName:z,title:d,placement:i,savePath:R,trailing:I},l),e[48]=n.downloadUrl,e[49]=d,e[50]=i,e[51]=l,e[52]=I,e[53]=v,e[54]=z,e[55]=R,e[56]=L):L=e[56];let _;return e[57]!==L||e[58]!==g?(_=t.jsxs(t.Fragment,{children:[g,L]}),e[57]=L,e[58]=g,e[59]=_):_=e[59],_}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==n||e[64]!==x||e[65]!==i||e[66]!==a||e[67]!==u?(C=n&&t.jsxs(t.Fragment,{children:[t.jsx(te,{volume:u??"",path:x,shareMode:f?.shareMode??"private",effectivePublic:f?.effectivePublic??!1,url:window.location.origin+n.downloadUrl,placement:i}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,asChild:!0,children:t.jsx("a",{href:n.downloadUrl,download:n.filename,children:t.jsx(me,{size:14})})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.download")})]}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,onClick:()=>window.open(n.downloadUrl,"_blank","noopener"),children:t.jsx(ce,{size:14})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.openInNewTab")})]})]}),e[60]=w,e[61]=f?.effectivePublic,e[62]=f?.shareMode,e[63]=n,e[64]=x,e[65]=i,e[66]=a,e[67]=u,e[68]=C):C=e[68];let N;e[69]!==y||e[70]!==h||e[71]!==m||e[72]!==i?(N=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[69]=y,e[70]=h,e[71]=m,e[72]=i,e[73]=N):N=e[73];let $;e[74]!==C||e[75]!==N?($=t.jsxs(t.Fragment,{children:[C,N]}),e[74]=C,e[75]=N,e[76]=$):$=e[76];const M=$;let F;e[77]!==M||e[78]!==n||e[79]!==d||e[80]!==h||e[81]!==i||e[82]!==s?(F=i==="topbar"?t.jsx(de.Actions,{children:M}):t.jsxs("div",{className:X("flex shrink-0 items-center gap-1 border-b border-border/60",le(s)),children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[t.jsx(se,{filename:d,className:"h-4.5 w-3.5 shrink-0"}),h?t.jsx(W,{className:"truncate text-xs font-medium text-foreground",children:d}):t.jsx("span",{className:X("truncate font-medium text-foreground",i==="aside"?"text-sm":"text-xs"),children:d}),n&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:je(n.size)})]}),M]}),e[77]=M,e[78]=n,e[79]=d,e[80]=h,e[81]=i,e[82]=s,e[83]=F):F=e[83];let k;e[84]!==n||e[85]!==d||e[86]!==A||e[87]!==a?(k=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:n?t.jsx(be,{file:n}):A?t.jsx(ge,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(se,{filename:d,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:a("library.previewContent.fileNotAvailable")})]})}),e[84]=n,e[85]=d,e[86]=A,e[87]=a,e[88]=k):k=e[88];let O;return e[89]!==F||e[90]!==k?(O=t.jsxs(t.Fragment,{children:[F,k]}),e[89]=F,e[90]=k,e[91]=O):O=e[91],O}export{_e as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,j as l,v as x,D as f}from"./index-
|
|
1
|
+
import{c as p,j as l,v as x,D as f}from"./index-BKpLGEvk.js";import{L as h}from"./preview-content-BTrjkSSQ.js";function g(c){const e=p.c(9),{previewPath:r,onClose:o,showSeeInLibrary:n}=c,a=n===void 0?!1:n;let i;e[0]!==o?(i=m=>{m||o()},e[0]=o,e[1]=i):i=e[1];let s;e[2]!==o||e[3]!==r||e[4]!==a?(s=l.jsx(x,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"top-2 right-3",children:l.jsx(h,{previewPath:r,onClose:o,showSeeInLibrary:a,variant:"dialog"})}),e[2]=o,e[3]=r,e[4]=a,e[5]=s):s=e[5];let t;return e[6]!==i||e[7]!==s?(t=l.jsx(f,{open:!0,onOpenChange:i,children:s}),e[6]=i,e[7]=s,e[8]=t):t=e[8],t}export{g as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,j as c}from"./index-
|
|
1
|
+
import{c as p,j as c}from"./index-BKpLGEvk.js";import{L as x}from"./preview-content-BTrjkSSQ.js";function u(f){const e=p.c(6),{previewPath:i,onClose:o,showSeeInLibrary:n,expand:a,variant:l}=f,s=n===void 0?!1:n,t=l===void 0?"panel":l;let r;return e[0]!==a||e[1]!==o||e[2]!==i||e[3]!==s||e[4]!==t?(r=c.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:c.jsx(x,{previewPath:i,onClose:o,showSeeInLibrary:s,expand:a,variant:t})}),e[0]=a,e[1]=o,e[2]=i,e[3]=s,e[4]=t,e[5]=r):r=e[5],r}export{u as L};
|