decocms 4.593.0 → 4.594.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BPb6lfDc.js → AlertCircle-kHXzu73r.js} +1 -1
- package/dist/client/assets/{AreaChart-Yh5pBNgF.js → AreaChart-CJxx8aiG.js} +1 -1
- package/dist/client/assets/{ArrowLeft-D_px05Ip.js → ArrowLeft-DcKid1bz.js} +1 -1
- package/dist/client/assets/{ArrowRight-DYc-7xj5.js → ArrowRight-ajc9j6D-.js} +1 -1
- package/dist/client/assets/{ArrowUp-bsUZSt57.js → ArrowUp-CjAvmMLL.js} +1 -1
- package/dist/client/assets/{BookOpen01-CKzuPfPT.js → BookOpen01-CdH9hkvz.js} +1 -1
- package/dist/client/assets/{CartesianChart-8sA8UDc5.js → CartesianChart-BRKqG5iH.js} +1 -1
- package/dist/client/assets/{CategoricalChart-D0wEIkFu.js → CategoricalChart-DW_7VziR.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dvda272I.js → CheckCircle-DG9pUM8a.js} +1 -1
- package/dist/client/assets/{ChevronDown-C0zFtKr8.js → ChevronDown-CWnE_Wmz.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BtbkxpS7.js → ChevronSelectorVertical-ByCpNum0.js} +1 -1
- package/dist/client/assets/{ChevronUp-CHkdbh-i.js → ChevronUp-C_rAiuf1.js} +1 -1
- package/dist/client/assets/{CreditCard01-BnEtKIxX.js → CreditCard01-C6eDo3p0.js} +1 -1
- package/dist/client/assets/{Eye-CE9bd3Ra.js → Eye-DFeDq2Hx.js} +1 -1
- package/dist/client/assets/{File02-OGn6eCfs.js → File02-R0RW2VCN.js} +1 -1
- package/dist/client/assets/{Fingerprint04-ZnmHU3Kp.js → Fingerprint04-D-EFj_6a.js} +1 -1
- package/dist/client/assets/{Globe04-BK5-p2nj.js → Globe04-DudUQgTy.js} +1 -1
- package/dist/client/assets/{Image01-Do_f-fPi.js → Image01-Dfaw0Ysf.js} +1 -1
- package/dist/client/assets/{Key01-C2Ozqf6q.js → Key01-9JQCF719.js} +1 -1
- package/dist/client/assets/{LayoutLeft-tXOkIxzs.js → LayoutLeft-B-cVGLzN.js} +1 -1
- package/dist/client/assets/{LinkBroken01-sFiApfPs.js → LinkBroken01-CpDM6pG5.js} +1 -1
- package/dist/client/assets/{MessageCircle01-LN8Gr1lL.js → MessageCircle01-44De_8cO.js} +1 -1
- package/dist/client/assets/{Minus-vz8sJtmc.js → Minus-09UkIbMe.js} +1 -1
- package/dist/client/assets/{Monitor01-Ctq4Y9xp.js → Monitor01-BPQw3JGv.js} +1 -1
- package/dist/client/assets/{Play-B5OMs0GO.js → Play-BRDYCYl7.js} +1 -1
- package/dist/client/assets/{Plus-KLH-MPJh.js → Plus-BJfG2DpW.js} +1 -1
- package/dist/client/assets/{ReferenceLine-Hl32My8w.js → ReferenceLine-KUFosDOj.js} +1 -1
- package/dist/client/assets/{SearchMd-1p8IP99o.js → SearchMd-DioGBYbO.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BZ5p5Jaw.js → ShoppingBag01-CdQhBv_H.js} +1 -1
- package/dist/client/assets/{Sun-8QBdDNyc.js → Sun-U7FHkItb.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BRSeU65r.js → SwitchHorizontal01-sPBj-OL8.js} +1 -1
- package/dist/client/assets/{Tool01-CIkfFpNs.js → Tool01-BEo5XKkS.js} +1 -1
- package/dist/client/assets/{Tooltip-B9ptxG-X.js → Tooltip-2A3BALIx.js} +1 -1
- package/dist/client/assets/{Trash01-1e348d5z.js → Trash01-l4iOtEBN.js} +1 -1
- package/dist/client/assets/{TrendUp01-Sag3n7qI.js → TrendUp01-aviiZW6M.js} +1 -1
- package/dist/client/assets/{Upload01-DQiq1N5L.js → Upload01-BhvyPM8u.js} +1 -1
- package/dist/client/assets/{UserCheck01-Dq2vpnim.js → UserCheck01-B1rJ65So.js} +1 -1
- package/dist/client/assets/{UserSquare-BAlzvt_y.js → UserSquare-D44lppb_.js} +1 -1
- package/dist/client/assets/{Users01-CJNRoJXK.js → Users01-CxQycal6.js} +1 -1
- package/dist/client/assets/{XClose-CQjSvos9.js → XClose-BwokcWjs.js} +1 -1
- package/dist/client/assets/{Zap-BbT-W69e.js → Zap-DoXbwvKP.js} +1 -1
- package/dist/client/assets/{access-gate-BwaSQQ2b.js → access-gate-Cb6wrWbo.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-b9bCaaJ-.js → add-connection-dialog-AJ93ohYz.js} +1 -1
- package/dist/client/assets/agent-app-BwabK-EN.js +1 -0
- package/dist/client/assets/{agent-assets-epUkCzig.js → agent-assets-BjERacII.js} +1 -1
- package/dist/client/assets/{agent-automation-DN5QlWy_.js → agent-automation-lPIiQ1-S.js} +1 -1
- package/dist/client/assets/{agent-automations-DeGcvAoe.js → agent-automations-DChAwthU.js} +1 -1
- package/dist/client/assets/{agent-blog-C-T8yJPu.js → agent-blog-BAFEHC3F.js} +2 -2
- package/dist/client/assets/{agent-blog-post-spGtFEpJ.js → agent-blog-post-BfZLJHCc.js} +2 -2
- package/dist/client/assets/{agent-calendar-EBTKBv82.js → agent-calendar-DVTbFVx4.js} +1 -1
- package/dist/client/assets/{agent-capabilities-Dsy9OzBC.js → agent-capabilities-CJLhsDjp.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-B2TM-6qo.js → agent-connect-sources-BUkRDeee.js} +1 -1
- package/dist/client/assets/agent-deck-FkIcljPu.js +1 -0
- package/dist/client/assets/{agent-e2e-DMK6Z36v.js → agent-e2e-DBAmX-ay.js} +1 -1
- package/dist/client/assets/agent-experiments-DDePdz1s.js +1 -0
- package/dist/client/assets/agent-file-Dq7RwOoN.js +1 -0
- package/dist/client/assets/{agent-hosting-DOLRQkiF.js → agent-hosting-KJs4AVma.js} +1 -1
- package/dist/client/assets/{agent-icon-CFsULo4q.js → agent-icon-BS6RPQ_A.js} +1 -1
- package/dist/client/assets/agent-library-C06De_Om.js +1 -0
- package/dist/client/assets/agent-library-file-DZtwB2bP.js +1 -0
- package/dist/client/assets/agent-overview-3kq8I1YX.js +1 -0
- package/dist/client/assets/agent-releases-BwIrRp2G.js +3 -0
- package/dist/client/assets/agent-settings-CQxH-SU4.js +1 -0
- package/dist/client/assets/{agent-site-editor-BiguEz5z.js → agent-site-editor-CyUzqfPD.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-lMnnKFV4.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BQ-pFVV_.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-Dipnwf9A.js +1 -0
- package/dist/client/assets/agent-view-D74Nsx4n.js +1 -0
- package/dist/client/assets/{agent-view-guard-BRen2fDa.js → agent-view-guard-dXJW4cSq.js} +1 -1
- package/dist/client/assets/{ai-providers-X4uIftAC.js → ai-providers-CoJXv_AA.js} +1 -1
- package/dist/client/assets/{alert-D6c8UL8s.js → alert-hKxZXEZZ.js} +1 -1
- package/dist/client/assets/{analytics-sections-BeagNbn2.js → analytics-sections-D8qsQ7bM.js} +1 -1
- package/dist/client/assets/api-keys-B9w3P2co.js +1 -0
- package/dist/client/assets/{api-keys-Bhaq6l4m.js → api-keys-BpcBSUmB.js} +1 -1
- package/dist/client/assets/{app-editor-BDvMcyIq.js → app-editor-DLwnlaqE.js} +1 -1
- package/dist/client/assets/{asset-utils-DedHJB9N.js → asset-utils-CdU3Ttfs.js} +1 -1
- package/dist/client/assets/{auth-WUI0GELm.js → auth-C3yWOKhG.js} +1 -1
- package/dist/client/assets/{auth-catchall-36sTseza.js → auth-catchall-DheSxLuf.js} +1 -1
- package/dist/client/assets/{auth-entry-BtvDZBee.js → auth-entry-C5exDM0H.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DbgIe7Q7.js → auth-split-layout-Hg6hlPX8.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-D7yFnk3v.js → authenticate-and-persist-oauth-CIyQIb0N.js} +1 -1
- package/dist/client/assets/{automation-list-row-B-bTXdxL.js → automation-list-row-BYtaYJm7.js} +1 -1
- package/dist/client/assets/{automation-runs-DTOCdqSY.js → automation-runs-DvuKFaor.js} +1 -1
- package/dist/client/assets/{automations-BXXmJoq9.js → automations-D70iF6cO.js} +1 -1
- package/dist/client/assets/{badge-xkOOGTR2.js → badge-wWozseh3.js} +1 -1
- package/dist/client/assets/{block-document-ClS1Gx3q.js → block-document-CQOXOWIP.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BOiyLqjl.js → blocks-preview-workspace-context-BmhSK0mg.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Dgkd6bcn.js → blocks-tab-states-CDYT4Ypi.js} +1 -1
- package/dist/client/assets/{blog-preview-url-CQF91dum.js → blog-preview-url-D1Gi50Jy.js} +1 -1
- package/dist/client/assets/{blog-schema-B993jmPJ.js → blog-schema-G_pvuSAo.js} +1 -1
- package/dist/client/assets/{blog-source-gate-B40koNXU.js → blog-source-gate-Z08IMogx.js} +1 -1
- package/dist/client/assets/{blog-view-gate-DYONh8sE.js → blog-view-gate-WETs9z4-.js} +1 -1
- package/dist/client/assets/{buckets-W8OuOQja.js → buckets-BcxYNwzK.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-7R1He4iw.js → build-improve-prompt-doc-BpGLSKmi.js} +1 -1
- package/dist/client/assets/{calendar-CCy2brqO.js → calendar-Sr3cNZGh.js} +1 -1
- package/dist/client/assets/{capability-load-error-74rIpav9.js → capability-load-error-Cwe4uK-x.js} +1 -1
- package/dist/client/assets/{category-editor-DrOqNXNY.js → category-editor-DZLdQENU.js} +1 -1
- package/dist/client/assets/{category-tree-B08EozIk.js → category-tree-oBVfCVRR.js} +1 -1
- package/dist/client/assets/{chart-DVwx0iDS.js → chart-D0It11Pz.js} +1 -1
- package/dist/client/assets/{chat-context-Dk_Ebz6D.js → chat-context-B6UvvRRf.js} +1 -1
- package/dist/client/assets/{chat-draft-x-F0ZPWu.js → chat-draft-D0WJnhz_.js} +1 -1
- package/dist/client/assets/{checkbox-DR00CmJr.js → checkbox-Cs2Li62P.js} +1 -1
- package/dist/client/assets/{choose-editor-3geZkU-m.js → choose-editor-Cwvr5cPX.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CX_XFx5r.js → cli-auth-success-DjQMGZUD.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-DMhLCkuK.js → cms-settings-editor-h4wDmiSv.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BdqXOATK.js → cms-store-drafts-DDk2L1_s.js} +1 -1
- package/dist/client/assets/{collapsible-C5AFdLwb.js → collapsible-D4n-ssmc.js} +1 -1
- package/dist/client/assets/{collection-detail-DJYxfZho.js → collection-detail-CWZme-FJ.js} +1 -1
- package/dist/client/assets/{collection-display-button-BS2sbab3.js → collection-display-button--oxelZ8R.js} +1 -1
- package/dist/client/assets/{collection-search-ugxEd4a5.js → collection-search-CDDauqCr.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-omwG60bs.js → collection-table-wrapper-B8osPBIm.js} +1 -1
- package/dist/client/assets/{collection-tabs-BsiuG_yk.js → collection-tabs-B1EmRyNS.js} +1 -1
- package/dist/client/assets/{combobox-BYBZebi0.js → combobox-LL4GsRoi.js} +1 -1
- package/dist/client/assets/{command-CRJnywSm.js → command-DQwD4jPt.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C5X6hxKV.js → companion-mcps-section-aZ0yAV9m.js} +1 -1
- package/dist/client/assets/{config-Br1Io2is.js → config-zmlExYow.js} +1 -1
- package/dist/client/assets/{connect-BvcW8HFx.js → connect-C2FkNxOj.js} +1 -1
- package/dist/client/assets/{connect-key-Bng8UgOW.js → connect-key-MUQgzDUZ.js} +1 -1
- package/dist/client/assets/{connect-layout-BK-aWbrg.js → connect-layout-C10vBM31.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-D8TZSkBE.js → connect-source-dialog-DZFw66w3.js} +1 -1
- package/dist/client/assets/{connection-C7PBWSJ2.js → connection-B7vXPxEB.js} +1 -1
- package/dist/client/assets/{connection-card-DbjUpBUS.js → connection-card-DqrVYaVF.js} +1 -1
- package/dist/client/assets/{connection-detail-FZzRV6Ym.js → connection-detail-BhmikSW0.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-tAcDvyB7.js → connection-form-helpers-CipIPASt.js} +1 -1
- package/dist/client/assets/{connection-slug-xMtStNjP.js → connection-slug-DgGnB6qk.js} +1 -1
- package/dist/client/assets/{connections-IQMsafFW.js → connections-BH6dclGQ.js} +1 -1
- package/dist/client/assets/{content-tab-Dby-qF-f.js → content-tab-CMouaD3S.js} +3 -3
- package/dist/client/assets/{context-jsYDuqDI.js → context-BXIwVeKt.js} +1 -1
- package/dist/client/assets/{context-menu-Cvn-dR-4.js → context-menu-BTcjoIYF.js} +1 -1
- package/dist/client/assets/{context-shell-Bm22btDj.js → context-shell-Bh2U1zxs.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-CXfqVYbt.js → create-organization-dialog-Dbp2Y7NH.js} +1 -1
- package/dist/client/assets/{daily-pulse-CxBxkzGT.js → daily-pulse-BiRUE30R.js} +1 -1
- package/dist/client/assets/{delete-copy-tGyXeEYr.js → delete-copy-BH5xrx9H.js} +1 -1
- package/dist/client/assets/{device-hint-D3KIwRP_.js → device-hint-CMC1mr9e.js} +1 -1
- package/dist/client/assets/{discover-UPogBeQB.js → discover-DN_s50Be.js} +1 -1
- package/dist/client/assets/{domain-settings-DarbfYc3.js → domain-settings-DBexbsXu.js} +1 -1
- package/dist/client/assets/{drawer-CQosC7Hh.js → drawer-BMY0wk6r.js} +1 -1
- package/dist/client/assets/{editor-DnZdk2c2.js → editor-C6mSxTrt.js} +1 -1
- package/dist/client/assets/{editor-classes-CiUorYg6.js → editor-classes-BygI_Lvg.js} +1 -1
- package/dist/client/assets/{empty-message-CG0mkpBx.js → empty-message-B3ykEghT.js} +1 -1
- package/dist/client/assets/{empty-state-D4GKvYHp.js → empty-state-C4vGG4yC.js} +1 -1
- package/dist/client/assets/{empty-state-B5kfNSn2.js → empty-state-hp9a4BQn.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BNwFp10h.js → experiments-tab-choice-a808JseX.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BwsA-RYq.js → extract-connection-data-B_eUCQ7e.js} +1 -1
- package/dist/client/assets/{feature-gate-WGXGW3TJ.js → feature-gate-DtqeHOu4.js} +1 -1
- package/dist/client/assets/{feature-paywall-CXj-cCjT.js → feature-paywall-BGOy9Z00.js} +1 -1
- package/dist/client/assets/{file-explorer-CQ0OZXxU.js → file-explorer-q1C_0Dfl.js} +1 -1
- package/dist/client/assets/{file-preview-CimYREH1.js → file-preview-Cid_-Y34.js} +1 -1
- package/dist/client/assets/{file-share-button-BAqDjZ0D.js → file-share-button-eK3lxbyf.js} +1 -1
- package/dist/client/assets/{file-type-icon-Cst2WgHg.js → file-type-icon-DOJ02s9h.js} +1 -1
- package/dist/client/assets/{folder-icon-h8_LtFFJ.js → folder-icon-4Pb3O8qn.js} +1 -1
- package/dist/client/assets/{form-Bmlz7qRb.js → form-BZ2nSi_9.js} +1 -1
- package/dist/client/assets/{frame-navigation-DiMr25uz.js → frame-navigation-C3j5rPCM.js} +1 -1
- package/dist/client/assets/{gateway-client-Dcj5rv8f.js → gateway-client-8UpI_Rdq.js} +1 -1
- package/dist/client/assets/{general-BTp6LTq7.js → general-bkCbo1TA.js} +1 -1
- package/dist/client/assets/{github-icon-HoxHOYky.js → github-icon-C-V2EETw.js} +1 -1
- package/dist/client/assets/{held-block-view-CB9_UtVc.js → held-block-view-xCVzC3Lr.js} +1 -1
- package/dist/client/assets/{home-CTP0vpaw.js → home-Dgh1Wb3u.js} +1 -1
- package/dist/client/assets/{home-overview-oJuOP6Jj.js → home-overview-CzbNLHJq.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-DipRdTAf.js → hosted-reconcile-DS6ZmO5s.js} +1 -1
- package/dist/client/assets/{icon-button-CkP-MdlY.js → icon-button-CFamiizZ.js} +1 -1
- package/dist/client/assets/{index-DCNDjBOm.js → index--r4E_gW7.js} +1 -1
- package/dist/client/assets/{index-D4nZeJZF.js → index-6V91lP75.js} +1 -1
- package/dist/client/assets/{index-B7BDvGS9.js → index-B-PIhH8l.js} +1 -1
- package/dist/client/assets/{index-oZBvLpfd.js → index-B4YS6GMo.js} +1 -1
- package/dist/client/assets/{index-DGcnGUGR.js → index-B9tCllzH.js} +1 -1
- package/dist/client/assets/{index-CpqnzQ6X.js → index-BFjuxezw.js} +1 -1
- package/dist/client/assets/{index-BGvfgBXQ.js → index-BVZH8mqe.js} +5 -5
- package/dist/client/assets/{index-CrMNCOay.js → index-BYQu9U5P.js} +1 -1
- package/dist/client/assets/{index-jEofb67j.js → index-BeSn1lKu.js} +1 -1
- package/dist/client/assets/{index-fjBXVTkP.js → index-BesTmknq.js} +1 -1
- package/dist/client/assets/index-CFbcObvG.css +1 -0
- package/dist/client/assets/{index-Dj_uCaww.js → index-CJQHYkKb.js} +1 -1
- package/dist/client/assets/{index-C4-rqYj_.js → index-CqlRRF6p.js} +1 -1
- package/dist/client/assets/{index-Cy5OtK8P.js → index-D9WtqDmJ.js} +1 -1
- package/dist/client/assets/{index-CtgoU6en.js → index-D_u7RJfU.js} +1 -1
- package/dist/client/assets/{index-C5wldXHS.js → index-DwIomefI.js} +1 -1
- package/dist/client/assets/{index-ztFBZP-a.js → index-GMDFirHC.js} +1 -1
- package/dist/client/assets/{index-DFEtjxfd.js → index-cjnTxfp5.js} +1 -1
- package/dist/client/assets/{index-redirect-DTMlUMlL.js → index-redirect-BMGe_utm.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CjHha6VI.js → infiniteQueryObserver-f5kG4cIT.js} +1 -1
- package/dist/client/assets/{infra-billing-R5GG28fc.js → infra-billing-DaAfhBWg.js} +1 -1
- package/dist/client/assets/{input-CWx7kP2y.js → input-A20A_mwu.js} +1 -1
- package/dist/client/assets/{input-CIXcgL8B.js → input-o0eNZBV4.js} +3 -3
- package/dist/client/assets/{integration-icon-nO6TvSsO.js → integration-icon-CcV5frEs.js} +1 -1
- package/dist/client/assets/{item-actions-DHBqlB8t.js → item-actions-CZD9JeRy.js} +1 -1
- package/dist/client/assets/{jira-icon-DX-tTt4z.js → jira-icon-DlgPbK3F.js} +1 -1
- package/dist/client/assets/{label-2ri5y0AT.js → label-Dc_tSb6f.js} +1 -1
- package/dist/client/assets/{layout-m0ghuzGv.js → layout-514nGx9I.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-dJnURvJJ.js → legacy-admin-welcome-dialog-DtYrilLw.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-JluLJXF7.js → legacy-agents-deep-DS7wnjib.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-COiP2ETV.js → legacy-main-redirect-BQ-dfJNU.js} +1 -1
- package/dist/client/assets/library-Cy3CmAZa.js +1 -0
- package/dist/client/assets/{library-tab-CAU7uiMF.js → library-tab-CZB0EHNl.js} +1 -1
- package/dist/client/assets/{login-DgFE1SmG.js → login-BVGV6SaO.js} +1 -1
- package/dist/client/assets/{markdown-Du_1i_DV.js → markdown-DvUyMKlV.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CHuh8eBE.js → mcp-app-renderer-CRu4PbUr.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Be_pa5Ik.js → mcp-oauth-CIY9YLWi.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bppcz_3X.js → mcp-oauth-NdGb5Zj9.js} +1 -1
- package/dist/client/assets/{members-CS-oK1Zf.js → members-CgoGmOSR.js} +1 -1
- package/dist/client/assets/{memory-Bl0VJnb1.js → memory-BfzundeZ.js} +1 -1
- package/dist/client/assets/{mock-board-BQeILTVh.js → mock-board-D8DOoo_p.js} +3 -3
- package/dist/client/assets/{monaco-editor-DCzjvWW2.js → monaco-editor-C3D0iT4a.js} +1 -1
- package/dist/client/assets/{monitoring-B4nvDMf7.js → monitoring-BvN0RJq0.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BK9I1n3g.js → monitoring-stats-row-By2SXcyl.js} +1 -1
- package/dist/client/assets/{multi-select-DLpc9WGW.js → multi-select-Dak9eW6K.js} +1 -1
- package/dist/client/assets/{mustache-fgm1GoLm.js → mustache-CMgVEDUc.js} +1 -1
- package/dist/client/assets/{named-rule-step-ikHUM8J-.js → named-rule-step-BnN-hlGb.js} +1 -1
- package/dist/client/assets/{named-rule-view-BJLF9MVt.js → named-rule-view-hUwolemN.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BfJtWdgg.js → new-project-dialog-BeD2i_Hm.js} +1 -1
- package/dist/client/assets/{new-project-store-CUIYzGdu.js → new-project-store-BfrY24D-.js} +1 -1
- package/dist/client/assets/{oauth-callback-DAF-HNU5.js → oauth-callback-CNqxDLu3.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BlZK1cl5.js → oauth-callback-ai-provider-0KF_xg3k.js} +1 -1
- package/dist/client/assets/{oauth-consent-BjKAsSxp.js → oauth-consent-li4JOhlZ.js} +1 -1
- package/dist/client/assets/{onboarding-CStDT_bk.js → onboarding-CzP4oXTn.js} +1 -1
- package/dist/client/assets/{openai-conversation-DJ7Npc2v.js → openai-conversation-BMsTp1zg.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CaqEFCbi.js → optimistic-project-sidebar-views-C29BxST1.js} +1 -1
- package/dist/client/assets/{order-monitor-day-B3sADUCG.js → order-monitor-day-D910WxJ3.js} +1 -1
- package/dist/client/assets/{organization-choice-vaH8PRN7.js → organization-choice-BhMXPFKX.js} +1 -1
- package/dist/client/assets/{orgs-C-TKQP3D.js → orgs-ZZqk-o74.js} +1 -1
- package/dist/client/assets/{own-accounts-section-BpgBL9aq.js → own-accounts-section-4_Hp7fJv.js} +1 -1
- package/dist/client/assets/{pair-M_Ks4KYr.js → pair-C4tumP78.js} +1 -1
- package/dist/client/assets/{parse-sections-BuUvGGsv.js → parse-sections-B5REiM5j.js} +2 -2
- package/dist/client/assets/{plan-ladder-De9sRz_u.js → plan-ladder-BlcJL4hV.js} +1 -1
- package/dist/client/assets/{plan-usage-card-8gBO_kT7.js → plan-usage-card-DW3wLLQF.js} +1 -1
- package/dist/client/assets/{plan-D-khZ7ZC.js → plan-vUNQzJtH.js} +1 -1
- package/dist/client/assets/{popover-BdGhwX6j.js → popover-9q-VKuQx.js} +1 -1
- package/dist/client/assets/{post-calendar-CYarN2j3.js → post-calendar-Cw6GB31X.js} +1 -1
- package/dist/client/assets/{post-editor-mxtEx2vX.js → post-editor-BUxXB6Uz.js} +1 -1
- package/dist/client/assets/{preview-content-Dxe4XKdO.js → preview-content-aN9ghsH_.js} +1 -1
- package/dist/client/assets/{preview-dialog--RYpR3-k.js → preview-dialog-DqNYRBay.js} +1 -1
- package/dist/client/assets/{preview-panel-Bk5cvms4.js → preview-panel-DV1FaRUZ.js} +1 -1
- package/dist/client/assets/{preview-tab-BRY7e3Ww.js → preview-tab-CNYeoSqY.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-CIU4p36P.js → product-picker-dialog-DVs_Kuee.js} +1 -1
- package/dist/client/assets/{profile-CA2wDqLs.js → profile-DbdvfkDI.js} +1 -1
- package/dist/client/assets/{project-app-view-CsobOn93.js → project-app-view-Cfrp6muY.js} +1 -1
- package/dist/client/assets/{project-apps-CzXp3RuA.js → project-apps-z0dBtbP_.js} +1 -1
- package/dist/client/assets/{project-icon-BUl2sFaB.js → project-icon-C8Sq9Uyo.js} +1 -1
- package/dist/client/assets/{project-index-D3eqGaeY.js → project-index-BOyydKXT.js} +1 -1
- package/dist/client/assets/project-reports-CN1JvK97.js +1 -0
- package/dist/client/assets/project-tasks-Cimkg6Js.js +1 -0
- package/dist/client/assets/{projects-DSjvBTqn.js → projects-B5BvS56N.js} +1 -1
- package/dist/client/assets/{projects-empty-state-C_4sZ19U.js → projects-empty-state-CDTj5tcd.js} +1 -1
- package/dist/client/assets/{prompts-JIqJQ8rm.js → prompts-DfS9pOYH.js} +1 -1
- package/dist/client/assets/record-editor-BC_pgxjj.js +1 -0
- package/dist/client/assets/{redirect-editor-CIkflDxt.js → redirect-editor-CJJivlqw.js} +1 -1
- package/dist/client/assets/reports-BU9i6BvT.js +1 -0
- package/dist/client/assets/{reports-DJZwSZy6.js → reports-C624VFLj.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CSkswBMH.js → reports-onboarding-_pxt1WkF.js} +1 -1
- package/dist/client/assets/{reports-tab-6fV3Jvgl.js → reports-tab-BBmHq9vJ.js} +2 -2
- package/dist/client/assets/{repositories-BTuTm0L2.js → repositories-B7d9yCxo.js} +1 -1
- package/dist/client/assets/repositories-D-ngJeYU.js +1 -0
- package/dist/client/assets/{repository-binding-DrxBu24C.js → repository-binding-BIfwJXBl.js} +1 -1
- package/dist/client/assets/{repository-picker-Darc81nL.js → repository-picker-vN0XhyKR.js} +1 -1
- package/dist/client/assets/{require-capability-C51SGps0.js → require-capability-B6_v4BKo.js} +1 -1
- package/dist/client/assets/{required-auth-layout-pSTI6t_x.js → required-auth-layout-BXbkUsYd.js} +1 -1
- package/dist/client/assets/{reset-password-BnNzHLPz.js → reset-password-DPvgQ5Qd.js} +1 -1
- package/dist/client/assets/{resizable-BU7UxgwC.js → resizable-AytQ6SyX.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-Bd3WwXB0.js → resolve-tab-icon-BzV0wsYq.js} +1 -1
- package/dist/client/assets/{review-settings-D31XkFbq.js → review-settings-BTg5QElS.js} +1 -1
- package/dist/client/assets/{role-color-CJIemPpG.js → role-color-CNGxunw8.js} +1 -1
- package/dist/client/assets/{roles-C7hVcM54.js → roles-DrWSfOhb.js} +1 -1
- package/dist/client/assets/{route-ajk3Lz1i.js → route-BX1VK4D8.js} +1 -1
- package/dist/client/assets/route-DxNP7FKc.js +1 -0
- package/dist/client/assets/{route-1boDLy4Y.js → route-IYkPM4iL.js} +1 -1
- package/dist/client/assets/{route-page-header-D3RVWIBC.js → route-page-header-DnxbH76I.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-lqhbN6-M.js → sandbox-git-api-CvJPOlyv.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-QpFv1h24.js → sandbox-lifecycle-context-CO9pd80k.js} +1 -1
- package/dist/client/assets/{save-status-96Apsuux.js → save-status-eUv6TQpr.js} +1 -1
- package/dist/client/assets/{schema-DIQ-2mII.js → schema-C2ft4i4u.js} +1 -1
- package/dist/client/assets/{schema-DklwT0XH.js → schema-CATZG76m.js} +1 -1
- package/dist/client/assets/{scroll-area-CLaLCTf7.js → scroll-area-w9_Bvwmf.js} +1 -1
- package/dist/client/assets/{search-input-BytjnRYd.js → search-input-D3b0Dc5Y.js} +1 -1
- package/dist/client/assets/{search-toggle-BEH-S2im.js → search-toggle-DBEAkZhz.js} +1 -1
- package/dist/client/assets/{secret-picker-k0C3uZq8.js → secret-picker-CVfi84wZ.js} +1 -1
- package/dist/client/assets/{secrets-1-DGosfc.js → secrets-Bxh8ZQN1.js} +1 -1
- package/dist/client/assets/{section-array-field-08gf_aaJ.js → section-array-field-CkDPdYBe.js} +1 -1
- package/dist/client/assets/{sections-DfnSEAao.js → sections-BS4WKjIk.js} +1 -1
- package/dist/client/assets/{sections-editor-Cm1IpUw4.js → sections-editor-CLaZ0j6X.js} +1 -1
- package/dist/client/assets/{select-BH6i4t87.js → select-BJ7g3jt1.js} +1 -1
- package/dist/client/assets/{select-model-DuodXwbD.js → select-model-CIoiyBbQ.js} +1 -1
- package/dist/client/assets/{seo-editor-vJ_3bHov.js → seo-editor-C5CvtZIp.js} +1 -1
- package/dist/client/assets/{separator-DE4QJAwp.js → separator-DUnD5wBI.js} +1 -1
- package/dist/client/assets/{session-runtime-CnePJMYk.js → session-runtime-CRv5j4jh.js} +1 -1
- package/dist/client/assets/settings-tab-k_yzR7TC.js +1 -0
- package/dist/client/assets/{sheet-CX86ajAE.js → sheet-B1zTFenO.js} +1 -1
- package/dist/client/assets/{shell-layout-MrR8EGxZ.js → shell-layout-BT6RZJ9X.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CCPyXgQA.js → site-draft-actions-BhvNLFOt.js} +1 -1
- package/dist/client/assets/{site-draft-view-B3wpg14y.js → site-draft-view-D89p35uK.js} +1 -1
- package/dist/client/assets/site-editor-DO2-FIjd.js +1 -0
- package/dist/client/assets/{site-editor-toast-DjTYO8yl.js → site-editor-toast-vvVLBG6s.js} +1 -1
- package/dist/client/assets/{skills-CwoSapY8.js → skills-C22XOkU8.js} +1 -1
- package/dist/client/assets/{slider-B1Q72VZH.js → slider-46E0vJw8.js} +1 -1
- package/dist/client/assets/{sortable.esm-CXd3MFy1.js → sortable.esm-BzU9NXcP.js} +1 -1
- package/dist/client/assets/{sso-DieJGjil.js → sso-zNrVMXEh.js} +1 -1
- package/dist/client/assets/{suggestion-Cpa996zU.js → suggestion-B9N6oqkG.js} +1 -1
- package/dist/client/assets/{super-agent-icon-Db04o97L.js → super-agent-icon-AyK0wzxQ.js} +1 -1
- package/dist/client/assets/{switch-B7uarNO5.js → switch-BX8b8tB6.js} +1 -1
- package/dist/client/assets/{synced-repos-aIXgLnBB.js → synced-repos-DS_Rsdst.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-D_VxeQZE.js → tab-icon-glyph-DpR7ri7q.js} +1 -1
- package/dist/client/assets/{table-Bta2Y1CD.js → table-DNvSx4nT.js} +1 -1
- package/dist/client/assets/{tabs-s8CSecQV.js → tabs-ClkuSww4.js} +1 -1
- package/dist/client/assets/{task-board-DshmncwN.js → task-board-DLNmAHmR.js} +1 -1
- package/dist/client/assets/{task-key-PomUyZRb.js → task-key-BjUMQvHV.js} +1 -1
- package/dist/client/assets/{task-route-DIKoinWO.js → task-route-B6gZ9LxC.js} +1 -1
- package/dist/client/assets/{task-status-LX7lBTjN.js → task-status-CvKutQFi.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DfkqsYeI.js → taskboard-analytics-BgegxTfw.js} +1 -1
- package/dist/client/assets/tasks-BZlAEaTY.js +1 -0
- package/dist/client/assets/{tasks-BGD-BUHo.js → tasks-VtqJyf5J.js} +1 -1
- package/dist/client/assets/{textarea-C_mtz3Kv.js → textarea-BnYcD_gb.js} +1 -1
- package/dist/client/assets/{thread-analytics-aGwSdxKv.js → thread-analytics-CHgBpfHv.js} +1 -1
- package/dist/client/assets/{thread-button-Bc5fnhGX.js → thread-button-Cra7mRSW.js} +1 -1
- package/dist/client/assets/{thread-intent-DJ2isQQx.js → thread-intent-CYNXEfHP.js} +1 -1
- package/dist/client/assets/{thread-route-C13LdFpr.js → thread-route-D00Shirq.js} +1 -1
- package/dist/client/assets/{thread-route-DI1GCHqT.js → thread-route-muzc431X.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CnbjjV-I.js → thread-sheet-body-B4d3KSH7.js} +1 -1
- package/dist/client/assets/{time-range-picker-A0UZNhWR.js → time-range-picker-BzLGuV9Q.js} +1 -1
- package/dist/client/assets/{toggle-group-BjeGXB13.js → toggle-group-Cu3LE1oL.js} +1 -1
- package/dist/client/assets/{tool-set-selector-rXUFKU4u.js → tool-set-selector-DpIP2fev.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BmCu83-X.js → toolbar-icon-button-Bo8OSaqx.js} +1 -1
- package/dist/client/assets/{tooltip-D0-ybZJ-.js → tooltip-CfeBMv8z.js} +1 -1
- package/dist/client/assets/{tooltipContext-Dm5XB4Pa.js → tooltipContext-BMU8k-Rs.js} +1 -1
- package/dist/client/assets/{track-BI5WxsF3.js → track-DWmwuKVj.js} +1 -1
- package/dist/client/assets/{types-DeHdmC2C.js → types-D_vNw-3-.js} +1 -1
- package/dist/client/assets/{url-slug-Bt323BC1.js → url-slug-BOPVIawN.js} +1 -1
- package/dist/client/assets/{usage-stats-4TwUkhM4.js → usage-stats-Dzci2XGy.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Cykm4Omp.js → use-ai-providers-C30oeluP.js} +1 -1
- package/dist/client/assets/{use-api-keys-QqkV0EMu.js → use-api-keys-CK1ZH-th.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-B0v5Nv1Q.js → use-apply-named-rule-DGYGOn-1.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-Cp6wJI2T.js +1 -0
- package/dist/client/assets/{use-automations-CIfofZgd.js → use-automations-CtbjaE6m.js} +1 -1
- package/dist/client/assets/{use-autosave-phCMBUyD.js → use-autosave-Bpr4B2YO.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DUe21BCo.js +1 -0
- package/dist/client/assets/use-blog-view-D_--u8j_.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-BWjgOEMc.js → use-chat-layout-state-DBVzfsNg.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-CPyM3m5I.js → use-cms-publish-actions-CWkUAckV.js} +1 -1
- package/dist/client/assets/{use-connect-companion-eWYXL_LA.js → use-connect-companion-iGJRty2G.js} +1 -1
- package/dist/client/assets/{use-connection-dER7f5j5.js → use-connection-C-m8b2Fk.js} +1 -1
- package/dist/client/assets/{use-content-sync-BSudZND-.js → use-content-sync-BJ7PE3PC.js} +1 -1
- package/dist/client/assets/{use-copy-CzwPMJY2.js → use-copy-BHPkBnZF.js} +1 -1
- package/dist/client/assets/{use-current-view-BhCzT_on.js → use-current-view-CHhVzMwk.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DbDI1yRa.js → use-date-fns-locale-Cn791fqZ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BUqTz9gI.js → use-debounced-autosave-C6OCZte6.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DNV71VAt.js → use-debounced-value-By7KggQt.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D1eTXz3B.js → use-deco-credits-19cW8oHb.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DwV1bANi.js → use-decopilot-events-BxfGa0_j.js} +1 -1
- package/dist/client/assets/{use-delete-block-B3Q8p71v.js → use-delete-block-3AD9rKWc.js} +1 -1
- package/dist/client/assets/{use-delete-connection-KjVy0n0M.js → use-delete-connection-Cma0d5Z7.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-U97at0FL.js → use-deployment-admin-COmgwPUq.js} +1 -1
- package/dist/client/assets/{use-entitlements-BnUu4797.js → use-entitlements-B8D7pawV.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Cyb7nHOV.js → use-fast-preview-draft-url-BQhDGlp9.js} +1 -1
- package/dist/client/assets/{use-file-configs-D-0GlBYS.js → use-file-configs-CCo70YSN.js} +1 -1
- package/dist/client/assets/{use-id-selection-lO2dafiF.js → use-id-selection-BOT74h8X.js} +1 -1
- package/dist/client/assets/{use-in-settings-BZ-N_1GQ.js → use-in-settings-qQ2sbeu5.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-adObXP9V.js → use-inbox-feed-CIBoyRh8.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DuNc__Oo.js → use-infinite-scroll-Ct_PbHT3.js} +1 -1
- package/dist/client/assets/{use-join-requests-CGnr0fzd.js → use-join-requests-CbaI0xCz.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-C_KJU7HA.js → use-main-panel-tabs-CPcNwsEn.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CIA9x3GT.js → use-mcp-auth-status-BfHI4tpd.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CsG2AAiF.js → use-mcp-client-7NPwItGN.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DJkMWAp0.js → use-mcp-prompts-C7QHdaI_.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C4sfkkEQ.js → use-mcp-tools-DqnFukoV.js} +1 -1
- package/dist/client/assets/{use-mobile-B4kazYmP.js → use-mobile-5e0sSd3X.js} +1 -1
- package/dist/client/assets/{use-move-blocks-CQpVSPWP.js → use-move-blocks-Cqt9Q8CZ.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CYt8D-re.js → use-navigate-to-agent-CtsEyeFb.js} +1 -1
- package/dist/client/assets/{use-never-published-Dhj1oB8k.js → use-never-published-BK3TeRer.js} +1 -1
- package/dist/client/assets/{use-org-fs-BQ1-EjeH.js → use-org-fs-Cq9dcDh3.js} +1 -1
- package/dist/client/assets/{use-org-notice-FqFlDSJV.js → use-org-notice-Dvph2j3S.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DZJLO1tr.js → use-org-repo-syncs-CCuZhNZU.js} +1 -1
- package/dist/client/assets/{use-org-sso-CCCXGXRa.js → use-org-sso-BKXSOEb_.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CcEgBKiR.js → use-organization-settings-BoOQOwrg.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BEVdshk4.js → use-panel-navigate-DPGDB1T1.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BWWCr0OJ.js → use-project-native-view-presence-SSp2DD_u.js} +1 -1
- package/dist/client/assets/{use-project-scope-DaSiwM20.js → use-project-scope-BIucgFKc.js} +1 -1
- package/dist/client/assets/{use-recent-apps-DJU0pj25.js → use-recent-apps-4zSmjU-Q.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BBFJaws_.js → use-reports-diagnostic-DWL8tyP6.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-Bh6eTl2p.js → use-sandbox-events-TxpzU2Iw.js} +1 -1
- package/dist/client/assets/{use-secrets-DRWI9snD.js → use-secrets-CsCKmxLc.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DgxMYdVR.js → use-section-preview-base-BxFRvYUl.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Cb1DkW28.js → use-sidebar-collapsed-DHFFs76T.js} +1 -1
- package/dist/client/assets/{use-tags-CY161EKU.js → use-tags-aDaEeB96.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DstP91hQ.js → use-task-board-analytics-XXuDuH8s.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DENiL_-n.js → use-task-board-item-prs-CLDgREI3.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BOf8g772.js → use-task-board-items-D4fdH47R.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-Cy7ux4ZM.js → use-task-board-prompts-DRYQb2DR.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CLvpp-M5.js → use-task-metadata-CSvrbSt0.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CBGDKGBc.js → use-thread-outputs-CrNLjxTt.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-Bm-Nz5rU.js → use-view-draft-kind-BG3Ihm6n.js} +1 -1
- package/dist/client/assets/{use-voice-input-l3y10Zzf.js → use-voice-input-BspgCDOI.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BJoJv4VQ.js +1 -0
- package/dist/client/assets/{useQueries-BADhFyMC.js → useQueries-DGhxO9Ry.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BFQG7J82.js +1 -0
- package/dist/client/assets/{users-BlAutU5k.js → users-CC1uXfIH.js} +1 -1
- package/dist/client/assets/{utils-D3hrWqhu.js → utils-JVZxV40b.js} +1 -1
- package/dist/client/assets/{variant-calendar-Cf89P2oq.js → variant-calendar-COAsXla8.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-cabGpziX.js → variant-matcher-override-Dm9kjKRy.js} +1 -1
- package/dist/client/assets/{view-header-CqefLZ8T.js → view-header-d4Obd__T.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BfLRvmz0.js → virtual-mcp-TQWeP4ry.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-mz6vVQb7.js → watch-sse-pool-CWcYbOm5.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-qi4Zg0Ko.js +0 -1
- package/dist/client/assets/agent-deck-8F4Y3xtF.js +0 -1
- package/dist/client/assets/agent-experiments-CxOy1OMh.js +0 -1
- package/dist/client/assets/agent-file-BHPXEsLM.js +0 -1
- package/dist/client/assets/agent-library-BDMtzZv5.js +0 -1
- package/dist/client/assets/agent-library-file-BU6GZbp1.js +0 -1
- package/dist/client/assets/agent-overview-BpZl9px0.js +0 -1
- package/dist/client/assets/agent-releases-BojH--RB.js +0 -2
- package/dist/client/assets/agent-settings-CmejIfdg.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CsUpsDOZ.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DcDYGjSi.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DoYr2JdT.js +0 -1
- package/dist/client/assets/agent-view-5HH2xFah.js +0 -1
- package/dist/client/assets/api-keys-tTCGO1A5.js +0 -1
- package/dist/client/assets/index-w9K6scL8.css +0 -1
- package/dist/client/assets/library-Wi-0o3Yx.js +0 -1
- package/dist/client/assets/project-reports-DUszwxkV.js +0 -1
- package/dist/client/assets/project-tasks-C9wh-MvK.js +0 -1
- package/dist/client/assets/record-editor-5hDNYEyc.js +0 -1
- package/dist/client/assets/reports-BQo9TgIr.js +0 -1
- package/dist/client/assets/repositories-BT4LP6yW.js +0 -1
- package/dist/client/assets/route-FPh-7Znc.js +0 -1
- package/dist/client/assets/settings-tab-C97802nQ.js +0 -1
- package/dist/client/assets/site-editor-BiU8V7py.js +0 -1
- package/dist/client/assets/tasks-B2acfxpH.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CJn-8DXz.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BUDjuC95.js +0 -1
- package/dist/client/assets/use-blog-view-CZ2egr0r.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Comohppg.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-XSNjcYue.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dO as Qt,c as Z,b as ee,r as w,j as t,B,aY as Zt,m as At,a6 as $t,D as et,v as tt,w as st,x as ot,aU as at,y as nt,t as X,e0 as es,_ as ts,X as ss,Z as os,ar as as,ap as ns,aq as is,Y as ze,b6 as rs,h as Le,aJ as pt,aK as xt,aL as gt,aM as ht,b9 as jt,aN as yt,aO as bt,aP as vt,E as Ke,aG as ls,e8 as Ct,I as Nt,hq as cs,al as ds,b7 as Qe,n as Xe,f as ms}from"./index-BGvfgBXQ.js";import{ChatLayout as us}from"./index-jEofb67j.js";import{b as it,u as fs,a as ps,Y as xs,k as St,ax as gs,aa as hs,g as js,a_ as Ot,e as Ye}from"./agent-icon-CFsULo4q.js";import{n as kt}from"./BookOpen01-CKzuPfPT.js";import{t as rt}from"./ChevronDown-C0zFtKr8.js";import{e as ys}from"./UserSquare-BAlzvt_y.js";import{s as Tt}from"./File02-OGn6eCfs.js";import{f as lt,b as Et,t as zt}from"./Tool01-CIkfFpNs.js";import{a as bs}from"./Image01-Do_f-fPi.js";import{i as vs}from"./SearchMd-1p8IP99o.js";import{B as Kt}from"./badge-xkOOGTR2.js";import{C as Ft}from"./checkbox-DR00CmJr.js";import{S as ct}from"./switch-B7uarNO5.js";import{a as Mt,b as Rt,P as Lt}from"./popover-BdGhwX6j.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-CRJnywSm.js";import{g as ws,a as _s}from"./gateway-client-Dcj5rv8f.js";import{b as dt}from"./use-connection-dER7f5j5.js";import{u as Ds}from"./use-mcp-client-CsG2AAiF.js";import{u as Is}from"./use-mcp-tools-C4sfkkEQ.js";import{I as Ps}from"./integration-icon-nO6TvSsO.js";import{M as As}from"./select-model-DuodXwbD.js";import{u as $s}from"./use-ai-providers-Cykm4Omp.js";import{U as Os,b as Es}from"./build-improve-prompt-doc-7R1He4iw.js";import{a as ve,c as zs,d as Ks}from"./use-automations-CIfofZgd.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-Dk_Ebz6D.js";import{b as Us,C as Vs,a as Ws}from"./collapsible-C5AFdLwb.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-D0-ybZJ-.js";import{u as Js}from"./shell-layout-MrR8EGxZ.js";import{i as Ut}from"./ArrowLeft-D_px05Ip.js";import{i as Xs}from"./ArrowUp-bsUZSt57.js";import{s as Me}from"./UserCheck01-Dq2vpnim.js";import{s as Ys}from"./Trash01-1e348d5z.js";import{s as mt}from"./XClose-CQjSvos9.js";import{u as _t}from"./use-debounced-autosave-BUqTz9gI.js";import{T as qs,a as Qs}from"./input-CWx7kP2y.js";import{u as Zs,a as eo,J as Vt}from"./jira-icon-DX-tTt4z.js";import{s as to}from"./Plus-KLH-MPJh.js";import{i as ut}from"./Zap-BbT-W69e.js";import{l as We,H as so}from"./config-Br1Io2is.js";import{C as oo}from"./task-board-DshmncwN.js";import{M as Wt}from"./multi-select-DLpc9WGW.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-BH6i4t87.js";import{b as ao,a as no,T as Dt}from"./tabs-s8CSecQV.js";import{MonacoCodeEditor as io}from"./monaco-editor-DCzjvWW2.js";import{A as ro}from"./automation-runs-DTOCdqSY.js";import{C as lo}from"./collection-tabs-BsiuG_yk.js";import{a as co}from"./use-panel-navigate-BEVdshk4.js";import"./use-mobile-B4kazYmP.js";import"./MessageCircle01-LN8Gr1lL.js";import"./thread-button-Bc5fnhGX.js";import"./use-sidebar-collapsed-Cb1DkW28.js";import"./sheet-CX86ajAE.js";import"./use-chat-layout-state-BWjgOEMc.js";import"./toolbar-icon-button-BmCu83-X.js";import"./use-in-settings-BZ-N_1GQ.js";import"./resizable-BU7UxgwC.js";import"./route-page-header-D3RVWIBC.js";import"./LayoutLeft-tXOkIxzs.js";import"./use-project-scope-DaSiwM20.js";import"./repository-binding-DrxBu24C.js";import"./use-current-view-BhCzT_on.js";import"./thread-route-DI1GCHqT.js";import"./index-CpqnzQ6X.js";import"./auth-WUI0GELm.js";import"./AlertCircle-BPb6lfDc.js";import"./ArrowRight-DYc-7xj5.js";import"./Globe04-BK5-p2nj.js";import"./CheckCircle-Dvda272I.js";import"./TrendUp01-Sag3n7qI.js";import"./ChevronSelectorVertical-BtbkxpS7.js";import"./ChevronUp-CHkdbh-i.js";import"./LinkBroken01-sFiApfPs.js";import"./CreditCard01-BnEtKIxX.js";import"./SwitchHorizontal01-BRSeU65r.js";import"./Eye-CE9bd3Ra.js";import"./Fingerprint04-ZnmHU3Kp.js";import"./Key01-C2Ozqf6q.js";import"./Minus-vz8sJtmc.js";import"./Monitor01-Ctq4Y9xp.js";import"./Sun-8QBdDNyc.js";import"./Play-B5OMs0GO.js";import"./ShoppingBag01-BZ5p5Jaw.js";import"./Upload01-DQiq1N5L.js";import"./Users01-CJNRoJXK.js";import"./index-B7BDvGS9.js";import"./drawer-CQosC7Hh.js";import"./index-ztFBZP-a.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-BnUu4797.js";import"./use-view-draft-kind-Bm-Nz5rU.js";import"./use-blog-view-CZ2egr0r.js";import"./use-organization-settings-CcEgBKiR.js";import"./schema-DIQ-2mII.js";import"./thread-intent-DJ2isQQx.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-mz6vVQb7.js";import"./session-runtime-CnePJMYk.js";import"./use-decopilot-events-DwV1bANi.js";import"./use-deployment-admin-U97at0FL.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-FqFlDSJV.js";import"./project-icon-BUl2sFaB.js";import"./use-navigate-to-agent-CYt8D-re.js";import"./use-debounced-value-DNV71VAt.js";import"./new-project-dialog-BfJtWdgg.js";import"./label-2ri5y0AT.js";import"./repository-picker-Darc81nL.js";import"./github-icon-HoxHOYky.js";import"./useInfiniteQuery-Comohppg.js";import"./infiniteQueryObserver-CjHha6VI.js";import"./collection-search-ugxEd4a5.js";import"./new-project-store-CUIYzGdu.js";import"./legacy-admin-welcome-dialog-dJnURvJJ.js";import"./required-auth-layout-pSTI6t_x.js";import"./use-org-sso-CCCXGXRa.js";import"./suggestion-Cpa996zU.js";import"./usage-stats-4TwUkhM4.js";import"./utils-CVEq3hMx.js";import"./markdown-Du_1i_DV.js";import"./use-copy-CzwPMJY2.js";import"./form-Bmlz7qRb.js";import"./use-mcp-prompts-DJkMWAp0.js";import"./use-org-fs-BQ1-EjeH.js";import"./task-key-PomUyZRb.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-DnZdk2c2.js";import"./table-Bta2Y1CD.js";import"./empty-state-B5kfNSn2.js";import"./use-id-selection-lO2dafiF.js";import"./use-infinite-scroll-DuNc__Oo.js";import"./task-status-LX7lBTjN.js";import"./thread-sheet-body-CnbjjV-I.js";import"./useSuspenseInfiniteQuery-XSNjcYue.js";import"./pair-M_Ks4KYr.js";import"./use-task-board-items-BOf8g772.js";import"./task-route-DIKoinWO.js";import"./project-index-D3eqGaeY.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CHuh8eBE.js";import"./types-DeHdmC2C.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-CBGDKGBc.js";import"./file-type-icon-Cst2WgHg.js";const qe={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=Z.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=qe[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=qe[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=qe[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(Zt,{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=Z.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=Z.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:Qt},{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:Et},{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=Z.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=Z.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=Z.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=Z.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 Y=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const E=ws(I._meta)??"__other__",Q=_s(I.name,E==="__other__"?void 0:E),A=I.title,xe=A&&A!==I.name?A:go(Q);H.has(E)||H.set(E,{clientId:E,conn:Y.get(E),tools:[]}),H.get(E).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],U=n===null?new Set(J):new Set(n),V=J.every(I=>U.has(I)),O=I=>a(J.every(E=>I.has(E))?null:[...I]),ae=I=>{const E=new Set(U);E.has(I)?E.delete(I):E.add(I),O(E)},ne=(I,E)=>{const Q=new Set(U);for(const A of I)E?Q.add(A):Q.delete(A);O(Q)};y=Lt,P=o,v=j;let q;e[26]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=q):q=e[26];let ie;e[27]!==V||e[28]!==i?(ie=i(V?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=V,e[28]=i,e[29]=ie):ie=e[29];const ue=!V&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[U.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:[q,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=V?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:U.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]!==V||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:V,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=V,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=U.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 E=I.tools.map(bo),Q=E.filter(A=>U.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:U.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 E=I.tools.map(yo),Q=E.filter(A=>U.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:U.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"}],Ze=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>Ze.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=Ze.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:Ze.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=Zs(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 Oo({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(Ot,{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(Vt,{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=Z.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{dO as Qt,c as Z,b as ee,r as w,j as t,B,aY as Zt,m as At,a6 as $t,D as et,v as tt,w as st,x as ot,aU as at,y as nt,t as X,e0 as es,_ as ts,X as ss,Z as os,ar as as,ap as ns,aq as is,Y as ze,b6 as rs,h as Le,aJ as pt,aK as xt,aL as gt,aM as ht,b9 as jt,aN as yt,aO as bt,aP as vt,E as Ke,aG as ls,e8 as Ct,I as Nt,hq as cs,al as ds,b7 as Qe,n as Xe,f as ms}from"./index-BVZH8mqe.js";import{ChatLayout as us}from"./index-BeSn1lKu.js";import{b as it,u as fs,a as ps,Y as xs,k as St,ax as gs,aa as hs,g as js,a_ as Ot,e as Ye}from"./agent-icon-BS6RPQ_A.js";import{n as kt}from"./BookOpen01-CdH9hkvz.js";import{t as rt}from"./ChevronDown-CWnE_Wmz.js";import{e as ys}from"./UserSquare-D44lppb_.js";import{s as Tt}from"./File02-R0RW2VCN.js";import{f as lt,b as Et,t as zt}from"./Tool01-BEo5XKkS.js";import{a as bs}from"./Image01-Dfaw0Ysf.js";import{i as vs}from"./SearchMd-DioGBYbO.js";import{B as Kt}from"./badge-wWozseh3.js";import{C as Ft}from"./checkbox-Cs2Li62P.js";import{S as ct}from"./switch-BX8b8tB6.js";import{a as Mt,b as Rt,P as Lt}from"./popover-9q-VKuQx.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-DQwD4jPt.js";import{g as ws,a as _s}from"./gateway-client-8UpI_Rdq.js";import{b as dt}from"./use-connection-C-m8b2Fk.js";import{u as Ds}from"./use-mcp-client-7NPwItGN.js";import{u as Is}from"./use-mcp-tools-DqnFukoV.js";import{I as Ps}from"./integration-icon-CcV5frEs.js";import{M as As}from"./select-model-CIoiyBbQ.js";import{u as $s}from"./use-ai-providers-C30oeluP.js";import{U as Os,b as Es}from"./build-improve-prompt-doc-BpGLSKmi.js";import{a as ve,c as zs,d as Ks}from"./use-automations-CtbjaE6m.js";import{c as Fs,b as Ms,P as Rs,Q as Ls}from"./chat-context-B6UvvRRf.js";import{b as Us,C as Vs,a as Ws}from"./collapsible-D4n-ssmc.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-CfeBMv8z.js";import{u as Js}from"./shell-layout-BT6RZJ9X.js";import{i as Ut}from"./ArrowLeft-DcKid1bz.js";import{i as Xs}from"./ArrowUp-CjAvmMLL.js";import{s as Me}from"./UserCheck01-B1rJ65So.js";import{s as Ys}from"./Trash01-l4iOtEBN.js";import{s as mt}from"./XClose-BwokcWjs.js";import{u as _t}from"./use-debounced-autosave-C6OCZte6.js";import{T as qs,a as Qs}from"./input-A20A_mwu.js";import{u as Zs,a as eo,J as Vt}from"./jira-icon-DlgPbK3F.js";import{s as to}from"./Plus-BJfG2DpW.js";import{i as ut}from"./Zap-DoXbwvKP.js";import{l as We,H as so}from"./config-zmlExYow.js";import{C as oo}from"./task-board-DLNmAHmR.js";import{M as Wt}from"./multi-select-Dak9eW6K.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-BJ7g3jt1.js";import{b as ao,a as no,T as Dt}from"./tabs-ClkuSww4.js";import{MonacoCodeEditor as io}from"./monaco-editor-C3D0iT4a.js";import{A as ro}from"./automation-runs-DvuKFaor.js";import{C as lo}from"./collection-tabs-B1EmRyNS.js";import{a as co}from"./use-panel-navigate-DPGDB1T1.js";import"./use-mobile-5e0sSd3X.js";import"./MessageCircle01-44De_8cO.js";import"./thread-button-Cra7mRSW.js";import"./use-sidebar-collapsed-DHFFs76T.js";import"./sheet-B1zTFenO.js";import"./use-chat-layout-state-DBVzfsNg.js";import"./toolbar-icon-button-Bo8OSaqx.js";import"./use-in-settings-qQ2sbeu5.js";import"./resizable-AytQ6SyX.js";import"./route-page-header-DnxbH76I.js";import"./LayoutLeft-B-cVGLzN.js";import"./use-project-scope-BIucgFKc.js";import"./repository-binding-BIfwJXBl.js";import"./use-current-view-CHhVzMwk.js";import"./thread-route-muzc431X.js";import"./index-BFjuxezw.js";import"./auth-C3yWOKhG.js";import"./AlertCircle-kHXzu73r.js";import"./ArrowRight-ajc9j6D-.js";import"./Globe04-DudUQgTy.js";import"./CheckCircle-DG9pUM8a.js";import"./TrendUp01-aviiZW6M.js";import"./ChevronSelectorVertical-ByCpNum0.js";import"./ChevronUp-C_rAiuf1.js";import"./LinkBroken01-CpDM6pG5.js";import"./CreditCard01-C6eDo3p0.js";import"./SwitchHorizontal01-sPBj-OL8.js";import"./Eye-DFeDq2Hx.js";import"./Fingerprint04-D-EFj_6a.js";import"./Key01-9JQCF719.js";import"./Minus-09UkIbMe.js";import"./Monitor01-BPQw3JGv.js";import"./Sun-U7FHkItb.js";import"./Play-BRDYCYl7.js";import"./ShoppingBag01-CdQhBv_H.js";import"./Upload01-BhvyPM8u.js";import"./Users01-CxQycal6.js";import"./index-B-PIhH8l.js";import"./drawer-BMY0wk6r.js";import"./index-GMDFirHC.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-B8D7pawV.js";import"./use-view-draft-kind-BG3Ihm6n.js";import"./use-blog-view-D_--u8j_.js";import"./use-organization-settings-BoOQOwrg.js";import"./schema-C2ft4i4u.js";import"./thread-intent-CYNXEfHP.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CWcYbOm5.js";import"./session-runtime-CRv5j4jh.js";import"./use-decopilot-events-BxfGa0_j.js";import"./use-deployment-admin-COmgwPUq.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-Dvph2j3S.js";import"./project-icon-C8Sq9Uyo.js";import"./use-navigate-to-agent-CtsEyeFb.js";import"./use-debounced-value-By7KggQt.js";import"./new-project-dialog-BeD2i_Hm.js";import"./label-Dc_tSb6f.js";import"./repository-picker-vN0XhyKR.js";import"./github-icon-C-V2EETw.js";import"./useInfiniteQuery-BJoJv4VQ.js";import"./infiniteQueryObserver-f5kG4cIT.js";import"./collection-search-CDDauqCr.js";import"./new-project-store-BfrY24D-.js";import"./legacy-admin-welcome-dialog-DtYrilLw.js";import"./required-auth-layout-BXbkUsYd.js";import"./use-org-sso-BKXSOEb_.js";import"./suggestion-B9N6oqkG.js";import"./usage-stats-Dzci2XGy.js";import"./utils-CVEq3hMx.js";import"./markdown-DvUyMKlV.js";import"./use-copy-BHPkBnZF.js";import"./form-BZ2nSi_9.js";import"./use-mcp-prompts-C7QHdaI_.js";import"./use-org-fs-Cq9dcDh3.js";import"./task-key-BjUMQvHV.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-C6mSxTrt.js";import"./table-DNvSx4nT.js";import"./empty-state-hp9a4BQn.js";import"./use-id-selection-BOT74h8X.js";import"./use-infinite-scroll-Ct_PbHT3.js";import"./task-status-CvKutQFi.js";import"./thread-sheet-body-B4d3KSH7.js";import"./useSuspenseInfiniteQuery-BFQG7J82.js";import"./pair-C4tumP78.js";import"./use-task-board-items-D4fdH47R.js";import"./task-route-B6gZ9LxC.js";import"./project-index-BOyydKXT.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CRu4PbUr.js";import"./types-D_vNw-3-.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-CrNLjxTt.js";import"./file-type-icon-DOJ02s9h.js";const qe={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=Z.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=qe[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=qe[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=qe[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(Zt,{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=Z.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=Z.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:Qt},{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:Et},{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=Z.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=Z.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=Z.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=Z.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 Y=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const E=ws(I._meta)??"__other__",Q=_s(I.name,E==="__other__"?void 0:E),A=I.title,xe=A&&A!==I.name?A:go(Q);H.has(E)||H.set(E,{clientId:E,conn:Y.get(E),tools:[]}),H.get(E).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],U=n===null?new Set(J):new Set(n),V=J.every(I=>U.has(I)),O=I=>a(J.every(E=>I.has(E))?null:[...I]),ae=I=>{const E=new Set(U);E.has(I)?E.delete(I):E.add(I),O(E)},ne=(I,E)=>{const Q=new Set(U);for(const A of I)E?Q.add(A):Q.delete(A);O(Q)};y=Lt,P=o,v=j;let q;e[26]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=q):q=e[26];let ie;e[27]!==V||e[28]!==i?(ie=i(V?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=V,e[28]=i,e[29]=ie):ie=e[29];const ue=!V&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[U.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:[q,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=V?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:U.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]!==V||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:V,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=V,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=U.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 E=I.tools.map(bo),Q=E.filter(A=>U.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:U.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 E=I.tools.map(yo),Q=E.filter(A=>U.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:U.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"}],Ze=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>Ze.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=Ze.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:Ze.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=Zs(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 Oo({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(Ot,{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(Vt,{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=Z.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,b7 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,b7 as U}from"./index-BVZH8mqe.js";import{ChatLayout as W}from"./index-BeSn1lKu.js";import{s as X}from"./Plus-BJfG2DpW.js";import{a as Y}from"./UserCheck01-B1rJ65So.js";import{i as F}from"./Zap-DoXbwvKP.js";import{S as Z}from"./search-input-D3b0Dc5Y.js";import{E as $}from"./empty-state-hp9a4BQn.js";import{u as tt,a as et,b as it}from"./use-automations-CtbjaE6m.js";import{a as ot}from"./use-panel-navigate-DPGDB1T1.js";import{A as st}from"./automation-list-row-BYtaYJm7.js";import{c as nt}from"./thread-route-muzc431X.js";import"./use-mobile-5e0sSd3X.js";import"./tooltip-CfeBMv8z.js";import"./index-BFjuxezw.js";import"./MessageCircle01-44De_8cO.js";import"./XClose-BwokcWjs.js";import"./thread-button-Cra7mRSW.js";import"./use-sidebar-collapsed-DHFFs76T.js";import"./sheet-B1zTFenO.js";import"./use-chat-layout-state-DBVzfsNg.js";import"./toolbar-icon-button-Bo8OSaqx.js";import"./use-in-settings-qQ2sbeu5.js";import"./resizable-AytQ6SyX.js";import"./route-page-header-DnxbH76I.js";import"./LayoutLeft-B-cVGLzN.js";import"./use-project-scope-BIucgFKc.js";import"./repository-binding-BIfwJXBl.js";import"./use-mcp-client-7NPwItGN.js";import"./auth-C3yWOKhG.js";import"./use-current-view-CHhVzMwk.js";import"./SearchMd-DioGBYbO.js";import"./badge-wWozseh3.js";import"./SwitchHorizontal01-sPBj-OL8.js";import"./Trash01-l4iOtEBN.js";import"./agent-icon-BS6RPQ_A.js";import"./AlertCircle-kHXzu73r.js";import"./Tool01-BEo5XKkS.js";import"./ArrowUp-CjAvmMLL.js";import"./ArrowLeft-DcKid1bz.js";import"./ArrowRight-ajc9j6D-.js";import"./BookOpen01-CdH9hkvz.js";import"./Globe04-DudUQgTy.js";import"./CheckCircle-DG9pUM8a.js";import"./TrendUp01-aviiZW6M.js";import"./ChevronDown-CWnE_Wmz.js";import"./ChevronSelectorVertical-ByCpNum0.js";import"./ChevronUp-C_rAiuf1.js";import"./UserSquare-D44lppb_.js";import"./LinkBroken01-CpDM6pG5.js";import"./CreditCard01-C6eDo3p0.js";import"./File02-R0RW2VCN.js";import"./Eye-DFeDq2Hx.js";import"./Fingerprint04-D-EFj_6a.js";import"./Image01-Dfaw0Ysf.js";import"./Key01-9JQCF719.js";import"./Minus-09UkIbMe.js";import"./Monitor01-BPQw3JGv.js";import"./Sun-U7FHkItb.js";import"./Play-BRDYCYl7.js";import"./ShoppingBag01-CdQhBv_H.js";import"./Upload01-BhvyPM8u.js";import"./Users01-CxQycal6.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 ge(){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{ge 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,b8 as oe,h as ae,aP as xe,aO as be,aL as ye,aJ as ve,aK as ke,aN as Ce,aM as je,b9 as _e,m as we,ba as Se,bb as Pe,t as T,B as Be,d as De,f as Ae,u as Ee,$ as le,bc as Ne}from"./index-BGvfgBXQ.js";import{ChatLayout as Re}from"./index-jEofb67j.js";import{S as Te}from"./site-draft-actions-CCPyXgQA.js";import{F as $e}from"./feature-gate-WGXGW3TJ.js";import{i as ne}from"./File02-OGn6eCfs.js";import{s as Ie}from"./Plus-KLH-MPJh.js";import{s as Le,i as Ke}from"./UserSquare-BAlzvt_y.js";import{c as ce}from"./UserCheck01-Dq2vpnim.js";import{t as me}from"./Users01-CJNRoJXK.js";import{S as Ve}from"./scroll-area-CLaLCTf7.js";import{T as Me,a as Oe,c as ze}from"./tooltip-D0-ybZJ-.js";import{u as Fe,a as Ge,d as Ue}from"./delete-copy-tGyXeEYr.js";import{u as We,a as Qe,k as Z}from"./use-never-published-Dhj1oB8k.js";import{u as qe}from"./use-delete-block-B3Q8p71v.js";import{d as He,f as Je}from"./site-editor-toast-DjTYO8yl.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-DHBqlB8t.js";import{E as rt}from"./empty-message-CG0mkpBx.js";import{i as it,B as te,u as at,s as lt,o as nt,c as ct,m as mt,b as ee,g as se,e as pt,a as re,l as dt,r as ut,d as ft,f as gt,h as ht}from"./category-tree-B08EozIk.js";import{E as xt}from"./agent-icon-CFsULo4q.js";import{B as bt,a as yt}from"./blog-source-gate-B40koNXU.js";import{r as vt}from"./use-panel-navigate-BEVdshk4.js";import{c as kt}from"./thread-route-DI1GCHqT.js";import{A as Ct}from"./agent-view-guard-BRen2fDa.js";import{a as jt}from"./blog-view-gate-DYONh8sE.js";import"./use-mobile-B4kazYmP.js";import"./MessageCircle01-LN8Gr1lL.js";import"./XClose-CQjSvos9.js";import"./thread-button-Bc5fnhGX.js";import"./use-sidebar-collapsed-Cb1DkW28.js";import"./sheet-CX86ajAE.js";import"./use-chat-layout-state-BWjgOEMc.js";import"./toolbar-icon-button-BmCu83-X.js";import"./use-in-settings-BZ-N_1GQ.js";import"./resizable-BU7UxgwC.js";import"./route-page-header-D3RVWIBC.js";import"./LayoutLeft-tXOkIxzs.js";import"./use-project-scope-DaSiwM20.js";import"./repository-binding-DrxBu24C.js";import"./use-mcp-client-CsG2AAiF.js";import"./auth-WUI0GELm.js";import"./use-current-view-BhCzT_on.js";import"./separator-DE4QJAwp.js";import"./chat-context-Dk_Ebz6D.js";import"./use-view-draft-kind-Bm-Nz5rU.js";import"./use-blog-view-CZ2egr0r.js";import"./use-organization-settings-CcEgBKiR.js";import"./schema-DIQ-2mII.js";import"./task-board-DshmncwN.js";import"./thread-intent-DJ2isQQx.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-mz6vVQb7.js";import"./session-runtime-CnePJMYk.js";import"./use-entitlements-BnUu4797.js";import"./use-ai-providers-Cykm4Omp.js";import"./use-decopilot-events-DwV1bANi.js";import"./use-org-notice-FqFlDSJV.js";import"./popover-BdGhwX6j.js";import"./command-CRJnywSm.js";import"./index-B7BDvGS9.js";import"./SearchMd-1p8IP99o.js";import"./tabs-s8CSecQV.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-C0zFtKr8.js";import"./SwitchHorizontal01-BRSeU65r.js";import"./Tool01-CIkfFpNs.js";import"./Trash01-1e348d5z.js";import"./use-voice-input-l3y10Zzf.js";import"./drawer-CQosC7Hh.js";import"./index-ztFBZP-a.js";import"./checkbox-DR00CmJr.js";import"./Minus-vz8sJtmc.js";import"./select-BH6i4t87.js";import"./index-BdQq_4o_.js";import"./index-CpqnzQ6X.js";import"./ChevronUp-CHkdbh-i.js";import"./ArrowLeft-D_px05Ip.js";import"./ChevronSelectorVertical-BtbkxpS7.js";import"./Key01-C2Ozqf6q.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-Ctq4Y9xp.js";import"./AlertCircle-BPb6lfDc.js";import"./Eye-CE9bd3Ra.js";import"./Image01-Do_f-fPi.js";import"./use-debounced-value-DNV71VAt.js";import"./shell-layout-MrR8EGxZ.js";import"./Globe04-BK5-p2nj.js";import"./use-deployment-admin-U97at0FL.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-Dvda272I.js";import"./Zap-BbT-W69e.js";import"./integration-icon-nO6TvSsO.js";import"./LinkBroken01-sFiApfPs.js";import"./project-icon-BUl2sFaB.js";import"./use-navigate-to-agent-CYt8D-re.js";import"./new-project-dialog-BfJtWdgg.js";import"./label-2ri5y0AT.js";import"./repository-picker-Darc81nL.js";import"./github-icon-HoxHOYky.js";import"./useInfiniteQuery-Comohppg.js";import"./infiniteQueryObserver-CjHha6VI.js";import"./collection-search-ugxEd4a5.js";import"./BookOpen01-CKzuPfPT.js";import"./ShoppingBag01-BZ5p5Jaw.js";import"./new-project-store-CUIYzGdu.js";import"./legacy-admin-welcome-dialog-dJnURvJJ.js";import"./required-auth-layout-pSTI6t_x.js";import"./use-org-sso-CCCXGXRa.js";import"./cms-store-drafts-BdqXOATK.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-BfLRvmz0.js";import"./url-slug-Bt323BC1.js";import"./use-blocks-v8-project-BUDjuC95.js";import"./use-sandbox-events-Bh6eTl2p.js";import"./sandbox-url-D3mC8qhT.js";import"./use-fast-preview-draft-url-Cyb7nHOV.js";import"./blocks-tab-states-Dgkd6bcn.js";import"./empty-state-B5kfNSn2.js";import"./index-CtgoU6en.js";import"./ArrowUp-bsUZSt57.js";import"./input-CIXcgL8B.js";import"./usage-stats-4TwUkhM4.js";import"./utils-CVEq3hMx.js";import"./markdown-Du_1i_DV.js";import"./use-copy-CzwPMJY2.js";import"./gateway-client-Dcj5rv8f.js";import"./form-Bmlz7qRb.js";import"./icon-button-CkP-MdlY.js";import"./file-type-icon-Cst2WgHg.js";import"./chat-draft-x-F0ZPWu.js";import"./ArrowRight-DYc-7xj5.js";import"./Upload01-DQiq1N5L.js";import"./use-deco-credits-D1eTXz3B.js";import"./toggle-group-BjeGXB13.js";import"./input-CWx7kP2y.js";import"./suggestion-Cpa996zU.js";import"./use-mcp-prompts-DJkMWAp0.js";import"./use-org-fs-BQ1-EjeH.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-CXj-cCjT.js";import"./plan-ladder-De9sRz_u.js";import"./add-connection-dialog-b9bCaaJ-.js";import"./extract-connection-data-BwsA-RYq.js";import"./metadata-D72DunRR.js";import"./connection-C7PBWSJ2.js";import"./connection-card-DbjUpBUS.js";import"./connection-slug-xMtStNjP.js";import"./textarea-C_mtz3Kv.js";import"./use-connection-dER7f5j5.js";import"./schema-DklwT0XH.js";import"./connection-form-helpers-tAcDvyB7.js";import"./authenticate-and-persist-oauth-D7yFnk3v.js";import"./mcp-oauth-Be_pa5Ik.js";import"./mcp-oauth-Bppcz_3X.js";import"./collection-tabs-BsiuG_yk.js";import"./badge-xkOOGTR2.js";import"./use-infinite-scroll-DuNc__Oo.js";import"./useSuspenseInfiniteQuery-XSNjcYue.js";import"./use-task-board-items-BOf8g772.js";import"./pair-M_Ks4KYr.js";import"./collapsible-C5AFdLwb.js";import"./task-key-PomUyZRb.js";import"./config-Br1Io2is.js";import"./task-route-DIKoinWO.js";import"./project-index-D3eqGaeY.js";import"./TrendUp01-Sag3n7qI.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CHuh8eBE.js";import"./types-DeHdmC2C.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-CBGDKGBc.js";import"./agent-capabilities-Dsy9OzBC.js";import"./use-cms-publish-actions-CPyM3m5I.js";import"./use-content-sync-BSudZND-.js";import"./sandbox-git-api-lqhbN6-M.js";import"./utils-D3hrWqhu.js";import"./device-hint-D3KIwRP_.js";import"./alert-D6c8UL8s.js";import"./section-array-field-08gf_aaJ.js";import"./editor-DnZdk2c2.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-QpFv1h24.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-oZBvLpfd.js";import"./hosted-reconcile-DipRdTAf.js";import"./search-input-BytjnRYd.js";import"./use-file-configs-D-0GlBYS.js";import"./asset-utils-DedHJB9N.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-D4GKvYHp.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-DCzjvWW2.js";import"./Play-B5OMs0GO.js";import"./use-move-blocks-CQpVSPWP.js";import"./CreditCard01-BnEtKIxX.js";import"./Fingerprint04-ZnmHU3Kp.js";import"./Sun-8QBdDNyc.js";import"./blog-preview-url-CQF91dum.js";import"./use-main-panel-tabs-C_KJU7HA.js";import"./use-mcp-tools-C4sfkkEQ.js";import"./resolve-tab-icon-Bd3WwXB0.js";import"./use-task-metadata-CLvpp-M5.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-BWWCr0OJ.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 E;e[36]!==o?(E=o("sandbox.collectionsSidebar.postSchedule"),e[36]=o,e[37]=E):E=e[37];const U=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]!==E||e[41]!==U||e[42]!==D?(B=t.jsx(J,{icon:xt,label:E,active:U,onClick:D}),e[40]=E,e[41]=U,e[42]=D,e[43]=B):B=e[43];let N;e[44]!==m||e[45]!==A||e[46]!==B||e[47]!==u||e[48]!==b?(N=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]=N):N=e[49];let C;return e[50]!==c||e[51]!==N?(C=t.jsxs("div",{className:"flex w-[208px] shrink-0 flex-col border-r",children:[c,N]}),e[50]=c,e[51]=N,e[52]=C):C=e[52],C}const wt=M.lazy(()=>oe(()=>import("./post-calendar-CYarN2j3.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])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-5hDNYEyc.js"),__vite__mapDeps([149,1,2,79,126,41,76,14,16,146,150,25,35,36,138,122,68,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,69,70,71,72,73,123,103,75,74,3,4,5,6,7,8,9,10,11,12,13,15,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,37,38,39,124,125,127,128,118,119,120,121,129,130,133,117,131,139,140,141,94,142,143,98,99,49,50,51,48,77,78,151,152,145,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,132,153,154,155,156,157,158,159,160,161,162,163,164,40,165])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-DrOqNXNY.js"),__vite__mapDeps([166,1,2,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,4,9,20,17,79,126,41,76,14,16,153,5,154,138,122,123,103,75,74,3,6,7,8,10,11,12,13,15,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,124,125,127,128,118,119,120,121,129,130,133,117,131,139,140,141,94,142,143,98,99,49,50,51,48,77,78,150,151,152,145,155,146,156,80,157,44,45,46,47,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,158,159,160,161,162,163,164,40,43,132,167,168,165,169,137,144,170,171,172])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-jsYDuqDI.js"),__vite__mapDeps([173,1,2,133,118,119,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,120,121,122,123,103,75,76,74,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,124,125,126,41,127,128,129,130,117,131,135,79,151,146,137,49,50,51,48,77,78,138,139,140,141,94,142,143,98,99,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,132,144,165,150,152,145,174,156,170,172,175,176,177,155,171])).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=Fe(),k=Ge(c),l=Pe(e,y),m=We({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,it),E=Qe({orgSlug:d,virtualMcpId:c,branch:u}),[U,D]=M.useState(""),[B,N]=M.useState("list"),[C,$]=M.useState(null),W=o("sandbox.contentBrowser.deleteDialog.title",{noun:C?te[C.kind]:"item"}),K=C?o(Ue("block",b,{neverPublished:E(C.key)}),{label:C.label}):null,V=Xe(K===null?null:{title:W,description:K},b),[O,z]=M.useState(l);O!==l&&(z(l),D(""));const P=at({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),F=lt(s),pe={posts:F.posts.length,authors:F.authors.length,categories:F.categories.length},de=async r=>{const _=se(s,r),I=ee(_,r,pt(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=F.categories.map(Q=>Q.slug??"").filter(Boolean);L.slug=ht(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 Q=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,H]of Q)H?q[G]=H:delete q[G]}for(const{key:Q,payload:G}of dt(q)){const H=ut(G,L);H!==G&&await m.mutateAsync({blockKey:Q,data:ft(Q,gt(H)),...f?{base:{value:q[Q],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(Et,{kind:l,entries:F[l],searchQuery:U,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:N,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(rt,{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??W}),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 Et(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(),E=g.filter(z=>!A||z.label.toLowerCase().includes(A)||z.subtitle.toLowerCase().includes(A)),U=a==="categories"&&!A?nt(E):E.map(Rt),D=`Search ${a}…`,B=`Create new ${te[a]}`;l="flex w-[300px] min-h-0 shrink-0 flex-col border-r";let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground","aria-hidden":!0}),e[16]=N):N=e[16];let C;e[17]!==n?(C=z=>n(z.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:[N,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 W;e[23]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx(Ie,{size:16}),e[23]=W):W=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:W})}),e[24]=B,e[25]=c,e[26]=K):K=e[26];let V;e[27]!==B?(V=t.jsx(Oe,{children:B}),e[27]=B,e[28]=V):V=e[28];let O;e[29]!==K||e[30]!==V?(O=t.jsxs(ze,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=O):O=e[31],e[32]!==O||e[33]!==$?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[$,O]}),e[32]=O,e[33]=$,e[34]=m):m=e[34],x=Ve,k="min-h-0 flex-1",b="p-1",y=E.length===0?t.jsx(Ze,{hasItems:g.length>0,emptyLabel:`No ${a} yet.`,emptyHint:`Click "+" to create your first ${te[a]}.`}):U.map(z=>{const{entry:P,depth:F}=z;return t.jsx("div",{style:{paddingLeft:F*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:mt(P.missing,j)}):void 0,warning:P.duplicateName,warningReason:j("sandbox.itemRow.duplicateName"),subtitle:F>0?ct(P.slug??"",E).map(Nt).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 Nt(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=Ee(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:Ne(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-Cw6GB31X.js","assets/index-BVZH8mqe.js","assets/index-CFbcObvG.css","assets/agent-icon-BS6RPQ_A.js","assets/AlertCircle-kHXzu73r.js","assets/UserCheck01-B1rJ65So.js","assets/Tool01-BEo5XKkS.js","assets/ArrowUp-CjAvmMLL.js","assets/ArrowLeft-DcKid1bz.js","assets/ArrowRight-ajc9j6D-.js","assets/BookOpen01-CdH9hkvz.js","assets/Globe04-DudUQgTy.js","assets/CheckCircle-DG9pUM8a.js","assets/TrendUp01-aviiZW6M.js","assets/ChevronDown-CWnE_Wmz.js","assets/ChevronSelectorVertical-ByCpNum0.js","assets/ChevronUp-C_rAiuf1.js","assets/UserSquare-D44lppb_.js","assets/LinkBroken01-CpDM6pG5.js","assets/CreditCard01-C6eDo3p0.js","assets/File02-R0RW2VCN.js","assets/MessageCircle01-44De_8cO.js","assets/SwitchHorizontal01-sPBj-OL8.js","assets/Eye-DFeDq2Hx.js","assets/Fingerprint04-D-EFj_6a.js","assets/Image01-Dfaw0Ysf.js","assets/Key01-9JQCF719.js","assets/LayoutLeft-B-cVGLzN.js","assets/Minus-09UkIbMe.js","assets/Monitor01-BPQw3JGv.js","assets/Sun-U7FHkItb.js","assets/Play-BRDYCYl7.js","assets/Plus-BJfG2DpW.js","assets/SearchMd-DioGBYbO.js","assets/ShoppingBag01-CdQhBv_H.js","assets/Trash01-l4iOtEBN.js","assets/Upload01-BhvyPM8u.js","assets/Users01-CxQycal6.js","assets/XClose-BwokcWjs.js","assets/Zap-DoXbwvKP.js","assets/scroll-area-w9_Bvwmf.js","assets/index-BdQq_4o_.js","assets/date-utils-CrvIKg-s.js","assets/category-tree-oBVfCVRR.js","assets/empty-message-B3ykEghT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-C4tumP78.js","assets/collapsible-D4n-ssmc.js","assets/use-copy-BHPkBnZF.js","assets/usage-stats-Dzci2XGy.js","assets/utils-CVEq3hMx.js","assets/markdown-DvUyMKlV.js","assets/chat-context-B6UvvRRf.js","assets/use-panel-navigate-DPGDB1T1.js","assets/thread-route-muzc431X.js","assets/use-project-scope-BIucgFKc.js","assets/repository-binding-BIfwJXBl.js","assets/use-mcp-client-7NPwItGN.js","assets/auth-C3yWOKhG.js","assets/use-view-draft-kind-BG3Ihm6n.js","assets/use-blog-view-D_--u8j_.js","assets/use-organization-settings-BoOQOwrg.js","assets/schema-C2ft4i4u.js","assets/task-board-DLNmAHmR.js","assets/thread-intent-CYNXEfHP.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-CWcYbOm5.js","assets/session-runtime-CRv5j4jh.js","assets/use-entitlements-B8D7pawV.js","assets/use-ai-providers-C30oeluP.js","assets/use-current-view-CHhVzMwk.js","assets/use-in-settings-qQ2sbeu5.js","assets/use-decopilot-events-BxfGa0_j.js","assets/use-mobile-5e0sSd3X.js","assets/tooltip-CfeBMv8z.js","assets/index-BFjuxezw.js","assets/gateway-client-8UpI_Rdq.js","assets/form-BZ2nSi_9.js","assets/label-Dc_tSb6f.js","assets/task-key-BjUMQvHV.js","assets/use-task-board-items-D4fdH47R.js","assets/config-zmlExYow.js","assets/task-route-B6gZ9LxC.js","assets/project-index-BOyydKXT.js","assets/shell-layout-BT6RZJ9X.js","assets/use-deployment-admin-COmgwPUq.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-Dvph2j3S.js","assets/command-DQwD4jPt.js","assets/index-B-PIhH8l.js","assets/integration-icon-CcV5frEs.js","assets/project-icon-C8Sq9Uyo.js","assets/use-navigate-to-agent-CtsEyeFb.js","assets/use-debounced-value-By7KggQt.js","assets/new-project-dialog-BeD2i_Hm.js","assets/repository-picker-vN0XhyKR.js","assets/github-icon-C-V2EETw.js","assets/useInfiniteQuery-BJoJv4VQ.js","assets/infiniteQueryObserver-f5kG4cIT.js","assets/collection-search-CDDauqCr.js","assets/new-project-store-BfrY24D-.js","assets/legacy-admin-welcome-dialog-DtYrilLw.js","assets/drawer-BMY0wk6r.js","assets/required-auth-layout-BXbkUsYd.js","assets/use-org-sso-BKXSOEb_.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-CRu4PbUr.js","assets/types-D_vNw-3-.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-B1zTFenO.js","assets/use-connection-C-m8b2Fk.js","assets/use-mcp-prompts-C7QHdaI_.js","assets/use-thread-outputs-CrNLjxTt.js","assets/file-type-icon-DOJ02s9h.js","assets/section-array-field-CkDPdYBe.js","assets/blocks-tab-states-CDYT4Ypi.js","assets/site-editor-toast-vvVLBG6s.js","assets/use-sandbox-events-TxpzU2Iw.js","assets/sandbox-url-D3mC8qhT.js","assets/use-blocks-v8-project-DUe21BCo.js","assets/use-voice-input-BspgCDOI.js","assets/popover-9q-VKuQx.js","assets/index-GMDFirHC.js","assets/checkbox-Cs2Li62P.js","assets/select-BJ7g3jt1.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-JVZxV40b.js","assets/sandbox-git-api-CvJPOlyv.js","assets/empty-state-hp9a4BQn.js","assets/use-move-blocks-Cqt9Q8CZ.js","assets/hosted-reconcile-DS6ZmO5s.js","assets/item-actions-CZD9JeRy.js","assets/badge-wWozseh3.js","assets/empty-state-C4vGG4yC.js","assets/delete-copy-BH5xrx9H.js","assets/use-never-published-BK3TeRer.js","assets/search-input-D3b0Dc5Y.js","assets/tabs-ClkuSww4.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-CCo70YSN.js","assets/asset-utils-CdU3Ttfs.js","assets/index-B4YS6GMo.js","assets/match-site-slug-config-B47_xZCi.js","assets/textarea-BnYcD_gb.js","assets/monaco-editor-C3D0iT4a.js","assets/editor-C6mSxTrt.js","assets/record-editor-BC_pgxjj.js","assets/save-status-eUv6TQpr.js","assets/switch-BX8b8tB6.js","assets/toggle-group-Cu3LE1oL.js","assets/blog-schema-G_pvuSAo.js","assets/held-block-view-xCVzC3Lr.js","assets/calendar-Sr3cNZGh.js","assets/editor-classes-BygI_Lvg.js","assets/sortable.esm-BzU9NXcP.js","assets/named-rule-step-BnN-hlGb.js","assets/slider-46E0vJw8.js","assets/index--r4E_gW7.js","assets/tooltipContext-BMU8k-Rs.js","assets/CategoricalChart-DW_7VziR.js","assets/index-BYQu9U5P.js","assets/combobox-LL4GsRoi.js","assets/use-autosave-Bpr4B2YO.js","assets/category-editor-DZLdQENU.js","assets/blog-preview-url-D1Gi50Jy.js","assets/use-fast-preview-draft-url-BQhDGlp9.js","assets/block-document-CQOXOWIP.js","assets/suggestion-B9N6oqkG.js","assets/product-picker-dialog-DVs_Kuee.js","assets/index-6V91lP75.js","assets/context-BXIwVeKt.js","assets/index-CJQHYkKb.js","assets/use-org-fs-Cq9dcDh3.js","assets/icon-button-CFamiizZ.js","assets/use-delete-block-3AD9rKWc.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as X,b as ie,j as t,r as M,b8 as oe,h as ae,aP as xe,aO as be,aL as ye,aJ as ve,aK as ke,aN as Ce,aM as je,b9 as _e,m as we,ba as Se,bb as Pe,t as T,B as Be,d as De,f as Ae,u as Ee,$ as le,bc as Ne}from"./index-BVZH8mqe.js";import{ChatLayout as Re}from"./index-BeSn1lKu.js";import{S as Te}from"./site-draft-actions-BhvNLFOt.js";import{F as $e}from"./feature-gate-DtqeHOu4.js";import{i as ne}from"./File02-R0RW2VCN.js";import{s as Ie}from"./Plus-BJfG2DpW.js";import{s as Le,i as Ke}from"./UserSquare-D44lppb_.js";import{c as ce}from"./UserCheck01-B1rJ65So.js";import{t as me}from"./Users01-CxQycal6.js";import{S as Ve}from"./scroll-area-w9_Bvwmf.js";import{T as Me,a as Oe,c as ze}from"./tooltip-CfeBMv8z.js";import{u as Fe,a as Ge,d as Ue}from"./delete-copy-BH5xrx9H.js";import{u as We,a as Qe,k as Z}from"./use-never-published-BK3TeRer.js";import{u as qe}from"./use-delete-block-3AD9rKWc.js";import{d as He,f as Je}from"./site-editor-toast-vvVLBG6s.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-CZD9JeRy.js";import{E as rt}from"./empty-message-B3ykEghT.js";import{i as it,B as te,u as at,s as lt,o as nt,c as ct,m as mt,b as ee,g as se,e as pt,a as re,l as dt,r as ut,d as ft,f as gt,h as ht}from"./category-tree-oBVfCVRR.js";import{E as xt}from"./agent-icon-BS6RPQ_A.js";import{B as bt,a as yt}from"./blog-source-gate-Z08IMogx.js";import{r as vt}from"./use-panel-navigate-DPGDB1T1.js";import{c as kt}from"./thread-route-muzc431X.js";import{A as Ct}from"./agent-view-guard-dXJW4cSq.js";import{a as jt}from"./blog-view-gate-WETs9z4-.js";import"./use-mobile-5e0sSd3X.js";import"./MessageCircle01-44De_8cO.js";import"./XClose-BwokcWjs.js";import"./thread-button-Cra7mRSW.js";import"./use-sidebar-collapsed-DHFFs76T.js";import"./sheet-B1zTFenO.js";import"./use-chat-layout-state-DBVzfsNg.js";import"./toolbar-icon-button-Bo8OSaqx.js";import"./use-in-settings-qQ2sbeu5.js";import"./resizable-AytQ6SyX.js";import"./route-page-header-DnxbH76I.js";import"./LayoutLeft-B-cVGLzN.js";import"./use-project-scope-BIucgFKc.js";import"./repository-binding-BIfwJXBl.js";import"./use-mcp-client-7NPwItGN.js";import"./auth-C3yWOKhG.js";import"./use-current-view-CHhVzMwk.js";import"./separator-DUnD5wBI.js";import"./chat-context-B6UvvRRf.js";import"./use-view-draft-kind-BG3Ihm6n.js";import"./use-blog-view-D_--u8j_.js";import"./use-organization-settings-BoOQOwrg.js";import"./schema-C2ft4i4u.js";import"./task-board-DLNmAHmR.js";import"./thread-intent-CYNXEfHP.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CWcYbOm5.js";import"./session-runtime-CRv5j4jh.js";import"./use-entitlements-B8D7pawV.js";import"./use-ai-providers-C30oeluP.js";import"./use-decopilot-events-BxfGa0_j.js";import"./use-org-notice-Dvph2j3S.js";import"./popover-9q-VKuQx.js";import"./command-DQwD4jPt.js";import"./index-B-PIhH8l.js";import"./SearchMd-DioGBYbO.js";import"./tabs-ClkuSww4.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-CWnE_Wmz.js";import"./SwitchHorizontal01-sPBj-OL8.js";import"./Tool01-BEo5XKkS.js";import"./Trash01-l4iOtEBN.js";import"./use-voice-input-BspgCDOI.js";import"./drawer-BMY0wk6r.js";import"./index-GMDFirHC.js";import"./checkbox-Cs2Li62P.js";import"./Minus-09UkIbMe.js";import"./select-BJ7g3jt1.js";import"./index-BdQq_4o_.js";import"./index-BFjuxezw.js";import"./ChevronUp-C_rAiuf1.js";import"./ArrowLeft-DcKid1bz.js";import"./ChevronSelectorVertical-ByCpNum0.js";import"./Key01-9JQCF719.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./Monitor01-BPQw3JGv.js";import"./AlertCircle-kHXzu73r.js";import"./Eye-DFeDq2Hx.js";import"./Image01-Dfaw0Ysf.js";import"./use-debounced-value-By7KggQt.js";import"./shell-layout-BT6RZJ9X.js";import"./Globe04-DudUQgTy.js";import"./use-deployment-admin-COmgwPUq.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-DG9pUM8a.js";import"./Zap-DoXbwvKP.js";import"./integration-icon-CcV5frEs.js";import"./LinkBroken01-CpDM6pG5.js";import"./project-icon-C8Sq9Uyo.js";import"./use-navigate-to-agent-CtsEyeFb.js";import"./new-project-dialog-BeD2i_Hm.js";import"./label-Dc_tSb6f.js";import"./repository-picker-vN0XhyKR.js";import"./github-icon-C-V2EETw.js";import"./useInfiniteQuery-BJoJv4VQ.js";import"./infiniteQueryObserver-f5kG4cIT.js";import"./collection-search-CDDauqCr.js";import"./BookOpen01-CdH9hkvz.js";import"./ShoppingBag01-CdQhBv_H.js";import"./new-project-store-BfrY24D-.js";import"./legacy-admin-welcome-dialog-DtYrilLw.js";import"./required-auth-layout-BXbkUsYd.js";import"./use-org-sso-BKXSOEb_.js";import"./cms-store-drafts-DDk2L1_s.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-TQWeP4ry.js";import"./url-slug-BOPVIawN.js";import"./use-blocks-v8-project-DUe21BCo.js";import"./use-sandbox-events-TxpzU2Iw.js";import"./sandbox-url-D3mC8qhT.js";import"./use-fast-preview-draft-url-BQhDGlp9.js";import"./blocks-tab-states-CDYT4Ypi.js";import"./empty-state-hp9a4BQn.js";import"./index-D_u7RJfU.js";import"./ArrowUp-CjAvmMLL.js";import"./input-o0eNZBV4.js";import"./usage-stats-Dzci2XGy.js";import"./utils-CVEq3hMx.js";import"./markdown-DvUyMKlV.js";import"./use-copy-BHPkBnZF.js";import"./gateway-client-8UpI_Rdq.js";import"./form-BZ2nSi_9.js";import"./icon-button-CFamiizZ.js";import"./file-type-icon-DOJ02s9h.js";import"./chat-draft-D0WJnhz_.js";import"./ArrowRight-ajc9j6D-.js";import"./Upload01-BhvyPM8u.js";import"./use-deco-credits-19cW8oHb.js";import"./toggle-group-Cu3LE1oL.js";import"./input-A20A_mwu.js";import"./suggestion-B9N6oqkG.js";import"./use-mcp-prompts-C7QHdaI_.js";import"./use-org-fs-Cq9dcDh3.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-BGOy9Z00.js";import"./plan-ladder-BlcJL4hV.js";import"./add-connection-dialog-AJ93ohYz.js";import"./extract-connection-data-B_eUCQ7e.js";import"./metadata-D72DunRR.js";import"./connection-B7vXPxEB.js";import"./connection-card-DqrVYaVF.js";import"./connection-slug-DgGnB6qk.js";import"./textarea-BnYcD_gb.js";import"./use-connection-C-m8b2Fk.js";import"./schema-CATZG76m.js";import"./connection-form-helpers-CipIPASt.js";import"./authenticate-and-persist-oauth-CIyQIb0N.js";import"./mcp-oauth-CIY9YLWi.js";import"./mcp-oauth-NdGb5Zj9.js";import"./collection-tabs-B1EmRyNS.js";import"./badge-wWozseh3.js";import"./use-infinite-scroll-Ct_PbHT3.js";import"./useSuspenseInfiniteQuery-BFQG7J82.js";import"./use-task-board-items-D4fdH47R.js";import"./pair-C4tumP78.js";import"./collapsible-D4n-ssmc.js";import"./task-key-BjUMQvHV.js";import"./config-zmlExYow.js";import"./task-route-B6gZ9LxC.js";import"./project-index-BOyydKXT.js";import"./TrendUp01-aviiZW6M.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CRu4PbUr.js";import"./types-D_vNw-3-.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-CrNLjxTt.js";import"./agent-capabilities-CJLhsDjp.js";import"./use-cms-publish-actions-CWkUAckV.js";import"./use-content-sync-BJ7PE3PC.js";import"./sandbox-git-api-CvJPOlyv.js";import"./utils-JVZxV40b.js";import"./device-hint-CMC1mr9e.js";import"./alert-hKxZXEZZ.js";import"./section-array-field-CkDPdYBe.js";import"./editor-C6mSxTrt.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-CO9pd80k.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./index-B4YS6GMo.js";import"./hosted-reconcile-DS6ZmO5s.js";import"./search-input-D3b0Dc5Y.js";import"./use-file-configs-CCo70YSN.js";import"./asset-utils-CdU3Ttfs.js";import"./date-utils-CrvIKg-s.js";import"./empty-state-C4vGG4yC.js";import"./match-site-slug-config-B47_xZCi.js";import"./monaco-editor-C3D0iT4a.js";import"./Play-BRDYCYl7.js";import"./use-move-blocks-Cqt9Q8CZ.js";import"./CreditCard01-C6eDo3p0.js";import"./Fingerprint04-D-EFj_6a.js";import"./Sun-U7FHkItb.js";import"./blog-preview-url-D1Gi50Jy.js";import"./use-main-panel-tabs-CPcNwsEn.js";import"./use-mcp-tools-DqnFukoV.js";import"./resolve-tab-icon-BzV0wsYq.js";import"./use-task-metadata-CSvrbSt0.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-SSp2DD_u.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 E;e[36]!==o?(E=o("sandbox.collectionsSidebar.postSchedule"),e[36]=o,e[37]=E):E=e[37];const U=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]!==E||e[41]!==U||e[42]!==D?(B=t.jsx(J,{icon:xt,label:E,active:U,onClick:D}),e[40]=E,e[41]=U,e[42]=D,e[43]=B):B=e[43];let N;e[44]!==m||e[45]!==A||e[46]!==B||e[47]!==u||e[48]!==b?(N=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]=N):N=e[49];let C;return e[50]!==c||e[51]!==N?(C=t.jsxs("div",{className:"flex w-[208px] shrink-0 flex-col border-r",children:[c,N]}),e[50]=c,e[51]=N,e[52]=C):C=e[52],C}const wt=M.lazy(()=>oe(()=>import("./post-calendar-Cw6GB31X.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])).then(i=>({default:i.PostCalendar}))),St=M.lazy(()=>oe(()=>import("./record-editor-BC_pgxjj.js"),__vite__mapDeps([149,1,2,79,126,41,76,14,16,146,150,25,35,36,138,122,68,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,69,70,71,72,73,123,103,75,74,3,4,5,6,7,8,9,10,11,12,13,15,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,37,38,39,124,125,127,128,118,119,120,121,129,130,133,117,131,139,140,141,94,142,143,98,99,49,50,51,48,77,78,151,152,145,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,132,153,154,155,156,157,158,159,160,161,162,163,164,40,165])).then(i=>({default:i.RecordEditor}))),Pt=M.lazy(()=>oe(()=>import("./category-editor-DZLdQENU.js"),__vite__mapDeps([166,1,2,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,4,9,20,17,79,126,41,76,14,16,153,5,154,138,122,123,103,75,74,3,6,7,8,10,11,12,13,15,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,124,125,127,128,118,119,120,121,129,130,133,117,131,139,140,141,94,142,143,98,99,49,50,51,48,77,78,150,151,152,145,155,146,156,80,157,44,45,46,47,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,158,159,160,161,162,163,164,40,43,132,167,168,165,169,137,144,170,171,172])).then(i=>({default:i.CategoryEditor}))),Bt=M.lazy(()=>oe(()=>import("./context-BXIwVeKt.js"),__vite__mapDeps([173,1,2,133,118,119,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,120,121,122,123,103,75,76,74,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,124,125,126,41,127,128,129,130,117,131,135,79,151,146,137,49,50,51,48,77,78,138,139,140,141,94,142,143,98,99,43,44,45,46,47,80,81,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,132,144,165,150,152,145,174,156,170,172,175,176,177,155,171])).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=Fe(),k=Ge(c),l=Pe(e,y),m=We({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,it),E=Qe({orgSlug:d,virtualMcpId:c,branch:u}),[U,D]=M.useState(""),[B,N]=M.useState("list"),[C,$]=M.useState(null),W=o("sandbox.contentBrowser.deleteDialog.title",{noun:C?te[C.kind]:"item"}),K=C?o(Ue("block",b,{neverPublished:E(C.key)}),{label:C.label}):null,V=Xe(K===null?null:{title:W,description:K},b),[O,z]=M.useState(l);O!==l&&(z(l),D(""));const P=at({orgSlug:d,virtualMcpId:c,branch:u,decofile:s}),F=lt(s),pe={posts:F.posts.length,authors:F.authors.length,categories:F.categories.length},de=async r=>{const _=se(s,r),I=ee(_,r,pt(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=F.categories.map(Q=>Q.slug??"").filter(Boolean);L.slug=ht(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 Q=await Promise.all(A.map(async G=>[G,await S(s,G)]));for(const[G,H]of Q)H?q[G]=H:delete q[G]}for(const{key:Q,payload:G}of dt(q)){const H=ut(G,L);H!==G&&await m.mutateAsync({blockKey:Q,data:ft(Q,gt(H)),...f?{base:{value:q[Q],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(Et,{kind:l,entries:F[l],searchQuery:U,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:N,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(rt,{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??W}),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 Et(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(),E=g.filter(z=>!A||z.label.toLowerCase().includes(A)||z.subtitle.toLowerCase().includes(A)),U=a==="categories"&&!A?nt(E):E.map(Rt),D=`Search ${a}…`,B=`Create new ${te[a]}`;l="flex w-[300px] min-h-0 shrink-0 flex-col border-r";let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground","aria-hidden":!0}),e[16]=N):N=e[16];let C;e[17]!==n?(C=z=>n(z.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:[N,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 W;e[23]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx(Ie,{size:16}),e[23]=W):W=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:W})}),e[24]=B,e[25]=c,e[26]=K):K=e[26];let V;e[27]!==B?(V=t.jsx(Oe,{children:B}),e[27]=B,e[28]=V):V=e[28];let O;e[29]!==K||e[30]!==V?(O=t.jsxs(ze,{children:[K,V]}),e[29]=K,e[30]=V,e[31]=O):O=e[31],e[32]!==O||e[33]!==$?(m=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-1 border-b px-2",children:[$,O]}),e[32]=O,e[33]=$,e[34]=m):m=e[34],x=Ve,k="min-h-0 flex-1",b="p-1",y=E.length===0?t.jsx(Ze,{hasItems:g.length>0,emptyLabel:`No ${a} yet.`,emptyHint:`Click "+" to create your first ${te[a]}.`}):U.map(z=>{const{entry:P,depth:F}=z;return t.jsx("div",{style:{paddingLeft:F*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:mt(P.missing,j)}):void 0,warning:P.duplicateName,warningReason:j("sandbox.itemRow.duplicateName"),subtitle:F>0?ct(P.slug??"",E).map(Nt).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 Nt(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=Ee(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:Ne(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 T,r as B,m as re,j as n,b as se,bd as xe,b6 as we,B as ce,a9 as Pe,at as ye,b8 as Se,be as je,n as Ee,bc as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bf as Be,bg as De}from"./index-BGvfgBXQ.js";import{ChatLayout as Le}from"./index-jEofb67j.js";import{b as Ie,S as $e}from"./site-draft-actions-CCPyXgQA.js";import{F as Te}from"./feature-gate-WGXGW3TJ.js";import{E as be}from"./empty-state-D4GKvYHp.js";import{F as ze,n as Ae}from"./agent-icon-CFsULo4q.js";import{d as Ce}from"./UserSquare-BAlzvt_y.js";import{u as Oe}from"./use-fast-preview-draft-url-Cyb7nHOV.js";import{u as Fe,a as He,j as Ke}from"./category-tree-B08EozIk.js";import{i as Me}from"./Monitor01-Ctq4Y9xp.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe}from"./frame-navigation-DiMr25uz.js";import{g as Ye}from"./site-editor-toast-DjTYO8yl.js";import{b as qe}from"./use-sandbox-events-Bh6eTl2p.js";import{b as Je,f as Qe}from"./blog-preview-url-CQF91dum.js";import{B as Ze,a as et}from"./blog-source-gate-B40koNXU.js";import{r as tt}from"./use-panel-navigate-BEVdshk4.js";import{c as ot}from"./thread-route-DI1GCHqT.js";import{a as it}from"./blog-view-gate-DYONh8sE.js";import"./use-mobile-B4kazYmP.js";import"./tooltip-D0-ybZJ-.js";import"./index-CpqnzQ6X.js";import"./MessageCircle01-LN8Gr1lL.js";import"./XClose-CQjSvos9.js";import"./thread-button-Bc5fnhGX.js";import"./use-sidebar-collapsed-Cb1DkW28.js";import"./sheet-CX86ajAE.js";import"./use-chat-layout-state-BWjgOEMc.js";import"./toolbar-icon-button-BmCu83-X.js";import"./use-in-settings-BZ-N_1GQ.js";import"./resizable-BU7UxgwC.js";import"./route-page-header-D3RVWIBC.js";import"./LayoutLeft-tXOkIxzs.js";import"./use-project-scope-DaSiwM20.js";import"./repository-binding-DrxBu24C.js";import"./use-mcp-client-CsG2AAiF.js";import"./auth-WUI0GELm.js";import"./use-current-view-BhCzT_on.js";import"./separator-DE4QJAwp.js";import"./chat-context-Dk_Ebz6D.js";import"./use-view-draft-kind-Bm-Nz5rU.js";import"./use-blog-view-CZ2egr0r.js";import"./use-organization-settings-CcEgBKiR.js";import"./schema-DIQ-2mII.js";import"./task-board-DshmncwN.js";import"./thread-intent-DJ2isQQx.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-mz6vVQb7.js";import"./session-runtime-CnePJMYk.js";import"./use-entitlements-BnUu4797.js";import"./use-ai-providers-Cykm4Omp.js";import"./use-decopilot-events-DwV1bANi.js";import"./use-org-notice-FqFlDSJV.js";import"./popover-BdGhwX6j.js";import"./command-CRJnywSm.js";import"./index-B7BDvGS9.js";import"./SearchMd-1p8IP99o.js";import"./tabs-s8CSecQV.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-C0zFtKr8.js";import"./UserCheck01-Dq2vpnim.js";import"./SwitchHorizontal01-BRSeU65r.js";import"./Tool01-CIkfFpNs.js";import"./Plus-KLH-MPJh.js";import"./Trash01-1e348d5z.js";import"./use-voice-input-l3y10Zzf.js";import"./drawer-CQosC7Hh.js";import"./index-ztFBZP-a.js";import"./checkbox-DR00CmJr.js";import"./Minus-vz8sJtmc.js";import"./select-BH6i4t87.js";import"./index-BdQq_4o_.js";import"./ChevronUp-CHkdbh-i.js";import"./ArrowLeft-D_px05Ip.js";import"./ChevronSelectorVertical-BtbkxpS7.js";import"./Key01-C2Ozqf6q.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-BPb6lfDc.js";import"./Eye-CE9bd3Ra.js";import"./Image01-Do_f-fPi.js";import"./use-debounced-value-DNV71VAt.js";import"./shell-layout-MrR8EGxZ.js";import"./Globe04-BK5-p2nj.js";import"./use-deployment-admin-U97at0FL.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-Dvda272I.js";import"./Zap-BbT-W69e.js";import"./integration-icon-nO6TvSsO.js";import"./LinkBroken01-sFiApfPs.js";import"./project-icon-BUl2sFaB.js";import"./use-navigate-to-agent-CYt8D-re.js";import"./new-project-dialog-BfJtWdgg.js";import"./label-2ri5y0AT.js";import"./repository-picker-Darc81nL.js";import"./github-icon-HoxHOYky.js";import"./useInfiniteQuery-Comohppg.js";import"./infiniteQueryObserver-CjHha6VI.js";import"./collection-search-ugxEd4a5.js";import"./BookOpen01-CKzuPfPT.js";import"./ShoppingBag01-BZ5p5Jaw.js";import"./new-project-store-CUIYzGdu.js";import"./legacy-admin-welcome-dialog-dJnURvJJ.js";import"./required-auth-layout-pSTI6t_x.js";import"./use-org-sso-CCCXGXRa.js";import"./cms-store-drafts-BdqXOATK.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-BfLRvmz0.js";import"./url-slug-Bt323BC1.js";import"./use-blocks-v8-project-BUDjuC95.js";import"./blocks-tab-states-Dgkd6bcn.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-B5kfNSn2.js";import"./index-CtgoU6en.js";import"./ArrowUp-bsUZSt57.js";import"./input-CIXcgL8B.js";import"./usage-stats-4TwUkhM4.js";import"./utils-CVEq3hMx.js";import"./markdown-Du_1i_DV.js";import"./use-copy-CzwPMJY2.js";import"./File02-OGn6eCfs.js";import"./gateway-client-Dcj5rv8f.js";import"./form-Bmlz7qRb.js";import"./icon-button-CkP-MdlY.js";import"./file-type-icon-Cst2WgHg.js";import"./chat-draft-x-F0ZPWu.js";import"./ArrowRight-DYc-7xj5.js";import"./Upload01-DQiq1N5L.js";import"./use-deco-credits-D1eTXz3B.js";import"./toggle-group-BjeGXB13.js";import"./input-CWx7kP2y.js";import"./suggestion-Cpa996zU.js";import"./use-mcp-prompts-DJkMWAp0.js";import"./use-org-fs-BQ1-EjeH.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-CXj-cCjT.js";import"./plan-ladder-De9sRz_u.js";import"./add-connection-dialog-b9bCaaJ-.js";import"./extract-connection-data-BwsA-RYq.js";import"./metadata-D72DunRR.js";import"./connection-C7PBWSJ2.js";import"./connection-card-DbjUpBUS.js";import"./connection-slug-xMtStNjP.js";import"./textarea-C_mtz3Kv.js";import"./use-connection-dER7f5j5.js";import"./schema-DklwT0XH.js";import"./connection-form-helpers-tAcDvyB7.js";import"./authenticate-and-persist-oauth-D7yFnk3v.js";import"./mcp-oauth-Be_pa5Ik.js";import"./mcp-oauth-Bppcz_3X.js";import"./collection-tabs-BsiuG_yk.js";import"./badge-xkOOGTR2.js";import"./use-infinite-scroll-DuNc__Oo.js";import"./useSuspenseInfiniteQuery-XSNjcYue.js";import"./use-task-board-items-BOf8g772.js";import"./pair-M_Ks4KYr.js";import"./collapsible-C5AFdLwb.js";import"./task-key-PomUyZRb.js";import"./config-Br1Io2is.js";import"./task-route-DIKoinWO.js";import"./project-index-D3eqGaeY.js";import"./TrendUp01-Sag3n7qI.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CHuh8eBE.js";import"./types-DeHdmC2C.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-CBGDKGBc.js";import"./agent-capabilities-Dsy9OzBC.js";import"./use-cms-publish-actions-CPyM3m5I.js";import"./use-content-sync-BSudZND-.js";import"./sandbox-git-api-lqhbN6-M.js";import"./utils-D3hrWqhu.js";import"./device-hint-D3KIwRP_.js";import"./alert-D6c8UL8s.js";import"./section-array-field-08gf_aaJ.js";import"./editor-DnZdk2c2.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-QpFv1h24.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-BnEtKIxX.js";import"./Fingerprint04-ZnmHU3Kp.js";import"./Sun-8QBdDNyc.js";import"./Play-B5OMs0GO.js";import"./Users01-CJNRoJXK.js";import"./empty-message-CG0mkpBx.js";import"./use-move-blocks-CQpVSPWP.js";import"./hosted-reconcile-DipRdTAf.js";const rt={mobile:{width:412,height:823},tablet:{width:1024,height:1366},desktop:{width:1280,height:800}},st=1;function nt(t){const e=rt[t.device],o=e.width+2*st,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 at(t,e){try{t.contentWindow?.location.reload()}catch{e&&(t.src=e)}}function lt(t){const e=T.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=nt({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]=B.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]=B.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[D,W]=B.useState(K);if(D.frameSrc!==P||D.changePending!==h||D.expectLoad!==b){W({frameSrc:P,changePending:h,expectLoad:b});const $=h&&!D.changePending;(D.frameSrc!==P||D.expectLoad!==b||$)&&A(!0)}const q=B.useRef(null);let L;e[18]!==k||e[19]!==m||e[20]!==E||e[21]!==P||e[22]!==o?(L=()=>{const $=E||k?setTimeout(()=>{H(fe),A(!1)},Ge):null,G=()=>{$&&clearTimeout($)};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]=L):L=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],B.useEffect(L,M);let I;e[29]!==k||e[30]!==h||e[31]!==E?(I=(h||k||E)&&n.jsx(Xe,{}),e[29]=k,e[30]=h,e[31]=E,e[32]=I):I=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=()=>{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]!==I||e[49]!==N?(V=n.jsxs(n.Fragment,{children:[I,N]}),e[48]=I,e[49]=N,e[50]=V):V=e[50],V}function ct(t){return!t.previewBaseUrl||t.awaitingDraft?"no-origin":t.hasPostRoute?t.url?null:"missing-params":"no-route"}const mt={"no-origin":"sandbox.postPreview.noOrigin","no-route":"sandbox.postPreview.noRoute","missing-params":"sandbox.postPreview.missingParams"},pt={"no-origin":"sandbox.postPreview.noOriginHint","no-route":"sandbox.postPreview.noRouteHint","missing-params":"sandbox.postPreview.missingParamsHint"};function dt(t){const e=T.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]=B.useState("desktop"),b=B.useRef(null),[w,S]=Ie(),[v,j]=B.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=Je({decofile:r,post:a,previewBaseUrl:c,draftPointer:m?f:null,meta:l,planning:xe(p)});let X;e[9]!==r||e[10]!==l?(X=Qe(r,l),e[9]=r,e[10]=l,e[11]=X):X=e[11],x=ct({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=Ye(o,i),[z,Y]=B.useState(0);let P;e[12]!==u?(P=()=>{const X=b.current;X&&(at(X,u),Y(ft))},e[12]=u,e[13]=P):P=e[13];const E=P;qe(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,D;e[16]===Symbol.for("react.memo_cache_sentinel")?(K=()=>h("desktop"),D=n.jsx(Me,{size:16}),e[16]=K,e[17]=D):(K=e[16],D=e[17]);let W;e[18]!==k||e[19]!==A?(W=n.jsx(ue,{active:k,label:A,onClick:K,children:D}),e[18]=k,e[19]=A,e[20]=W):W=e[20];const q=g==="mobile";let L;e[21]!==s?(L=s("sandbox.postPreview.mobile"),e[21]=s,e[22]=L):L=e[22];let M,I;e[23]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h("mobile"),I=n.jsx(ze,{size:16}),e[23]=M,e[24]=I):(M=e[23],I=e[24]);let C;e[25]!==q||e[26]!==L?(C=n.jsx(ue,{active:q,label:L,onClick:M,children:I}),e[25]=q,e[26]=L,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 $;e[36]!==E||e[37]!==O||e[38]!==R||e[39]!==N?($=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]=$):$=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]!==$||e[55]!==Z?(ee=n.jsxs("div",{className:"flex items-center gap-0.5",children:[$,Z]}),e[54]=$,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(mt[y??"missing-params"]),description:s(pt[y??"missing-params"])}):v?n.jsx(lt,{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 ft(t){return t+1}function ue(t){const e=T.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 ut=1366;function ht(t){return t.width<0?{kind:"pending"}:t.width<ut?{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 vt(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 gt="blog.postSplit.editorShare.v1",he=5,me="--post-editor-width";function bt(){const t=T.c(13),[e,o]=ye(gt,xt),i=le(e),r=B.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 xt(t){return typeof t=="number"?le(t):U.default}const wt=B.lazy(()=>Se(()=>import("./post-editor-mxtEx2vX.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])).then(t=>({default:t.PostEditor})));function Pt({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=Fe({orgSlug:t,virtualMcpId:e,branch:o,decofile:r}),b=Oe({orgSlug:t,virtualMcpId:e,branch:o}),w=r[i],S=He(w,"posts"),v=ht({width:s,view:l}),j=bt(),x=pe(v,"edit"),u=pe(v,"preview"),y=v.kind==="side-by-side"&&v.panes==="both",H=Ke(S.title),z=n.jsx(jt,{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(yt,{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(St,{split:j}),n.jsx("div",{className:re("min-w-0 flex-1",!u&&"hidden"),children:n.jsx(dt,{orgSlug:t,virtualMcpId:e,decofile:r,post:S,blockKey:i,previewBaseUrl:p,meta:a,fastPreviewActive:c,draftPointer:b,visible:u})})]})]})}function yt(t){const e=T.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=vt(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=T.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 St(t){const e=T.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 jt(t){const e=T.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(B.Suspense,{fallback:d,children:n.jsx(wt,{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 Et(t,e){const o=Be(e);if(o in t)return o;const i=De(e);return i in t?i:null}function kt(t){const e=T.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:_t})},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(Ze,{children:v=>{const j=Et(v.decofile,m);return j?n.jsx(Pt,{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(et,{virtualMcpId:o,children:w}),e[15]=w,e[16]=o,e[17]=S):S=e[17],S}function _t(t){return tt({previous:t,destination:"agent"})}function Rt(){const t=T.c(2),e=ot();let o;return t[0]!==e?(o=n.jsx(it,{children:n.jsx(Te,{feature:"cms",children:n.jsx(kt,{virtualMcpId:e})})}),t[0]=e,t[1]=o):o=t[1],o}function ts(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Le.Content,{actions:n.jsx($e,{}),children:n.jsx(Rt,{})}),t[0]=e):e=t[0],e}export{ts as default};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-editor-BUxXB6Uz.js","assets/index-BVZH8mqe.js","assets/index-CFbcObvG.css","assets/chat-context-B6UvvRRf.js","assets/use-panel-navigate-DPGDB1T1.js","assets/thread-route-muzc431X.js","assets/use-project-scope-BIucgFKc.js","assets/repository-binding-BIfwJXBl.js","assets/use-mcp-client-7NPwItGN.js","assets/auth-C3yWOKhG.js","assets/use-view-draft-kind-BG3Ihm6n.js","assets/use-blog-view-D_--u8j_.js","assets/use-organization-settings-BoOQOwrg.js","assets/schema-C2ft4i4u.js","assets/task-board-DLNmAHmR.js","assets/thread-intent-CYNXEfHP.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-CWcYbOm5.js","assets/session-runtime-CRv5j4jh.js","assets/use-entitlements-B8D7pawV.js","assets/use-ai-providers-C30oeluP.js","assets/use-current-view-CHhVzMwk.js","assets/use-in-settings-qQ2sbeu5.js","assets/use-decopilot-events-BxfGa0_j.js","assets/AlertCircle-kHXzu73r.js","assets/agent-icon-BS6RPQ_A.js","assets/UserCheck01-B1rJ65So.js","assets/Tool01-BEo5XKkS.js","assets/ArrowUp-CjAvmMLL.js","assets/ArrowLeft-DcKid1bz.js","assets/ArrowRight-ajc9j6D-.js","assets/BookOpen01-CdH9hkvz.js","assets/Globe04-DudUQgTy.js","assets/CheckCircle-DG9pUM8a.js","assets/TrendUp01-aviiZW6M.js","assets/ChevronDown-CWnE_Wmz.js","assets/ChevronSelectorVertical-ByCpNum0.js","assets/ChevronUp-C_rAiuf1.js","assets/UserSquare-D44lppb_.js","assets/LinkBroken01-CpDM6pG5.js","assets/CreditCard01-C6eDo3p0.js","assets/File02-R0RW2VCN.js","assets/MessageCircle01-44De_8cO.js","assets/SwitchHorizontal01-sPBj-OL8.js","assets/Eye-DFeDq2Hx.js","assets/Fingerprint04-D-EFj_6a.js","assets/Image01-Dfaw0Ysf.js","assets/Key01-9JQCF719.js","assets/LayoutLeft-B-cVGLzN.js","assets/Minus-09UkIbMe.js","assets/Monitor01-BPQw3JGv.js","assets/Sun-U7FHkItb.js","assets/Play-BRDYCYl7.js","assets/Plus-BJfG2DpW.js","assets/SearchMd-DioGBYbO.js","assets/ShoppingBag01-CdQhBv_H.js","assets/Trash01-l4iOtEBN.js","assets/Upload01-BhvyPM8u.js","assets/Users01-CxQycal6.js","assets/XClose-BwokcWjs.js","assets/Zap-DoXbwvKP.js","assets/label-Dc_tSb6f.js","assets/multi-select-Dak9eW6K.js","assets/badge-wWozseh3.js","assets/checkbox-Cs2Li62P.js","assets/command-DQwD4jPt.js","assets/index-B-PIhH8l.js","assets/popover-9q-VKuQx.js","assets/tabs-ClkuSww4.js","assets/active-indicator-CCMhAsc_.js","assets/switch-BX8b8tB6.js","assets/textarea-BnYcD_gb.js","assets/save-status-eUv6TQpr.js","assets/use-never-published-BK3TeRer.js","assets/use-voice-input-BspgCDOI.js","assets/drawer-BMY0wk6r.js","assets/tooltip-CfeBMv8z.js","assets/index-BFjuxezw.js","assets/use-mobile-5e0sSd3X.js","assets/index-GMDFirHC.js","assets/select-BJ7g3jt1.js","assets/index-BdQq_4o_.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/site-editor-toast-vvVLBG6s.js","assets/use-sandbox-events-TxpzU2Iw.js","assets/sandbox-url-D3mC8qhT.js","assets/use-blocks-v8-project-DUe21BCo.js","assets/utils-JVZxV40b.js","assets/sandbox-git-api-CvJPOlyv.js","assets/hosted-reconcile-DS6ZmO5s.js","assets/blocks-tab-states-CDYT4Ypi.js","assets/empty-state-hp9a4BQn.js","assets/search-input-D3b0Dc5Y.js","assets/use-debounced-value-By7KggQt.js","assets/use-file-configs-CCo70YSN.js","assets/asset-utils-CdU3Ttfs.js","assets/useInfiniteQuery-BJoJv4VQ.js","assets/infiniteQueryObserver-f5kG4cIT.js","assets/usage-stats-Dzci2XGy.js","assets/utils-CVEq3hMx.js","assets/markdown-DvUyMKlV.js","assets/use-copy-BHPkBnZF.js","assets/gateway-client-8UpI_Rdq.js","assets/form-BZ2nSi_9.js","assets/toggle-group-Cu3LE1oL.js","assets/match-site-slug-config-B47_xZCi.js","assets/block-document-CQOXOWIP.js","assets/task-key-BjUMQvHV.js","assets/sortable.esm-BzU9NXcP.js","assets/delete-copy-BH5xrx9H.js","assets/category-tree-oBVfCVRR.js","assets/empty-message-B3ykEghT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-C4tumP78.js","assets/collapsible-D4n-ssmc.js","assets/use-task-board-items-D4fdH47R.js","assets/config-zmlExYow.js","assets/task-route-B6gZ9LxC.js","assets/project-index-BOyydKXT.js","assets/shell-layout-BT6RZJ9X.js","assets/use-deployment-admin-COmgwPUq.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-Dvph2j3S.js","assets/integration-icon-CcV5frEs.js","assets/project-icon-C8Sq9Uyo.js","assets/use-navigate-to-agent-CtsEyeFb.js","assets/new-project-dialog-BeD2i_Hm.js","assets/repository-picker-vN0XhyKR.js","assets/github-icon-C-V2EETw.js","assets/collection-search-CDDauqCr.js","assets/new-project-store-BfrY24D-.js","assets/legacy-admin-welcome-dialog-DtYrilLw.js","assets/required-auth-layout-BXbkUsYd.js","assets/use-org-sso-BKXSOEb_.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-CRu4PbUr.js","assets/types-D_vNw-3-.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-B1zTFenO.js","assets/use-connection-C-m8b2Fk.js","assets/use-mcp-prompts-C7QHdaI_.js","assets/use-thread-outputs-CrNLjxTt.js","assets/file-type-icon-DOJ02s9h.js","assets/section-array-field-CkDPdYBe.js","assets/use-move-blocks-Cqt9Q8CZ.js","assets/index-B4YS6GMo.js","assets/suggestion-B9N6oqkG.js","assets/editor-classes-BygI_Lvg.js","assets/blog-preview-url-D1Gi50Jy.js","assets/product-picker-dialog-DVs_Kuee.js","assets/index-6V91lP75.js","assets/held-block-view-xCVzC3Lr.js","assets/calendar-Sr3cNZGh.js","assets/named-rule-step-BnN-hlGb.js","assets/slider-46E0vJw8.js","assets/index--r4E_gW7.js","assets/tooltipContext-BMU8k-Rs.js","assets/CategoricalChart-DW_7VziR.js","assets/index-BYQu9U5P.js","assets/combobox-LL4GsRoi.js","assets/scroll-area-w9_Bvwmf.js","assets/blog-schema-G_pvuSAo.js","assets/use-delete-block-3AD9rKWc.js","assets/use-fast-preview-draft-url-BQhDGlp9.js","assets/use-autosave-Bpr4B2YO.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as T,r as B,m as re,j as n,b as se,bd as xe,b6 as we,B as ce,a9 as Pe,at as ye,b8 as Se,be as je,n as Ee,bc as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bf as Be,bg as De}from"./index-BVZH8mqe.js";import{ChatLayout as Le}from"./index-BeSn1lKu.js";import{b as Ie,S as $e}from"./site-draft-actions-BhvNLFOt.js";import{F as Te}from"./feature-gate-DtqeHOu4.js";import{E as be}from"./empty-state-C4vGG4yC.js";import{F as ze,n as Ae}from"./agent-icon-BS6RPQ_A.js";import{d as Ce}from"./UserSquare-D44lppb_.js";import{u as Oe}from"./use-fast-preview-draft-url-BQhDGlp9.js";import{u as Fe,a as He,j as Ke}from"./category-tree-oBVfCVRR.js";import{i as Me}from"./Monitor01-BPQw3JGv.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe}from"./frame-navigation-C3j5rPCM.js";import{g as Ye}from"./site-editor-toast-vvVLBG6s.js";import{b as qe}from"./use-sandbox-events-TxpzU2Iw.js";import{b as Je,f as Qe}from"./blog-preview-url-D1Gi50Jy.js";import{B as Ze,a as et}from"./blog-source-gate-Z08IMogx.js";import{r as tt}from"./use-panel-navigate-DPGDB1T1.js";import{c as ot}from"./thread-route-muzc431X.js";import{a as it}from"./blog-view-gate-WETs9z4-.js";import"./use-mobile-5e0sSd3X.js";import"./tooltip-CfeBMv8z.js";import"./index-BFjuxezw.js";import"./MessageCircle01-44De_8cO.js";import"./XClose-BwokcWjs.js";import"./thread-button-Cra7mRSW.js";import"./use-sidebar-collapsed-DHFFs76T.js";import"./sheet-B1zTFenO.js";import"./use-chat-layout-state-DBVzfsNg.js";import"./toolbar-icon-button-Bo8OSaqx.js";import"./use-in-settings-qQ2sbeu5.js";import"./resizable-AytQ6SyX.js";import"./route-page-header-DnxbH76I.js";import"./LayoutLeft-B-cVGLzN.js";import"./use-project-scope-BIucgFKc.js";import"./repository-binding-BIfwJXBl.js";import"./use-mcp-client-7NPwItGN.js";import"./auth-C3yWOKhG.js";import"./use-current-view-CHhVzMwk.js";import"./separator-DUnD5wBI.js";import"./chat-context-B6UvvRRf.js";import"./use-view-draft-kind-BG3Ihm6n.js";import"./use-blog-view-D_--u8j_.js";import"./use-organization-settings-BoOQOwrg.js";import"./schema-C2ft4i4u.js";import"./task-board-DLNmAHmR.js";import"./thread-intent-CYNXEfHP.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CWcYbOm5.js";import"./session-runtime-CRv5j4jh.js";import"./use-entitlements-B8D7pawV.js";import"./use-ai-providers-C30oeluP.js";import"./use-decopilot-events-BxfGa0_j.js";import"./use-org-notice-Dvph2j3S.js";import"./popover-9q-VKuQx.js";import"./command-DQwD4jPt.js";import"./index-B-PIhH8l.js";import"./SearchMd-DioGBYbO.js";import"./tabs-ClkuSww4.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-CWnE_Wmz.js";import"./UserCheck01-B1rJ65So.js";import"./SwitchHorizontal01-sPBj-OL8.js";import"./Tool01-BEo5XKkS.js";import"./Plus-BJfG2DpW.js";import"./Trash01-l4iOtEBN.js";import"./use-voice-input-BspgCDOI.js";import"./drawer-BMY0wk6r.js";import"./index-GMDFirHC.js";import"./checkbox-Cs2Li62P.js";import"./Minus-09UkIbMe.js";import"./select-BJ7g3jt1.js";import"./index-BdQq_4o_.js";import"./ChevronUp-C_rAiuf1.js";import"./ArrowLeft-DcKid1bz.js";import"./ChevronSelectorVertical-ByCpNum0.js";import"./Key01-9JQCF719.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-kHXzu73r.js";import"./Eye-DFeDq2Hx.js";import"./Image01-Dfaw0Ysf.js";import"./use-debounced-value-By7KggQt.js";import"./shell-layout-BT6RZJ9X.js";import"./Globe04-DudUQgTy.js";import"./use-deployment-admin-COmgwPUq.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-DG9pUM8a.js";import"./Zap-DoXbwvKP.js";import"./integration-icon-CcV5frEs.js";import"./LinkBroken01-CpDM6pG5.js";import"./project-icon-C8Sq9Uyo.js";import"./use-navigate-to-agent-CtsEyeFb.js";import"./new-project-dialog-BeD2i_Hm.js";import"./label-Dc_tSb6f.js";import"./repository-picker-vN0XhyKR.js";import"./github-icon-C-V2EETw.js";import"./useInfiniteQuery-BJoJv4VQ.js";import"./infiniteQueryObserver-f5kG4cIT.js";import"./collection-search-CDDauqCr.js";import"./BookOpen01-CdH9hkvz.js";import"./ShoppingBag01-CdQhBv_H.js";import"./new-project-store-BfrY24D-.js";import"./legacy-admin-welcome-dialog-DtYrilLw.js";import"./required-auth-layout-BXbkUsYd.js";import"./use-org-sso-BKXSOEb_.js";import"./cms-store-drafts-DDk2L1_s.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-TQWeP4ry.js";import"./url-slug-BOPVIawN.js";import"./use-blocks-v8-project-DUe21BCo.js";import"./blocks-tab-states-CDYT4Ypi.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-hp9a4BQn.js";import"./index-D_u7RJfU.js";import"./ArrowUp-CjAvmMLL.js";import"./input-o0eNZBV4.js";import"./usage-stats-Dzci2XGy.js";import"./utils-CVEq3hMx.js";import"./markdown-DvUyMKlV.js";import"./use-copy-BHPkBnZF.js";import"./File02-R0RW2VCN.js";import"./gateway-client-8UpI_Rdq.js";import"./form-BZ2nSi_9.js";import"./icon-button-CFamiizZ.js";import"./file-type-icon-DOJ02s9h.js";import"./chat-draft-D0WJnhz_.js";import"./ArrowRight-ajc9j6D-.js";import"./Upload01-BhvyPM8u.js";import"./use-deco-credits-19cW8oHb.js";import"./toggle-group-Cu3LE1oL.js";import"./input-A20A_mwu.js";import"./suggestion-B9N6oqkG.js";import"./use-mcp-prompts-C7QHdaI_.js";import"./use-org-fs-Cq9dcDh3.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-BGOy9Z00.js";import"./plan-ladder-BlcJL4hV.js";import"./add-connection-dialog-AJ93ohYz.js";import"./extract-connection-data-B_eUCQ7e.js";import"./metadata-D72DunRR.js";import"./connection-B7vXPxEB.js";import"./connection-card-DqrVYaVF.js";import"./connection-slug-DgGnB6qk.js";import"./textarea-BnYcD_gb.js";import"./use-connection-C-m8b2Fk.js";import"./schema-CATZG76m.js";import"./connection-form-helpers-CipIPASt.js";import"./authenticate-and-persist-oauth-CIyQIb0N.js";import"./mcp-oauth-CIY9YLWi.js";import"./mcp-oauth-NdGb5Zj9.js";import"./collection-tabs-B1EmRyNS.js";import"./badge-wWozseh3.js";import"./use-infinite-scroll-Ct_PbHT3.js";import"./useSuspenseInfiniteQuery-BFQG7J82.js";import"./use-task-board-items-D4fdH47R.js";import"./pair-C4tumP78.js";import"./collapsible-D4n-ssmc.js";import"./task-key-BjUMQvHV.js";import"./config-zmlExYow.js";import"./task-route-B6gZ9LxC.js";import"./project-index-BOyydKXT.js";import"./TrendUp01-aviiZW6M.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CRu4PbUr.js";import"./types-D_vNw-3-.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-CrNLjxTt.js";import"./agent-capabilities-CJLhsDjp.js";import"./use-cms-publish-actions-CWkUAckV.js";import"./use-content-sync-BJ7PE3PC.js";import"./sandbox-git-api-CvJPOlyv.js";import"./utils-JVZxV40b.js";import"./device-hint-CMC1mr9e.js";import"./alert-hKxZXEZZ.js";import"./section-array-field-CkDPdYBe.js";import"./editor-C6mSxTrt.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-CO9pd80k.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-C6eDo3p0.js";import"./Fingerprint04-D-EFj_6a.js";import"./Sun-U7FHkItb.js";import"./Play-BRDYCYl7.js";import"./Users01-CxQycal6.js";import"./empty-message-B3ykEghT.js";import"./use-move-blocks-Cqt9Q8CZ.js";import"./hosted-reconcile-DS6ZmO5s.js";const rt={mobile:{width:412,height:823},tablet:{width:1024,height:1366},desktop:{width:1280,height:800}},st=1;function nt(t){const e=rt[t.device],o=e.width+2*st,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 at(t,e){try{t.contentWindow?.location.reload()}catch{e&&(t.src=e)}}function lt(t){const e=T.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=nt({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]=B.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]=B.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[D,W]=B.useState(K);if(D.frameSrc!==P||D.changePending!==h||D.expectLoad!==b){W({frameSrc:P,changePending:h,expectLoad:b});const $=h&&!D.changePending;(D.frameSrc!==P||D.expectLoad!==b||$)&&A(!0)}const q=B.useRef(null);let L;e[18]!==k||e[19]!==m||e[20]!==E||e[21]!==P||e[22]!==o?(L=()=>{const $=E||k?setTimeout(()=>{H(fe),A(!1)},Ge):null,G=()=>{$&&clearTimeout($)};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]=L):L=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],B.useEffect(L,M);let I;e[29]!==k||e[30]!==h||e[31]!==E?(I=(h||k||E)&&n.jsx(Xe,{}),e[29]=k,e[30]=h,e[31]=E,e[32]=I):I=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=()=>{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]!==I||e[49]!==N?(V=n.jsxs(n.Fragment,{children:[I,N]}),e[48]=I,e[49]=N,e[50]=V):V=e[50],V}function ct(t){return!t.previewBaseUrl||t.awaitingDraft?"no-origin":t.hasPostRoute?t.url?null:"missing-params":"no-route"}const mt={"no-origin":"sandbox.postPreview.noOrigin","no-route":"sandbox.postPreview.noRoute","missing-params":"sandbox.postPreview.missingParams"},pt={"no-origin":"sandbox.postPreview.noOriginHint","no-route":"sandbox.postPreview.noRouteHint","missing-params":"sandbox.postPreview.missingParamsHint"};function dt(t){const e=T.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]=B.useState("desktop"),b=B.useRef(null),[w,S]=Ie(),[v,j]=B.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=Je({decofile:r,post:a,previewBaseUrl:c,draftPointer:m?f:null,meta:l,planning:xe(p)});let X;e[9]!==r||e[10]!==l?(X=Qe(r,l),e[9]=r,e[10]=l,e[11]=X):X=e[11],x=ct({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=Ye(o,i),[z,Y]=B.useState(0);let P;e[12]!==u?(P=()=>{const X=b.current;X&&(at(X,u),Y(ft))},e[12]=u,e[13]=P):P=e[13];const E=P;qe(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,D;e[16]===Symbol.for("react.memo_cache_sentinel")?(K=()=>h("desktop"),D=n.jsx(Me,{size:16}),e[16]=K,e[17]=D):(K=e[16],D=e[17]);let W;e[18]!==k||e[19]!==A?(W=n.jsx(ue,{active:k,label:A,onClick:K,children:D}),e[18]=k,e[19]=A,e[20]=W):W=e[20];const q=g==="mobile";let L;e[21]!==s?(L=s("sandbox.postPreview.mobile"),e[21]=s,e[22]=L):L=e[22];let M,I;e[23]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h("mobile"),I=n.jsx(ze,{size:16}),e[23]=M,e[24]=I):(M=e[23],I=e[24]);let C;e[25]!==q||e[26]!==L?(C=n.jsx(ue,{active:q,label:L,onClick:M,children:I}),e[25]=q,e[26]=L,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 $;e[36]!==E||e[37]!==O||e[38]!==R||e[39]!==N?($=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]=$):$=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]!==$||e[55]!==Z?(ee=n.jsxs("div",{className:"flex items-center gap-0.5",children:[$,Z]}),e[54]=$,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(mt[y??"missing-params"]),description:s(pt[y??"missing-params"])}):v?n.jsx(lt,{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 ft(t){return t+1}function ue(t){const e=T.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 ut=1366;function ht(t){return t.width<0?{kind:"pending"}:t.width<ut?{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 vt(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 gt="blog.postSplit.editorShare.v1",he=5,me="--post-editor-width";function bt(){const t=T.c(13),[e,o]=ye(gt,xt),i=le(e),r=B.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 xt(t){return typeof t=="number"?le(t):U.default}const wt=B.lazy(()=>Se(()=>import("./post-editor-BUxXB6Uz.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])).then(t=>({default:t.PostEditor})));function Pt({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=Fe({orgSlug:t,virtualMcpId:e,branch:o,decofile:r}),b=Oe({orgSlug:t,virtualMcpId:e,branch:o}),w=r[i],S=He(w,"posts"),v=ht({width:s,view:l}),j=bt(),x=pe(v,"edit"),u=pe(v,"preview"),y=v.kind==="side-by-side"&&v.panes==="both",H=Ke(S.title),z=n.jsx(jt,{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(yt,{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(St,{split:j}),n.jsx("div",{className:re("min-w-0 flex-1",!u&&"hidden"),children:n.jsx(dt,{orgSlug:t,virtualMcpId:e,decofile:r,post:S,blockKey:i,previewBaseUrl:p,meta:a,fastPreviewActive:c,draftPointer:b,visible:u})})]})]})}function yt(t){const e=T.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=vt(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=T.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 St(t){const e=T.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 jt(t){const e=T.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(B.Suspense,{fallback:d,children:n.jsx(wt,{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 Et(t,e){const o=Be(e);if(o in t)return o;const i=De(e);return i in t?i:null}function kt(t){const e=T.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:_t})},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(Ze,{children:v=>{const j=Et(v.decofile,m);return j?n.jsx(Pt,{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(et,{virtualMcpId:o,children:w}),e[15]=w,e[16]=o,e[17]=S):S=e[17],S}function _t(t){return tt({previous:t,destination:"agent"})}function Rt(){const t=T.c(2),e=ot();let o;return t[0]!==e?(o=n.jsx(it,{children:n.jsx(Te,{feature:"cms",children:n.jsx(kt,{virtualMcpId:e})})}),t[0]=e,t[1]=o):o=t[1],o}function ts(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Le.Content,{actions:n.jsx($e,{}),children:n.jsx(Rt,{})}),t[0]=e):e=t[0],e}export{ts as default};
|