decocms 4.584.13 → 4.584.14
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-DA6gE5vw.js → AlertCircle-BckhzGo9.js} +1 -1
- package/dist/client/assets/{AreaChart-Y5-RpSOt.js → AreaChart-CH55n4Jv.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B8D7i2xh.js → ArrowLeft-DjFnycHz.js} +1 -1
- package/dist/client/assets/{ArrowRight-C1EmTlL-.js → ArrowRight-DdCk_HCk.js} +1 -1
- package/dist/client/assets/{ArrowUp-DyF0Rx2O.js → ArrowUp-jwPYnWqs.js} +1 -1
- package/dist/client/assets/{BookOpen01-UxGmri2e.js → BookOpen01-B2ISsdx6.js} +1 -1
- package/dist/client/assets/{CartesianChart-Dv3UTRbp.js → CartesianChart-2VySs-qY.js} +1 -1
- package/dist/client/assets/{CategoricalChart-oGRIPAq4.js → CategoricalChart-Di2gWvs8.js} +1 -1
- package/dist/client/assets/{CheckCircle-Bh1gNJET.js → CheckCircle-p76CoLTf.js} +1 -1
- package/dist/client/assets/{ChevronDown-uPv2ScPr.js → ChevronDown-Cf6eg1Aj.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CiFyE2Pu.js → ChevronSelectorVertical-ies3TLws.js} +1 -1
- package/dist/client/assets/{ChevronUp-BkmRXggG.js → ChevronUp-Yoxwp_-j.js} +1 -1
- package/dist/client/assets/{CreditCard01-C-H9qti1.js → CreditCard01-DOIepajb.js} +1 -1
- package/dist/client/assets/{Eye-DL5oRAI4.js → Eye-B-zZzOpR.js} +1 -1
- package/dist/client/assets/{File02-DEjt2PPW.js → File02-B4TAUApJ.js} +1 -1
- package/dist/client/assets/{Globe04-DD86hrsf.js → Globe04-C8iXbhsR.js} +1 -1
- package/dist/client/assets/{Image01-BCiDUkCm.js → Image01-BKS8Yp4v.js} +1 -1
- package/dist/client/assets/{Key01-CgRwsDr3.js → Key01-D3gaP9qK.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DHg_jNr0.js → LayoutLeft-C8ndIALE.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Ic71rSEU.js → LinkBroken01-WNn1RqQL.js} +1 -1
- package/dist/client/assets/{MessageCircle01-CQjeMfQj.js → MessageCircle01-dCZEdQhF.js} +1 -1
- package/dist/client/assets/{Minus-BM2zRSMr.js → Minus-BGxu6wTp.js} +1 -1
- package/dist/client/assets/{Monitor01-C4OHhcX6.js → Monitor01-CrmQoLWb.js} +1 -1
- package/dist/client/assets/{Play-l838EjWq.js → Play-B1JyKt5J.js} +1 -1
- package/dist/client/assets/{Plus-BzpqhVU8.js → Plus-nOMLt4Yk.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DmbAcSH6.js → ReferenceLine-CVaZ4J9I.js} +1 -1
- package/dist/client/assets/{SearchMd-BhCfkG_O.js → SearchMd-BQl6TEDK.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-KIefHp9K.js → ShoppingBag01-DPoH0u5v.js} +1 -1
- package/dist/client/assets/{Sun-CoJn-J4w.js → Sun-CnYsG6YA.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BU8z7oT_.js → SwitchHorizontal01-DB7Iju_C.js} +1 -1
- package/dist/client/assets/{Tool01-ymE-fOFX.js → Tool01-CtY1k5Dx.js} +1 -1
- package/dist/client/assets/{Tooltip-D86_gjwu.js → Tooltip-JDvyEzxh.js} +1 -1
- package/dist/client/assets/{Trash01-aSl--BGd.js → Trash01-DLwaS_5I.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cr4FP2fV.js → TrendUp01-DAuvMm77.js} +1 -1
- package/dist/client/assets/{Upload01-DozMUWEF.js → Upload01-D8Llo-n7.js} +1 -1
- package/dist/client/assets/{UserCheck01-3D5hYz4C.js → UserCheck01-lNPupOG8.js} +1 -1
- package/dist/client/assets/{UserSquare-aJjYmjOR.js → UserSquare-xrIyO385.js} +1 -1
- package/dist/client/assets/{Users01-Cximoi8v.js → Users01-B6_L_w2p.js} +1 -1
- package/dist/client/assets/{XClose-Dq0BGBMq.js → XClose-BAaBoHXT.js} +1 -1
- package/dist/client/assets/{Zap-NAfA60T9.js → Zap-DV5_FZrE.js} +1 -1
- package/dist/client/assets/{access-gate-Cnf06l1a.js → access-gate-DAmYKrNY.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-D1_0-J8t.js → add-connection-dialog-HNNoGhQz.js} +1 -1
- package/dist/client/assets/agent-app-BX9KTYM-.js +1 -0
- package/dist/client/assets/{agent-assets-DHnb5L5s.js → agent-assets-D4WFTVXs.js} +1 -1
- package/dist/client/assets/{agent-automation-DBCjX475.js → agent-automation-BCaX7ESM.js} +1 -1
- package/dist/client/assets/{agent-automations-BPqk0cma.js → agent-automations-Vz61YWWE.js} +1 -1
- package/dist/client/assets/{agent-blog-post-BPTTHi05.js → agent-blog-post-BnDW4dJQ.js} +2 -2
- package/dist/client/assets/{agent-blog-C6OhwET5.js → agent-blog-wICv4HuS.js} +2 -2
- package/dist/client/assets/{agent-calendar-n7d8kxeC.js → agent-calendar-DJdZ4heH.js} +1 -1
- package/dist/client/assets/{agent-capabilities-MDN7TVuK.js → agent-capabilities-BI0sCkjS.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BLX7S3Bt.js → agent-connect-sources-CyXkEet9.js} +1 -1
- package/dist/client/assets/agent-deck-ChhTCxwX.js +1 -0
- package/dist/client/assets/{agent-e2e-C67cHNzK.js → agent-e2e-B5_at-Zi.js} +1 -1
- package/dist/client/assets/agent-experiments-D1svONd4.js +1 -0
- package/dist/client/assets/agent-file-CIWnVX_Q.js +1 -0
- package/dist/client/assets/{agent-hosting-DennpVxk.js → agent-hosting-NbmgDCYe.js} +1 -1
- package/dist/client/assets/{agent-icon-B9nZhdi2.js → agent-icon-Da3tHBMv.js} +1 -1
- package/dist/client/assets/agent-library-XqjyriLQ.js +1 -0
- package/dist/client/assets/agent-library-file-DUdXPex9.js +1 -0
- package/dist/client/assets/agent-overview-CSLeMcxj.js +1 -0
- package/dist/client/assets/{agent-releases-DaI8RCLw.js → agent-releases-Cy6FvVXN.js} +1 -1
- package/dist/client/assets/agent-settings-CIezqrTQ.js +1 -0
- package/dist/client/assets/{agent-site-editor-BH7NFZLQ.js → agent-site-editor-_uT5t8dC.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DQ2-qcrK.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Bo52y6MP.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DWXAOs-I.js +1 -0
- package/dist/client/assets/agent-view-Cj0EamHG.js +1 -0
- package/dist/client/assets/{agent-view-guard-DEo6nzlH.js → agent-view-guard-DkakdmVe.js} +1 -1
- package/dist/client/assets/{ai-providers-x5-E0mng.js → ai-providers-CpM0GOBE.js} +1 -1
- package/dist/client/assets/{alert-N4205I9V.js → alert-2VptOQ03.js} +1 -1
- package/dist/client/assets/{analytics-sections-Bp_cD3eQ.js → analytics-sections-Dlo3vqkW.js} +1 -1
- package/dist/client/assets/api-keys-ClRjj7VM.js +1 -0
- package/dist/client/assets/{api-keys-F6uIkepe.js → api-keys-Da0Xjqef.js} +1 -1
- package/dist/client/assets/{app-editor-BPz6mU_a.js → app-editor-CFEr8Apb.js} +1 -1
- package/dist/client/assets/{asset-utils-Lxwn3jp5.js → asset-utils-hi9ZCK7M.js} +1 -1
- package/dist/client/assets/{auth-D0WiD-6X.js → auth-CNYHKCFg.js} +1 -1
- package/dist/client/assets/{auth-catchall-BtM_92ON.js → auth-catchall-hGRrksq6.js} +1 -1
- package/dist/client/assets/{auth-entry-DGg6_6PX.js → auth-entry-B65KEyLc.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BdlGf3S0.js → auth-split-layout-DEwglaQq.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CjsXQJBc.js → authenticate-and-persist-oauth-D450Ij-p.js} +1 -1
- package/dist/client/assets/{automation-list-row-Bh6TsYyw.js → automation-list-row-CpayrKzf.js} +1 -1
- package/dist/client/assets/{automation-runs-F5hXkFSl.js → automation-runs-DBCPwmkF.js} +1 -1
- package/dist/client/assets/{automations-x3uj3Ydy.js → automations-DXemr1t6.js} +1 -1
- package/dist/client/assets/{badge-BUkSpOXa.js → badge-loE1b0Vr.js} +1 -1
- package/dist/client/assets/{block-document-Bkfi8LNG.js → block-document-C_ucAxAi.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CwXYQcg5.js → blocks-preview-workspace-context-ByBcX_ix.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-_faw29v2.js → blocks-tab-states-DCjOLpkz.js} +1 -1
- package/dist/client/assets/{blog-preview-url-Bk8Ya8Ff.js → blog-preview-url-B7uV4oRW.js} +1 -1
- package/dist/client/assets/{blog-schema-D0iLRFhx.js → blog-schema-Cc_fWOEk.js} +1 -1
- package/dist/client/assets/{blog-source-gate-CHqmG0fU.js → blog-source-gate-BS-4HFBT.js} +1 -1
- package/dist/client/assets/{blog-view-gate-CBYiW3a_.js → blog-view-gate-D10ViiI0.js} +1 -1
- package/dist/client/assets/{buckets-PPqMjJPU.js → buckets-DsX--7i3.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CQr1jYEn.js → build-improve-prompt-doc-B-4SVpBS.js} +1 -1
- package/dist/client/assets/{calendar-ByOFe-ir.js → calendar-BI3J-A5m.js} +1 -1
- package/dist/client/assets/{capability-load-error-DCMluNzB.js → capability-load-error-qZIBtmfz.js} +1 -1
- package/dist/client/assets/{category-editor-FMFHmdJ9.js → category-editor-_jPyPfux.js} +1 -1
- package/dist/client/assets/{category-tree-DO91V9PE.js → category-tree-DY9bWdK8.js} +1 -1
- package/dist/client/assets/{chart-B0F_JJb6.js → chart-BvG6MEBA.js} +1 -1
- package/dist/client/assets/{chat-context-BhwgXdxZ.js → chat-context-Cdr2Tzco.js} +1 -1
- package/dist/client/assets/{chat-draft-CG09JkEF.js → chat-draft--xvDfEkY.js} +1 -1
- package/dist/client/assets/{checkbox-BwlyfOui.js → checkbox-ClBCJgC4.js} +1 -1
- package/dist/client/assets/{choose-editor-DMmUjki_.js → choose-editor-C-PjDARE.js} +1 -1
- package/dist/client/assets/{cli-auth-success-ChZ4KETS.js → cli-auth-success-DSyck-0K.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-CIzKeqbY.js → cms-settings-editor-CVlkde0D.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-C3WBV5HM.js → cms-store-drafts-Boyjd6L_.js} +1 -1
- package/dist/client/assets/{collapsible-BILoWprp.js → collapsible-6ftDlMsd.js} +1 -1
- package/dist/client/assets/{collection-detail-D6kEPWTW.js → collection-detail-C6p_EA7f.js} +1 -1
- package/dist/client/assets/{collection-display-button-BlEDYqVQ.js → collection-display-button-DtXUp3v-.js} +1 -1
- package/dist/client/assets/{collection-search-Dj3oO1qn.js → collection-search-CW9SJXAE.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-C8_o4YW1.js → collection-table-wrapper-C2ZHhgyo.js} +1 -1
- package/dist/client/assets/{collection-tabs-Wktk7Bil.js → collection-tabs-Y93FdN1l.js} +1 -1
- package/dist/client/assets/{combobox-7VjvZkXU.js → combobox-BQBhf9A-.js} +1 -1
- package/dist/client/assets/{command-BcxQrgUK.js → command-CtLQP1YS.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DQ1lC2cH.js → companion-mcps-section-DngRMXnd.js} +1 -1
- package/dist/client/assets/{config-Bn4oMb7y.js → config-CheVupom.js} +1 -1
- package/dist/client/assets/{connect-uQ-qw1JW.js → connect-DYg_2v9f.js} +1 -1
- package/dist/client/assets/{connect-key-BqwNSl8t.js → connect-key-CeYjF2jt.js} +1 -1
- package/dist/client/assets/{connect-layout-DqtlIJwT.js → connect-layout-BEGibWQF.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-HVNAw6m0.js → connect-source-dialog-BXFll5AK.js} +1 -1
- package/dist/client/assets/{connection-CELF9xGk.js → connection-BNwNEPn2.js} +1 -1
- package/dist/client/assets/{connection-card-DqAevMOq.js → connection-card-Bz0SPOqT.js} +1 -1
- package/dist/client/assets/{connection-detail-MGfXYK35.js → connection-detail-P17H-32n.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-egiEwtYz.js → connection-form-helpers-Bw7x5pKf.js} +1 -1
- package/dist/client/assets/{connection-slug-Dz7hwoVN.js → connection-slug-mPfdw4iI.js} +1 -1
- package/dist/client/assets/{connections-D2NvIFXC.js → connections-e83k0jvY.js} +1 -1
- package/dist/client/assets/{content-tab-BvT7P5lX.js → content-tab-DYv0CW9s.js} +3 -3
- package/dist/client/assets/{context-CggBlD0z.js → context-ByI47TZF.js} +1 -1
- package/dist/client/assets/{context-menu-CXequwNl.js → context-menu-BRek7vb6.js} +1 -1
- package/dist/client/assets/{context-shell-Bqoi0m2O.js → context-shell-j8EHULJB.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-BOcGysWt.js → create-organization-dialog-D1oYPgDd.js} +1 -1
- package/dist/client/assets/{daily-pulse-BA0ikU80.js → daily-pulse-eHpvhv3c.js} +1 -1
- package/dist/client/assets/{delete-copy-CzwVZl8P.js → delete-copy-Dxwk399F.js} +1 -1
- package/dist/client/assets/{device-hint-CUh7MxFw.js → device-hint-DwxBL2qp.js} +1 -1
- package/dist/client/assets/{discover-Bt0PjesU.js → discover-DBOXc7vr.js} +1 -1
- package/dist/client/assets/{domain-settings-BamU0icI.js → domain-settings-D00wzWwl.js} +1 -1
- package/dist/client/assets/{drawer-EGIO8vW1.js → drawer-CRP1WiCk.js} +1 -1
- package/dist/client/assets/{editor-B_YvqDEq.js → editor-Ca65jgGo.js} +1 -1
- package/dist/client/assets/{editor-classes-D2vt4K2z.js → editor-classes-DXmOOkk1.js} +1 -1
- package/dist/client/assets/{empty-message-BR97lu1R.js → empty-message-CFaFzCFq.js} +1 -1
- package/dist/client/assets/{empty-state-D--R_kh-.js → empty-state--JGqfPR-.js} +1 -1
- package/dist/client/assets/{empty-state-DxGz72GL.js → empty-state-BWFEJiAD.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-zR5-VX5L.js → experiments-tab-choice-CeoTUg2d.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DeUSUVIy.js → extract-connection-data-C26a1rUY.js} +1 -1
- package/dist/client/assets/{feature-gate-DK9IZjbG.js → feature-gate-BRL5qzLx.js} +1 -1
- package/dist/client/assets/{feature-paywall-BQdFbBKY.js → feature-paywall-DKi0OK9Z.js} +1 -1
- package/dist/client/assets/{file-explorer-6XHpEO9J.js → file-explorer-4BaytwST.js} +1 -1
- package/dist/client/assets/{file-preview-CXliAtvL.js → file-preview-CB_q0R1c.js} +1 -1
- package/dist/client/assets/{file-share-button-BUHoICkf.js → file-share-button-DdNZkOgu.js} +1 -1
- package/dist/client/assets/{file-type-icon-Bhy3vcyl.js → file-type-icon-BAAuwpOK.js} +1 -1
- package/dist/client/assets/{folder-icon-BD8Yju3a.js → folder-icon-DOLHwvxN.js} +1 -1
- package/dist/client/assets/{form-Cb5OHNc9.js → form-9ojGZv11.js} +1 -1
- package/dist/client/assets/{frame-navigation-D5yMy5Mm.js → frame-navigation-CmmgpT4V.js} +1 -1
- package/dist/client/assets/{gateway-client-t5s1Cm0x.js → gateway-client-BwxdQL6w.js} +1 -1
- package/dist/client/assets/{general-DfARJPaG.js → general-CpiioBfe.js} +1 -1
- package/dist/client/assets/{github-icon-BoZrKkV3.js → github-icon-Bx9ss8sA.js} +1 -1
- package/dist/client/assets/{held-block-view-Bm4hn8SE.js → held-block-view-CwXGGKH1.js} +1 -1
- package/dist/client/assets/{home-COKBWHzA.js → home-lb0YjJQy.js} +1 -1
- package/dist/client/assets/{home-overview-C0oKtq4c.js → home-overview-Dks5WIsU.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-mSp200Ck.js → hosted-reconcile-EHhmhhgb.js} +1 -1
- package/dist/client/assets/{icon-button-CpBLMSxk.js → icon-button-DhhoBQY7.js} +1 -1
- package/dist/client/assets/{index-KFEtz5HA.js → index-0mVsTo2D.js} +1 -1
- package/dist/client/assets/{index-DQWJotH-.js → index-BT86t2zN.js} +1 -1
- package/dist/client/assets/{index-Oc-4w-Ob.js → index-BUpEwBrv.js} +1 -1
- package/dist/client/assets/{index-A2_7RKep.js → index-B_eBHPlD.js} +1 -1
- package/dist/client/assets/{index-BED_VE7w.js → index-Bnc-AlIv.js} +1 -1
- package/dist/client/assets/{index-BQrnEOJ9.js → index-BxZDu5VS.js} +1 -1
- package/dist/client/assets/{index-0AidFUUh.js → index-ByI5JNyj.js} +1 -1
- package/dist/client/assets/{index-D1alBOdU.js → index-CQwlvIdC.js} +1 -1
- package/dist/client/assets/{index-BTT5sL01.js → index-Cb8rdIGe.js} +1 -1
- package/dist/client/assets/{index-BsAwgxIf.js → index-CnlrqsCd.js} +3 -3
- package/dist/client/assets/{index-DEh8AOfP.js → index-ComiCY0D.js} +1 -1
- package/dist/client/assets/{index-KBC7Pj7l.js → index-DEg1eCWz.js} +1 -1
- package/dist/client/assets/{index-Bi2fLJMb.js → index-DjQbsfzi.js} +1 -1
- package/dist/client/assets/{index-CM0d89Yv.js → index-K1m0OV2d.js} +1 -1
- package/dist/client/assets/{index-CGQejmXu.js → index-qb9TO-KL.js} +1 -1
- package/dist/client/assets/{index-redirect-DWwBvPoP.js → index-redirect-BuK2lj2s.js} +1 -1
- package/dist/client/assets/{index-CT5cpmuw.js → index-xBV0t4Yq.js} +1 -1
- package/dist/client/assets/{index-DKlpvKuq.js → index-xajFYiUY.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CnD94meO.js → infiniteQueryObserver-d6eMImhi.js} +1 -1
- package/dist/client/assets/{infra-billing-C7MnSX69.js → infra-billing-BVBJ_vl6.js} +1 -1
- package/dist/client/assets/{input--kphUWpn.js → input-BzVp3-J0.js} +1 -1
- package/dist/client/assets/{input-Cy8KNDYA.js → input-CzlhHu3g.js} +3 -3
- package/dist/client/assets/{integration-icon-DbiCbrD7.js → integration-icon-XdnHhG6r.js} +1 -1
- package/dist/client/assets/{item-actions-BR3Rk3pU.js → item-actions-Dbd1iigC.js} +1 -1
- package/dist/client/assets/{jira-icon-BJDzOHlp.js → jira-icon-jvATtbBe.js} +1 -1
- package/dist/client/assets/{label-D8u4gNcM.js → label-D9MCble5.js} +1 -1
- package/dist/client/assets/{layout-Djcel6JN.js → layout-Pxiy0xY8.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-C4yFyjEg.js → legacy-admin-welcome-dialog-5lUmP66o.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BhezYC1Y.js → legacy-agents-deep-CYriesvh.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-B2LMkN9B.js → legacy-main-redirect-CkeD71fA.js} +1 -1
- package/dist/client/assets/library-BiMH0bDk.js +1 -0
- package/dist/client/assets/{library-tab-B6AGBITt.js → library-tab-hSyLAga2.js} +1 -1
- package/dist/client/assets/{login-D-FcOLf-.js → login-CnrJpfTI.js} +1 -1
- package/dist/client/assets/{markdown-SwM1Ir6g.js → markdown-DPh7H1MH.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Jzrzu2q5.js → mcp-app-renderer-DEDNSoX2.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DXUgkWSg.js → mcp-oauth-D_ZnYWZH.js} +1 -1
- package/dist/client/assets/{mcp-oauth-nZa_TONF.js → mcp-oauth-XpGc4vgb.js} +1 -1
- package/dist/client/assets/{members-pMC1bfqu.js → members-DBLGsZ8Z.js} +1 -1
- package/dist/client/assets/{memory-msRY8EWU.js → memory-DpwHgd2f.js} +1 -1
- package/dist/client/assets/{mock-board-4Dfd4bxV.js → mock-board-b7I4Lkdt.js} +3 -3
- package/dist/client/assets/{monaco-editor-Dj-bs0sb.js → monaco-editor-DO6kYNn6.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-9YaCFmpo.js → monitoring-stats-row-CDy_z2_I.js} +1 -1
- package/dist/client/assets/{monitoring-Db6Y9X_T.js → monitoring-v2S8Vbz2.js} +1 -1
- package/dist/client/assets/{multi-select-Cp5gIPzv.js → multi-select-DVrZLS4y.js} +1 -1
- package/dist/client/assets/{mustache-CyusQksc.js → mustache-D8PrVRmL.js} +1 -1
- package/dist/client/assets/{named-rule-step-DbDjzYJn.js → named-rule-step-B-qKJe-K.js} +1 -1
- package/dist/client/assets/{named-rule-view-Dh3pa8Ix.js → named-rule-view-CfHOB60I.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CrDlez-N.js → new-project-dialog-DqENGapI.js} +1 -1
- package/dist/client/assets/{new-project-store-DleT4y6U.js → new-project-store-BCRxr-mc.js} +1 -1
- package/dist/client/assets/{oauth-callback-D-LN8o-r.js → oauth-callback-CCZ4yfvy.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BKOttmuU.js → oauth-callback-ai-provider-CTt1_X_A.js} +1 -1
- package/dist/client/assets/{oauth-consent-C0LB3lfZ.js → oauth-consent-CZX3xw6n.js} +1 -1
- package/dist/client/assets/{onboarding-DRXH9Y7t.js → onboarding--PazlAJD.js} +1 -1
- package/dist/client/assets/{openai-conversation-BDQFSE01.js → openai-conversation-xommJenc.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DpB-Kj9e.js → optimistic-project-sidebar-views-BkffKpai.js} +1 -1
- package/dist/client/assets/{order-monitor-day-7qmkUUGV.js → order-monitor-day-958y0odK.js} +1 -1
- package/dist/client/assets/{organization-choice-Bs6uDF8C.js → organization-choice-DvJnEyxf.js} +1 -1
- package/dist/client/assets/{orgs-CwaDyfCI.js → orgs-CO_oHECx.js} +1 -1
- package/dist/client/assets/{own-accounts-section-wo48sm2j.js → own-accounts-section-BenVPCh8.js} +1 -1
- package/dist/client/assets/{pair-4JIJkNK2.js → pair-BqleDpPR.js} +1 -1
- package/dist/client/assets/{parse-sections-3dpMP28-.js → parse-sections-BzGAq8XE.js} +2 -2
- package/dist/client/assets/{plan-CgB_LoKO.js → plan-KhTTft6_.js} +1 -1
- package/dist/client/assets/{plan-ladder-DAHXnxDP.js → plan-ladder-heY6MciQ.js} +1 -1
- package/dist/client/assets/{plan-usage-card-DKC1nkf_.js → plan-usage-card-PQMuEzyd.js} +1 -1
- package/dist/client/assets/{popover-DogMO3pk.js → popover-BehWQy5s.js} +1 -1
- package/dist/client/assets/{post-calendar-CwmTBZkp.js → post-calendar-D34f7PIU.js} +1 -1
- package/dist/client/assets/{post-editor-CDKF4zje.js → post-editor-_PepvJ6a.js} +1 -1
- package/dist/client/assets/{preview-content-D6MLtumX.js → preview-content-CE2XWmAb.js} +1 -1
- package/dist/client/assets/{preview-dialog-Bc3kRUrq.js → preview-dialog-DZ2IwkzI.js} +1 -1
- package/dist/client/assets/{preview-panel-BkNp3-My.js → preview-panel-vXQnVw8H.js} +1 -1
- package/dist/client/assets/{preview-tab-BLd_YM6q.js → preview-tab-Cl9H482E.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BEHWsHij.js → product-picker-dialog-BL9boxvk.js} +1 -1
- package/dist/client/assets/{profile-CxcB48LV.js → profile-OP4zsfS_.js} +1 -1
- package/dist/client/assets/{project-app-view-DThAV1rl.js → project-app-view-CYOoDrbJ.js} +1 -1
- package/dist/client/assets/{project-apps-B94DpdMu.js → project-apps-BcbysZgz.js} +1 -1
- package/dist/client/assets/{project-icon-BHcF2TIr.js → project-icon-DsXJkCkm.js} +1 -1
- package/dist/client/assets/{project-index-Be1RuOJ6.js → project-index-D_813h_x.js} +1 -1
- package/dist/client/assets/project-reports-Cu_S3g_o.js +1 -0
- package/dist/client/assets/project-tasks-B0R4-BCy.js +1 -0
- package/dist/client/assets/{projects-C1GSJkUl.js → projects-BPAfSozY.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DlLdfDdd.js → projects-empty-state-CqVfdsjs.js} +1 -1
- package/dist/client/assets/{prompts-5zeVOrro.js → prompts-BKgSI8pJ.js} +1 -1
- package/dist/client/assets/record-editor-CjcMnQKJ.js +1 -0
- package/dist/client/assets/{redirect-editor-CEVbDPNz.js → redirect-editor-Dhnkzc8x.js} +1 -1
- package/dist/client/assets/reports-Ddcyqv78.js +1 -0
- package/dist/client/assets/{reports-onboarding-Bgx5Wbga.js → reports-onboarding-Dqt1GZGm.js} +1 -1
- package/dist/client/assets/{reports-S46_cn_C.js → reports-rQvh0Hwt.js} +1 -1
- package/dist/client/assets/{reports-tab-CajwSXZt.js → reports-tab-DLtX9pIH.js} +2 -2
- package/dist/client/assets/{repositories-B1gkEk-T.js → repositories-DRcv3rGo.js} +1 -1
- package/dist/client/assets/repositories-o1iCE7DL.js +1 -0
- package/dist/client/assets/{repository-binding-BS9v5Fe_.js → repository-binding-B-NGFlA8.js} +1 -1
- package/dist/client/assets/{repository-picker-CXtPhUQx.js → repository-picker-gzTJe9Gv.js} +1 -1
- package/dist/client/assets/{require-capability-Db5kMZvY.js → require-capability-kZjYTRSp.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C_8jBLMB.js → required-auth-layout-nH3iv-0Q.js} +1 -1
- package/dist/client/assets/{reset-password-DIVuqYKV.js → reset-password-DB-udXR6.js} +1 -1
- package/dist/client/assets/{resizable-97tyuWCT.js → resizable-BlRMDdrh.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CgO8Qihl.js → resolve-tab-icon-CiuDD5mB.js} +1 -1
- package/dist/client/assets/{review-settings-CLgbnmq-.js → review-settings-CXLjCt8_.js} +1 -1
- package/dist/client/assets/{role-color-gTG8o13c.js → role-color-uiFynXo0.js} +1 -1
- package/dist/client/assets/{roles-zI-Hk6fY.js → roles-BAmonx9L.js} +1 -1
- package/dist/client/assets/route-BVJlGC3e.js +1 -0
- package/dist/client/assets/{route-JrcnSNgm.js → route-DnjRFCDt.js} +1 -1
- package/dist/client/assets/{route-BVVvTINP.js → route-ezf78-kp.js} +1 -1
- package/dist/client/assets/{route-page-header-DFLx6qIf.js → route-page-header-X-mAmINr.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-CbcKlTqF.js → sandbox-git-api-aKyMzAgE.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-Ckk9fyCX.js → sandbox-lifecycle-context-D7Fp6oqG.js} +1 -1
- package/dist/client/assets/{save-status-DIv_w4LK.js → save-status-DJPya39G.js} +1 -1
- package/dist/client/assets/{schema-CsWev9Lq.js → schema-BBpKzKno.js} +1 -1
- package/dist/client/assets/{schema-CggWCz-G.js → schema-DCd8UMh8.js} +1 -1
- package/dist/client/assets/{scroll-area-KLc2042F.js → scroll-area-Csvonw83.js} +1 -1
- package/dist/client/assets/{search-input-D6gGXIf1.js → search-input-Cu6jTXVw.js} +1 -1
- package/dist/client/assets/{search-toggle-CMDWFPiy.js → search-toggle-e_exxt7r.js} +1 -1
- package/dist/client/assets/{secret-picker-IFIVFm7w.js → secret-picker-DNUQblEn.js} +1 -1
- package/dist/client/assets/{secrets-jBAw0ULO.js → secrets-Bn1WBwcl.js} +1 -1
- package/dist/client/assets/{section-array-field-fkRL6dJN.js → section-array-field-BEw6_ifu.js} +1 -1
- package/dist/client/assets/{sections-DH2lycfv.js → sections-DJiuecaT.js} +1 -1
- package/dist/client/assets/{sections-editor-BWiwMgid.js → sections-editor-DVOsCD59.js} +1 -1
- package/dist/client/assets/{select-DPXDtN3F.js → select-P0a7iEwt.js} +1 -1
- package/dist/client/assets/{select-model-DL2dvL4e.js → select-model-C0gDb4oR.js} +1 -1
- package/dist/client/assets/{seo-editor-Qsv4nJ3u.js → seo-editor-bpOl0mAI.js} +1 -1
- package/dist/client/assets/{separator-CL-QJFBL.js → separator-CD1pacr0.js} +1 -1
- package/dist/client/assets/{session-runtime-BtkBTCEv.js → session-runtime-CPmKckVH.js} +1 -1
- package/dist/client/assets/settings-tab-DvLo5tCi.js +1 -0
- package/dist/client/assets/{sheet-DKmzxIAF.js → sheet-p2Ousfn8.js} +1 -1
- package/dist/client/assets/{shell-layout-DwJrXedk.js → shell-layout-ipiZBDIC.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CKH_63G-.js → site-draft-actions-BvryPs_I.js} +1 -1
- package/dist/client/assets/{site-draft-view-Cr2tGRpR.js → site-draft-view-CafbfdCR.js} +1 -1
- package/dist/client/assets/site-editor-BXgkiOeW.js +1 -0
- package/dist/client/assets/{site-editor-toast-BRXEnjic.js → site-editor-toast-BCIjRFDB.js} +1 -1
- package/dist/client/assets/{skills-DJZ4NcoQ.js → skills-B9A2Tnlp.js} +1 -1
- package/dist/client/assets/{slider-tajZdOy1.js → slider-BSVnJGMl.js} +1 -1
- package/dist/client/assets/{sortable.esm-xHKM0aSe.js → sortable.esm-RnWQ2Udf.js} +1 -1
- package/dist/client/assets/{sso-CdgaAIgO.js → sso-CB570QeV.js} +1 -1
- package/dist/client/assets/{suggestion-BapLR6AM.js → suggestion-vwX5VgUe.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DD9h5HSQ.js → super-agent-icon-BPbK3yEF.js} +1 -1
- package/dist/client/assets/{switch-DEje7fmz.js → switch-DhrqiPup.js} +1 -1
- package/dist/client/assets/{synced-repos-p7TfojtZ.js → synced-repos-Dj7MNmrF.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DlkpXRLw.js → tab-icon-glyph-CwXfY3im.js} +1 -1
- package/dist/client/assets/{table-Cie3FI8M.js → table-C2Ra_yKM.js} +1 -1
- package/dist/client/assets/{tabs-BMObVAFs.js → tabs-BB9AjDp8.js} +1 -1
- package/dist/client/assets/{task-board-CZuAKwkd.js → task-board-B47Oba0a.js} +1 -1
- package/dist/client/assets/{task-key-Binbqohp.js → task-key-CzMIIXuS.js} +1 -1
- package/dist/client/assets/{task-route-IxeWFQf4.js → task-route-DnF8qwEX.js} +1 -1
- package/dist/client/assets/{task-status-24VN3LnD.js → task-status-Cgcee3O1.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-TIghTMhL.js → taskboard-analytics-BGk64d_U.js} +1 -1
- package/dist/client/assets/{tasks-DnDVdrmF.js → tasks-9BhHRctq.js} +1 -1
- package/dist/client/assets/tasks-qwSI_NuF.js +1 -0
- package/dist/client/assets/{textarea-3iEFQij9.js → textarea-BfYW4m9c.js} +1 -1
- package/dist/client/assets/{thread-analytics-DvdOTcnX.js → thread-analytics-1PuOj_1s.js} +1 -1
- package/dist/client/assets/{thread-button-ChRjFza7.js → thread-button-D5DY5gNU.js} +1 -1
- package/dist/client/assets/{thread-intent-BNoxio0t.js → thread-intent-CMPSad7_.js} +1 -1
- package/dist/client/assets/{thread-route-sNjMl6Ie.js → thread-route-BizqFXgE.js} +1 -1
- package/dist/client/assets/{thread-route-DEzPmkpC.js → thread-route-D3pQjYup.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-JBqWWQDi.js → thread-sheet-body-XpKlRgjQ.js} +1 -1
- package/dist/client/assets/{time-range-picker-DDjkoMQs.js → time-range-picker-DpPBnDJs.js} +1 -1
- package/dist/client/assets/{toggle-group-N0qYYn6W.js → toggle-group-DNENle-P.js} +1 -1
- package/dist/client/assets/{tool-set-selector-BE0R1AUj.js → tool-set-selector-jU7fZbNy.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BSXImY57.js → toolbar-icon-button-BzpP1rEG.js} +1 -1
- package/dist/client/assets/{tooltip-r0LfLYi3.js → tooltip-iXXWa3VG.js} +1 -1
- package/dist/client/assets/{tooltipContext-DRtEpNZN.js → tooltipContext-C8y_VFmL.js} +1 -1
- package/dist/client/assets/{track-Ciq_Ag4i.js → track-Bc9nbdpg.js} +1 -1
- package/dist/client/assets/{types-BhUJ3bOA.js → types-Ds7H4BQL.js} +1 -1
- package/dist/client/assets/{url-slug-CR2COLQn.js → url-slug-Dl2YaRDk.js} +1 -1
- package/dist/client/assets/{usage-stats-BH8jlFhP.js → usage-stats-Cpv39cmk.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CFArCH41.js → use-ai-providers-DAAK1LJH.js} +1 -1
- package/dist/client/assets/{use-api-keys-lPXg3MPh.js → use-api-keys-DYWSrleO.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-C4A8N8Up.js → use-apply-named-rule-ChczImI2.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-DsqzzR_R.js +1 -0
- package/dist/client/assets/{use-automations-DcCuqnYq.js → use-automations-BlLUMChm.js} +1 -1
- package/dist/client/assets/{use-autosave-Cpi6qZoh.js → use-autosave-C8IC3tXr.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-D3ldcoCH.js +1 -0
- package/dist/client/assets/use-blog-view-CjVBpsro.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-DjHcwQYx.js → use-chat-layout-state-C8KgaHCk.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BbXykL5B.js → use-cms-publish-actions-CfFe1een.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CNj3wQey.js → use-connect-companion-BCNVG3tV.js} +1 -1
- package/dist/client/assets/{use-connection-DpuSfyHb.js → use-connection-CyhiAuyN.js} +1 -1
- package/dist/client/assets/{use-content-sync-C9laqqVB.js → use-content-sync-DMiZIHHe.js} +1 -1
- package/dist/client/assets/{use-copy-BFUDxfVH.js → use-copy-jVRNS72q.js} +1 -1
- package/dist/client/assets/{use-current-view-C1-z4fIk.js → use-current-view-DbaDobC4.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D6T1OHTy.js → use-date-fns-locale-3quXKuiY.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C5QlmVn0.js → use-debounced-autosave-Cj1eq42P.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BkJoL4uj.js → use-debounced-value-CI6OWQk7.js} +1 -1
- package/dist/client/assets/{use-deco-credits-zD_A42hI.js → use-deco-credits-CH6PNQ_v.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CZR337Lj.js → use-decopilot-events-CsRo6_4Z.js} +1 -1
- package/dist/client/assets/{use-delete-block-BYw_7GRP.js → use-delete-block-CgNbR5dQ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B0ASWh3-.js → use-delete-connection-DKGnNBlw.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DGQGQZ6E.js → use-deployment-admin-DsggmftG.js} +1 -1
- package/dist/client/assets/{use-entitlements-BRKIl3Rz.js → use-entitlements-cKoK0gNm.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BTGBRNHr.js → use-fast-preview-draft-url-CVB9nGuj.js} +1 -1
- package/dist/client/assets/{use-file-configs-CMTQcHfJ.js → use-file-configs-DvcuDR-z.js} +1 -1
- package/dist/client/assets/{use-id-selection-Bn7c-vY3.js → use-id-selection-BfYt0Wlx.js} +1 -1
- package/dist/client/assets/{use-in-settings-BT3nEhsO.js → use-in-settings-DF-tVIoE.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-DGj1Phk9.js → use-inbox-feed-BBbvu_QZ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Dv1yBngZ.js → use-infinite-scroll-iq2V7hOe.js} +1 -1
- package/dist/client/assets/{use-join-requests-DMRpQYlE.js → use-join-requests-yWpslxoF.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-C0GJ35ov.js → use-main-panel-tabs-CkCUK4K2.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D9OBaQkq.js → use-mcp-auth-status-BjTyNUC6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DXpTlXlJ.js → use-mcp-client-Bq8ol96W.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-B_BU9Jdl.js → use-mcp-prompts-B6Jw27dX.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B0m5-RR6.js → use-mcp-tools-BBonPTWo.js} +1 -1
- package/dist/client/assets/{use-mobile-BwxeIsTr.js → use-mobile-dNUmCifC.js} +1 -1
- package/dist/client/assets/{use-move-blocks-D-OheBD-.js → use-move-blocks-DkefGETO.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DjeX7xEq.js → use-navigate-to-agent-DeYqaaa3.js} +1 -1
- package/dist/client/assets/{use-never-published-CP8Hs4DE.js → use-never-published-V8ak3bds.js} +1 -1
- package/dist/client/assets/{use-org-fs-D2bsNlGU.js → use-org-fs-qpGfwwQf.js} +1 -1
- package/dist/client/assets/{use-org-notice-BLcA1Iw0.js → use-org-notice-DEvisT2l.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Dfmuqlr1.js → use-org-repo-syncs-CkMNVLVA.js} +1 -1
- package/dist/client/assets/{use-org-sso-DhdCpzK5.js → use-org-sso-DiEFaIS8.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BilLeNy9.js → use-organization-settings-DmJ49Wll.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DpEZACCY.js → use-panel-navigate-BtwQP9g-.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-D4zm5hDa.js → use-project-native-view-presence-DW2-U7IG.js} +1 -1
- package/dist/client/assets/{use-project-scope-C815BKEh.js → use-project-scope-B49l3tYT.js} +1 -1
- package/dist/client/assets/{use-recent-apps-Cr_xiDfS.js → use-recent-apps-B62FmT2v.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Djz2mp7k.js → use-reports-diagnostic-DHnSBwPM.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-aK2a02aF.js → use-sandbox-events-CNUqntlP.js} +1 -1
- package/dist/client/assets/{use-secrets-CJ3hXlfU.js → use-secrets-CexRiKHt.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Ve5g9dlJ.js → use-section-preview-base-CqvFVrVu.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CSFUmB9m.js → use-sidebar-collapsed-euA02TXK.js} +1 -1
- package/dist/client/assets/{use-tags-ZV0RDof-.js → use-tags-64LcPJtA.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-4kD6ppwm.js → use-task-board-analytics-DUV56Jef.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Cwh80HEy.js → use-task-board-item-prs-BnskjWVg.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DX_SyoB4.js → use-task-board-items-DT4Yu9ci.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-Cf3d-x7e.js → use-task-board-prompts-DVYmomFM.js} +1 -1
- package/dist/client/assets/{use-task-metadata-L7Sk1FlH.js → use-task-metadata-BIJ7BpWb.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-HnCGzIoZ.js → use-thread-outputs-riYbRXeW.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-1niLZJ6g.js → use-view-draft-kind-D6a-C5cc.js} +1 -1
- package/dist/client/assets/{use-voice-input-DYwW5R3c.js → use-voice-input-DwLhccAL.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B7ay7aNP.js +1 -0
- package/dist/client/assets/{useQueries-BNC8S8pQ.js → useQueries-v3dcLTuG.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BuojYKnE.js +1 -0
- package/dist/client/assets/{users-DeIRsAGC.js → users-v7Mpl1bC.js} +1 -1
- package/dist/client/assets/{utils-DII4rh9V.js → utils-DBfgNQF1.js} +1 -1
- package/dist/client/assets/{variant-calendar-ChRlrtIQ.js → variant-calendar-Bla8wTwx.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DQIPA96S.js → variant-matcher-override-1y0OsCVS.js} +1 -1
- package/dist/client/assets/{view-header-CDV0Xu_P.js → view-header-B7lYbePo.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DrcP-MsH.js → virtual-mcp-CrzgTGWz.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Bw3-M9_N.js → watch-sse-pool-wQgu9ix_.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B4NG-g7u.js +0 -1
- package/dist/client/assets/agent-deck-DbvnjqCy.js +0 -1
- package/dist/client/assets/agent-experiments-D0KHYwLz.js +0 -1
- package/dist/client/assets/agent-file-DJr9f7Uu.js +0 -1
- package/dist/client/assets/agent-library-Q1o2w1EA.js +0 -1
- package/dist/client/assets/agent-library-file-DeAgo7Oz.js +0 -1
- package/dist/client/assets/agent-overview-BzbDDcHv.js +0 -1
- package/dist/client/assets/agent-settings-CmbLkbQ3.js +0 -1
- package/dist/client/assets/agent-site-editor-code-mWem5GG6.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Cxhwi79L.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BTUTVJ5a.js +0 -1
- package/dist/client/assets/agent-view-ZyP4-VSz.js +0 -1
- package/dist/client/assets/api-keys-DYGRMzXM.js +0 -1
- package/dist/client/assets/library-i7u4D0nv.js +0 -1
- package/dist/client/assets/project-reports-K8JRKUu4.js +0 -1
- package/dist/client/assets/project-tasks-CA5yJnAe.js +0 -1
- package/dist/client/assets/record-editor-DayZB6HD.js +0 -1
- package/dist/client/assets/reports-vF-XIQTi.js +0 -1
- package/dist/client/assets/repositories-CMSsRRv6.js +0 -1
- package/dist/client/assets/route-DGTGR39c.js +0 -1
- package/dist/client/assets/settings-tab-9VStd703.js +0 -1
- package/dist/client/assets/site-editor-CVnLWuGP.js +0 -1
- package/dist/client/assets/tasks-UA8LFybk.js +0 -1
- package/dist/client/assets/use-ask-in-chat-DxfAfFUt.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-uH3tLJJX.js +0 -1
- package/dist/client/assets/use-blog-view-B-p1Bott.js +0 -1
- package/dist/client/assets/useInfiniteQuery-C5Fx0PfA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-kmW-ybmd.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as d,j as a,a2 as g}from"./index-CnlrqsCd.js";import{ChatLayout as x}from"./index-BT86t2zN.js";import{a as h}from"./thread-route-BizqFXgE.js";import{u as $}from"./use-task-metadata-BIJ7BpWb.js";import{AppViewContent as A}from"./project-app-view-CYOoDrbJ.js";import"./use-mobile-dNUmCifC.js";import"./tooltip-iXXWa3VG.js";import"./index-DEg1eCWz.js";import"./MessageCircle01-dCZEdQhF.js";import"./XClose-BAaBoHXT.js";import"./thread-button-D5DY5gNU.js";import"./use-sidebar-collapsed-euA02TXK.js";import"./sheet-p2Ousfn8.js";import"./use-chat-layout-state-C8KgaHCk.js";import"./use-panel-navigate-BtwQP9g-.js";import"./use-project-scope-B49l3tYT.js";import"./repository-binding-B-NGFlA8.js";import"./use-mcp-client-Bq8ol96W.js";import"./auth-CNYHKCFg.js";import"./toolbar-icon-button-BzpP1rEG.js";import"./use-in-settings-DF-tVIoE.js";import"./resizable-BlRMDdrh.js";import"./route-page-header-X-mAmINr.js";import"./LayoutLeft-C8ndIALE.js";import"./use-current-view-DbaDobC4.js";import"./thread-intent-CMPSad7_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-wQgu9ix_.js";import"./task-board-B47Oba0a.js";import"./schema-DCd8UMh8.js";import"./session-runtime-CPmKckVH.js";import"./gateway-client-BwxdQL6w.js";import"./use-mcp-tools-BBonPTWo.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DEDNSoX2.js";import"./types-Ds7H4BQL.js";import"./chat-context-Cdr2Tzco.js";import"./use-view-draft-kind-D6a-C5cc.js";import"./use-blog-view-CjVBpsro.js";import"./use-organization-settings-DmJ49Wll.js";import"./use-entitlements-cKoK0gNm.js";import"./use-ai-providers-DAAK1LJH.js";import"./use-decopilot-events-CsRo6_4Z.js";import"./shell-layout-ipiZBDIC.js";import"./Globe04-C8iXbhsR.js";import"./UserSquare-xrIyO385.js";import"./use-deployment-admin-DsggmftG.js";import"./admin-fetch-BhTJlAsX.js";import"./agent-icon-Da3tHBMv.js";import"./AlertCircle-BckhzGo9.js";import"./UserCheck01-lNPupOG8.js";import"./Tool01-CtY1k5Dx.js";import"./ArrowUp-jwPYnWqs.js";import"./ArrowLeft-DjFnycHz.js";import"./ArrowRight-DdCk_HCk.js";import"./BookOpen01-B2ISsdx6.js";import"./CheckCircle-p76CoLTf.js";import"./TrendUp01-DAuvMm77.js";import"./ChevronDown-Cf6eg1Aj.js";import"./ChevronSelectorVertical-ies3TLws.js";import"./ChevronUp-Yoxwp_-j.js";import"./LinkBroken01-WNn1RqQL.js";import"./CreditCard01-DOIepajb.js";import"./File02-B4TAUApJ.js";import"./SwitchHorizontal01-DB7Iju_C.js";import"./Eye-B-zZzOpR.js";import"./Image01-BKS8Yp4v.js";import"./Key01-D3gaP9qK.js";import"./Minus-BGxu6wTp.js";import"./Monitor01-CrmQoLWb.js";import"./Sun-CnYsG6YA.js";import"./Play-B1JyKt5J.js";import"./Plus-nOMLt4Yk.js";import"./SearchMd-BQl6TEDK.js";import"./ShoppingBag01-DPoH0u5v.js";import"./Trash01-DLwaS_5I.js";import"./Upload01-D8Llo-n7.js";import"./Users01-B6_L_w2p.js";import"./Zap-DV5_FZrE.js";import"./use-org-notice-DEvisT2l.js";import"./command-CtLQP1YS.js";import"./index-DjQbsfzi.js";import"./integration-icon-XdnHhG6r.js";import"./project-icon-DsXJkCkm.js";import"./use-navigate-to-agent-DeYqaaa3.js";import"./use-debounced-value-CI6OWQk7.js";import"./new-project-dialog-DqENGapI.js";import"./label-D9MCble5.js";import"./repository-picker-gzTJe9Gv.js";import"./github-icon-Bx9ss8sA.js";import"./useInfiniteQuery-B7ay7aNP.js";import"./infiniteQueryObserver-d6eMImhi.js";import"./collection-search-CW9SJXAE.js";import"./new-project-store-BCRxr-mc.js";import"./legacy-admin-welcome-dialog-5lUmP66o.js";import"./drawer-CRP1WiCk.js";import"./required-auth-layout-nH3iv-0Q.js";import"./use-org-sso-DiEFaIS8.js";import"./task-route-DnF8qwEX.js";import"./task-key-CzMIIXuS.js";import"./project-index-D_813h_x.js";import"./connect-source-dialog-BXFll5AK.js";import"./site-url-en5df9c-.js";import"./use-connect-companion-BCNVG3tV.js";import"./companions-core-DhUD88pR.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C58hYmYC.js";import"./form-9ojGZv11.js";import"./icon-button-DhhoBQY7.js";import"./useQueries-v3dcLTuG.js";import"./authenticate-and-persist-oauth-D450Ij-p.js";import"./mcp-oauth-D_ZnYWZH.js";import"./mcp-oauth-XpGc4vgb.js";import"./track-Bc9nbdpg.js";import"./extract-connection-data-C26a1rUY.js";import"./connection-BNwNEPn2.js";import"./url-slug-Dl2YaRDk.js";const l=g("/shell/$org/org-shell/agent-shell/projects/$agentId/apps/$connectionId/$toolName");function j(){const t=d.c(10),{connectionId:o,toolName:r}=l.useParams(),{args:i}=l.useSearch(),u=h(),e=$(u);let p;t[0]!==o||t[1]!==e?.expanded_tools||t[2]!==r?(p=e?.expanded_tools?.find(c=>c.appId===o&&c.toolName===r),t[0]=o,t[1]=e?.expanded_tools,t[2]=r,t[3]=p):p=t[3];const f=p,s=`${o}:${r}`,n=f?.args;let m;return t[4]!==i||t[5]!==o||t[6]!==s||t[7]!==n||t[8]!==r?(m=a.jsx(A,{connectionId:o,toolName:r,args:n,searchArgs:i},s),t[4]=i,t[5]=o,t[6]=s,t[7]=n,t[8]=r,t[9]=m):m=t[9],m}function wo(){const t=d.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(x.Content,{children:a.jsx(j,{})}),t[0]=o):o=t[0],o}export{wo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,bs as Pe,j as i,b as fe,r as se,bc as De,h as he,B as je,m as Ne,t as me,aH as ve,aI as Ce,aJ as Se,aK as _e,b7 as we,aL as Ae,aM as ze,aN as Fe,X as Ie,aW as Ue,Y as xe,a7 as $e,Z as Me,_ as Te}from"./index-BsAwgxIf.js";import{ChatLayout as Ee}from"./index-DQWJotH-.js";import{A as Be}from"./agent-view-guard-DEo6nzlH.js";import{D as Le,e as Re}from"./agent-icon-B9nZhdi2.js";import{a as Oe}from"./SwitchHorizontal01-BU8z7oT_.js";import{i as Ve}from"./File02-DEjt2PPW.js";import{a as We}from"./Image01-BCiDUkCm.js";import{s as qe}from"./Trash01-aSl--BGd.js";import{i as be}from"./Upload01-DozMUWEF.js";import{S as Ge}from"./search-input-D6gGXIf1.js";import{b as He}from"./repository-binding-BS9v5Fe_.js";import{u as Ke}from"./use-debounced-value-BkJoL4uj.js";import{a as Ye}from"./use-file-configs-CMTQcHfJ.js";import{a as Je,u as Qe,B as Xe,e as Ze,i as et,b as ye,f as tt,c as it}from"./asset-utils-Lxwn3jp5.js";import{m as st}from"./match-site-slug-config-B47_xZCi.js";import{c as rt}from"./thread-route-sNjMl6Ie.js";import"./use-mobile-BwxeIsTr.js";import"./tooltip-r0LfLYi3.js";import"./index-KBC7Pj7l.js";import"./MessageCircle01-CQjeMfQj.js";import"./XClose-Dq0BGBMq.js";import"./thread-button-ChRjFza7.js";import"./use-sidebar-collapsed-CSFUmB9m.js";import"./sheet-DKmzxIAF.js";import"./use-chat-layout-state-DjHcwQYx.js";import"./use-panel-navigate-DpEZACCY.js";import"./use-project-scope-C815BKEh.js";import"./toolbar-icon-button-BSXImY57.js";import"./use-in-settings-BT3nEhsO.js";import"./resizable-97tyuWCT.js";import"./route-page-header-DFLx6qIf.js";import"./LayoutLeft-DHg_jNr0.js";import"./use-current-view-C1-z4fIk.js";import"./use-mcp-client-DXpTlXlJ.js";import"./auth-D0WiD-6X.js";import"./use-main-panel-tabs-C0GJ35ov.js";import"./Monitor01-C4OHhcX6.js";import"./use-connection-DpuSfyHb.js";import"./use-mcp-tools-B0m5-RR6.js";import"./types-BhUJ3bOA.js";import"./utils-CVEq3hMx.js";import"./agent-capabilities-MDN7TVuK.js";import"./index-A2_7RKep.js";import"./ArrowUp-DyF0Rx2O.js";import"./chat-context-BhwgXdxZ.js";import"./use-view-draft-kind-1niLZJ6g.js";import"./use-blog-view-B-p1Bott.js";import"./use-organization-settings-BilLeNy9.js";import"./schema-CggWCz-G.js";import"./task-board-CZuAKwkd.js";import"./thread-intent-BNoxio0t.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bw3-M9_N.js";import"./session-runtime-BtkBTCEv.js";import"./use-entitlements-BRKIl3Rz.js";import"./use-ai-providers-CFArCH41.js";import"./use-decopilot-events-CZR337Lj.js";import"./input-Cy8KNDYA.js";import"./usage-stats-BH8jlFhP.js";import"./markdown-SwM1Ir6g.js";import"./use-copy-BFUDxfVH.js";import"./gateway-client-t5s1Cm0x.js";import"./form-Cb5OHNc9.js";import"./label-D8u4gNcM.js";import"./icon-button-CpBLMSxk.js";import"./file-type-icon-Bhy3vcyl.js";import"./chat-draft-CG09JkEF.js";import"./use-voice-input-DYwW5R3c.js";import"./popover-DogMO3pk.js";import"./drawer-EGIO8vW1.js";import"./ChevronDown-uPv2ScPr.js";import"./UserCheck01-3D5hYz4C.js";import"./Tool01-ymE-fOFX.js";import"./index-CT5cpmuw.js";import"./checkbox-BwlyfOui.js";import"./Minus-BM2zRSMr.js";import"./select-DPXDtN3F.js";import"./index-BdQq_4o_.js";import"./ChevronUp-BkmRXggG.js";import"./ArrowLeft-B8D7i2xh.js";import"./ChevronSelectorVertical-CiFyE2Pu.js";import"./Key01-CgRwsDr3.js";import"./SearchMd-BhCfkG_O.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-DA6gE5vw.js";import"./Eye-DL5oRAI4.js";import"./ArrowRight-C1EmTlL-.js";import"./BookOpen01-UxGmri2e.js";import"./UserSquare-aJjYmjOR.js";import"./tabs-BMObVAFs.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-zD_A42hI.js";import"./toggle-group-N0qYYn6W.js";import"./input--kphUWpn.js";import"./suggestion-BapLR6AM.js";import"./use-mcp-prompts-B_BU9Jdl.js";import"./use-org-fs-D2bsNlGU.js";import"./useInfiniteQuery-C5Fx0PfA.js";import"./infiniteQueryObserver-CnD94meO.js";import"./Plus-BzpqhVU8.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-BQdFbBKY.js";import"./plan-ladder-DAHXnxDP.js";import"./add-connection-dialog-D1_0-J8t.js";import"./collection-search-Dj3oO1qn.js";import"./extract-connection-data-DeUSUVIy.js";import"./metadata-D72DunRR.js";import"./connection-CELF9xGk.js";import"./url-slug-CR2COLQn.js";import"./connection-card-DqAevMOq.js";import"./connection-slug-Dz7hwoVN.js";import"./integration-icon-DbiCbrD7.js";import"./LinkBroken01-Ic71rSEU.js";import"./textarea-3iEFQij9.js";import"./schema-CsWev9Lq.js";import"./connection-form-helpers-egiEwtYz.js";import"./authenticate-and-persist-oauth-CjsXQJBc.js";import"./mcp-oauth-DXUgkWSg.js";import"./mcp-oauth-nZa_TONF.js";import"./collection-tabs-Wktk7Bil.js";import"./badge-BUkSpOXa.js";import"./use-infinite-scroll-Dv1yBngZ.js";import"./useSuspenseInfiniteQuery-kmW-ybmd.js";import"./use-task-board-items-DX_SyoB4.js";import"./pair-4JIJkNK2.js";import"./collapsible-BILoWprp.js";import"./task-key-Binbqohp.js";import"./config-Bn4oMb7y.js";import"./CheckCircle-Bh1gNJET.js";import"./task-route-IxeWFQf4.js";import"./project-index-Be1RuOJ6.js";import"./TrendUp01-Cr4FP2fV.js";import"./shell-layout-DwJrXedk.js";import"./Globe04-DD86hrsf.js";import"./use-deployment-admin-DGQGQZ6E.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BLcA1Iw0.js";import"./Zap-NAfA60T9.js";import"./command-BcxQrgUK.js";import"./index-Bi2fLJMb.js";import"./project-icon-BHcF2TIr.js";import"./use-navigate-to-agent-DjeX7xEq.js";import"./new-project-dialog-CrDlez-N.js";import"./repository-picker-CXtPhUQx.js";import"./github-icon-BoZrKkV3.js";import"./ShoppingBag01-KIefHp9K.js";import"./new-project-store-DleT4y6U.js";import"./legacy-admin-welcome-dialog-C4yFyjEg.js";import"./required-auth-layout-C_8jBLMB.js";import"./use-org-sso-DhdCpzK5.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Jzrzu2q5.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-HnCGzIoZ.js";import"./use-sandbox-events-aK2a02aF.js";import"./sandbox-url-D3mC8qhT.js";import"./resolve-tab-icon-CgO8Qihl.js";import"./use-task-metadata-L7Sk1FlH.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-D4zm5hDa.js";import"./use-blocks-v8-project-uH3tLJJX.js";import"./virtual-mcp-DrcP-MsH.js";import"./CreditCard01-C-H9qti1.js";import"./Sun-CoJn-J4w.js";import"./Play-l838EjWq.js";import"./Users01-Cximoi8v.js";function lt(r){const e=z.c(6),{virtualMcpId:t}=r,s=He(t),l=Ye();let o;e[0]!==l||e[1]!==s?(o=st(l,Pe(s),s?.metadata?.assetStorageConfigId),e[0]=l,e[1]=s,e[2]=o):o=e[2];const n=o;if(!n){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(ot,{}),e[3]=a):a=e[3],a}let c;return e[4]!==n?(c=i.jsx(ct,{config:n}),e[4]=n,e[5]=c):c=e[5],c}function ot(){const r=z.c(12),e=fe();let t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:i.jsx(Le,{size:20,className:"text-muted-foreground"})}),r[0]=t):t=r[0];let s;r[1]!==e?(s=e("assets.browser.noBucketTitle"),r[1]=e,r[2]=s):s=r[2];let l;r[3]!==s?(l=i.jsx("p",{className:"text-sm font-medium",children:s}),r[3]=s,r[4]=l):l=r[4];let o;r[5]!==e?(o=e("assets.browser.noBucketDescription"),r[5]=e,r[6]=o):o=r[6];let n;r[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),r[7]=o,r[8]=n):n=r[8];let c;return r[9]!==l||r[10]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,i.jsxs("div",{children:[l,n]})]}),r[9]=l,r[10]=n,r[11]=c):c=r[11],c}function nt(r){return r<0||r<640?2:r<768?3:r<1024?4:5}function at(r,e){const t=Array.from({length:e},()=>[]);return r.forEach((s,l)=>t[l%e].push(s)),t}function ct(r){const e=z.c(99),{config:t}=r,s=fe(),[l,o]=se.useState(""),n=Ke(l,300);let c;e[0]!==t.id||e[1]!==n?(c={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=c):c=e[2];const a=Je(c),m=Qe(),[y,p]=se.useState(!1),[d,g]=se.useState(null),u=se.useRef(null);let h;e[3]!==t.id||e[4]!==a||e[5]!==s||e[6]!==m?(h=async function(S){if(!S)return;const R=Array.from(S);if(R.length===0)return;const F=[];for(const te of R)try{await m.mutateAsync({configId:t.id,file:te})}catch(ie){const A=ie;F.push(`${te.name} (${A instanceof Error?A.message:"upload failed"})`)}await a.refetch(),F.length>0&&me.error(F.length===R.length?s("filePicker.filePickerDialog.uploadFailedAll",{errors:F.join("; ")}):s("filePicker.filePickerDialog.uploadFailedSome",{errors:F.join("; ")}))},e[3]=t.id,e[4]=a,e[5]=s,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(S){S.preventDefault(),p(!0)},e[8]=f):f=e[8];const j=f;let _;e[9]===Symbol.for("react.memo_cache_sentinel")?(_=function(){p(!1)},e[9]=_):_=e[9];const P=_;let k;e[10]!==x?(k=function(S){S.preventDefault(),S.stopPropagation(),p(!1),x(S.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const b=k,[D,w]=De();let N,v,C,I,U,$,M;if(e[12]!==t.name||e[13]!==n||e[14]!==w||e[15]!==D||e[16]!==x||e[17]!==y||e[18]!==a||e[19]!==b||e[20]!==l||e[21]!==s||e[22]!==m.isPending){const L=a.data?.pages??[],S=L.some(ft),R=L.flatMap(mt),F=at(R,nt(D)),te=n.trim(),ie=l!==n||a.isFetching&&!a.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let A;e[30]!==s?(A=s("assets.browser.title"),e[30]=s,e[31]=A):A=e[31];let O;e[32]!==A?(O=i.jsx("h2",{className:"text-sm font-semibold",children:A}),e[32]=A,e[33]=O):O=e[33];let V;e[34]!==t.name||e[35]!==s?(V=s("assets.browser.bucketLabel",{name:t.name}),e[34]=t.name,e[35]=s,e[36]=V):V=e[36];let W;e[37]!==V?(W=i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:V}),e[37]=V,e[38]=W):W=e[38];let q;e[39]!==O||e[40]!==W?(q=i.jsxs("div",{className:"min-w-0",children:[O,W]}),e[39]=O,e[40]=W,e[41]=q):q=e[41];let oe;e[42]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>u.current?.click(),e[42]=oe):oe=e[42];let G;e[43]!==m.isPending?(G=m.isPending?i.jsx(he,{className:"size-3.5"}):i.jsx(be,{size:14}),e[43]=m.isPending,e[44]=G):G=e[44];let H;e[45]!==s||e[46]!==m.isPending?(H=m.isPending?s("filePicker.filePickerDialog.uploading"):s("filePicker.filePickerDialog.dropFilesOrClick"),e[45]=s,e[46]=m.isPending,e[47]=H):H=e[47];let K;e[48]!==G||e[49]!==H||e[50]!==m.isPending?(K=i.jsxs(je,{type:"button",size:"sm",disabled:m.isPending,onClick:oe,children:[G,H]}),e[48]=G,e[49]=H,e[50]=m.isPending,e[51]=K):K=e[51];let Y;e[52]!==x?(Y=i.jsx("input",{ref:u,type:"file",multiple:!0,className:"hidden",onChange:ce=>{const ue=Array.from(ce.target.files??[]);ce.target.value="",x(ue)}}),e[52]=x,e[53]=Y):Y=e[53],e[54]!==q||e[55]!==K||e[56]!==Y?(N=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[q,K,Y]}),e[54]=q,e[55]=K,e[56]=Y,e[57]=N):N=e[57];let J;e[58]!==s?(J=s("filePicker.filePickerDialog.searchFilesPlaceholder"),e[58]=s,e[59]=J):J=e[59],e[60]!==ie||e[61]!==l||e[62]!==J?(v=i.jsx(Ge,{value:l,onChange:o,isSearching:ie,placeholder:J,className:"shrink-0"}),e[60]=ie,e[61]=l,e[62]=J,e[63]=v):v=e[63];let ne;e[64]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>u.current?.click(),e[64]=ne):ne=e[64];const pe=y&&"border-primary bg-primary/5",de=m.isPending&&"pointer-events-none opacity-60";let Q;e[65]!==pe||e[66]!==de?(Q=Ne("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",pe,de),e[65]=pe,e[66]=de,e[67]=Q):Q=e[67];let ae;e[68]===Symbol.for("react.memo_cache_sentinel")?(ae=i.jsx(be,{size:16,className:"text-muted-foreground"}),e[68]=ae):ae=e[68];let X;e[69]!==s?(X=s("filePicker.filePickerDialog.dropFilesOrClick"),e[69]=s,e[70]=X):X=e[70];let Z;e[71]!==s?(Z=s("filePicker.filePickerDialog.uploadSizeLimit"),e[71]=s,e[72]=Z):Z=e[72];let ee;e[73]!==X||e[74]!==Z?(ee=i.jsxs("p",{className:"text-xs text-muted-foreground",children:[X," ",Z]}),e[73]=X,e[74]=Z,e[75]=ee):ee=e[75],e[76]!==b||e[77]!==Q||e[78]!==ee?(C=i.jsxs("button",{type:"button",onClick:ne,onDragOver:j,onDragLeave:P,onDrop:b,className:Q,children:[ae,ee]}),e[76]=b,e[77]=Q,e[78]=ee,e[79]=C):C=e[79],I="min-h-0 flex-1 overflow-y-auto pr-1",U=S||a.isError?i.jsx(Xe,{denied:S,retrying:a.isFetching,onRetry:()=>{a.refetch()}}):null,$=R.length===0?a.isPending||a.isError||S?null:te?i.jsx(ke,{title:s("filePicker.filePickerDialog.noMatches",{query:te}),description:s("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(ke,{title:s("filePicker.filePickerDialog.noFilesYet"),description:s("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:w,className:"flex items-start gap-3",children:F.map((ce,ue)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ce.map(ge=>i.jsx(pt,{item:ge,onDelete:()=>g(ge)},ge.key))},ue))}),e[12]=t.name,e[13]=n,e[14]=w,e[15]=D,e[16]=x,e[17]=y,e[18]=a,e[19]=b,e[20]=l,e[21]=s,e[22]=m.isPending,e[23]=N,e[24]=v,e[25]=C,e[26]=I,e[27]=U,e[28]=$,e[29]=M}else N=e[23],v=e[24],C=e[25],I=e[26],U=e[27],$=e[28],M=e[29];let T;e[80]!==a||e[81]!==s?(T=a.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(je,{type:"button",variant:"outline",size:"sm",disabled:a.isFetchingNextPage,onClick:()=>a.fetchNextPage(),children:a.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(he,{className:"size-3.5"}),s("filePicker.filePickerDialog.loading")]}):s("filePicker.filePickerDialog.loadMore")})}),e[80]=a,e[81]=s,e[82]=T):T=e[82];let E;e[83]!==T||e[84]!==I||e[85]!==U||e[86]!==$?(E=i.jsxs("div",{className:I,children:[U,$,T]}),e[83]=T,e[84]=I,e[85]=U,e[86]=$,e[87]=E):E=e[87];let re;e[88]===Symbol.for("react.memo_cache_sentinel")?(re=()=>g(null),e[88]=re):re=e[88];let B;e[89]!==t.id||e[90]!==d?(B=i.jsx(gt,{configId:t.id,item:d,onClose:re}),e[89]=t.id,e[90]=d,e[91]=B):B=e[91];let le;return e[92]!==N||e[93]!==v||e[94]!==C||e[95]!==E||e[96]!==B||e[97]!==M?(le=i.jsxs("div",{className:M,children:[N,v,C,E,B]}),e[92]=N,e[93]=v,e[94]=C,e[95]=E,e[96]=B,e[97]=M,e[98]=le):le=e[98],le}function mt(r){return r.items}function ft(r){return r.listingError==="access_denied"}function ke(r){const e=z.c(8),{title:t,description:s}=r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:i.jsx(We,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=i.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==s?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[3]=s,e[4]=n):n=e[4];let c;return e[5]!==o||e[6]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[l,o,n]}),e[5]=o,e[6]=n,e[7]=c):c=e[7],c}function pt(r){const e=z.c(34),{item:t,onDelete:s}=r;let l;e[0]!==t.key?(l=Ze(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=et(t.key),e[2]=t.key,e[3]=n):n=e[3];const c=n;let a;e[4]!==c||e[5]!==t.key||e[6]!==t.publicUrl?(a=c?i.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:dt}):i.jsx("div",{className:"flex aspect-square items-center justify-center",children:i.jsx(Ve,{size:28,className:"text-muted-foreground"})}),e[4]=c,e[5]=t.key,e[6]=t.publicUrl,e[7]=a):a=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==a?(m=i.jsx("a",{href:t.publicUrl,target:"_blank",rel:"noreferrer",title:t.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:a}),e[8]=t.key,e[9]=t.publicUrl,e[10]=a,e[11]=m):m=e[11];const y=t.key;let p;e[12]!==t.key?(p=ye(t.key),e[12]=t.key,e[13]=p):p=e[13];let d;e[14]!==t.key||e[15]!==p?(d=i.jsx("p",{className:"truncate text-xs font-medium",title:y,children:p}),e[14]=t.key,e[15]=p,e[16]=d):d=e[16];let g;e[17]!==t.size?(g=tt(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=i.jsxs("p",{className:"text-2xs uppercase text-muted-foreground",children:[o," · ",g]}),e[19]=o,e[20]=g,e[21]=u):u=e[21];let h;e[22]!==d||e[23]!==u?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[d,u]}),e[22]=d,e[23]=u,e[24]=h):h=e[24];let x;e[25]!==t||e[26]!==s?(x=i.jsx(ut,{item:t,onDelete:s}),e[25]=t,e[26]=s,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=i.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[h,x]}),e[28]=h,e[29]=x,e[30]=f):f=e[30];let j;return e[31]!==f||e[32]!==m?(j=i.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[m,f]}),e[31]=f,e[32]=m,e[33]=j):j=e[33],j}function dt(r){r.target.style.display="none"}function ut(r){const e=z.c(36),{item:t,onDelete:s}=r,l=fe(),[o,n]=se.useState(!1);let c;e[0]!==t.publicUrl||e[1]!==l?(c=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{me.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=c):c=e[2];const a=c;let m;e[3]!==l?(m=l("filePicker.filePickerDialog.assetActions"),e[3]=l,e[4]=m):m=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(Oe,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(Ie,{asChild:!0,children:i.jsx(je,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0","aria-label":m,children:y})}),e[6]=m,e[7]=p):p=e[7];let d;e[8]!==o?(d=o?i.jsx(Ue,{size:14}):i.jsx(Re,{size:14}),e[8]=o,e[9]=d):d=e[9];let g;e[10]!==o||e[11]!==l?(g=l(o?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=o,e[11]=l,e[12]=g):g=e[12];let u;e[13]!==a||e[14]!==d||e[15]!==g?(u=i.jsxs(xe,{onClick:a,children:[d,g]}),e[13]=a,e[14]=d,e[15]=g,e[16]=u):u=e[16];const h=t.publicUrl;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx($e,{size:14}),e[17]=x):x=e[17];let f;e[18]!==l?(f=l("filePicker.filePickerDialog.openInNewTab"),e[18]=l,e[19]=f):f=e[19];let j;e[20]!==t.publicUrl||e[21]!==f?(j=i.jsx(xe,{asChild:!0,children:i.jsxs("a",{href:h,target:"_blank",rel:"noreferrer",children:[x,f]})}),e[20]=t.publicUrl,e[21]=f,e[22]=j):j=e[22];let _;e[23]===Symbol.for("react.memo_cache_sentinel")?(_=i.jsx(qe,{size:14}),e[23]=_):_=e[23];let P;e[24]!==l?(P=l("assets.browser.deleteAction"),e[24]=l,e[25]=P):P=e[25];let k;e[26]!==s||e[27]!==P?(k=i.jsxs(xe,{variant:"destructive",onClick:s,children:[_,P]}),e[26]=s,e[27]=P,e[28]=k):k=e[28];let b;e[29]!==j||e[30]!==k||e[31]!==u?(b=i.jsxs(Me,{align:"end",children:[u,j,k]}),e[29]=j,e[30]=k,e[31]=u,e[32]=b):b=e[32];let D;return e[33]!==b||e[34]!==p?(D=i.jsxs(Te,{children:[p,b]}),e[33]=b,e[34]=p,e[35]=D):D=e[35],D}function gt(r){const e=z.c(46),{configId:t,item:s,onClose:l}=r,o=fe(),n=it();let c;e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==l||e[4]!==o?(c=async function(){if(s)try{await n.mutateAsync({configId:t,key:s.key}),me.success(o("assets.browser.deleted")),l()}catch{me.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=s,e[3]=l,e[4]=o,e[5]=c):c=e[5];const a=c,m=!!s;let y;e[6]!==l?(y=C=>!C&&l(),e[6]=l,e[7]=y):y=e[7];let p;e[8]!==o?(p=o("assets.browser.deleteConfirmTitle"),e[8]=o,e[9]=p):p=e[9];let d;e[10]!==p?(d=i.jsx(ve,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==s||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:s?ye(s.key):""}),e[12]=s,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Ce,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs(Se,{children:[d,u]}),e[17]=d,e[18]=u,e[19]=h):h=e[19];const x=n.isPending;let f;e[20]!==o?(f=o("assets.browser.deleteCancel"),e[20]=o,e[21]=f):f=e[21];let j;e[22]!==n.isPending||e[23]!==f?(j=i.jsx(_e,{disabled:x,children:f}),e[22]=n.isPending,e[23]=f,e[24]=j):j=e[24];const _=n.isPending;let P;e[25]!==a?(P=C=>{C.preventDefault(),a()},e[25]=a,e[26]=P):P=e[26];let k;e[27]!==n.isPending?(k=n.isPending?i.jsx(he,{className:"size-3.5"}):null,e[27]=n.isPending,e[28]=k):k=e[28];let b;e[29]!==o?(b=o("assets.browser.deleteConfirm"),e[29]=o,e[30]=b):b=e[30];let D;e[31]!==n.isPending||e[32]!==P||e[33]!==k||e[34]!==b?(D=i.jsxs(we,{variant:"destructive",disabled:_,onClick:P,children:[k,b]}),e[31]=n.isPending,e[32]=P,e[33]=k,e[34]=b,e[35]=D):D=e[35];let w;e[36]!==j||e[37]!==D?(w=i.jsxs(Ae,{children:[j,D]}),e[36]=j,e[37]=D,e[38]=w):w=e[38];let N;e[39]!==w||e[40]!==h?(N=i.jsxs(ze,{children:[h,w]}),e[39]=w,e[40]=h,e[41]=N):N=e[41];let v;return e[42]!==N||e[43]!==m||e[44]!==y?(v=i.jsx(Fe,{open:m,onOpenChange:y,children:N}),e[42]=N,e[43]=m,e[44]=y,e[45]=v):v=e[45],v}function xt(){const r=z.c(2),e=rt();let t;return r[0]!==e?(t=i.jsx(Be,{tabId:"assets",children:i.jsx(lt,{virtualMcpId:e})}),r[0]=e,r[1]=t):t=r[1],t}function Dr(){const r=z.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee.Content,{children:i.jsx(xt,{})}),r[0]=e):e=r[0],e}export{Dr as default};
|
|
1
|
+
import{c as z,bs as Pe,j as i,b as fe,r as se,bc as De,h as he,B as je,m as Ne,t as me,aH as ve,aI as Ce,aJ as Se,aK as _e,b7 as we,aL as Ae,aM as ze,aN as Fe,X as Ie,aW as Ue,Y as xe,a7 as $e,Z as Me,_ as Te}from"./index-CnlrqsCd.js";import{ChatLayout as Ee}from"./index-BT86t2zN.js";import{A as Be}from"./agent-view-guard-DkakdmVe.js";import{D as Le,e as Re}from"./agent-icon-Da3tHBMv.js";import{a as Oe}from"./SwitchHorizontal01-DB7Iju_C.js";import{i as Ve}from"./File02-B4TAUApJ.js";import{a as We}from"./Image01-BKS8Yp4v.js";import{s as qe}from"./Trash01-DLwaS_5I.js";import{i as be}from"./Upload01-D8Llo-n7.js";import{S as Ge}from"./search-input-Cu6jTXVw.js";import{b as He}from"./repository-binding-B-NGFlA8.js";import{u as Ke}from"./use-debounced-value-CI6OWQk7.js";import{a as Ye}from"./use-file-configs-DvcuDR-z.js";import{a as Je,u as Qe,B as Xe,e as Ze,i as et,b as ye,f as tt,c as it}from"./asset-utils-hi9ZCK7M.js";import{m as st}from"./match-site-slug-config-B47_xZCi.js";import{c as rt}from"./thread-route-BizqFXgE.js";import"./use-mobile-dNUmCifC.js";import"./tooltip-iXXWa3VG.js";import"./index-DEg1eCWz.js";import"./MessageCircle01-dCZEdQhF.js";import"./XClose-BAaBoHXT.js";import"./thread-button-D5DY5gNU.js";import"./use-sidebar-collapsed-euA02TXK.js";import"./sheet-p2Ousfn8.js";import"./use-chat-layout-state-C8KgaHCk.js";import"./use-panel-navigate-BtwQP9g-.js";import"./use-project-scope-B49l3tYT.js";import"./toolbar-icon-button-BzpP1rEG.js";import"./use-in-settings-DF-tVIoE.js";import"./resizable-BlRMDdrh.js";import"./route-page-header-X-mAmINr.js";import"./LayoutLeft-C8ndIALE.js";import"./use-current-view-DbaDobC4.js";import"./use-mcp-client-Bq8ol96W.js";import"./auth-CNYHKCFg.js";import"./use-main-panel-tabs-CkCUK4K2.js";import"./Monitor01-CrmQoLWb.js";import"./use-connection-CyhiAuyN.js";import"./use-mcp-tools-BBonPTWo.js";import"./types-Ds7H4BQL.js";import"./utils-CVEq3hMx.js";import"./agent-capabilities-BI0sCkjS.js";import"./index-B_eBHPlD.js";import"./ArrowUp-jwPYnWqs.js";import"./chat-context-Cdr2Tzco.js";import"./use-view-draft-kind-D6a-C5cc.js";import"./use-blog-view-CjVBpsro.js";import"./use-organization-settings-DmJ49Wll.js";import"./schema-DCd8UMh8.js";import"./task-board-B47Oba0a.js";import"./thread-intent-CMPSad7_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-wQgu9ix_.js";import"./session-runtime-CPmKckVH.js";import"./use-entitlements-cKoK0gNm.js";import"./use-ai-providers-DAAK1LJH.js";import"./use-decopilot-events-CsRo6_4Z.js";import"./input-CzlhHu3g.js";import"./usage-stats-Cpv39cmk.js";import"./markdown-DPh7H1MH.js";import"./use-copy-jVRNS72q.js";import"./gateway-client-BwxdQL6w.js";import"./form-9ojGZv11.js";import"./label-D9MCble5.js";import"./icon-button-DhhoBQY7.js";import"./file-type-icon-BAAuwpOK.js";import"./chat-draft--xvDfEkY.js";import"./use-voice-input-DwLhccAL.js";import"./popover-BehWQy5s.js";import"./drawer-CRP1WiCk.js";import"./ChevronDown-Cf6eg1Aj.js";import"./UserCheck01-lNPupOG8.js";import"./Tool01-CtY1k5Dx.js";import"./index-xBV0t4Yq.js";import"./checkbox-ClBCJgC4.js";import"./Minus-BGxu6wTp.js";import"./select-P0a7iEwt.js";import"./index-BdQq_4o_.js";import"./ChevronUp-Yoxwp_-j.js";import"./ArrowLeft-DjFnycHz.js";import"./ChevronSelectorVertical-ies3TLws.js";import"./Key01-D3gaP9qK.js";import"./SearchMd-BQl6TEDK.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-BckhzGo9.js";import"./Eye-B-zZzOpR.js";import"./ArrowRight-DdCk_HCk.js";import"./BookOpen01-B2ISsdx6.js";import"./UserSquare-xrIyO385.js";import"./tabs-BB9AjDp8.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-CH6PNQ_v.js";import"./toggle-group-DNENle-P.js";import"./input-BzVp3-J0.js";import"./suggestion-vwX5VgUe.js";import"./use-mcp-prompts-B6Jw27dX.js";import"./use-org-fs-qpGfwwQf.js";import"./useInfiniteQuery-B7ay7aNP.js";import"./infiniteQueryObserver-d6eMImhi.js";import"./Plus-nOMLt4Yk.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DKi0OK9Z.js";import"./plan-ladder-heY6MciQ.js";import"./add-connection-dialog-HNNoGhQz.js";import"./collection-search-CW9SJXAE.js";import"./extract-connection-data-C26a1rUY.js";import"./metadata-D72DunRR.js";import"./connection-BNwNEPn2.js";import"./url-slug-Dl2YaRDk.js";import"./connection-card-Bz0SPOqT.js";import"./connection-slug-mPfdw4iI.js";import"./integration-icon-XdnHhG6r.js";import"./LinkBroken01-WNn1RqQL.js";import"./textarea-BfYW4m9c.js";import"./schema-BBpKzKno.js";import"./connection-form-helpers-Bw7x5pKf.js";import"./authenticate-and-persist-oauth-D450Ij-p.js";import"./mcp-oauth-D_ZnYWZH.js";import"./mcp-oauth-XpGc4vgb.js";import"./collection-tabs-Y93FdN1l.js";import"./badge-loE1b0Vr.js";import"./use-infinite-scroll-iq2V7hOe.js";import"./useSuspenseInfiniteQuery-BuojYKnE.js";import"./use-task-board-items-DT4Yu9ci.js";import"./pair-BqleDpPR.js";import"./collapsible-6ftDlMsd.js";import"./task-key-CzMIIXuS.js";import"./config-CheVupom.js";import"./CheckCircle-p76CoLTf.js";import"./task-route-DnF8qwEX.js";import"./project-index-D_813h_x.js";import"./TrendUp01-DAuvMm77.js";import"./shell-layout-ipiZBDIC.js";import"./Globe04-C8iXbhsR.js";import"./use-deployment-admin-DsggmftG.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-DEvisT2l.js";import"./Zap-DV5_FZrE.js";import"./command-CtLQP1YS.js";import"./index-DjQbsfzi.js";import"./project-icon-DsXJkCkm.js";import"./use-navigate-to-agent-DeYqaaa3.js";import"./new-project-dialog-DqENGapI.js";import"./repository-picker-gzTJe9Gv.js";import"./github-icon-Bx9ss8sA.js";import"./ShoppingBag01-DPoH0u5v.js";import"./new-project-store-BCRxr-mc.js";import"./legacy-admin-welcome-dialog-5lUmP66o.js";import"./required-auth-layout-nH3iv-0Q.js";import"./use-org-sso-DiEFaIS8.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DEDNSoX2.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-riYbRXeW.js";import"./use-sandbox-events-CNUqntlP.js";import"./sandbox-url-D3mC8qhT.js";import"./resolve-tab-icon-CiuDD5mB.js";import"./use-task-metadata-BIJ7BpWb.js";import"./preview-source-BsRLGWUP.js";import"./use-project-native-view-presence-DW2-U7IG.js";import"./use-blocks-v8-project-D3ldcoCH.js";import"./virtual-mcp-CrzgTGWz.js";import"./CreditCard01-DOIepajb.js";import"./Sun-CnYsG6YA.js";import"./Play-B1JyKt5J.js";import"./Users01-B6_L_w2p.js";function lt(r){const e=z.c(6),{virtualMcpId:t}=r,s=He(t),l=Ye();let o;e[0]!==l||e[1]!==s?(o=st(l,Pe(s),s?.metadata?.assetStorageConfigId),e[0]=l,e[1]=s,e[2]=o):o=e[2];const n=o;if(!n){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(ot,{}),e[3]=a):a=e[3],a}let c;return e[4]!==n?(c=i.jsx(ct,{config:n}),e[4]=n,e[5]=c):c=e[5],c}function ot(){const r=z.c(12),e=fe();let t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:i.jsx(Le,{size:20,className:"text-muted-foreground"})}),r[0]=t):t=r[0];let s;r[1]!==e?(s=e("assets.browser.noBucketTitle"),r[1]=e,r[2]=s):s=r[2];let l;r[3]!==s?(l=i.jsx("p",{className:"text-sm font-medium",children:s}),r[3]=s,r[4]=l):l=r[4];let o;r[5]!==e?(o=e("assets.browser.noBucketDescription"),r[5]=e,r[6]=o):o=r[6];let n;r[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),r[7]=o,r[8]=n):n=r[8];let c;return r[9]!==l||r[10]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,i.jsxs("div",{children:[l,n]})]}),r[9]=l,r[10]=n,r[11]=c):c=r[11],c}function nt(r){return r<0||r<640?2:r<768?3:r<1024?4:5}function at(r,e){const t=Array.from({length:e},()=>[]);return r.forEach((s,l)=>t[l%e].push(s)),t}function ct(r){const e=z.c(99),{config:t}=r,s=fe(),[l,o]=se.useState(""),n=Ke(l,300);let c;e[0]!==t.id||e[1]!==n?(c={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=c):c=e[2];const a=Je(c),m=Qe(),[y,p]=se.useState(!1),[d,g]=se.useState(null),u=se.useRef(null);let h;e[3]!==t.id||e[4]!==a||e[5]!==s||e[6]!==m?(h=async function(S){if(!S)return;const R=Array.from(S);if(R.length===0)return;const F=[];for(const te of R)try{await m.mutateAsync({configId:t.id,file:te})}catch(ie){const A=ie;F.push(`${te.name} (${A instanceof Error?A.message:"upload failed"})`)}await a.refetch(),F.length>0&&me.error(F.length===R.length?s("filePicker.filePickerDialog.uploadFailedAll",{errors:F.join("; ")}):s("filePicker.filePickerDialog.uploadFailedSome",{errors:F.join("; ")}))},e[3]=t.id,e[4]=a,e[5]=s,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(S){S.preventDefault(),p(!0)},e[8]=f):f=e[8];const j=f;let _;e[9]===Symbol.for("react.memo_cache_sentinel")?(_=function(){p(!1)},e[9]=_):_=e[9];const P=_;let k;e[10]!==x?(k=function(S){S.preventDefault(),S.stopPropagation(),p(!1),x(S.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const b=k,[D,w]=De();let N,v,C,I,U,$,M;if(e[12]!==t.name||e[13]!==n||e[14]!==w||e[15]!==D||e[16]!==x||e[17]!==y||e[18]!==a||e[19]!==b||e[20]!==l||e[21]!==s||e[22]!==m.isPending){const L=a.data?.pages??[],S=L.some(ft),R=L.flatMap(mt),F=at(R,nt(D)),te=n.trim(),ie=l!==n||a.isFetching&&!a.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let A;e[30]!==s?(A=s("assets.browser.title"),e[30]=s,e[31]=A):A=e[31];let O;e[32]!==A?(O=i.jsx("h2",{className:"text-sm font-semibold",children:A}),e[32]=A,e[33]=O):O=e[33];let V;e[34]!==t.name||e[35]!==s?(V=s("assets.browser.bucketLabel",{name:t.name}),e[34]=t.name,e[35]=s,e[36]=V):V=e[36];let W;e[37]!==V?(W=i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:V}),e[37]=V,e[38]=W):W=e[38];let q;e[39]!==O||e[40]!==W?(q=i.jsxs("div",{className:"min-w-0",children:[O,W]}),e[39]=O,e[40]=W,e[41]=q):q=e[41];let oe;e[42]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>u.current?.click(),e[42]=oe):oe=e[42];let G;e[43]!==m.isPending?(G=m.isPending?i.jsx(he,{className:"size-3.5"}):i.jsx(be,{size:14}),e[43]=m.isPending,e[44]=G):G=e[44];let H;e[45]!==s||e[46]!==m.isPending?(H=m.isPending?s("filePicker.filePickerDialog.uploading"):s("filePicker.filePickerDialog.dropFilesOrClick"),e[45]=s,e[46]=m.isPending,e[47]=H):H=e[47];let K;e[48]!==G||e[49]!==H||e[50]!==m.isPending?(K=i.jsxs(je,{type:"button",size:"sm",disabled:m.isPending,onClick:oe,children:[G,H]}),e[48]=G,e[49]=H,e[50]=m.isPending,e[51]=K):K=e[51];let Y;e[52]!==x?(Y=i.jsx("input",{ref:u,type:"file",multiple:!0,className:"hidden",onChange:ce=>{const ue=Array.from(ce.target.files??[]);ce.target.value="",x(ue)}}),e[52]=x,e[53]=Y):Y=e[53],e[54]!==q||e[55]!==K||e[56]!==Y?(N=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[q,K,Y]}),e[54]=q,e[55]=K,e[56]=Y,e[57]=N):N=e[57];let J;e[58]!==s?(J=s("filePicker.filePickerDialog.searchFilesPlaceholder"),e[58]=s,e[59]=J):J=e[59],e[60]!==ie||e[61]!==l||e[62]!==J?(v=i.jsx(Ge,{value:l,onChange:o,isSearching:ie,placeholder:J,className:"shrink-0"}),e[60]=ie,e[61]=l,e[62]=J,e[63]=v):v=e[63];let ne;e[64]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>u.current?.click(),e[64]=ne):ne=e[64];const pe=y&&"border-primary bg-primary/5",de=m.isPending&&"pointer-events-none opacity-60";let Q;e[65]!==pe||e[66]!==de?(Q=Ne("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",pe,de),e[65]=pe,e[66]=de,e[67]=Q):Q=e[67];let ae;e[68]===Symbol.for("react.memo_cache_sentinel")?(ae=i.jsx(be,{size:16,className:"text-muted-foreground"}),e[68]=ae):ae=e[68];let X;e[69]!==s?(X=s("filePicker.filePickerDialog.dropFilesOrClick"),e[69]=s,e[70]=X):X=e[70];let Z;e[71]!==s?(Z=s("filePicker.filePickerDialog.uploadSizeLimit"),e[71]=s,e[72]=Z):Z=e[72];let ee;e[73]!==X||e[74]!==Z?(ee=i.jsxs("p",{className:"text-xs text-muted-foreground",children:[X," ",Z]}),e[73]=X,e[74]=Z,e[75]=ee):ee=e[75],e[76]!==b||e[77]!==Q||e[78]!==ee?(C=i.jsxs("button",{type:"button",onClick:ne,onDragOver:j,onDragLeave:P,onDrop:b,className:Q,children:[ae,ee]}),e[76]=b,e[77]=Q,e[78]=ee,e[79]=C):C=e[79],I="min-h-0 flex-1 overflow-y-auto pr-1",U=S||a.isError?i.jsx(Xe,{denied:S,retrying:a.isFetching,onRetry:()=>{a.refetch()}}):null,$=R.length===0?a.isPending||a.isError||S?null:te?i.jsx(ke,{title:s("filePicker.filePickerDialog.noMatches",{query:te}),description:s("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(ke,{title:s("filePicker.filePickerDialog.noFilesYet"),description:s("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:w,className:"flex items-start gap-3",children:F.map((ce,ue)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ce.map(ge=>i.jsx(pt,{item:ge,onDelete:()=>g(ge)},ge.key))},ue))}),e[12]=t.name,e[13]=n,e[14]=w,e[15]=D,e[16]=x,e[17]=y,e[18]=a,e[19]=b,e[20]=l,e[21]=s,e[22]=m.isPending,e[23]=N,e[24]=v,e[25]=C,e[26]=I,e[27]=U,e[28]=$,e[29]=M}else N=e[23],v=e[24],C=e[25],I=e[26],U=e[27],$=e[28],M=e[29];let T;e[80]!==a||e[81]!==s?(T=a.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(je,{type:"button",variant:"outline",size:"sm",disabled:a.isFetchingNextPage,onClick:()=>a.fetchNextPage(),children:a.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(he,{className:"size-3.5"}),s("filePicker.filePickerDialog.loading")]}):s("filePicker.filePickerDialog.loadMore")})}),e[80]=a,e[81]=s,e[82]=T):T=e[82];let E;e[83]!==T||e[84]!==I||e[85]!==U||e[86]!==$?(E=i.jsxs("div",{className:I,children:[U,$,T]}),e[83]=T,e[84]=I,e[85]=U,e[86]=$,e[87]=E):E=e[87];let re;e[88]===Symbol.for("react.memo_cache_sentinel")?(re=()=>g(null),e[88]=re):re=e[88];let B;e[89]!==t.id||e[90]!==d?(B=i.jsx(gt,{configId:t.id,item:d,onClose:re}),e[89]=t.id,e[90]=d,e[91]=B):B=e[91];let le;return e[92]!==N||e[93]!==v||e[94]!==C||e[95]!==E||e[96]!==B||e[97]!==M?(le=i.jsxs("div",{className:M,children:[N,v,C,E,B]}),e[92]=N,e[93]=v,e[94]=C,e[95]=E,e[96]=B,e[97]=M,e[98]=le):le=e[98],le}function mt(r){return r.items}function ft(r){return r.listingError==="access_denied"}function ke(r){const e=z.c(8),{title:t,description:s}=r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:i.jsx(We,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=i.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==s?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[3]=s,e[4]=n):n=e[4];let c;return e[5]!==o||e[6]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[l,o,n]}),e[5]=o,e[6]=n,e[7]=c):c=e[7],c}function pt(r){const e=z.c(34),{item:t,onDelete:s}=r;let l;e[0]!==t.key?(l=Ze(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=et(t.key),e[2]=t.key,e[3]=n):n=e[3];const c=n;let a;e[4]!==c||e[5]!==t.key||e[6]!==t.publicUrl?(a=c?i.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:dt}):i.jsx("div",{className:"flex aspect-square items-center justify-center",children:i.jsx(Ve,{size:28,className:"text-muted-foreground"})}),e[4]=c,e[5]=t.key,e[6]=t.publicUrl,e[7]=a):a=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==a?(m=i.jsx("a",{href:t.publicUrl,target:"_blank",rel:"noreferrer",title:t.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:a}),e[8]=t.key,e[9]=t.publicUrl,e[10]=a,e[11]=m):m=e[11];const y=t.key;let p;e[12]!==t.key?(p=ye(t.key),e[12]=t.key,e[13]=p):p=e[13];let d;e[14]!==t.key||e[15]!==p?(d=i.jsx("p",{className:"truncate text-xs font-medium",title:y,children:p}),e[14]=t.key,e[15]=p,e[16]=d):d=e[16];let g;e[17]!==t.size?(g=tt(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=i.jsxs("p",{className:"text-2xs uppercase text-muted-foreground",children:[o," · ",g]}),e[19]=o,e[20]=g,e[21]=u):u=e[21];let h;e[22]!==d||e[23]!==u?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[d,u]}),e[22]=d,e[23]=u,e[24]=h):h=e[24];let x;e[25]!==t||e[26]!==s?(x=i.jsx(ut,{item:t,onDelete:s}),e[25]=t,e[26]=s,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=i.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[h,x]}),e[28]=h,e[29]=x,e[30]=f):f=e[30];let j;return e[31]!==f||e[32]!==m?(j=i.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[m,f]}),e[31]=f,e[32]=m,e[33]=j):j=e[33],j}function dt(r){r.target.style.display="none"}function ut(r){const e=z.c(36),{item:t,onDelete:s}=r,l=fe(),[o,n]=se.useState(!1);let c;e[0]!==t.publicUrl||e[1]!==l?(c=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{me.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=c):c=e[2];const a=c;let m;e[3]!==l?(m=l("filePicker.filePickerDialog.assetActions"),e[3]=l,e[4]=m):m=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(Oe,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(Ie,{asChild:!0,children:i.jsx(je,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0","aria-label":m,children:y})}),e[6]=m,e[7]=p):p=e[7];let d;e[8]!==o?(d=o?i.jsx(Ue,{size:14}):i.jsx(Re,{size:14}),e[8]=o,e[9]=d):d=e[9];let g;e[10]!==o||e[11]!==l?(g=l(o?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=o,e[11]=l,e[12]=g):g=e[12];let u;e[13]!==a||e[14]!==d||e[15]!==g?(u=i.jsxs(xe,{onClick:a,children:[d,g]}),e[13]=a,e[14]=d,e[15]=g,e[16]=u):u=e[16];const h=t.publicUrl;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx($e,{size:14}),e[17]=x):x=e[17];let f;e[18]!==l?(f=l("filePicker.filePickerDialog.openInNewTab"),e[18]=l,e[19]=f):f=e[19];let j;e[20]!==t.publicUrl||e[21]!==f?(j=i.jsx(xe,{asChild:!0,children:i.jsxs("a",{href:h,target:"_blank",rel:"noreferrer",children:[x,f]})}),e[20]=t.publicUrl,e[21]=f,e[22]=j):j=e[22];let _;e[23]===Symbol.for("react.memo_cache_sentinel")?(_=i.jsx(qe,{size:14}),e[23]=_):_=e[23];let P;e[24]!==l?(P=l("assets.browser.deleteAction"),e[24]=l,e[25]=P):P=e[25];let k;e[26]!==s||e[27]!==P?(k=i.jsxs(xe,{variant:"destructive",onClick:s,children:[_,P]}),e[26]=s,e[27]=P,e[28]=k):k=e[28];let b;e[29]!==j||e[30]!==k||e[31]!==u?(b=i.jsxs(Me,{align:"end",children:[u,j,k]}),e[29]=j,e[30]=k,e[31]=u,e[32]=b):b=e[32];let D;return e[33]!==b||e[34]!==p?(D=i.jsxs(Te,{children:[p,b]}),e[33]=b,e[34]=p,e[35]=D):D=e[35],D}function gt(r){const e=z.c(46),{configId:t,item:s,onClose:l}=r,o=fe(),n=it();let c;e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==l||e[4]!==o?(c=async function(){if(s)try{await n.mutateAsync({configId:t,key:s.key}),me.success(o("assets.browser.deleted")),l()}catch{me.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=s,e[3]=l,e[4]=o,e[5]=c):c=e[5];const a=c,m=!!s;let y;e[6]!==l?(y=C=>!C&&l(),e[6]=l,e[7]=y):y=e[7];let p;e[8]!==o?(p=o("assets.browser.deleteConfirmTitle"),e[8]=o,e[9]=p):p=e[9];let d;e[10]!==p?(d=i.jsx(ve,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==s||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:s?ye(s.key):""}),e[12]=s,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Ce,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs(Se,{children:[d,u]}),e[17]=d,e[18]=u,e[19]=h):h=e[19];const x=n.isPending;let f;e[20]!==o?(f=o("assets.browser.deleteCancel"),e[20]=o,e[21]=f):f=e[21];let j;e[22]!==n.isPending||e[23]!==f?(j=i.jsx(_e,{disabled:x,children:f}),e[22]=n.isPending,e[23]=f,e[24]=j):j=e[24];const _=n.isPending;let P;e[25]!==a?(P=C=>{C.preventDefault(),a()},e[25]=a,e[26]=P):P=e[26];let k;e[27]!==n.isPending?(k=n.isPending?i.jsx(he,{className:"size-3.5"}):null,e[27]=n.isPending,e[28]=k):k=e[28];let b;e[29]!==o?(b=o("assets.browser.deleteConfirm"),e[29]=o,e[30]=b):b=e[30];let D;e[31]!==n.isPending||e[32]!==P||e[33]!==k||e[34]!==b?(D=i.jsxs(we,{variant:"destructive",disabled:_,onClick:P,children:[k,b]}),e[31]=n.isPending,e[32]=P,e[33]=k,e[34]=b,e[35]=D):D=e[35];let w;e[36]!==j||e[37]!==D?(w=i.jsxs(Ae,{children:[j,D]}),e[36]=j,e[37]=D,e[38]=w):w=e[38];let N;e[39]!==w||e[40]!==h?(N=i.jsxs(ze,{children:[h,w]}),e[39]=w,e[40]=h,e[41]=N):N=e[41];let v;return e[42]!==N||e[43]!==m||e[44]!==y?(v=i.jsx(Fe,{open:m,onOpenChange:y,children:N}),e[42]=N,e[43]=m,e[44]=y,e[45]=v):v=e[45],v}function xt(){const r=z.c(2),e=rt();let t;return r[0]!==e?(t=i.jsx(Be,{tabId:"assets",children:i.jsx(lt,{virtualMcpId:e})}),r[0]=e,r[1]=t):t=r[1],t}function Dr(){const r=z.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee.Content,{children:i.jsx(xt,{})}),r[0]=e):e=r[0],e}export{Dr as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dM as Zt,c as q,b as ee,r as w,j as t,B,aW as qt,m as At,a4 as $t,D as et,v as tt,w as st,x as ot,aS as at,y as nt,t as X,d_ as es,_ as ts,X as ss,Z as os,ap as as,an as ns,ao as is,Y as Oe,b4 as rs,h as Le,aH as pt,aI as xt,aJ as gt,aK as ht,b7 as jt,aL as yt,aM as bt,aN as vt,E as Ke,aE as ls,e6 as Ct,I as Nt,ho as cs,aj as ds,b5 as Ze,n as Xe,f as ms}from"./index-BsAwgxIf.js";import{ChatLayout as us}from"./index-DQWJotH-.js";import{b as it,u as fs,a as ps,Y as xs,k as St,ay as gs,ab as hs,g as js,a$ as Et,e as Ye}from"./agent-icon-B9nZhdi2.js";import{n as kt}from"./BookOpen01-UxGmri2e.js";import{t as rt}from"./ChevronDown-uPv2ScPr.js";import{e as ys}from"./UserSquare-aJjYmjOR.js";import{s as Tt}from"./File02-DEjt2PPW.js";import{e as lt,b as zt,t as Ot}from"./Tool01-ymE-fOFX.js";import{a as bs}from"./Image01-BCiDUkCm.js";import{i as vs}from"./SearchMd-BhCfkG_O.js";import{B as Kt}from"./badge-BUkSpOXa.js";import{C as Mt}from"./checkbox-BwlyfOui.js";import{S as ct}from"./switch-DEje7fmz.js";import{a as Ft,b as Rt,P as Lt}from"./popover-DogMO3pk.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-BcxQrgUK.js";import{g as ws,a as _s}from"./gateway-client-t5s1Cm0x.js";import{b as dt}from"./use-connection-DpuSfyHb.js";import{u as Ds}from"./use-mcp-client-DXpTlXlJ.js";import{u as Is}from"./use-mcp-tools-B0m5-RR6.js";import{I as Ps}from"./integration-icon-DbiCbrD7.js";import{M as As}from"./select-model-DL2dvL4e.js";import{u as $s}from"./use-ai-providers-CFArCH41.js";import{U as Es,b as zs}from"./build-improve-prompt-doc-CQr1jYEn.js";import{a as ve,c as Os,d as Ks}from"./use-automations-DcCuqnYq.js";import{c as Ms,b as Fs,P as Rs,Q as Ls}from"./chat-context-BhwgXdxZ.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-BILoWprp.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-r0LfLYi3.js";import{u as Js}from"./shell-layout-DwJrXedk.js";import{i as Vt}from"./ArrowLeft-B8D7i2xh.js";import{i as Xs}from"./ArrowUp-DyF0Rx2O.js";import{s as Fe}from"./UserCheck01-3D5hYz4C.js";import{s as Ys}from"./Trash01-aSl--BGd.js";import{s as mt}from"./XClose-Dq0BGBMq.js";import{u as _t}from"./use-debounced-autosave-C5QlmVn0.js";import{T as Qs,a as Zs}from"./input--kphUWpn.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-BJDzOHlp.js";import{s as to}from"./Plus-BzpqhVU8.js";import{i as ut}from"./Zap-NAfA60T9.js";import{l as We,H as so}from"./config-Bn4oMb7y.js";import{C as oo}from"./task-board-CZuAKwkd.js";import{M as Wt}from"./multi-select-Cp5gIPzv.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-DPXDtN3F.js";import{b as ao,a as no,T as Dt}from"./tabs-BMObVAFs.js";import{MonacoCodeEditor as io}from"./monaco-editor-Dj-bs0sb.js";import{A as ro}from"./automation-runs-F5hXkFSl.js";import{C as lo}from"./collection-tabs-Wktk7Bil.js";import{a as co}from"./use-panel-navigate-DpEZACCY.js";import"./use-mobile-BwxeIsTr.js";import"./MessageCircle01-CQjeMfQj.js";import"./thread-button-ChRjFza7.js";import"./use-sidebar-collapsed-CSFUmB9m.js";import"./sheet-DKmzxIAF.js";import"./use-chat-layout-state-DjHcwQYx.js";import"./toolbar-icon-button-BSXImY57.js";import"./use-in-settings-BT3nEhsO.js";import"./resizable-97tyuWCT.js";import"./route-page-header-DFLx6qIf.js";import"./LayoutLeft-DHg_jNr0.js";import"./use-project-scope-C815BKEh.js";import"./repository-binding-BS9v5Fe_.js";import"./use-current-view-C1-z4fIk.js";import"./thread-route-sNjMl6Ie.js";import"./index-KBC7Pj7l.js";import"./auth-D0WiD-6X.js";import"./AlertCircle-DA6gE5vw.js";import"./ArrowRight-C1EmTlL-.js";import"./Globe04-DD86hrsf.js";import"./CheckCircle-Bh1gNJET.js";import"./TrendUp01-Cr4FP2fV.js";import"./ChevronSelectorVertical-CiFyE2Pu.js";import"./ChevronUp-BkmRXggG.js";import"./LinkBroken01-Ic71rSEU.js";import"./CreditCard01-C-H9qti1.js";import"./SwitchHorizontal01-BU8z7oT_.js";import"./Eye-DL5oRAI4.js";import"./Key01-CgRwsDr3.js";import"./Minus-BM2zRSMr.js";import"./Monitor01-C4OHhcX6.js";import"./Sun-CoJn-J4w.js";import"./Play-l838EjWq.js";import"./ShoppingBag01-KIefHp9K.js";import"./Upload01-DozMUWEF.js";import"./Users01-Cximoi8v.js";import"./index-Bi2fLJMb.js";import"./drawer-EGIO8vW1.js";import"./index-CT5cpmuw.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-BRKIl3Rz.js";import"./use-view-draft-kind-1niLZJ6g.js";import"./use-blog-view-B-p1Bott.js";import"./use-organization-settings-BilLeNy9.js";import"./schema-CggWCz-G.js";import"./thread-intent-BNoxio0t.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bw3-M9_N.js";import"./session-runtime-BtkBTCEv.js";import"./use-decopilot-events-CZR337Lj.js";import"./use-deployment-admin-DGQGQZ6E.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BLcA1Iw0.js";import"./project-icon-BHcF2TIr.js";import"./use-navigate-to-agent-DjeX7xEq.js";import"./use-debounced-value-BkJoL4uj.js";import"./new-project-dialog-CrDlez-N.js";import"./label-D8u4gNcM.js";import"./repository-picker-CXtPhUQx.js";import"./github-icon-BoZrKkV3.js";import"./useInfiniteQuery-C5Fx0PfA.js";import"./infiniteQueryObserver-CnD94meO.js";import"./collection-search-Dj3oO1qn.js";import"./new-project-store-DleT4y6U.js";import"./legacy-admin-welcome-dialog-C4yFyjEg.js";import"./required-auth-layout-C_8jBLMB.js";import"./use-org-sso-DhdCpzK5.js";import"./suggestion-BapLR6AM.js";import"./usage-stats-BH8jlFhP.js";import"./utils-CVEq3hMx.js";import"./markdown-SwM1Ir6g.js";import"./use-copy-BFUDxfVH.js";import"./form-Cb5OHNc9.js";import"./use-mcp-prompts-B_BU9Jdl.js";import"./use-org-fs-D2bsNlGU.js";import"./task-key-Binbqohp.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-B_YvqDEq.js";import"./table-Cie3FI8M.js";import"./empty-state-DxGz72GL.js";import"./use-id-selection-Bn7c-vY3.js";import"./use-infinite-scroll-Dv1yBngZ.js";import"./task-status-24VN3LnD.js";import"./thread-sheet-body-JBqWWQDi.js";import"./useSuspenseInfiniteQuery-kmW-ybmd.js";import"./pair-4JIJkNK2.js";import"./use-task-board-items-DX_SyoB4.js";import"./task-route-IxeWFQf4.js";import"./project-index-Be1RuOJ6.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Jzrzu2q5.js";import"./types-BhUJ3bOA.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-HnCGzIoZ.js";import"./file-type-icon-Bhy3vcyl.js";const Qe={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:Ot},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=q.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=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(Ft,{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(qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=a,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=q.c(27),{tier:s,onTierChange:n,override:a,onOverrideChange:i}=r,c=ee(),[o,j]=w.useState(a!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==a||e[7]!==c||e[8]!==s||e[9]!==o?(x=o?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:a,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=a,e[7]=c,e[8]=s,e[9]=o,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==o?(g=t.jsx(ct,{checked:o,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=o,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=q.c(25),{override:s,onOverrideChange:n}=r,a=ee(),i=$s(),c=i[0]?.id??null;let o;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(o=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=o):o=e[3];const[j,d]=w.useState(o);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==a?(l=a("automations.automationConfig.connectAiProviderHint"),e[11]=a,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==a?(u=a("automations.automationConfig.pickModelPlaceholder"),e[15]=a,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Zt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:St,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:zt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:St},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Tt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Tt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:kt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:kt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=q.c(12),{agentId:s,value:n,onChange:a}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let o;e[2]!==c?(o=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=o):o=e[3];let j;e[4]!==s||e[5]!==a||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:a})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=a,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==o||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[o,j]}),e[9]=o,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=q.c(17),{value:s,checked:n,onToggle:a,title:i,description:c,leading:o}=r;let j;e[0]!==n?(j=t.jsx(Mt,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==o?(d=o&&t.jsx("span",{className:"mt-px shrink-0",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==a||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:a,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=a,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function Pt(r){const e=q.c(27),{conn:s,label:n,icon:a,on:i,total:c,onToggle:o}=r,j=ee(),d=i===c;let m;e[0]!==a||e[1]!==s?(m=s?t.jsx(Ps,{icon:s.icon,name:s.title,size:"2xs"}):a?t.jsx(a,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-2xs font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==o?(u=v=>{v.stopPropagation(),o()},e[12]=o,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-2xs font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=q.c(83),{agentId:s,value:n,onChange:a}=r,i=ee(),{org:c}=$t(),[o,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,_,D,k,P;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==a||e[10]!==o||e[11]!==i||e[12]!==n){const Y=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const z=ws(I._meta)??"__other__",Z=_s(I.name,z==="__other__"?void 0:z),A=I.title,xe=A&&A!==I.name?A:go(Z);H.has(z)||H.set(z,{clientId:z,conn:Y.get(z),tools:[]}),H.get(z).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],V=n===null?new Set(J):new Set(n),U=J.every(I=>V.has(I)),E=I=>a(J.every(z=>I.has(z))?null:[...I]),ae=I=>{const z=new Set(V);z.has(I)?z.delete(I):z.add(I),E(z)},ne=(I,z)=>{const Z=new Set(V);for(const A of I)z?Z.add(A):Z.delete(A);E(Z)};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]!==U||e[28]!==i?(ie=i(U?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=U,e[28]=i,e[29]=ie):ie=e[29];const ue=!U&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[V.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Ft,{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=U?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:V.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==a?(re=()=>a(null),e[40]=a,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==U||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:U,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=U,e[45]=re,e[46]=le,e[47]=C):C=e[47];let F;e[48]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=F):F=e[48];let O;e[49]!==a?(O=()=>a([]),e[49]=a,e[50]=O):O=e[50];const pe=V.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==O||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:O,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]=O,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,F,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 z=I.tools.map(bo),Z=z.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Z,total:z.length,onToggle:()=>ne(z,Z!==z.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:i(A.titleKey),description:i(A.descriptionKey),leading:t.jsx(A.icon,{size:16,className:"text-muted-foreground"})},A.name))},I.key)}),W.map(I=>{const z=I.tools.map(yo),Z=z.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Z,total:z.length,onToggle:()=>ne(z,Z!==z.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:A.display,description:A.description},A.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=a,e[10]=o,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=_,e[23]=D,e[24]=k,e[25]=P}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],_=e[22],D=e[23],k=e[24],P=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==_?(R=t.jsxs(p,{children:[T,_,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=_,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==D||e[75]!==k?(K=t.jsx(l,{className:D,align:k,children:R}),e[72]=l,e[73]=R,e[74]=D,e[75]=k,e[76]=K):K=e[76];let M;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==P?(M=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]=M):M=e[82],M}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(a){const o=parseInt(a[1]??"1");return o%7===0?`Every ${o/7} weeks`:`Every ${o} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const o=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${o}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return a?{count:parseInt(a[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const _o=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],qe=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>qe.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Po({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:a}=ve(),[i,c]=w.useState("in_progress"),[o,j]=w.useState("any"),[d,m]=w.useState([]),x=qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=o!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await a.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:o==="statuses"?{kind:o,statuses:f}:{kind:o}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:o,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),o==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||a.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Ao=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const a=ee(),{triggerAdd:i}=ve(),c=qs(s?e:null),[o,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=o??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(a("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:a("automations.addStarterPopover.failedAddStarter"))}},N=b=>a(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:a("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:a("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:a("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:a("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:a("automations.jiraTransitionDialog.add")})]})]})})}function Eo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:a,onWebhookCreated:i}){const c=ee(),{triggerAdd:o}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await o.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await o.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:_o.map(v=>t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:o.isPending,children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(Oe,{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(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(Et,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Ut,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{y()},disabled:o.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Po,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=q.c(39),{open:s,onOpenChange:n,url:a,token:i,title:c,description:o}=r,j=c===void 0?"Webhook ready":c,d=o===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":o,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==a?(N=a&&i&&h==="url"?`${a.replace(/\/$/,"")}/${i}`:a??"",e[2]=h,e[3]=i,e[4]=a,e[5]=N):N=e[5];const S=N,b=a&&i?h==="header"?`curl -X POST "${S}" \\
|
|
1
|
+
import{dM as Zt,c as q,b as ee,r as w,j as t,B,aW as qt,m as At,a4 as $t,D as et,v as tt,w as st,x as ot,aS as at,y as nt,t as X,d_ as es,_ as ts,X as ss,Z as os,ap as as,an as ns,ao as is,Y as Oe,b4 as rs,h as Le,aH as pt,aI as xt,aJ as gt,aK as ht,b7 as jt,aL as yt,aM as bt,aN as vt,E as Ke,aE as ls,e6 as Ct,I as Nt,ho as cs,aj as ds,b5 as Ze,n as Xe,f as ms}from"./index-CnlrqsCd.js";import{ChatLayout as us}from"./index-BT86t2zN.js";import{b as it,u as fs,a as ps,Y as xs,k as St,ay as gs,ab as hs,g as js,a$ as Et,e as Ye}from"./agent-icon-Da3tHBMv.js";import{n as kt}from"./BookOpen01-B2ISsdx6.js";import{t as rt}from"./ChevronDown-Cf6eg1Aj.js";import{e as ys}from"./UserSquare-xrIyO385.js";import{s as Tt}from"./File02-B4TAUApJ.js";import{e as lt,b as zt,t as Ot}from"./Tool01-CtY1k5Dx.js";import{a as bs}from"./Image01-BKS8Yp4v.js";import{i as vs}from"./SearchMd-BQl6TEDK.js";import{B as Kt}from"./badge-loE1b0Vr.js";import{C as Mt}from"./checkbox-ClBCJgC4.js";import{S as ct}from"./switch-DhrqiPup.js";import{a as Ft,b as Rt,P as Lt}from"./popover-BehWQy5s.js";import{C as Cs,e as wt,b as Ns,f as Ss,a as ks,c as Ts}from"./command-CtLQP1YS.js";import{g as ws,a as _s}from"./gateway-client-BwxdQL6w.js";import{b as dt}from"./use-connection-CyhiAuyN.js";import{u as Ds}from"./use-mcp-client-Bq8ol96W.js";import{u as Is}from"./use-mcp-tools-BBonPTWo.js";import{I as Ps}from"./integration-icon-XdnHhG6r.js";import{M as As}from"./select-model-C0gDb4oR.js";import{u as $s}from"./use-ai-providers-DAAK1LJH.js";import{U as Es,b as zs}from"./build-improve-prompt-doc-B-4SVpBS.js";import{a as ve,c as Os,d as Ks}from"./use-automations-BlLUMChm.js";import{c as Ms,b as Fs,P as Rs,Q as Ls}from"./chat-context-Cdr2Tzco.js";import{b as Vs,C as Us,a as Ws}from"./collapsible-6ftDlMsd.js";import{c as Bs,T as Gs,a as Hs}from"./tooltip-iXXWa3VG.js";import{u as Js}from"./shell-layout-ipiZBDIC.js";import{i as Vt}from"./ArrowLeft-DjFnycHz.js";import{i as Xs}from"./ArrowUp-jwPYnWqs.js";import{s as Fe}from"./UserCheck01-lNPupOG8.js";import{s as Ys}from"./Trash01-DLwaS_5I.js";import{s as mt}from"./XClose-BAaBoHXT.js";import{u as _t}from"./use-debounced-autosave-Cj1eq42P.js";import{T as Qs,a as Zs}from"./input-BzVp3-J0.js";import{u as qs,a as eo,J as Ut}from"./jira-icon-jvATtbBe.js";import{s as to}from"./Plus-nOMLt4Yk.js";import{i as ut}from"./Zap-DV5_FZrE.js";import{l as We,H as so}from"./config-CheVupom.js";import{C as oo}from"./task-board-B47Oba0a.js";import{M as Wt}from"./multi-select-DVrZLS4y.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-P0a7iEwt.js";import{b as ao,a as no,T as Dt}from"./tabs-BB9AjDp8.js";import{MonacoCodeEditor as io}from"./monaco-editor-DO6kYNn6.js";import{A as ro}from"./automation-runs-DBCPwmkF.js";import{C as lo}from"./collection-tabs-Y93FdN1l.js";import{a as co}from"./use-panel-navigate-BtwQP9g-.js";import"./use-mobile-dNUmCifC.js";import"./MessageCircle01-dCZEdQhF.js";import"./thread-button-D5DY5gNU.js";import"./use-sidebar-collapsed-euA02TXK.js";import"./sheet-p2Ousfn8.js";import"./use-chat-layout-state-C8KgaHCk.js";import"./toolbar-icon-button-BzpP1rEG.js";import"./use-in-settings-DF-tVIoE.js";import"./resizable-BlRMDdrh.js";import"./route-page-header-X-mAmINr.js";import"./LayoutLeft-C8ndIALE.js";import"./use-project-scope-B49l3tYT.js";import"./repository-binding-B-NGFlA8.js";import"./use-current-view-DbaDobC4.js";import"./thread-route-BizqFXgE.js";import"./index-DEg1eCWz.js";import"./auth-CNYHKCFg.js";import"./AlertCircle-BckhzGo9.js";import"./ArrowRight-DdCk_HCk.js";import"./Globe04-C8iXbhsR.js";import"./CheckCircle-p76CoLTf.js";import"./TrendUp01-DAuvMm77.js";import"./ChevronSelectorVertical-ies3TLws.js";import"./ChevronUp-Yoxwp_-j.js";import"./LinkBroken01-WNn1RqQL.js";import"./CreditCard01-DOIepajb.js";import"./SwitchHorizontal01-DB7Iju_C.js";import"./Eye-B-zZzOpR.js";import"./Key01-D3gaP9qK.js";import"./Minus-BGxu6wTp.js";import"./Monitor01-CrmQoLWb.js";import"./Sun-CnYsG6YA.js";import"./Play-B1JyKt5J.js";import"./ShoppingBag01-DPoH0u5v.js";import"./Upload01-D8Llo-n7.js";import"./Users01-B6_L_w2p.js";import"./index-DjQbsfzi.js";import"./drawer-CRP1WiCk.js";import"./index-xBV0t4Yq.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./use-entitlements-cKoK0gNm.js";import"./use-view-draft-kind-D6a-C5cc.js";import"./use-blog-view-CjVBpsro.js";import"./use-organization-settings-DmJ49Wll.js";import"./schema-DCd8UMh8.js";import"./thread-intent-CMPSad7_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-wQgu9ix_.js";import"./session-runtime-CPmKckVH.js";import"./use-decopilot-events-CsRo6_4Z.js";import"./use-deployment-admin-DsggmftG.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-DEvisT2l.js";import"./project-icon-DsXJkCkm.js";import"./use-navigate-to-agent-DeYqaaa3.js";import"./use-debounced-value-CI6OWQk7.js";import"./new-project-dialog-DqENGapI.js";import"./label-D9MCble5.js";import"./repository-picker-gzTJe9Gv.js";import"./github-icon-Bx9ss8sA.js";import"./useInfiniteQuery-B7ay7aNP.js";import"./infiniteQueryObserver-d6eMImhi.js";import"./collection-search-CW9SJXAE.js";import"./new-project-store-BCRxr-mc.js";import"./legacy-admin-welcome-dialog-5lUmP66o.js";import"./required-auth-layout-nH3iv-0Q.js";import"./use-org-sso-DiEFaIS8.js";import"./suggestion-vwX5VgUe.js";import"./usage-stats-Cpv39cmk.js";import"./utils-CVEq3hMx.js";import"./markdown-DPh7H1MH.js";import"./use-copy-jVRNS72q.js";import"./form-9ojGZv11.js";import"./use-mcp-prompts-B6Jw27dX.js";import"./use-org-fs-qpGfwwQf.js";import"./task-key-CzMIIXuS.js";import"./index-BdQq_4o_.js";import"./active-indicator-CCMhAsc_.js";import"./editor-Ca65jgGo.js";import"./table-C2Ra_yKM.js";import"./empty-state-BWFEJiAD.js";import"./use-id-selection-BfYt0Wlx.js";import"./use-infinite-scroll-iq2V7hOe.js";import"./task-status-Cgcee3O1.js";import"./thread-sheet-body-XpKlRgjQ.js";import"./useSuspenseInfiniteQuery-BuojYKnE.js";import"./pair-BqleDpPR.js";import"./use-task-board-items-DT4Yu9ci.js";import"./task-route-DnF8qwEX.js";import"./project-index-D_813h_x.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DEDNSoX2.js";import"./types-Ds7H4BQL.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-riYbRXeW.js";import"./file-type-icon-BAAuwpOK.js";const Qe={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:Ot},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=q.c(19),{tier:s,onSelect:n}=r,a=ee(),[i,c]=w.useState(!1),o=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(Ft,{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(qt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=a,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=q.c(27),{tier:s,onTierChange:n,override:a,onOverrideChange:i}=r,c=ee(),[o,j]=w.useState(a!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==a||e[7]!==c||e[8]!==s||e[9]!==o?(x=o?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:a,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=a,e[7]=c,e[8]=s,e[9]=o,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==o?(g=t.jsx(ct,{checked:o,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=o,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=q.c(25),{override:s,onOverrideChange:n}=r,a=ee(),i=$s(),c=i[0]?.id??null;let o;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(o=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=o):o=e[3];const[j,d]=w.useState(o);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==a?(l=a("automations.automationConfig.connectAiProviderHint"),e[11]=a,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==a?(u=a("automations.automationConfig.pickModelPlaceholder"),e[15]=a,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(As,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Zt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:St,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:zt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:St},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Tt,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Tt},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:kt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:kt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=q.c(12),{agentId:s,value:n,onChange:a}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let o;e[2]!==c?(o=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=o):o=e[3];let j;e[4]!==s||e[5]!==a||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:a})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=a,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==o||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[o,j]}),e[9]=o,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=q.c(17),{value:s,checked:n,onToggle:a,title:i,description:c,leading:o}=r;let j;e[0]!==n?(j=t.jsx(Mt,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==o?(d=o&&t.jsx("span",{className:"mt-px shrink-0",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==a||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:a,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=a,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function Pt(r){const e=q.c(27),{conn:s,label:n,icon:a,on:i,total:c,onToggle:o}=r,j=ee(),d=i===c;let m;e[0]!==a||e[1]!==s?(m=s?t.jsx(Ps,{icon:s.icon,name:s.title,size:"2xs"}):a?t.jsx(a,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-2xs font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==o?(u=v=>{v.stopPropagation(),o()},e[12]=o,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-2xs font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=q.c(83),{agentId:s,value:n,onChange:a}=r,i=ee(),{org:c}=$t(),[o,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=Ds(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,_,D,k,P;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==a||e[10]!==o||e[11]!==i||e[12]!==n){const Y=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const z=ws(I._meta)??"__other__",Z=_s(I.name,z==="__other__"?void 0:z),A=I.title,xe=A&&A!==I.name?A:go(Z);H.has(z)||H.set(z,{clientId:z,conn:Y.get(z),tools:[]}),H.get(z).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],V=n===null?new Set(J):new Set(n),U=J.every(I=>V.has(I)),E=I=>a(J.every(z=>I.has(z))?null:[...I]),ae=I=>{const z=new Set(V);z.has(I)?z.delete(I):z.add(I),E(z)},ne=(I,z)=>{const Z=new Set(V);for(const A of I)z?Z.add(A):Z.delete(A);E(Z)};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]!==U||e[28]!==i?(ie=i(U?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=U,e[28]=i,e[29]=ie):ie=e[29];const ue=!U&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 tabular-nums",children:[V.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Ft,{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=U?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:V.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==a?(re=()=>a(null),e[40]=a,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==U||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:U,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=U,e[45]=re,e[46]=le,e[47]=C):C=e[47];let F;e[48]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=F):F=e[48];let O;e[49]!==a?(O=()=>a([]),e[49]=a,e[50]=O):O=e[50];const pe=V.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==O||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:O,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]=O,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,F,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 z=I.tools.map(bo),Z=z.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{label:i(I.headingKey),icon:I.icon,on:Z,total:z.length,onToggle:()=>ne(z,Z!==z.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${i(A.titleKey)} ${A.name}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:i(A.titleKey),description:i(A.descriptionKey),leading:t.jsx(A.icon,{size:16,className:"text-muted-foreground"})},A.name))},I.key)}),W.map(I=>{const z=I.tools.map(yo),Z=z.filter(A=>V.has(A)).length;return t.jsx(wt,{heading:t.jsx(Pt,{conn:I.conn,on:Z,total:z.length,onToggle:()=>ne(z,Z!==z.length)}),children:I.tools.map(A=>t.jsx(It,{value:`${A.display} ${A.name} ${I.conn?.title??""}`,checked:V.has(A.name),onToggle:()=>ae(A.name),title:A.display,description:A.description},A.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=a,e[10]=o,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=_,e[23]=D,e[24]=k,e[25]=P}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],_=e[22],D=e[23],k=e[24],P=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==_?(R=t.jsxs(p,{children:[T,_,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=_,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==D||e[75]!==k?(K=t.jsx(l,{className:D,align:k,children:R}),e[72]=l,e[73]=R,e[74]=D,e[75]=k,e[76]=K):K=e[76];let M;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==P?(M=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]=M):M=e[82],M}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(a){const o=parseInt(a[1]??"1");return o%7===0?`Every ${o/7} weeks`:`Every ${o} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const o=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${o}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const a=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return a?{count:parseInt(a[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const _o=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],qe=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],Do=r=>qe.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Po({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:a}=ve(),[i,c]=w.useState("in_progress"),[o,j]=w.useState("any"),[d,m]=w.useState([]),x=qe.filter(l=>l!==i),f=d.filter(l=>l!==i),g=o!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await a.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:o==="statuses"?{kind:o,statuses:f}:{kind:o}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{Do(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:qe.map(l=>{const{label:y,visual:v}=We(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:At("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:o,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),o==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:We(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||a.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Ao=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const a=ee(),{triggerAdd:i}=ve(),c=qs(s?e:null),[o,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=o??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(a("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:a("automations.addStarterPopover.failedAddStarter"))}},N=b=>a(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:a("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:a("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:a("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Ao(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:a("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:a("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:a("automations.jiraTransitionDialog.add")})]})]})})}function Eo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:a,onWebhookCreated:i}){const c=ee(),{triggerAdd:o}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await o.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await o.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:_o.map(v=>t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:o.isPending,children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Fe,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(Oe,{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(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(Et,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Ut,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{y()},disabled:o.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Po,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=q.c(39),{open:s,onOpenChange:n,url:a,token:i,title:c,description:o}=r,j=c===void 0?"Webhook ready":c,d=o===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":o,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==a?(N=a&&i&&h==="url"?`${a.replace(/\/$/,"")}/${i}`:a??"",e[2]=h,e[3]=i,e[4]=a,e[5]=N):N=e[5];const S=N,b=a&&i?h==="header"?`curl -X POST "${S}" \\
|
|
2
2
|
-H "Authorization: Bearer ${i}" \\
|
|
3
3
|
-H "Content-Type: application/json" \\
|
|
4
4
|
-d '{"hello":"world"}'`:`curl -X POST "${S}" \\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,b as O,r as G,j as e,n as a,E as Q,B as V,b5 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,b5 as U}from"./index-CnlrqsCd.js";import{ChatLayout as W}from"./index-BT86t2zN.js";import{s as X}from"./Plus-nOMLt4Yk.js";import{a as Y}from"./UserCheck01-lNPupOG8.js";import{i as F}from"./Zap-DV5_FZrE.js";import{S as Z}from"./search-input-Cu6jTXVw.js";import{E as $}from"./empty-state-BWFEJiAD.js";import{u as tt,a as et,b as it}from"./use-automations-BlLUMChm.js";import{a as ot}from"./use-panel-navigate-BtwQP9g-.js";import{A as st}from"./automation-list-row-CpayrKzf.js";import{c as nt}from"./thread-route-BizqFXgE.js";import"./use-mobile-dNUmCifC.js";import"./tooltip-iXXWa3VG.js";import"./index-DEg1eCWz.js";import"./MessageCircle01-dCZEdQhF.js";import"./XClose-BAaBoHXT.js";import"./thread-button-D5DY5gNU.js";import"./use-sidebar-collapsed-euA02TXK.js";import"./sheet-p2Ousfn8.js";import"./use-chat-layout-state-C8KgaHCk.js";import"./toolbar-icon-button-BzpP1rEG.js";import"./use-in-settings-DF-tVIoE.js";import"./resizable-BlRMDdrh.js";import"./route-page-header-X-mAmINr.js";import"./LayoutLeft-C8ndIALE.js";import"./use-project-scope-B49l3tYT.js";import"./repository-binding-B-NGFlA8.js";import"./use-mcp-client-Bq8ol96W.js";import"./auth-CNYHKCFg.js";import"./use-current-view-DbaDobC4.js";import"./SearchMd-BQl6TEDK.js";import"./badge-loE1b0Vr.js";import"./SwitchHorizontal01-DB7Iju_C.js";import"./Trash01-DLwaS_5I.js";import"./agent-icon-Da3tHBMv.js";import"./AlertCircle-BckhzGo9.js";import"./Tool01-CtY1k5Dx.js";import"./ArrowUp-jwPYnWqs.js";import"./ArrowLeft-DjFnycHz.js";import"./ArrowRight-DdCk_HCk.js";import"./BookOpen01-B2ISsdx6.js";import"./Globe04-C8iXbhsR.js";import"./CheckCircle-p76CoLTf.js";import"./TrendUp01-DAuvMm77.js";import"./ChevronDown-Cf6eg1Aj.js";import"./ChevronSelectorVertical-ies3TLws.js";import"./ChevronUp-Yoxwp_-j.js";import"./UserSquare-xrIyO385.js";import"./LinkBroken01-WNn1RqQL.js";import"./CreditCard01-DOIepajb.js";import"./File02-B4TAUApJ.js";import"./Eye-B-zZzOpR.js";import"./Image01-BKS8Yp4v.js";import"./Key01-D3gaP9qK.js";import"./Minus-BGxu6wTp.js";import"./Monitor01-CrmQoLWb.js";import"./Sun-CnYsG6YA.js";import"./Play-B1JyKt5J.js";import"./ShoppingBag01-DPoH0u5v.js";import"./Upload01-D8Llo-n7.js";import"./Users01-B6_L_w2p.js";function rt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function at(o){const t=S.c(45),{virtualMcpId:n}=o,i=O(),{openPanel:r}=ot(),{data:D,error:M}=tt(n),v=D===void 0?[]:D,{create:y}=et(),[_,H]=G.useState("");if(M&&rt(M)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==r?(j=()=>r("settings"),t[5]=r,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let N;return t[12]!==x||t[13]!==h||t[14]!==C?(N=e.jsx(a,{children:e.jsx(a.Content,{children:e.jsx(a.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=N):N=t[15],N}const J=_.toLowerCase(),q=v.filter(s=>s.name.toLowerCase().includes(J));let w;t[16]!==r?(w=s=>r(`automation:${s}`),t[16]=r,t[17]=w):w=t[17];const B=w,R=async()=>{if(y.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:n,existing_count:v.length});const s=await y.mutateAsync(it(n));B(s.id)},K=y.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(X,{size:14}),t[18]=A):A=t[18];let m;t[19]!==i?(m=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=m):m=t[20];let L;t[21]!==y.isPending||t[22]!==R||t[23]!==m?(L=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[A,m]}),t[21]=y.isPending,t[22]=R,t[23]=m,t[24]=L):L=t[24];const P=L,E=a,T=a,k=a;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==P||t[28]!==l?(c=e.jsx(a.Title,{actions:P,children:l}),t[27]=P,t[28]=l,t[29]=c):c=t[29];const z=v.length>0&&e.jsx(Z,{value:_,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[30]!==z?(p=e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:z}),t[30]=z,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const I=v.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:!1})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==T.Content?(f=e.jsx(T.Content,{children:d}),t[39]=d,t[40]=T.Content,t[41]=f):f=t[41];let b;return t[42]!==E||t[43]!==f?(b=e.jsx(E,{children:f}),t[42]=E,t[43]=f,t[44]=b):b=t[44],b}function mt(o){const t=S.c(3),{virtualMcpId:n}=o;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(U,{}),t[0]=i):i=t[0];let r;return t[1]!==n?(r=e.jsx(G.Suspense,{fallback:i,children:e.jsx(at,{virtualMcpId:n})}),t[1]=n,t[2]=r):r=t[2],r}function lt(){const o=S.c(2),t=nt();let n;return o[0]!==t?(n=e.jsx(mt,{virtualMcpId:t}),o[0]=t,o[1]=n):n=o[1],n}function je(){const o=S.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{je as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-editor-
|
|
2
|
-
import{c as T,r as B,m as re,j as n,b as se,bb as xe,b4 as we,B as ce,a7 as Pe,ar as ye,b6 as Se,bc as je,n as Ee,ba as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bd as Be,be as De}from"./index-BsAwgxIf.js";import{ChatLayout as Le}from"./index-DQWJotH-.js";import{b as Ie,S as $e}from"./site-draft-actions-CKH_63G-.js";import{F as Te}from"./feature-gate-DK9IZjbG.js";import{E as be}from"./empty-state-D--R_kh-.js";import{F as ze,n as Ae}from"./agent-icon-B9nZhdi2.js";import{d as Ce}from"./UserSquare-aJjYmjOR.js";import{u as Oe}from"./use-fast-preview-draft-url-BTGBRNHr.js";import{u as Fe,a as He,j as Ke}from"./category-tree-DO91V9PE.js";import{i as Me}from"./Monitor01-C4OHhcX6.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe}from"./frame-navigation-D5yMy5Mm.js";import{g as Ye}from"./site-editor-toast-BRXEnjic.js";import{b as qe}from"./use-sandbox-events-aK2a02aF.js";import{b as Je,f as Qe}from"./blog-preview-url-Bk8Ya8Ff.js";import{B as Ze,a as et}from"./blog-source-gate-CHqmG0fU.js";import{r as tt}from"./use-panel-navigate-DpEZACCY.js";import{c as ot}from"./thread-route-sNjMl6Ie.js";import{a as it}from"./blog-view-gate-CBYiW3a_.js";import"./use-mobile-BwxeIsTr.js";import"./tooltip-r0LfLYi3.js";import"./index-KBC7Pj7l.js";import"./MessageCircle01-CQjeMfQj.js";import"./XClose-Dq0BGBMq.js";import"./thread-button-ChRjFza7.js";import"./use-sidebar-collapsed-CSFUmB9m.js";import"./sheet-DKmzxIAF.js";import"./use-chat-layout-state-DjHcwQYx.js";import"./toolbar-icon-button-BSXImY57.js";import"./use-in-settings-BT3nEhsO.js";import"./resizable-97tyuWCT.js";import"./route-page-header-DFLx6qIf.js";import"./LayoutLeft-DHg_jNr0.js";import"./use-project-scope-C815BKEh.js";import"./repository-binding-BS9v5Fe_.js";import"./use-mcp-client-DXpTlXlJ.js";import"./auth-D0WiD-6X.js";import"./use-current-view-C1-z4fIk.js";import"./separator-CL-QJFBL.js";import"./chat-context-BhwgXdxZ.js";import"./use-view-draft-kind-1niLZJ6g.js";import"./use-blog-view-B-p1Bott.js";import"./use-organization-settings-BilLeNy9.js";import"./schema-CggWCz-G.js";import"./task-board-CZuAKwkd.js";import"./thread-intent-BNoxio0t.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bw3-M9_N.js";import"./session-runtime-BtkBTCEv.js";import"./use-entitlements-BRKIl3Rz.js";import"./use-ai-providers-CFArCH41.js";import"./use-decopilot-events-CZR337Lj.js";import"./use-org-notice-BLcA1Iw0.js";import"./popover-DogMO3pk.js";import"./command-BcxQrgUK.js";import"./index-Bi2fLJMb.js";import"./SearchMd-BhCfkG_O.js";import"./tabs-BMObVAFs.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-uPv2ScPr.js";import"./UserCheck01-3D5hYz4C.js";import"./SwitchHorizontal01-BU8z7oT_.js";import"./Tool01-ymE-fOFX.js";import"./Plus-BzpqhVU8.js";import"./Trash01-aSl--BGd.js";import"./use-voice-input-DYwW5R3c.js";import"./drawer-EGIO8vW1.js";import"./index-CT5cpmuw.js";import"./checkbox-BwlyfOui.js";import"./Minus-BM2zRSMr.js";import"./select-DPXDtN3F.js";import"./index-BdQq_4o_.js";import"./ChevronUp-BkmRXggG.js";import"./ArrowLeft-B8D7i2xh.js";import"./ChevronSelectorVertical-CiFyE2Pu.js";import"./Key01-CgRwsDr3.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-DA6gE5vw.js";import"./Eye-DL5oRAI4.js";import"./Image01-BCiDUkCm.js";import"./use-debounced-value-BkJoL4uj.js";import"./shell-layout-DwJrXedk.js";import"./Globe04-DD86hrsf.js";import"./use-deployment-admin-DGQGQZ6E.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-Bh1gNJET.js";import"./Zap-NAfA60T9.js";import"./integration-icon-DbiCbrD7.js";import"./LinkBroken01-Ic71rSEU.js";import"./project-icon-BHcF2TIr.js";import"./use-navigate-to-agent-DjeX7xEq.js";import"./new-project-dialog-CrDlez-N.js";import"./label-D8u4gNcM.js";import"./repository-picker-CXtPhUQx.js";import"./github-icon-BoZrKkV3.js";import"./useInfiniteQuery-C5Fx0PfA.js";import"./infiniteQueryObserver-CnD94meO.js";import"./collection-search-Dj3oO1qn.js";import"./BookOpen01-UxGmri2e.js";import"./ShoppingBag01-KIefHp9K.js";import"./new-project-store-DleT4y6U.js";import"./legacy-admin-welcome-dialog-C4yFyjEg.js";import"./required-auth-layout-C_8jBLMB.js";import"./use-org-sso-DhdCpzK5.js";import"./cms-store-drafts-C3WBV5HM.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-DrcP-MsH.js";import"./url-slug-CR2COLQn.js";import"./use-blocks-v8-project-uH3tLJJX.js";import"./blocks-tab-states-_faw29v2.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-DxGz72GL.js";import"./index-A2_7RKep.js";import"./ArrowUp-DyF0Rx2O.js";import"./input-Cy8KNDYA.js";import"./usage-stats-BH8jlFhP.js";import"./utils-CVEq3hMx.js";import"./markdown-SwM1Ir6g.js";import"./use-copy-BFUDxfVH.js";import"./File02-DEjt2PPW.js";import"./gateway-client-t5s1Cm0x.js";import"./form-Cb5OHNc9.js";import"./icon-button-CpBLMSxk.js";import"./file-type-icon-Bhy3vcyl.js";import"./chat-draft-CG09JkEF.js";import"./ArrowRight-C1EmTlL-.js";import"./Upload01-DozMUWEF.js";import"./use-deco-credits-zD_A42hI.js";import"./toggle-group-N0qYYn6W.js";import"./input--kphUWpn.js";import"./suggestion-BapLR6AM.js";import"./use-mcp-prompts-B_BU9Jdl.js";import"./use-org-fs-D2bsNlGU.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-BQdFbBKY.js";import"./plan-ladder-DAHXnxDP.js";import"./add-connection-dialog-D1_0-J8t.js";import"./extract-connection-data-DeUSUVIy.js";import"./metadata-D72DunRR.js";import"./connection-CELF9xGk.js";import"./connection-card-DqAevMOq.js";import"./connection-slug-Dz7hwoVN.js";import"./textarea-3iEFQij9.js";import"./use-connection-DpuSfyHb.js";import"./schema-CsWev9Lq.js";import"./connection-form-helpers-egiEwtYz.js";import"./authenticate-and-persist-oauth-CjsXQJBc.js";import"./mcp-oauth-DXUgkWSg.js";import"./mcp-oauth-nZa_TONF.js";import"./collection-tabs-Wktk7Bil.js";import"./badge-BUkSpOXa.js";import"./use-infinite-scroll-Dv1yBngZ.js";import"./useSuspenseInfiniteQuery-kmW-ybmd.js";import"./use-task-board-items-DX_SyoB4.js";import"./pair-4JIJkNK2.js";import"./collapsible-BILoWprp.js";import"./task-key-Binbqohp.js";import"./config-Bn4oMb7y.js";import"./task-route-IxeWFQf4.js";import"./project-index-Be1RuOJ6.js";import"./TrendUp01-Cr4FP2fV.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Jzrzu2q5.js";import"./types-BhUJ3bOA.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-HnCGzIoZ.js";import"./agent-capabilities-MDN7TVuK.js";import"./use-cms-publish-actions-BbXykL5B.js";import"./use-content-sync-C9laqqVB.js";import"./sandbox-git-api-CbcKlTqF.js";import"./utils-DII4rh9V.js";import"./device-hint-CUh7MxFw.js";import"./alert-N4205I9V.js";import"./section-array-field-fkRL6dJN.js";import"./editor-B_YvqDEq.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-Ckk9fyCX.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-C-H9qti1.js";import"./Sun-CoJn-J4w.js";import"./Play-l838EjWq.js";import"./Users01-Cximoi8v.js";import"./empty-message-BR97lu1R.js";import"./use-move-blocks-D-OheBD-.js";import"./hosted-reconcile-mSp200Ck.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-CDKF4zje.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])).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 es(){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{es as default};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/post-editor-_PepvJ6a.js","assets/index-CnlrqsCd.js","assets/index-pbgcO64n.css","assets/chat-context-Cdr2Tzco.js","assets/use-panel-navigate-BtwQP9g-.js","assets/thread-route-BizqFXgE.js","assets/use-project-scope-B49l3tYT.js","assets/repository-binding-B-NGFlA8.js","assets/use-mcp-client-Bq8ol96W.js","assets/auth-CNYHKCFg.js","assets/use-view-draft-kind-D6a-C5cc.js","assets/use-blog-view-CjVBpsro.js","assets/use-organization-settings-DmJ49Wll.js","assets/schema-DCd8UMh8.js","assets/task-board-B47Oba0a.js","assets/thread-intent-CMPSad7_.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-wQgu9ix_.js","assets/session-runtime-CPmKckVH.js","assets/use-entitlements-cKoK0gNm.js","assets/use-ai-providers-DAAK1LJH.js","assets/use-current-view-DbaDobC4.js","assets/use-in-settings-DF-tVIoE.js","assets/use-decopilot-events-CsRo6_4Z.js","assets/AlertCircle-BckhzGo9.js","assets/agent-icon-Da3tHBMv.js","assets/UserCheck01-lNPupOG8.js","assets/Tool01-CtY1k5Dx.js","assets/ArrowUp-jwPYnWqs.js","assets/ArrowLeft-DjFnycHz.js","assets/ArrowRight-DdCk_HCk.js","assets/BookOpen01-B2ISsdx6.js","assets/Globe04-C8iXbhsR.js","assets/CheckCircle-p76CoLTf.js","assets/TrendUp01-DAuvMm77.js","assets/ChevronDown-Cf6eg1Aj.js","assets/ChevronSelectorVertical-ies3TLws.js","assets/ChevronUp-Yoxwp_-j.js","assets/UserSquare-xrIyO385.js","assets/LinkBroken01-WNn1RqQL.js","assets/CreditCard01-DOIepajb.js","assets/File02-B4TAUApJ.js","assets/MessageCircle01-dCZEdQhF.js","assets/SwitchHorizontal01-DB7Iju_C.js","assets/Eye-B-zZzOpR.js","assets/Image01-BKS8Yp4v.js","assets/Key01-D3gaP9qK.js","assets/LayoutLeft-C8ndIALE.js","assets/Minus-BGxu6wTp.js","assets/Monitor01-CrmQoLWb.js","assets/Sun-CnYsG6YA.js","assets/Play-B1JyKt5J.js","assets/Plus-nOMLt4Yk.js","assets/SearchMd-BQl6TEDK.js","assets/ShoppingBag01-DPoH0u5v.js","assets/Trash01-DLwaS_5I.js","assets/Upload01-D8Llo-n7.js","assets/Users01-B6_L_w2p.js","assets/XClose-BAaBoHXT.js","assets/Zap-DV5_FZrE.js","assets/label-D9MCble5.js","assets/multi-select-DVrZLS4y.js","assets/badge-loE1b0Vr.js","assets/checkbox-ClBCJgC4.js","assets/command-CtLQP1YS.js","assets/index-DjQbsfzi.js","assets/popover-BehWQy5s.js","assets/tabs-BB9AjDp8.js","assets/active-indicator-CCMhAsc_.js","assets/switch-DhrqiPup.js","assets/textarea-BfYW4m9c.js","assets/save-status-DJPya39G.js","assets/use-never-published-V8ak3bds.js","assets/use-voice-input-DwLhccAL.js","assets/drawer-CRP1WiCk.js","assets/tooltip-iXXWa3VG.js","assets/index-DEg1eCWz.js","assets/use-mobile-dNUmCifC.js","assets/index-xBV0t4Yq.js","assets/select-P0a7iEwt.js","assets/index-BdQq_4o_.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/site-editor-toast-BCIjRFDB.js","assets/use-sandbox-events-CNUqntlP.js","assets/sandbox-url-D3mC8qhT.js","assets/use-blocks-v8-project-D3ldcoCH.js","assets/utils-DBfgNQF1.js","assets/sandbox-git-api-aKyMzAgE.js","assets/hosted-reconcile-EHhmhhgb.js","assets/blocks-tab-states-DCjOLpkz.js","assets/empty-state-BWFEJiAD.js","assets/search-input-Cu6jTXVw.js","assets/use-debounced-value-CI6OWQk7.js","assets/use-file-configs-DvcuDR-z.js","assets/asset-utils-hi9ZCK7M.js","assets/useInfiniteQuery-B7ay7aNP.js","assets/infiniteQueryObserver-d6eMImhi.js","assets/usage-stats-Cpv39cmk.js","assets/utils-CVEq3hMx.js","assets/markdown-DPh7H1MH.js","assets/use-copy-jVRNS72q.js","assets/gateway-client-BwxdQL6w.js","assets/form-9ojGZv11.js","assets/toggle-group-DNENle-P.js","assets/match-site-slug-config-B47_xZCi.js","assets/block-document-C_ucAxAi.js","assets/task-key-CzMIIXuS.js","assets/sortable.esm-RnWQ2Udf.js","assets/delete-copy-Dxwk399F.js","assets/category-tree-DY9bWdK8.js","assets/empty-message-CFaFzCFq.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BqleDpPR.js","assets/collapsible-6ftDlMsd.js","assets/use-task-board-items-DT4Yu9ci.js","assets/config-CheVupom.js","assets/task-route-DnF8qwEX.js","assets/project-index-D_813h_x.js","assets/shell-layout-ipiZBDIC.js","assets/use-deployment-admin-DsggmftG.js","assets/admin-fetch-BhTJlAsX.js","assets/use-org-notice-DEvisT2l.js","assets/integration-icon-XdnHhG6r.js","assets/project-icon-DsXJkCkm.js","assets/use-navigate-to-agent-DeYqaaa3.js","assets/new-project-dialog-DqENGapI.js","assets/repository-picker-gzTJe9Gv.js","assets/github-icon-Bx9ss8sA.js","assets/collection-search-CW9SJXAE.js","assets/new-project-store-BCRxr-mc.js","assets/legacy-admin-welcome-dialog-5lUmP66o.js","assets/required-auth-layout-nH3iv-0Q.js","assets/use-org-sso-DiEFaIS8.js","assets/shell-layout-CE2Eihra.css","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-DEDNSoX2.js","assets/types-Ds7H4BQL.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/sheet-p2Ousfn8.js","assets/use-connection-CyhiAuyN.js","assets/use-mcp-prompts-B6Jw27dX.js","assets/use-thread-outputs-riYbRXeW.js","assets/file-type-icon-BAAuwpOK.js","assets/section-array-field-BEw6_ifu.js","assets/use-move-blocks-DkefGETO.js","assets/index-BxZDu5VS.js","assets/suggestion-vwX5VgUe.js","assets/editor-classes-DXmOOkk1.js","assets/blog-preview-url-B7uV4oRW.js","assets/product-picker-dialog-BL9boxvk.js","assets/index-Cb8rdIGe.js","assets/held-block-view-CwXGGKH1.js","assets/calendar-BI3J-A5m.js","assets/named-rule-step-B-qKJe-K.js","assets/slider-BSVnJGMl.js","assets/index-0mVsTo2D.js","assets/tooltipContext-C8y_VFmL.js","assets/CategoricalChart-Di2gWvs8.js","assets/index-CQwlvIdC.js","assets/combobox-BQBhf9A-.js","assets/scroll-area-Csvonw83.js","assets/blog-schema-Cc_fWOEk.js","assets/use-delete-block-CgNbR5dQ.js","assets/use-fast-preview-draft-url-CVB9nGuj.js","assets/use-autosave-C8IC3tXr.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as T,r as B,m as re,j as n,b as se,bb as xe,b4 as we,B as ce,a7 as Pe,ar as ye,b6 as Se,bc as je,n as Ee,ba as ge,h as ke,d as _e,f as Re,u as Ne,$ as de,bd as Be,be as De}from"./index-CnlrqsCd.js";import{ChatLayout as Le}from"./index-BT86t2zN.js";import{b as Ie,S as $e}from"./site-draft-actions-BvryPs_I.js";import{F as Te}from"./feature-gate-BRL5qzLx.js";import{E as be}from"./empty-state--JGqfPR-.js";import{F as ze,n as Ae}from"./agent-icon-Da3tHBMv.js";import{d as Ce}from"./UserSquare-xrIyO385.js";import{u as Oe}from"./use-fast-preview-draft-url-CVB9nGuj.js";import{u as Fe,a as He,j as Ke}from"./category-tree-DY9bWdK8.js";import{i as Me}from"./Monitor01-CrmQoLWb.js";import{u as Ve,n as Ue,h as We,f as fe,H as Ge,P as Xe}from"./frame-navigation-CmmgpT4V.js";import{g as Ye}from"./site-editor-toast-BCIjRFDB.js";import{b as qe}from"./use-sandbox-events-CNUqntlP.js";import{b as Je,f as Qe}from"./blog-preview-url-B7uV4oRW.js";import{B as Ze,a as et}from"./blog-source-gate-BS-4HFBT.js";import{r as tt}from"./use-panel-navigate-BtwQP9g-.js";import{c as ot}from"./thread-route-BizqFXgE.js";import{a as it}from"./blog-view-gate-D10ViiI0.js";import"./use-mobile-dNUmCifC.js";import"./tooltip-iXXWa3VG.js";import"./index-DEg1eCWz.js";import"./MessageCircle01-dCZEdQhF.js";import"./XClose-BAaBoHXT.js";import"./thread-button-D5DY5gNU.js";import"./use-sidebar-collapsed-euA02TXK.js";import"./sheet-p2Ousfn8.js";import"./use-chat-layout-state-C8KgaHCk.js";import"./toolbar-icon-button-BzpP1rEG.js";import"./use-in-settings-DF-tVIoE.js";import"./resizable-BlRMDdrh.js";import"./route-page-header-X-mAmINr.js";import"./LayoutLeft-C8ndIALE.js";import"./use-project-scope-B49l3tYT.js";import"./repository-binding-B-NGFlA8.js";import"./use-mcp-client-Bq8ol96W.js";import"./auth-CNYHKCFg.js";import"./use-current-view-DbaDobC4.js";import"./separator-CD1pacr0.js";import"./chat-context-Cdr2Tzco.js";import"./use-view-draft-kind-D6a-C5cc.js";import"./use-blog-view-CjVBpsro.js";import"./use-organization-settings-DmJ49Wll.js";import"./schema-DCd8UMh8.js";import"./task-board-B47Oba0a.js";import"./thread-intent-CMPSad7_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-wQgu9ix_.js";import"./session-runtime-CPmKckVH.js";import"./use-entitlements-cKoK0gNm.js";import"./use-ai-providers-DAAK1LJH.js";import"./use-decopilot-events-CsRo6_4Z.js";import"./use-org-notice-DEvisT2l.js";import"./popover-BehWQy5s.js";import"./command-CtLQP1YS.js";import"./index-DjQbsfzi.js";import"./SearchMd-BQl6TEDK.js";import"./tabs-BB9AjDp8.js";import"./active-indicator-CCMhAsc_.js";import"./ChevronDown-Cf6eg1Aj.js";import"./UserCheck01-lNPupOG8.js";import"./SwitchHorizontal01-DB7Iju_C.js";import"./Tool01-CtY1k5Dx.js";import"./Plus-nOMLt4Yk.js";import"./Trash01-DLwaS_5I.js";import"./use-voice-input-DwLhccAL.js";import"./drawer-CRP1WiCk.js";import"./index-xBV0t4Yq.js";import"./checkbox-ClBCJgC4.js";import"./Minus-BGxu6wTp.js";import"./select-P0a7iEwt.js";import"./index-BdQq_4o_.js";import"./ChevronUp-Yoxwp_-j.js";import"./ArrowLeft-DjFnycHz.js";import"./ChevronSelectorVertical-ies3TLws.js";import"./Key01-D3gaP9qK.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./AlertCircle-BckhzGo9.js";import"./Eye-B-zZzOpR.js";import"./Image01-BKS8Yp4v.js";import"./use-debounced-value-CI6OWQk7.js";import"./shell-layout-ipiZBDIC.js";import"./Globe04-C8iXbhsR.js";import"./use-deployment-admin-DsggmftG.js";import"./admin-fetch-BhTJlAsX.js";import"./CheckCircle-p76CoLTf.js";import"./Zap-DV5_FZrE.js";import"./integration-icon-XdnHhG6r.js";import"./LinkBroken01-WNn1RqQL.js";import"./project-icon-DsXJkCkm.js";import"./use-navigate-to-agent-DeYqaaa3.js";import"./new-project-dialog-DqENGapI.js";import"./label-D9MCble5.js";import"./repository-picker-gzTJe9Gv.js";import"./github-icon-Bx9ss8sA.js";import"./useInfiniteQuery-B7ay7aNP.js";import"./infiniteQueryObserver-d6eMImhi.js";import"./collection-search-CW9SJXAE.js";import"./BookOpen01-B2ISsdx6.js";import"./ShoppingBag01-DPoH0u5v.js";import"./new-project-store-BCRxr-mc.js";import"./legacy-admin-welcome-dialog-5lUmP66o.js";import"./required-auth-layout-nH3iv-0Q.js";import"./use-org-sso-DiEFaIS8.js";import"./cms-store-drafts-Boyjd6L_.js";import"./serial-task-queue-CGOeQgpr.js";import"./virtual-mcp-CrzgTGWz.js";import"./url-slug-Dl2YaRDk.js";import"./use-blocks-v8-project-D3ldcoCH.js";import"./blocks-tab-states-DCjOLpkz.js";import"./sandbox-url-D3mC8qhT.js";import"./empty-state-BWFEJiAD.js";import"./index-B_eBHPlD.js";import"./ArrowUp-jwPYnWqs.js";import"./input-CzlhHu3g.js";import"./usage-stats-Cpv39cmk.js";import"./utils-CVEq3hMx.js";import"./markdown-DPh7H1MH.js";import"./use-copy-jVRNS72q.js";import"./File02-B4TAUApJ.js";import"./gateway-client-BwxdQL6w.js";import"./form-9ojGZv11.js";import"./icon-button-DhhoBQY7.js";import"./file-type-icon-BAAuwpOK.js";import"./chat-draft--xvDfEkY.js";import"./ArrowRight-DdCk_HCk.js";import"./Upload01-D8Llo-n7.js";import"./use-deco-credits-CH6PNQ_v.js";import"./toggle-group-DNENle-P.js";import"./input-BzVp3-J0.js";import"./suggestion-vwX5VgUe.js";import"./use-mcp-prompts-B6Jw27dX.js";import"./use-org-fs-qpGfwwQf.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DKi0OK9Z.js";import"./plan-ladder-heY6MciQ.js";import"./add-connection-dialog-HNNoGhQz.js";import"./extract-connection-data-C26a1rUY.js";import"./metadata-D72DunRR.js";import"./connection-BNwNEPn2.js";import"./connection-card-Bz0SPOqT.js";import"./connection-slug-mPfdw4iI.js";import"./textarea-BfYW4m9c.js";import"./use-connection-CyhiAuyN.js";import"./schema-BBpKzKno.js";import"./connection-form-helpers-Bw7x5pKf.js";import"./authenticate-and-persist-oauth-D450Ij-p.js";import"./mcp-oauth-D_ZnYWZH.js";import"./mcp-oauth-XpGc4vgb.js";import"./collection-tabs-Y93FdN1l.js";import"./badge-loE1b0Vr.js";import"./use-infinite-scroll-iq2V7hOe.js";import"./useSuspenseInfiniteQuery-BuojYKnE.js";import"./use-task-board-items-DT4Yu9ci.js";import"./pair-BqleDpPR.js";import"./collapsible-6ftDlMsd.js";import"./task-key-CzMIIXuS.js";import"./config-CheVupom.js";import"./task-route-DnF8qwEX.js";import"./project-index-D_813h_x.js";import"./TrendUp01-DAuvMm77.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DEDNSoX2.js";import"./types-Ds7H4BQL.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-riYbRXeW.js";import"./agent-capabilities-BI0sCkjS.js";import"./use-cms-publish-actions-CfFe1een.js";import"./use-content-sync-DMiZIHHe.js";import"./sandbox-git-api-aKyMzAgE.js";import"./utils-DBfgNQF1.js";import"./device-hint-DwxBL2qp.js";import"./alert-2VptOQ03.js";import"./section-array-field-BEw6_ifu.js";import"./editor-Ca65jgGo.js";import"./save-changes-debug-nBi-n9eV.js";import"./sandbox-lifecycle-context-D7Fp6oqG.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./CreditCard01-DOIepajb.js";import"./Sun-CnYsG6YA.js";import"./Play-B1JyKt5J.js";import"./Users01-B6_L_w2p.js";import"./empty-message-CFaFzCFq.js";import"./use-move-blocks-DkefGETO.js";import"./hosted-reconcile-EHhmhhgb.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-_PepvJ6a.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])).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 es(){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{es as default};
|