decocms 4.619.8 → 4.619.10
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-D2NouvfT.js → AlertCircle-D1Q8X__K.js} +1 -1
- package/dist/client/assets/{AreaChart-C69ZZsoI.js → AreaChart-CZ4CFQOF.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BqT0JjoT.js → ArrowLeft-a7zQohPB.js} +1 -1
- package/dist/client/assets/{ArrowRight-drioiso6.js → ArrowRight-CcdemY_e.js} +1 -1
- package/dist/client/assets/{ArrowUp-BX4O3cRq.js → ArrowUp-BjMuYXEC.js} +1 -1
- package/dist/client/assets/{BookOpen01-3jk6-b2F.js → BookOpen01-Caac9KpE.js} +1 -1
- package/dist/client/assets/{CartesianChart-Cq8jOByd.js → CartesianChart-B0jOalhe.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DpckCE8K.js → CategoricalChart-CCxFJJjf.js} +1 -1
- package/dist/client/assets/{CheckCircle-CLvYssUd.js → CheckCircle-BygonUdk.js} +1 -1
- package/dist/client/assets/{ChevronDown-DAnJt1CB.js → ChevronDown-BDwdJQzR.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CV3zcNGH.js → ChevronSelectorVertical-BAKnniO6.js} +1 -1
- package/dist/client/assets/{ChevronUp-OFnHDyjq.js → ChevronUp-CoA7d7vl.js} +1 -1
- package/dist/client/assets/{CreditCard01-HXOYzid-.js → CreditCard01-BD4H9Smc.js} +1 -1
- package/dist/client/assets/{Eye-CmYcf8ai.js → Eye-B8RfELJD.js} +1 -1
- package/dist/client/assets/{File02-7Vd4jW_I.js → File02-CNp6lbfd.js} +1 -1
- package/dist/client/assets/{Fingerprint04-6UGroDLU.js → Fingerprint04-CYuFFJ8_.js} +1 -1
- package/dist/client/assets/{Globe04-24mKQ9Ao.js → Globe04-DGpfgXDy.js} +1 -1
- package/dist/client/assets/{Image01-BXYfiVgr.js → Image01-DZ0d0gl4.js} +1 -1
- package/dist/client/assets/{Key01-B_hS_62c.js → Key01-CCL-qpBw.js} +1 -1
- package/dist/client/assets/{LayoutLeft-FMo6Osev.js → LayoutLeft-D6A6HKPj.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Cq1VpHt5.js → LinkBroken01-DZpjy5h4.js} +1 -1
- package/dist/client/assets/{MessageCircle01-cLkYRAq1.js → MessageCircle01-Vr9v9ZLf.js} +1 -1
- package/dist/client/assets/{Minus-CpAwDyCu.js → Minus-Cdvi1RtF.js} +1 -1
- package/dist/client/assets/{Monitor01-BgljY9mZ.js → Monitor01-BKLXdSAu.js} +1 -1
- package/dist/client/assets/{Play-B8qXRmXx.js → Play-KnC-ePg8.js} +1 -1
- package/dist/client/assets/{Plus-CMPQGYNJ.js → Plus-fnuC_-Ii.js} +1 -1
- package/dist/client/assets/{ReferenceLine-Bcj8UdgJ.js → ReferenceLine-BWtcsB8X.js} +1 -1
- package/dist/client/assets/{SearchMd-BRrpiXaK.js → SearchMd-C7M41YQV.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Lv_lXKl3.js → ShoppingBag01-D27zZ3nR.js} +1 -1
- package/dist/client/assets/{Sun-DiXyHGM-.js → Sun-TBLvGE97.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CoKNU7eN.js → SwitchHorizontal01-D47eRm9A.js} +1 -1
- package/dist/client/assets/{Tool01-CQpf9QHt.js → Tool01-eLaAOwHX.js} +1 -1
- package/dist/client/assets/{Tooltip-CVOw8Oes.js → Tooltip-BVDzZkXm.js} +1 -1
- package/dist/client/assets/{Trash01-Dw3BP1yz.js → Trash01-C_glH0wy.js} +1 -1
- package/dist/client/assets/{Upload01-DGYPOiPg.js → Upload01-VrBKSmfZ.js} +1 -1
- package/dist/client/assets/{UserCheck01-Bl-xFtn-.js → UserCheck01-BiEm5Ebz.js} +1 -1
- package/dist/client/assets/{UserSquare-BlZFBeJE.js → UserSquare-DRonBRNm.js} +1 -1
- package/dist/client/assets/{Users01-y41RvLhz.js → Users01-CYW34Us_.js} +1 -1
- package/dist/client/assets/{XClose-CNBL86j1.js → XClose-xoNzv1jt.js} +1 -1
- package/dist/client/assets/{Zap-CjPlT3gP.js → Zap-Ch4l-t5Z.js} +1 -1
- package/dist/client/assets/{access-gate-D0QZMBM8.js → access-gate-CNfTTZux.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Da-94zWB.js → add-connection-dialog--_GdeImt.js} +1 -1
- package/dist/client/assets/agent-app-1gb3fP-R.js +1 -0
- package/dist/client/assets/{agent-assets-C5rXkHpB.js → agent-assets-B9TTg2qM.js} +1 -1
- package/dist/client/assets/{agent-automation-DdRoXUCi.js → agent-automation-Mtl2x19j.js} +1 -1
- package/dist/client/assets/{agent-automations-CP0SoeZd.js → agent-automations-8oFrbM5G.js} +1 -1
- package/dist/client/assets/{agent-blog-B6woE9FU.js → agent-blog-FC7eW83-.js} +2 -2
- package/dist/client/assets/{agent-blog-post-CcqCot21.js → agent-blog-post-Dpmyvzzj.js} +2 -2
- package/dist/client/assets/{agent-business-case-Duf4Cs8G.js → agent-business-case-DEp0r6mM.js} +1 -1
- package/dist/client/assets/{agent-calendar-BxmvIlWp.js → agent-calendar-B6FrBIj9.js} +1 -1
- package/dist/client/assets/{agent-capabilities-BY-9tVop.js → agent-capabilities-CkWGD_1I.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DRkyMPTr.js → agent-connect-sources-Bc_bs6sE.js} +1 -1
- package/dist/client/assets/agent-deck-CmXstFXo.js +1 -0
- package/dist/client/assets/{agent-e2e-DqkFVlDK.js → agent-e2e-BxjBBycE.js} +1 -1
- package/dist/client/assets/agent-experiments-CDey06Av.js +1 -0
- package/dist/client/assets/agent-file-nF-v4TIq.js +1 -0
- package/dist/client/assets/{agent-hosting-B81aZJg8.js → agent-hosting-CFqNbgT1.js} +1 -1
- package/dist/client/assets/{agent-icon-Di7zqlxT.js → agent-icon-DFYKaa0c.js} +1 -1
- package/dist/client/assets/agent-library-DpY5A561.js +1 -0
- package/dist/client/assets/agent-library-file-CWaKqX-p.js +1 -0
- package/dist/client/assets/agent-overview-DtRPdBry.js +1 -0
- package/dist/client/assets/{agent-releases-BKSsiYLJ.js → agent-releases-wE_sFDN-.js} +1 -1
- package/dist/client/assets/agent-settings-BAi3GmmG.js +1 -0
- package/dist/client/assets/{agent-site-editor-CThnBNcc.js → agent-site-editor-C0q8LvFu.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-MFqRb2Ue.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Bb5YwChE.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DRcDZGPw.js +1 -0
- package/dist/client/assets/agent-view-B24byKnk.js +1 -0
- package/dist/client/assets/{agent-view-guard-CwnSIu1-.js → agent-view-guard-DKuyN-80.js} +1 -1
- package/dist/client/assets/{ai-providers-BABgYL-0.js → ai-providers-qOMkGjqx.js} +1 -1
- package/dist/client/assets/{alert-CmpLSGbv.js → alert-DosQ3gDY.js} +1 -1
- package/dist/client/assets/{analytics-sections-ozEgo_XG.js → analytics-sections-CD1kYfMD.js} +1 -1
- package/dist/client/assets/{api-keys-DyM3zmsB.js → api-keys-C1SgriUZ.js} +1 -1
- package/dist/client/assets/api-keys-umCPf2jI.js +1 -0
- package/dist/client/assets/{app-editor-Bvtw4ylo.js → app-editor-BlBVNt7A.js} +1 -1
- package/dist/client/assets/{asset-utils-hNqdjb20.js → asset-utils-BK2ot-jO.js} +1 -1
- package/dist/client/assets/{auth-catchall-CAO8d9Fp.js → auth-catchall-Brs6Xsvy.js} +1 -1
- package/dist/client/assets/{auth-entry-BIRQU4mc.js → auth-entry-By-AdTxA.js} +1 -1
- package/dist/client/assets/{auth-split-layout-XFJP-UEn.js → auth-split-layout-CKfdFrqW.js} +1 -1
- package/dist/client/assets/{auth-B-a5Zgxg.js → auth-xINlnEh8.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BJKvJQB_.js → authenticate-and-persist-oauth-CfAul8ih.js} +1 -1
- package/dist/client/assets/{automation-list-row-CdbPiLrN.js → automation-list-row-xGe3-vaO.js} +1 -1
- package/dist/client/assets/{automation-runs-FHf4-haW.js → automation-runs-DUyTfm-1.js} +1 -1
- package/dist/client/assets/{automations-DjrGqdOo.js → automations-Cl7RIbcD.js} +1 -1
- package/dist/client/assets/{badge-CLRPbUCC.js → badge-By3J5rC3.js} +1 -1
- package/dist/client/assets/{block-document-DUuq2ZeF.js → block-document-Bog58LB_.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CHO07sy_.js → blocks-preview-workspace-context-BEc68w0W.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DyZqVv-l.js → blocks-tab-states-C-fKJR1R.js} +1 -1
- package/dist/client/assets/{blog-preview-url-B7yZ2G-y.js → blog-preview-url-B9jP2xxs.js} +1 -1
- package/dist/client/assets/{blog-schema-C2hFTN-o.js → blog-schema-03G2DeQU.js} +1 -1
- package/dist/client/assets/{blog-source-gate-Ce60HIPG.js → blog-source-gate-D0f9lC6c.js} +1 -1
- package/dist/client/assets/{blog-view-gate-4XPksI2p.js → blog-view-gate-Cd7nZI43.js} +1 -1
- package/dist/client/assets/{buckets-CYMX4NUg.js → buckets-DItzj1C4.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DnoDBpzy.js → build-improve-prompt-doc-DhyvYeik.js} +1 -1
- package/dist/client/assets/{calendar-CuW1bMpF.js → calendar-DhrCDRQ3.js} +1 -1
- package/dist/client/assets/{capability-load-error-Cv8kMWPd.js → capability-load-error-CDIQe4e8.js} +1 -1
- package/dist/client/assets/{category-editor-DTHjgA1h.js → category-editor-df2u5p7v.js} +1 -1
- package/dist/client/assets/{category-tree-Czed1V_u.js → category-tree-ldYsSWnP.js} +1 -1
- package/dist/client/assets/{chart-CT2CjoCj.js → chart-Df8ROyLe.js} +1 -1
- package/dist/client/assets/{chat-context-DytZnaTl.js → chat-context-CqcR4aAu.js} +1 -1
- package/dist/client/assets/{chat-draft-CR3QGF0K.js → chat-draft-D6uyGiuZ.js} +1 -1
- package/dist/client/assets/{checkbox-DV2T_2wi.js → checkbox-Bg0tGTVi.js} +1 -1
- package/dist/client/assets/{choose-editor-D0ZELI37.js → choose-editor-Jha1HKKs.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CWwAkmlP.js → cli-auth-success-DfcdCs0V.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-159iosTN.js → cms-settings-editor-WLlijqQA.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BxkVhzpN.js → cms-store-drafts-2T-3kouy.js} +1 -1
- package/dist/client/assets/{collapsible-DL_QpL2k.js → collapsible-CxuxAsHp.js} +1 -1
- package/dist/client/assets/{collection-detail-D5h-mH7Y.js → collection-detail-CpK9gTgl.js} +1 -1
- package/dist/client/assets/{collection-display-button-CK1C97OD.js → collection-display-button-BifT3jIZ.js} +1 -1
- package/dist/client/assets/{collection-search-Daa7Sik-.js → collection-search-DhW2WLfL.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BUGBS30a.js → collection-table-wrapper-D0qUDiEO.js} +1 -1
- package/dist/client/assets/{collection-tabs-BOqc8wWl.js → collection-tabs-D91PU4y3.js} +1 -1
- package/dist/client/assets/{combobox-BzGXmufP.js → combobox-B-vXOMV-.js} +1 -1
- package/dist/client/assets/{command-DIXZqeHF.js → command-DmBlCsxL.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BRWozWTB.js → companion-mcps-section-DAiOKGeY.js} +1 -1
- package/dist/client/assets/{config-DrlLEd_m.js → config-DbV4O0C1.js} +1 -1
- package/dist/client/assets/{connect-BRiNWbHt.js → connect-BZ0g82Ew.js} +1 -1
- package/dist/client/assets/{connect-key-DoVs3WjL.js → connect-key-MkbzrmMb.js} +1 -1
- package/dist/client/assets/{connect-layout-gsj1teLb.js → connect-layout-Cs5HfFrd.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-CSv3fKzD.js → connect-source-dialog-C7Q-kV0F.js} +1 -1
- package/dist/client/assets/{connection-DDqO1q4H.js → connection-B7ZHR3E3.js} +1 -1
- package/dist/client/assets/{connection-card-B2AISi2n.js → connection-card-C1SHg1dG.js} +1 -1
- package/dist/client/assets/{connection-detail-CxZZixgF.js → connection-detail-Bc4itFWH.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Y3w8W20E.js → connection-form-helpers-tazbDTDK.js} +1 -1
- package/dist/client/assets/{connection-slug-Sdn-JTB2.js → connection-slug-B5tLzvCi.js} +1 -1
- package/dist/client/assets/{connections-Cak8mY84.js → connections-CSC_xdmG.js} +1 -1
- package/dist/client/assets/{content-changes-C9Vb6hJi.js → content-changes-JBgMg-Ro.js} +1 -1
- package/dist/client/assets/{content-tab-B6dyUrQE.js → content-tab-g282UVdE.js} +3 -3
- package/dist/client/assets/{context-menu-HaIM8tgp.js → context-menu-CUYerrUs.js} +1 -1
- package/dist/client/assets/{context-DFZn6cdt.js → context-qsn0J_YZ.js} +1 -1
- package/dist/client/assets/{context-shell-CBQjivxm.js → context-shell-BLRwg1tV.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-VS8AR8Z_.js → create-organization-dialog-BaKKV-VG.js} +1 -1
- package/dist/client/assets/{daily-pulse-CC4iC325.js → daily-pulse-UxYLZlxs.js} +1 -1
- package/dist/client/assets/{delete-copy-CyWTr2-i.js → delete-copy-DlW6ZUtG.js} +1 -1
- package/dist/client/assets/{device-hint-B3lp0cJx.js → device-hint-0_GHbWqS.js} +1 -1
- package/dist/client/assets/{discover-BtU_YkoX.js → discover-F-3cKQP2.js} +1 -1
- package/dist/client/assets/{domain-settings-bSyZQ9aD.js → domain-settings-CX6QeizD.js} +1 -1
- package/dist/client/assets/{drawer-Crz9l-4U.js → drawer-D_TsrN48.js} +1 -1
- package/dist/client/assets/{editor-Dh0u_vVE.js → editor-DHPR_ozC.js} +1 -1
- package/dist/client/assets/editor-classes-BLd4hHmH.js +1 -0
- package/dist/client/assets/{empty-state-P04ndpoN.js → empty-state-D1phlWfb.js} +1 -1
- package/dist/client/assets/{empty-state-WGRlYhaM.js → empty-state-L2cTHOLC.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DTUacXcI.js → experiments-tab-choice-BaZ_leSu.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DrEGE84f.js → extract-connection-data-D6-4uHNK.js} +1 -1
- package/dist/client/assets/{feature-gate-a1fFtbnM.js → feature-gate-BSqSDhFD.js} +1 -1
- package/dist/client/assets/{feature-paywall-vMBXIDf6.js → feature-paywall-CzZKQU6l.js} +1 -1
- package/dist/client/assets/{file-explorer-BQ_fjSNc.js → file-explorer-tOnk4J7V.js} +1 -1
- package/dist/client/assets/{file-preview-BDehN0W9.js → file-preview-C7hdL4Yc.js} +1 -1
- package/dist/client/assets/{file-share-button-C20Gsw-_.js → file-share-button-6nZQXE9V.js} +1 -1
- package/dist/client/assets/{file-type-icon-B7lWHf7B.js → file-type-icon-BIdp66kj.js} +1 -1
- package/dist/client/assets/{folder-icon-PWzAHUsx.js → folder-icon-BqHfg1r8.js} +1 -1
- package/dist/client/assets/{form-BkfFMNZc.js → form-W6JWpxT_.js} +1 -1
- package/dist/client/assets/{frame-navigation-Kdl21Hfd.js → frame-navigation-Df_5J1gU.js} +1 -1
- package/dist/client/assets/{gateway-client-Cj4FQJOw.js → gateway-client-ekFKMjOy.js} +1 -1
- package/dist/client/assets/{general-B4cm3pcf.js → general-Fd7CN8PL.js} +1 -1
- package/dist/client/assets/{github-icon-DspshkUP.js → github-icon-DVLt0ntX.js} +1 -1
- package/dist/client/assets/{held-block-view-BZwFWrfK.js → held-block-view-Bdat6dmL.js} +3 -3
- package/dist/client/assets/{home-overview-xTTroSa7.js → home-overview-BwTsNcY7.js} +1 -1
- package/dist/client/assets/{home-pUg5GzTR.js → home-qxlWWins.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-BFN835oz.js → hosted-reconcile-4JQ_9bXq.js} +1 -1
- package/dist/client/assets/{icon-button-Bb0nd3sO.js → icon-button-BKSgoP48.js} +1 -1
- package/dist/client/assets/{index-B-sjFG2T.js → index--W2AMK-X.js} +1 -1
- package/dist/client/assets/{index-Cc0IUGs-.js → index-AtaL2JD_.js} +1 -1
- package/dist/client/assets/{index-CQ_uABeR.js → index-B7lKid3Y.js} +1 -1
- package/dist/client/assets/{index-B-E9B78d.js → index-B8xqh-Zd.js} +1 -1
- package/dist/client/assets/{index-BxAV7FAM.js → index-BJcrWx9T.js} +1 -1
- package/dist/client/assets/{index-7UwjqA26.js → index-BsbFaHMN.js} +1 -1
- package/dist/client/assets/{index-UmJObwb7.js → index-CXT6KZgX.js} +1 -1
- package/dist/client/assets/{index-Bc8w-fWE.js → index-CZ_tLRoL.js} +1 -1
- package/dist/client/assets/{index-CELMEPYa.js → index-ChDgpo9K.js} +1 -1
- package/dist/client/assets/{index-BujNXjcQ.js → index-CjurNK9x.js} +1 -1
- package/dist/client/assets/{index-ZqZk5RgT.js → index-DAFFHpVi.js} +1 -1
- package/dist/client/assets/{index-DhAzuetW.js → index-Dcn6CILj.js} +1 -1
- package/dist/client/assets/{index-Bf6kDBJJ.js → index-DmyPeHtj.js} +3 -3
- package/dist/client/assets/{index-Dr_1WkX0.js → index-WM2yhiyo.js} +1 -1
- package/dist/client/assets/{index-C3wTiNEy.js → index-_reJwud9.js} +1 -1
- package/dist/client/assets/{index-D_pS5ZXh.js → index-gEUrUJcs.js} +1 -1
- package/dist/client/assets/{index-YMvV0kSt.js → index-nmSJ42Ew.js} +1 -1
- package/dist/client/assets/{index-redirect-BfNTYin8.js → index-redirect-DOqgK536.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-d7-nDzuW.js → infiniteQueryObserver-D9fycF8k.js} +1 -1
- package/dist/client/assets/{infra-billing-3COAyZJp.js → infra-billing-DpYvrDKr.js} +1 -1
- package/dist/client/assets/{input-1k9_lG9l.js → input-BqJq_7pW.js} +3 -3
- package/dist/client/assets/{input-CfERqe7P.js → input-wtbnNzNz.js} +1 -1
- package/dist/client/assets/{integration-icon-DS7lm2zI.js → integration-icon-92n5xPlq.js} +1 -1
- package/dist/client/assets/{item-actions-4ZXG0iY2.js → item-actions-xfXl6n2G.js} +1 -1
- package/dist/client/assets/{jira-icon-CRzccyEz.js → jira-icon-BibTQfLJ.js} +1 -1
- package/dist/client/assets/{label-pfJxqM6J.js → label-B61Mm8gW.js} +1 -1
- package/dist/client/assets/{layout-CSw48bym.js → layout-c2hOp6bu.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-CDOlAR4o.js → legacy-admin-welcome-dialog-DPVEA9Z4.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Dd3WVxqz.js → legacy-agents-deep-CALyvn1U.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DfUzTqEU.js → legacy-main-redirect-D7u9pyFK.js} +1 -1
- package/dist/client/assets/library-CIc0x0ue.js +1 -0
- package/dist/client/assets/{library-tab-yq1thSq0.js → library-tab-BAUunaiM.js} +1 -1
- package/dist/client/assets/{login-B4LbkEsb.js → login-DjyyzMPN.js} +1 -1
- package/dist/client/assets/{markdown-CPntqjcN.js → markdown-B7FqmO_Q.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Xh-Trx1u.js → mcp-app-renderer-BsX2Dy6R.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CAO7EHWk.js → mcp-oauth-BZS2Yc1A.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CMwgcXqt.js → mcp-oauth-BxD-kgyz.js} +1 -1
- package/dist/client/assets/{members-DjY6N4ko.js → members-CVRExxW3.js} +1 -1
- package/dist/client/assets/{memory-DmXV7qdS.js → memory-DncfhJaK.js} +1 -1
- package/dist/client/assets/{mock-board-BHaG5n0Y.js → mock-board-CfGWjmM1.js} +3 -3
- package/dist/client/assets/{monaco-editor-DyPQbQ4Z.js → monaco-editor-DVxpBvnd.js} +1 -1
- package/dist/client/assets/{monitoring-BARgKoFH.js → monitoring-Do3w8SMM.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B9ruwHI_.js → monitoring-stats-row-CD-LeMDq.js} +1 -1
- package/dist/client/assets/{multi-select-DrRX5wC0.js → multi-select-DZx7Z4ko.js} +1 -1
- package/dist/client/assets/{mustache-BHZ1gTAg.js → mustache-96ahxbWY.js} +1 -1
- package/dist/client/assets/{named-rule-step-TzfMLCDH.js → named-rule-step-DjZE94ti.js} +1 -1
- package/dist/client/assets/{named-rule-view-BFtQtNgP.js → named-rule-view-vshmzUJE.js} +1 -1
- package/dist/client/assets/{new-project-dialog-c3TMJ5k3.js → new-project-dialog-zI9XmIIv.js} +1 -1
- package/dist/client/assets/{new-project-store-DVbeCA79.js → new-project-store-BL2Sa0gM.js} +1 -1
- package/dist/client/assets/{oauth-callback-CdhNhJbe.js → oauth-callback-BxhTrPGN.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DMYFb0n0.js → oauth-callback-ai-provider-ebziW9F0.js} +1 -1
- package/dist/client/assets/{oauth-consent-By_E40J9.js → oauth-consent-CjunKK42.js} +1 -1
- package/dist/client/assets/{onboarding-B4HOaAjZ.js → onboarding-BJAPGBBw.js} +1 -1
- package/dist/client/assets/{openai-conversation-BQK-gK3W.js → openai-conversation-CBnYYe6I.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Dm2yJ3l1.js → optimistic-project-sidebar-views-BwCyFNBl.js} +1 -1
- package/dist/client/assets/{order-monitor-day-0TpAsxio.js → order-monitor-day-Bu7sDLhj.js} +1 -1
- package/dist/client/assets/{organization-choice-D41FfPig.js → organization-choice-CtrQA3cq.js} +1 -1
- package/dist/client/assets/{orgs-AqEAYtia.js → orgs-D8itwEwG.js} +1 -1
- package/dist/client/assets/{own-accounts-section-Yzc7sCur.js → own-accounts-section-CPpyw5Ls.js} +1 -1
- package/dist/client/assets/{pair-BUIEjsmP.js → pair-CgeeVvss.js} +1 -1
- package/dist/client/assets/{parse-sections-CUfOLBCD.js → parse-sections-C8e6hmLP.js} +2 -2
- package/dist/client/assets/{plan-ladder-l7IiO8Kx.js → plan-ladder-BuBxtLzi.js} +1 -1
- package/dist/client/assets/{plan-page-BAf6ZJGG.js → plan-page-DEHjjiXo.js} +1 -1
- package/dist/client/assets/plan-rJ9a3K5T.js +1 -0
- package/dist/client/assets/{plan-usage-card-BFW_rzn_.js → plan-usage-card-CrcTrR82.js} +1 -1
- package/dist/client/assets/{popover-DiQ2Bfq9.js → popover-QqVUvEYR.js} +1 -1
- package/dist/client/assets/{post-calendar-CMpgu01_.js → post-calendar-C64qCtHG.js} +1 -1
- package/dist/client/assets/post-editor-C5PQD-my.js +2 -0
- package/dist/client/assets/{preview-content-Bop4crPO.js → preview-content-BQKPmXGv.js} +1 -1
- package/dist/client/assets/{preview-dialog-Dz5sv3HO.js → preview-dialog-GL8egC2B.js} +1 -1
- package/dist/client/assets/{preview-panel-BcPSEvze.js → preview-panel-DDhAmVzk.js} +1 -1
- package/dist/client/assets/{preview-tab-BncJEfTX.js → preview-tab-DrwAiPmj.js} +3 -3
- package/dist/client/assets/{primitives-C1No5xKr.js → primitives-yWcLmNO5.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-BeeTNurR.js → product-picker-dialog-Bw4o2LZ9.js} +1 -1
- package/dist/client/assets/{profile-DF_IclwB.js → profile-D7IIedH9.js} +1 -1
- package/dist/client/assets/{project-app-view-Cc5GSYC7.js → project-app-view-D79GKyQK.js} +1 -1
- package/dist/client/assets/{project-apps-chPl7xeh.js → project-apps-Ddelf6K_.js} +1 -1
- package/dist/client/assets/{project-icon-BTZl10MB.js → project-icon-D-KoSfqD.js} +1 -1
- package/dist/client/assets/{project-index-oqFo2sF5.js → project-index-Di4hbJe7.js} +1 -1
- package/dist/client/assets/project-reports-BaUD1mSs.js +1 -0
- package/dist/client/assets/project-tasks-IY1SmC3r.js +1 -0
- package/dist/client/assets/{projects-BH-6cg67.js → projects-CKVyhU42.js} +1 -1
- package/dist/client/assets/{projects-empty-state-bstUe2Oh.js → projects-empty-state-ChdeQFYg.js} +1 -1
- package/dist/client/assets/{prompts-Ch92cX_3.js → prompts-D00CUxnv.js} +1 -1
- package/dist/client/assets/record-editor-B4kmxAIk.js +1 -0
- package/dist/client/assets/{redirect-editor-CMzb5XC3.js → redirect-editor-BiVMh5eW.js} +1 -1
- package/dist/client/assets/{reports-CTRznMgw.js → reports-Bpi5NgOn.js} +1 -1
- package/dist/client/assets/{reports-onboarding-Bdb4dG_W.js → reports-onboarding-DFl3ByGh.js} +1 -1
- package/dist/client/assets/{reports-tab-Du9Yt97_.js → reports-tab-Cyoilm6-.js} +2 -2
- package/dist/client/assets/reports-wttF6ZoA.js +1 -0
- package/dist/client/assets/repositories-3Kf5jKe3.js +1 -0
- package/dist/client/assets/{repositories-BDO_qkUm.js → repositories-Bvzle7Kd.js} +1 -1
- package/dist/client/assets/{repository-binding-D_JA1fyv.js → repository-binding-BezKpFog.js} +1 -1
- package/dist/client/assets/{repository-picker-DG8GlSV6.js → repository-picker-BcZZvjJw.js} +1 -1
- package/dist/client/assets/{require-capability-CETSpTpX.js → require-capability-1sXrPz2q.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DhFunmdD.js → required-auth-layout-CRS7KXgy.js} +1 -1
- package/dist/client/assets/{reset-password-Boi6YmgH.js → reset-password-DI52CgpP.js} +1 -1
- package/dist/client/assets/{resizable-DMbeVWSR.js → resizable-D3Zb0j0Y.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-C4iSO1U2.js → resolve-tab-icon-lPLw9e6M.js} +1 -1
- package/dist/client/assets/{review-settings-B16U0xsU.js → review-settings-blIIbEvV.js} +1 -1
- package/dist/client/assets/{role-color-BBVkDYqV.js → role-color-DFMoaBh_.js} +1 -1
- package/dist/client/assets/{roles-BLT9AcGQ.js → roles-Cr_zYAvV.js} +1 -1
- package/dist/client/assets/route-CDLTxCaI.js +1 -0
- package/dist/client/assets/{route-DIu-Ml5P.js → route-CQadzTnr.js} +1 -1
- package/dist/client/assets/route-DhuUeSC5.js +1 -0
- package/dist/client/assets/{route-page-header-BFyj_RTT.js → route-page-header-BjKtp3iF.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-B5ivbUKl.js → sandbox-git-api-DZ5qElbf.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DLB2RKwh.js → sandbox-lifecycle-context-BukF6MQn.js} +1 -1
- package/dist/client/assets/{save-status-CVcpQMiO.js → save-status-DBCJolXB.js} +1 -1
- package/dist/client/assets/{schema-CBR_062O.js → schema-CRoCQYHH.js} +1 -1
- package/dist/client/assets/{schema-CLDlJ9kb.js → schema-D0halWwt.js} +1 -1
- package/dist/client/assets/{scroll-area-DK0MohcT.js → scroll-area-DmKBqmqO.js} +1 -1
- package/dist/client/assets/{search-input-FykCNfIP.js → search-input-KXpX5gme.js} +1 -1
- package/dist/client/assets/{search-toggle-BxdfiTnS.js → search-toggle-BHbQYf5Y.js} +1 -1
- package/dist/client/assets/{secret-picker-CWYxyjvA.js → secret-picker-CMr7uz4L.js} +1 -1
- package/dist/client/assets/{secrets-DcrvsBfJ.js → secrets-CjUGWgQ8.js} +1 -1
- package/dist/client/assets/{section-array-field-B87vkJiM.js → section-array-field-BUwgz_eV.js} +1 -1
- package/dist/client/assets/{sections-DhMIYAGQ.js → sections-BO6dARSn.js} +1 -1
- package/dist/client/assets/{sections-editor-Bfz34qjk.js → sections-editor-DhNLoFOR.js} +1 -1
- package/dist/client/assets/{select-L_avoMHO.js → select-B-VvZR_M.js} +1 -1
- package/dist/client/assets/{select-model-Dass8Y0N.js → select-model-DTnl9BTI.js} +1 -1
- package/dist/client/assets/{seo-editor-Cn-RIL2d.js → seo-editor-D-9omBT1.js} +1 -1
- package/dist/client/assets/{separator-CRKTbl5Q.js → separator-CxWekJLq.js} +1 -1
- package/dist/client/assets/{session-runtime-CKy7akq1.js → session-runtime-CvClIIGY.js} +1 -1
- package/dist/client/assets/settings-tab-CC9OxhsE.js +1 -0
- package/dist/client/assets/{sheet-B9nYEq_U.js → sheet-C4ApGL6L.js} +1 -1
- package/dist/client/assets/{shell-layout-DMaosfWb.js → shell-layout-DJOHh2NE.js} +1 -1
- package/dist/client/assets/{site-draft-actions-Cys_x7K4.js → site-draft-actions-8xVV9dEa.js} +1 -1
- package/dist/client/assets/{site-draft-view-DvI2wxTi.js → site-draft-view-DlKOjkMp.js} +1 -1
- package/dist/client/assets/site-editor-Ct2iJJKm.js +1 -0
- package/dist/client/assets/{site-editor-toast-B_YX3Li5.js → site-editor-toast-DLSJJb2F.js} +1 -1
- package/dist/client/assets/{skills-C_Qmevz6.js → skills-CRsIU-hD.js} +1 -1
- package/dist/client/assets/{slider-L72dzoE5.js → slider-BIv9sKN-.js} +1 -1
- package/dist/client/assets/{sortable.esm-BwLahjrh.js → sortable.esm-C0ThOxD8.js} +1 -1
- package/dist/client/assets/{sso-CVKitu8q.js → sso-Cp0an3Ez.js} +1 -1
- package/dist/client/assets/{suggestion-CmkjlRde.js → suggestion-DIf7hFaH.js} +1 -1
- package/dist/client/assets/{super-agent-icon-BWyA5A4C.js → super-agent-icon-DUpkyxXZ.js} +1 -1
- package/dist/client/assets/{switch-DNr_AVSx.js → switch-CfqVcR-v.js} +1 -1
- package/dist/client/assets/{synced-repos-BarMTSvl.js → synced-repos-JXJEMpC7.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-oIDlFQgD.js → tab-icon-glyph-CgCRg2hv.js} +1 -1
- package/dist/client/assets/{table-B1D7-LXy.js → table-CoF20Hw1.js} +1 -1
- package/dist/client/assets/{tabs-BDMFi5UF.js → tabs-DBKq274Z.js} +1 -1
- package/dist/client/assets/{task-board-EnWJqcQ6.js → task-board-B8wzNBqW.js} +1 -1
- package/dist/client/assets/{task-key-CnOo1you.js → task-key-CpnKPfDS.js} +1 -1
- package/dist/client/assets/{task-route-Cf7-9Vym.js → task-route-CkAEJVQF.js} +1 -1
- package/dist/client/assets/{task-status-sACqRIxF.js → task-status-Cr1qI7Ux.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DM9B5dxQ.js → taskboard-analytics-BTJCLNi8.js} +1 -1
- package/dist/client/assets/tasks-DR6gaCo6.js +1 -0
- package/dist/client/assets/{tasks-DRE9-wdz.js → tasks-DuGmmJdD.js} +1 -1
- package/dist/client/assets/{textarea-CmzAWBpF.js → textarea-Djiqi_Hb.js} +1 -1
- package/dist/client/assets/{thread-analytics-B8Ikw9hO.js → thread-analytics-61rO8zWs.js} +1 -1
- package/dist/client/assets/{thread-button-BEg5fteo.js → thread-button-DRipdtQl.js} +1 -1
- package/dist/client/assets/{thread-intent-DtKiFyIT.js → thread-intent-1kOP6maa.js} +1 -1
- package/dist/client/assets/{thread-route-CrkLPvpu.js → thread-route-DHFCXB9E.js} +1 -1
- package/dist/client/assets/{thread-route-CAdVyEBE.js → thread-route-QjX15zqF.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BcrsEEe7.js → thread-sheet-body-sdh7Mf7u.js} +1 -1
- package/dist/client/assets/{time-range-picker-BuQAB93N.js → time-range-picker-B4sRq8E3.js} +1 -1
- package/dist/client/assets/{toggle-group-Bo6-1Pho.js → toggle-group-BMYX_eGL.js} +1 -1
- package/dist/client/assets/{tool-set-selector-D7l1Lya5.js → tool-set-selector-CJazFfoM.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-By_9Ecje.js → toolbar-icon-button-BXZ6Fg9k.js} +1 -1
- package/dist/client/assets/{tooltip-C1ojQQy2.js → tooltip-CnD2gBxQ.js} +1 -1
- package/dist/client/assets/{tooltipContext-Dduhu_Eq.js → tooltipContext-B6Z4ndzl.js} +1 -1
- package/dist/client/assets/{track-CS1GhTy5.js → track-C2t9Ju4W.js} +1 -1
- package/dist/client/assets/{types-Bgvtdl4f.js → types-DxV-fZV6.js} +1 -1
- package/dist/client/assets/{url-slug-j0iJ8lmu.js → url-slug-cwQb0zdO.js} +1 -1
- package/dist/client/assets/{usage-stats-BNxKoicX.js → usage-stats-DX6ERAU7.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DfdZjEtf.js → use-ai-providers-DrvsAXJ7.js} +1 -1
- package/dist/client/assets/{use-api-keys--uy7V227.js → use-api-keys-WR-MHbKG.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-HtmujZdV.js → use-apply-named-rule-DtVcB2Sd.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CxLSAUNx.js +1 -0
- package/dist/client/assets/{use-automations-C1U-QI4S.js → use-automations-CQGktFHE.js} +1 -1
- package/dist/client/assets/{use-autosave-BSoV0Vu3.js → use-autosave-4o04OWTs.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DQzOlv_E.js +1 -0
- package/dist/client/assets/use-blog-view-9Y1OwyU5.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-iNK0kVBA.js → use-chat-layout-state-OXPATbvD.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-B42l35BK.js → use-cms-publish-actions-E5PxzXRo.js} +1 -1
- package/dist/client/assets/{use-connect-companion-o54nIr0o.js → use-connect-companion-G1Hi_qLO.js} +1 -1
- package/dist/client/assets/{use-connection-DA9yY-kf.js → use-connection-G9Us7hRV.js} +1 -1
- package/dist/client/assets/{use-content-sync-BLtyy-8h.js → use-content-sync-qLtFKVoY.js} +1 -1
- package/dist/client/assets/{use-copy-BAGO9B0-.js → use-copy-DcPGMlZ-.js} +1 -1
- package/dist/client/assets/{use-current-view-3DHjYKsB.js → use-current-view-DrUxoucV.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-C3KtJm8n.js → use-date-fns-locale-HbSUG1u1.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CfxqDB3e.js → use-debounced-autosave-5uSqKsMY.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DPFKvG0d.js → use-debounced-value-Io5mDbSS.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CmcGxN-5.js → use-deco-credits-CIEhAz6A.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-q9mkqGKJ.js → use-decopilot-events-Be8G8lj7.js} +1 -1
- package/dist/client/assets/{use-delete-block-CqXZMma0.js → use-delete-block-ZSPe1Jt_.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C8JKkAAS.js → use-delete-connection-BqwFhFOC.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-VYoUqG2M.js → use-deployment-admin-BGJ_CxB1.js} +1 -1
- package/dist/client/assets/{use-entitlements-CdiIkksN.js → use-entitlements-BYhZgO5P.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-GLoGn3Z6.js → use-fast-preview-draft-url-C1FIhbN9.js} +1 -1
- package/dist/client/assets/{use-file-configs-DCBweulZ.js → use-file-configs-k_hhBwsx.js} +1 -1
- package/dist/client/assets/{use-id-selection-spkOrFO_.js → use-id-selection-CMFxpgLZ.js} +1 -1
- package/dist/client/assets/{use-in-settings-hxse8Hhp.js → use-in-settings-BhSbV6H8.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BvbAUSW4.js → use-inbox-feed-B09538_g.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CCGl3sqA.js → use-infinite-scroll-DW5uI5g1.js} +1 -1
- package/dist/client/assets/{use-join-requests-IcecIzLq.js → use-join-requests-DMhspUtS.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DuSvD2uS.js → use-main-panel-tabs-COup8C-z.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CPCNL8Ac.js → use-mcp-auth-status-B1ZXOBZo.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CaNN8ch9.js → use-mcp-client-DfqrKiZY.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DMHyxZup.js → use-mcp-prompts-CxlRUHT-.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Mt5davfv.js → use-mcp-tools-DBXAxSmu.js} +1 -1
- package/dist/client/assets/{use-mobile-DLKgN0MY.js → use-mobile-BGIYUsLQ.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DHYSyls5.js → use-move-blocks-CYHOXTJj.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DLWEuUiS.js → use-navigate-to-agent-stX_hK-R.js} +1 -1
- package/dist/client/assets/{use-never-published-CN7sgOi-.js → use-never-published-CJQoljTh.js} +1 -1
- package/dist/client/assets/{use-org-fs-6An12np_.js → use-org-fs-j9Hf5idr.js} +1 -1
- package/dist/client/assets/{use-org-notice-jTLfFtFj.js → use-org-notice-J6OTcXIJ.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Dx_d7syo.js → use-org-repo-syncs-B3V0YVhZ.js} +1 -1
- package/dist/client/assets/{use-org-sso-S0027md8.js → use-org-sso-B8YBjAU0.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CJl2Ru2g.js → use-organization-settings-DRtlFFBs.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DrHMPrDd.js → use-panel-navigate-DLijLDIl.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CTisoJjU.js → use-project-native-view-presence-CflbYfyt.js} +1 -1
- package/dist/client/assets/{use-project-scope-1pDf1lxX.js → use-project-scope-sgJLxDnc.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BmvdNgmu.js → use-recent-apps-C6R-3xzm.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CfmpBGnm.js → use-reports-diagnostic-D7PJJJR-.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BQnRSUmP.js → use-sandbox-events-D7X3VYGW.js} +1 -1
- package/dist/client/assets/{use-secrets-Dd3GbHCj.js → use-secrets-DGIBDHGx.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BJSGRJ2g.js → use-section-preview-base-DzxwJmmA.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CRhLpQ__.js → use-sidebar-collapsed-BsHAzi2v.js} +1 -1
- package/dist/client/assets/{use-tags-Dxxj_5Ub.js → use-tags-7fim3G8l.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CkHboU7M.js → use-task-board-analytics-DR6GAqO0.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-oRUnerL5.js → use-task-board-item-prs-DHpJNypU.js} +1 -1
- package/dist/client/assets/{use-task-board-items-CWHT3OSj.js → use-task-board-items-B1Pzgu76.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DXhEBOCc.js → use-task-board-prompts-IJgyzOT-.js} +1 -1
- package/dist/client/assets/{use-task-metadata-lzA4V4K2.js → use-task-metadata-BUNn-khG.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-5ljze7lC.js → use-thread-outputs-CtVbBsAG.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-BXhF5iFd.js → use-view-draft-kind-XY0ukhv-.js} +1 -1
- package/dist/client/assets/{use-voice-input-CZGiAdQC.js → use-voice-input-DguZp9dH.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CSIthp54.js +1 -0
- package/dist/client/assets/{useQueries-C9RAahye.js → useQueries-Di5RfWGT.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Z_2IraLh.js +1 -0
- package/dist/client/assets/{users-WjrefE1B.js → users-CCYUTU45.js} +1 -1
- package/dist/client/assets/{utils-Bnx90cnk.js → utils-DgfuCg_0.js} +1 -1
- package/dist/client/assets/{variant-calendar-DRDxaL-U.js → variant-calendar-B4q2_EtP.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CA3obTng.js → variant-matcher-override-B7mJIZfR.js} +1 -1
- package/dist/client/assets/{view-header-CLjdEAb3.js → view-header-CvQldNEQ.js} +1 -1
- package/dist/client/assets/{virtual-mcp-B_qidLcG.js → virtual-mcp-Ci6QcDj7.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CmbIOlgi.js → watch-sse-pool-BbbQrIO0.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +623 -623
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B3cy5nly.js +0 -1
- package/dist/client/assets/agent-deck-D3XNN693.js +0 -1
- package/dist/client/assets/agent-experiments-DpcLPWr2.js +0 -1
- package/dist/client/assets/agent-file-GBVd_BpZ.js +0 -1
- package/dist/client/assets/agent-library-file-BTMFPMBP.js +0 -1
- package/dist/client/assets/agent-library-ygB7LeW-.js +0 -1
- package/dist/client/assets/agent-overview-PHTNUTRE.js +0 -1
- package/dist/client/assets/agent-settings-C4O62TDb.js +0 -1
- package/dist/client/assets/agent-site-editor-code-fVXCtDzo.js +0 -2
- package/dist/client/assets/agent-site-editor-content-JitpGh8g.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BiD1iCK2.js +0 -1
- package/dist/client/assets/agent-view-B0XfBbbF.js +0 -1
- package/dist/client/assets/api-keys-icNNhRXn.js +0 -1
- package/dist/client/assets/editor-classes-BPv2mnCh.js +0 -1
- package/dist/client/assets/library-CeRFUyM_.js +0 -1
- package/dist/client/assets/plan-DFKUaTp8.js +0 -1
- package/dist/client/assets/post-editor-CSldaVe4.js +0 -2
- package/dist/client/assets/project-reports-DIwpx3MI.js +0 -1
- package/dist/client/assets/project-tasks-D_q2d1d-.js +0 -1
- package/dist/client/assets/record-editor-BBcvA9IQ.js +0 -1
- package/dist/client/assets/reports-By9XMxVb.js +0 -1
- package/dist/client/assets/repositories-Ch2tj1pK.js +0 -1
- package/dist/client/assets/route-BX6pEH1K.js +0 -1
- package/dist/client/assets/route-CpGDEe6n.js +0 -1
- package/dist/client/assets/settings-tab-f8XSA5Mo.js +0 -1
- package/dist/client/assets/site-editor-9BdXqETC.js +0 -1
- package/dist/client/assets/tasks-D0oDCq_D.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CLB4YmKc.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-CK7jomFI.js +0 -1
- package/dist/client/assets/use-blog-view-Ct3qJq8H.js +0 -1
- package/dist/client/assets/useInfiniteQuery-COV1vcmf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqJAXxZd.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dR as Zt,c as q,b as ee,r as w,j as t,B,a_ as qt,m as At,a6 as $t,D as et,v as tt,w as st,x as ot,aW as at,y as nt,t as X,e3 as es,_ as ts,X as ss,Z as os,as,aq as ns,ar as is,Y as ze,b9 as rs,h as Le,aL as pt,aM as xt,aN as gt,aO as ht,bc as jt,aP as yt,aQ as bt,aR as vt,E as Ke,aI as ls,eb as Ct,I as Nt,hv as cs,am as ds,ba as Ze,n as Xe,f as ms}from"./index-Bf6kDBJJ.js";import{ChatLayout as us}from"./index-BxAV7FAM.js";import{b as it,v as fs,a as ps,Z as xs,k as St,ay as gs,ab as hs,g as js,a$ as Et,e as Qe}from"./agent-icon-Di7zqlxT.js";import{n as kt}from"./BookOpen01-3jk6-b2F.js";import{t as rt}from"./ChevronDown-DAnJt1CB.js";import{f as ys}from"./UserSquare-BlZFBeJE.js";import{s as Tt}from"./File02-7Vd4jW_I.js";import{f as lt,b as Ot,t as zt}from"./Tool01-CQpf9QHt.js";import{a as bs}from"./Image01-BXYfiVgr.js";import{i as vs}from"./SearchMd-BRrpiXaK.js";import{B as Kt}from"./badge-CLRPbUCC.js";import{C as Ft}from"./checkbox-DV2T_2wi.js";import{S as ct}from"./switch-DNr_AVSx.js";import{a as Mt,b as Rt,P as Lt}from"./popover-DiQ2Bfq9.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-DIXZqeHF.js";import{g as ws,a as _s}from"./gateway-client-Cj4FQJOw.js";import{b as dt}from"./use-connection-DA9yY-kf.js";import{u as Ds}from"./use-mcp-client-CaNN8ch9.js";import{u as Is}from"./use-mcp-tools-Mt5davfv.js";import{I as Ps}from"./integration-icon-DS7lm2zI.js";import{M as As}from"./select-model-Dass8Y0N.js";import{u as $s}from"./use-ai-providers-DfdZjEtf.js";import{U as Es,b as Os}from"./build-improve-prompt-doc-DnoDBpzy.js";import{a as ve,c as zs,d as Ks}from"./use-automations-C1U-QI4S.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-DytZnaTl.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-DL_QpL2k.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-C1ojQQy2.js";import{u as Js}from"./shell-layout-DMaosfWb.js";import{i as Vt}from"./ArrowLeft-BqT0JjoT.js";import{i as Xs}from"./ArrowUp-BX4O3cRq.js";import{s as Me}from"./UserCheck01-Bl-xFtn-.js";import{s as Qs}from"./Trash01-Dw3BP1yz.js";import{s as mt}from"./XClose-CNBL86j1.js";import{u as _t}from"./use-debounced-autosave-CfxqDB3e.js";import{T as Ys,a as Zs}from"./input-CfERqe7P.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-CRzccyEz.js";import{s as to}from"./Plus-CMPQGYNJ.js";import{i as ut}from"./Zap-CjPlT3gP.js";import{l as We,H as so}from"./config-DrlLEd_m.js";import{C as oo}from"./task-board-EnWJqcQ6.js";import{M as Wt}from"./multi-select-DrRX5wC0.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-L_avoMHO.js";import{b as ao,a as no,T as Dt}from"./tabs-BDMFi5UF.js";import{MonacoCodeEditor as io}from"./monaco-editor-DyPQbQ4Z.js";import{A as ro}from"./automation-runs-FHf4-haW.js";import{C as lo}from"./collection-tabs-BOqc8wWl.js";import{a as co}from"./use-panel-navigate-DrHMPrDd.js";import"./use-mobile-DLKgN0MY.js";import"./MessageCircle01-cLkYRAq1.js";import"./thread-button-BEg5fteo.js";import"./use-sidebar-collapsed-CRhLpQ__.js";import"./sheet-B9nYEq_U.js";import"./use-chat-layout-state-iNK0kVBA.js";import"./toolbar-icon-button-By_9Ecje.js";import"./use-in-settings-hxse8Hhp.js";import"./resizable-DMbeVWSR.js";import"./route-page-header-BFyj_RTT.js";import"./LayoutLeft-FMo6Osev.js";import"./use-project-scope-1pDf1lxX.js";import"./repository-binding-D_JA1fyv.js";import"./use-current-view-3DHjYKsB.js";import"./thread-route-CAdVyEBE.js";import"./index-ZqZk5RgT.js";import"./auth-B-a5Zgxg.js";import"./AlertCircle-D2NouvfT.js";import"./ArrowRight-drioiso6.js";import"./Globe04-24mKQ9Ao.js";import"./CheckCircle-CLvYssUd.js";import"./ChevronSelectorVertical-CV3zcNGH.js";import"./ChevronUp-OFnHDyjq.js";import"./LinkBroken01-Cq1VpHt5.js";import"./CreditCard01-HXOYzid-.js";import"./SwitchHorizontal01-CoKNU7eN.js";import"./Eye-CmYcf8ai.js";import"./Fingerprint04-6UGroDLU.js";import"./Key01-B_hS_62c.js";import"./Minus-CpAwDyCu.js";import"./Monitor01-BgljY9mZ.js";import"./Sun-DiXyHGM-.js";import"./Play-B8qXRmXx.js";import"./ShoppingBag01-Lv_lXKl3.js";import"./Upload01-DGYPOiPg.js";import"./Users01-y41RvLhz.js";import"./index-C3wTiNEy.js";import"./drawer-Crz9l-4U.js";import"./index-DhAzuetW.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-CdiIkksN.js";import"./use-view-draft-kind-BXhF5iFd.js";import"./use-blog-view-Ct3qJq8H.js";import"./use-organization-settings-CJl2Ru2g.js";import"./schema-CBR_062O.js";import"./thread-intent-DtKiFyIT.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CmbIOlgi.js";import"./session-runtime-CKy7akq1.js";import"./use-decopilot-events-q9mkqGKJ.js";import"./use-org-fs-6An12np_.js";import"./useInfiniteQuery-COV1vcmf.js";import"./infiniteQueryObserver-d7-nDzuW.js";import"./use-deployment-admin-VYoUqG2M.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-jTLfFtFj.js";import"./project-icon-BTZl10MB.js";import"./use-navigate-to-agent-DLWEuUiS.js";import"./use-debounced-value-DPFKvG0d.js";import"./new-project-dialog-c3TMJ5k3.js";import"./label-pfJxqM6J.js";import"./repository-picker-DG8GlSV6.js";import"./github-icon-DspshkUP.js";import"./collection-search-Daa7Sik-.js";import"./new-project-store-DVbeCA79.js";import"./legacy-admin-welcome-dialog-CDOlAR4o.js";import"./required-auth-layout-DhFunmdD.js";import"./use-org-sso-S0027md8.js";import"./suggestion-CmkjlRde.js";import"./usage-stats-BNxKoicX.js";import"./utils-CVEq3hMx.js";import"./markdown-CPntqjcN.js";import"./use-copy-BAGO9B0-.js";import"./form-BkfFMNZc.js";import"./use-mcp-prompts-DMHyxZup.js";import"./task-key-CnOo1you.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-Dh0u_vVE.js";import"./table-B1D7-LXy.js";import"./empty-state-WGRlYhaM.js";import"./use-id-selection-spkOrFO_.js";import"./use-infinite-scroll-CCGl3sqA.js";import"./task-status-sACqRIxF.js";import"./thread-sheet-body-BcrsEEe7.js";import"./useSuspenseInfiniteQuery-CqJAXxZd.js";import"./pair-BUIEjsmP.js";import"./use-task-board-items-CWHT3OSj.js";import"./task-route-Cf7-9Vym.js";import"./project-index-oqFo2sF5.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Xh-Trx1u.js";import"./types-Bgvtdl4f.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-5ljze7lC.js";import"./file-type-icon-B7lWHf7B.js";const Ye={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:zt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=q.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=Ye[s].icon;let j;e[0]!==o?(j=t.jsx(o,{size:14,className:"text-muted-foreground"}),e[0]=o,e[1]=j):j=e[1];const d=Ye[s];let m;e[2]!==a||e[3]!==d.labelKey?(m=a(d.labelKey),e[2]=a,e[3]=d.labelKey,e[4]=m):m=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[5]=x):x=e[5];let f;e[6]!==j||e[7]!==m?(f=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,m,x]})}),e[6]=j,e[7]=m,e[8]=f):f=e[8];let g;e[9]!==n||e[10]!==a||e[11]!==s?(g=mo.map(p=>{const l=Ye[p],y=l.icon;return t.jsxs("button",{type:"button",onClick:()=>{n(p),c(!1)},className:At("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-accent"),children:[t.jsx(y,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:a(l.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:a(l.subtitleKey)})]}),p===s&&t.jsx(qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=a,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=q.c(27),{tier:s,onTierChange:n,override:a,onOverrideChange:i}=r,c=ee(),[o,j]=w.useState(a!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==a||e[7]!==c||e[8]!==s||e[9]!==o?(x=o?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:a,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=a,e[7]=c,e[8]=s,e[9]=o,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==o?(g=t.jsx(ct,{checked:o,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=o,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=q.c(25),{override:s,onOverrideChange:n}=r,a=ee(),i=$s(),c=i[0]?.id??null;let o;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(o=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=o):o=e[3];const[j,d]=w.useState(o);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==a?(l=a("automations.automationConfig.connectAiProviderHint"),e[11]=a,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==a?(u=a("automations.automationConfig.pickModelPlaceholder"),e[15]=a,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Zt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:St,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:Ot},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:St},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Tt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Tt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:kt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:kt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=q.c(12),{agentId:s,value:n,onChange:a}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let o;e[2]!==c?(o=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=o):o=e[3];let j;e[4]!==s||e[5]!==a||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:a})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=a,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==o||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[o,j]}),e[9]=o,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=q.c(17),{value:s,checked:n,onToggle:a,title:i,description:c,leading:o}=r;let j;e[0]!==n?(j=t.jsx(Ft,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==o?(d=o&&t.jsx("span",{className:"mt-px shrink-0",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==a||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:a,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=a,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function Pt(r){const e=q.c(27),{conn:s,label:n,icon:a,on:i,total:c,onToggle:o}=r,j=ee(),d=i===c;let m;e[0]!==a||e[1]!==s?(m=s?t.jsx(Ps,{icon:s.icon,name:s.title,size:"2xs"}):a?t.jsx(a,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-2xs font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==o?(u=v=>{v.stopPropagation(),o()},e[12]=o,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-2xs font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=q.c(83),{agentId:s,value:n,onChange:a}=r,i=ee(),{org:c}=$t(),[o,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,_,D,k,P;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==a||e[10]!==o||e[11]!==i||e[12]!==n){const Q=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const O=ws(I._meta)??"__other__",Z=_s(I.name,O==="__other__"?void 0:O),A=I.title,xe=A&&A!==I.name?A:go(Z);H.has(O)||H.set(O,{clientId:O,conn:Q.get(O),tools:[]}),H.get(O).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],V=n===null?new Set(J):new Set(n),U=J.every(I=>V.has(I)),E=I=>a(J.every(O=>I.has(O))?null:[...I]),ae=I=>{const O=new Set(V);O.has(I)?O.delete(I):O.add(I),E(O)},ne=(I,O)=>{const Z=new Set(V);for(const A of I)O?Z.add(A):Z.delete(A);E(Z)};y=Lt,P=o,v=j;let Y;e[26]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=Y):Y=e[26];let ie;e[27]!==U||e[28]!==i?(ie=i(U?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=U,e[28]=i,e[29]=ie):ie=e[29];const ue=!U&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[V.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[Y,ie,ue,me]})}),e[31]=ie,e[32]=ue,e[33]=N):N=e[33],l=Rt,D="p-0 w-80",k="start",p=Ss;let te;e[34]!==i?(te=i("automations.automationConfig.searchToolsPlaceholder"),e[34]=i,e[35]=te):te=e[35],e[36]!==te?(T=t.jsx(ks,{placeholder:te}),e[36]=te,e[37]=T):T=e[37];const fe=U?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:V.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==a?(re=()=>a(null),e[40]=a,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==U||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:U,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=U,e[45]=re,e[46]=le,e[47]=C):C=e[47];let M;e[48]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=M):M=e[48];let z;e[49]!==a?(z=()=>a([]),e[49]=a,e[50]=z):z=e[50];const pe=V.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==z||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:z,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:oe}),e[53]=z,e[54]=pe,e[55]=oe,e[56]=ce):ce=e[56];let de;e[57]!==C||e[58]!==ce?(de=t.jsxs("div",{className:"flex items-center gap-2",children:[C,M,ce]}),e[57]=C,e[58]=ce,e[59]=de):de=e[59],e[60]!==se||e[61]!==de?(_=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[se,de]}),e[60]=se,e[61]=de,e[62]=_):_=e[62],h=Ts,S="max-h-80",b=g?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Cs,{children:i("automations.automationConfig.noToolsFound")}),Bt.map(I=>{const O=I.tools.map(bo),Z=O.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Z,total:O.length,onToggle:()=>ne(O,Z!==O.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:i(A.titleKey),description:i(A.descriptionKey),leading:t.jsx(A.icon,{size:16,className:"text-muted-foreground"})},A.name))},I.key)}),W.map(I=>{const O=I.tools.map(yo),Z=O.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Z,total:O.length,onToggle:()=>ne(O,Z!==O.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:A.display,description:A.description},A.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=a,e[10]=o,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=_,e[23]=D,e[24]=k,e[25]=P}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],_=e[22],D=e[23],k=e[24],P=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==_?(R=t.jsxs(p,{children:[T,_,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=_,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==D||e[75]!==k?(K=t.jsx(l,{className:D,align:k,children:R}),e[72]=l,e[73]=R,e[74]=D,e[75]=k,e[76]=K):K=e[76];let F;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==P?(F=t.jsxs(y,{open:P,onOpenChange:v,children:[N,K]}),e[77]=y,e[78]=v,e[79]=N,e[80]=K,e[81]=P,e[82]=F):F=e[82],F}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(a){const o=parseInt(a[1]??"1");return o%7===0?`Every ${o/7} weeks`:`Every ${o} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const o=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${o}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return a?{count:parseInt(a[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const _o=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],qe=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>qe.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Po({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:a}=ve(),[i,c]=w.useState("in_progress"),[o,j]=w.useState("any"),[d,m]=w.useState([]),x=qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=o!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await a.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:o==="statuses"?{kind:o,statuses:f}:{kind:o}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:o,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),o==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||a.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Ao=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const a=ee(),{triggerAdd:i}=ve(),c=qs(s?e:null),[o,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=o??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(a("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:a("automations.addStarterPopover.failedAddStarter"))}},N=b=>a(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:a("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:a("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:a("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:a("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:a("automations.jiraTransitionDialog.add")})]})]})})}function Eo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:a,onWebhookCreated:i}){const c=ee(),{triggerAdd:o}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await o.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await o.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:_o.map(v=>t.jsxs(ze,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:o.isPending,children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),a?.()},children:[t.jsx(ut,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.event")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(Et,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Ut,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{y()},disabled:o.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Po,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=q.c(39),{open:s,onOpenChange:n,url:a,token:i,title:c,description:o}=r,j=c===void 0?"Webhook ready":c,d=o===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":o,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==a?(N=a&&i&&h==="url"?`${a.replace(/\/$/,"")}/${i}`:a??"",e[2]=h,e[3]=i,e[4]=a,e[5]=N):N=e[5];const S=N,b=a&&i?h==="header"?`curl -X POST "${S}" \\
|
|
1
|
+
import{dR as Zt,c as q,b as ee,r as w,j as t,B,a_ as qt,m as At,a6 as $t,D as et,v as tt,w as st,x as ot,aW as at,y as nt,t as X,e3 as es,_ as ts,X as ss,Z as os,as,aq as ns,ar as is,Y as ze,b9 as rs,h as Le,aL as pt,aM as xt,aN as gt,aO as ht,bc as jt,aP as yt,aQ as bt,aR as vt,E as Ke,aI as ls,eb as Ct,I as Nt,hv as cs,am as ds,ba as Ze,n as Xe,f as ms}from"./index-DmyPeHtj.js";import{ChatLayout as us}from"./index-BJcrWx9T.js";import{b as it,v as fs,a as ps,Z as xs,k as St,ay as gs,ab as hs,g as js,a$ as Et,e as Qe}from"./agent-icon-DFYKaa0c.js";import{n as kt}from"./BookOpen01-Caac9KpE.js";import{t as rt}from"./ChevronDown-BDwdJQzR.js";import{f as ys}from"./UserSquare-DRonBRNm.js";import{s as Tt}from"./File02-CNp6lbfd.js";import{f as lt,b as Ot,t as zt}from"./Tool01-eLaAOwHX.js";import{a as bs}from"./Image01-DZ0d0gl4.js";import{i as vs}from"./SearchMd-C7M41YQV.js";import{B as Kt}from"./badge-By3J5rC3.js";import{C as Ft}from"./checkbox-Bg0tGTVi.js";import{S as ct}from"./switch-CfqVcR-v.js";import{a as Mt,b as Rt,P as Lt}from"./popover-QqVUvEYR.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-DmBlCsxL.js";import{g as ws,a as _s}from"./gateway-client-ekFKMjOy.js";import{b as dt}from"./use-connection-G9Us7hRV.js";import{u as Ds}from"./use-mcp-client-DfqrKiZY.js";import{u as Is}from"./use-mcp-tools-DBXAxSmu.js";import{I as Ps}from"./integration-icon-92n5xPlq.js";import{M as As}from"./select-model-DTnl9BTI.js";import{u as $s}from"./use-ai-providers-DrvsAXJ7.js";import{U as Es,b as Os}from"./build-improve-prompt-doc-DhyvYeik.js";import{a as ve,c as zs,d as Ks}from"./use-automations-CQGktFHE.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-CqcR4aAu.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-CxuxAsHp.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-CnD2gBxQ.js";import{u as Js}from"./shell-layout-DJOHh2NE.js";import{i as Vt}from"./ArrowLeft-a7zQohPB.js";import{i as Xs}from"./ArrowUp-BjMuYXEC.js";import{s as Me}from"./UserCheck01-BiEm5Ebz.js";import{s as Qs}from"./Trash01-C_glH0wy.js";import{s as mt}from"./XClose-xoNzv1jt.js";import{u as _t}from"./use-debounced-autosave-5uSqKsMY.js";import{T as Ys,a as Zs}from"./input-wtbnNzNz.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-BibTQfLJ.js";import{s as to}from"./Plus-fnuC_-Ii.js";import{i as ut}from"./Zap-Ch4l-t5Z.js";import{l as We,H as so}from"./config-DbV4O0C1.js";import{C as oo}from"./task-board-B8wzNBqW.js";import{M as Wt}from"./multi-select-DZx7Z4ko.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-B-VvZR_M.js";import{b as ao,a as no,T as Dt}from"./tabs-DBKq274Z.js";import{MonacoCodeEditor as io}from"./monaco-editor-DVxpBvnd.js";import{A as ro}from"./automation-runs-DUyTfm-1.js";import{C as lo}from"./collection-tabs-D91PU4y3.js";import{a as co}from"./use-panel-navigate-DLijLDIl.js";import"./use-mobile-BGIYUsLQ.js";import"./MessageCircle01-Vr9v9ZLf.js";import"./thread-button-DRipdtQl.js";import"./use-sidebar-collapsed-BsHAzi2v.js";import"./sheet-C4ApGL6L.js";import"./use-chat-layout-state-OXPATbvD.js";import"./toolbar-icon-button-BXZ6Fg9k.js";import"./use-in-settings-BhSbV6H8.js";import"./resizable-D3Zb0j0Y.js";import"./route-page-header-BjKtp3iF.js";import"./LayoutLeft-D6A6HKPj.js";import"./use-project-scope-sgJLxDnc.js";import"./repository-binding-BezKpFog.js";import"./use-current-view-DrUxoucV.js";import"./thread-route-QjX15zqF.js";import"./index-DAFFHpVi.js";import"./auth-xINlnEh8.js";import"./AlertCircle-D1Q8X__K.js";import"./ArrowRight-CcdemY_e.js";import"./Globe04-DGpfgXDy.js";import"./CheckCircle-BygonUdk.js";import"./ChevronSelectorVertical-BAKnniO6.js";import"./ChevronUp-CoA7d7vl.js";import"./LinkBroken01-DZpjy5h4.js";import"./CreditCard01-BD4H9Smc.js";import"./SwitchHorizontal01-D47eRm9A.js";import"./Eye-B8RfELJD.js";import"./Fingerprint04-CYuFFJ8_.js";import"./Key01-CCL-qpBw.js";import"./Minus-Cdvi1RtF.js";import"./Monitor01-BKLXdSAu.js";import"./Sun-TBLvGE97.js";import"./Play-KnC-ePg8.js";import"./ShoppingBag01-D27zZ3nR.js";import"./Upload01-VrBKSmfZ.js";import"./Users01-CYW34Us_.js";import"./index-_reJwud9.js";import"./drawer-D_TsrN48.js";import"./index-Dcn6CILj.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-BYhZgO5P.js";import"./use-view-draft-kind-XY0ukhv-.js";import"./use-blog-view-9Y1OwyU5.js";import"./use-organization-settings-DRtlFFBs.js";import"./schema-CRoCQYHH.js";import"./thread-intent-1kOP6maa.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BbbQrIO0.js";import"./session-runtime-CvClIIGY.js";import"./use-decopilot-events-Be8G8lj7.js";import"./use-org-fs-j9Hf5idr.js";import"./useInfiniteQuery-CSIthp54.js";import"./infiniteQueryObserver-D9fycF8k.js";import"./use-deployment-admin-BGJ_CxB1.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-J6OTcXIJ.js";import"./project-icon-D-KoSfqD.js";import"./use-navigate-to-agent-stX_hK-R.js";import"./use-debounced-value-Io5mDbSS.js";import"./new-project-dialog-zI9XmIIv.js";import"./label-B61Mm8gW.js";import"./repository-picker-BcZZvjJw.js";import"./github-icon-DVLt0ntX.js";import"./collection-search-DhW2WLfL.js";import"./new-project-store-BL2Sa0gM.js";import"./legacy-admin-welcome-dialog-DPVEA9Z4.js";import"./required-auth-layout-CRS7KXgy.js";import"./use-org-sso-B8YBjAU0.js";import"./suggestion-DIf7hFaH.js";import"./usage-stats-DX6ERAU7.js";import"./utils-CVEq3hMx.js";import"./markdown-B7FqmO_Q.js";import"./use-copy-DcPGMlZ-.js";import"./form-W6JWpxT_.js";import"./use-mcp-prompts-CxlRUHT-.js";import"./task-key-CpnKPfDS.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-DHPR_ozC.js";import"./table-CoF20Hw1.js";import"./empty-state-L2cTHOLC.js";import"./use-id-selection-CMFxpgLZ.js";import"./use-infinite-scroll-DW5uI5g1.js";import"./task-status-Cr1qI7Ux.js";import"./thread-sheet-body-sdh7Mf7u.js";import"./useSuspenseInfiniteQuery-Z_2IraLh.js";import"./pair-CgeeVvss.js";import"./use-task-board-items-B1Pzgu76.js";import"./task-route-CkAEJVQF.js";import"./project-index-Di4hbJe7.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BsX2Dy6R.js";import"./types-DxV-fZV6.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-CtVbBsAG.js";import"./file-type-icon-BIdp66kj.js";const Ye={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:zt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=q.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=Ye[s].icon;let j;e[0]!==o?(j=t.jsx(o,{size:14,className:"text-muted-foreground"}),e[0]=o,e[1]=j):j=e[1];const d=Ye[s];let m;e[2]!==a||e[3]!==d.labelKey?(m=a(d.labelKey),e[2]=a,e[3]=d.labelKey,e[4]=m):m=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[5]=x):x=e[5];let f;e[6]!==j||e[7]!==m?(f=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,m,x]})}),e[6]=j,e[7]=m,e[8]=f):f=e[8];let g;e[9]!==n||e[10]!==a||e[11]!==s?(g=mo.map(p=>{const l=Ye[p],y=l.icon;return t.jsxs("button",{type:"button",onClick:()=>{n(p),c(!1)},className:At("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-accent"),children:[t.jsx(y,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:a(l.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:a(l.subtitleKey)})]}),p===s&&t.jsx(qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=a,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=q.c(27),{tier:s,onTierChange:n,override:a,onOverrideChange:i}=r,c=ee(),[o,j]=w.useState(a!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==a||e[7]!==c||e[8]!==s||e[9]!==o?(x=o?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:a,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=a,e[7]=c,e[8]=s,e[9]=o,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==o?(g=t.jsx(ct,{checked:o,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=o,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=q.c(25),{override:s,onOverrideChange:n}=r,a=ee(),i=$s(),c=i[0]?.id??null;let o;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(o=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=o):o=e[3];const[j,d]=w.useState(o);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==a?(l=a("automations.automationConfig.connectAiProviderHint"),e[11]=a,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==a?(u=a("automations.automationConfig.pickModelPlaceholder"),e[15]=a,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Zt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:St,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:Ot},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:St},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Tt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Tt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:kt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:kt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=q.c(12),{agentId:s,value:n,onChange:a}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let o;e[2]!==c?(o=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=o):o=e[3];let j;e[4]!==s||e[5]!==a||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:a})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=a,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==o||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[o,j]}),e[9]=o,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=q.c(17),{value:s,checked:n,onToggle:a,title:i,description:c,leading:o}=r;let j;e[0]!==n?(j=t.jsx(Ft,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==o?(d=o&&t.jsx("span",{className:"mt-px shrink-0",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==a||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:a,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=a,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function Pt(r){const e=q.c(27),{conn:s,label:n,icon:a,on:i,total:c,onToggle:o}=r,j=ee(),d=i===c;let m;e[0]!==a||e[1]!==s?(m=s?t.jsx(Ps,{icon:s.icon,name:s.title,size:"2xs"}):a?t.jsx(a,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-2xs font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==o?(u=v=>{v.stopPropagation(),o()},e[12]=o,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-2xs font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=q.c(83),{agentId:s,value:n,onChange:a}=r,i=ee(),{org:c}=$t(),[o,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,_,D,k,P;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==a||e[10]!==o||e[11]!==i||e[12]!==n){const Q=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const O=ws(I._meta)??"__other__",Z=_s(I.name,O==="__other__"?void 0:O),A=I.title,xe=A&&A!==I.name?A:go(Z);H.has(O)||H.set(O,{clientId:O,conn:Q.get(O),tools:[]}),H.get(O).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],V=n===null?new Set(J):new Set(n),U=J.every(I=>V.has(I)),E=I=>a(J.every(O=>I.has(O))?null:[...I]),ae=I=>{const O=new Set(V);O.has(I)?O.delete(I):O.add(I),E(O)},ne=(I,O)=>{const Z=new Set(V);for(const A of I)O?Z.add(A):Z.delete(A);E(Z)};y=Lt,P=o,v=j;let Y;e[26]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=Y):Y=e[26];let ie;e[27]!==U||e[28]!==i?(ie=i(U?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=U,e[28]=i,e[29]=ie):ie=e[29];const ue=!U&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[V.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[Y,ie,ue,me]})}),e[31]=ie,e[32]=ue,e[33]=N):N=e[33],l=Rt,D="p-0 w-80",k="start",p=Ss;let te;e[34]!==i?(te=i("automations.automationConfig.searchToolsPlaceholder"),e[34]=i,e[35]=te):te=e[35],e[36]!==te?(T=t.jsx(ks,{placeholder:te}),e[36]=te,e[37]=T):T=e[37];const fe=U?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:V.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==a?(re=()=>a(null),e[40]=a,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==U||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:U,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=U,e[45]=re,e[46]=le,e[47]=C):C=e[47];let M;e[48]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=M):M=e[48];let z;e[49]!==a?(z=()=>a([]),e[49]=a,e[50]=z):z=e[50];const pe=V.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==z||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:z,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:oe}),e[53]=z,e[54]=pe,e[55]=oe,e[56]=ce):ce=e[56];let de;e[57]!==C||e[58]!==ce?(de=t.jsxs("div",{className:"flex items-center gap-2",children:[C,M,ce]}),e[57]=C,e[58]=ce,e[59]=de):de=e[59],e[60]!==se||e[61]!==de?(_=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[se,de]}),e[60]=se,e[61]=de,e[62]=_):_=e[62],h=Ts,S="max-h-80",b=g?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Cs,{children:i("automations.automationConfig.noToolsFound")}),Bt.map(I=>{const O=I.tools.map(bo),Z=O.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Z,total:O.length,onToggle:()=>ne(O,Z!==O.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:i(A.titleKey),description:i(A.descriptionKey),leading:t.jsx(A.icon,{size:16,className:"text-muted-foreground"})},A.name))},I.key)}),W.map(I=>{const O=I.tools.map(yo),Z=O.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Z,total:O.length,onToggle:()=>ne(O,Z!==O.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:A.display,description:A.description},A.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=a,e[10]=o,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=_,e[23]=D,e[24]=k,e[25]=P}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],_=e[22],D=e[23],k=e[24],P=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==_?(R=t.jsxs(p,{children:[T,_,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=_,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==D||e[75]!==k?(K=t.jsx(l,{className:D,align:k,children:R}),e[72]=l,e[73]=R,e[74]=D,e[75]=k,e[76]=K):K=e[76];let F;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==P?(F=t.jsxs(y,{open:P,onOpenChange:v,children:[N,K]}),e[77]=y,e[78]=v,e[79]=N,e[80]=K,e[81]=P,e[82]=F):F=e[82],F}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(a){const o=parseInt(a[1]??"1");return o%7===0?`Every ${o/7} weeks`:`Every ${o} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const o=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${o}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return a?{count:parseInt(a[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const _o=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],qe=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>qe.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Po({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:a}=ve(),[i,c]=w.useState("in_progress"),[o,j]=w.useState("any"),[d,m]=w.useState([]),x=qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=o!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await a.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:o==="statuses"?{kind:o,statuses:f}:{kind:o}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:o,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),o==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||a.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Ao=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const a=ee(),{triggerAdd:i}=ve(),c=qs(s?e:null),[o,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=o??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(a("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:a("automations.addStarterPopover.failedAddStarter"))}},N=b=>a(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:a("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:a("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:a("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:a("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:a("automations.jiraTransitionDialog.add")})]})]})})}function Eo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:a,onWebhookCreated:i}){const c=ee(),{triggerAdd:o}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await o.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await o.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:_o.map(v=>t.jsxs(ze,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:o.isPending,children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),a?.()},children:[t.jsx(ut,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.event")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(Et,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Ut,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(ze,{className:"gap-2.5",onSelect:()=>{y()},disabled:o.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Po,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=q.c(39),{open:s,onOpenChange:n,url:a,token:i,title:c,description:o}=r,j=c===void 0?"Webhook ready":c,d=o===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":o,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==a?(N=a&&i&&h==="url"?`${a.replace(/\/$/,"")}/${i}`:a??"",e[2]=h,e[3]=i,e[4]=a,e[5]=N):N=e[5];const S=N,b=a&&i?h==="header"?`curl -X POST "${S}" \\
|
|
2
2
|
-H "Authorization: Bearer ${i}" \\
|
|
3
3
|
-H "Content-Type: application/json" \\
|
|
4
4
|
-d '{"hello":"world"}'`:`curl -X POST "${S}" \\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,b as O,r as G,j as e,n as a,E as Q,B as V,ba as U}from"./index-
|
|
1
|
+
import{c as S,b as O,r as G,j as e,n as a,E as Q,B as V,ba as U}from"./index-DmyPeHtj.js";import{ChatLayout as W}from"./index-BJcrWx9T.js";import{s as X}from"./Plus-fnuC_-Ii.js";import{a as Y}from"./UserCheck01-BiEm5Ebz.js";import{i as F}from"./Zap-Ch4l-t5Z.js";import{S as Z}from"./search-input-KXpX5gme.js";import{E as $}from"./empty-state-L2cTHOLC.js";import{u as tt,a as et,b as it}from"./use-automations-CQGktFHE.js";import{a as ot}from"./use-panel-navigate-DLijLDIl.js";import{A as st}from"./automation-list-row-xGe3-vaO.js";import{c as nt}from"./thread-route-QjX15zqF.js";import"./use-mobile-BGIYUsLQ.js";import"./tooltip-CnD2gBxQ.js";import"./index-DAFFHpVi.js";import"./MessageCircle01-Vr9v9ZLf.js";import"./XClose-xoNzv1jt.js";import"./thread-button-DRipdtQl.js";import"./use-sidebar-collapsed-BsHAzi2v.js";import"./sheet-C4ApGL6L.js";import"./use-chat-layout-state-OXPATbvD.js";import"./toolbar-icon-button-BXZ6Fg9k.js";import"./use-in-settings-BhSbV6H8.js";import"./resizable-D3Zb0j0Y.js";import"./route-page-header-BjKtp3iF.js";import"./LayoutLeft-D6A6HKPj.js";import"./use-project-scope-sgJLxDnc.js";import"./repository-binding-BezKpFog.js";import"./use-mcp-client-DfqrKiZY.js";import"./auth-xINlnEh8.js";import"./use-current-view-DrUxoucV.js";import"./SearchMd-C7M41YQV.js";import"./badge-By3J5rC3.js";import"./SwitchHorizontal01-D47eRm9A.js";import"./Trash01-C_glH0wy.js";import"./agent-icon-DFYKaa0c.js";import"./AlertCircle-D1Q8X__K.js";import"./Tool01-eLaAOwHX.js";import"./ArrowUp-BjMuYXEC.js";import"./ArrowLeft-a7zQohPB.js";import"./ArrowRight-CcdemY_e.js";import"./BookOpen01-Caac9KpE.js";import"./Globe04-DGpfgXDy.js";import"./CheckCircle-BygonUdk.js";import"./ChevronDown-BDwdJQzR.js";import"./ChevronSelectorVertical-BAKnniO6.js";import"./ChevronUp-CoA7d7vl.js";import"./UserSquare-DRonBRNm.js";import"./LinkBroken01-DZpjy5h4.js";import"./CreditCard01-BD4H9Smc.js";import"./File02-CNp6lbfd.js";import"./Eye-B8RfELJD.js";import"./Fingerprint04-CYuFFJ8_.js";import"./Image01-DZ0d0gl4.js";import"./Key01-CCL-qpBw.js";import"./Minus-Cdvi1RtF.js";import"./Monitor01-BKLXdSAu.js";import"./Sun-TBLvGE97.js";import"./Play-KnC-ePg8.js";import"./ShoppingBag01-D27zZ3nR.js";import"./Upload01-VrBKSmfZ.js";import"./Users01-CYW34Us_.js";function rt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function at(o){const t=S.c(45),{virtualMcpId:n}=o,i=O(),{openPanel:r}=ot(),{data:D,error:M}=tt(n),v=D===void 0?[]:D,{create:y}=et(),[_,H]=G.useState("");if(M&&rt(M)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==r?(j=()=>r("settings"),t[5]=r,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let N;return t[12]!==x||t[13]!==h||t[14]!==C?(N=e.jsx(a,{children:e.jsx(a.Content,{children:e.jsx(a.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=N):N=t[15],N}const J=_.toLowerCase(),q=v.filter(s=>s.name.toLowerCase().includes(J));let w;t[16]!==r?(w=s=>r(`automation:${s}`),t[16]=r,t[17]=w):w=t[17];const B=w,R=async()=>{if(y.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:n,existing_count:v.length});const s=await y.mutateAsync(it(n));B(s.id)},K=y.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(X,{size:14}),t[18]=A):A=t[18];let m;t[19]!==i?(m=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=m):m=t[20];let L;t[21]!==y.isPending||t[22]!==R||t[23]!==m?(L=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[A,m]}),t[21]=y.isPending,t[22]=R,t[23]=m,t[24]=L):L=t[24];const P=L,E=a,T=a,k=a;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==P||t[28]!==l?(c=e.jsx(a.Title,{actions:P,children:l}),t[27]=P,t[28]=l,t[29]=c):c=t[29];const z=v.length>0&&e.jsx(Z,{value:_,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[30]!==z?(p=e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:z}),t[30]=z,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const I=v.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:!1})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==T.Content?(f=e.jsx(T.Content,{children:d}),t[39]=d,t[40]=T.Content,t[41]=f):f=t[41];let b;return t[42]!==E||t[43]!==f?(b=e.jsx(E,{children:f}),t[42]=E,t[43]=f,t[44]=b):b=t[44],b}function mt(o){const t=S.c(3),{virtualMcpId:n}=o;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(U,{}),t[0]=i):i=t[0];let r;return t[1]!==n?(r=e.jsx(G.Suspense,{fallback:i,children:e.jsx(at,{virtualMcpId:n})}),t[1]=n,t[2]=r):r=t[2],r}function lt(){const o=S.c(2),t=nt();let n;return o[0]!==t?(n=e.jsx(mt,{virtualMcpId:t}),o[0]=t,o[1]=n):n=o[1],n}function je(){const o=S.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{je as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-calendar-
|
|
2
|
-
import{c as X,b as ie,j as t,r as M,bb as oe,h as ae,aR as xe,aQ as be,aN as ye,aL as ve,aM as ke,aP as Ce,aO as je,bc as _e,m as we,bd as Se,be as Pe,t as T,B as Be,d as De,f as Ae,u as Ne,$ as le,bf as Ee}from"./index-Bf6kDBJJ.js";import{ChatLayout as Re}from"./index-BxAV7FAM.js";import{S as Te}from"./site-draft-actions-Cys_x7K4.js";import{F as $e}from"./feature-gate-a1fFtbnM.js";import{i as ne}from"./File02-7Vd4jW_I.js";import{s as Ie}from"./Plus-CMPQGYNJ.js";import{s as Le,a as Ke}from"./UserSquare-BlZFBeJE.js";import{c as ce}from"./UserCheck01-Bl-xFtn-.js";import{t as me}from"./Users01-y41RvLhz.js";import{S as Ve}from"./scroll-area-DK0MohcT.js";import{T as Me,a as Fe,c as Oe}from"./tooltip-C1ojQQy2.js";import{u as ze,a as Ge,d as Qe}from"./delete-copy-CyWTr2-i.js";import{u as Ue,a as We,k as Z}from"./use-never-published-CN7sgOi-.js";import{u as qe}from"./use-delete-block-CqXZMma0.js";import{d as He,f as Je}from"./site-editor-toast-B_YX3Li5.js";import{C as J,u as Xe,P as Ye,L as Ze,I as et,a as tt,s as ot,r as st}from"./item-actions-4ZXG0iY2.js";import{i as rt,B as te,s as it,E as at,o as lt,c as nt,m as ct,b as ee,g as se,e as mt,a as re,l as pt,r as dt,d as ut,f as ft,u as gt}from"./category-tree-Czed1V_u.js";import{u as ht}from"./primitives-C1No5xKr.js";import{F as xt}from"./agent-icon-Di7zqlxT.js";import{B as bt,a as yt}from"./blog-source-gate-Ce60HIPG.js";import{r as vt}from"./use-panel-navigate-DrHMPrDd.js";import{c as kt}from"./thread-route-CAdVyEBE.js";import{A as Ct}from"./agent-view-guard-CwnSIu1-.js";import{a as jt}from"./blog-view-gate-4XPksI2p.js";import"./use-mobile-DLKgN0MY.js";import"./MessageCircle01-cLkYRAq1.js";import"./XClose-CNBL86j1.js";import"./thread-button-BEg5fteo.js";import"./use-sidebar-collapsed-CRhLpQ__.js";import"./sheet-B9nYEq_U.js";import"./use-chat-layout-state-iNK0kVBA.js";import"./toolbar-icon-button-By_9Ecje.js";import"./use-in-settings-hxse8Hhp.js";import"./resizable-DMbeVWSR.js";import"./route-page-header-BFyj_RTT.js";import"./LayoutLeft-FMo6Osev.js";import"./use-project-scope-1pDf1lxX.js";import"./repository-binding-D_JA1fyv.js";import"./use-mcp-client-CaNN8ch9.js";import"./auth-B-a5Zgxg.js";import"./use-current-view-3DHjYKsB.js";import"./separator-CRKTbl5Q.js";import"./chat-context-DytZnaTl.js";import"./use-view-draft-kind-BXhF5iFd.js";import"./use-blog-view-Ct3qJq8H.js";import"./use-organization-settings-CJl2Ru2g.js";import"./schema-CBR_062O.js";import"./task-board-EnWJqcQ6.js";import"./thread-intent-DtKiFyIT.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CmbIOlgi.js";import"./session-runtime-CKy7akq1.js";import"./use-entitlements-CdiIkksN.js";import"./use-ai-providers-DfdZjEtf.js";import"./use-decopilot-events-q9mkqGKJ.js";import"./use-org-fs-6An12np_.js";import"./useInfiniteQuery-COV1vcmf.js";import"./infiniteQueryObserver-d7-nDzuW.js";import"./use-org-notice-jTLfFtFj.js";import"./popover-DiQ2Bfq9.js";import"./command-DIXZqeHF.js";import"./index-C3wTiNEy.js";import"./SearchMd-BRrpiXaK.js";import"./tabs-BDMFi5UF.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-DAnJt1CB.js";import"./SwitchHorizontal01-CoKNU7eN.js";import"./Tool01-CQpf9QHt.js";import"./Trash01-Dw3BP1yz.js";import"./use-voice-input-CZGiAdQC.js";import"./drawer-Crz9l-4U.js";import"./index-DhAzuetW.js";import"./checkbox-DV2T_2wi.js";import"./Minus-CpAwDyCu.js";import"./select-L_avoMHO.js";import"./index-BdQq_4o_.js";import"./index-ZqZk5RgT.js";import"./ChevronUp-OFnHDyjq.js";import"./ArrowLeft-BqT0JjoT.js";import"./ChevronSelectorVertical-CV3zcNGH.js";import"./Key01-B_hS_62c.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-BgljY9mZ.js";import"./AlertCircle-D2NouvfT.js";import"./Eye-CmYcf8ai.js";import"./Image01-BXYfiVgr.js";import"./use-debounced-value-DPFKvG0d.js";import"./shell-layout-DMaosfWb.js";import"./Globe04-24mKQ9Ao.js";import"./use-deployment-admin-VYoUqG2M.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-CLvYssUd.js";import"./Zap-CjPlT3gP.js";import"./integration-icon-DS7lm2zI.js";import"./LinkBroken01-Cq1VpHt5.js";import"./project-icon-BTZl10MB.js";import"./use-navigate-to-agent-DLWEuUiS.js";import"./new-project-dialog-c3TMJ5k3.js";import"./label-pfJxqM6J.js";import"./repository-picker-DG8GlSV6.js";import"./github-icon-DspshkUP.js";import"./collection-search-Daa7Sik-.js";import"./BookOpen01-3jk6-b2F.js";import"./ShoppingBag01-Lv_lXKl3.js";import"./new-project-store-DVbeCA79.js";import"./legacy-admin-welcome-dialog-CDOlAR4o.js";import"./required-auth-layout-DhFunmdD.js";import"./use-org-sso-S0027md8.js";import"./cms-store-drafts-BxkVhzpN.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-B_qidLcG.js";import"./url-slug-j0iJ8lmu.js";import"./use-blocks-v8-project-CK7jomFI.js";import"./content-changes-C9Vb6hJi.js";import"./use-fast-preview-draft-url-GLoGn3Z6.js";import"./blocks-tab-states-DyZqVv-l.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-WGRlYhaM.js";import"./index-D_pS5ZXh.js";import"./ArrowUp-BX4O3cRq.js";import"./input-1k9_lG9l.js";import"./usage-stats-BNxKoicX.js";import"./utils-CVEq3hMx.js";import"./markdown-CPntqjcN.js";import"./use-copy-BAGO9B0-.js";import"./gateway-client-Cj4FQJOw.js";import"./form-BkfFMNZc.js";import"./icon-button-Bb0nd3sO.js";import"./file-type-icon-B7lWHf7B.js";import"./chat-draft-CR3QGF0K.js";import"./ArrowRight-drioiso6.js";import"./Upload01-DGYPOiPg.js";import"./use-deco-credits-CmcGxN-5.js";import"./toggle-group-Bo6-1Pho.js";import"./input-CfERqe7P.js";import"./suggestion-CmkjlRde.js";import"./use-mcp-prompts-DMHyxZup.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-vMBXIDf6.js";import"./plan-ladder-l7IiO8Kx.js";import"./add-connection-dialog-Da-94zWB.js";import"./extract-connection-data-DrEGE84f.js";import"./metadata-D72DunRR.js";import"./connection-DDqO1q4H.js";import"./connection-card-B2AISi2n.js";import"./connection-slug-Sdn-JTB2.js";import"./textarea-CmzAWBpF.js";import"./use-connection-DA9yY-kf.js";import"./schema-CLDlJ9kb.js";import"./connection-form-helpers-Y3w8W20E.js";import"./authenticate-and-persist-oauth-BJKvJQB_.js";import"./mcp-oauth-CMwgcXqt.js";import"./mcp-oauth-CAO7EHWk.js";import"./collection-tabs-BOqc8wWl.js";import"./badge-CLRPbUCC.js";import"./use-infinite-scroll-CCGl3sqA.js";import"./useSuspenseInfiniteQuery-CqJAXxZd.js";import"./use-task-board-items-CWHT3OSj.js";import"./pair-BUIEjsmP.js";import"./collapsible-DL_QpL2k.js";import"./task-key-CnOo1you.js";import"./config-DrlLEd_m.js";import"./task-route-Cf7-9Vym.js";import"./project-index-oqFo2sF5.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Xh-Trx1u.js";import"./types-Bgvtdl4f.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-5ljze7lC.js";import"./agent-capabilities-BY-9tVop.js";import"./use-cms-publish-actions-B42l35BK.js";import"./use-content-sync-BLtyy-8h.js";import"./sandbox-git-api-B5ivbUKl.js";import"./utils-Bnx90cnk.js";import"./device-hint-B3lp0cJx.js";import"./alert-CmpLSGbv.js";import"./section-array-field-B87vkJiM.js";import"./editor-Dh0u_vVE.js";import"./save-changes-debug-nBi-n9eV.js";import"./use-sandbox-events-BQnRSUmP.js";import"./sandbox-lifecycle-context-DLB2RKwh.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-YMvV0kSt.js";import"./hosted-reconcile-BFN835oz.js";import"./search-input-FykCNfIP.js";import"./use-file-configs-DCBweulZ.js";import"./asset-utils-hNqdjb20.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-P04ndpoN.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-DyPQbQ4Z.js";import"./Play-B8qXRmXx.js";import"./use-move-blocks-DHYSyls5.js";import"./CreditCard01-HXOYzid-.js";import"./Fingerprint04-6UGroDLU.js";import"./Sun-DiXyHGM-.js";import"./blog-preview-url-B7yZ2G-y.js";import"./use-main-panel-tabs-DuSvD2uS.js";import"./use-mcp-tools-Mt5davfv.js";import"./resolve-tab-icon-C4iSO1U2.js";import"./use-task-metadata-lzA4V4K2.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-CTisoJjU.js";function _t(i){const e=X.c(53),{active:a,counts:g,showContext:v,onSelect:n}=i,o=ie();let d;e[0]!==o?(d=o("sandbox.collectionsSidebar.blog"),e[0]=o,e[1]=d):d=e[1];let c;e[2]!==d?(c=t.jsx("div",{className:"flex h-12 shrink-0 items-center border-b px-3",children:t.jsx("span",{className:"text-sm font-medium",children:d})}),e[2]=d,e[3]=c):c=e[3];let u;e[4]!==a||e[5]!==n||e[6]!==v||e[7]!==o?(u=v&&t.jsx(J,{icon:Le,label:o("sandbox.collectionsSidebar.context"),active:a==="context",onClick:()=>n("context")}),e[4]=a,e[5]=n,e[6]=v,e[7]=o,e[8]=u):u=e[8];let s;e[9]!==o?(s=o("sandbox.collectionsSidebar.posts"),e[9]=o,e[10]=s):s=e[10];const j=a==="posts";let x;e[11]!==n?(x=()=>n("posts"),e[11]=n,e[12]=x):x=e[12];let b;e[13]!==g.posts||e[14]!==s||e[15]!==j||e[16]!==x?(b=t.jsx(J,{icon:ne,label:s,count:g.posts,active:j,onClick:x}),e[13]=g.posts,e[14]=s,e[15]=j,e[16]=x,e[17]=b):b=e[17];let y;e[18]!==o?(y=o("sandbox.collectionsSidebar.authors"),e[18]=o,e[19]=y):y=e[19];const k=a==="authors";let l;e[20]!==n?(l=()=>n("authors"),e[20]=n,e[21]=l):l=e[21];let m;e[22]!==g.authors||e[23]!==l||e[24]!==y||e[25]!==k?(m=t.jsx(J,{icon:me,label:y,count:g.authors,active:k,onClick:l}),e[22]=g.authors,e[23]=l,e[24]=y,e[25]=k,e[26]=m):m=e[26];let h;e[27]!==o?(h=o("sandbox.collectionsSidebar.categories"),e[27]=o,e[28]=h):h=e[28];const f=a==="categories";let S;e[29]!==n?(S=()=>n("categories"),e[29]=n,e[30]=S):S=e[30];let A;e[31]!==g.categories||e[32]!==h||e[33]!==f||e[34]!==S?(A=t.jsx(J,{icon:ce,label:h,count:g.categories,active:f,onClick:S}),e[31]=g.categories,e[32]=h,e[33]=f,e[34]=S,e[35]=A):A=e[35];let N;e[36]!==o?(N=o("sandbox.collectionsSidebar.postSchedule"),e[36]=o,e[37]=N):N=e[37];const Q=a==="post-schedule";let D;e[38]!==n?(D=()=>n("post-schedule"),e[38]=n,e[39]=D):D=e[39];let B;e[40]!==N||e[41]!==Q||e[42]!==D?(B=t.jsx(J,{icon:xt,label:N,active:Q,onClick:D}),e[40]=N,e[41]=Q,e[42]=D,e[43]=B):B=e[43];let E;e[44]!==m||e[45]!==A||e[46]!==B||e[47]!==u||e[48]!==b?(E=t.jsxs("nav",{className:"flex flex-col gap-0.5 p-1.5",children:[u,b,m,A,B]}),e[44]=m,e[45]=A,e[46]=B,e[47]=u,e[48]=b,e[49]=E):E=e[49];let C;return e[50]!==c||e[51]!==E?(C=t.jsxs("div",{className:"flex w-[208px] shrink-0 flex-col border-r",children:[c,E]}),e[50]=c,e[51]=E,e[52]=C):C=e[52],C}const wt=M.lazy(()=>oe(()=>import("./post-calendar-CMpgu01_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-BBcvA9IQ.js"),__vite__mapDeps([150,1,2,80,126,40,77,13,15,145,151,24,34,35,136,122,66,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,123,102,76,75,3,4,5,6,7,8,9,10,11,12,14,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,36,37,38,124,125,127,128,117,118,119,120,121,129,130,137,116,131,138,139,140,95,141,142,47,48,49,46,78,79,152,153,144,42,43,44,45,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,154,155,156,157,158,159,160,161,162,163,164,165,39,146,147,166])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-DTHjgA1h.js"),__vite__mapDeps([167,1,2,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,4,9,19,16,80,126,40,77,13,15,154,5,155,136,122,123,102,76,75,3,6,7,8,10,11,12,14,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,124,125,127,128,117,118,119,120,121,129,130,137,116,131,138,139,140,95,141,142,47,48,49,46,78,79,151,152,153,144,156,145,157,81,158,42,43,44,45,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,159,160,161,162,163,164,165,39,168,147,169,166,170,135,143,171,146,172,173])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-DFZn6cdt.js"),__vite__mapDeps([174,1,2,137,117,118,54,55,56,64,119,50,51,52,53,57,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,120,121,122,123,102,76,77,75,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,124,125,126,40,127,128,129,130,116,131,133,80,152,145,135,47,48,49,46,78,79,136,138,139,140,95,141,142,42,43,44,45,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,143,166,151,153,144,146,147,175,157,171,173,176,177,156,172])).then(i=>({default:i.BlogContext})));function Dt(i){return i==="authors"||i==="categories"}function At({context:i,collection:e,item:a,onOpenCollection:g,onSelectItem:v,onOpenPost:n}){const o=ie(),{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,meta:j,sitePreviewUrl:x,hostedDraft:b}=i,y=ze(),k=Ge(c),l=Pe(e,y),m=Ue({orgSlug:d,virtualMcpId:c,branch:u}),h=qe({orgSlug:d,virtualMcpId:c,branch:u}),f=m.v8,S=He({orgSlug:d,virtualMcpId:c,branch:u}),A=Je(b?{orgSlug:d,virtualMcpId:c,branch:u}:null,rt),N=We({orgSlug:d,virtualMcpId:c,branch:u}),[Q,D]=M.useState(""),[B,E]=M.useState("list"),[C,$]=M.useState(null),U=o("sandbox.contentBrowser.deleteDialog.title",{noun:C?te[C.kind]:"item"}),K=C?o(Qe("block",b,{neverPublished:N(C.key)}),{label:C.label}):null,V=Xe(K===null?null:{title:U,description:K},b),[F,O]=M.useState(l);F!==l&&(O(l),D(""));const P=ht({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),z=it(s),pe={posts:z.posts.length,authors:z.authors.length,categories:z.categories.length},de=async r=>{const _=se(s,r),I=ee(_,r,mt(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:I,...f?{create:!0}:{}});Z(p)||T.success(`Created ${te[r]}`),v(_)}catch(p){T.error(p instanceof Error?p.message:"Could not create")}},ue=async r=>{const _=p=>{if(!p)return T.error("Record not found."),null;const w=se(s,r.kind),R=r.kind==="posts"?"title":"name",L={...structuredClone(re(p,r.kind)),[R]:`${r.label} (copy)`};if(r.kind==="categories"){const q=z.categories.map(W=>W.slug??"").filter(Boolean);L.slug=gt(String(L.slug??""),q)}return{key:w,payload:L}},I=f?null:_(s[r.key]);try{const p=f?_(await S(s,r.key)):I;if(!p)return;const{key:w,payload:R}=p,L=await m.mutateAsync({blockKey:w,data:ee(w,r.kind,R),...f?{create:!0}:{}});Z(L)||T.success(`Duplicated "${r.label}"`),v(w)}catch(p){T.error(p instanceof Error?p.message:"Duplicate failed")}},fe=async r=>{const _=se(s,"posts"),I=ee(_,"posts",ot(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:I,...f?{create:!0}:{}});Z(p)||T.success(o("sandbox.postCalendar.createdScheduledPost")),n(_)}catch(p){T.error(p instanceof Error?p.message:o("sandbox.postCalendar.couldNotCreate"))}},ge=async(r,_)=>{const I=w=>{const R=w?st(re(w,"posts"),_):null;return R?{source:w,payload:R}:(T.error(o("sandbox.postCalendar.onlyScheduledCanMove")),null)},p=f?null:I(s[r]);try{const w=f?I(await S(s,r)):p;if(!w)return;const{source:R,payload:L}=w;await m.mutateAsync({blockKey:r,data:ee(r,"posts",L),...f?{base:{value:R,fromCache:!0}}:{}})}catch(w){T.error(w instanceof Error?w.message:o("sandbox.postCalendar.couldNotReschedule"))}},he=async()=>{if(!C)return;const{kind:r,key:_,label:I}=C;try{const p=f?await S(s,_):r==="categories"?s[_]:void 0;if(f&&!p)throw new Error(o("sectionsEditor.hosted.blockLoadFailed"));if(r==="categories"){const R=re(p,"categories").slug,L=typeof R=="string"?R:"";if(L){const q=f?{...s}:s;if(f){const W=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,H]of W)H?q[G]=H:delete q[G]}for(const{key:W,payload:G}of pt(q)){const H=dt(G,L);H!==G&&await m.mutateAsync({blockKey:W,data:ut(W,ft(H)),...f?{base:{value:q[W],fromCache:!0}}:{}})}}}const w=await h.mutateAsync({blockKey:_,...f?{base:{value:p}}:{}});if($(null),Z(w))return;T.success(`Deleted "${I}"`),a===_&&v(void 0)}catch(p){T.error(p instanceof Error?p.message:"Delete failed")}},Y=h.isPending||m.isPending;return t.jsxs("div",{className:"flex h-full w-full",children:[t.jsx(_t,{active:l,counts:pe,showContext:y,onSelect:g}),Dt(l)&&t.jsx(Nt,{kind:l,entries:z[l],searchQuery:Q,onSearchChange:D,selectedKey:a,onSelect:r=>v(r),onCreate:()=>{de(l)},onDuplicate:r=>{ue(r)},onDelete:$}),t.jsx("div",{className:"min-w-0 flex-1",children:t.jsx(M.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ae,{className:"size-5 text-muted-foreground"})}),children:l==="context"?t.jsx(Bt,{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,meta:j}):l==="post-schedule"?t.jsx(wt,{decofile:s,isCreating:m.isPending,onCreate:r=>{fe(r)},onReschedule:(r,_)=>{ge(r,_)},onSelect:n}):l==="posts"?t.jsx(Ye,{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,view:B,onViewChange:E,onOpen:n,move:P,meta:j}):a?l==="categories"?t.jsx(Pt,{orgSlug:d,virtualMcpId:c,branch:u,blockKey:a,block:s[a],decofile:s,meta:j,onManagePosts:()=>g("posts"),onOpenPost:n,previewBaseUrl:x,fastPreviewActive:i.fastPreviewActive},`category:${a}`):t.jsx(St,{orgSlug:d,virtualMcpId:c,branch:u,kind:"authors",blockKey:a,block:s[a],meta:j,decofile:s},`authors:${a}`):t.jsx(at,{title:`Select ${l==="authors"?"an author":"a category"} to edit`,description:'Pick an item from the list, or click "+" to create one.'})})}),t.jsx(xe,{open:!!C,onOpenChange:r=>{!r&&!Y&&$(null)},children:t.jsxs(be,{children:[t.jsxs(ye,{children:[t.jsx(ve,{children:V?.title??U}),t.jsx(ke,{children:V?.description??null})]}),t.jsxs(Ce,{children:[t.jsx(je,{disabled:Y,children:o("sandbox.contentBrowser.deleteDialog.cancel")}),t.jsx(_e,{onClick:r=>{r.preventDefault(),he()},disabled:Y,className:we(Se({variant:"destructive"})),children:Y?t.jsxs(t.Fragment,{children:[t.jsx(ae,{className:"size-3.5"}),o("sandbox.contentBrowser.deleteDialog.deleting")]}):o("sandbox.contentBrowser.deleteDialog.delete")})]})]})})]})}function Nt(i){const e=X.c(46),{kind:a,entries:g,searchQuery:v,onSearchChange:n,selectedKey:o,onSelect:d,onCreate:c,onDuplicate:u,onDelete:s}=i,j=ie();let x,b,y,k,l,m;if(e[0]!==g||e[1]!==a||e[2]!==c||e[3]!==s||e[4]!==u||e[5]!==n||e[6]!==d||e[7]!==v||e[8]!==o||e[9]!==j){const A=v.toLowerCase(),N=g.filter(O=>!A||O.label.toLowerCase().includes(A)||O.subtitle.toLowerCase().includes(A)),Q=a==="categories"&&!A?lt(N):N.map(Rt),D=`Search ${a}…`,B=`Create new ${te[a]}`;l="flex w-[300px] min-h-0 shrink-0 flex-col border-r";let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground","aria-hidden":!0}),e[16]=E):E=e[16];let C;e[17]!==n?(C=O=>n(O.target.value),e[17]=n,e[18]=C):C=e[18];let $;e[19]!==D||e[20]!==v||e[21]!==C?($=t.jsxs("div",{className:"flex flex-1 items-center gap-2 pl-1",children:[E,t.jsx("input",{type:"text",value:v,onChange:C,placeholder:D,"aria-label":D,className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"})]}),e[19]=D,e[20]=v,e[21]=C,e[22]=$):$=e[22];let U;e[23]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx(Ie,{size:16}),e[23]=U):U=e[23];let K;e[24]!==B||e[25]!==c?(K=t.jsx(Me,{asChild:!0,children:t.jsx(Be,{variant:"ghost",size:"icon",onClick:c,"aria-label":B,children:U})}),e[24]=B,e[25]=c,e[26]=K):K=e[26];let V;e[27]!==B?(V=t.jsx(Fe,{children:B}),e[27]=B,e[28]=V):V=e[28];let F;e[29]!==K||e[30]!==V?(F=t.jsxs(Oe,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=F):F=e[31],e[32]!==F||e[33]!==$?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[$,F]}),e[32]=F,e[33]=$,e[34]=m):m=e[34],x=Ve,k="min-h-0 flex-1",b="p-1",y=N.length===0?t.jsx(Ze,{hasItems:g.length>0,emptyLabel:`No ${a} yet.`,emptyHint:`Click "+" to create your first ${te[a]}.`}):Q.map(O=>{const{entry:P,depth:z}=O;return t.jsx("div",{style:{paddingLeft:z*16},children:t.jsx(et,{icon:P.kind==="posts"?ne:P.kind==="authors"?me:ce,title:P.label,invalid:P.missing.length>0,invalidReason:P.missing.length>0?j("sandbox.itemRow.missingFields",{fields:ct(P.missing,j)}):void 0,warning:P.duplicateName,warningReason:j("sandbox.itemRow.duplicateName"),subtitle:z>0?nt(P.slug??"",N).map(Et).join(" / "):P.subtitle,active:o===P.key,onClick:()=>d(P.key),menu:t.jsx(tt,{onDuplicate:()=>u(P),onDelete:()=>s(P)})})},P.key)}),e[0]=g,e[1]=a,e[2]=c,e[3]=s,e[4]=u,e[5]=n,e[6]=d,e[7]=v,e[8]=o,e[9]=j,e[10]=x,e[11]=b,e[12]=y,e[13]=k,e[14]=l,e[15]=m}else x=e[10],b=e[11],y=e[12],k=e[13],l=e[14],m=e[15];let h;e[35]!==b||e[36]!==y?(h=t.jsx("div",{className:b,children:y}),e[35]=b,e[36]=y,e[37]=h):h=e[37];let f;e[38]!==x||e[39]!==k||e[40]!==h?(f=t.jsx(x,{className:k,children:h}),e[38]=x,e[39]=k,e[40]=h,e[41]=f):f=e[41];let S;return e[42]!==l||e[43]!==m||e[44]!==f?(S=t.jsxs("div",{className:l,children:[m,f]}),e[42]=l,e[43]=m,e[44]=f,e[45]=S):S=e[45],S}function Et(i){return i.slug}function Rt(i){return{entry:i,depth:0}}function Tt(i){const e=X.c(17),{virtualMcpId:a}=i,g=De();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={strict:!1},e[0]=v):v=e[0];const n=Ae(v);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const d=Ne(o),c=d.blogCollection??"posts",u=n.org??"",s=n.agentId??"";let j;e[2]!==u||e[3]!==s?(j={org:u,agentId:s},e[2]=u,e[3]=s,e[4]=j):j=e[4];const x=j;let b;e[5]!==g||e[6]!==x?(b=m=>{g({to:le.blog,params:x,search:h=>({...h,...m}),replace:!0})},e[5]=g,e[6]=x,e[7]=b):b=e[7];const y=b;let k;e[8]!==c||e[9]!==g||e[10]!==x||e[11]!==d.blogItem||e[12]!==y?(k=t.jsx(bt,{children:m=>t.jsx(At,{context:m,collection:c,item:d.blogItem,onOpenCollection:h=>y({blogCollection:h,blogItem:void 0}),onSelectItem:h=>y({blogItem:h}),onOpenPost:h=>{g({to:le.blogPost,params:{...x,postId:Ee(h)},search:$t})}})}),e[8]=c,e[9]=g,e[10]=x,e[11]=d.blogItem,e[12]=y,e[13]=k):k=e[13];let l;return e[14]!==k||e[15]!==a?(l=t.jsx(yt,{virtualMcpId:a,children:k}),e[14]=k,e[15]=a,e[16]=l):l=e[16],l}function $t(i){return vt({previous:i,destination:"agent"})}function It(){const i=X.c(2),e=kt();let a;return i[0]!==e?(a=t.jsx(jt,{children:t.jsx(Ct,{tabId:"blog",children:t.jsx($e,{feature:"cms",children:t.jsx(Tt,{virtualMcpId:e})})})}),i[0]=e,i[1]=a):a=i[1],a}function Pi(){const i=X.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Re.Content,{actions:t.jsx(Te,{}),children:t.jsx(It,{})}),i[0]=e):e=i[0],e}export{Pi as default};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-calendar-C64qCtHG.js","assets/index-DmyPeHtj.js","assets/index-CnYld4bq.css","assets/agent-icon-DFYKaa0c.js","assets/AlertCircle-D1Q8X__K.js","assets/UserCheck01-BiEm5Ebz.js","assets/Tool01-eLaAOwHX.js","assets/ArrowUp-BjMuYXEC.js","assets/ArrowLeft-a7zQohPB.js","assets/ArrowRight-CcdemY_e.js","assets/BookOpen01-Caac9KpE.js","assets/Globe04-DGpfgXDy.js","assets/CheckCircle-BygonUdk.js","assets/ChevronDown-BDwdJQzR.js","assets/ChevronSelectorVertical-BAKnniO6.js","assets/ChevronUp-CoA7d7vl.js","assets/UserSquare-DRonBRNm.js","assets/LinkBroken01-DZpjy5h4.js","assets/CreditCard01-BD4H9Smc.js","assets/File02-CNp6lbfd.js","assets/MessageCircle01-Vr9v9ZLf.js","assets/SwitchHorizontal01-D47eRm9A.js","assets/Eye-B8RfELJD.js","assets/Fingerprint04-CYuFFJ8_.js","assets/Image01-DZ0d0gl4.js","assets/Key01-CCL-qpBw.js","assets/LayoutLeft-D6A6HKPj.js","assets/Minus-Cdvi1RtF.js","assets/Monitor01-BKLXdSAu.js","assets/Sun-TBLvGE97.js","assets/Play-KnC-ePg8.js","assets/Plus-fnuC_-Ii.js","assets/SearchMd-C7M41YQV.js","assets/ShoppingBag01-D27zZ3nR.js","assets/Trash01-C_glH0wy.js","assets/Upload01-VrBKSmfZ.js","assets/Users01-CYW34Us_.js","assets/XClose-xoNzv1jt.js","assets/Zap-Ch4l-t5Z.js","assets/scroll-area-DmKBqmqO.js","assets/index-BdQq_4o_.js","assets/date-utils-CrvIKg-s.js","assets/category-tree-ldYsSWnP.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-CgeeVvss.js","assets/collapsible-CxuxAsHp.js","assets/use-copy-DcPGMlZ-.js","assets/usage-stats-DX6ERAU7.js","assets/utils-CVEq3hMx.js","assets/markdown-B7FqmO_Q.js","assets/chat-context-CqcR4aAu.js","assets/use-panel-navigate-DLijLDIl.js","assets/thread-route-QjX15zqF.js","assets/use-project-scope-sgJLxDnc.js","assets/repository-binding-BezKpFog.js","assets/use-mcp-client-DfqrKiZY.js","assets/auth-xINlnEh8.js","assets/use-view-draft-kind-XY0ukhv-.js","assets/use-blog-view-9Y1OwyU5.js","assets/use-organization-settings-DRtlFFBs.js","assets/schema-CRoCQYHH.js","assets/task-board-B8wzNBqW.js","assets/thread-intent-1kOP6maa.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-BbbQrIO0.js","assets/session-runtime-CvClIIGY.js","assets/use-entitlements-BYhZgO5P.js","assets/use-ai-providers-DrvsAXJ7.js","assets/use-current-view-DrUxoucV.js","assets/use-in-settings-BhSbV6H8.js","assets/use-decopilot-events-Be8G8lj7.js","assets/use-org-fs-j9Hf5idr.js","assets/useInfiniteQuery-CSIthp54.js","assets/infiniteQueryObserver-D9fycF8k.js","assets/use-mobile-BGIYUsLQ.js","assets/tooltip-CnD2gBxQ.js","assets/index-DAFFHpVi.js","assets/gateway-client-ekFKMjOy.js","assets/form-W6JWpxT_.js","assets/label-B61Mm8gW.js","assets/task-key-CpnKPfDS.js","assets/use-task-board-items-B1Pzgu76.js","assets/config-DbV4O0C1.js","assets/task-route-CkAEJVQF.js","assets/project-index-Di4hbJe7.js","assets/shell-layout-DJOHh2NE.js","assets/use-deployment-admin-BGJ_CxB1.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-J6OTcXIJ.js","assets/command-DmBlCsxL.js","assets/index-_reJwud9.js","assets/integration-icon-92n5xPlq.js","assets/project-icon-D-KoSfqD.js","assets/use-navigate-to-agent-stX_hK-R.js","assets/use-debounced-value-Io5mDbSS.js","assets/new-project-dialog-zI9XmIIv.js","assets/repository-picker-BcZZvjJw.js","assets/github-icon-DVLt0ntX.js","assets/collection-search-DhW2WLfL.js","assets/new-project-store-BL2Sa0gM.js","assets/legacy-admin-welcome-dialog-DPVEA9Z4.js","assets/drawer-D_TsrN48.js","assets/required-auth-layout-CRS7KXgy.js","assets/use-org-sso-B8YBjAU0.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-BsX2Dy6R.js","assets/types-DxV-fZV6.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-C4ApGL6L.js","assets/use-connection-G9Us7hRV.js","assets/use-mcp-prompts-CxlRUHT-.js","assets/use-thread-outputs-CtVbBsAG.js","assets/file-type-icon-BIdp66kj.js","assets/section-array-field-BUwgz_eV.js","assets/blocks-tab-states-C-fKJR1R.js","assets/site-editor-toast-DLSJJb2F.js","assets/content-changes-JBgMg-Ro.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-D7X3VYGW.js","assets/use-blocks-v8-project-DQzOlv_E.js","assets/use-voice-input-DguZp9dH.js","assets/popover-QqVUvEYR.js","assets/index-Dcn6CILj.js","assets/checkbox-Bg0tGTVi.js","assets/select-B-VvZR_M.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-DgfuCg_0.js","assets/sandbox-git-api-DZ5qElbf.js","assets/empty-state-L2cTHOLC.js","assets/item-actions-xfXl6n2G.js","assets/badge-By3J5rC3.js","assets/empty-state-D1phlWfb.js","assets/delete-copy-DlW6ZUtG.js","assets/use-never-published-CJQoljTh.js","assets/hosted-reconcile-4JQ_9bXq.js","assets/search-input-KXpX5gme.js","assets/tabs-DBKq274Z.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-k_hhBwsx.js","assets/asset-utils-BK2ot-jO.js","assets/index-nmSJ42Ew.js","assets/match-site-slug-config-B47_xZCi.js","assets/textarea-Djiqi_Hb.js","assets/primitives-yWcLmNO5.js","assets/use-move-blocks-CYHOXTJj.js","assets/monaco-editor-DVxpBvnd.js","assets/editor-DHPR_ozC.js","assets/record-editor-B4kmxAIk.js","assets/save-status-DBCJolXB.js","assets/switch-CfqVcR-v.js","assets/toggle-group-BMYX_eGL.js","assets/blog-schema-03G2DeQU.js","assets/held-block-view-Bdat6dmL.js","assets/calendar-DhrCDRQ3.js","assets/editor-classes-BLd4hHmH.js","assets/sortable.esm-C0ThOxD8.js","assets/named-rule-step-DjZE94ti.js","assets/slider-BIv9sKN-.js","assets/index-AtaL2JD_.js","assets/tooltipContext-B6Z4ndzl.js","assets/CategoricalChart-CCxFJJjf.js","assets/index-BsbFaHMN.js","assets/combobox-B-vXOMV-.js","assets/use-autosave-4o04OWTs.js","assets/category-editor-df2u5p7v.js","assets/blog-preview-url-B9jP2xxs.js","assets/use-fast-preview-draft-url-C1FIhbN9.js","assets/block-document-Bog58LB_.js","assets/suggestion-DIf7hFaH.js","assets/product-picker-dialog-Bw4o2LZ9.js","assets/index-ChDgpo9K.js","assets/context-qsn0J_YZ.js","assets/index-B8xqh-Zd.js","assets/icon-button-BKSgoP48.js","assets/use-delete-block-ZSPe1Jt_.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as X,b as ie,j as t,r as M,bb as oe,h as ae,aR as xe,aQ as be,aN as ye,aL as ve,aM as ke,aP as Ce,aO as je,bc as _e,m as we,bd as Se,be as Pe,t as T,B as Be,d as De,f as Ae,u as Ne,$ as le,bf as Ee}from"./index-DmyPeHtj.js";import{ChatLayout as Re}from"./index-BJcrWx9T.js";import{S as Te}from"./site-draft-actions-8xVV9dEa.js";import{F as $e}from"./feature-gate-BSqSDhFD.js";import{i as ne}from"./File02-CNp6lbfd.js";import{s as Ie}from"./Plus-fnuC_-Ii.js";import{s as Le,a as Ke}from"./UserSquare-DRonBRNm.js";import{c as ce}from"./UserCheck01-BiEm5Ebz.js";import{t as me}from"./Users01-CYW34Us_.js";import{S as Ve}from"./scroll-area-DmKBqmqO.js";import{T as Me,a as Fe,c as Oe}from"./tooltip-CnD2gBxQ.js";import{u as ze,a as Ge,d as Qe}from"./delete-copy-DlW6ZUtG.js";import{u as Ue,a as We,k as Z}from"./use-never-published-CJQoljTh.js";import{u as qe}from"./use-delete-block-ZSPe1Jt_.js";import{d as He,f as Je}from"./site-editor-toast-DLSJJb2F.js";import{C as J,u as Xe,P as Ye,L as Ze,I as et,a as tt,s as ot,r as st}from"./item-actions-xfXl6n2G.js";import{i as rt,B as te,s as it,E as at,o as lt,c as nt,m as ct,b as ee,g as se,e as mt,a as re,l as pt,r as dt,d as ut,f as ft,u as gt}from"./category-tree-ldYsSWnP.js";import{u as ht}from"./primitives-yWcLmNO5.js";import{F as xt}from"./agent-icon-DFYKaa0c.js";import{B as bt,a as yt}from"./blog-source-gate-D0f9lC6c.js";import{r as vt}from"./use-panel-navigate-DLijLDIl.js";import{c as kt}from"./thread-route-QjX15zqF.js";import{A as Ct}from"./agent-view-guard-DKuyN-80.js";import{a as jt}from"./blog-view-gate-Cd7nZI43.js";import"./use-mobile-BGIYUsLQ.js";import"./MessageCircle01-Vr9v9ZLf.js";import"./XClose-xoNzv1jt.js";import"./thread-button-DRipdtQl.js";import"./use-sidebar-collapsed-BsHAzi2v.js";import"./sheet-C4ApGL6L.js";import"./use-chat-layout-state-OXPATbvD.js";import"./toolbar-icon-button-BXZ6Fg9k.js";import"./use-in-settings-BhSbV6H8.js";import"./resizable-D3Zb0j0Y.js";import"./route-page-header-BjKtp3iF.js";import"./LayoutLeft-D6A6HKPj.js";import"./use-project-scope-sgJLxDnc.js";import"./repository-binding-BezKpFog.js";import"./use-mcp-client-DfqrKiZY.js";import"./auth-xINlnEh8.js";import"./use-current-view-DrUxoucV.js";import"./separator-CxWekJLq.js";import"./chat-context-CqcR4aAu.js";import"./use-view-draft-kind-XY0ukhv-.js";import"./use-blog-view-9Y1OwyU5.js";import"./use-organization-settings-DRtlFFBs.js";import"./schema-CRoCQYHH.js";import"./task-board-B8wzNBqW.js";import"./thread-intent-1kOP6maa.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BbbQrIO0.js";import"./session-runtime-CvClIIGY.js";import"./use-entitlements-BYhZgO5P.js";import"./use-ai-providers-DrvsAXJ7.js";import"./use-decopilot-events-Be8G8lj7.js";import"./use-org-fs-j9Hf5idr.js";import"./useInfiniteQuery-CSIthp54.js";import"./infiniteQueryObserver-D9fycF8k.js";import"./use-org-notice-J6OTcXIJ.js";import"./popover-QqVUvEYR.js";import"./command-DmBlCsxL.js";import"./index-_reJwud9.js";import"./SearchMd-C7M41YQV.js";import"./tabs-DBKq274Z.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-BDwdJQzR.js";import"./SwitchHorizontal01-D47eRm9A.js";import"./Tool01-eLaAOwHX.js";import"./Trash01-C_glH0wy.js";import"./use-voice-input-DguZp9dH.js";import"./drawer-D_TsrN48.js";import"./index-Dcn6CILj.js";import"./checkbox-Bg0tGTVi.js";import"./Minus-Cdvi1RtF.js";import"./select-B-VvZR_M.js";import"./index-BdQq_4o_.js";import"./index-DAFFHpVi.js";import"./ChevronUp-CoA7d7vl.js";import"./ArrowLeft-a7zQohPB.js";import"./ChevronSelectorVertical-BAKnniO6.js";import"./Key01-CCL-qpBw.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-BKLXdSAu.js";import"./AlertCircle-D1Q8X__K.js";import"./Eye-B8RfELJD.js";import"./Image01-DZ0d0gl4.js";import"./use-debounced-value-Io5mDbSS.js";import"./shell-layout-DJOHh2NE.js";import"./Globe04-DGpfgXDy.js";import"./use-deployment-admin-BGJ_CxB1.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-BygonUdk.js";import"./Zap-Ch4l-t5Z.js";import"./integration-icon-92n5xPlq.js";import"./LinkBroken01-DZpjy5h4.js";import"./project-icon-D-KoSfqD.js";import"./use-navigate-to-agent-stX_hK-R.js";import"./new-project-dialog-zI9XmIIv.js";import"./label-B61Mm8gW.js";import"./repository-picker-BcZZvjJw.js";import"./github-icon-DVLt0ntX.js";import"./collection-search-DhW2WLfL.js";import"./BookOpen01-Caac9KpE.js";import"./ShoppingBag01-D27zZ3nR.js";import"./new-project-store-BL2Sa0gM.js";import"./legacy-admin-welcome-dialog-DPVEA9Z4.js";import"./required-auth-layout-CRS7KXgy.js";import"./use-org-sso-B8YBjAU0.js";import"./cms-store-drafts-2T-3kouy.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-Ci6QcDj7.js";import"./url-slug-cwQb0zdO.js";import"./use-blocks-v8-project-DQzOlv_E.js";import"./content-changes-JBgMg-Ro.js";import"./use-fast-preview-draft-url-C1FIhbN9.js";import"./blocks-tab-states-C-fKJR1R.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-L2cTHOLC.js";import"./index-gEUrUJcs.js";import"./ArrowUp-BjMuYXEC.js";import"./input-BqJq_7pW.js";import"./usage-stats-DX6ERAU7.js";import"./utils-CVEq3hMx.js";import"./markdown-B7FqmO_Q.js";import"./use-copy-DcPGMlZ-.js";import"./gateway-client-ekFKMjOy.js";import"./form-W6JWpxT_.js";import"./icon-button-BKSgoP48.js";import"./file-type-icon-BIdp66kj.js";import"./chat-draft-D6uyGiuZ.js";import"./ArrowRight-CcdemY_e.js";import"./Upload01-VrBKSmfZ.js";import"./use-deco-credits-CIEhAz6A.js";import"./toggle-group-BMYX_eGL.js";import"./input-wtbnNzNz.js";import"./suggestion-DIf7hFaH.js";import"./use-mcp-prompts-CxlRUHT-.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-CzZKQU6l.js";import"./plan-ladder-BuBxtLzi.js";import"./add-connection-dialog--_GdeImt.js";import"./extract-connection-data-D6-4uHNK.js";import"./metadata-D72DunRR.js";import"./connection-B7ZHR3E3.js";import"./connection-card-C1SHg1dG.js";import"./connection-slug-B5tLzvCi.js";import"./textarea-Djiqi_Hb.js";import"./use-connection-G9Us7hRV.js";import"./schema-D0halWwt.js";import"./connection-form-helpers-tazbDTDK.js";import"./authenticate-and-persist-oauth-CfAul8ih.js";import"./mcp-oauth-BxD-kgyz.js";import"./mcp-oauth-BZS2Yc1A.js";import"./collection-tabs-D91PU4y3.js";import"./badge-By3J5rC3.js";import"./use-infinite-scroll-DW5uI5g1.js";import"./useSuspenseInfiniteQuery-Z_2IraLh.js";import"./use-task-board-items-B1Pzgu76.js";import"./pair-CgeeVvss.js";import"./collapsible-CxuxAsHp.js";import"./task-key-CpnKPfDS.js";import"./config-DbV4O0C1.js";import"./task-route-CkAEJVQF.js";import"./project-index-Di4hbJe7.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BsX2Dy6R.js";import"./types-DxV-fZV6.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-CtVbBsAG.js";import"./agent-capabilities-CkWGD_1I.js";import"./use-cms-publish-actions-E5PxzXRo.js";import"./use-content-sync-qLtFKVoY.js";import"./sandbox-git-api-DZ5qElbf.js";import"./utils-DgfuCg_0.js";import"./device-hint-0_GHbWqS.js";import"./alert-DosQ3gDY.js";import"./section-array-field-BUwgz_eV.js";import"./editor-DHPR_ozC.js";import"./save-changes-debug-nBi-n9eV.js";import"./use-sandbox-events-D7X3VYGW.js";import"./sandbox-lifecycle-context-BukF6MQn.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-nmSJ42Ew.js";import"./hosted-reconcile-4JQ_9bXq.js";import"./search-input-KXpX5gme.js";import"./use-file-configs-k_hhBwsx.js";import"./asset-utils-BK2ot-jO.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-D1phlWfb.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-DVxpBvnd.js";import"./Play-KnC-ePg8.js";import"./use-move-blocks-CYHOXTJj.js";import"./CreditCard01-BD4H9Smc.js";import"./Fingerprint04-CYuFFJ8_.js";import"./Sun-TBLvGE97.js";import"./blog-preview-url-B9jP2xxs.js";import"./use-main-panel-tabs-COup8C-z.js";import"./use-mcp-tools-DBXAxSmu.js";import"./resolve-tab-icon-lPLw9e6M.js";import"./use-task-metadata-BUNn-khG.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-CflbYfyt.js";function _t(i){const e=X.c(53),{active:a,counts:g,showContext:v,onSelect:n}=i,o=ie();let d;e[0]!==o?(d=o("sandbox.collectionsSidebar.blog"),e[0]=o,e[1]=d):d=e[1];let c;e[2]!==d?(c=t.jsx("div",{className:"flex h-12 shrink-0 items-center border-b px-3",children:t.jsx("span",{className:"text-sm font-medium",children:d})}),e[2]=d,e[3]=c):c=e[3];let u;e[4]!==a||e[5]!==n||e[6]!==v||e[7]!==o?(u=v&&t.jsx(J,{icon:Le,label:o("sandbox.collectionsSidebar.context"),active:a==="context",onClick:()=>n("context")}),e[4]=a,e[5]=n,e[6]=v,e[7]=o,e[8]=u):u=e[8];let s;e[9]!==o?(s=o("sandbox.collectionsSidebar.posts"),e[9]=o,e[10]=s):s=e[10];const j=a==="posts";let x;e[11]!==n?(x=()=>n("posts"),e[11]=n,e[12]=x):x=e[12];let b;e[13]!==g.posts||e[14]!==s||e[15]!==j||e[16]!==x?(b=t.jsx(J,{icon:ne,label:s,count:g.posts,active:j,onClick:x}),e[13]=g.posts,e[14]=s,e[15]=j,e[16]=x,e[17]=b):b=e[17];let y;e[18]!==o?(y=o("sandbox.collectionsSidebar.authors"),e[18]=o,e[19]=y):y=e[19];const k=a==="authors";let l;e[20]!==n?(l=()=>n("authors"),e[20]=n,e[21]=l):l=e[21];let m;e[22]!==g.authors||e[23]!==l||e[24]!==y||e[25]!==k?(m=t.jsx(J,{icon:me,label:y,count:g.authors,active:k,onClick:l}),e[22]=g.authors,e[23]=l,e[24]=y,e[25]=k,e[26]=m):m=e[26];let h;e[27]!==o?(h=o("sandbox.collectionsSidebar.categories"),e[27]=o,e[28]=h):h=e[28];const f=a==="categories";let S;e[29]!==n?(S=()=>n("categories"),e[29]=n,e[30]=S):S=e[30];let A;e[31]!==g.categories||e[32]!==h||e[33]!==f||e[34]!==S?(A=t.jsx(J,{icon:ce,label:h,count:g.categories,active:f,onClick:S}),e[31]=g.categories,e[32]=h,e[33]=f,e[34]=S,e[35]=A):A=e[35];let N;e[36]!==o?(N=o("sandbox.collectionsSidebar.postSchedule"),e[36]=o,e[37]=N):N=e[37];const Q=a==="post-schedule";let D;e[38]!==n?(D=()=>n("post-schedule"),e[38]=n,e[39]=D):D=e[39];let B;e[40]!==N||e[41]!==Q||e[42]!==D?(B=t.jsx(J,{icon:xt,label:N,active:Q,onClick:D}),e[40]=N,e[41]=Q,e[42]=D,e[43]=B):B=e[43];let E;e[44]!==m||e[45]!==A||e[46]!==B||e[47]!==u||e[48]!==b?(E=t.jsxs("nav",{className:"flex flex-col gap-0.5 p-1.5",children:[u,b,m,A,B]}),e[44]=m,e[45]=A,e[46]=B,e[47]=u,e[48]=b,e[49]=E):E=e[49];let C;return e[50]!==c||e[51]!==E?(C=t.jsxs("div",{className:"flex w-[208px] shrink-0 flex-col border-r",children:[c,E]}),e[50]=c,e[51]=E,e[52]=C):C=e[52],C}const wt=M.lazy(()=>oe(()=>import("./post-calendar-C64qCtHG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-B4kmxAIk.js"),__vite__mapDeps([150,1,2,80,126,40,77,13,15,145,151,24,34,35,136,122,66,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,123,102,76,75,3,4,5,6,7,8,9,10,11,12,14,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,36,37,38,124,125,127,128,117,118,119,120,121,129,130,137,116,131,138,139,140,95,141,142,47,48,49,46,78,79,152,153,144,42,43,44,45,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,154,155,156,157,158,159,160,161,162,163,164,165,39,146,147,166])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-df2u5p7v.js"),__vite__mapDeps([167,1,2,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,4,9,19,16,80,126,40,77,13,15,154,5,155,136,122,123,102,76,75,3,6,7,8,10,11,12,14,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,124,125,127,128,117,118,119,120,121,129,130,137,116,131,138,139,140,95,141,142,47,48,49,46,78,79,151,152,153,144,156,145,157,81,158,42,43,44,45,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,159,160,161,162,163,164,165,39,168,147,169,166,170,135,143,171,146,172,173])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-qsn0J_YZ.js"),__vite__mapDeps([174,1,2,137,117,118,54,55,56,64,119,50,51,52,53,57,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,120,121,122,123,102,76,77,75,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,124,125,126,40,127,128,129,130,116,131,133,80,152,145,135,47,48,49,46,78,79,136,138,139,140,95,141,142,42,43,44,45,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,143,166,151,153,144,146,147,175,157,171,173,176,177,156,172])).then(i=>({default:i.BlogContext})));function Dt(i){return i==="authors"||i==="categories"}function At({context:i,collection:e,item:a,onOpenCollection:g,onSelectItem:v,onOpenPost:n}){const o=ie(),{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,meta:j,sitePreviewUrl:x,hostedDraft:b}=i,y=ze(),k=Ge(c),l=Pe(e,y),m=Ue({orgSlug:d,virtualMcpId:c,branch:u}),h=qe({orgSlug:d,virtualMcpId:c,branch:u}),f=m.v8,S=He({orgSlug:d,virtualMcpId:c,branch:u}),A=Je(b?{orgSlug:d,virtualMcpId:c,branch:u}:null,rt),N=We({orgSlug:d,virtualMcpId:c,branch:u}),[Q,D]=M.useState(""),[B,E]=M.useState("list"),[C,$]=M.useState(null),U=o("sandbox.contentBrowser.deleteDialog.title",{noun:C?te[C.kind]:"item"}),K=C?o(Qe("block",b,{neverPublished:N(C.key)}),{label:C.label}):null,V=Xe(K===null?null:{title:U,description:K},b),[F,O]=M.useState(l);F!==l&&(O(l),D(""));const P=ht({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),z=it(s),pe={posts:z.posts.length,authors:z.authors.length,categories:z.categories.length},de=async r=>{const _=se(s,r),I=ee(_,r,mt(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:I,...f?{create:!0}:{}});Z(p)||T.success(`Created ${te[r]}`),v(_)}catch(p){T.error(p instanceof Error?p.message:"Could not create")}},ue=async r=>{const _=p=>{if(!p)return T.error("Record not found."),null;const w=se(s,r.kind),R=r.kind==="posts"?"title":"name",L={...structuredClone(re(p,r.kind)),[R]:`${r.label} (copy)`};if(r.kind==="categories"){const q=z.categories.map(W=>W.slug??"").filter(Boolean);L.slug=gt(String(L.slug??""),q)}return{key:w,payload:L}},I=f?null:_(s[r.key]);try{const p=f?_(await S(s,r.key)):I;if(!p)return;const{key:w,payload:R}=p,L=await m.mutateAsync({blockKey:w,data:ee(w,r.kind,R),...f?{create:!0}:{}});Z(L)||T.success(`Duplicated "${r.label}"`),v(w)}catch(p){T.error(p instanceof Error?p.message:"Duplicate failed")}},fe=async r=>{const _=se(s,"posts"),I=ee(_,"posts",ot(r,{legacyContent:k}));try{const p=await m.mutateAsync({blockKey:_,data:I,...f?{create:!0}:{}});Z(p)||T.success(o("sandbox.postCalendar.createdScheduledPost")),n(_)}catch(p){T.error(p instanceof Error?p.message:o("sandbox.postCalendar.couldNotCreate"))}},ge=async(r,_)=>{const I=w=>{const R=w?st(re(w,"posts"),_):null;return R?{source:w,payload:R}:(T.error(o("sandbox.postCalendar.onlyScheduledCanMove")),null)},p=f?null:I(s[r]);try{const w=f?I(await S(s,r)):p;if(!w)return;const{source:R,payload:L}=w;await m.mutateAsync({blockKey:r,data:ee(r,"posts",L),...f?{base:{value:R,fromCache:!0}}:{}})}catch(w){T.error(w instanceof Error?w.message:o("sandbox.postCalendar.couldNotReschedule"))}},he=async()=>{if(!C)return;const{kind:r,key:_,label:I}=C;try{const p=f?await S(s,_):r==="categories"?s[_]:void 0;if(f&&!p)throw new Error(o("sectionsEditor.hosted.blockLoadFailed"));if(r==="categories"){const R=re(p,"categories").slug,L=typeof R=="string"?R:"";if(L){const q=f?{...s}:s;if(f){const W=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,H]of W)H?q[G]=H:delete q[G]}for(const{key:W,payload:G}of pt(q)){const H=dt(G,L);H!==G&&await m.mutateAsync({blockKey:W,data:ut(W,ft(H)),...f?{base:{value:q[W],fromCache:!0}}:{}})}}}const w=await h.mutateAsync({blockKey:_,...f?{base:{value:p}}:{}});if($(null),Z(w))return;T.success(`Deleted "${I}"`),a===_&&v(void 0)}catch(p){T.error(p instanceof Error?p.message:"Delete failed")}},Y=h.isPending||m.isPending;return t.jsxs("div",{className:"flex h-full w-full",children:[t.jsx(_t,{active:l,counts:pe,showContext:y,onSelect:g}),Dt(l)&&t.jsx(Nt,{kind:l,entries:z[l],searchQuery:Q,onSearchChange:D,selectedKey:a,onSelect:r=>v(r),onCreate:()=>{de(l)},onDuplicate:r=>{ue(r)},onDelete:$}),t.jsx("div",{className:"min-w-0 flex-1",children:t.jsx(M.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ae,{className:"size-5 text-muted-foreground"})}),children:l==="context"?t.jsx(Bt,{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,meta:j}):l==="post-schedule"?t.jsx(wt,{decofile:s,isCreating:m.isPending,onCreate:r=>{fe(r)},onReschedule:(r,_)=>{ge(r,_)},onSelect:n}):l==="posts"?t.jsx(Ye,{orgSlug:d,virtualMcpId:c,branch:u,decofile:s,view:B,onViewChange:E,onOpen:n,move:P,meta:j}):a?l==="categories"?t.jsx(Pt,{orgSlug:d,virtualMcpId:c,branch:u,blockKey:a,block:s[a],decofile:s,meta:j,onManagePosts:()=>g("posts"),onOpenPost:n,previewBaseUrl:x,fastPreviewActive:i.fastPreviewActive},`category:${a}`):t.jsx(St,{orgSlug:d,virtualMcpId:c,branch:u,kind:"authors",blockKey:a,block:s[a],meta:j,decofile:s},`authors:${a}`):t.jsx(at,{title:`Select ${l==="authors"?"an author":"a category"} to edit`,description:'Pick an item from the list, or click "+" to create one.'})})}),t.jsx(xe,{open:!!C,onOpenChange:r=>{!r&&!Y&&$(null)},children:t.jsxs(be,{children:[t.jsxs(ye,{children:[t.jsx(ve,{children:V?.title??U}),t.jsx(ke,{children:V?.description??null})]}),t.jsxs(Ce,{children:[t.jsx(je,{disabled:Y,children:o("sandbox.contentBrowser.deleteDialog.cancel")}),t.jsx(_e,{onClick:r=>{r.preventDefault(),he()},disabled:Y,className:we(Se({variant:"destructive"})),children:Y?t.jsxs(t.Fragment,{children:[t.jsx(ae,{className:"size-3.5"}),o("sandbox.contentBrowser.deleteDialog.deleting")]}):o("sandbox.contentBrowser.deleteDialog.delete")})]})]})})]})}function Nt(i){const e=X.c(46),{kind:a,entries:g,searchQuery:v,onSearchChange:n,selectedKey:o,onSelect:d,onCreate:c,onDuplicate:u,onDelete:s}=i,j=ie();let x,b,y,k,l,m;if(e[0]!==g||e[1]!==a||e[2]!==c||e[3]!==s||e[4]!==u||e[5]!==n||e[6]!==d||e[7]!==v||e[8]!==o||e[9]!==j){const A=v.toLowerCase(),N=g.filter(O=>!A||O.label.toLowerCase().includes(A)||O.subtitle.toLowerCase().includes(A)),Q=a==="categories"&&!A?lt(N):N.map(Rt),D=`Search ${a}…`,B=`Create new ${te[a]}`;l="flex w-[300px] min-h-0 shrink-0 flex-col border-r";let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground","aria-hidden":!0}),e[16]=E):E=e[16];let C;e[17]!==n?(C=O=>n(O.target.value),e[17]=n,e[18]=C):C=e[18];let $;e[19]!==D||e[20]!==v||e[21]!==C?($=t.jsxs("div",{className:"flex flex-1 items-center gap-2 pl-1",children:[E,t.jsx("input",{type:"text",value:v,onChange:C,placeholder:D,"aria-label":D,className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"})]}),e[19]=D,e[20]=v,e[21]=C,e[22]=$):$=e[22];let U;e[23]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx(Ie,{size:16}),e[23]=U):U=e[23];let K;e[24]!==B||e[25]!==c?(K=t.jsx(Me,{asChild:!0,children:t.jsx(Be,{variant:"ghost",size:"icon",onClick:c,"aria-label":B,children:U})}),e[24]=B,e[25]=c,e[26]=K):K=e[26];let V;e[27]!==B?(V=t.jsx(Fe,{children:B}),e[27]=B,e[28]=V):V=e[28];let F;e[29]!==K||e[30]!==V?(F=t.jsxs(Oe,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=F):F=e[31],e[32]!==F||e[33]!==$?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[$,F]}),e[32]=F,e[33]=$,e[34]=m):m=e[34],x=Ve,k="min-h-0 flex-1",b="p-1",y=N.length===0?t.jsx(Ze,{hasItems:g.length>0,emptyLabel:`No ${a} yet.`,emptyHint:`Click "+" to create your first ${te[a]}.`}):Q.map(O=>{const{entry:P,depth:z}=O;return t.jsx("div",{style:{paddingLeft:z*16},children:t.jsx(et,{icon:P.kind==="posts"?ne:P.kind==="authors"?me:ce,title:P.label,invalid:P.missing.length>0,invalidReason:P.missing.length>0?j("sandbox.itemRow.missingFields",{fields:ct(P.missing,j)}):void 0,warning:P.duplicateName,warningReason:j("sandbox.itemRow.duplicateName"),subtitle:z>0?nt(P.slug??"",N).map(Et).join(" / "):P.subtitle,active:o===P.key,onClick:()=>d(P.key),menu:t.jsx(tt,{onDuplicate:()=>u(P),onDelete:()=>s(P)})})},P.key)}),e[0]=g,e[1]=a,e[2]=c,e[3]=s,e[4]=u,e[5]=n,e[6]=d,e[7]=v,e[8]=o,e[9]=j,e[10]=x,e[11]=b,e[12]=y,e[13]=k,e[14]=l,e[15]=m}else x=e[10],b=e[11],y=e[12],k=e[13],l=e[14],m=e[15];let h;e[35]!==b||e[36]!==y?(h=t.jsx("div",{className:b,children:y}),e[35]=b,e[36]=y,e[37]=h):h=e[37];let f;e[38]!==x||e[39]!==k||e[40]!==h?(f=t.jsx(x,{className:k,children:h}),e[38]=x,e[39]=k,e[40]=h,e[41]=f):f=e[41];let S;return e[42]!==l||e[43]!==m||e[44]!==f?(S=t.jsxs("div",{className:l,children:[m,f]}),e[42]=l,e[43]=m,e[44]=f,e[45]=S):S=e[45],S}function Et(i){return i.slug}function Rt(i){return{entry:i,depth:0}}function Tt(i){const e=X.c(17),{virtualMcpId:a}=i,g=De();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={strict:!1},e[0]=v):v=e[0];const n=Ae(v);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const d=Ne(o),c=d.blogCollection??"posts",u=n.org??"",s=n.agentId??"";let j;e[2]!==u||e[3]!==s?(j={org:u,agentId:s},e[2]=u,e[3]=s,e[4]=j):j=e[4];const x=j;let b;e[5]!==g||e[6]!==x?(b=m=>{g({to:le.blog,params:x,search:h=>({...h,...m}),replace:!0})},e[5]=g,e[6]=x,e[7]=b):b=e[7];const y=b;let k;e[8]!==c||e[9]!==g||e[10]!==x||e[11]!==d.blogItem||e[12]!==y?(k=t.jsx(bt,{children:m=>t.jsx(At,{context:m,collection:c,item:d.blogItem,onOpenCollection:h=>y({blogCollection:h,blogItem:void 0}),onSelectItem:h=>y({blogItem:h}),onOpenPost:h=>{g({to:le.blogPost,params:{...x,postId:Ee(h)},search:$t})}})}),e[8]=c,e[9]=g,e[10]=x,e[11]=d.blogItem,e[12]=y,e[13]=k):k=e[13];let l;return e[14]!==k||e[15]!==a?(l=t.jsx(yt,{virtualMcpId:a,children:k}),e[14]=k,e[15]=a,e[16]=l):l=e[16],l}function $t(i){return vt({previous:i,destination:"agent"})}function It(){const i=X.c(2),e=kt();let a;return i[0]!==e?(a=t.jsx(jt,{children:t.jsx(Ct,{tabId:"blog",children:t.jsx($e,{feature:"cms",children:t.jsx(Tt,{virtualMcpId:e})})})}),i[0]=e,i[1]=a):a=i[1],a}function Pi(){const i=X.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Re.Content,{actions:t.jsx(Te,{}),children:t.jsx(It,{})}),i[0]=e):e=i[0],e}export{Pi as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-editor-
|
|
2
|
-
import{c as $,r as D,m as re,j as n,b as se,bg as xe,b9 as we,B as ce,a9 as Pe,au as ye,bb as Se,bh as je,n as Ee,bf as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bi as Be,bj as De}from"./index-Bf6kDBJJ.js";import{ChatLayout as Le}from"./index-BxAV7FAM.js";import{b as Ie,S as Te}from"./site-draft-actions-Cys_x7K4.js";import{F as $e}from"./feature-gate-a1fFtbnM.js";import{E as be}from"./empty-state-P04ndpoN.js";import{G as ze,n as Ae}from"./agent-icon-Di7zqlxT.js";import{e as Ce}from"./UserSquare-BlZFBeJE.js";import{u as Oe}from"./use-fast-preview-draft-url-GLoGn3Z6.js";import{a as Fe}from"./category-tree-Czed1V_u.js";import{u as He,s as Ke}from"./primitives-C1No5xKr.js";import{i as Me}from"./Monitor01-BgljY9mZ.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe,g as Ye}from"./frame-navigation-Kdl21Hfd.js";import{g as qe}from"./site-editor-toast-B_YX3Li5.js";import{b as Je}from"./use-sandbox-events-BQnRSUmP.js";import{b as Qe,f as Ze}from"./blog-preview-url-B7yZ2G-y.js";import{B as et,a as tt}from"./blog-source-gate-Ce60HIPG.js";import{r as ot}from"./use-panel-navigate-DrHMPrDd.js";import{c as it}from"./thread-route-CAdVyEBE.js";import{a as rt}from"./blog-view-gate-4XPksI2p.js";import"./use-mobile-DLKgN0MY.js";import"./tooltip-C1ojQQy2.js";import"./index-ZqZk5RgT.js";import"./MessageCircle01-cLkYRAq1.js";import"./XClose-CNBL86j1.js";import"./thread-button-BEg5fteo.js";import"./use-sidebar-collapsed-CRhLpQ__.js";import"./sheet-B9nYEq_U.js";import"./use-chat-layout-state-iNK0kVBA.js";import"./toolbar-icon-button-By_9Ecje.js";import"./use-in-settings-hxse8Hhp.js";import"./resizable-DMbeVWSR.js";import"./route-page-header-BFyj_RTT.js";import"./LayoutLeft-FMo6Osev.js";import"./use-project-scope-1pDf1lxX.js";import"./repository-binding-D_JA1fyv.js";import"./use-mcp-client-CaNN8ch9.js";import"./auth-B-a5Zgxg.js";import"./use-current-view-3DHjYKsB.js";import"./separator-CRKTbl5Q.js";import"./chat-context-DytZnaTl.js";import"./use-view-draft-kind-BXhF5iFd.js";import"./use-blog-view-Ct3qJq8H.js";import"./use-organization-settings-CJl2Ru2g.js";import"./schema-CBR_062O.js";import"./task-board-EnWJqcQ6.js";import"./thread-intent-DtKiFyIT.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CmbIOlgi.js";import"./session-runtime-CKy7akq1.js";import"./use-entitlements-CdiIkksN.js";import"./use-ai-providers-DfdZjEtf.js";import"./use-decopilot-events-q9mkqGKJ.js";import"./use-org-fs-6An12np_.js";import"./useInfiniteQuery-COV1vcmf.js";import"./infiniteQueryObserver-d7-nDzuW.js";import"./use-org-notice-jTLfFtFj.js";import"./popover-DiQ2Bfq9.js";import"./command-DIXZqeHF.js";import"./index-C3wTiNEy.js";import"./SearchMd-BRrpiXaK.js";import"./tabs-BDMFi5UF.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-DAnJt1CB.js";import"./UserCheck01-Bl-xFtn-.js";import"./SwitchHorizontal01-CoKNU7eN.js";import"./Tool01-CQpf9QHt.js";import"./Plus-CMPQGYNJ.js";import"./Trash01-Dw3BP1yz.js";import"./use-voice-input-CZGiAdQC.js";import"./drawer-Crz9l-4U.js";import"./index-DhAzuetW.js";import"./checkbox-DV2T_2wi.js";import"./Minus-CpAwDyCu.js";import"./select-L_avoMHO.js";import"./index-BdQq_4o_.js";import"./ChevronUp-OFnHDyjq.js";import"./ArrowLeft-BqT0JjoT.js";import"./ChevronSelectorVertical-CV3zcNGH.js";import"./Key01-B_hS_62c.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-D2NouvfT.js";import"./Eye-CmYcf8ai.js";import"./Image01-BXYfiVgr.js";import"./use-debounced-value-DPFKvG0d.js";import"./shell-layout-DMaosfWb.js";import"./Globe04-24mKQ9Ao.js";import"./use-deployment-admin-VYoUqG2M.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-CLvYssUd.js";import"./Zap-CjPlT3gP.js";import"./integration-icon-DS7lm2zI.js";import"./LinkBroken01-Cq1VpHt5.js";import"./project-icon-BTZl10MB.js";import"./use-navigate-to-agent-DLWEuUiS.js";import"./new-project-dialog-c3TMJ5k3.js";import"./label-pfJxqM6J.js";import"./repository-picker-DG8GlSV6.js";import"./github-icon-DspshkUP.js";import"./collection-search-Daa7Sik-.js";import"./BookOpen01-3jk6-b2F.js";import"./ShoppingBag01-Lv_lXKl3.js";import"./new-project-store-DVbeCA79.js";import"./legacy-admin-welcome-dialog-CDOlAR4o.js";import"./required-auth-layout-DhFunmdD.js";import"./use-org-sso-S0027md8.js";import"./cms-store-drafts-BxkVhzpN.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-B_qidLcG.js";import"./url-slug-j0iJ8lmu.js";import"./use-blocks-v8-project-CK7jomFI.js";import"./content-changes-C9Vb6hJi.js";import"./blocks-tab-states-DyZqVv-l.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-WGRlYhaM.js";import"./index-D_pS5ZXh.js";import"./ArrowUp-BX4O3cRq.js";import"./input-1k9_lG9l.js";import"./usage-stats-BNxKoicX.js";import"./utils-CVEq3hMx.js";import"./markdown-CPntqjcN.js";import"./use-copy-BAGO9B0-.js";import"./File02-7Vd4jW_I.js";import"./gateway-client-Cj4FQJOw.js";import"./form-BkfFMNZc.js";import"./icon-button-Bb0nd3sO.js";import"./file-type-icon-B7lWHf7B.js";import"./chat-draft-CR3QGF0K.js";import"./ArrowRight-drioiso6.js";import"./Upload01-DGYPOiPg.js";import"./use-deco-credits-CmcGxN-5.js";import"./toggle-group-Bo6-1Pho.js";import"./input-CfERqe7P.js";import"./suggestion-CmkjlRde.js";import"./use-mcp-prompts-DMHyxZup.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-vMBXIDf6.js";import"./plan-ladder-l7IiO8Kx.js";import"./add-connection-dialog-Da-94zWB.js";import"./extract-connection-data-DrEGE84f.js";import"./metadata-D72DunRR.js";import"./connection-DDqO1q4H.js";import"./connection-card-B2AISi2n.js";import"./connection-slug-Sdn-JTB2.js";import"./textarea-CmzAWBpF.js";import"./use-connection-DA9yY-kf.js";import"./schema-CLDlJ9kb.js";import"./connection-form-helpers-Y3w8W20E.js";import"./authenticate-and-persist-oauth-BJKvJQB_.js";import"./mcp-oauth-CMwgcXqt.js";import"./mcp-oauth-CAO7EHWk.js";import"./collection-tabs-BOqc8wWl.js";import"./badge-CLRPbUCC.js";import"./use-infinite-scroll-CCGl3sqA.js";import"./useSuspenseInfiniteQuery-CqJAXxZd.js";import"./use-task-board-items-CWHT3OSj.js";import"./pair-BUIEjsmP.js";import"./collapsible-DL_QpL2k.js";import"./task-key-CnOo1you.js";import"./config-DrlLEd_m.js";import"./task-route-Cf7-9Vym.js";import"./project-index-oqFo2sF5.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Xh-Trx1u.js";import"./types-Bgvtdl4f.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-5ljze7lC.js";import"./agent-capabilities-BY-9tVop.js";import"./use-cms-publish-actions-B42l35BK.js";import"./use-content-sync-BLtyy-8h.js";import"./sandbox-git-api-B5ivbUKl.js";import"./utils-Bnx90cnk.js";import"./device-hint-B3lp0cJx.js";import"./alert-CmpLSGbv.js";import"./section-array-field-B87vkJiM.js";import"./editor-Dh0u_vVE.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-DLB2RKwh.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-HXOYzid-.js";import"./Fingerprint04-6UGroDLU.js";import"./Sun-DiXyHGM-.js";import"./Play-B8qXRmXx.js";import"./Users01-y41RvLhz.js";import"./use-move-blocks-DHYSyls5.js";import"./hosted-reconcile-BFN835oz.js";const st={mobile:{width:412,height:823},tablet:{width:1024,height:1366},desktop:{width:1280,height:800}},nt=1;function at(t){const e=st[t.device],o=e.width+2*nt,i=t.device==="desktop"&&(t.canvas.width===0||t.canvas.width>=o);if(i)return{fluid:i,scale:1,style:{width:"100%",height:"100%"}};const r=t.canvas.width>0?Math.min(t.canvas.width/o,1):1;return{fluid:i,scale:r,style:{width:`${e.width}px`,height:t.canvas.height>0?`${t.canvas.height/r}px`:`${e.height}px`,transform:`scale(${r})`,transformOrigin:"top center"}}}function lt(t,e){try{t.contentWindow?.location.reload()}catch{e&&(t.src=e)}}function ct(t){const e=$.c(51),{iframeRef:o,iframeBase:i,src:r,device:a,canvas:p,title:c,recoveryActive:l,draftUrl:m,holdNavigation:f,changePending:d,expectLoad:s}=t,g=f===void 0?!1:f,h=d===void 0?!1:d,b=s===void 0?0:s;let w;e[0]!==p||e[1]!==a?(w=at({device:a,canvas:p}),e[0]=p,e[1]=a,e[2]=w):w=e[2];const S=w,v=l?r:null;let j;e[3]!==o||e[4]!==l||e[5]!==v?(j={iframeRef:o,src:v,active:l},e[3]=o,e[4]=l,e[5]=v,e[6]=j):j=e[6];const x=Ve(j);let u;e[7]!==r?(u={src:r,loading:!1},e[7]=r,e[8]=u):u=e[8];const[y,H]=D.useState(u);let z;e[9]!==h||e[10]!==g||e[11]!==y||e[12]!==r?(z=Ue(y,We(y.src,r,h),g),e[9]=h,e[10]=g,e[11]=y,e[12]=r,e[13]=z):z=e[13];const Y=z;Y!==y&&H(Y);const P=Y.src,E=Y.loading,[k,A]=D.useState(!0);let K;e[14]!==h||e[15]!==b||e[16]!==P?(K={frameSrc:P,changePending:h,expectLoad:b},e[14]=h,e[15]=b,e[16]=P,e[17]=K):K=e[17];const[L,W]=D.useState(K);if(L.frameSrc!==P||L.changePending!==h||L.expectLoad!==b){W({frameSrc:P,changePending:h,expectLoad:b});const B=h&&!L.changePending;(L.frameSrc!==P||L.expectLoad!==b||B)&&A(!0)}const q=D.useRef(null);let I;e[18]!==k||e[19]!==m||e[20]!==E||e[21]!==P||e[22]!==o?(I=()=>{const B=E||k?setTimeout(()=>{H(fe),A(!1)},Ge):null,G=()=>{B&&clearTimeout(B)};if(!m||!P||q.current===m)return G;q.current=m;const F=o.current;return F&&F.getAttribute("src")!==P&&(F.src=P),G},e[18]=k,e[19]=m,e[20]=E,e[21]=P,e[22]=o,e[23]=I):I=e[23];let M;e[24]!==k||e[25]!==m||e[26]!==E||e[27]!==P?(M=[m,P,E,k],e[24]=k,e[25]=m,e[26]=E,e[27]=P,e[28]=M):M=e[28],D.useEffect(I,M);let T;e[29]!==k||e[30]!==h||e[31]!==E?(T=(h||k||E)&&n.jsx(Xe,{}),e[29]=k,e[30]=h,e[31]=E,e[32]=T):T=e[32];const C=!S.fluid&&"bg-background shadow-edge";let _;e[33]!==C?(_=re("shrink-0",C),e[33]=C,e[34]=_):_=e[34];let O;e[35]!==x?(O=B=>{Ye(B.currentTarget),H(fe),A(!1),x.handleLoad()},e[35]=x,e[36]=O):O=e[36];let R;e[37]!==P||e[38]!==i||e[39]!==o||e[40]!==x.handleError||e[41]!==O||e[42]!==c?(R=n.jsx("iframe",{ref:o,src:P,className:"w-full h-full border-0",title:c,onError:x.handleError,onLoad:O},i),e[37]=P,e[38]=i,e[39]=o,e[40]=x.handleError,e[41]=O,e[42]=c,e[43]=R):R=e[43];let N;e[44]!==S.style||e[45]!==_||e[46]!==R?(N=n.jsx("div",{className:_,style:S.style,children:R}),e[44]=S.style,e[45]=_,e[46]=R,e[47]=N):N=e[47];let V;return e[48]!==T||e[49]!==N?(V=n.jsxs(n.Fragment,{children:[T,N]}),e[48]=T,e[49]=N,e[50]=V):V=e[50],V}function mt(t){return!t.previewBaseUrl||t.awaitingDraft?"no-origin":t.hasPostRoute?t.url?null:"missing-params":"no-route"}const pt={"no-origin":"sandbox.postPreview.noOrigin","no-route":"sandbox.postPreview.noRoute","missing-params":"sandbox.postPreview.missingParams"},dt={"no-origin":"sandbox.postPreview.noOriginHint","no-route":"sandbox.postPreview.noRouteHint","missing-params":"sandbox.postPreview.missingParamsHint"};function ft(t){const e=$.c(77),{orgSlug:o,virtualMcpId:i,decofile:r,post:a,blockKey:p,previewBaseUrl:c,meta:l,fastPreviewActive:m,draftPointer:f,visible:d}=t,s=se(),[g,h]=D.useState("desktop"),b=D.useRef(null),[w,S]=Ie(),[v,j]=D.useState(d);d&&!v&&j(!0);let x,u;if(e[0]!==p||e[1]!==r||e[2]!==f||e[3]!==m||e[4]!==l||e[5]!==a||e[6]!==c){u=Qe({decofile:r,post:a,previewBaseUrl:c,draftPointer:m?f:null,meta:l,planning:xe(p)});let X;e[9]!==r||e[10]!==l?(X=Ze(r,l),e[9]=r,e[10]=l,e[11]=X):X=e[11],x=mt({previewBaseUrl:c,hasPostRoute:!!X,url:u,awaitingDraft:m&&!f}),e[0]=p,e[1]=r,e[2]=f,e[3]=m,e[4]=l,e[5]=a,e[6]=c,e[7]=x,e[8]=u}else x=e[7],u=e[8];const y=x,H=qe(o,i),[z,Y]=D.useState(0);let P;e[12]!==u?(P=()=>{const X=b.current;X&&(lt(X,u),Y(ut))},e[12]=u,e[13]=P):P=e[13];const E=P;Je(E);const k=g==="desktop";let A;e[14]!==s?(A=s("sandbox.postPreview.desktop"),e[14]=s,e[15]=A):A=e[15];let K,L;e[16]===Symbol.for("react.memo_cache_sentinel")?(K=()=>h("desktop"),L=n.jsx(Me,{size:16}),e[16]=K,e[17]=L):(K=e[16],L=e[17]);let W;e[18]!==k||e[19]!==A?(W=n.jsx(ue,{active:k,label:A,onClick:K,children:L}),e[18]=k,e[19]=A,e[20]=W):W=e[20];const q=g==="mobile";let I;e[21]!==s?(I=s("sandbox.postPreview.mobile"),e[21]=s,e[22]=I):I=e[22];let M,T;e[23]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h("mobile"),T=n.jsx(ze,{size:16}),e[23]=M,e[24]=T):(M=e[23],T=e[24]);let C;e[25]!==q||e[26]!==I?(C=n.jsx(ue,{active:q,label:I,onClick:M,children:T}),e[25]=q,e[26]=I,e[27]=C):C=e[27];let _;e[28]!==C||e[29]!==W?(_=n.jsxs("div",{className:"flex items-center gap-0.5",children:[W,C]}),e[28]=C,e[29]=W,e[30]=_):_=e[30];const O=!!y;let R;e[31]!==s?(R=s("sandbox.postPreview.refresh"),e[31]=s,e[32]=R):R=e[32];let N;e[33]!==s?(N=s("sandbox.postPreview.refresh"),e[33]=s,e[34]=N):N=e[34];let V;e[35]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(we,{size:16}),e[35]=V):V=e[35];let B;e[36]!==E||e[37]!==O||e[38]!==R||e[39]!==N?(B=n.jsx(ce,{type:"button",variant:"ghost",size:"icon",disabled:O,"aria-label":R,title:N,onClick:E,children:V}),e[36]=E,e[37]=O,e[38]=R,e[39]=N,e[40]=B):B=e[40];const G=!u||!!y;let F;e[41]!==s?(F=s("sandbox.postPreview.openInNewTab"),e[41]=s,e[42]=F):F=e[42];let J;e[43]!==s?(J=s("sandbox.postPreview.openInNewTab"),e[43]=s,e[44]=J):J=e[44];let Q;e[45]!==y||e[46]!==u?(Q=()=>{u&&!y&&window.open(u,"_blank","noopener,noreferrer")},e[45]=y,e[46]=u,e[47]=Q):Q=e[47];let ne;e[48]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(Pe,{size:16}),e[48]=ne):ne=e[48];let Z;e[49]!==G||e[50]!==F||e[51]!==J||e[52]!==Q?(Z=n.jsx(ce,{type:"button",variant:"ghost",size:"icon",disabled:G,"aria-label":F,title:J,onClick:Q,children:ne}),e[49]=G,e[50]=F,e[51]=J,e[52]=Q,e[53]=Z):Z=e[53];let ee;e[54]!==B||e[55]!==Z?(ee=n.jsxs("div",{className:"flex items-center gap-0.5",children:[B,Z]}),e[54]=B,e[55]=Z,e[56]=ee):ee=e[56];let te;e[57]!==_||e[58]!==ee?(te=n.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between gap-2 border-b px-2",children:[_,ee]}),e[57]=_,e[58]=ee,e[59]=te):te=e[59];let oe;e[60]!==y||e[61]!==w||e[62]!==H||e[63]!==g||e[64]!==m||e[65]!==v||e[66]!==c||e[67]!==z||e[68]!==s||e[69]!==u?(oe=y||!u?n.jsx(be,{className:"h-full",title:s(pt[y??"missing-params"]),description:s(dt[y??"missing-params"])}):v?n.jsx(ct,{iframeRef:b,iframeBase:c??null,src:u,device:g,canvas:w,title:s("sandbox.postPreview.frameTitle"),recoveryActive:!m,draftUrl:m?u:null,holdNavigation:m,changePending:H,expectLoad:z}):null,e[60]=y,e[61]=w,e[62]=H,e[63]=g,e[64]=m,e[65]=v,e[66]=c,e[67]=z,e[68]=s,e[69]=u,e[70]=oe):oe=e[70];let ie;e[71]!==S||e[72]!==oe?(ie=n.jsx("div",{ref:S,className:"relative flex min-h-0 flex-1 justify-center overflow-clip bg-muted/30",children:oe}),e[71]=S,e[72]=oe,e[73]=ie):ie=e[73];let ae;return e[74]!==te||e[75]!==ie?(ae=n.jsxs("div",{className:"flex h-full min-w-0 flex-col border-l bg-muted/30",children:[te,ie]}),e[74]=te,e[75]=ie,e[76]=ae):ae=e[76],ae}function ut(t){return t+1}function ue(t){const e=$.c(8),{active:o,label:i,onClick:r,children:a}=t,p=o&&"bg-accent text-accent-foreground";let c;e[0]!==p?(c=re(p),e[0]=p,e[1]=c):c=e[1];let l;return e[2]!==o||e[3]!==a||e[4]!==i||e[5]!==r||e[6]!==c?(l=n.jsx(ce,{type:"button",variant:"ghost",size:"icon","aria-pressed":o,"aria-label":i,title:i,className:c,onClick:r,children:a}),e[2]=o,e[3]=a,e[4]=i,e[5]=r,e[6]=c,e[7]=l):l=e[7],l}const ht=1366;function vt(t){return t.width<0?{kind:"pending"}:t.width<ht?{kind:"one-at-a-time",showing:t.view??"edit"}:{kind:"side-by-side",panes:t.view??"both"}}function pe(t,e){switch(t.kind){case"pending":return e==="edit";case"one-at-a-time":return t.showing===e;case"side-by-side":return t.panes==="both"||t.panes===e}}function gt(t,e){return t==="both"?e==="edit"?"preview":"edit":t===e?null:void 0}const U={default:55,min:30,max:75};function le(t){return Number.isFinite(t)?Math.min(U.max,Math.max(U.min,t)):U.default}const bt="blog.postSplit.editorShare.v1",he=5,me="--post-editor-width";function xt(){const t=$.c(13),[e,o]=ye(bt,wt),i=le(e),r=D.useRef(null);let a;t[0]!==o||t[1]!==i?(a=d=>{const s=r.current,g=s?.getBoundingClientRect().width??0;if(!s||g<=0||d.button!==0)return;d.preventDefault();const h=d.clientX,b=x=>le(Math.round((i+(x-h)/g*100)*10)/10);let w=i;const S=Array.from(s.querySelectorAll("iframe"));for(const x of S)x.style.pointerEvents="none";const v=x=>{w=b(x.clientX),s.style.setProperty(me,`${w}%`)},j=x=>{x.type==="pointerup"&&(w=b(x.clientX)),s.style.setProperty(me,`${w}%`),o(w);for(const u of S)u.style.pointerEvents="";window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",v),window.addEventListener("pointerup",j),window.addEventListener("pointercancel",j)},t[0]=o,t[1]=i,t[2]=a):a=t[2];const p=a;let c;t[3]!==o||t[4]!==i?(c=d=>{const s=d.key==="ArrowLeft"?i-he:d.key==="ArrowRight"?i+he:d.key==="Home"?U.min:d.key==="End"?U.max:null;s!==null&&(d.preventDefault(),o(le(s)))},t[3]=o,t[4]=i,t[5]=c):c=t[5];const l=c;let m;t[6]!==o?(m=()=>o(U.default),t[6]=o,t[7]=m):m=t[7];let f;return t[8]!==l||t[9]!==p||t[10]!==i||t[11]!==m?(f={share:i,containerRef:r,onPointerDown:p,onKeyDown:l,reset:m},t[8]=l,t[9]=p,t[10]=i,t[11]=m,t[12]=f):f=t[12],f}function wt(t){return typeof t=="number"?le(t):U.default}const Pt=D.lazy(()=>Se(()=>import("./post-editor-CSldaVe4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168])).then(t=>({default:t.PostEditor})));function yt({orgSlug:t,virtualMcpId:e,branch:o,blockKey:i,decofile:r,meta:a,previewBaseUrl:p,fastPreviewActive:c,view:l,onViewChange:m,onOpenBlog:f}){const d=se(),[s,g]=je(),h=He({orgSlug:t,virtualMcpId:e,branch:o,decofile:r}),b=Oe({orgSlug:t,virtualMcpId:e,branch:o}),w=r[i],S=Fe(w,"posts"),v=vt({width:s,view:l}),j=xt(),x=pe(v,"edit"),u=pe(v,"preview"),y=v.kind==="side-by-side"&&v.panes==="both",H=Ke(S.title),z=n.jsx(Et,{orgSlug:t,virtualMcpId:e,branch:o,blockKey:i,decofile:r,meta:a,previewBaseUrl:p,move:h,onDeleted:f});return n.jsxs("div",{ref:g,className:"flex h-full min-h-0 flex-col",children:[n.jsx(Ee.Breadcrumbs,{after:"page",parent:{onSelect:f},items:[{key:`post:${ge(i)}`,label:H||d("sandbox.postBoard.untitled")}]}),v.kind!=="pending"&&n.jsx("div",{className:"flex h-10 shrink-0 items-center justify-end border-b px-2",children:n.jsx(St,{layout:v,onViewChange:m})}),n.jsxs("div",{ref:j.containerRef,className:"flex min-h-0 flex-1",style:{[me]:`${j.share}%`},children:[n.jsx("div",{className:re("min-w-0",!x&&"hidden",y?"shrink-0":"flex-1"),style:y?{width:`var(${me})`}:void 0,children:z}),y&&n.jsx(jt,{split:j}),n.jsx("div",{className:re("min-w-0 flex-1",!u&&"hidden"),children:n.jsx(ft,{orgSlug:t,virtualMcpId:e,decofile:r,post:S,blockKey:i,previewBaseUrl:p,meta:a,fastPreviewActive:c,draftPointer:b,visible:u})})]})]})}function St(t){const e=$.c(4),{layout:o,onViewChange:i}=t,r=se();if(o.kind==="pending")return null;let a;if(e[0]!==o||e[1]!==i||e[2]!==r){const p=[{pane:"edit",label:r("sandbox.postEditScreen.edit"),icon:n.jsx(Ce,{size:14})},{pane:"preview",label:r("sandbox.postEditScreen.preview"),icon:n.jsx(Ae,{size:14})}];a=n.jsx("div",{className:"flex items-center gap-0.5 rounded-lg bg-muted p-0.5",children:p.map(c=>{const{pane:l,label:m,icon:f}=c,d=pe(o,l);if(o.kind==="one-at-a-time")return n.jsx(ve,{pressed:d,label:m,icon:f,onClick:d?void 0:()=>i(l)},l);const s=gt(o.panes,l);return n.jsx(ve,{pressed:d,locked:s===null,label:m,icon:f,onClick:s===null?void 0:()=>i(s)},l)})}),e[0]=o,e[1]=i,e[2]=r,e[3]=a}else a=e[3];return a}function ve(t){const e=$.c(10),{pressed:o,locked:i,label:r,icon:a,onClick:p}=t,c=i===void 0?!1:i,l=c||void 0,m=o&&"bg-background shadow-sm",f=c&&"cursor-default";let d;e[0]!==m||e[1]!==f?(d=re("h-7 px-2",m,f),e[0]=m,e[1]=f,e[2]=d):d=e[2];let s;return e[3]!==a||e[4]!==r||e[5]!==p||e[6]!==o||e[7]!==l||e[8]!==d?(s=n.jsxs(ce,{type:"button",variant:"ghost",size:"sm","aria-pressed":o,"aria-disabled":l,className:d,onClick:p,children:[a,r]}),e[3]=a,e[4]=r,e[5]=p,e[6]=o,e[7]=l,e[8]=d,e[9]=s):s=e[9],s}function jt(t){const e=$.c(14),{split:o}=t,i=se();let r;e[0]!==i?(r=i("sandbox.postEditScreen.resizeSplit"),e[0]=i,e[1]=r):r=e[1];let a;e[2]!==o.share?(a=Math.round(o.share),e[2]=o.share,e[3]=a):a=e[3];let p;e[4]!==i?(p=i("sandbox.postEditScreen.resizeSplitHint"),e[4]=i,e[5]=p):p=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-ring group-active/resize:bg-ring group-focus-visible/resize:bg-ring"}),e[6]=c):c=e[6];let l;return e[7]!==o.onKeyDown||e[8]!==o.onPointerDown||e[9]!==o.reset||e[10]!==r||e[11]!==a||e[12]!==p?(l=n.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":r,"aria-valuenow":a,"aria-valuemin":U.min,"aria-valuemax":U.max,title:p,tabIndex:0,onPointerDown:o.onPointerDown,onKeyDown:o.onKeyDown,onDoubleClick:o.reset,className:"group/resize relative z-10 -mx-1 w-2 shrink-0 cursor-col-resize touch-none focus-visible:outline-none",children:c}),e[7]=o.onKeyDown,e[8]=o.onPointerDown,e[9]=o.reset,e[10]=r,e[11]=a,e[12]=p,e[13]=l):l=e[13],l}function Et(t){const e=$.c(15),{orgSlug:o,virtualMcpId:i,branch:r,blockKey:a,decofile:p,meta:c,previewBaseUrl:l,move:m,onDeleted:f}=t;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex h-full items-center justify-center",children:n.jsx(ke,{className:"size-5 text-muted-foreground"})}),e[0]=d):d=e[0];let s;e[1]!==a?(s=ge(a),e[1]=a,e[2]=s):s=e[2];const g=`post:${s}`,h=p[a];let b;return e[3]!==a||e[4]!==r||e[5]!==p||e[6]!==c||e[7]!==m||e[8]!==f||e[9]!==o||e[10]!==l||e[11]!==g||e[12]!==h||e[13]!==i?(b=n.jsx(D.Suspense,{fallback:d,children:n.jsx(Pt,{orgSlug:o,virtualMcpId:i,branch:r,blockKey:a,block:h,decofile:p,meta:c,previewBaseUrl:l,move:m,onDeleted:f},g)}),e[3]=a,e[4]=r,e[5]=p,e[6]=c,e[7]=m,e[8]=f,e[9]=o,e[10]=l,e[11]=g,e[12]=h,e[13]=i,e[14]=b):b=e[14],b}function kt(t,e){const o=Be(e);if(o in t)return o;const i=De(e);return i in t?i:null}function _t(t){const e=$.c(18),{virtualMcpId:o}=t,i=se(),r=_e();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const p=Re(a);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const l=Ne(c),m=p.postId??"",f=p.org??"",d=p.agentId??"";let s;e[2]!==f||e[3]!==d?(s={org:f,agentId:d},e[2]=f,e[3]=d,e[4]=s):s=e[4];const g=s;let h;e[5]!==r||e[6]!==g?(h=()=>{r({to:de.blog,params:g,search:Rt})},e[5]=r,e[6]=g,e[7]=h):h=e[7];const b=h;let w;e[8]!==r||e[9]!==b||e[10]!==m||e[11]!==g||e[12]!==l||e[13]!==i?(w=n.jsx(et,{children:v=>{const j=kt(v.decofile,m);return j?n.jsx(yt,{orgSlug:v.orgSlug,virtualMcpId:v.virtualMcpId,branch:v.branch,blockKey:j,decofile:v.decofile,meta:v.meta,previewBaseUrl:v.sitePreviewUrl,fastPreviewActive:v.fastPreviewActive,view:l.blogView,onViewChange:x=>{r({to:de.blogPost,params:{...g,postId:m},search:u=>({...u,blogView:x}),replace:!0})},onOpenBlog:b}):n.jsx(be,{className:"h-full",title:i("sandbox.postEditScreen.notFound"),description:i("sandbox.postEditScreen.notFoundHint"),buttonProps:{children:i("sandbox.collectionsSidebar.posts"),onClick:b}})}}),e[8]=r,e[9]=b,e[10]=m,e[11]=g,e[12]=l,e[13]=i,e[14]=w):w=e[14];let S;return e[15]!==w||e[16]!==o?(S=n.jsx(tt,{virtualMcpId:o,children:w}),e[15]=w,e[16]=o,e[17]=S):S=e[17],S}function Rt(t){return ot({previous:t,destination:"agent"})}function Nt(){const t=$.c(2),e=it();let o;return t[0]!==e?(o=n.jsx(rt,{children:n.jsx($e,{feature:"cms",children:n.jsx(_t,{virtualMcpId:e})})}),t[0]=e,t[1]=o):o=t[1],o}function os(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Le.Content,{actions:n.jsx(Te,{}),children:n.jsx(Nt,{})}),t[0]=e):e=t[0],e}export{os as default};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-editor-C5PQD-my.js","assets/index-DmyPeHtj.js","assets/index-CnYld4bq.css","assets/chat-context-CqcR4aAu.js","assets/use-panel-navigate-DLijLDIl.js","assets/thread-route-QjX15zqF.js","assets/use-project-scope-sgJLxDnc.js","assets/repository-binding-BezKpFog.js","assets/use-mcp-client-DfqrKiZY.js","assets/auth-xINlnEh8.js","assets/use-view-draft-kind-XY0ukhv-.js","assets/use-blog-view-9Y1OwyU5.js","assets/use-organization-settings-DRtlFFBs.js","assets/schema-CRoCQYHH.js","assets/task-board-B8wzNBqW.js","assets/thread-intent-1kOP6maa.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-BbbQrIO0.js","assets/session-runtime-CvClIIGY.js","assets/use-entitlements-BYhZgO5P.js","assets/use-ai-providers-DrvsAXJ7.js","assets/use-current-view-DrUxoucV.js","assets/use-in-settings-BhSbV6H8.js","assets/use-decopilot-events-Be8G8lj7.js","assets/use-org-fs-j9Hf5idr.js","assets/useInfiniteQuery-CSIthp54.js","assets/infiniteQueryObserver-D9fycF8k.js","assets/AlertCircle-D1Q8X__K.js","assets/agent-icon-DFYKaa0c.js","assets/UserCheck01-BiEm5Ebz.js","assets/Tool01-eLaAOwHX.js","assets/ArrowUp-BjMuYXEC.js","assets/ArrowLeft-a7zQohPB.js","assets/ArrowRight-CcdemY_e.js","assets/BookOpen01-Caac9KpE.js","assets/Globe04-DGpfgXDy.js","assets/CheckCircle-BygonUdk.js","assets/ChevronDown-BDwdJQzR.js","assets/ChevronSelectorVertical-BAKnniO6.js","assets/ChevronUp-CoA7d7vl.js","assets/UserSquare-DRonBRNm.js","assets/LinkBroken01-DZpjy5h4.js","assets/CreditCard01-BD4H9Smc.js","assets/File02-CNp6lbfd.js","assets/MessageCircle01-Vr9v9ZLf.js","assets/SwitchHorizontal01-D47eRm9A.js","assets/Eye-B8RfELJD.js","assets/Fingerprint04-CYuFFJ8_.js","assets/Image01-DZ0d0gl4.js","assets/Key01-CCL-qpBw.js","assets/LayoutLeft-D6A6HKPj.js","assets/Minus-Cdvi1RtF.js","assets/Monitor01-BKLXdSAu.js","assets/Sun-TBLvGE97.js","assets/Play-KnC-ePg8.js","assets/Plus-fnuC_-Ii.js","assets/SearchMd-C7M41YQV.js","assets/ShoppingBag01-D27zZ3nR.js","assets/Trash01-C_glH0wy.js","assets/Upload01-VrBKSmfZ.js","assets/Users01-CYW34Us_.js","assets/XClose-xoNzv1jt.js","assets/Zap-Ch4l-t5Z.js","assets/label-B61Mm8gW.js","assets/multi-select-DZx7Z4ko.js","assets/badge-By3J5rC3.js","assets/checkbox-Bg0tGTVi.js","assets/command-DmBlCsxL.js","assets/index-_reJwud9.js","assets/popover-QqVUvEYR.js","assets/tabs-DBKq274Z.js","assets/active-indicator-CCMhAsc_.js","assets/switch-CfqVcR-v.js","assets/textarea-Djiqi_Hb.js","assets/save-status-DBCJolXB.js","assets/use-never-published-CJQoljTh.js","assets/use-voice-input-DguZp9dH.js","assets/drawer-D_TsrN48.js","assets/tooltip-CnD2gBxQ.js","assets/index-DAFFHpVi.js","assets/use-mobile-BGIYUsLQ.js","assets/index-Dcn6CILj.js","assets/select-B-VvZR_M.js","assets/index-BdQq_4o_.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/site-editor-toast-DLSJJb2F.js","assets/content-changes-JBgMg-Ro.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-D7X3VYGW.js","assets/use-blocks-v8-project-DQzOlv_E.js","assets/utils-DgfuCg_0.js","assets/sandbox-git-api-DZ5qElbf.js","assets/hosted-reconcile-4JQ_9bXq.js","assets/blocks-tab-states-C-fKJR1R.js","assets/empty-state-L2cTHOLC.js","assets/search-input-KXpX5gme.js","assets/use-debounced-value-Io5mDbSS.js","assets/use-file-configs-k_hhBwsx.js","assets/asset-utils-BK2ot-jO.js","assets/usage-stats-DX6ERAU7.js","assets/utils-CVEq3hMx.js","assets/markdown-B7FqmO_Q.js","assets/use-copy-DcPGMlZ-.js","assets/gateway-client-ekFKMjOy.js","assets/form-W6JWpxT_.js","assets/toggle-group-BMYX_eGL.js","assets/match-site-slug-config-B47_xZCi.js","assets/block-document-Bog58LB_.js","assets/task-key-CpnKPfDS.js","assets/sortable.esm-C0ThOxD8.js","assets/delete-copy-DlW6ZUtG.js","assets/category-tree-ldYsSWnP.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-CgeeVvss.js","assets/collapsible-CxuxAsHp.js","assets/use-task-board-items-B1Pzgu76.js","assets/config-DbV4O0C1.js","assets/task-route-CkAEJVQF.js","assets/project-index-Di4hbJe7.js","assets/shell-layout-DJOHh2NE.js","assets/use-deployment-admin-BGJ_CxB1.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-J6OTcXIJ.js","assets/integration-icon-92n5xPlq.js","assets/project-icon-D-KoSfqD.js","assets/use-navigate-to-agent-stX_hK-R.js","assets/new-project-dialog-zI9XmIIv.js","assets/repository-picker-BcZZvjJw.js","assets/github-icon-DVLt0ntX.js","assets/collection-search-DhW2WLfL.js","assets/new-project-store-BL2Sa0gM.js","assets/legacy-admin-welcome-dialog-DPVEA9Z4.js","assets/required-auth-layout-CRS7KXgy.js","assets/use-org-sso-B8YBjAU0.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-BsX2Dy6R.js","assets/types-DxV-fZV6.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-C4ApGL6L.js","assets/use-connection-G9Us7hRV.js","assets/use-mcp-prompts-CxlRUHT-.js","assets/use-thread-outputs-CtVbBsAG.js","assets/file-type-icon-BIdp66kj.js","assets/section-array-field-BUwgz_eV.js","assets/index-nmSJ42Ew.js","assets/suggestion-DIf7hFaH.js","assets/editor-classes-BLd4hHmH.js","assets/blog-preview-url-B9jP2xxs.js","assets/primitives-yWcLmNO5.js","assets/use-move-blocks-CYHOXTJj.js","assets/product-picker-dialog-Bw4o2LZ9.js","assets/index-ChDgpo9K.js","assets/held-block-view-Bdat6dmL.js","assets/calendar-DhrCDRQ3.js","assets/named-rule-step-DjZE94ti.js","assets/slider-BIv9sKN-.js","assets/index-AtaL2JD_.js","assets/tooltipContext-B6Z4ndzl.js","assets/CategoricalChart-CCxFJJjf.js","assets/index-BsbFaHMN.js","assets/combobox-B-vXOMV-.js","assets/scroll-area-DmKBqmqO.js","assets/blog-schema-03G2DeQU.js","assets/use-delete-block-ZSPe1Jt_.js","assets/use-fast-preview-draft-url-C1FIhbN9.js","assets/use-autosave-4o04OWTs.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as $,r as D,m as re,j as n,b as se,bg as xe,b9 as we,B as ce,a9 as Pe,au as ye,bb as Se,bh as je,n as Ee,bf as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bi as Be,bj as De}from"./index-DmyPeHtj.js";import{ChatLayout as Le}from"./index-BJcrWx9T.js";import{b as Ie,S as Te}from"./site-draft-actions-8xVV9dEa.js";import{F as $e}from"./feature-gate-BSqSDhFD.js";import{E as be}from"./empty-state-D1phlWfb.js";import{G as ze,n as Ae}from"./agent-icon-DFYKaa0c.js";import{e as Ce}from"./UserSquare-DRonBRNm.js";import{u as Oe}from"./use-fast-preview-draft-url-C1FIhbN9.js";import{a as Fe}from"./category-tree-ldYsSWnP.js";import{u as He,s as Ke}from"./primitives-yWcLmNO5.js";import{i as Me}from"./Monitor01-BKLXdSAu.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe,g as Ye}from"./frame-navigation-Df_5J1gU.js";import{g as qe}from"./site-editor-toast-DLSJJb2F.js";import{b as Je}from"./use-sandbox-events-D7X3VYGW.js";import{b as Qe,f as Ze}from"./blog-preview-url-B9jP2xxs.js";import{B as et,a as tt}from"./blog-source-gate-D0f9lC6c.js";import{r as ot}from"./use-panel-navigate-DLijLDIl.js";import{c as it}from"./thread-route-QjX15zqF.js";import{a as rt}from"./blog-view-gate-Cd7nZI43.js";import"./use-mobile-BGIYUsLQ.js";import"./tooltip-CnD2gBxQ.js";import"./index-DAFFHpVi.js";import"./MessageCircle01-Vr9v9ZLf.js";import"./XClose-xoNzv1jt.js";import"./thread-button-DRipdtQl.js";import"./use-sidebar-collapsed-BsHAzi2v.js";import"./sheet-C4ApGL6L.js";import"./use-chat-layout-state-OXPATbvD.js";import"./toolbar-icon-button-BXZ6Fg9k.js";import"./use-in-settings-BhSbV6H8.js";import"./resizable-D3Zb0j0Y.js";import"./route-page-header-BjKtp3iF.js";import"./LayoutLeft-D6A6HKPj.js";import"./use-project-scope-sgJLxDnc.js";import"./repository-binding-BezKpFog.js";import"./use-mcp-client-DfqrKiZY.js";import"./auth-xINlnEh8.js";import"./use-current-view-DrUxoucV.js";import"./separator-CxWekJLq.js";import"./chat-context-CqcR4aAu.js";import"./use-view-draft-kind-XY0ukhv-.js";import"./use-blog-view-9Y1OwyU5.js";import"./use-organization-settings-DRtlFFBs.js";import"./schema-CRoCQYHH.js";import"./task-board-B8wzNBqW.js";import"./thread-intent-1kOP6maa.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BbbQrIO0.js";import"./session-runtime-CvClIIGY.js";import"./use-entitlements-BYhZgO5P.js";import"./use-ai-providers-DrvsAXJ7.js";import"./use-decopilot-events-Be8G8lj7.js";import"./use-org-fs-j9Hf5idr.js";import"./useInfiniteQuery-CSIthp54.js";import"./infiniteQueryObserver-D9fycF8k.js";import"./use-org-notice-J6OTcXIJ.js";import"./popover-QqVUvEYR.js";import"./command-DmBlCsxL.js";import"./index-_reJwud9.js";import"./SearchMd-C7M41YQV.js";import"./tabs-DBKq274Z.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-BDwdJQzR.js";import"./UserCheck01-BiEm5Ebz.js";import"./SwitchHorizontal01-D47eRm9A.js";import"./Tool01-eLaAOwHX.js";import"./Plus-fnuC_-Ii.js";import"./Trash01-C_glH0wy.js";import"./use-voice-input-DguZp9dH.js";import"./drawer-D_TsrN48.js";import"./index-Dcn6CILj.js";import"./checkbox-Bg0tGTVi.js";import"./Minus-Cdvi1RtF.js";import"./select-B-VvZR_M.js";import"./index-BdQq_4o_.js";import"./ChevronUp-CoA7d7vl.js";import"./ArrowLeft-a7zQohPB.js";import"./ChevronSelectorVertical-BAKnniO6.js";import"./Key01-CCL-qpBw.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-D1Q8X__K.js";import"./Eye-B8RfELJD.js";import"./Image01-DZ0d0gl4.js";import"./use-debounced-value-Io5mDbSS.js";import"./shell-layout-DJOHh2NE.js";import"./Globe04-DGpfgXDy.js";import"./use-deployment-admin-BGJ_CxB1.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-BygonUdk.js";import"./Zap-Ch4l-t5Z.js";import"./integration-icon-92n5xPlq.js";import"./LinkBroken01-DZpjy5h4.js";import"./project-icon-D-KoSfqD.js";import"./use-navigate-to-agent-stX_hK-R.js";import"./new-project-dialog-zI9XmIIv.js";import"./label-B61Mm8gW.js";import"./repository-picker-BcZZvjJw.js";import"./github-icon-DVLt0ntX.js";import"./collection-search-DhW2WLfL.js";import"./BookOpen01-Caac9KpE.js";import"./ShoppingBag01-D27zZ3nR.js";import"./new-project-store-BL2Sa0gM.js";import"./legacy-admin-welcome-dialog-DPVEA9Z4.js";import"./required-auth-layout-CRS7KXgy.js";import"./use-org-sso-B8YBjAU0.js";import"./cms-store-drafts-2T-3kouy.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-Ci6QcDj7.js";import"./url-slug-cwQb0zdO.js";import"./use-blocks-v8-project-DQzOlv_E.js";import"./content-changes-JBgMg-Ro.js";import"./blocks-tab-states-C-fKJR1R.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-L2cTHOLC.js";import"./index-gEUrUJcs.js";import"./ArrowUp-BjMuYXEC.js";import"./input-BqJq_7pW.js";import"./usage-stats-DX6ERAU7.js";import"./utils-CVEq3hMx.js";import"./markdown-B7FqmO_Q.js";import"./use-copy-DcPGMlZ-.js";import"./File02-CNp6lbfd.js";import"./gateway-client-ekFKMjOy.js";import"./form-W6JWpxT_.js";import"./icon-button-BKSgoP48.js";import"./file-type-icon-BIdp66kj.js";import"./chat-draft-D6uyGiuZ.js";import"./ArrowRight-CcdemY_e.js";import"./Upload01-VrBKSmfZ.js";import"./use-deco-credits-CIEhAz6A.js";import"./toggle-group-BMYX_eGL.js";import"./input-wtbnNzNz.js";import"./suggestion-DIf7hFaH.js";import"./use-mcp-prompts-CxlRUHT-.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-CzZKQU6l.js";import"./plan-ladder-BuBxtLzi.js";import"./add-connection-dialog--_GdeImt.js";import"./extract-connection-data-D6-4uHNK.js";import"./metadata-D72DunRR.js";import"./connection-B7ZHR3E3.js";import"./connection-card-C1SHg1dG.js";import"./connection-slug-B5tLzvCi.js";import"./textarea-Djiqi_Hb.js";import"./use-connection-G9Us7hRV.js";import"./schema-D0halWwt.js";import"./connection-form-helpers-tazbDTDK.js";import"./authenticate-and-persist-oauth-CfAul8ih.js";import"./mcp-oauth-BxD-kgyz.js";import"./mcp-oauth-BZS2Yc1A.js";import"./collection-tabs-D91PU4y3.js";import"./badge-By3J5rC3.js";import"./use-infinite-scroll-DW5uI5g1.js";import"./useSuspenseInfiniteQuery-Z_2IraLh.js";import"./use-task-board-items-B1Pzgu76.js";import"./pair-CgeeVvss.js";import"./collapsible-CxuxAsHp.js";import"./task-key-CpnKPfDS.js";import"./config-DbV4O0C1.js";import"./task-route-CkAEJVQF.js";import"./project-index-Di4hbJe7.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BsX2Dy6R.js";import"./types-DxV-fZV6.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-CtVbBsAG.js";import"./agent-capabilities-CkWGD_1I.js";import"./use-cms-publish-actions-E5PxzXRo.js";import"./use-content-sync-qLtFKVoY.js";import"./sandbox-git-api-DZ5qElbf.js";import"./utils-DgfuCg_0.js";import"./device-hint-0_GHbWqS.js";import"./alert-DosQ3gDY.js";import"./section-array-field-BUwgz_eV.js";import"./editor-DHPR_ozC.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-BukF6MQn.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-BD4H9Smc.js";import"./Fingerprint04-CYuFFJ8_.js";import"./Sun-TBLvGE97.js";import"./Play-KnC-ePg8.js";import"./Users01-CYW34Us_.js";import"./use-move-blocks-CYHOXTJj.js";import"./hosted-reconcile-4JQ_9bXq.js";const st={mobile:{width:412,height:823},tablet:{width:1024,height:1366},desktop:{width:1280,height:800}},nt=1;function at(t){const e=st[t.device],o=e.width+2*nt,i=t.device==="desktop"&&(t.canvas.width===0||t.canvas.width>=o);if(i)return{fluid:i,scale:1,style:{width:"100%",height:"100%"}};const r=t.canvas.width>0?Math.min(t.canvas.width/o,1):1;return{fluid:i,scale:r,style:{width:`${e.width}px`,height:t.canvas.height>0?`${t.canvas.height/r}px`:`${e.height}px`,transform:`scale(${r})`,transformOrigin:"top center"}}}function lt(t,e){try{t.contentWindow?.location.reload()}catch{e&&(t.src=e)}}function ct(t){const e=$.c(51),{iframeRef:o,iframeBase:i,src:r,device:a,canvas:p,title:c,recoveryActive:l,draftUrl:m,holdNavigation:f,changePending:d,expectLoad:s}=t,g=f===void 0?!1:f,h=d===void 0?!1:d,b=s===void 0?0:s;let w;e[0]!==p||e[1]!==a?(w=at({device:a,canvas:p}),e[0]=p,e[1]=a,e[2]=w):w=e[2];const S=w,v=l?r:null;let j;e[3]!==o||e[4]!==l||e[5]!==v?(j={iframeRef:o,src:v,active:l},e[3]=o,e[4]=l,e[5]=v,e[6]=j):j=e[6];const x=Ve(j);let u;e[7]!==r?(u={src:r,loading:!1},e[7]=r,e[8]=u):u=e[8];const[y,H]=D.useState(u);let z;e[9]!==h||e[10]!==g||e[11]!==y||e[12]!==r?(z=Ue(y,We(y.src,r,h),g),e[9]=h,e[10]=g,e[11]=y,e[12]=r,e[13]=z):z=e[13];const Y=z;Y!==y&&H(Y);const P=Y.src,E=Y.loading,[k,A]=D.useState(!0);let K;e[14]!==h||e[15]!==b||e[16]!==P?(K={frameSrc:P,changePending:h,expectLoad:b},e[14]=h,e[15]=b,e[16]=P,e[17]=K):K=e[17];const[L,W]=D.useState(K);if(L.frameSrc!==P||L.changePending!==h||L.expectLoad!==b){W({frameSrc:P,changePending:h,expectLoad:b});const B=h&&!L.changePending;(L.frameSrc!==P||L.expectLoad!==b||B)&&A(!0)}const q=D.useRef(null);let I;e[18]!==k||e[19]!==m||e[20]!==E||e[21]!==P||e[22]!==o?(I=()=>{const B=E||k?setTimeout(()=>{H(fe),A(!1)},Ge):null,G=()=>{B&&clearTimeout(B)};if(!m||!P||q.current===m)return G;q.current=m;const F=o.current;return F&&F.getAttribute("src")!==P&&(F.src=P),G},e[18]=k,e[19]=m,e[20]=E,e[21]=P,e[22]=o,e[23]=I):I=e[23];let M;e[24]!==k||e[25]!==m||e[26]!==E||e[27]!==P?(M=[m,P,E,k],e[24]=k,e[25]=m,e[26]=E,e[27]=P,e[28]=M):M=e[28],D.useEffect(I,M);let T;e[29]!==k||e[30]!==h||e[31]!==E?(T=(h||k||E)&&n.jsx(Xe,{}),e[29]=k,e[30]=h,e[31]=E,e[32]=T):T=e[32];const C=!S.fluid&&"bg-background shadow-edge";let _;e[33]!==C?(_=re("shrink-0",C),e[33]=C,e[34]=_):_=e[34];let O;e[35]!==x?(O=B=>{Ye(B.currentTarget),H(fe),A(!1),x.handleLoad()},e[35]=x,e[36]=O):O=e[36];let R;e[37]!==P||e[38]!==i||e[39]!==o||e[40]!==x.handleError||e[41]!==O||e[42]!==c?(R=n.jsx("iframe",{ref:o,src:P,className:"w-full h-full border-0",title:c,onError:x.handleError,onLoad:O},i),e[37]=P,e[38]=i,e[39]=o,e[40]=x.handleError,e[41]=O,e[42]=c,e[43]=R):R=e[43];let N;e[44]!==S.style||e[45]!==_||e[46]!==R?(N=n.jsx("div",{className:_,style:S.style,children:R}),e[44]=S.style,e[45]=_,e[46]=R,e[47]=N):N=e[47];let V;return e[48]!==T||e[49]!==N?(V=n.jsxs(n.Fragment,{children:[T,N]}),e[48]=T,e[49]=N,e[50]=V):V=e[50],V}function mt(t){return!t.previewBaseUrl||t.awaitingDraft?"no-origin":t.hasPostRoute?t.url?null:"missing-params":"no-route"}const pt={"no-origin":"sandbox.postPreview.noOrigin","no-route":"sandbox.postPreview.noRoute","missing-params":"sandbox.postPreview.missingParams"},dt={"no-origin":"sandbox.postPreview.noOriginHint","no-route":"sandbox.postPreview.noRouteHint","missing-params":"sandbox.postPreview.missingParamsHint"};function ft(t){const e=$.c(77),{orgSlug:o,virtualMcpId:i,decofile:r,post:a,blockKey:p,previewBaseUrl:c,meta:l,fastPreviewActive:m,draftPointer:f,visible:d}=t,s=se(),[g,h]=D.useState("desktop"),b=D.useRef(null),[w,S]=Ie(),[v,j]=D.useState(d);d&&!v&&j(!0);let x,u;if(e[0]!==p||e[1]!==r||e[2]!==f||e[3]!==m||e[4]!==l||e[5]!==a||e[6]!==c){u=Qe({decofile:r,post:a,previewBaseUrl:c,draftPointer:m?f:null,meta:l,planning:xe(p)});let X;e[9]!==r||e[10]!==l?(X=Ze(r,l),e[9]=r,e[10]=l,e[11]=X):X=e[11],x=mt({previewBaseUrl:c,hasPostRoute:!!X,url:u,awaitingDraft:m&&!f}),e[0]=p,e[1]=r,e[2]=f,e[3]=m,e[4]=l,e[5]=a,e[6]=c,e[7]=x,e[8]=u}else x=e[7],u=e[8];const y=x,H=qe(o,i),[z,Y]=D.useState(0);let P;e[12]!==u?(P=()=>{const X=b.current;X&&(lt(X,u),Y(ut))},e[12]=u,e[13]=P):P=e[13];const E=P;Je(E);const k=g==="desktop";let A;e[14]!==s?(A=s("sandbox.postPreview.desktop"),e[14]=s,e[15]=A):A=e[15];let K,L;e[16]===Symbol.for("react.memo_cache_sentinel")?(K=()=>h("desktop"),L=n.jsx(Me,{size:16}),e[16]=K,e[17]=L):(K=e[16],L=e[17]);let W;e[18]!==k||e[19]!==A?(W=n.jsx(ue,{active:k,label:A,onClick:K,children:L}),e[18]=k,e[19]=A,e[20]=W):W=e[20];const q=g==="mobile";let I;e[21]!==s?(I=s("sandbox.postPreview.mobile"),e[21]=s,e[22]=I):I=e[22];let M,T;e[23]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h("mobile"),T=n.jsx(ze,{size:16}),e[23]=M,e[24]=T):(M=e[23],T=e[24]);let C;e[25]!==q||e[26]!==I?(C=n.jsx(ue,{active:q,label:I,onClick:M,children:T}),e[25]=q,e[26]=I,e[27]=C):C=e[27];let _;e[28]!==C||e[29]!==W?(_=n.jsxs("div",{className:"flex items-center gap-0.5",children:[W,C]}),e[28]=C,e[29]=W,e[30]=_):_=e[30];const O=!!y;let R;e[31]!==s?(R=s("sandbox.postPreview.refresh"),e[31]=s,e[32]=R):R=e[32];let N;e[33]!==s?(N=s("sandbox.postPreview.refresh"),e[33]=s,e[34]=N):N=e[34];let V;e[35]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(we,{size:16}),e[35]=V):V=e[35];let B;e[36]!==E||e[37]!==O||e[38]!==R||e[39]!==N?(B=n.jsx(ce,{type:"button",variant:"ghost",size:"icon",disabled:O,"aria-label":R,title:N,onClick:E,children:V}),e[36]=E,e[37]=O,e[38]=R,e[39]=N,e[40]=B):B=e[40];const G=!u||!!y;let F;e[41]!==s?(F=s("sandbox.postPreview.openInNewTab"),e[41]=s,e[42]=F):F=e[42];let J;e[43]!==s?(J=s("sandbox.postPreview.openInNewTab"),e[43]=s,e[44]=J):J=e[44];let Q;e[45]!==y||e[46]!==u?(Q=()=>{u&&!y&&window.open(u,"_blank","noopener,noreferrer")},e[45]=y,e[46]=u,e[47]=Q):Q=e[47];let ne;e[48]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(Pe,{size:16}),e[48]=ne):ne=e[48];let Z;e[49]!==G||e[50]!==F||e[51]!==J||e[52]!==Q?(Z=n.jsx(ce,{type:"button",variant:"ghost",size:"icon",disabled:G,"aria-label":F,title:J,onClick:Q,children:ne}),e[49]=G,e[50]=F,e[51]=J,e[52]=Q,e[53]=Z):Z=e[53];let ee;e[54]!==B||e[55]!==Z?(ee=n.jsxs("div",{className:"flex items-center gap-0.5",children:[B,Z]}),e[54]=B,e[55]=Z,e[56]=ee):ee=e[56];let te;e[57]!==_||e[58]!==ee?(te=n.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between gap-2 border-b px-2",children:[_,ee]}),e[57]=_,e[58]=ee,e[59]=te):te=e[59];let oe;e[60]!==y||e[61]!==w||e[62]!==H||e[63]!==g||e[64]!==m||e[65]!==v||e[66]!==c||e[67]!==z||e[68]!==s||e[69]!==u?(oe=y||!u?n.jsx(be,{className:"h-full",title:s(pt[y??"missing-params"]),description:s(dt[y??"missing-params"])}):v?n.jsx(ct,{iframeRef:b,iframeBase:c??null,src:u,device:g,canvas:w,title:s("sandbox.postPreview.frameTitle"),recoveryActive:!m,draftUrl:m?u:null,holdNavigation:m,changePending:H,expectLoad:z}):null,e[60]=y,e[61]=w,e[62]=H,e[63]=g,e[64]=m,e[65]=v,e[66]=c,e[67]=z,e[68]=s,e[69]=u,e[70]=oe):oe=e[70];let ie;e[71]!==S||e[72]!==oe?(ie=n.jsx("div",{ref:S,className:"relative flex min-h-0 flex-1 justify-center overflow-clip bg-muted/30",children:oe}),e[71]=S,e[72]=oe,e[73]=ie):ie=e[73];let ae;return e[74]!==te||e[75]!==ie?(ae=n.jsxs("div",{className:"flex h-full min-w-0 flex-col border-l bg-muted/30",children:[te,ie]}),e[74]=te,e[75]=ie,e[76]=ae):ae=e[76],ae}function ut(t){return t+1}function ue(t){const e=$.c(8),{active:o,label:i,onClick:r,children:a}=t,p=o&&"bg-accent text-accent-foreground";let c;e[0]!==p?(c=re(p),e[0]=p,e[1]=c):c=e[1];let l;return e[2]!==o||e[3]!==a||e[4]!==i||e[5]!==r||e[6]!==c?(l=n.jsx(ce,{type:"button",variant:"ghost",size:"icon","aria-pressed":o,"aria-label":i,title:i,className:c,onClick:r,children:a}),e[2]=o,e[3]=a,e[4]=i,e[5]=r,e[6]=c,e[7]=l):l=e[7],l}const ht=1366;function vt(t){return t.width<0?{kind:"pending"}:t.width<ht?{kind:"one-at-a-time",showing:t.view??"edit"}:{kind:"side-by-side",panes:t.view??"both"}}function pe(t,e){switch(t.kind){case"pending":return e==="edit";case"one-at-a-time":return t.showing===e;case"side-by-side":return t.panes==="both"||t.panes===e}}function gt(t,e){return t==="both"?e==="edit"?"preview":"edit":t===e?null:void 0}const U={default:55,min:30,max:75};function le(t){return Number.isFinite(t)?Math.min(U.max,Math.max(U.min,t)):U.default}const bt="blog.postSplit.editorShare.v1",he=5,me="--post-editor-width";function xt(){const t=$.c(13),[e,o]=ye(bt,wt),i=le(e),r=D.useRef(null);let a;t[0]!==o||t[1]!==i?(a=d=>{const s=r.current,g=s?.getBoundingClientRect().width??0;if(!s||g<=0||d.button!==0)return;d.preventDefault();const h=d.clientX,b=x=>le(Math.round((i+(x-h)/g*100)*10)/10);let w=i;const S=Array.from(s.querySelectorAll("iframe"));for(const x of S)x.style.pointerEvents="none";const v=x=>{w=b(x.clientX),s.style.setProperty(me,`${w}%`)},j=x=>{x.type==="pointerup"&&(w=b(x.clientX)),s.style.setProperty(me,`${w}%`),o(w);for(const u of S)u.style.pointerEvents="";window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",v),window.addEventListener("pointerup",j),window.addEventListener("pointercancel",j)},t[0]=o,t[1]=i,t[2]=a):a=t[2];const p=a;let c;t[3]!==o||t[4]!==i?(c=d=>{const s=d.key==="ArrowLeft"?i-he:d.key==="ArrowRight"?i+he:d.key==="Home"?U.min:d.key==="End"?U.max:null;s!==null&&(d.preventDefault(),o(le(s)))},t[3]=o,t[4]=i,t[5]=c):c=t[5];const l=c;let m;t[6]!==o?(m=()=>o(U.default),t[6]=o,t[7]=m):m=t[7];let f;return t[8]!==l||t[9]!==p||t[10]!==i||t[11]!==m?(f={share:i,containerRef:r,onPointerDown:p,onKeyDown:l,reset:m},t[8]=l,t[9]=p,t[10]=i,t[11]=m,t[12]=f):f=t[12],f}function wt(t){return typeof t=="number"?le(t):U.default}const Pt=D.lazy(()=>Se(()=>import("./post-editor-C5PQD-my.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168])).then(t=>({default:t.PostEditor})));function yt({orgSlug:t,virtualMcpId:e,branch:o,blockKey:i,decofile:r,meta:a,previewBaseUrl:p,fastPreviewActive:c,view:l,onViewChange:m,onOpenBlog:f}){const d=se(),[s,g]=je(),h=He({orgSlug:t,virtualMcpId:e,branch:o,decofile:r}),b=Oe({orgSlug:t,virtualMcpId:e,branch:o}),w=r[i],S=Fe(w,"posts"),v=vt({width:s,view:l}),j=xt(),x=pe(v,"edit"),u=pe(v,"preview"),y=v.kind==="side-by-side"&&v.panes==="both",H=Ke(S.title),z=n.jsx(Et,{orgSlug:t,virtualMcpId:e,branch:o,blockKey:i,decofile:r,meta:a,previewBaseUrl:p,move:h,onDeleted:f});return n.jsxs("div",{ref:g,className:"flex h-full min-h-0 flex-col",children:[n.jsx(Ee.Breadcrumbs,{after:"page",parent:{onSelect:f},items:[{key:`post:${ge(i)}`,label:H||d("sandbox.postBoard.untitled")}]}),v.kind!=="pending"&&n.jsx("div",{className:"flex h-10 shrink-0 items-center justify-end border-b px-2",children:n.jsx(St,{layout:v,onViewChange:m})}),n.jsxs("div",{ref:j.containerRef,className:"flex min-h-0 flex-1",style:{[me]:`${j.share}%`},children:[n.jsx("div",{className:re("min-w-0",!x&&"hidden",y?"shrink-0":"flex-1"),style:y?{width:`var(${me})`}:void 0,children:z}),y&&n.jsx(jt,{split:j}),n.jsx("div",{className:re("min-w-0 flex-1",!u&&"hidden"),children:n.jsx(ft,{orgSlug:t,virtualMcpId:e,decofile:r,post:S,blockKey:i,previewBaseUrl:p,meta:a,fastPreviewActive:c,draftPointer:b,visible:u})})]})]})}function St(t){const e=$.c(4),{layout:o,onViewChange:i}=t,r=se();if(o.kind==="pending")return null;let a;if(e[0]!==o||e[1]!==i||e[2]!==r){const p=[{pane:"edit",label:r("sandbox.postEditScreen.edit"),icon:n.jsx(Ce,{size:14})},{pane:"preview",label:r("sandbox.postEditScreen.preview"),icon:n.jsx(Ae,{size:14})}];a=n.jsx("div",{className:"flex items-center gap-0.5 rounded-lg bg-muted p-0.5",children:p.map(c=>{const{pane:l,label:m,icon:f}=c,d=pe(o,l);if(o.kind==="one-at-a-time")return n.jsx(ve,{pressed:d,label:m,icon:f,onClick:d?void 0:()=>i(l)},l);const s=gt(o.panes,l);return n.jsx(ve,{pressed:d,locked:s===null,label:m,icon:f,onClick:s===null?void 0:()=>i(s)},l)})}),e[0]=o,e[1]=i,e[2]=r,e[3]=a}else a=e[3];return a}function ve(t){const e=$.c(10),{pressed:o,locked:i,label:r,icon:a,onClick:p}=t,c=i===void 0?!1:i,l=c||void 0,m=o&&"bg-background shadow-sm",f=c&&"cursor-default";let d;e[0]!==m||e[1]!==f?(d=re("h-7 px-2",m,f),e[0]=m,e[1]=f,e[2]=d):d=e[2];let s;return e[3]!==a||e[4]!==r||e[5]!==p||e[6]!==o||e[7]!==l||e[8]!==d?(s=n.jsxs(ce,{type:"button",variant:"ghost",size:"sm","aria-pressed":o,"aria-disabled":l,className:d,onClick:p,children:[a,r]}),e[3]=a,e[4]=r,e[5]=p,e[6]=o,e[7]=l,e[8]=d,e[9]=s):s=e[9],s}function jt(t){const e=$.c(14),{split:o}=t,i=se();let r;e[0]!==i?(r=i("sandbox.postEditScreen.resizeSplit"),e[0]=i,e[1]=r):r=e[1];let a;e[2]!==o.share?(a=Math.round(o.share),e[2]=o.share,e[3]=a):a=e[3];let p;e[4]!==i?(p=i("sandbox.postEditScreen.resizeSplitHint"),e[4]=i,e[5]=p):p=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-ring group-active/resize:bg-ring group-focus-visible/resize:bg-ring"}),e[6]=c):c=e[6];let l;return e[7]!==o.onKeyDown||e[8]!==o.onPointerDown||e[9]!==o.reset||e[10]!==r||e[11]!==a||e[12]!==p?(l=n.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":r,"aria-valuenow":a,"aria-valuemin":U.min,"aria-valuemax":U.max,title:p,tabIndex:0,onPointerDown:o.onPointerDown,onKeyDown:o.onKeyDown,onDoubleClick:o.reset,className:"group/resize relative z-10 -mx-1 w-2 shrink-0 cursor-col-resize touch-none focus-visible:outline-none",children:c}),e[7]=o.onKeyDown,e[8]=o.onPointerDown,e[9]=o.reset,e[10]=r,e[11]=a,e[12]=p,e[13]=l):l=e[13],l}function Et(t){const e=$.c(15),{orgSlug:o,virtualMcpId:i,branch:r,blockKey:a,decofile:p,meta:c,previewBaseUrl:l,move:m,onDeleted:f}=t;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex h-full items-center justify-center",children:n.jsx(ke,{className:"size-5 text-muted-foreground"})}),e[0]=d):d=e[0];let s;e[1]!==a?(s=ge(a),e[1]=a,e[2]=s):s=e[2];const g=`post:${s}`,h=p[a];let b;return e[3]!==a||e[4]!==r||e[5]!==p||e[6]!==c||e[7]!==m||e[8]!==f||e[9]!==o||e[10]!==l||e[11]!==g||e[12]!==h||e[13]!==i?(b=n.jsx(D.Suspense,{fallback:d,children:n.jsx(Pt,{orgSlug:o,virtualMcpId:i,branch:r,blockKey:a,block:h,decofile:p,meta:c,previewBaseUrl:l,move:m,onDeleted:f},g)}),e[3]=a,e[4]=r,e[5]=p,e[6]=c,e[7]=m,e[8]=f,e[9]=o,e[10]=l,e[11]=g,e[12]=h,e[13]=i,e[14]=b):b=e[14],b}function kt(t,e){const o=Be(e);if(o in t)return o;const i=De(e);return i in t?i:null}function _t(t){const e=$.c(18),{virtualMcpId:o}=t,i=se(),r=_e();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const p=Re(a);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const l=Ne(c),m=p.postId??"",f=p.org??"",d=p.agentId??"";let s;e[2]!==f||e[3]!==d?(s={org:f,agentId:d},e[2]=f,e[3]=d,e[4]=s):s=e[4];const g=s;let h;e[5]!==r||e[6]!==g?(h=()=>{r({to:de.blog,params:g,search:Rt})},e[5]=r,e[6]=g,e[7]=h):h=e[7];const b=h;let w;e[8]!==r||e[9]!==b||e[10]!==m||e[11]!==g||e[12]!==l||e[13]!==i?(w=n.jsx(et,{children:v=>{const j=kt(v.decofile,m);return j?n.jsx(yt,{orgSlug:v.orgSlug,virtualMcpId:v.virtualMcpId,branch:v.branch,blockKey:j,decofile:v.decofile,meta:v.meta,previewBaseUrl:v.sitePreviewUrl,fastPreviewActive:v.fastPreviewActive,view:l.blogView,onViewChange:x=>{r({to:de.blogPost,params:{...g,postId:m},search:u=>({...u,blogView:x}),replace:!0})},onOpenBlog:b}):n.jsx(be,{className:"h-full",title:i("sandbox.postEditScreen.notFound"),description:i("sandbox.postEditScreen.notFoundHint"),buttonProps:{children:i("sandbox.collectionsSidebar.posts"),onClick:b}})}}),e[8]=r,e[9]=b,e[10]=m,e[11]=g,e[12]=l,e[13]=i,e[14]=w):w=e[14];let S;return e[15]!==w||e[16]!==o?(S=n.jsx(tt,{virtualMcpId:o,children:w}),e[15]=w,e[16]=o,e[17]=S):S=e[17],S}function Rt(t){return ot({previous:t,destination:"agent"})}function Nt(){const t=$.c(2),e=it();let o;return t[0]!==e?(o=n.jsx(rt,{children:n.jsx($e,{feature:"cms",children:n.jsx(_t,{virtualMcpId:e})})}),t[0]=e,t[1]=o):o=t[1],o}function os(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Le.Content,{actions:n.jsx(Te,{}),children:n.jsx(Nt,{})}),t[0]=e):e=t[0],e}export{os as default};
|