decocms 4.619.4 → 4.619.5
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-BlMH0XE7.js → AlertCircle-ChqjWH7E.js} +1 -1
- package/dist/client/assets/{AreaChart-CFi6-0Iq.js → AreaChart-Bh0xUVvq.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B0PZnf1E.js → ArrowLeft-libxJleO.js} +1 -1
- package/dist/client/assets/{ArrowRight-mzMrxxYI.js → ArrowRight-BRk4Hran.js} +1 -1
- package/dist/client/assets/{ArrowUp-D5DDc3Cp.js → ArrowUp-BrwXO1vC.js} +1 -1
- package/dist/client/assets/{BookOpen01-DU-B3R7s.js → BookOpen01-BDifdMkT.js} +1 -1
- package/dist/client/assets/{CartesianChart-fywgd4bq.js → CartesianChart-p_GxMYyG.js} +1 -1
- package/dist/client/assets/{CategoricalChart-wSsXuALZ.js → CategoricalChart-DgcXVLOE.js} +1 -1
- package/dist/client/assets/{CheckCircle-DZ8MNpCP.js → CheckCircle-BS4u7GKL.js} +1 -1
- package/dist/client/assets/{ChevronDown-XsLJSrfl.js → ChevronDown-DrncqTUe.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CB0fn1Nq.js → ChevronSelectorVertical-DLti285g.js} +1 -1
- package/dist/client/assets/{ChevronUp-BQktpZWC.js → ChevronUp-Cx0YNXAN.js} +1 -1
- package/dist/client/assets/{CreditCard01-MY4ouqtl.js → CreditCard01-CvuDODOT.js} +1 -1
- package/dist/client/assets/{Eye-kjjhS0vP.js → Eye-CvCTiG93.js} +1 -1
- package/dist/client/assets/{File02-DaYek2y9.js → File02-C56z6MkD.js} +1 -1
- package/dist/client/assets/{Fingerprint04-B2fDIuT8.js → Fingerprint04-6YzZ_jju.js} +1 -1
- package/dist/client/assets/{Globe04-CeAQ1YNm.js → Globe04-BrRHVGNQ.js} +1 -1
- package/dist/client/assets/{Image01-BcIZ5mtf.js → Image01-CgFR6A2M.js} +1 -1
- package/dist/client/assets/{Key01-CaJGjh13.js → Key01-q8HY_RxB.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DDtN-od-.js → LayoutLeft-CLd6bB7k.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DfUhihLM.js → LinkBroken01-D_QfcXMB.js} +1 -1
- package/dist/client/assets/{MessageCircle01-BG1RhOiZ.js → MessageCircle01-KvJTlsBi.js} +1 -1
- package/dist/client/assets/{Minus-hZzPDO0w.js → Minus-DqjfoGpn.js} +1 -1
- package/dist/client/assets/{Monitor01-DMFbvudn.js → Monitor01-Bo9f-OEj.js} +1 -1
- package/dist/client/assets/{Play-BCFOaioW.js → Play-BAVhlZkP.js} +1 -1
- package/dist/client/assets/{Plus-DWySsEmB.js → Plus-xfIPbM98.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CCZuWAGw.js → ReferenceLine-DUrIC0rZ.js} +1 -1
- package/dist/client/assets/{SearchMd-BD2qldmS.js → SearchMd-fabFdd5s.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BbjW7cod.js → ShoppingBag01-CCFPuM9g.js} +1 -1
- package/dist/client/assets/{Sun-O9TdKcV_.js → Sun-MaW22nKk.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CMdpIiQk.js → SwitchHorizontal01-COUdvBDy.js} +1 -1
- package/dist/client/assets/{Tool01-BCJ5kyrz.js → Tool01-BLv3y71t.js} +1 -1
- package/dist/client/assets/{Tooltip-B-bKlk4E.js → Tooltip-ShK1G1q2.js} +1 -1
- package/dist/client/assets/{Trash01-BxBhF2b8.js → Trash01-D5Busco0.js} +1 -1
- package/dist/client/assets/{Upload01-q-rKSvZf.js → Upload01-C-SD6gLx.js} +1 -1
- package/dist/client/assets/{UserCheck01-k-4bTA2h.js → UserCheck01-C1rHQW2k.js} +1 -1
- package/dist/client/assets/{UserSquare-CafFh5_d.js → UserSquare-BbR7Ffob.js} +1 -1
- package/dist/client/assets/{Users01-DM58_gUL.js → Users01-FBsoQxPP.js} +1 -1
- package/dist/client/assets/{XClose-CmTuu4UN.js → XClose-B_RBcQBR.js} +1 -1
- package/dist/client/assets/{Zap-CBJ7My90.js → Zap-8DRTlEOL.js} +1 -1
- package/dist/client/assets/{access-gate-ZixeoVbg.js → access-gate-Dl_Nzl3t.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CS6ZsWUV.js → add-connection-dialog-aXAW3JnT.js} +1 -1
- package/dist/client/assets/agent-app-D_nDbZ-9.js +1 -0
- package/dist/client/assets/{agent-assets-N3MVvFNQ.js → agent-assets-qiAzNaw5.js} +1 -1
- package/dist/client/assets/{agent-automation-YRM59WCJ.js → agent-automation-gyNFDeUJ.js} +1 -1
- package/dist/client/assets/{agent-automations-B6GbQ2NX.js → agent-automations-CsNZljnA.js} +1 -1
- package/dist/client/assets/{agent-blog-BZL3iqos.js → agent-blog-KkZXK42k.js} +2 -2
- package/dist/client/assets/{agent-blog-post-SleYRKhO.js → agent-blog-post-BxtIsbfY.js} +2 -2
- package/dist/client/assets/agent-business-case-DAuXfm5L.js +1 -0
- package/dist/client/assets/{agent-calendar-C2aYQk1W.js → agent-calendar-DerRdIMl.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CyWfHGWp.js → agent-capabilities-8PgT3Fp9.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-B3DsSlYx.js → agent-connect-sources-C0kDwUKT.js} +1 -1
- package/dist/client/assets/agent-deck-eUHsriBq.js +1 -0
- package/dist/client/assets/{agent-e2e-CL5z3KLl.js → agent-e2e-pCYZqXOZ.js} +1 -1
- package/dist/client/assets/agent-experiments-BpnyFf0V.js +1 -0
- package/dist/client/assets/agent-file-Ch9zXBiS.js +1 -0
- package/dist/client/assets/{agent-hosting-o-mcw7Mt.js → agent-hosting-CTabTTFv.js} +1 -1
- package/dist/client/assets/{agent-icon-BYWtutu9.js → agent-icon-POwFjNIx.js} +1 -1
- package/dist/client/assets/agent-library-file-BVDYoLvJ.js +1 -0
- package/dist/client/assets/agent-library-i3UF-T9Z.js +1 -0
- package/dist/client/assets/agent-overview-59T4P2bp.js +1 -0
- package/dist/client/assets/{agent-releases-CkoKmdtg.js → agent-releases-HY2c97cK.js} +1 -1
- package/dist/client/assets/agent-settings-J_nrf8b_.js +1 -0
- package/dist/client/assets/{agent-site-editor-mx714_u8.js → agent-site-editor-BT71MVv-.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-h18H1TlD.js +2 -0
- package/dist/client/assets/agent-site-editor-content-B8QHTDxs.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CjUXsNnG.js +1 -0
- package/dist/client/assets/agent-view-BwlFDbUa.js +1 -0
- package/dist/client/assets/{agent-view-guard-Du9KtXiN.js → agent-view-guard-DyZLxU5M.js} +1 -1
- package/dist/client/assets/{ai-providers-C5eMJ9gb.js → ai-providers-8akJfAUq.js} +1 -1
- package/dist/client/assets/{alert-CxbB9CEj.js → alert-DH-_ARv-.js} +1 -1
- package/dist/client/assets/{analytics-sections-DxDApvgE.js → analytics-sections-B-T3t-q1.js} +1 -1
- package/dist/client/assets/api-keys-Bd46Cq_I.js +1 -0
- package/dist/client/assets/{api-keys-Dz9mRGTx.js → api-keys-DsUWNtxn.js} +1 -1
- package/dist/client/assets/{app-editor-CjwcCH9G.js → app-editor-f8H4Sivy.js} +1 -1
- package/dist/client/assets/{asset-utils-DP9aQr9Q.js → asset-utils-DZKrqYDc.js} +1 -1
- package/dist/client/assets/{auth-C82OPjUx.js → auth-JFQg8ioC.js} +1 -1
- package/dist/client/assets/{auth-catchall-BuOacwQW.js → auth-catchall-g-aQzyQ-.js} +1 -1
- package/dist/client/assets/{auth-entry-CvZftMoq.js → auth-entry-BgbUsnTl.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DSQvTHWS.js → auth-split-layout-KLnefiWl.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-87e1Ix6y.js → authenticate-and-persist-oauth-BU8NlZrx.js} +1 -1
- package/dist/client/assets/{automation-list-row-4ox_h99L.js → automation-list-row-B72fIuba.js} +1 -1
- package/dist/client/assets/{automation-runs-Dto_jEAs.js → automation-runs-6_BJs58h.js} +1 -1
- package/dist/client/assets/{automations-C9HofLSf.js → automations-CbzONBNT.js} +1 -1
- package/dist/client/assets/{badge-DcUertOZ.js → badge-mppOhsx3.js} +1 -1
- package/dist/client/assets/{block-document-fIbF5XH6.js → block-document-BKonIwXl.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-ZEZYfsWp.js → blocks-preview-workspace-context-B5j3CJOh.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-8lUCpJRf.js → blocks-tab-states-cCwLT03y.js} +1 -1
- package/dist/client/assets/{blog-preview-url-N6iQgPQK.js → blog-preview-url-0WcO3GS9.js} +1 -1
- package/dist/client/assets/{blog-schema-0s-6sCQz.js → blog-schema-raQjuF8P.js} +1 -1
- package/dist/client/assets/{blog-source-gate-BIpZ68Ul.js → blog-source-gate-lLoxfqtf.js} +1 -1
- package/dist/client/assets/{blog-view-gate-D2LovAn5.js → blog-view-gate-BiSLgaWC.js} +1 -1
- package/dist/client/assets/{buckets-0rVmiN0b.js → buckets-1HOtjiBt.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BBeWkVDi.js → build-improve-prompt-doc-DhcIyUwj.js} +1 -1
- package/dist/client/assets/{calendar-DNzaYWCQ.js → calendar-C2v2rx1y.js} +1 -1
- package/dist/client/assets/{capability-load-error-CCChPOz4.js → capability-load-error-CM0aoq-L.js} +1 -1
- package/dist/client/assets/{category-editor-BWoJzJlg.js → category-editor-DLCnRR3L.js} +1 -1
- package/dist/client/assets/{category-tree-DGOo1BAt.js → category-tree-Dr1NGnf2.js} +1 -1
- package/dist/client/assets/{chart-DsKJdJFH.js → chart-CYSPmzvC.js} +1 -1
- package/dist/client/assets/{chat-context-DFEln8mI.js → chat-context-DmELouH7.js} +1 -1
- package/dist/client/assets/{chat-draft-DNEqrl5p.js → chat-draft-DmqEbKTr.js} +1 -1
- package/dist/client/assets/{checkbox-QUuOza1H.js → checkbox-hBxFVjXU.js} +1 -1
- package/dist/client/assets/{choose-editor-Dn-Q9YwJ.js → choose-editor-DDl49HQA.js} +1 -1
- package/dist/client/assets/{cli-auth-success-r3ux6WHO.js → cli-auth-success-f6C4rVO2.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-CFS-nduu.js → cms-settings-editor-DW9bHHPX.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-_66Q7KaS.js → cms-store-drafts-3Pzqjb1M.js} +1 -1
- package/dist/client/assets/{collapsible-CadTVXY4.js → collapsible-DXtfFhlw.js} +1 -1
- package/dist/client/assets/{collection-detail-Dx4tVGVC.js → collection-detail-CBuAnqsi.js} +1 -1
- package/dist/client/assets/{collection-display-button-6TpQQrIO.js → collection-display-button-Dblhh0g-.js} +1 -1
- package/dist/client/assets/{collection-search-DkVgkcUC.js → collection-search-CsMQtGxI.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Ds5dhGJx.js → collection-table-wrapper-BZ9PpxcG.js} +1 -1
- package/dist/client/assets/{collection-tabs-Cju2BOrS.js → collection-tabs-DpX5t3nl.js} +1 -1
- package/dist/client/assets/{combobox-2rKAfmHD.js → combobox-ha9qFXYI.js} +1 -1
- package/dist/client/assets/{command-C3tlrKUq.js → command-Ciz1JHkm.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DtquKPaV.js → companion-mcps-section-DoJ1ALmM.js} +1 -1
- package/dist/client/assets/{config-LEYSFIMn.js → config-BvgPav17.js} +1 -1
- package/dist/client/assets/{connect-BKnKKYKQ.js → connect-A6ZiSBnP.js} +1 -1
- package/dist/client/assets/{connect-key-FoOHl5BZ.js → connect-key-CAYs6I-L.js} +1 -1
- package/dist/client/assets/{connect-layout-CsTR3j4_.js → connect-layout-AwrvfIUD.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-KHsP3PRH.js → connect-source-dialog-Cn9lw5x0.js} +1 -1
- package/dist/client/assets/{connection-C8I8wKeO.js → connection-DyMfTANF.js} +1 -1
- package/dist/client/assets/{connection-card-CTJwLo8p.js → connection-card-Dt92S85Y.js} +1 -1
- package/dist/client/assets/{connection-detail-CgH5yXt-.js → connection-detail-DFEjYgMe.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BjSA2uCL.js → connection-form-helpers-y2n-DExg.js} +1 -1
- package/dist/client/assets/{connection-slug-BNBBglpK.js → connection-slug-ClS--MnP.js} +1 -1
- package/dist/client/assets/{connections-X4DjYIvQ.js → connections-cj1xxBbZ.js} +1 -1
- package/dist/client/assets/{content-changes-BFwm7dNe.js → content-changes-B_DC-anJ.js} +1 -1
- package/dist/client/assets/{content-tab-BPEA6p-v.js → content-tab-DA3C5H1u.js} +3 -3
- package/dist/client/assets/{context-DUaIKdw9.js → context-DilQYCL-.js} +1 -1
- package/dist/client/assets/{context-menu-DkaKc9e5.js → context-menu-X27-pS6O.js} +1 -1
- package/dist/client/assets/{context-shell-fpMmjICJ.js → context-shell-BEfZ6BqB.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-BVTSqOJU.js → create-organization-dialog-CFrrSiyA.js} +1 -1
- package/dist/client/assets/{daily-pulse-BkxIzWUm.js → daily-pulse-WI3jy1tz.js} +1 -1
- package/dist/client/assets/{delete-copy-DdlDdNyl.js → delete-copy-BJv73-Ft.js} +1 -1
- package/dist/client/assets/{device-hint-B3WnBHYf.js → device-hint-BWyf1FYT.js} +1 -1
- package/dist/client/assets/{discover-Ciw-8-nj.js → discover-DenLgB1N.js} +1 -1
- package/dist/client/assets/{domain-settings-D4e35lZa.js → domain-settings-B1cNDSfr.js} +1 -1
- package/dist/client/assets/{drawer-CROtV2u4.js → drawer-BDbenm6L.js} +1 -1
- package/dist/client/assets/{editor-ipOJFDhA.js → editor-ByNhS1TQ.js} +1 -1
- package/dist/client/assets/{editor-classes-DYlqLnQ7.js → editor-classes-BTlqa_af.js} +1 -1
- package/dist/client/assets/{empty-state-I_cTbW85.js → empty-state-Br5iA0PL.js} +1 -1
- package/dist/client/assets/{empty-state-DM4xv3sa.js → empty-state-C3prkdI-.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-C9Djubgs.js → experiments-tab-choice-JhJIaoua.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DjYTV7t7.js → extract-connection-data-pUAzh98b.js} +1 -1
- package/dist/client/assets/{feature-gate-DMrFeUy1.js → feature-gate-B7uQp1Wq.js} +1 -1
- package/dist/client/assets/{feature-paywall-DL1BXqDM.js → feature-paywall-Cuxz-yLH.js} +1 -1
- package/dist/client/assets/{file-explorer-QEFcL5Sf.js → file-explorer-BfOtHRK-.js} +1 -1
- package/dist/client/assets/{file-preview-f1ZCefMe.js → file-preview-pbs1YLBz.js} +1 -1
- package/dist/client/assets/{file-share-button-C-f43toh.js → file-share-button-rLTESz0w.js} +1 -1
- package/dist/client/assets/{file-type-icon-CdjLDWdN.js → file-type-icon-DBhVFkcQ.js} +1 -1
- package/dist/client/assets/{folder-icon-DjWOZO3O.js → folder-icon-MqDqOvQj.js} +1 -1
- package/dist/client/assets/{form-DlZ0KMAb.js → form-CXf17HmA.js} +1 -1
- package/dist/client/assets/{frame-navigation-DMXKoo4B.js → frame-navigation-BxIR5BNm.js} +1 -1
- package/dist/client/assets/{gateway-client-B4qzR3sF.js → gateway-client-BePk_av3.js} +1 -1
- package/dist/client/assets/{general-CgIfCf24.js → general-CsmwPv8Q.js} +1 -1
- package/dist/client/assets/{github-icon-Bq9Ot22_.js → github-icon-DIDixxLk.js} +1 -1
- package/dist/client/assets/{held-block-view-QD0AvQ2Q.js → held-block-view-GbE3ruE3.js} +1 -1
- package/dist/client/assets/{home-CfP1B6zJ.js → home-DJcG2fXt.js} +1 -1
- package/dist/client/assets/{home-overview-B7AwMB08.js → home-overview-DLiFoePV.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-rjhKNGnc.js → hosted-reconcile-yuv1cDCb.js} +1 -1
- package/dist/client/assets/{icon-button-BH8Qviy5.js → icon-button-DbNvfQBp.js} +1 -1
- package/dist/client/assets/{index-MkoN5oFR.js → index-B6WtsvUt.js} +1 -1
- package/dist/client/assets/{index-DDkGmjwq.js → index-BBvpDsG5.js} +1 -1
- package/dist/client/assets/{index-5erPNBmj.js → index-BCX49XAx.js} +1 -1
- package/dist/client/assets/{index-g3eDw_KE.js → index-BRUloeMu.js} +1 -1
- package/dist/client/assets/{index-rjS4IUT9.js → index-BUpSNhfs.js} +1 -1
- package/dist/client/assets/{index-D23-6Dnm.js → index-BbC1S_4U.js} +1 -1
- package/dist/client/assets/{index-DMpANy5-.js → index-BdaeGs2y.js} +1 -1
- package/dist/client/assets/{index-CJKec1wg.js → index-BpPRg9nw.js} +1 -1
- package/dist/client/assets/{index-kCm_MC3x.js → index-CTaSigLH.js} +1 -1
- package/dist/client/assets/{index-BL01DXCf.js → index-CftUWKSR.js} +1 -1
- package/dist/client/assets/{index-CLFrG0Qs.js → index-D4hmWtVS.js} +1 -1
- package/dist/client/assets/{index-DrJBZ2ZV.js → index-D9esfo9_.js} +1 -1
- package/dist/client/assets/{index-CDQbtG2e.js → index-DEQvBvbs.js} +1 -1
- package/dist/client/assets/{index-Co7YBLf6.js → index-DRjUDdC5.js} +1 -1
- package/dist/client/assets/{index-DGzw_xp5.js → index-DSeH85lC.js} +1 -1
- package/dist/client/assets/{index-ztdGKvBm.js → index-DmMMRYj8.js} +47 -47
- package/dist/client/assets/{index-BcACgHiu.js → index-FKyOaCif.js} +1 -1
- package/dist/client/assets/{index-redirect-BxpEByen.js → index-redirect-CJIRsNhh.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C3KEOANj.js → infiniteQueryObserver-Cu2d4hqm.js} +1 -1
- package/dist/client/assets/{infra-billing-BFFvEbBo.js → infra-billing-DiPrpNBB.js} +1 -1
- package/dist/client/assets/{input-aLblPHPG.js → input-Cnr_4F97.js} +1 -1
- package/dist/client/assets/{input-B2QsYffT.js → input-Dbw7Fd2Y.js} +3 -3
- package/dist/client/assets/{integration-icon-Bo-3z9o3.js → integration-icon-BRzNeX56.js} +1 -1
- package/dist/client/assets/{item-actions-BDi0HvuM.js → item-actions-2zTJNgYK.js} +1 -1
- package/dist/client/assets/{jira-icon-CucNVYe0.js → jira-icon-CvpiGC68.js} +1 -1
- package/dist/client/assets/{label-8UxgpYiA.js → label-C3f-p2GO.js} +1 -1
- package/dist/client/assets/{layout-CiYqNQ7K.js → layout-Cc84j1jm.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-plmLACwz.js → legacy-admin-welcome-dialog-CBmPazsM.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DyZsDG6s.js → legacy-agents-deep-CqtT1quJ.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CRUswcYw.js → legacy-main-redirect-CCR_Kwsz.js} +1 -1
- package/dist/client/assets/library-Ckp5NJeK.js +1 -0
- package/dist/client/assets/{library-tab-DdqgBq7X.js → library-tab-Dk57BRNw.js} +1 -1
- package/dist/client/assets/{login-CSH2sxCM.js → login-D4Z6gjze.js} +1 -1
- package/dist/client/assets/{markdown-CJR_ooUO.js → markdown-Cny0I0ZM.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DU6s3Olv.js → mcp-app-renderer-Xp8aIExP.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BBSVAQ62.js → mcp-oauth-28V73W1w.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Alln4VX8.js → mcp-oauth-Ce9lewPT.js} +1 -1
- package/dist/client/assets/{members-NK4Xc07V.js → members-ClTY4xXw.js} +1 -1
- package/dist/client/assets/{memory-DMWEEOEF.js → memory-b3O_1-V_.js} +1 -1
- package/dist/client/assets/{mock-board-NMto_IE_.js → mock-board-WF9HmqEO.js} +3 -3
- package/dist/client/assets/{monaco-editor-CLzWWWtl.js → monaco-editor-09zfrzgi.js} +1 -1
- package/dist/client/assets/{monitoring-tu8T670c.js → monitoring-BH0R1IoD.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B4nREvBy.js → monitoring-stats-row-B7dH7aTO.js} +1 -1
- package/dist/client/assets/{multi-select-DT2CaFLR.js → multi-select-DjE5uJfk.js} +1 -1
- package/dist/client/assets/{mustache-CNuJ7AZ0.js → mustache-CAv4Wo6j.js} +1 -1
- package/dist/client/assets/{named-rule-step-BUKBZ8bi.js → named-rule-step-fEyBTSr7.js} +1 -1
- package/dist/client/assets/{named-rule-view-B2F_JWdt.js → named-rule-view-BtVwQRW0.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BW6Lh52P.js → new-project-dialog-C2fYVAcy.js} +1 -1
- package/dist/client/assets/{new-project-store-DID5OVrt.js → new-project-store-ojiemp_1.js} +1 -1
- package/dist/client/assets/{oauth-callback-CaqSxMor.js → oauth-callback-SbkDBXLb.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-U0bkWwKJ.js → oauth-callback-ai-provider-gP6nqh3M.js} +1 -1
- package/dist/client/assets/{oauth-consent-BSgGE3Bs.js → oauth-consent-eA6vODlv.js} +1 -1
- package/dist/client/assets/{onboarding-DhuU_4Fu.js → onboarding-_1r4ZeP2.js} +1 -1
- package/dist/client/assets/{openai-conversation-XKCKDcRG.js → openai-conversation-B_QTTz48.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-aXJkp7Aa.js → optimistic-project-sidebar-views-CUp17jsk.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BS6DbEul.js → order-monitor-day-WI4T6JVp.js} +1 -1
- package/dist/client/assets/{organization-choice-BA2J1Sub.js → organization-choice-BT2Rf92e.js} +1 -1
- package/dist/client/assets/{orgs-BM_ILPKb.js → orgs-WIJ6MIBI.js} +1 -1
- package/dist/client/assets/{own-accounts-section-C2hUsPB2.js → own-accounts-section-7utRZGGB.js} +1 -1
- package/dist/client/assets/{pair-DmyTA2cC.js → pair-BTGgcS15.js} +1 -1
- package/dist/client/assets/{parse-sections-Bun2U10n.js → parse-sections-C59DO3q9.js} +2 -2
- package/dist/client/assets/plan-ZkQxDDb0.js +1 -0
- package/dist/client/assets/{plan-ladder-C3ogU-RT.js → plan-ladder-DQcImxho.js} +1 -1
- package/dist/client/assets/plan-page-BNM6yWoR.js +6 -0
- package/dist/client/assets/{plan-usage-card-Cu6N697K.js → plan-usage-card-d9jjSRr5.js} +1 -1
- package/dist/client/assets/{popover-C4oz5B-L.js → popover-LZpi0uxx.js} +1 -1
- package/dist/client/assets/{post-calendar-C9jkdGJh.js → post-calendar-B2XxygHy.js} +1 -1
- package/dist/client/assets/{post-editor-cvzIrkiW.js → post-editor-4JPDI3S-.js} +1 -1
- package/dist/client/assets/{preview-content-f1yPbBN0.js → preview-content-DGxbg8JA.js} +1 -1
- package/dist/client/assets/{preview-dialog-BPjf_vPa.js → preview-dialog-CKIw_sT3.js} +1 -1
- package/dist/client/assets/{preview-panel-a1ouBSIL.js → preview-panel-BQa36YRe.js} +1 -1
- package/dist/client/assets/{preview-tab-g0gk5kBr.js → preview-tab-cyrlNlH8.js} +3 -3
- package/dist/client/assets/{primitives-BbUqWJzg.js → primitives-BITik6wR.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-Bux2F3Cd.js → product-picker-dialog-Cg32JEQH.js} +1 -1
- package/dist/client/assets/{profile-Dc_5h7y4.js → profile-Dch68YkB.js} +1 -1
- package/dist/client/assets/{project-app-view-9F75U5zq.js → project-app-view-BIQlLpwb.js} +1 -1
- package/dist/client/assets/{project-apps-BcKyvp4E.js → project-apps-D42y2IN7.js} +1 -1
- package/dist/client/assets/{project-icon-fQqckccl.js → project-icon-CGh1cNL8.js} +1 -1
- package/dist/client/assets/{project-index-C2IrSomv.js → project-index-q7fIaoJ4.js} +1 -1
- package/dist/client/assets/project-reports-twvZzSW8.js +1 -0
- package/dist/client/assets/project-tasks-BEG01N1v.js +1 -0
- package/dist/client/assets/{projects-BMIqPW4r.js → projects-OnG5zDqA.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DXP1mqYF.js → projects-empty-state-B0JTgic4.js} +1 -1
- package/dist/client/assets/{prompts-DpRerlb-.js → prompts-A1FnMmhq.js} +1 -1
- package/dist/client/assets/record-editor-CC9nSDgS.js +1 -0
- package/dist/client/assets/{redirect-editor-C-75DqJ8.js → redirect-editor-Cywl5BYQ.js} +1 -1
- package/dist/client/assets/reports-HmWKAvsp.js +1 -0
- package/dist/client/assets/{reports-DrD55ws1.js → reports-NWEc-Lua.js} +1 -1
- package/dist/client/assets/{reports-onboarding-wE7JwoZi.js → reports-onboarding-CULUNr0X.js} +1 -1
- package/dist/client/assets/{reports-tab-Bm-CyJCU.js → reports-tab-B-XRHHzJ.js} +2 -2
- package/dist/client/assets/repositories-D3yOV9xb.js +1 -0
- package/dist/client/assets/{repositories-DQbDt3rW.js → repositories-urVVsxDV.js} +1 -1
- package/dist/client/assets/{repository-binding-D_Xc1yRH.js → repository-binding-CnqOEzD9.js} +1 -1
- package/dist/client/assets/{repository-picker-CSaozawA.js → repository-picker-uXEId6yP.js} +1 -1
- package/dist/client/assets/{require-capability-BvMWopKN.js → require-capability-BYTFUqs7.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cwtu4iIe.js → required-auth-layout-XZ2_RXTi.js} +1 -1
- package/dist/client/assets/{reset-password-CCjgtMBz.js → reset-password-QmOkx6zB.js} +1 -1
- package/dist/client/assets/{resizable-DNBx7bMi.js → resizable-BRdUguHL.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-XkjIOifK.js → resolve-tab-icon-DU_-ybQf.js} +1 -1
- package/dist/client/assets/{review-settings-DnBaXa8b.js → review-settings-DpDxRF-0.js} +1 -1
- package/dist/client/assets/{role-color-CCLGEajG.js → role-color-DCdH_wWu.js} +1 -1
- package/dist/client/assets/{roles-DDL7RCB4.js → roles-CpK8Wvjo.js} +1 -1
- package/dist/client/assets/route-BRDm5oAQ.js +1 -0
- package/dist/client/assets/{route-Bz0dgJ2I.js → route-CR4DNNtl.js} +1 -1
- package/dist/client/assets/{route-cP2t4t1J.js → route-CXpF1swO.js} +1 -1
- package/dist/client/assets/{route-page-header-CApA0aIo.js → route-page-header-DW5bo48I.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-BsG4EzUP.js → sandbox-git-api-DasV_5nY.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DbNrw8-a.js → sandbox-lifecycle-context-vPm6SLvw.js} +1 -1
- package/dist/client/assets/{save-status-DhQhbNh0.js → save-status-B4_TQBlx.js} +1 -1
- package/dist/client/assets/{schema-D_OZwHJO.js → schema-CsDjeoCD.js} +1 -1
- package/dist/client/assets/{schema-Bb-DbvPZ.js → schema-VYa9v4uK.js} +1 -1
- package/dist/client/assets/{scroll-area-Dm3EbBj1.js → scroll-area-CK2HWET4.js} +1 -1
- package/dist/client/assets/{search-input-BQ8Dp8aD.js → search-input-D8Ti2Kj4.js} +1 -1
- package/dist/client/assets/{search-toggle-1gezrIbC.js → search-toggle-KKskvzsk.js} +1 -1
- package/dist/client/assets/{secret-picker-Bjl5COEs.js → secret-picker-Brdmk5Cm.js} +1 -1
- package/dist/client/assets/{secrets-k-1ebMsD.js → secrets-DMf03CW8.js} +1 -1
- package/dist/client/assets/{section-array-field-uECXIzc8.js → section-array-field-CrZ8pD2Q.js} +1 -1
- package/dist/client/assets/{sections-BA7rlacS.js → sections-Hc_ea1la.js} +1 -1
- package/dist/client/assets/{sections-editor-DFekY7v1.js → sections-editor-DbQFGAcZ.js} +1 -1
- package/dist/client/assets/{select-CxXZwsSr.js → select-4fwa0N-w.js} +1 -1
- package/dist/client/assets/{select-model-ocp0molk.js → select-model-Ck_OMznE.js} +1 -1
- package/dist/client/assets/{seo-editor-XFI4kpN6.js → seo-editor-BR6eGZKq.js} +1 -1
- package/dist/client/assets/{separator-BQ6pXQbe.js → separator-D24Pkrni.js} +1 -1
- package/dist/client/assets/{session-runtime-DBl1Hlcw.js → session-runtime-Bxzg28T1.js} +1 -1
- package/dist/client/assets/settings-tab-D1P_bB3N.js +1 -0
- package/dist/client/assets/{sheet-C-umRrOH.js → sheet-Pxdj2d0O.js} +1 -1
- package/dist/client/assets/{shell-layout-UF80oiAz.js → shell-layout-QosKplaT.js} +1 -1
- package/dist/client/assets/{site-draft-actions-FVwQt-Zd.js → site-draft-actions-Bxva0RSH.js} +1 -1
- package/dist/client/assets/{site-draft-view-BVBNZFVO.js → site-draft-view-M1Il2kqL.js} +1 -1
- package/dist/client/assets/site-editor-DYrDnKz_.js +1 -0
- package/dist/client/assets/{site-editor-toast-Dq7SmLyr.js → site-editor-toast-CrbeZn6P.js} +1 -1
- package/dist/client/assets/{skills-Cpr_vZ7G.js → skills-CUWgKy0E.js} +1 -1
- package/dist/client/assets/{slider-Cqj9bgcu.js → slider-KVowhu1X.js} +1 -1
- package/dist/client/assets/{sortable.esm-CKl9Rez4.js → sortable.esm-7FlxfWzb.js} +1 -1
- package/dist/client/assets/{sso-SC-6fSYF.js → sso-D5twWf58.js} +1 -1
- package/dist/client/assets/{suggestion-aR93AXr2.js → suggestion-BWmLdQzE.js} +1 -1
- package/dist/client/assets/{super-agent-icon-JEja25un.js → super-agent-icon-DwVmJcOh.js} +1 -1
- package/dist/client/assets/{switch-B81oLbqr.js → switch-DmUfhYv8.js} +1 -1
- package/dist/client/assets/{synced-repos-DXCIbAbx.js → synced-repos-w3dN8PI3.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CYp2YuI5.js → tab-icon-glyph-DNNpPJD_.js} +1 -1
- package/dist/client/assets/{table-C3AdbrSy.js → table-ChRYMP7V.js} +1 -1
- package/dist/client/assets/{tabs-nQ7_UOyl.js → tabs-D1pIsKf-.js} +1 -1
- package/dist/client/assets/{task-board-i6qU2BVR.js → task-board-CPddzIYx.js} +1 -1
- package/dist/client/assets/{task-key-Bt60Ndov.js → task-key-DGmmZLdt.js} +1 -1
- package/dist/client/assets/{task-route-C3cK6F8S.js → task-route-Liu6_wqZ.js} +1 -1
- package/dist/client/assets/{task-status-DYgcNbkh.js → task-status-cOvo4PcH.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BQ6MoPkZ.js → taskboard-analytics-BHl40x8X.js} +1 -1
- package/dist/client/assets/tasks-C30GnPFP.js +1 -0
- package/dist/client/assets/{tasks-BHVyL8aT.js → tasks-CvkxtEEX.js} +1 -1
- package/dist/client/assets/{textarea-viSdm6BE.js → textarea-DC3xQ4kD.js} +1 -1
- package/dist/client/assets/{thread-analytics-Cpl3jv6S.js → thread-analytics-BsHxxDsM.js} +1 -1
- package/dist/client/assets/{thread-button-CP83i3PG.js → thread-button-D8oOd41X.js} +1 -1
- package/dist/client/assets/{thread-intent-DyZ5A9F9.js → thread-intent-BZwSTfDM.js} +1 -1
- package/dist/client/assets/{thread-route-CfpvvkkL.js → thread-route-CribnvTi.js} +1 -1
- package/dist/client/assets/{thread-route-BbVh3366.js → thread-route-MzzeID9Y.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CC8y_ZHb.js → thread-sheet-body-BQzD5AWr.js} +1 -1
- package/dist/client/assets/{time-range-picker-BJPUtKv4.js → time-range-picker-DNIa2d1D.js} +1 -1
- package/dist/client/assets/{toggle-group-yQeAFu4u.js → toggle-group-DqIO3xhJ.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CRKf3QUk.js → tool-set-selector-CedFcxd_.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Cz-oOJ1w.js → toolbar-icon-button-eUQSTQah.js} +1 -1
- package/dist/client/assets/{tooltip-Bm0P1gm_.js → tooltip-DYmV7IKp.js} +1 -1
- package/dist/client/assets/{tooltipContext-CSDtg0Lk.js → tooltipContext-DExPDlKY.js} +1 -1
- package/dist/client/assets/{track-DLNDfCEf.js → track-BwWO50h9.js} +1 -1
- package/dist/client/assets/{types-5-cDe_8u.js → types-BBakUXnY.js} +1 -1
- package/dist/client/assets/{url-slug-CII_0B7H.js → url-slug-DknilYmx.js} +1 -1
- package/dist/client/assets/{usage-stats-B0_Yl-r0.js → usage-stats-t4V02j9N.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Ct2xvYDX.js → use-ai-providers-VQuGkvuK.js} +1 -1
- package/dist/client/assets/{use-api-keys-BXqgEl25.js → use-api-keys-BCPR68HV.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BXltW_Uu.js → use-apply-named-rule-FQGd_Vnf.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-BPbojgrJ.js +1 -0
- package/dist/client/assets/{use-automations-BF2lxi1L.js → use-automations-ByO0cXfT.js} +1 -1
- package/dist/client/assets/{use-autosave-3MAlhbEw.js → use-autosave-C83hehEW.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-CV41gxs6.js +1 -0
- package/dist/client/assets/use-blog-view-C4BF45dq.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-Im_c7sw4.js → use-chat-layout-state-B55AouCR.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BWS3AiLQ.js → use-cms-publish-actions-EoujoXA7.js} +1 -1
- package/dist/client/assets/{use-connect-companion-6TAp--e4.js → use-connect-companion-B8K_-DvZ.js} +1 -1
- package/dist/client/assets/{use-connection-CcG4QE1K.js → use-connection-CUy-xLIl.js} +1 -1
- package/dist/client/assets/{use-content-sync-GJv8DmEo.js → use-content-sync-BwBZP4y2.js} +1 -1
- package/dist/client/assets/{use-copy-DT4_uVrH.js → use-copy-DvMjk4g7.js} +1 -1
- package/dist/client/assets/{use-current-view-DBmQQ8uy.js → use-current-view-HnFTmU9v.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CloMwBOl.js → use-date-fns-locale-ceip-git.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CCeLz8XW.js → use-debounced-autosave-BoNppgIU.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DO5dvp6c.js → use-debounced-value-KPsBBvnW.js} +1 -1
- package/dist/client/assets/{use-deco-credits-yGgE3j79.js → use-deco-credits-CSPSqfW2.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-43RPCkUH.js → use-decopilot-events-Dp80DKWc.js} +1 -1
- package/dist/client/assets/{use-delete-block-BDYGRW7T.js → use-delete-block-fqyzRlTE.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D6MGPJka.js → use-delete-connection-Dvk3Wy7z.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Cr4LWHG9.js → use-deployment-admin-By6tjKPo.js} +1 -1
- package/dist/client/assets/{use-entitlements-Gn1rhCN5.js → use-entitlements-CRiiW0Ty.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CpggWNTk.js → use-fast-preview-draft-url-Bh44rhn-.js} +1 -1
- package/dist/client/assets/{use-file-configs-3gwPBXwK.js → use-file-configs-C_DEjZAQ.js} +1 -1
- package/dist/client/assets/{use-id-selection-DNp_iXDg.js → use-id-selection-Belb2rfS.js} +1 -1
- package/dist/client/assets/{use-in-settings-CFQ9B3W2.js → use-in-settings-Ds8usasB.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CbqA9xw0.js → use-inbox-feed-CfBhUhGf.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DdrDrAAo.js → use-infinite-scroll-pAJ-NZfq.js} +1 -1
- package/dist/client/assets/{use-join-requests-CNlmT1He.js → use-join-requests-JT4I46ul.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BmILT_Hf.js → use-main-panel-tabs-CU0aoHts.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-6sC2vB74.js → use-mcp-auth-status-DCSDGaY_.js} +1 -1
- package/dist/client/assets/{use-mcp-client-2MG3LveS.js → use-mcp-client-B5JTQMVF.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-qJSiAdA5.js → use-mcp-prompts-D3RJs61Z.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DOqvKogJ.js → use-mcp-tools-7XyHGVuM.js} +1 -1
- package/dist/client/assets/{use-mobile-C_hdQY5I.js → use-mobile-Cxqkr89j.js} +1 -1
- package/dist/client/assets/{use-move-blocks-Bu_TrzH9.js → use-move-blocks-CjALA5E-.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Cw8_3uU5.js → use-navigate-to-agent-Cy044LGE.js} +1 -1
- package/dist/client/assets/{use-never-published-BJeGnEQC.js → use-never-published-DKVrO9Fz.js} +1 -1
- package/dist/client/assets/{use-org-fs-D9dHgOYs.js → use-org-fs-D9kszJK9.js} +1 -1
- package/dist/client/assets/{use-org-notice-Bg0zOPPj.js → use-org-notice-BSoYdwdc.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DXtQY1Ns.js → use-org-repo-syncs-BhplYhch.js} +1 -1
- package/dist/client/assets/{use-org-sso-_fzcS8V-.js → use-org-sso-DDfxRFLL.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C2vcrj4S.js → use-organization-settings-D8_Njnyg.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-0z93k6Ut.js → use-panel-navigate-D9ieVXpG.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-C7OB-luC.js → use-project-native-view-presence-CaK_AzvE.js} +1 -1
- package/dist/client/assets/{use-project-scope-BwqdbGG4.js → use-project-scope-BLihvveC.js} +1 -1
- package/dist/client/assets/{use-recent-apps-DlYlQGYK.js → use-recent-apps-Cf_IB5VO.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CHQxra4V.js → use-reports-diagnostic-CxRB3R7t.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-E6fWuIsO.js → use-sandbox-events-B9CrJt6X.js} +1 -1
- package/dist/client/assets/{use-secrets-BUuPyfGX.js → use-secrets-DQrNAHyc.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CWHJYT12.js → use-section-preview-base-BmbnGqvi.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Cy-mIzeN.js → use-sidebar-collapsed-DKziyQyh.js} +1 -1
- package/dist/client/assets/{use-tags-FRfDz-by.js → use-tags-DFNPI-_9.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-ByUFAA_6.js → use-task-board-analytics-Dw2MVAWU.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-B5FCM085.js → use-task-board-item-prs-BdeOpro_.js} +1 -1
- package/dist/client/assets/{use-task-board-items-D2aUd0HA.js → use-task-board-items-CAFOUh-y.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BVOJS_Xo.js → use-task-board-prompts-DoescETa.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DZBgcb3y.js → use-task-metadata-AfaoAPwY.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BK5BfLdO.js → use-thread-outputs-DYJmVZ0o.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-BopwZu5H.js → use-view-draft-kind-DWEZysa7.js} +1 -1
- package/dist/client/assets/{use-voice-input-BMrsODyI.js → use-voice-input-K-QnknSk.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-WJMtMZUx.js +1 -0
- package/dist/client/assets/{useQueries-GZbpaWZ_.js → useQueries-CVZsMPDg.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BRE1On0y.js +1 -0
- package/dist/client/assets/{users-C3Vmpzra.js → users-Copcx2P0.js} +1 -1
- package/dist/client/assets/{utils-COdvgYqW.js → utils-gb2MtXZ_.js} +1 -1
- package/dist/client/assets/{variant-calendar-C0eDQjQb.js → variant-calendar-DHgF2J_f.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-BAo9iF1F.js → variant-matcher-override-BEQD0bbw.js} +1 -1
- package/dist/client/assets/{view-header-CGFYM1jX.js → view-header-5RylsBm-.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CAb2l-zV.js → virtual-mcp-hWRelxCQ.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DdfLfQcH.js → watch-sse-pool-DGAi3LqT.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BjFocMRF.js +0 -1
- package/dist/client/assets/agent-business-case-D7hulp28.js +0 -1
- package/dist/client/assets/agent-deck-Bo3utH19.js +0 -1
- package/dist/client/assets/agent-experiments-DmxiioQQ.js +0 -1
- package/dist/client/assets/agent-file-DP9sslio.js +0 -1
- package/dist/client/assets/agent-library-BXulc_Yl.js +0 -1
- package/dist/client/assets/agent-library-file-VKoA-2Ab.js +0 -1
- package/dist/client/assets/agent-overview-C34bZy3e.js +0 -1
- package/dist/client/assets/agent-settings-C7Xi7GQ8.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BARMlQvm.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DzffF50u.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Cb3Jb0dL.js +0 -1
- package/dist/client/assets/agent-view-D1SswljO.js +0 -1
- package/dist/client/assets/api-keys-CyfopOCZ.js +0 -1
- package/dist/client/assets/library-DKz4y7U8.js +0 -1
- package/dist/client/assets/plan-BjkLd82J.js +0 -1
- package/dist/client/assets/plan-page-CqrnghH1.js +0 -6
- package/dist/client/assets/project-reports-B_rUnWW1.js +0 -1
- package/dist/client/assets/project-tasks-em-dO97Z.js +0 -1
- package/dist/client/assets/record-editor-EDBIJjSW.js +0 -1
- package/dist/client/assets/reports-Bll5rys5.js +0 -1
- package/dist/client/assets/repositories-V5ZADqdz.js +0 -1
- package/dist/client/assets/route-BByW4wWq.js +0 -1
- package/dist/client/assets/settings-tab-DiVoBlPy.js +0 -1
- package/dist/client/assets/site-editor-C1tqJ8tH.js +0 -1
- package/dist/client/assets/tasks-DCmQbZqA.js +0 -1
- package/dist/client/assets/use-ask-in-chat-DiwquGLH.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BPvEDyS9.js +0 -1
- package/dist/client/assets/use-blog-view-DMfZjkz0.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Ypmdjx1e.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Pk4rU2Ft.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-ztdGKvBm.js";import{ChatLayout as us}from"./index-Co7YBLf6.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-BYWtutu9.js";import{n as kt}from"./BookOpen01-DU-B3R7s.js";import{t as rt}from"./ChevronDown-XsLJSrfl.js";import{f as ys}from"./UserSquare-CafFh5_d.js";import{s as Tt}from"./File02-DaYek2y9.js";import{f as lt,b as Ot,t as zt}from"./Tool01-BCJ5kyrz.js";import{a as bs}from"./Image01-BcIZ5mtf.js";import{i as vs}from"./SearchMd-BD2qldmS.js";import{B as Kt}from"./badge-DcUertOZ.js";import{C as Ft}from"./checkbox-QUuOza1H.js";import{S as ct}from"./switch-B81oLbqr.js";import{a as Mt,b as Rt,P as Lt}from"./popover-C4oz5B-L.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-C3tlrKUq.js";import{g as ws,a as _s}from"./gateway-client-B4qzR3sF.js";import{b as dt}from"./use-connection-CcG4QE1K.js";import{u as Ds}from"./use-mcp-client-2MG3LveS.js";import{u as Is}from"./use-mcp-tools-DOqvKogJ.js";import{I as Ps}from"./integration-icon-Bo-3z9o3.js";import{M as As}from"./select-model-ocp0molk.js";import{u as $s}from"./use-ai-providers-Ct2xvYDX.js";import{U as Es,b as Os}from"./build-improve-prompt-doc-BBeWkVDi.js";import{a as ve,c as zs,d as Ks}from"./use-automations-BF2lxi1L.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-DFEln8mI.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-CadTVXY4.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-Bm0P1gm_.js";import{u as Js}from"./shell-layout-UF80oiAz.js";import{i as Vt}from"./ArrowLeft-B0PZnf1E.js";import{i as Xs}from"./ArrowUp-D5DDc3Cp.js";import{s as Me}from"./UserCheck01-k-4bTA2h.js";import{s as Qs}from"./Trash01-BxBhF2b8.js";import{s as mt}from"./XClose-CmTuu4UN.js";import{u as _t}from"./use-debounced-autosave-CCeLz8XW.js";import{T as Ys,a as Zs}from"./input-aLblPHPG.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-CucNVYe0.js";import{s as to}from"./Plus-DWySsEmB.js";import{i as ut}from"./Zap-CBJ7My90.js";import{l as We,H as so}from"./config-LEYSFIMn.js";import{C as oo}from"./task-board-i6qU2BVR.js";import{M as Wt}from"./multi-select-DT2CaFLR.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-CxXZwsSr.js";import{b as ao,a as no,T as Dt}from"./tabs-nQ7_UOyl.js";import{MonacoCodeEditor as io}from"./monaco-editor-CLzWWWtl.js";import{A as ro}from"./automation-runs-Dto_jEAs.js";import{C as lo}from"./collection-tabs-Cju2BOrS.js";import{a as co}from"./use-panel-navigate-0z93k6Ut.js";import"./use-mobile-C_hdQY5I.js";import"./MessageCircle01-BG1RhOiZ.js";import"./thread-button-CP83i3PG.js";import"./use-sidebar-collapsed-Cy-mIzeN.js";import"./sheet-C-umRrOH.js";import"./use-chat-layout-state-Im_c7sw4.js";import"./toolbar-icon-button-Cz-oOJ1w.js";import"./use-in-settings-CFQ9B3W2.js";import"./resizable-DNBx7bMi.js";import"./route-page-header-CApA0aIo.js";import"./LayoutLeft-DDtN-od-.js";import"./use-project-scope-BwqdbGG4.js";import"./repository-binding-D_Xc1yRH.js";import"./use-current-view-DBmQQ8uy.js";import"./thread-route-CfpvvkkL.js";import"./index-CDQbtG2e.js";import"./auth-C82OPjUx.js";import"./AlertCircle-BlMH0XE7.js";import"./ArrowRight-mzMrxxYI.js";import"./Globe04-CeAQ1YNm.js";import"./CheckCircle-DZ8MNpCP.js";import"./ChevronSelectorVertical-CB0fn1Nq.js";import"./ChevronUp-BQktpZWC.js";import"./LinkBroken01-DfUhihLM.js";import"./CreditCard01-MY4ouqtl.js";import"./SwitchHorizontal01-CMdpIiQk.js";import"./Eye-kjjhS0vP.js";import"./Fingerprint04-B2fDIuT8.js";import"./Key01-CaJGjh13.js";import"./Minus-hZzPDO0w.js";import"./Monitor01-DMFbvudn.js";import"./Sun-O9TdKcV_.js";import"./Play-BCFOaioW.js";import"./ShoppingBag01-BbjW7cod.js";import"./Upload01-q-rKSvZf.js";import"./Users01-DM58_gUL.js";import"./index-DMpANy5-.js";import"./drawer-CROtV2u4.js";import"./index-CJKec1wg.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-Gn1rhCN5.js";import"./use-view-draft-kind-BopwZu5H.js";import"./use-blog-view-DMfZjkz0.js";import"./use-organization-settings-C2vcrj4S.js";import"./schema-Bb-DbvPZ.js";import"./thread-intent-DyZ5A9F9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DdfLfQcH.js";import"./session-runtime-DBl1Hlcw.js";import"./use-decopilot-events-43RPCkUH.js";import"./use-org-fs-D9dHgOYs.js";import"./useInfiniteQuery-Ypmdjx1e.js";import"./infiniteQueryObserver-C3KEOANj.js";import"./use-deployment-admin-Cr4LWHG9.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-Bg0zOPPj.js";import"./project-icon-fQqckccl.js";import"./use-navigate-to-agent-Cw8_3uU5.js";import"./use-debounced-value-DO5dvp6c.js";import"./new-project-dialog-BW6Lh52P.js";import"./label-8UxgpYiA.js";import"./repository-picker-CSaozawA.js";import"./github-icon-Bq9Ot22_.js";import"./collection-search-DkVgkcUC.js";import"./new-project-store-DID5OVrt.js";import"./legacy-admin-welcome-dialog-plmLACwz.js";import"./required-auth-layout-Cwtu4iIe.js";import"./use-org-sso-_fzcS8V-.js";import"./suggestion-aR93AXr2.js";import"./usage-stats-B0_Yl-r0.js";import"./utils-CVEq3hMx.js";import"./markdown-CJR_ooUO.js";import"./use-copy-DT4_uVrH.js";import"./form-DlZ0KMAb.js";import"./use-mcp-prompts-qJSiAdA5.js";import"./task-key-Bt60Ndov.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-ipOJFDhA.js";import"./table-C3AdbrSy.js";import"./empty-state-I_cTbW85.js";import"./use-id-selection-DNp_iXDg.js";import"./use-infinite-scroll-DdrDrAAo.js";import"./task-status-DYgcNbkh.js";import"./thread-sheet-body-CC8y_ZHb.js";import"./useSuspenseInfiniteQuery-Pk4rU2Ft.js";import"./pair-DmyTA2cC.js";import"./use-task-board-items-D2aUd0HA.js";import"./task-route-C3cK6F8S.js";import"./project-index-C2IrSomv.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DU6s3Olv.js";import"./types-5-cDe_8u.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-BK5BfLdO.js";import"./file-type-icon-CdjLDWdN.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-DmMMRYj8.js";import{ChatLayout as us}from"./index-DRjUDdC5.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-POwFjNIx.js";import{n as kt}from"./BookOpen01-BDifdMkT.js";import{t as rt}from"./ChevronDown-DrncqTUe.js";import{f as ys}from"./UserSquare-BbR7Ffob.js";import{s as Tt}from"./File02-C56z6MkD.js";import{f as lt,b as Ot,t as zt}from"./Tool01-BLv3y71t.js";import{a as bs}from"./Image01-CgFR6A2M.js";import{i as vs}from"./SearchMd-fabFdd5s.js";import{B as Kt}from"./badge-mppOhsx3.js";import{C as Ft}from"./checkbox-hBxFVjXU.js";import{S as ct}from"./switch-DmUfhYv8.js";import{a as Mt,b as Rt,P as Lt}from"./popover-LZpi0uxx.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-Ciz1JHkm.js";import{g as ws,a as _s}from"./gateway-client-BePk_av3.js";import{b as dt}from"./use-connection-CUy-xLIl.js";import{u as Ds}from"./use-mcp-client-B5JTQMVF.js";import{u as Is}from"./use-mcp-tools-7XyHGVuM.js";import{I as Ps}from"./integration-icon-BRzNeX56.js";import{M as As}from"./select-model-Ck_OMznE.js";import{u as $s}from"./use-ai-providers-VQuGkvuK.js";import{U as Es,b as Os}from"./build-improve-prompt-doc-DhcIyUwj.js";import{a as ve,c as zs,d as Ks}from"./use-automations-ByO0cXfT.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-DmELouH7.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-DXtfFhlw.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-DYmV7IKp.js";import{u as Js}from"./shell-layout-QosKplaT.js";import{i as Vt}from"./ArrowLeft-libxJleO.js";import{i as Xs}from"./ArrowUp-BrwXO1vC.js";import{s as Me}from"./UserCheck01-C1rHQW2k.js";import{s as Qs}from"./Trash01-D5Busco0.js";import{s as mt}from"./XClose-B_RBcQBR.js";import{u as _t}from"./use-debounced-autosave-BoNppgIU.js";import{T as Ys,a as Zs}from"./input-Cnr_4F97.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-CvpiGC68.js";import{s as to}from"./Plus-xfIPbM98.js";import{i as ut}from"./Zap-8DRTlEOL.js";import{l as We,H as so}from"./config-BvgPav17.js";import{C as oo}from"./task-board-CPddzIYx.js";import{M as Wt}from"./multi-select-DjE5uJfk.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-4fwa0N-w.js";import{b as ao,a as no,T as Dt}from"./tabs-D1pIsKf-.js";import{MonacoCodeEditor as io}from"./monaco-editor-09zfrzgi.js";import{A as ro}from"./automation-runs-6_BJs58h.js";import{C as lo}from"./collection-tabs-DpX5t3nl.js";import{a as co}from"./use-panel-navigate-D9ieVXpG.js";import"./use-mobile-Cxqkr89j.js";import"./MessageCircle01-KvJTlsBi.js";import"./thread-button-D8oOd41X.js";import"./use-sidebar-collapsed-DKziyQyh.js";import"./sheet-Pxdj2d0O.js";import"./use-chat-layout-state-B55AouCR.js";import"./toolbar-icon-button-eUQSTQah.js";import"./use-in-settings-Ds8usasB.js";import"./resizable-BRdUguHL.js";import"./route-page-header-DW5bo48I.js";import"./LayoutLeft-CLd6bB7k.js";import"./use-project-scope-BLihvveC.js";import"./repository-binding-CnqOEzD9.js";import"./use-current-view-HnFTmU9v.js";import"./thread-route-CribnvTi.js";import"./index-DEQvBvbs.js";import"./auth-JFQg8ioC.js";import"./AlertCircle-ChqjWH7E.js";import"./ArrowRight-BRk4Hran.js";import"./Globe04-BrRHVGNQ.js";import"./CheckCircle-BS4u7GKL.js";import"./ChevronSelectorVertical-DLti285g.js";import"./ChevronUp-Cx0YNXAN.js";import"./LinkBroken01-D_QfcXMB.js";import"./CreditCard01-CvuDODOT.js";import"./SwitchHorizontal01-COUdvBDy.js";import"./Eye-CvCTiG93.js";import"./Fingerprint04-6YzZ_jju.js";import"./Key01-q8HY_RxB.js";import"./Minus-DqjfoGpn.js";import"./Monitor01-Bo9f-OEj.js";import"./Sun-MaW22nKk.js";import"./Play-BAVhlZkP.js";import"./ShoppingBag01-CCFPuM9g.js";import"./Upload01-C-SD6gLx.js";import"./Users01-FBsoQxPP.js";import"./index-BdaeGs2y.js";import"./drawer-BDbenm6L.js";import"./index-BpPRg9nw.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-CRiiW0Ty.js";import"./use-view-draft-kind-DWEZysa7.js";import"./use-blog-view-C4BF45dq.js";import"./use-organization-settings-D8_Njnyg.js";import"./schema-VYa9v4uK.js";import"./thread-intent-BZwSTfDM.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DGAi3LqT.js";import"./session-runtime-Bxzg28T1.js";import"./use-decopilot-events-Dp80DKWc.js";import"./use-org-fs-D9kszJK9.js";import"./useInfiniteQuery-WJMtMZUx.js";import"./infiniteQueryObserver-Cu2d4hqm.js";import"./use-deployment-admin-By6tjKPo.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BSoYdwdc.js";import"./project-icon-CGh1cNL8.js";import"./use-navigate-to-agent-Cy044LGE.js";import"./use-debounced-value-KPsBBvnW.js";import"./new-project-dialog-C2fYVAcy.js";import"./label-C3f-p2GO.js";import"./repository-picker-uXEId6yP.js";import"./github-icon-DIDixxLk.js";import"./collection-search-CsMQtGxI.js";import"./new-project-store-ojiemp_1.js";import"./legacy-admin-welcome-dialog-CBmPazsM.js";import"./required-auth-layout-XZ2_RXTi.js";import"./use-org-sso-DDfxRFLL.js";import"./suggestion-BWmLdQzE.js";import"./usage-stats-t4V02j9N.js";import"./utils-CVEq3hMx.js";import"./markdown-Cny0I0ZM.js";import"./use-copy-DvMjk4g7.js";import"./form-CXf17HmA.js";import"./use-mcp-prompts-D3RJs61Z.js";import"./task-key-DGmmZLdt.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-ByNhS1TQ.js";import"./table-ChRYMP7V.js";import"./empty-state-Br5iA0PL.js";import"./use-id-selection-Belb2rfS.js";import"./use-infinite-scroll-pAJ-NZfq.js";import"./task-status-cOvo4PcH.js";import"./thread-sheet-body-BQzD5AWr.js";import"./useSuspenseInfiniteQuery-BRE1On0y.js";import"./pair-BTGgcS15.js";import"./use-task-board-items-CAFOUh-y.js";import"./task-route-Liu6_wqZ.js";import"./project-index-q7fIaoJ4.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Xp8aIExP.js";import"./types-BBakUXnY.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-DYJmVZ0o.js";import"./file-type-icon-DBhVFkcQ.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-DmMMRYj8.js";import{ChatLayout as W}from"./index-DRjUDdC5.js";import{s as X}from"./Plus-xfIPbM98.js";import{a as Y}from"./UserCheck01-C1rHQW2k.js";import{i as F}from"./Zap-8DRTlEOL.js";import{S as Z}from"./search-input-D8Ti2Kj4.js";import{E as $}from"./empty-state-Br5iA0PL.js";import{u as tt,a as et,b as it}from"./use-automations-ByO0cXfT.js";import{a as ot}from"./use-panel-navigate-D9ieVXpG.js";import{A as st}from"./automation-list-row-B72fIuba.js";import{c as nt}from"./thread-route-CribnvTi.js";import"./use-mobile-Cxqkr89j.js";import"./tooltip-DYmV7IKp.js";import"./index-DEQvBvbs.js";import"./MessageCircle01-KvJTlsBi.js";import"./XClose-B_RBcQBR.js";import"./thread-button-D8oOd41X.js";import"./use-sidebar-collapsed-DKziyQyh.js";import"./sheet-Pxdj2d0O.js";import"./use-chat-layout-state-B55AouCR.js";import"./toolbar-icon-button-eUQSTQah.js";import"./use-in-settings-Ds8usasB.js";import"./resizable-BRdUguHL.js";import"./route-page-header-DW5bo48I.js";import"./LayoutLeft-CLd6bB7k.js";import"./use-project-scope-BLihvveC.js";import"./repository-binding-CnqOEzD9.js";import"./use-mcp-client-B5JTQMVF.js";import"./auth-JFQg8ioC.js";import"./use-current-view-HnFTmU9v.js";import"./SearchMd-fabFdd5s.js";import"./badge-mppOhsx3.js";import"./SwitchHorizontal01-COUdvBDy.js";import"./Trash01-D5Busco0.js";import"./agent-icon-POwFjNIx.js";import"./AlertCircle-ChqjWH7E.js";import"./Tool01-BLv3y71t.js";import"./ArrowUp-BrwXO1vC.js";import"./ArrowLeft-libxJleO.js";import"./ArrowRight-BRk4Hran.js";import"./BookOpen01-BDifdMkT.js";import"./Globe04-BrRHVGNQ.js";import"./CheckCircle-BS4u7GKL.js";import"./ChevronDown-DrncqTUe.js";import"./ChevronSelectorVertical-DLti285g.js";import"./ChevronUp-Cx0YNXAN.js";import"./UserSquare-BbR7Ffob.js";import"./LinkBroken01-D_QfcXMB.js";import"./CreditCard01-CvuDODOT.js";import"./File02-C56z6MkD.js";import"./Eye-CvCTiG93.js";import"./Fingerprint04-6YzZ_jju.js";import"./Image01-CgFR6A2M.js";import"./Key01-q8HY_RxB.js";import"./Minus-DqjfoGpn.js";import"./Monitor01-Bo9f-OEj.js";import"./Sun-MaW22nKk.js";import"./Play-BAVhlZkP.js";import"./ShoppingBag01-CCFPuM9g.js";import"./Upload01-C-SD6gLx.js";import"./Users01-FBsoQxPP.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-ztdGKvBm.js";import{ChatLayout as Re}from"./index-Co7YBLf6.js";import{S as Te}from"./site-draft-actions-FVwQt-Zd.js";import{F as $e}from"./feature-gate-DMrFeUy1.js";import{i as ne}from"./File02-DaYek2y9.js";import{s as Ie}from"./Plus-DWySsEmB.js";import{s as Le,a as Ke}from"./UserSquare-CafFh5_d.js";import{c as ce}from"./UserCheck01-k-4bTA2h.js";import{t as me}from"./Users01-DM58_gUL.js";import{S as Ve}from"./scroll-area-Dm3EbBj1.js";import{T as Me,a as Fe,c as Oe}from"./tooltip-Bm0P1gm_.js";import{u as ze,a as Ge,d as Qe}from"./delete-copy-DdlDdNyl.js";import{u as Ue,a as We,k as Z}from"./use-never-published-BJeGnEQC.js";import{u as qe}from"./use-delete-block-BDYGRW7T.js";import{d as He,f as Je}from"./site-editor-toast-Dq7SmLyr.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-BDi0HvuM.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-DGOo1BAt.js";import{u as ht}from"./primitives-BbUqWJzg.js";import{F as xt}from"./agent-icon-BYWtutu9.js";import{B as bt,a as yt}from"./blog-source-gate-BIpZ68Ul.js";import{r as vt}from"./use-panel-navigate-0z93k6Ut.js";import{c as kt}from"./thread-route-CfpvvkkL.js";import{A as Ct}from"./agent-view-guard-Du9KtXiN.js";import{a as jt}from"./blog-view-gate-D2LovAn5.js";import"./use-mobile-C_hdQY5I.js";import"./MessageCircle01-BG1RhOiZ.js";import"./XClose-CmTuu4UN.js";import"./thread-button-CP83i3PG.js";import"./use-sidebar-collapsed-Cy-mIzeN.js";import"./sheet-C-umRrOH.js";import"./use-chat-layout-state-Im_c7sw4.js";import"./toolbar-icon-button-Cz-oOJ1w.js";import"./use-in-settings-CFQ9B3W2.js";import"./resizable-DNBx7bMi.js";import"./route-page-header-CApA0aIo.js";import"./LayoutLeft-DDtN-od-.js";import"./use-project-scope-BwqdbGG4.js";import"./repository-binding-D_Xc1yRH.js";import"./use-mcp-client-2MG3LveS.js";import"./auth-C82OPjUx.js";import"./use-current-view-DBmQQ8uy.js";import"./separator-BQ6pXQbe.js";import"./chat-context-DFEln8mI.js";import"./use-view-draft-kind-BopwZu5H.js";import"./use-blog-view-DMfZjkz0.js";import"./use-organization-settings-C2vcrj4S.js";import"./schema-Bb-DbvPZ.js";import"./task-board-i6qU2BVR.js";import"./thread-intent-DyZ5A9F9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DdfLfQcH.js";import"./session-runtime-DBl1Hlcw.js";import"./use-entitlements-Gn1rhCN5.js";import"./use-ai-providers-Ct2xvYDX.js";import"./use-decopilot-events-43RPCkUH.js";import"./use-org-fs-D9dHgOYs.js";import"./useInfiniteQuery-Ypmdjx1e.js";import"./infiniteQueryObserver-C3KEOANj.js";import"./use-org-notice-Bg0zOPPj.js";import"./popover-C4oz5B-L.js";import"./command-C3tlrKUq.js";import"./index-DMpANy5-.js";import"./SearchMd-BD2qldmS.js";import"./tabs-nQ7_UOyl.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-XsLJSrfl.js";import"./SwitchHorizontal01-CMdpIiQk.js";import"./Tool01-BCJ5kyrz.js";import"./Trash01-BxBhF2b8.js";import"./use-voice-input-BMrsODyI.js";import"./drawer-CROtV2u4.js";import"./index-CJKec1wg.js";import"./checkbox-QUuOza1H.js";import"./Minus-hZzPDO0w.js";import"./select-CxXZwsSr.js";import"./index-BdQq_4o_.js";import"./index-CDQbtG2e.js";import"./ChevronUp-BQktpZWC.js";import"./ArrowLeft-B0PZnf1E.js";import"./ChevronSelectorVertical-CB0fn1Nq.js";import"./Key01-CaJGjh13.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-DMFbvudn.js";import"./AlertCircle-BlMH0XE7.js";import"./Eye-kjjhS0vP.js";import"./Image01-BcIZ5mtf.js";import"./use-debounced-value-DO5dvp6c.js";import"./shell-layout-UF80oiAz.js";import"./Globe04-CeAQ1YNm.js";import"./use-deployment-admin-Cr4LWHG9.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-DZ8MNpCP.js";import"./Zap-CBJ7My90.js";import"./integration-icon-Bo-3z9o3.js";import"./LinkBroken01-DfUhihLM.js";import"./project-icon-fQqckccl.js";import"./use-navigate-to-agent-Cw8_3uU5.js";import"./new-project-dialog-BW6Lh52P.js";import"./label-8UxgpYiA.js";import"./repository-picker-CSaozawA.js";import"./github-icon-Bq9Ot22_.js";import"./collection-search-DkVgkcUC.js";import"./BookOpen01-DU-B3R7s.js";import"./ShoppingBag01-BbjW7cod.js";import"./new-project-store-DID5OVrt.js";import"./legacy-admin-welcome-dialog-plmLACwz.js";import"./required-auth-layout-Cwtu4iIe.js";import"./use-org-sso-_fzcS8V-.js";import"./cms-store-drafts-_66Q7KaS.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-CAb2l-zV.js";import"./url-slug-CII_0B7H.js";import"./use-blocks-v8-project-BPvEDyS9.js";import"./content-changes-BFwm7dNe.js";import"./use-fast-preview-draft-url-CpggWNTk.js";import"./blocks-tab-states-8lUCpJRf.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-I_cTbW85.js";import"./index-5erPNBmj.js";import"./ArrowUp-D5DDc3Cp.js";import"./input-B2QsYffT.js";import"./usage-stats-B0_Yl-r0.js";import"./utils-CVEq3hMx.js";import"./markdown-CJR_ooUO.js";import"./use-copy-DT4_uVrH.js";import"./gateway-client-B4qzR3sF.js";import"./form-DlZ0KMAb.js";import"./icon-button-BH8Qviy5.js";import"./file-type-icon-CdjLDWdN.js";import"./chat-draft-DNEqrl5p.js";import"./ArrowRight-mzMrxxYI.js";import"./Upload01-q-rKSvZf.js";import"./use-deco-credits-yGgE3j79.js";import"./toggle-group-yQeAFu4u.js";import"./input-aLblPHPG.js";import"./suggestion-aR93AXr2.js";import"./use-mcp-prompts-qJSiAdA5.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DL1BXqDM.js";import"./plan-ladder-C3ogU-RT.js";import"./add-connection-dialog-CS6ZsWUV.js";import"./extract-connection-data-DjYTV7t7.js";import"./metadata-D72DunRR.js";import"./connection-C8I8wKeO.js";import"./connection-card-CTJwLo8p.js";import"./connection-slug-BNBBglpK.js";import"./textarea-viSdm6BE.js";import"./use-connection-CcG4QE1K.js";import"./schema-D_OZwHJO.js";import"./connection-form-helpers-BjSA2uCL.js";import"./authenticate-and-persist-oauth-87e1Ix6y.js";import"./mcp-oauth-BBSVAQ62.js";import"./mcp-oauth-Alln4VX8.js";import"./collection-tabs-Cju2BOrS.js";import"./badge-DcUertOZ.js";import"./use-infinite-scroll-DdrDrAAo.js";import"./useSuspenseInfiniteQuery-Pk4rU2Ft.js";import"./use-task-board-items-D2aUd0HA.js";import"./pair-DmyTA2cC.js";import"./collapsible-CadTVXY4.js";import"./task-key-Bt60Ndov.js";import"./config-LEYSFIMn.js";import"./task-route-C3cK6F8S.js";import"./project-index-C2IrSomv.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DU6s3Olv.js";import"./types-5-cDe_8u.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-BK5BfLdO.js";import"./agent-capabilities-CyWfHGWp.js";import"./use-cms-publish-actions-BWS3AiLQ.js";import"./use-content-sync-GJv8DmEo.js";import"./sandbox-git-api-BsG4EzUP.js";import"./utils-COdvgYqW.js";import"./device-hint-B3WnBHYf.js";import"./alert-CxbB9CEj.js";import"./section-array-field-uECXIzc8.js";import"./editor-ipOJFDhA.js";import"./save-changes-debug-nBi-n9eV.js";import"./use-sandbox-events-E6fWuIsO.js";import"./sandbox-lifecycle-context-DbNrw8-a.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-BL01DXCf.js";import"./hosted-reconcile-rjhKNGnc.js";import"./search-input-BQ8Dp8aD.js";import"./use-file-configs-3gwPBXwK.js";import"./asset-utils-DP9aQr9Q.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-DM4xv3sa.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-CLzWWWtl.js";import"./Play-BCFOaioW.js";import"./use-move-blocks-Bu_TrzH9.js";import"./CreditCard01-MY4ouqtl.js";import"./Fingerprint04-B2fDIuT8.js";import"./Sun-O9TdKcV_.js";import"./blog-preview-url-N6iQgPQK.js";import"./use-main-panel-tabs-BmILT_Hf.js";import"./use-mcp-tools-DOqvKogJ.js";import"./resolve-tab-icon-XkjIOifK.js";import"./use-task-metadata-DZBgcb3y.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-C7OB-luC.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-C9jkdGJh.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-EDBIJjSW.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-BWoJzJlg.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-DUaIKdw9.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-B2XxygHy.js","assets/index-DmMMRYj8.js","assets/index-DOMlzk_A.css","assets/agent-icon-POwFjNIx.js","assets/AlertCircle-ChqjWH7E.js","assets/UserCheck01-C1rHQW2k.js","assets/Tool01-BLv3y71t.js","assets/ArrowUp-BrwXO1vC.js","assets/ArrowLeft-libxJleO.js","assets/ArrowRight-BRk4Hran.js","assets/BookOpen01-BDifdMkT.js","assets/Globe04-BrRHVGNQ.js","assets/CheckCircle-BS4u7GKL.js","assets/ChevronDown-DrncqTUe.js","assets/ChevronSelectorVertical-DLti285g.js","assets/ChevronUp-Cx0YNXAN.js","assets/UserSquare-BbR7Ffob.js","assets/LinkBroken01-D_QfcXMB.js","assets/CreditCard01-CvuDODOT.js","assets/File02-C56z6MkD.js","assets/MessageCircle01-KvJTlsBi.js","assets/SwitchHorizontal01-COUdvBDy.js","assets/Eye-CvCTiG93.js","assets/Fingerprint04-6YzZ_jju.js","assets/Image01-CgFR6A2M.js","assets/Key01-q8HY_RxB.js","assets/LayoutLeft-CLd6bB7k.js","assets/Minus-DqjfoGpn.js","assets/Monitor01-Bo9f-OEj.js","assets/Sun-MaW22nKk.js","assets/Play-BAVhlZkP.js","assets/Plus-xfIPbM98.js","assets/SearchMd-fabFdd5s.js","assets/ShoppingBag01-CCFPuM9g.js","assets/Trash01-D5Busco0.js","assets/Upload01-C-SD6gLx.js","assets/Users01-FBsoQxPP.js","assets/XClose-B_RBcQBR.js","assets/Zap-8DRTlEOL.js","assets/scroll-area-CK2HWET4.js","assets/index-BdQq_4o_.js","assets/date-utils-CrvIKg-s.js","assets/category-tree-Dr1NGnf2.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BTGgcS15.js","assets/collapsible-DXtfFhlw.js","assets/use-copy-DvMjk4g7.js","assets/usage-stats-t4V02j9N.js","assets/utils-CVEq3hMx.js","assets/markdown-Cny0I0ZM.js","assets/chat-context-DmELouH7.js","assets/use-panel-navigate-D9ieVXpG.js","assets/thread-route-CribnvTi.js","assets/use-project-scope-BLihvveC.js","assets/repository-binding-CnqOEzD9.js","assets/use-mcp-client-B5JTQMVF.js","assets/auth-JFQg8ioC.js","assets/use-view-draft-kind-DWEZysa7.js","assets/use-blog-view-C4BF45dq.js","assets/use-organization-settings-D8_Njnyg.js","assets/schema-VYa9v4uK.js","assets/task-board-CPddzIYx.js","assets/thread-intent-BZwSTfDM.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-DGAi3LqT.js","assets/session-runtime-Bxzg28T1.js","assets/use-entitlements-CRiiW0Ty.js","assets/use-ai-providers-VQuGkvuK.js","assets/use-current-view-HnFTmU9v.js","assets/use-in-settings-Ds8usasB.js","assets/use-decopilot-events-Dp80DKWc.js","assets/use-org-fs-D9kszJK9.js","assets/useInfiniteQuery-WJMtMZUx.js","assets/infiniteQueryObserver-Cu2d4hqm.js","assets/use-mobile-Cxqkr89j.js","assets/tooltip-DYmV7IKp.js","assets/index-DEQvBvbs.js","assets/gateway-client-BePk_av3.js","assets/form-CXf17HmA.js","assets/label-C3f-p2GO.js","assets/task-key-DGmmZLdt.js","assets/use-task-board-items-CAFOUh-y.js","assets/config-BvgPav17.js","assets/task-route-Liu6_wqZ.js","assets/project-index-q7fIaoJ4.js","assets/shell-layout-QosKplaT.js","assets/use-deployment-admin-By6tjKPo.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-BSoYdwdc.js","assets/command-Ciz1JHkm.js","assets/index-BdaeGs2y.js","assets/integration-icon-BRzNeX56.js","assets/project-icon-CGh1cNL8.js","assets/use-navigate-to-agent-Cy044LGE.js","assets/use-debounced-value-KPsBBvnW.js","assets/new-project-dialog-C2fYVAcy.js","assets/repository-picker-uXEId6yP.js","assets/github-icon-DIDixxLk.js","assets/collection-search-CsMQtGxI.js","assets/new-project-store-ojiemp_1.js","assets/legacy-admin-welcome-dialog-CBmPazsM.js","assets/drawer-BDbenm6L.js","assets/required-auth-layout-XZ2_RXTi.js","assets/use-org-sso-DDfxRFLL.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-Xp8aIExP.js","assets/types-BBakUXnY.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-Pxdj2d0O.js","assets/use-connection-CUy-xLIl.js","assets/use-mcp-prompts-D3RJs61Z.js","assets/use-thread-outputs-DYJmVZ0o.js","assets/file-type-icon-DBhVFkcQ.js","assets/section-array-field-CrZ8pD2Q.js","assets/blocks-tab-states-cCwLT03y.js","assets/site-editor-toast-CrbeZn6P.js","assets/content-changes-B_DC-anJ.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-B9CrJt6X.js","assets/use-blocks-v8-project-CV41gxs6.js","assets/use-voice-input-K-QnknSk.js","assets/popover-LZpi0uxx.js","assets/index-BpPRg9nw.js","assets/checkbox-hBxFVjXU.js","assets/select-4fwa0N-w.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-gb2MtXZ_.js","assets/sandbox-git-api-DasV_5nY.js","assets/empty-state-Br5iA0PL.js","assets/item-actions-2zTJNgYK.js","assets/badge-mppOhsx3.js","assets/empty-state-C3prkdI-.js","assets/delete-copy-BJv73-Ft.js","assets/use-never-published-DKVrO9Fz.js","assets/hosted-reconcile-yuv1cDCb.js","assets/search-input-D8Ti2Kj4.js","assets/tabs-D1pIsKf-.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-C_DEjZAQ.js","assets/asset-utils-DZKrqYDc.js","assets/index-CftUWKSR.js","assets/match-site-slug-config-B47_xZCi.js","assets/textarea-DC3xQ4kD.js","assets/primitives-BITik6wR.js","assets/use-move-blocks-CjALA5E-.js","assets/monaco-editor-09zfrzgi.js","assets/editor-ByNhS1TQ.js","assets/record-editor-CC9nSDgS.js","assets/save-status-B4_TQBlx.js","assets/switch-DmUfhYv8.js","assets/toggle-group-DqIO3xhJ.js","assets/blog-schema-raQjuF8P.js","assets/held-block-view-GbE3ruE3.js","assets/calendar-C2v2rx1y.js","assets/editor-classes-BTlqa_af.js","assets/sortable.esm-7FlxfWzb.js","assets/named-rule-step-fEyBTSr7.js","assets/slider-KVowhu1X.js","assets/index-B6WtsvUt.js","assets/tooltipContext-DExPDlKY.js","assets/CategoricalChart-DgcXVLOE.js","assets/index-BUpSNhfs.js","assets/combobox-ha9qFXYI.js","assets/use-autosave-C83hehEW.js","assets/category-editor-DLCnRR3L.js","assets/blog-preview-url-0WcO3GS9.js","assets/use-fast-preview-draft-url-Bh44rhn-.js","assets/block-document-BKonIwXl.js","assets/suggestion-BWmLdQzE.js","assets/product-picker-dialog-Cg32JEQH.js","assets/index-D9esfo9_.js","assets/context-DilQYCL-.js","assets/index-BRUloeMu.js","assets/icon-button-DbNvfQBp.js","assets/use-delete-block-fqyzRlTE.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-DmMMRYj8.js";import{ChatLayout as Re}from"./index-DRjUDdC5.js";import{S as Te}from"./site-draft-actions-Bxva0RSH.js";import{F as $e}from"./feature-gate-B7uQp1Wq.js";import{i as ne}from"./File02-C56z6MkD.js";import{s as Ie}from"./Plus-xfIPbM98.js";import{s as Le,a as Ke}from"./UserSquare-BbR7Ffob.js";import{c as ce}from"./UserCheck01-C1rHQW2k.js";import{t as me}from"./Users01-FBsoQxPP.js";import{S as Ve}from"./scroll-area-CK2HWET4.js";import{T as Me,a as Fe,c as Oe}from"./tooltip-DYmV7IKp.js";import{u as ze,a as Ge,d as Qe}from"./delete-copy-BJv73-Ft.js";import{u as Ue,a as We,k as Z}from"./use-never-published-DKVrO9Fz.js";import{u as qe}from"./use-delete-block-fqyzRlTE.js";import{d as He,f as Je}from"./site-editor-toast-CrbeZn6P.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-2zTJNgYK.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-Dr1NGnf2.js";import{u as ht}from"./primitives-BITik6wR.js";import{F as xt}from"./agent-icon-POwFjNIx.js";import{B as bt,a as yt}from"./blog-source-gate-lLoxfqtf.js";import{r as vt}from"./use-panel-navigate-D9ieVXpG.js";import{c as kt}from"./thread-route-CribnvTi.js";import{A as Ct}from"./agent-view-guard-DyZLxU5M.js";import{a as jt}from"./blog-view-gate-BiSLgaWC.js";import"./use-mobile-Cxqkr89j.js";import"./MessageCircle01-KvJTlsBi.js";import"./XClose-B_RBcQBR.js";import"./thread-button-D8oOd41X.js";import"./use-sidebar-collapsed-DKziyQyh.js";import"./sheet-Pxdj2d0O.js";import"./use-chat-layout-state-B55AouCR.js";import"./toolbar-icon-button-eUQSTQah.js";import"./use-in-settings-Ds8usasB.js";import"./resizable-BRdUguHL.js";import"./route-page-header-DW5bo48I.js";import"./LayoutLeft-CLd6bB7k.js";import"./use-project-scope-BLihvveC.js";import"./repository-binding-CnqOEzD9.js";import"./use-mcp-client-B5JTQMVF.js";import"./auth-JFQg8ioC.js";import"./use-current-view-HnFTmU9v.js";import"./separator-D24Pkrni.js";import"./chat-context-DmELouH7.js";import"./use-view-draft-kind-DWEZysa7.js";import"./use-blog-view-C4BF45dq.js";import"./use-organization-settings-D8_Njnyg.js";import"./schema-VYa9v4uK.js";import"./task-board-CPddzIYx.js";import"./thread-intent-BZwSTfDM.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DGAi3LqT.js";import"./session-runtime-Bxzg28T1.js";import"./use-entitlements-CRiiW0Ty.js";import"./use-ai-providers-VQuGkvuK.js";import"./use-decopilot-events-Dp80DKWc.js";import"./use-org-fs-D9kszJK9.js";import"./useInfiniteQuery-WJMtMZUx.js";import"./infiniteQueryObserver-Cu2d4hqm.js";import"./use-org-notice-BSoYdwdc.js";import"./popover-LZpi0uxx.js";import"./command-Ciz1JHkm.js";import"./index-BdaeGs2y.js";import"./SearchMd-fabFdd5s.js";import"./tabs-D1pIsKf-.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-DrncqTUe.js";import"./SwitchHorizontal01-COUdvBDy.js";import"./Tool01-BLv3y71t.js";import"./Trash01-D5Busco0.js";import"./use-voice-input-K-QnknSk.js";import"./drawer-BDbenm6L.js";import"./index-BpPRg9nw.js";import"./checkbox-hBxFVjXU.js";import"./Minus-DqjfoGpn.js";import"./select-4fwa0N-w.js";import"./index-BdQq_4o_.js";import"./index-DEQvBvbs.js";import"./ChevronUp-Cx0YNXAN.js";import"./ArrowLeft-libxJleO.js";import"./ChevronSelectorVertical-DLti285g.js";import"./Key01-q8HY_RxB.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-Bo9f-OEj.js";import"./AlertCircle-ChqjWH7E.js";import"./Eye-CvCTiG93.js";import"./Image01-CgFR6A2M.js";import"./use-debounced-value-KPsBBvnW.js";import"./shell-layout-QosKplaT.js";import"./Globe04-BrRHVGNQ.js";import"./use-deployment-admin-By6tjKPo.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-BS4u7GKL.js";import"./Zap-8DRTlEOL.js";import"./integration-icon-BRzNeX56.js";import"./LinkBroken01-D_QfcXMB.js";import"./project-icon-CGh1cNL8.js";import"./use-navigate-to-agent-Cy044LGE.js";import"./new-project-dialog-C2fYVAcy.js";import"./label-C3f-p2GO.js";import"./repository-picker-uXEId6yP.js";import"./github-icon-DIDixxLk.js";import"./collection-search-CsMQtGxI.js";import"./BookOpen01-BDifdMkT.js";import"./ShoppingBag01-CCFPuM9g.js";import"./new-project-store-ojiemp_1.js";import"./legacy-admin-welcome-dialog-CBmPazsM.js";import"./required-auth-layout-XZ2_RXTi.js";import"./use-org-sso-DDfxRFLL.js";import"./cms-store-drafts-3Pzqjb1M.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-hWRelxCQ.js";import"./url-slug-DknilYmx.js";import"./use-blocks-v8-project-CV41gxs6.js";import"./content-changes-B_DC-anJ.js";import"./use-fast-preview-draft-url-Bh44rhn-.js";import"./blocks-tab-states-cCwLT03y.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-Br5iA0PL.js";import"./index-BCX49XAx.js";import"./ArrowUp-BrwXO1vC.js";import"./input-Dbw7Fd2Y.js";import"./usage-stats-t4V02j9N.js";import"./utils-CVEq3hMx.js";import"./markdown-Cny0I0ZM.js";import"./use-copy-DvMjk4g7.js";import"./gateway-client-BePk_av3.js";import"./form-CXf17HmA.js";import"./icon-button-DbNvfQBp.js";import"./file-type-icon-DBhVFkcQ.js";import"./chat-draft-DmqEbKTr.js";import"./ArrowRight-BRk4Hran.js";import"./Upload01-C-SD6gLx.js";import"./use-deco-credits-CSPSqfW2.js";import"./toggle-group-DqIO3xhJ.js";import"./input-Cnr_4F97.js";import"./suggestion-BWmLdQzE.js";import"./use-mcp-prompts-D3RJs61Z.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-Cuxz-yLH.js";import"./plan-ladder-DQcImxho.js";import"./add-connection-dialog-aXAW3JnT.js";import"./extract-connection-data-pUAzh98b.js";import"./metadata-D72DunRR.js";import"./connection-DyMfTANF.js";import"./connection-card-Dt92S85Y.js";import"./connection-slug-ClS--MnP.js";import"./textarea-DC3xQ4kD.js";import"./use-connection-CUy-xLIl.js";import"./schema-CsDjeoCD.js";import"./connection-form-helpers-y2n-DExg.js";import"./authenticate-and-persist-oauth-BU8NlZrx.js";import"./mcp-oauth-28V73W1w.js";import"./mcp-oauth-Ce9lewPT.js";import"./collection-tabs-DpX5t3nl.js";import"./badge-mppOhsx3.js";import"./use-infinite-scroll-pAJ-NZfq.js";import"./useSuspenseInfiniteQuery-BRE1On0y.js";import"./use-task-board-items-CAFOUh-y.js";import"./pair-BTGgcS15.js";import"./collapsible-DXtfFhlw.js";import"./task-key-DGmmZLdt.js";import"./config-BvgPav17.js";import"./task-route-Liu6_wqZ.js";import"./project-index-q7fIaoJ4.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Xp8aIExP.js";import"./types-BBakUXnY.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-DYJmVZ0o.js";import"./agent-capabilities-8PgT3Fp9.js";import"./use-cms-publish-actions-EoujoXA7.js";import"./use-content-sync-BwBZP4y2.js";import"./sandbox-git-api-DasV_5nY.js";import"./utils-gb2MtXZ_.js";import"./device-hint-BWyf1FYT.js";import"./alert-DH-_ARv-.js";import"./section-array-field-CrZ8pD2Q.js";import"./editor-ByNhS1TQ.js";import"./save-changes-debug-nBi-n9eV.js";import"./use-sandbox-events-B9CrJt6X.js";import"./sandbox-lifecycle-context-vPm6SLvw.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-CftUWKSR.js";import"./hosted-reconcile-yuv1cDCb.js";import"./search-input-D8Ti2Kj4.js";import"./use-file-configs-C_DEjZAQ.js";import"./asset-utils-DZKrqYDc.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-C3prkdI-.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-09zfrzgi.js";import"./Play-BAVhlZkP.js";import"./use-move-blocks-CjALA5E-.js";import"./CreditCard01-CvuDODOT.js";import"./Fingerprint04-6YzZ_jju.js";import"./Sun-MaW22nKk.js";import"./blog-preview-url-0WcO3GS9.js";import"./use-main-panel-tabs-CU0aoHts.js";import"./use-mcp-tools-7XyHGVuM.js";import"./resolve-tab-icon-DU_-ybQf.js";import"./use-task-metadata-AfaoAPwY.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-CaK_AzvE.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-B2XxygHy.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-CC9nSDgS.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-DLCnRR3L.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-DilQYCL-.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-ztdGKvBm.js";import{ChatLayout as Le}from"./index-Co7YBLf6.js";import{b as Ie,S as Te}from"./site-draft-actions-FVwQt-Zd.js";import{F as $e}from"./feature-gate-DMrFeUy1.js";import{E as be}from"./empty-state-DM4xv3sa.js";import{G as ze,n as Ae}from"./agent-icon-BYWtutu9.js";import{e as Ce}from"./UserSquare-CafFh5_d.js";import{u as Oe}from"./use-fast-preview-draft-url-CpggWNTk.js";import{a as Fe}from"./category-tree-DGOo1BAt.js";import{u as He,s as Ke}from"./primitives-BbUqWJzg.js";import{i as Me}from"./Monitor01-DMFbvudn.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-DMXKoo4B.js";import{g as qe}from"./site-editor-toast-Dq7SmLyr.js";import{b as Je}from"./use-sandbox-events-E6fWuIsO.js";import{b as Qe,f as Ze}from"./blog-preview-url-N6iQgPQK.js";import{B as et,a as tt}from"./blog-source-gate-BIpZ68Ul.js";import{r as ot}from"./use-panel-navigate-0z93k6Ut.js";import{c as it}from"./thread-route-CfpvvkkL.js";import{a as rt}from"./blog-view-gate-D2LovAn5.js";import"./use-mobile-C_hdQY5I.js";import"./tooltip-Bm0P1gm_.js";import"./index-CDQbtG2e.js";import"./MessageCircle01-BG1RhOiZ.js";import"./XClose-CmTuu4UN.js";import"./thread-button-CP83i3PG.js";import"./use-sidebar-collapsed-Cy-mIzeN.js";import"./sheet-C-umRrOH.js";import"./use-chat-layout-state-Im_c7sw4.js";import"./toolbar-icon-button-Cz-oOJ1w.js";import"./use-in-settings-CFQ9B3W2.js";import"./resizable-DNBx7bMi.js";import"./route-page-header-CApA0aIo.js";import"./LayoutLeft-DDtN-od-.js";import"./use-project-scope-BwqdbGG4.js";import"./repository-binding-D_Xc1yRH.js";import"./use-mcp-client-2MG3LveS.js";import"./auth-C82OPjUx.js";import"./use-current-view-DBmQQ8uy.js";import"./separator-BQ6pXQbe.js";import"./chat-context-DFEln8mI.js";import"./use-view-draft-kind-BopwZu5H.js";import"./use-blog-view-DMfZjkz0.js";import"./use-organization-settings-C2vcrj4S.js";import"./schema-Bb-DbvPZ.js";import"./task-board-i6qU2BVR.js";import"./thread-intent-DyZ5A9F9.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DdfLfQcH.js";import"./session-runtime-DBl1Hlcw.js";import"./use-entitlements-Gn1rhCN5.js";import"./use-ai-providers-Ct2xvYDX.js";import"./use-decopilot-events-43RPCkUH.js";import"./use-org-fs-D9dHgOYs.js";import"./useInfiniteQuery-Ypmdjx1e.js";import"./infiniteQueryObserver-C3KEOANj.js";import"./use-org-notice-Bg0zOPPj.js";import"./popover-C4oz5B-L.js";import"./command-C3tlrKUq.js";import"./index-DMpANy5-.js";import"./SearchMd-BD2qldmS.js";import"./tabs-nQ7_UOyl.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-XsLJSrfl.js";import"./UserCheck01-k-4bTA2h.js";import"./SwitchHorizontal01-CMdpIiQk.js";import"./Tool01-BCJ5kyrz.js";import"./Plus-DWySsEmB.js";import"./Trash01-BxBhF2b8.js";import"./use-voice-input-BMrsODyI.js";import"./drawer-CROtV2u4.js";import"./index-CJKec1wg.js";import"./checkbox-QUuOza1H.js";import"./Minus-hZzPDO0w.js";import"./select-CxXZwsSr.js";import"./index-BdQq_4o_.js";import"./ChevronUp-BQktpZWC.js";import"./ArrowLeft-B0PZnf1E.js";import"./ChevronSelectorVertical-CB0fn1Nq.js";import"./Key01-CaJGjh13.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-BlMH0XE7.js";import"./Eye-kjjhS0vP.js";import"./Image01-BcIZ5mtf.js";import"./use-debounced-value-DO5dvp6c.js";import"./shell-layout-UF80oiAz.js";import"./Globe04-CeAQ1YNm.js";import"./use-deployment-admin-Cr4LWHG9.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-DZ8MNpCP.js";import"./Zap-CBJ7My90.js";import"./integration-icon-Bo-3z9o3.js";import"./LinkBroken01-DfUhihLM.js";import"./project-icon-fQqckccl.js";import"./use-navigate-to-agent-Cw8_3uU5.js";import"./new-project-dialog-BW6Lh52P.js";import"./label-8UxgpYiA.js";import"./repository-picker-CSaozawA.js";import"./github-icon-Bq9Ot22_.js";import"./collection-search-DkVgkcUC.js";import"./BookOpen01-DU-B3R7s.js";import"./ShoppingBag01-BbjW7cod.js";import"./new-project-store-DID5OVrt.js";import"./legacy-admin-welcome-dialog-plmLACwz.js";import"./required-auth-layout-Cwtu4iIe.js";import"./use-org-sso-_fzcS8V-.js";import"./cms-store-drafts-_66Q7KaS.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-CAb2l-zV.js";import"./url-slug-CII_0B7H.js";import"./use-blocks-v8-project-BPvEDyS9.js";import"./content-changes-BFwm7dNe.js";import"./blocks-tab-states-8lUCpJRf.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-I_cTbW85.js";import"./index-5erPNBmj.js";import"./ArrowUp-D5DDc3Cp.js";import"./input-B2QsYffT.js";import"./usage-stats-B0_Yl-r0.js";import"./utils-CVEq3hMx.js";import"./markdown-CJR_ooUO.js";import"./use-copy-DT4_uVrH.js";import"./File02-DaYek2y9.js";import"./gateway-client-B4qzR3sF.js";import"./form-DlZ0KMAb.js";import"./icon-button-BH8Qviy5.js";import"./file-type-icon-CdjLDWdN.js";import"./chat-draft-DNEqrl5p.js";import"./ArrowRight-mzMrxxYI.js";import"./Upload01-q-rKSvZf.js";import"./use-deco-credits-yGgE3j79.js";import"./toggle-group-yQeAFu4u.js";import"./input-aLblPHPG.js";import"./suggestion-aR93AXr2.js";import"./use-mcp-prompts-qJSiAdA5.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DL1BXqDM.js";import"./plan-ladder-C3ogU-RT.js";import"./add-connection-dialog-CS6ZsWUV.js";import"./extract-connection-data-DjYTV7t7.js";import"./metadata-D72DunRR.js";import"./connection-C8I8wKeO.js";import"./connection-card-CTJwLo8p.js";import"./connection-slug-BNBBglpK.js";import"./textarea-viSdm6BE.js";import"./use-connection-CcG4QE1K.js";import"./schema-D_OZwHJO.js";import"./connection-form-helpers-BjSA2uCL.js";import"./authenticate-and-persist-oauth-87e1Ix6y.js";import"./mcp-oauth-BBSVAQ62.js";import"./mcp-oauth-Alln4VX8.js";import"./collection-tabs-Cju2BOrS.js";import"./badge-DcUertOZ.js";import"./use-infinite-scroll-DdrDrAAo.js";import"./useSuspenseInfiniteQuery-Pk4rU2Ft.js";import"./use-task-board-items-D2aUd0HA.js";import"./pair-DmyTA2cC.js";import"./collapsible-CadTVXY4.js";import"./task-key-Bt60Ndov.js";import"./config-LEYSFIMn.js";import"./task-route-C3cK6F8S.js";import"./project-index-C2IrSomv.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DU6s3Olv.js";import"./types-5-cDe_8u.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-BK5BfLdO.js";import"./agent-capabilities-CyWfHGWp.js";import"./use-cms-publish-actions-BWS3AiLQ.js";import"./use-content-sync-GJv8DmEo.js";import"./sandbox-git-api-BsG4EzUP.js";import"./utils-COdvgYqW.js";import"./device-hint-B3WnBHYf.js";import"./alert-CxbB9CEj.js";import"./section-array-field-uECXIzc8.js";import"./editor-ipOJFDhA.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-DbNrw8-a.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-MY4ouqtl.js";import"./Fingerprint04-B2fDIuT8.js";import"./Sun-O9TdKcV_.js";import"./Play-BCFOaioW.js";import"./Users01-DM58_gUL.js";import"./use-move-blocks-Bu_TrzH9.js";import"./hosted-reconcile-rjhKNGnc.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-cvzIrkiW.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-4JPDI3S-.js","assets/index-DmMMRYj8.js","assets/index-DOMlzk_A.css","assets/chat-context-DmELouH7.js","assets/use-panel-navigate-D9ieVXpG.js","assets/thread-route-CribnvTi.js","assets/use-project-scope-BLihvveC.js","assets/repository-binding-CnqOEzD9.js","assets/use-mcp-client-B5JTQMVF.js","assets/auth-JFQg8ioC.js","assets/use-view-draft-kind-DWEZysa7.js","assets/use-blog-view-C4BF45dq.js","assets/use-organization-settings-D8_Njnyg.js","assets/schema-VYa9v4uK.js","assets/task-board-CPddzIYx.js","assets/thread-intent-BZwSTfDM.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-DGAi3LqT.js","assets/session-runtime-Bxzg28T1.js","assets/use-entitlements-CRiiW0Ty.js","assets/use-ai-providers-VQuGkvuK.js","assets/use-current-view-HnFTmU9v.js","assets/use-in-settings-Ds8usasB.js","assets/use-decopilot-events-Dp80DKWc.js","assets/use-org-fs-D9kszJK9.js","assets/useInfiniteQuery-WJMtMZUx.js","assets/infiniteQueryObserver-Cu2d4hqm.js","assets/AlertCircle-ChqjWH7E.js","assets/agent-icon-POwFjNIx.js","assets/UserCheck01-C1rHQW2k.js","assets/Tool01-BLv3y71t.js","assets/ArrowUp-BrwXO1vC.js","assets/ArrowLeft-libxJleO.js","assets/ArrowRight-BRk4Hran.js","assets/BookOpen01-BDifdMkT.js","assets/Globe04-BrRHVGNQ.js","assets/CheckCircle-BS4u7GKL.js","assets/ChevronDown-DrncqTUe.js","assets/ChevronSelectorVertical-DLti285g.js","assets/ChevronUp-Cx0YNXAN.js","assets/UserSquare-BbR7Ffob.js","assets/LinkBroken01-D_QfcXMB.js","assets/CreditCard01-CvuDODOT.js","assets/File02-C56z6MkD.js","assets/MessageCircle01-KvJTlsBi.js","assets/SwitchHorizontal01-COUdvBDy.js","assets/Eye-CvCTiG93.js","assets/Fingerprint04-6YzZ_jju.js","assets/Image01-CgFR6A2M.js","assets/Key01-q8HY_RxB.js","assets/LayoutLeft-CLd6bB7k.js","assets/Minus-DqjfoGpn.js","assets/Monitor01-Bo9f-OEj.js","assets/Sun-MaW22nKk.js","assets/Play-BAVhlZkP.js","assets/Plus-xfIPbM98.js","assets/SearchMd-fabFdd5s.js","assets/ShoppingBag01-CCFPuM9g.js","assets/Trash01-D5Busco0.js","assets/Upload01-C-SD6gLx.js","assets/Users01-FBsoQxPP.js","assets/XClose-B_RBcQBR.js","assets/Zap-8DRTlEOL.js","assets/label-C3f-p2GO.js","assets/multi-select-DjE5uJfk.js","assets/badge-mppOhsx3.js","assets/checkbox-hBxFVjXU.js","assets/command-Ciz1JHkm.js","assets/index-BdaeGs2y.js","assets/popover-LZpi0uxx.js","assets/tabs-D1pIsKf-.js","assets/active-indicator-CCMhAsc_.js","assets/switch-DmUfhYv8.js","assets/textarea-DC3xQ4kD.js","assets/save-status-B4_TQBlx.js","assets/use-never-published-DKVrO9Fz.js","assets/use-voice-input-K-QnknSk.js","assets/drawer-BDbenm6L.js","assets/tooltip-DYmV7IKp.js","assets/index-DEQvBvbs.js","assets/use-mobile-Cxqkr89j.js","assets/index-BpPRg9nw.js","assets/select-4fwa0N-w.js","assets/index-BdQq_4o_.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/site-editor-toast-CrbeZn6P.js","assets/content-changes-B_DC-anJ.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-B9CrJt6X.js","assets/use-blocks-v8-project-CV41gxs6.js","assets/utils-gb2MtXZ_.js","assets/sandbox-git-api-DasV_5nY.js","assets/hosted-reconcile-yuv1cDCb.js","assets/blocks-tab-states-cCwLT03y.js","assets/empty-state-Br5iA0PL.js","assets/search-input-D8Ti2Kj4.js","assets/use-debounced-value-KPsBBvnW.js","assets/use-file-configs-C_DEjZAQ.js","assets/asset-utils-DZKrqYDc.js","assets/usage-stats-t4V02j9N.js","assets/utils-CVEq3hMx.js","assets/markdown-Cny0I0ZM.js","assets/use-copy-DvMjk4g7.js","assets/gateway-client-BePk_av3.js","assets/form-CXf17HmA.js","assets/toggle-group-DqIO3xhJ.js","assets/match-site-slug-config-B47_xZCi.js","assets/block-document-BKonIwXl.js","assets/task-key-DGmmZLdt.js","assets/sortable.esm-7FlxfWzb.js","assets/delete-copy-BJv73-Ft.js","assets/category-tree-Dr1NGnf2.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BTGgcS15.js","assets/collapsible-DXtfFhlw.js","assets/use-task-board-items-CAFOUh-y.js","assets/config-BvgPav17.js","assets/task-route-Liu6_wqZ.js","assets/project-index-q7fIaoJ4.js","assets/shell-layout-QosKplaT.js","assets/use-deployment-admin-By6tjKPo.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-BSoYdwdc.js","assets/integration-icon-BRzNeX56.js","assets/project-icon-CGh1cNL8.js","assets/use-navigate-to-agent-Cy044LGE.js","assets/new-project-dialog-C2fYVAcy.js","assets/repository-picker-uXEId6yP.js","assets/github-icon-DIDixxLk.js","assets/collection-search-CsMQtGxI.js","assets/new-project-store-ojiemp_1.js","assets/legacy-admin-welcome-dialog-CBmPazsM.js","assets/required-auth-layout-XZ2_RXTi.js","assets/use-org-sso-DDfxRFLL.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-Xp8aIExP.js","assets/types-BBakUXnY.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-Pxdj2d0O.js","assets/use-connection-CUy-xLIl.js","assets/use-mcp-prompts-D3RJs61Z.js","assets/use-thread-outputs-DYJmVZ0o.js","assets/file-type-icon-DBhVFkcQ.js","assets/section-array-field-CrZ8pD2Q.js","assets/index-CftUWKSR.js","assets/suggestion-BWmLdQzE.js","assets/editor-classes-BTlqa_af.js","assets/blog-preview-url-0WcO3GS9.js","assets/primitives-BITik6wR.js","assets/use-move-blocks-CjALA5E-.js","assets/product-picker-dialog-Cg32JEQH.js","assets/index-D9esfo9_.js","assets/held-block-view-GbE3ruE3.js","assets/calendar-C2v2rx1y.js","assets/named-rule-step-fEyBTSr7.js","assets/slider-KVowhu1X.js","assets/index-B6WtsvUt.js","assets/tooltipContext-DExPDlKY.js","assets/CategoricalChart-DgcXVLOE.js","assets/index-BUpSNhfs.js","assets/combobox-ha9qFXYI.js","assets/scroll-area-CK2HWET4.js","assets/blog-schema-raQjuF8P.js","assets/use-delete-block-fqyzRlTE.js","assets/use-fast-preview-draft-url-Bh44rhn-.js","assets/use-autosave-C83hehEW.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-DmMMRYj8.js";import{ChatLayout as Le}from"./index-DRjUDdC5.js";import{b as Ie,S as Te}from"./site-draft-actions-Bxva0RSH.js";import{F as $e}from"./feature-gate-B7uQp1Wq.js";import{E as be}from"./empty-state-C3prkdI-.js";import{G as ze,n as Ae}from"./agent-icon-POwFjNIx.js";import{e as Ce}from"./UserSquare-BbR7Ffob.js";import{u as Oe}from"./use-fast-preview-draft-url-Bh44rhn-.js";import{a as Fe}from"./category-tree-Dr1NGnf2.js";import{u as He,s as Ke}from"./primitives-BITik6wR.js";import{i as Me}from"./Monitor01-Bo9f-OEj.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-BxIR5BNm.js";import{g as qe}from"./site-editor-toast-CrbeZn6P.js";import{b as Je}from"./use-sandbox-events-B9CrJt6X.js";import{b as Qe,f as Ze}from"./blog-preview-url-0WcO3GS9.js";import{B as et,a as tt}from"./blog-source-gate-lLoxfqtf.js";import{r as ot}from"./use-panel-navigate-D9ieVXpG.js";import{c as it}from"./thread-route-CribnvTi.js";import{a as rt}from"./blog-view-gate-BiSLgaWC.js";import"./use-mobile-Cxqkr89j.js";import"./tooltip-DYmV7IKp.js";import"./index-DEQvBvbs.js";import"./MessageCircle01-KvJTlsBi.js";import"./XClose-B_RBcQBR.js";import"./thread-button-D8oOd41X.js";import"./use-sidebar-collapsed-DKziyQyh.js";import"./sheet-Pxdj2d0O.js";import"./use-chat-layout-state-B55AouCR.js";import"./toolbar-icon-button-eUQSTQah.js";import"./use-in-settings-Ds8usasB.js";import"./resizable-BRdUguHL.js";import"./route-page-header-DW5bo48I.js";import"./LayoutLeft-CLd6bB7k.js";import"./use-project-scope-BLihvveC.js";import"./repository-binding-CnqOEzD9.js";import"./use-mcp-client-B5JTQMVF.js";import"./auth-JFQg8ioC.js";import"./use-current-view-HnFTmU9v.js";import"./separator-D24Pkrni.js";import"./chat-context-DmELouH7.js";import"./use-view-draft-kind-DWEZysa7.js";import"./use-blog-view-C4BF45dq.js";import"./use-organization-settings-D8_Njnyg.js";import"./schema-VYa9v4uK.js";import"./task-board-CPddzIYx.js";import"./thread-intent-BZwSTfDM.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DGAi3LqT.js";import"./session-runtime-Bxzg28T1.js";import"./use-entitlements-CRiiW0Ty.js";import"./use-ai-providers-VQuGkvuK.js";import"./use-decopilot-events-Dp80DKWc.js";import"./use-org-fs-D9kszJK9.js";import"./useInfiniteQuery-WJMtMZUx.js";import"./infiniteQueryObserver-Cu2d4hqm.js";import"./use-org-notice-BSoYdwdc.js";import"./popover-LZpi0uxx.js";import"./command-Ciz1JHkm.js";import"./index-BdaeGs2y.js";import"./SearchMd-fabFdd5s.js";import"./tabs-D1pIsKf-.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-DrncqTUe.js";import"./UserCheck01-C1rHQW2k.js";import"./SwitchHorizontal01-COUdvBDy.js";import"./Tool01-BLv3y71t.js";import"./Plus-xfIPbM98.js";import"./Trash01-D5Busco0.js";import"./use-voice-input-K-QnknSk.js";import"./drawer-BDbenm6L.js";import"./index-BpPRg9nw.js";import"./checkbox-hBxFVjXU.js";import"./Minus-DqjfoGpn.js";import"./select-4fwa0N-w.js";import"./index-BdQq_4o_.js";import"./ChevronUp-Cx0YNXAN.js";import"./ArrowLeft-libxJleO.js";import"./ChevronSelectorVertical-DLti285g.js";import"./Key01-q8HY_RxB.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-ChqjWH7E.js";import"./Eye-CvCTiG93.js";import"./Image01-CgFR6A2M.js";import"./use-debounced-value-KPsBBvnW.js";import"./shell-layout-QosKplaT.js";import"./Globe04-BrRHVGNQ.js";import"./use-deployment-admin-By6tjKPo.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-BS4u7GKL.js";import"./Zap-8DRTlEOL.js";import"./integration-icon-BRzNeX56.js";import"./LinkBroken01-D_QfcXMB.js";import"./project-icon-CGh1cNL8.js";import"./use-navigate-to-agent-Cy044LGE.js";import"./new-project-dialog-C2fYVAcy.js";import"./label-C3f-p2GO.js";import"./repository-picker-uXEId6yP.js";import"./github-icon-DIDixxLk.js";import"./collection-search-CsMQtGxI.js";import"./BookOpen01-BDifdMkT.js";import"./ShoppingBag01-CCFPuM9g.js";import"./new-project-store-ojiemp_1.js";import"./legacy-admin-welcome-dialog-CBmPazsM.js";import"./required-auth-layout-XZ2_RXTi.js";import"./use-org-sso-DDfxRFLL.js";import"./cms-store-drafts-3Pzqjb1M.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-hWRelxCQ.js";import"./url-slug-DknilYmx.js";import"./use-blocks-v8-project-CV41gxs6.js";import"./content-changes-B_DC-anJ.js";import"./blocks-tab-states-cCwLT03y.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-Br5iA0PL.js";import"./index-BCX49XAx.js";import"./ArrowUp-BrwXO1vC.js";import"./input-Dbw7Fd2Y.js";import"./usage-stats-t4V02j9N.js";import"./utils-CVEq3hMx.js";import"./markdown-Cny0I0ZM.js";import"./use-copy-DvMjk4g7.js";import"./File02-C56z6MkD.js";import"./gateway-client-BePk_av3.js";import"./form-CXf17HmA.js";import"./icon-button-DbNvfQBp.js";import"./file-type-icon-DBhVFkcQ.js";import"./chat-draft-DmqEbKTr.js";import"./ArrowRight-BRk4Hran.js";import"./Upload01-C-SD6gLx.js";import"./use-deco-credits-CSPSqfW2.js";import"./toggle-group-DqIO3xhJ.js";import"./input-Cnr_4F97.js";import"./suggestion-BWmLdQzE.js";import"./use-mcp-prompts-D3RJs61Z.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-Cuxz-yLH.js";import"./plan-ladder-DQcImxho.js";import"./add-connection-dialog-aXAW3JnT.js";import"./extract-connection-data-pUAzh98b.js";import"./metadata-D72DunRR.js";import"./connection-DyMfTANF.js";import"./connection-card-Dt92S85Y.js";import"./connection-slug-ClS--MnP.js";import"./textarea-DC3xQ4kD.js";import"./use-connection-CUy-xLIl.js";import"./schema-CsDjeoCD.js";import"./connection-form-helpers-y2n-DExg.js";import"./authenticate-and-persist-oauth-BU8NlZrx.js";import"./mcp-oauth-28V73W1w.js";import"./mcp-oauth-Ce9lewPT.js";import"./collection-tabs-DpX5t3nl.js";import"./badge-mppOhsx3.js";import"./use-infinite-scroll-pAJ-NZfq.js";import"./useSuspenseInfiniteQuery-BRE1On0y.js";import"./use-task-board-items-CAFOUh-y.js";import"./pair-BTGgcS15.js";import"./collapsible-DXtfFhlw.js";import"./task-key-DGmmZLdt.js";import"./config-BvgPav17.js";import"./task-route-Liu6_wqZ.js";import"./project-index-q7fIaoJ4.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Xp8aIExP.js";import"./types-BBakUXnY.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-DYJmVZ0o.js";import"./agent-capabilities-8PgT3Fp9.js";import"./use-cms-publish-actions-EoujoXA7.js";import"./use-content-sync-BwBZP4y2.js";import"./sandbox-git-api-DasV_5nY.js";import"./utils-gb2MtXZ_.js";import"./device-hint-BWyf1FYT.js";import"./alert-DH-_ARv-.js";import"./section-array-field-CrZ8pD2Q.js";import"./editor-ByNhS1TQ.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-vPm6SLvw.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-CvuDODOT.js";import"./Fingerprint04-6YzZ_jju.js";import"./Sun-MaW22nKk.js";import"./Play-BAVhlZkP.js";import"./Users01-FBsoQxPP.js";import"./use-move-blocks-CjALA5E-.js";import"./hosted-reconcile-yuv1cDCb.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-4JPDI3S-.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};
|