decocms 4.576.1 → 4.576.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-xXAUxL5Z.js → AlertCircle-CQW1P7_R.js} +1 -1
- package/dist/client/assets/{AreaChart-KQm98sY2.js → AreaChart-BEgOgZZj.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C3_uUc-z.js → ArrowLeft-sSY9Zm-O.js} +1 -1
- package/dist/client/assets/{ArrowUp-zmQoWTOv.js → ArrowUp-VZphHDPw.js} +1 -1
- package/dist/client/assets/{CartesianChart-DHvizK6L.js → CartesianChart-Bku6CBeN.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CFhpDsVs.js → CategoricalChart-CI96Ht0A.js} +1 -1
- package/dist/client/assets/{CheckCircle-DWmAA0cA.js → CheckCircle-BAqlx5xq.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CN80qRM1.js → ChevronSelectorVertical-CAw9AQRt.js} +1 -1
- package/dist/client/assets/{ChevronUp-CjVmbW8q.js → ChevronUp-RQuomTlc.js} +1 -1
- package/dist/client/assets/{CreditCard01-DexMydMI.js → CreditCard01-uW1Nq0L7.js} +1 -1
- package/dist/client/assets/{Globe04-DE0bAUaJ.js → Globe04-1JEh9zst.js} +1 -1
- package/dist/client/assets/{Key01-CYHpm2EC.js → Key01-B-MK6puk.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DOEirutZ.js → LinkBroken01-ArAKWl5D.js} +1 -1
- package/dist/client/assets/{Minus-CzeqOX9y.js → Minus-y3rEkH4O.js} +1 -1
- package/dist/client/assets/{Monitor01-BRxbdUXR.js → Monitor01-DkdtFPE6.js} +1 -1
- package/dist/client/assets/{Play-lt5qVoJ1.js → Play-BtmesR9D.js} +1 -1
- package/dist/client/assets/{Plus-hGBo4v46.js → Plus-BhSB1FAc.js} +1 -1
- package/dist/client/assets/{ReferenceLine-C75x_SEP.js → ReferenceLine-CguuPF_F.js} +1 -1
- package/dist/client/assets/{SearchMd-5BOhX0M5.js → SearchMd-CTCaP47C.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-drnY5mbB.js → ShoppingBag01-DEtqIAKG.js} +1 -1
- package/dist/client/assets/{Sun-qq_IYs5i.js → Sun-DhrY2nq7.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DTC4TsRM.js → SwitchHorizontal01-DTDSJnjG.js} +1 -1
- package/dist/client/assets/{Tool01-CiRc7Dx3.js → Tool01-CE4RsL2T.js} +1 -1
- package/dist/client/assets/{Tooltip-BPkeeG1S.js → Tooltip-DzoIZZA-.js} +1 -1
- package/dist/client/assets/{Trash01-Bhop9SkH.js → Trash01-DQCE9WJt.js} +1 -1
- package/dist/client/assets/{Upload01-Hve2lQE3.js → Upload01-C8pH3Rp-.js} +1 -1
- package/dist/client/assets/{UserSquare-BawmuPOv.js → UserSquare-DfCEdLMW.js} +1 -1
- package/dist/client/assets/{Users01-BjAyisfu.js → Users01-RbJbPNL4.js} +1 -1
- package/dist/client/assets/{XClose-DiD5f6J1.js → XClose-B9seet19.js} +1 -1
- package/dist/client/assets/{Zap-DKp_mX_L.js → Zap-B2TeJ3jk.js} +1 -1
- package/dist/client/assets/{access-gate-BytJbO55.js → access-gate-B3-8eUAT.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BFH1NNm1.js → add-connection-dialog-BZazlImL.js} +1 -1
- package/dist/client/assets/agent-app-S0Wudwb2.js +1 -0
- package/dist/client/assets/{agent-assets-CIjQglx7.js → agent-assets-D6n5n_j9.js} +1 -1
- package/dist/client/assets/{agent-automation-DAtnxeZt.js → agent-automation-BDFDUDqF.js} +1 -1
- package/dist/client/assets/{agent-automations-DnxzzcBV.js → agent-automations-CTb19iEo.js} +1 -1
- package/dist/client/assets/{agent-calendar-BGkmZsO1.js → agent-calendar-dOBBocaZ.js} +1 -1
- package/dist/client/assets/{agent-capabilities-JoZ74wKG.js → agent-capabilities-D8RyEQle.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BISjOBUq.js → agent-connect-sources-Cv_HfEov.js} +1 -1
- package/dist/client/assets/agent-deck-Cp4W6NYg.js +1 -0
- package/dist/client/assets/{agent-e2e-BlgOOj7a.js → agent-e2e-UuVTzQty.js} +1 -1
- package/dist/client/assets/agent-experiments-DqEDCkUD.js +1 -0
- package/dist/client/assets/{agent-file-169OLyrU.js → agent-file-BxTgqKD4.js} +1 -1
- package/dist/client/assets/{agent-hosting-YNj04bBF.js → agent-hosting-SFnhs_AJ.js} +1 -1
- package/dist/client/assets/{agent-icon-BA6h0wAH.js → agent-icon-DmYd33Zd.js} +1 -1
- package/dist/client/assets/agent-library-D-dnSVJn.js +1 -0
- package/dist/client/assets/agent-library-file-S8fMrNmL.js +1 -0
- package/dist/client/assets/agent-overview-DTBRMEQ0.js +1 -0
- package/dist/client/assets/{agent-releases-C6si7FBa.js → agent-releases-Nv7L0dpy.js} +1 -1
- package/dist/client/assets/agent-settings-BiadK6yu.js +1 -0
- package/dist/client/assets/{agent-site-editor-C1LxEaGf.js → agent-site-editor-DLrFF0Rn.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CYv63Bju.js +2 -0
- package/dist/client/assets/agent-site-editor-content-hqsSwJg4.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-YV7jDYx1.js +1 -0
- package/dist/client/assets/agent-view-X2daaOWI.js +1 -0
- package/dist/client/assets/{agent-view-guard-CacdY14y.js → agent-view-guard-D0qWi85T.js} +1 -1
- package/dist/client/assets/{ai-providers-B9VjY3-C.js → ai-providers-CjPCR-pK.js} +1 -1
- package/dist/client/assets/{alert-ClhrC_dZ.js → alert-C5FPaAXQ.js} +1 -1
- package/dist/client/assets/{analytics-sections-Ceqbg_gn.js → analytics-sections-BGMxhZwl.js} +1 -1
- package/dist/client/assets/api-keys-D-r93aBn.js +1 -0
- package/dist/client/assets/{api-keys-BQCeDppV.js → api-keys-p6Xw6r8B.js} +1 -1
- package/dist/client/assets/{app-editor-CqxGM2YR.js → app-editor-DQwdeZHJ.js} +1 -1
- package/dist/client/assets/{asset-utils-BUJSzeIX.js → asset-utils-BW1FTT9q.js} +1 -1
- package/dist/client/assets/{auth-0v5kQxM4.js → auth-DeNsOsKX.js} +1 -1
- package/dist/client/assets/{auth-catchall-4_gVhcor.js → auth-catchall-C3auT4P_.js} +1 -1
- package/dist/client/assets/{auth-entry-CuZzH35o.js → auth-entry-BBIyDdU5.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Gs_D53xo.js → auth-split-layout-CpPst90z.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CEFAAPr5.js → authenticate-and-persist-oauth-Ca1G6bWy.js} +1 -1
- package/dist/client/assets/{automation-list-row-Da0Xr3Lq.js → automation-list-row-GTaw28qY.js} +1 -1
- package/dist/client/assets/{automation-runs-DSyVjayJ.js → automation-runs-e7UMBmIy.js} +1 -1
- package/dist/client/assets/{automations-Cyou7vFe.js → automations-DVHIEzYX.js} +1 -1
- package/dist/client/assets/{autosend-QEZQmopg.js → autosend-0p4cszrD.js} +1 -1
- package/dist/client/assets/{badge-OxXf6NyW.js → badge-fJOJmdQG.js} +1 -1
- package/dist/client/assets/{block-document-B6v34vY4.js → block-document-D6lQw_Sn.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-taTuRoj9.js → blocks-preview-workspace-context-CevYm8XG.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BpFfPHVw.js → blocks-tab-states-BLBUtwwS.js} +1 -1
- package/dist/client/assets/{blog-schema-DT3MGNEM.js → blog-schema-CW6OwOTr.js} +1 -1
- package/dist/client/assets/{buckets-Cy9iWWRH.js → buckets-DJjTeJ67.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BQTuUvnz.js → build-improve-prompt-doc-Bz_NuW8p.js} +1 -1
- package/dist/client/assets/{calendar-ZOQBRbgD.js → calendar-BN8LK6az.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bb_YsAjX.js → capability-load-error-BwSdaWc5.js} +1 -1
- package/dist/client/assets/{category-editor-BSVL1WiV.js → category-editor-B2fU3l2-.js} +1 -1
- package/dist/client/assets/{chart-DuDORsVm.js → chart-TbvRqjuj.js} +1 -1
- package/dist/client/assets/{chat-context-CaBz0Fa_.js → chat-context-BwoQSegQ.js} +1 -1
- package/dist/client/assets/{chat-draft-0xyMYS4v.js → chat-draft-DH581p83.js} +1 -1
- package/dist/client/assets/{checkbox-uRiFMDEw.js → checkbox-BYltfk17.js} +1 -1
- package/dist/client/assets/{choose-editor-C8Fx5E1l.js → choose-editor-CF8pbtbx.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Bco2eMX2.js → cli-auth-success-8VRhz3fQ.js} +1 -1
- package/dist/client/assets/{client-icons-BDJ7lEQk.js → client-icons-azPimjhr.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-DcPG8xWi.js → cms-settings-editor-Dh2cgMIJ.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-DBZ0eK6D.js → cms-store-drafts-DOqjCS5l.js} +1 -1
- package/dist/client/assets/{collapsible-DaRxY8dD.js → collapsible-DMIxs55h.js} +1 -1
- package/dist/client/assets/{collection-detail-BKy6YpxD.js → collection-detail-BNTXyqsr.js} +1 -1
- package/dist/client/assets/{collection-display-button-DDs-fVtH.js → collection-display-button-DlPhjc6E.js} +1 -1
- package/dist/client/assets/{collection-search-Ji_27Bi5.js → collection-search-DFoNgd1T.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BjgrYQjR.js → collection-table-wrapper-OwJoF9HU.js} +1 -1
- package/dist/client/assets/{collection-tabs-BaAIKaN4.js → collection-tabs-DTr38V1c.js} +1 -1
- package/dist/client/assets/{combobox-DRpRWCQC.js → combobox-B8pIOucr.js} +1 -1
- package/dist/client/assets/{command-B7jjL5t_.js → command-8eo7blzl.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DwP-X6KV.js → companion-mcps-section-OBc1XSiN.js} +1 -1
- package/dist/client/assets/{config-BEwVyYgh.js → config-CZxXYayZ.js} +1 -1
- package/dist/client/assets/{connect-BznXeuBh.js → connect-BDnlsqF3.js} +1 -1
- package/dist/client/assets/{connect-layout-gSfDx1uw.js → connect-layout-f8wmYpiF.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DuLGNw3E.js → connect-source-dialog-BnoBKHvg.js} +1 -1
- package/dist/client/assets/{connection-BPIYy_H3.js → connection-B4VgNpkK.js} +1 -1
- package/dist/client/assets/{connection-card-By0LB3P3.js → connection-card-Cp7AJMDR.js} +1 -1
- package/dist/client/assets/{connection-detail-Dhu8wraq.js → connection-detail-BYR-qeWG.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C4GFwQ2z.js → connection-form-helpers-DqULERyx.js} +1 -1
- package/dist/client/assets/{connection-slug-Ch_wi6rN.js → connection-slug-CK9E8VRg.js} +1 -1
- package/dist/client/assets/{connections-B6aDUa3H.js → connections-D1yKPCTH.js} +1 -1
- package/dist/client/assets/{content-tab-D3jR5tEE.js → content-tab-D-PBLIve.js} +3 -3
- package/dist/client/assets/{context-BfZ0zud0.js → context-Ciehk0ao.js} +1 -1
- package/dist/client/assets/{context-menu-Cy3xsKiF.js → context-menu-SmukJNMU.js} +1 -1
- package/dist/client/assets/{context-shell-DzE9VmYd.js → context-shell-CO4fTNNJ.js} +3 -3
- package/dist/client/assets/{core.esm-Cqr0FhsT.js → core.esm-B_Pr2KZA.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BqBXNJjp.js → create-organization-dialog-8e7uLr8k.js} +1 -1
- package/dist/client/assets/{device-hint-D0PKUXfK.js → device-hint-_3UpNo1y.js} +1 -1
- package/dist/client/assets/{discover-CuMES_lv.js → discover-j-WmLzAr.js} +1 -1
- package/dist/client/assets/{domain-settings-DdO_JKig.js → domain-settings-nzh2Xqh2.js} +1 -1
- package/dist/client/assets/{drawer-DEBrmbLh.js → drawer-BiZQd3jF.js} +1 -1
- package/dist/client/assets/{editor-DABA4jRW.js → editor-B5BFg8L4.js} +1 -1
- package/dist/client/assets/{editor-classes-BxXnftil.js → editor-classes-DxfrzHp8.js} +1 -1
- package/dist/client/assets/{empty-state-y2HOF9fL.js → empty-state-CPhGFwFG.js} +1 -1
- package/dist/client/assets/{empty-state-JLp-0Ot0.js → empty-state-D5FGRI4e.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-B2KrY0mn.js → experiments-tab-choice-5NNTmJRW.js} +1 -1
- package/dist/client/assets/{extract-connection-data-OTtBFz40.js → extract-connection-data-lBAlP3pz.js} +1 -1
- package/dist/client/assets/{feature-gate-D548gPqm.js → feature-gate-Djob_jbU.js} +1 -1
- package/dist/client/assets/{feature-paywall-B2ECRUtY.js → feature-paywall-DWnzqDkt.js} +1 -1
- package/dist/client/assets/{file-explorer-DvIUDgnp.js → file-explorer-B7HqI107.js} +1 -1
- package/dist/client/assets/{file-preview-QvtQ9sFZ.js → file-preview-CVLvq53I.js} +1 -1
- package/dist/client/assets/{file-share-button-DwysRdf9.js → file-share-button-Ug-zwu4d.js} +1 -1
- package/dist/client/assets/{file-type-icon-BT2FK5D4.js → file-type-icon-BZTtX6EK.js} +1 -1
- package/dist/client/assets/{folder-icon-Met9dqTq.js → folder-icon-C2EzD8if.js} +1 -1
- package/dist/client/assets/{form-DbD00MVE.js → form-Bhgzwnyp.js} +1 -1
- package/dist/client/assets/{general-Bd0HlBpp.js → general-CPLHJuRp.js} +1 -1
- package/dist/client/assets/{github-icon-cCo3aev2.js → github-icon-Buu0H1v4.js} +1 -1
- package/dist/client/assets/{home-CnPWKbZI.js → home-BCYh-a3a.js} +1 -1
- package/dist/client/assets/{home-overview-DrsU8cKl.js → home-overview-DTtXcEkG.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-K8D7htGD.js → hosted-reconcile-BdwyWhOE.js} +1 -1
- package/dist/client/assets/{icon-button-jwnQI3ne.js → icon-button-Dls6AzVP.js} +1 -1
- package/dist/client/assets/{index-zkOXDA9t.js → index-0xCVweSM.js} +1 -1
- package/dist/client/assets/{index-CuVN4Aac.js → index-B3BrFVGB.js} +1 -1
- package/dist/client/assets/{index-B5_ugeYO.js → index-B4tnBHnb.js} +1 -1
- package/dist/client/assets/{index-C7Mti7OL.js → index-B6eHz5VS.js} +1 -1
- package/dist/client/assets/index-BJqMJFEL.js +4 -0
- package/dist/client/assets/{index-DwcKKa8f.js → index-BJrkqMqs.js} +1 -1
- package/dist/client/assets/{index-BrE_pa5_.js → index-C8i-vHCI.js} +1 -1
- package/dist/client/assets/{index-DU8NkptJ.js → index-CJKJ4WN3.js} +1 -1
- package/dist/client/assets/{index-Dqe8gjuB.js → index-CKuu5BgI.js} +1 -1
- package/dist/client/assets/{index-BFjarNZt.js → index-CMl-YIkn.js} +1 -1
- package/dist/client/assets/{index-7JVbNGhX.js → index-CQIKg7tc.js} +1 -1
- package/dist/client/assets/{index-C59L9F48.js → index-CtJa8hR9.js} +1 -1
- package/dist/client/assets/{index-KhB0zLZd.js → index-DAFka6tK.js} +1 -1
- package/dist/client/assets/{index-BDIGIIrk.js → index-DJy_S3Mn.js} +1 -1
- package/dist/client/assets/{index-BbbC2KAF.js → index-D_HCIUjf.js} +1 -1
- package/dist/client/assets/{index-B6JjeFQu.js → index-UxIaE43S.js} +1 -1
- package/dist/client/assets/{index-DIJ4i6l1.js → index-XdUWZF5g.js} +3 -3
- package/dist/client/assets/{index-redirect-CtwSztLi.js → index-redirect-ZoX0Nmet.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-tz8kMnh3.js → infiniteQueryObserver-DgQQHW6Y.js} +1 -1
- package/dist/client/assets/{infra-billing-CF7Nx5tW.js → infra-billing-CbpAOQ7f.js} +1 -1
- package/dist/client/assets/{input-DZ3UD8Tc.js → input-BBwM3ir1.js} +1 -1
- package/dist/client/assets/{input-DNY7YfN5.js → input-BneF5n5F.js} +3 -3
- package/dist/client/assets/{integration-icon-DBS0IIUZ.js → integration-icon-DpoZYM7e.js} +1 -1
- package/dist/client/assets/{jira-icon-DjXG4S53.js → jira-icon-CfXcnbRW.js} +1 -1
- package/dist/client/assets/{label-CE_9qjVi.js → label-CUqIqnOS.js} +1 -1
- package/dist/client/assets/{layout-BFpUPLwM.js → layout-CZKu8-AR.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DufciNkJ.js → legacy-admin-welcome-dialog-D12aat8e.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-B9awpgEd.js → legacy-agents-deep-C46PUrrS.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DeJi8kpi.js → legacy-main-redirect-si54JTxO.js} +1 -1
- package/dist/client/assets/library-bWgDO9u6.js +1 -0
- package/dist/client/assets/{library-tab-vwgQd5Km.js → library-tab-EiyuBjPa.js} +1 -1
- package/dist/client/assets/{login-BBfMw48d.js → login-D0eYUue3.js} +1 -1
- package/dist/client/assets/{markdown-B9ZXP-yI.js → markdown-A06Oe1_p.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-wdm200pr.js → mcp-app-renderer-Dkj1yLIG.js} +1 -1
- package/dist/client/assets/{mcp-oauth-De1bAphR.js → mcp-oauth-L4CbK4hz.js} +1 -1
- package/dist/client/assets/{mcp-oauth-YcJKxGgu.js → mcp-oauth-u5RBmpff.js} +1 -1
- package/dist/client/assets/{members-zJjusDEy.js → members-D2W9FUHb.js} +1 -1
- package/dist/client/assets/{memory-CmHFkNR_.js → memory-nZuh_3HW.js} +1 -1
- package/dist/client/assets/{mock-board-DSjXTehJ.js → mock-board-DkI2cfk-.js} +3 -3
- package/dist/client/assets/{monaco-editor-CKxrx3bb.js → monaco-editor-DoTBOc-e.js} +1 -1
- package/dist/client/assets/{monitoring-BweO8f9o.js → monitoring-DZ1uqyFT.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BLJYBeQS.js → monitoring-stats-row-Be_-YMn8.js} +1 -1
- package/dist/client/assets/{multi-select-BManzll9.js → multi-select-CzoYfyvg.js} +1 -1
- package/dist/client/assets/{mustache-C28Q9k19.js → mustache-BctGjQ5L.js} +1 -1
- package/dist/client/assets/{named-rule-view-B8TaXMqW.js → named-rule-view-DUsv8g0V.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CapD_z2K.js → new-project-dialog-151PED_m.js} +1 -1
- package/dist/client/assets/{oauth-callback-1dAm1mGK.js → oauth-callback-DrwI5ATg.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C4nlkpPG.js → oauth-callback-ai-provider-D9pLn0-_.js} +1 -1
- package/dist/client/assets/{oauth-consent-CA55TLKS.js → oauth-consent-o6k0sIQ6.js} +1 -1
- package/dist/client/assets/{onboarding-CydYT5k4.js → onboarding-BMQJZ4PX.js} +1 -1
- package/dist/client/assets/{openai-conversation-QjOxjJ9Z.js → openai-conversation-CWam_Ql8.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DnVqzg8N.js → optimistic-project-sidebar-views-Dx-3KOhR.js} +1 -1
- package/dist/client/assets/{order-monitor-day-bNWc2xxe.js → order-monitor-day-DGR3iDef.js} +1 -1
- package/dist/client/assets/{organization-choice-B6WjGm9l.js → organization-choice-1Lr2hM9B.js} +1 -1
- package/dist/client/assets/{orgs-Z0cs0ktw.js → orgs-CbmN-Uo3.js} +1 -1
- package/dist/client/assets/{own-accounts-section-B4lUvL8j.js → own-accounts-section-DPfUOm23.js} +1 -1
- package/dist/client/assets/{pair-OacOFJo3.js → pair-BCJ5sFP0.js} +1 -1
- package/dist/client/assets/{parse-sections-C4WdZFz6.js → parse-sections-DxG18Udv.js} +3 -3
- package/dist/client/assets/{plan-B5R54DUG.js → plan-BaYlHrHs.js} +1 -1
- package/dist/client/assets/{plan-ladder-Cw552rCe.js → plan-ladder-LKl9l3TA.js} +1 -1
- package/dist/client/assets/{plan-usage-card-BQQUJlLg.js → plan-usage-card-wDWYSVHD.js} +1 -1
- package/dist/client/assets/{popover-D5azhkxn.js → popover-DmqBIPKi.js} +1 -1
- package/dist/client/assets/{post-calendar-H3gLWQrA.js → post-calendar-C4TZhDJz.js} +1 -1
- package/dist/client/assets/{post-editor-DsfAB88f.js → post-editor-DGrj-qXP.js} +1 -1
- package/dist/client/assets/{preview-content-ABYTWtaZ.js → preview-content-8R1QUim7.js} +1 -1
- package/dist/client/assets/{preview-dialog-DY-dYyi4.js → preview-dialog-ZNHmoyI1.js} +1 -1
- package/dist/client/assets/{preview-panel-Di5XwQKi.js → preview-panel-DbX8A-HE.js} +1 -1
- package/dist/client/assets/{preview-tab-DNN5D1rF.js → preview-tab-DglGrCFS.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-RO5VZTY2.js → product-picker-dialog-B84p2GNz.js} +1 -1
- package/dist/client/assets/{profile-D1LUBdWE.js → profile-Bhqnq92W.js} +1 -1
- package/dist/client/assets/{project-app-view-CD95f-Ja.js → project-app-view-BH2u01TO.js} +1 -1
- package/dist/client/assets/{project-apps-CumaGNv9.js → project-apps-CTuZm-1a.js} +1 -1
- package/dist/client/assets/{project-icon-CapKL04Y.js → project-icon-BhWIi9DN.js} +1 -1
- package/dist/client/assets/{project-index-Dl_LNEuF.js → project-index-_-BCnGMR.js} +1 -1
- package/dist/client/assets/project-reports-yDx2KIN5.js +1 -0
- package/dist/client/assets/project-tasks-CZ24XPn7.js +1 -0
- package/dist/client/assets/{projects-CizIhWb4.js → projects-CbLcC2Cm.js} +1 -1
- package/dist/client/assets/{projects-empty-state-rX9MGuhO.js → projects-empty-state-DgeHjyWl.js} +1 -1
- package/dist/client/assets/{prompts-Bxu1gwra.js → prompts-CIAk1CWx.js} +1 -1
- package/dist/client/assets/{record-editor-BluW68E5.js → record-editor-Cqt0X6zj.js} +1 -1
- package/dist/client/assets/{redirect-editor-D_z4HgGi.js → redirect-editor-DrfUg_M2.js} +1 -1
- package/dist/client/assets/reports-BeqJdfY-.js +1 -0
- package/dist/client/assets/{reports-CdhkVMOp.js → reports-BqGiKAfm.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DiIXbBm-.js → reports-onboarding-LZjQ8G8T.js} +1 -1
- package/dist/client/assets/{reports-tab-TaW27Dib.js → reports-tab-B55dyiL7.js} +2 -2
- package/dist/client/assets/{repositories-BEIy4iov.js → repositories-0RznNRUX.js} +1 -1
- package/dist/client/assets/repositories-BoB8X409.js +1 -0
- package/dist/client/assets/{repository-binding-DnTIKvh_.js → repository-binding-Cfy_YQIZ.js} +1 -1
- package/dist/client/assets/{repository-picker-Dm4xl8L-.js → repository-picker-BKWo-jhF.js} +1 -1
- package/dist/client/assets/{require-capability-BXxAP3RL.js → require-capability-Bpnmr0un.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DhuiRYqz.js → required-auth-layout-CRKzQVpv.js} +1 -1
- package/dist/client/assets/{reset-password-B2i1JKOP.js → reset-password-DVKc7osA.js} +1 -1
- package/dist/client/assets/{resizable-CAylzP2b.js → resizable-w4diu4pE.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-uqUI1ibt.js → resolve-tab-icon-DY3vlmxg.js} +1 -1
- package/dist/client/assets/{review-settings-Dr0pk97x.js → review-settings-D7Ld59mb.js} +1 -1
- package/dist/client/assets/{role-color-Bhd8KoVS.js → role-color-DfOmE7Fu.js} +1 -1
- package/dist/client/assets/{roles-BIfyt_GY.js → roles-RQS02DUg.js} +1 -1
- package/dist/client/assets/route-59M5FlvK.js +1 -0
- package/dist/client/assets/route-B-HA2s4_.js +1 -0
- package/dist/client/assets/{route-rALNsp7W.js → route-BRvX0p-n.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-T_FHqShI.js → sandbox-lifecycle-context-D-PaTa6M.js} +1 -1
- package/dist/client/assets/{schema-B0qCyNGJ.js → schema-CJ9UcSNs.js} +1 -1
- package/dist/client/assets/{schema-D6loGo_O.js → schema-Dq7led26.js} +1 -1
- package/dist/client/assets/{scroll-area-BONvYSJN.js → scroll-area-PZSCT0ow.js} +1 -1
- package/dist/client/assets/{search-input-ZJ0TUPZ6.js → search-input-DO66exG7.js} +1 -1
- package/dist/client/assets/{search-toggle-D6en4lHd.js → search-toggle-DaBbNP1T.js} +1 -1
- package/dist/client/assets/{secret-picker-BD3pokVI.js → secret-picker-bljsK2mV.js} +1 -1
- package/dist/client/assets/{secrets-ZJiNCrVj.js → secrets-CBAb9cvk.js} +1 -1
- package/dist/client/assets/{section-array-field-BjOMaOyh.js → section-array-field-CPrkBgr3.js} +1 -1
- package/dist/client/assets/{sections-RdndL6R-.js → sections-T2vi-zI4.js} +1 -1
- package/dist/client/assets/{sections-editor-YQkpJmYe.js → sections-editor-DQwNUlLv.js} +1 -1
- package/dist/client/assets/{select-DOPxEiy0.js → select-BABowMoY.js} +1 -1
- package/dist/client/assets/{select-model-C8OsJu0P.js → select-model-CbEyJ33x.js} +1 -1
- package/dist/client/assets/{seo-editor-qGMzOY9m.js → seo-editor-C9V4Y_YB.js} +1 -1
- package/dist/client/assets/{separator-B6Wfr511.js → separator-CM0d_WPE.js} +1 -1
- package/dist/client/assets/settings-tab-DUqPlhAE.js +1 -0
- package/dist/client/assets/{sheet-O98X_91-.js → sheet-BSCF-nmk.js} +1 -1
- package/dist/client/assets/{shell-layout-BAK0t5W4.js → shell-layout-d2Ief2ja.js} +1 -1
- package/dist/client/assets/{site-draft-actions-_J98WPse.js → site-draft-actions-CH7jTGTc.js} +1 -1
- package/dist/client/assets/{site-draft-view-DiD0S10y.js → site-draft-view-CbKyFhEM.js} +1 -1
- package/dist/client/assets/site-editor-CX53l3C_.js +1 -0
- package/dist/client/assets/{site-editor-toast-DbTzFTFl.js → site-editor-toast-CluWI-yZ.js} +1 -1
- package/dist/client/assets/{skills-BcCFe-5m.js → skills-BOpgUaHZ.js} +1 -1
- package/dist/client/assets/{slider-Bh2E_axo.js → slider-QcqvUsSI.js} +1 -1
- package/dist/client/assets/{sortable.esm-DG7uouGH.js → sortable.esm-0yomt8g2.js} +1 -1
- package/dist/client/assets/{sso-QU_aZP2B.js → sso-CbSeZ9e5.js} +1 -1
- package/dist/client/assets/{suggestion-DU-baT9O.js → suggestion-C9bDFuOo.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DezxQHWn.js → super-agent-icon-DMm0_lmO.js} +1 -1
- package/dist/client/assets/{switch-DLFEYGM0.js → switch-CRe3xUPs.js} +1 -1
- package/dist/client/assets/{synced-repos-C0nMrxoG.js → synced-repos-D900mhEv.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DN2wyTv4.js → tab-icon-glyph-D5lXXFkj.js} +1 -1
- package/dist/client/assets/{table-B09bkaSv.js → table-C-Iqqanf.js} +1 -1
- package/dist/client/assets/{tabs-DeTALxBi.js → tabs-CPwYT_wy.js} +1 -1
- package/dist/client/assets/{task-board-95swTute.js → task-board-B-Jl-DnQ.js} +1 -1
- package/dist/client/assets/{task-route-CYLyBkUK.js → task-route-C-boE7jG.js} +1 -1
- package/dist/client/assets/{task-status-CYrsK5kS.js → task-status-Dg7JusRR.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Cm6WIlTm.js → taskboard-analytics-DwDfRDQC.js} +1 -1
- package/dist/client/assets/tasks-DMBPC4PI.js +1 -0
- package/dist/client/assets/{tasks-B__eknj6.js → tasks-ElocVpWd.js} +1 -1
- package/dist/client/assets/{textarea-jjFZrPcz.js → textarea-DSiKrnTK.js} +1 -1
- package/dist/client/assets/{thread-analytics-IYdfqMK_.js → thread-analytics-BtdCUFGw.js} +1 -1
- package/dist/client/assets/{thread-intent-BtmlqwRH.js → thread-intent-DnduoWYb.js} +1 -1
- package/dist/client/assets/{thread-route-DoQ3AePC.js → thread-route-D0P3i7B7.js} +1 -1
- package/dist/client/assets/{thread-route-B-VKd0Ce.js → thread-route-DSQLBJ4Y.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-kBMgJWAe.js → thread-sheet-body-BHjT7Rlx.js} +1 -1
- package/dist/client/assets/{time-range-picker-CqKQQJnw.js → time-range-picker-B0Xtja-D.js} +1 -1
- package/dist/client/assets/{toggle-group-BL47pqaq.js → toggle-group-CO1s8gR-.js} +1 -1
- package/dist/client/assets/{tool-namespace-qcytt9G1.js → tool-namespace-BskMFdfX.js} +1 -1
- package/dist/client/assets/{tool-set-selector-Jw58ZRph.js → tool-set-selector-DbHsII-W.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DjIWEs2B.js → toolbar-icon-button-DQHnJFhG.js} +1 -1
- package/dist/client/assets/{tooltip-BVSpbx-_.js → tooltip-C1oPRuFg.js} +1 -1
- package/dist/client/assets/{tooltipContext-BbDqXSlB.js → tooltipContext-Dk4Jh8sf.js} +1 -1
- package/dist/client/assets/{track-BqiZiu1D.js → track-DQNlgsAd.js} +1 -1
- package/dist/client/assets/{types-DGYfIFbD.js → types-sVhbGxrT.js} +1 -1
- package/dist/client/assets/{url-slug-Dz10RPtP.js → url-slug-kny4-Gd8.js} +1 -1
- package/dist/client/assets/{usage-stats-D5I4yIME.js → usage-stats-CkprzoQA.js} +1 -1
- package/dist/client/assets/{use-ai-providers-qcI9kSam.js → use-ai-providers-BmwnG2L7.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-D6gdtjxE.js → use-apply-named-rule-QQXumPyC.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-C56CHpt0.js +1 -0
- package/dist/client/assets/{use-automations-CE8iWCaz.js → use-automations-pGpYlQfd.js} +1 -1
- package/dist/client/assets/{use-autosave-D1oMLPfh.js → use-autosave-C1VLdEbv.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DSiCCdEB.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-D2kmyA5o.js → use-chat-layout-state-Ep7OkPup.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-B9K0jzm5.js → use-cms-publish-actions-Cls9mAWe.js} +1 -1
- package/dist/client/assets/{use-connect-companion-cF-nX84z.js → use-connect-companion-B0uthGiU.js} +1 -1
- package/dist/client/assets/{use-connection-BCwT2p8B.js → use-connection-DFsrW4Mv.js} +1 -1
- package/dist/client/assets/{use-content-sync-CLeJQt6-.js → use-content-sync-BYcD8LZk.js} +1 -1
- package/dist/client/assets/{use-copy-Bn5nWWQG.js → use-copy-9wHvlEmg.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CXg39XeJ.js → use-date-fns-locale-CfiWZhP7.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CCIK5NSm.js → use-debounced-autosave-CK8e7jku.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CALTE0-J.js → use-debounced-value-Cs49dczG.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CI_hVc5L.js → use-deco-credits-ChuCrYAR.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BGb9i2D9.js → use-decopilot-events-CR7NJgme.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BZfWavav.js → use-delete-connection-Dq2UKTpz.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CfaGw49b.js → use-deployment-admin-CALPlo_8.js} +1 -1
- package/dist/client/assets/{use-entitlements-HGoX64MA.js → use-entitlements-DzfUP8ON.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DhVINgsk.js → use-fast-preview-draft-url-B0ysxeQy.js} +1 -1
- package/dist/client/assets/{use-file-configs-DJ8uwfYI.js → use-file-configs-CfNCrD6y.js} +1 -1
- package/dist/client/assets/{use-id-selection-Byr-tWk-.js → use-id-selection-BeGsI2-X.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-D0cAFMUM.js → use-inbox-feed-HViitByF.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-KRVACoeF.js → use-infinite-scroll-DdKcODzJ.js} +1 -1
- package/dist/client/assets/{use-join-requests-CpB6cItZ.js → use-join-requests-Dg5vHh8i.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BExuHHIh.js → use-main-panel-tabs-DZH6Z-sf.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BAlx6pDX.js → use-mcp-auth-status-C13HkQ9w.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DfcqzMq1.js → use-mcp-client-B9_8tfCL.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BV72WbSD.js → use-mcp-prompts-NcFGfyZU.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-7PQ3NovP.js → use-mcp-tools-wrSWiD0P.js} +1 -1
- package/dist/client/assets/{use-mobile-CQ6V3YRN.js → use-mobile-DSmr8Fj3.js} +1 -1
- package/dist/client/assets/{use-move-blocks-JBQzX1My.js → use-move-blocks-gne4gzCh.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D5XHqsJq.js → use-navigate-to-agent-ycEqYJX7.js} +1 -1
- package/dist/client/assets/{use-org-fs-BqH5T3Sy.js → use-org-fs-C57fsXyq.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DN8-yp4r.js → use-org-repo-syncs-BcOvlKwo.js} +1 -1
- package/dist/client/assets/{use-org-sso-u9TOWNqG.js → use-org-sso-B5c0saDF.js} +1 -1
- package/dist/client/assets/{use-organization-settings-VtZHPkLh.js → use-organization-settings-B0lt5dXR.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-BBRyl28q.js +1 -0
- package/dist/client/assets/{use-project-scope-B83JUNc2.js → use-project-scope-C1eT4xwT.js} +1 -1
- package/dist/client/assets/{use-recent-apps-qkoPZRRH.js → use-recent-apps-CU27r377.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-LlEd-RbG.js → use-reports-diagnostic-QLTyI1c7.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-bTwWaKJH.js → use-sandbox-events-BNcBCK9X.js} +1 -1
- package/dist/client/assets/{use-secrets-BQOxylG3.js → use-secrets-Dh7bZZgD.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-StiVIbqe.js → use-section-preview-base-53RIdpth.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Bo_fV1ZI.js → use-sidebar-collapsed-XX5WdYs3.js} +1 -1
- package/dist/client/assets/{use-tags-BvVGefXP.js → use-tags-Cbxwh1yu.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BpE1TPch.js → use-task-board-analytics-BseFgQx7.js} +1 -1
- package/dist/client/assets/{use-task-board-events-rFqMtePj.js → use-task-board-events-CMb3Vjy2.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CLvlosI3.js → use-task-board-item-prs-2_-y1IH5.js} +1 -1
- package/dist/client/assets/{use-task-board-items-HgW8DVW2.js → use-task-board-items-CnG0LR-k.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DsxgB7IK.js → use-task-board-prompts-DschKVPr.js} +1 -1
- package/dist/client/assets/{use-task-metadata-bDql024r.js → use-task-metadata-KJjG2-5j.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DAMbPn4y.js → use-thread-outputs-B6Mbzgsq.js} +1 -1
- package/dist/client/assets/{use-voice-input-CQAqEi1v.js → use-voice-input-BVeAO01v.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BvhkDMwv.js +1 -0
- package/dist/client/assets/{useQueries-BIJ-tBOF.js → useQueries-COskgQPI.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CHeSvNyF.js +1 -0
- package/dist/client/assets/{users-9rByH5AA.js → users-D9U38Uiq.js} +1 -1
- package/dist/client/assets/{utils-DQFBRZPm.js → utils-C07I_8BL.js} +1 -1
- package/dist/client/assets/{variant-calendar-BwYXWcFz.js → variant-calendar-B1xF-pvj.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-ByMpLNRq.js → variant-matcher-override-O46bQvi2.js} +1 -1
- package/dist/client/assets/{view-header-v0F29KQ1.js → view-header-CB8g9i8I.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BaFxXna4.js → virtual-mcp-DkEy_7-s.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-yarYBhtI.js → watch-sse-pool-BUtg06cI.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-FtEM4M24.js +0 -1
- package/dist/client/assets/agent-deck-XPT7vuUL.js +0 -1
- package/dist/client/assets/agent-experiments-BX4Qxtn5.js +0 -1
- package/dist/client/assets/agent-library-Csjeb884.js +0 -1
- package/dist/client/assets/agent-library-file-Cb5y9Ot1.js +0 -1
- package/dist/client/assets/agent-overview-I8Oa7crw.js +0 -1
- package/dist/client/assets/agent-settings-D_5Nl5O6.js +0 -1
- package/dist/client/assets/agent-site-editor-code-V8zDZ0Sp.js +0 -2
- package/dist/client/assets/agent-site-editor-content-RSTA2mN_.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-v_JSJiV0.js +0 -1
- package/dist/client/assets/agent-view-B8D5kU0t.js +0 -1
- package/dist/client/assets/api-keys-CgJQdLm6.js +0 -1
- package/dist/client/assets/index-BS27oJqi.js +0 -4
- package/dist/client/assets/library-ABRgCoFW.js +0 -1
- package/dist/client/assets/project-reports-D23gm-T0.js +0 -1
- package/dist/client/assets/project-tasks-BrFIJeSm.js +0 -1
- package/dist/client/assets/reports-C31yRbSC.js +0 -1
- package/dist/client/assets/repositories-D8_di3b3.js +0 -1
- package/dist/client/assets/route-CH_5kxvW.js +0 -1
- package/dist/client/assets/route-DF0O5T7i.js +0 -1
- package/dist/client/assets/settings-tab-DQUNLW_P.js +0 -1
- package/dist/client/assets/site-editor-DO210YQD.js +0 -1
- package/dist/client/assets/tasks-BYvtx4H_.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CnM4deZ8.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-CJV-tfcs.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-Cwk8CqhY.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BPQl0e27.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BZJyWpJ1.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,f as u,au as p,j as s,aY as x,N as a}from"./index-
|
|
1
|
+
import{c as f,f as u,au as p,j as s,aY as x,N as a}from"./index-XdUWZF5g.js";import{C as j}from"./capability-load-error-BwSdaWc5.js";function d(){const t=f.c(19);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=u(o),{capabilities:l,isPrivileged:m,loading:g,error:c}=p();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(c){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("monitoring:view")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("members:manage")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}let n;return t[17]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[17]=r,t[18]=n):n=t[18],n}export{d as default};
|
package/dist/client/assets/{infiniteQueryObserver-tz8kMnh3.js → infiniteQueryObserver-DgQQHW6Y.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ey as g,ez as d,eA as v}from"./index-
|
|
1
|
+
import{ey as g,ez as d,eA as v}from"./index-XdUWZF5g.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,r=s.fetchMeta?.fetchMore?.direction,h=a&&r==="forward",o=c&&r==="forward",n=a&&r==="backward",f=c&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,s.data),hasPreviousPage:d(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as s,hW as de,b as Y,hX as ue,r as le,hY as xe,hZ as re,gv as T,gL as K,B as J,bC as V,a7 as pe}from"./index-DIJ4i6l1.js";import{i as he}from"./CreditCard01-DexMydMI.js";import{B as R}from"./badge-OxXf6NyW.js";import{M as je}from"./multi-select-BManzll9.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-DOPxEiy0.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-B09bkaSv.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-DHvizK6L.js";import{T as De}from"./Tooltip-BPkeeG1S.js";import{a as _e,A as Le}from"./AreaChart-KQm98sY2.js";import{c2 as Me}from"./CategoricalChart-CFhpDsVs.js";import{R as Re}from"./require-capability-BXxAP3RL.js";import"./checkbox-uRiFMDEw.js";import"./Minus-CzeqOX9y.js";import"./ChevronUp-CjVmbW8q.js";import"./command-B7jjL5t_.js";import"./index-Dqe8gjuB.js";import"./SearchMd-5BOhX0M5.js";import"./popover-D5azhkxn.js";import"./index-BdQq_4o_.js";import"./index-BDIGIIrk.js";import"./index-C7Mti7OL.js";import"./access-gate-BytJbO55.js";import"./capability-load-error-Bb_YsAjX.js";const Q=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),ne=["B","KB","MB","GB","TB","PB"];function oe(t){if(t<=0)return"0 B";const e=Math.min(ne.length-1,Math.floor(Math.log(t)/Math.log(1024))),n=t/1024**e;return`${n.toFixed(n>=100||e===0?0:1)} ${ne[e]}`}const X=50,$e="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",Fe=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function ce(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function ee(t){return ce(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function Ie(){const t=new Date;return Array.from({length:12},(e,n)=>{const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-n,1));return{value:l.toISOString().slice(0,10),label:l.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function Pe(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function ae(t){const e=k.c(30),{usage:n,metric:l,colorNum:o,formatValue:f,height:i}=t,a=`var(--chart-${o})`,d=`infra-billing-${l}`;let g;e[0]!==n?(g=n.map(Ae),e[0]=n,e[1]=g):g=e[1];const x=g;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b={left:0,right:4,top:8,bottom:0},e[2]=b):b=e[2];let r,p;e[3]!==a?(r=s.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:.25}),p=s.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:0}),e[3]=a,e[4]=r,e[5]=p):(r=e[4],p=e[5]);let h;e[6]!==d||e[7]!==r||e[8]!==p?(h=s.jsx("defs",{children:s.jsxs("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[r,p]})}),e[6]=d,e[7]=r,e[8]=p,e[9]=h):h=e[9];let u;e[10]!==f||e[11]!==i?(u=i>100&&s.jsxs(s.Fragment,{children:[s.jsx(ke,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Ue,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Ce,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:f,width:68})]}),e[10]=f,e[11]=i,e[12]=u):u=e[12];let B,v;e[13]===Symbol.for("react.memo_cache_sentinel")?(B={stroke:"var(--border)",strokeDasharray:"4 4"},v={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=B,e[14]=v):(B=e[13],v=e[14]);let j;e[15]!==f?(j=s.jsx(De,{cursor:B,contentStyle:v,formatter:C=>f(Number(C)||0)}),e[15]=f,e[16]=j):j=e[16];const y=`url(#${d})`;let N;e[17]!==a||e[18]!==l||e[19]!==y?(N=s.jsx(_e,{type:"linear",dataKey:l,stroke:a,strokeWidth:2,fill:y,dot:!1}),e[17]=a,e[18]=l,e[19]=y,e[20]=N):N=e[20];let m;e[21]!==x||e[22]!==N||e[23]!==h||e[24]!==u||e[25]!==j?(m=s.jsxs(Le,{data:x,margin:b,children:[h,u,j,N]}),e[21]=x,e[22]=N,e[23]=h,e[24]=u,e[25]=j,e[26]=m):m=e[26];let S;return e[27]!==i||e[28]!==m?(S=s.jsx(Me,{width:"100%",height:i,children:m}),e[27]=i,e[28]=m,e[29]=S):S=e[29],S}function Ae(t){return{...t,label:Pe(t.date)}}function Z(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=Y(),{sites:n,isLoading:l}=ue(),[o,f]=le.useState(null),i=Ie(),[a,d]=le.useState(i[0].value);let g;t[0]!==o||t[1]!==n?(g=o??n.slice(0,X),t[0]=o,t[1]=n,t[2]=g):g=t[2];const x=g,b=!o&&n.length>X,{data:r,isLoading:p}=xe(x,a),h=re();if(l){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(V,{className:"h-64 w-full"}),t[3]=c):c=t[3],c}if(n.length===0){let c;t[4]!==e?(c=e("settings.infraBilling.noSites"),t[4]=e,t[5]=c):c=t[5];let w;return t[6]!==c?(w=s.jsx(T,{className:"p-6 text-sm text-muted-foreground",children:c}),t[6]=c,t[7]=w):w=t[7],w}const u=r?.usage??[],B=r?.pageviewsAvailable??!1,v=!!r&&!r.usageUnavailable,j=(c,w)=>v?w(Z(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Z(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ze)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=Oe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const G=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(G.length>0?1:0)>1,W=Z(u,"pageviews"),se=W>0?Z(u,"requests")/W:0,me=B&&v&&W>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(qe),t[17]=n,t[18]=_):_=t[18];let L;t[19]!==e?(L=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=L):L=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==L?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:L,onValueChange:f}),t[21]=x,t[22]=_,t[23]=L,t[24]=P):P=t[24];let M;t[25]!==e?(M=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=M):M=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==M?(E=s.jsx(Se,{className:"w-48","aria-label":M,children:A}),t[28]=M,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let q;t[33]!==e||t[34]!==b?(q=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=q):q=t[35];let O;return t[36]!==r?.usageUnavailable||t[37]!==e?(O=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=O):O=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,q,O,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(K,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(R,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(K,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(K,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ye,{team:c,showSites:te},c.siteSlugs.join(","))),G.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:G.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function qe(t){return{label:t,value:t}}function Oe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ze(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ye(t){const e=k.c(13),{team:n,showSites:l}=t,o=Y(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(R,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ge,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ge(t){const e=k.c(40),{invoices:n}=t,l=Y();let o;e[0]!==n?(o=n.some(We),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(Ke,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function We(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function Ke(t){const e=k.c(14),{status:n}=t,l=Y(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(R,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(R,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(R,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(R,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function vt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Re,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{vt as default};
|
|
1
|
+
import{c as k,j as s,hW as de,b as Y,hX as ue,r as le,hY as xe,hZ as re,gv as T,gL as K,B as J,bC as V,a7 as pe}from"./index-XdUWZF5g.js";import{i as he}from"./CreditCard01-uW1Nq0L7.js";import{B as R}from"./badge-fJOJmdQG.js";import{M as je}from"./multi-select-CzoYfyvg.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-BABowMoY.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-C-Iqqanf.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-Bku6CBeN.js";import{T as De}from"./Tooltip-DzoIZZA-.js";import{a as _e,A as Le}from"./AreaChart-BEgOgZZj.js";import{c2 as Me}from"./CategoricalChart-CI96Ht0A.js";import{R as Re}from"./require-capability-Bpnmr0un.js";import"./checkbox-BYltfk17.js";import"./Minus-y3rEkH4O.js";import"./ChevronUp-RQuomTlc.js";import"./command-8eo7blzl.js";import"./index-CKuu5BgI.js";import"./SearchMd-CTCaP47C.js";import"./popover-DmqBIPKi.js";import"./index-BdQq_4o_.js";import"./index-DJy_S3Mn.js";import"./index-B6eHz5VS.js";import"./access-gate-B3-8eUAT.js";import"./capability-load-error-BwSdaWc5.js";const Q=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),ne=["B","KB","MB","GB","TB","PB"];function oe(t){if(t<=0)return"0 B";const e=Math.min(ne.length-1,Math.floor(Math.log(t)/Math.log(1024))),n=t/1024**e;return`${n.toFixed(n>=100||e===0?0:1)} ${ne[e]}`}const X=50,$e="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",Fe=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function ce(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function ee(t){return ce(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function Ie(){const t=new Date;return Array.from({length:12},(e,n)=>{const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-n,1));return{value:l.toISOString().slice(0,10),label:l.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function Pe(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function ae(t){const e=k.c(30),{usage:n,metric:l,colorNum:o,formatValue:f,height:i}=t,a=`var(--chart-${o})`,d=`infra-billing-${l}`;let g;e[0]!==n?(g=n.map(Ae),e[0]=n,e[1]=g):g=e[1];const x=g;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b={left:0,right:4,top:8,bottom:0},e[2]=b):b=e[2];let r,p;e[3]!==a?(r=s.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:.25}),p=s.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:0}),e[3]=a,e[4]=r,e[5]=p):(r=e[4],p=e[5]);let h;e[6]!==d||e[7]!==r||e[8]!==p?(h=s.jsx("defs",{children:s.jsxs("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[r,p]})}),e[6]=d,e[7]=r,e[8]=p,e[9]=h):h=e[9];let u;e[10]!==f||e[11]!==i?(u=i>100&&s.jsxs(s.Fragment,{children:[s.jsx(ke,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Ue,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Ce,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:f,width:68})]}),e[10]=f,e[11]=i,e[12]=u):u=e[12];let B,v;e[13]===Symbol.for("react.memo_cache_sentinel")?(B={stroke:"var(--border)",strokeDasharray:"4 4"},v={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=B,e[14]=v):(B=e[13],v=e[14]);let j;e[15]!==f?(j=s.jsx(De,{cursor:B,contentStyle:v,formatter:C=>f(Number(C)||0)}),e[15]=f,e[16]=j):j=e[16];const y=`url(#${d})`;let N;e[17]!==a||e[18]!==l||e[19]!==y?(N=s.jsx(_e,{type:"linear",dataKey:l,stroke:a,strokeWidth:2,fill:y,dot:!1}),e[17]=a,e[18]=l,e[19]=y,e[20]=N):N=e[20];let m;e[21]!==x||e[22]!==N||e[23]!==h||e[24]!==u||e[25]!==j?(m=s.jsxs(Le,{data:x,margin:b,children:[h,u,j,N]}),e[21]=x,e[22]=N,e[23]=h,e[24]=u,e[25]=j,e[26]=m):m=e[26];let S;return e[27]!==i||e[28]!==m?(S=s.jsx(Me,{width:"100%",height:i,children:m}),e[27]=i,e[28]=m,e[29]=S):S=e[29],S}function Ae(t){return{...t,label:Pe(t.date)}}function Z(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=Y(),{sites:n,isLoading:l}=ue(),[o,f]=le.useState(null),i=Ie(),[a,d]=le.useState(i[0].value);let g;t[0]!==o||t[1]!==n?(g=o??n.slice(0,X),t[0]=o,t[1]=n,t[2]=g):g=t[2];const x=g,b=!o&&n.length>X,{data:r,isLoading:p}=xe(x,a),h=re();if(l){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(V,{className:"h-64 w-full"}),t[3]=c):c=t[3],c}if(n.length===0){let c;t[4]!==e?(c=e("settings.infraBilling.noSites"),t[4]=e,t[5]=c):c=t[5];let w;return t[6]!==c?(w=s.jsx(T,{className:"p-6 text-sm text-muted-foreground",children:c}),t[6]=c,t[7]=w):w=t[7],w}const u=r?.usage??[],B=r?.pageviewsAvailable??!1,v=!!r&&!r.usageUnavailable,j=(c,w)=>v?w(Z(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Z(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ze)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=Oe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const G=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(G.length>0?1:0)>1,W=Z(u,"pageviews"),se=W>0?Z(u,"requests")/W:0,me=B&&v&&W>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(qe),t[17]=n,t[18]=_):_=t[18];let L;t[19]!==e?(L=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=L):L=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==L?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:L,onValueChange:f}),t[21]=x,t[22]=_,t[23]=L,t[24]=P):P=t[24];let M;t[25]!==e?(M=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=M):M=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==M?(E=s.jsx(Se,{className:"w-48","aria-label":M,children:A}),t[28]=M,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let q;t[33]!==e||t[34]!==b?(q=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=q):q=t[35];let O;return t[36]!==r?.usageUnavailable||t[37]!==e?(O=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=O):O=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,q,O,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(K,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(R,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(K,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(K,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ye,{team:c,showSites:te},c.siteSlugs.join(","))),G.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:G.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function qe(t){return{label:t,value:t}}function Oe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ze(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ye(t){const e=k.c(13),{team:n,showSites:l}=t,o=Y(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(R,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ge,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ge(t){const e=k.c(40),{invoices:n}=t,l=Y();let o;e[0]!==n?(o=n.some(We),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(Ke,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function We(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function Ke(t){const e=k.c(14),{status:n}=t,l=Y(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(R,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(R,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(R,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(R,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function vt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Re,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{vt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,r as C,b as G,j as h,t as E,a5 as ye,x as xe,aS as ke,w as we,B as be,v as Pe,D as Ce,q as le,a4 as ce,K as Y,E as Q,ga as ue,gb as re,gc as z,m as Se}from"./index-DIJ4i6l1.js";import{S as de,s as _e}from"./suggestion-DU-baT9O.js";import{K as Fe,t as De,A as Ie,p as B,L as ve,P as ne,O as je,h as Me,e as Le,Q as Re,o as Ae,l as Ee,F as Ne,s as Te,f as Qe}from"./usage-stats-D5I4yIME.js";import{b0 as Oe}from"./agent-icon-BA6h0wAH.js";import"./chat-context-CaBz0Fa_.js";import{m as Ue,i as $e,b as qe}from"./index-DU8NkptJ.js";import{u as me}from"./use-mcp-client-DfcqzMq1.js";import{a as Ke}from"./repository-binding-DnTIKvh_.js";import{g as se,s as fe}from"./tool-namespace-qcytt9G1.js";import{l as oe,g as pe}from"./use-mcp-prompts-BV72WbSD.js";import{f as ze,b as Be}from"./use-org-fs-BqH5T3Sy.js";async function He(t,e,r,s,i,o){if(!Ue(e)){E.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=qe(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):E.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){E.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),E.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,_)=>Je(d,b,_,(S,v)=>l.current(S,v)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const _=Array.from(F).filter(We);return _.length===0?!1:(b.preventDefault(),(async()=>{let S=d.state.selection.from;for(const v of _){const I=v.getAsFile();I&&(await l.current?.(I,S),S=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=j=>!j&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const _=r?.modelName??"";let S;e[19]!==i||e[20]!==_?(S=i("chat.uploader.accepts",{modelName:_}),e[19]=i,e[20]=_,e[21]=S):S=e[21];let v;e[22]!==S?(v=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:S}),e[22]=S,e[23]=v):v=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const L=r?.accepted;let D;e[25]!==L?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:L})]}),e[25]=L,e[26]=D):D=e[26];let a;e[27]!==v||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[v,D]})}),e[27]=v,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=Ke();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),_=C.useRef(null),S=C.useRef(!1),v=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==v?(I=["at-mention",c.id,v,u],e[9]=u,e[10]=c.id,e[11]=v,e[12]=I):I=e[12];const L=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let j;e[27]!==M||e[28]!==f?(j=[f,M],e[27]=M,e[28]=f,e[29]=j):j=e[29];const $=j;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:K}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(S.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,K,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,K,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),E.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const q=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,K=F();if(K==="categories"){if(!w.trim())return $;const R=w.toLowerCase(),A=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...A,...X]}if(K==="agents"){let R=g.filter(A=>A.status==="active"&&(!A.id||!re(A.id))&&A.id!==s);if(w.trim()){const A=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(A)||X.description?.toLowerCase().includes(A))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(A=>A.uri.toLowerCase().includes(R)||A.name?.toLowerCase().includes(R)||A.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)_.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=_.current;Q("chat_picker_closed",{picker:"@",outcome:S.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),_.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),E.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),E.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),E.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=ve(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),E.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),_=C.useRef(!1),S=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),_.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},v=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!je(t,u.pos,u.promptId)){E.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),E.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},L=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),j=f.trim().toLowerCase(),$=(x??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.title?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!j||y.uri.toLowerCase().includes(j)||y.name?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.id.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...q]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:S,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:_.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:v}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),_e.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ee,Ne]}function Ct({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=C.useRef(o),k=C.useRef(e),m=C.useRef(s),p=C.useRef(i),n=Le({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return C.useEffect(()=>{n?.setEditable(!r)},[n,r]),C.useEffect(()=>{g.current=o},[o]),C.useEffect(()=>{k.current=e},[e]),C.useEffect(()=>{m.current=s},[s]),C.useEffect(()=>{p.current=i},[i]),C.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Re.Provider,{value:{editor:n},children:c})}function St(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ae();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let _;e[3]!==k||e[4]!==b||e[5]!==F?(_=Se("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=_):_=e[6];let S;e[7]!==n||e[8]!==_?(S=h.jsx(Qe,{editor:n,className:_}),e[7]=n,e[8]=_,e[9]=S):S=e[9];const v=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==v?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:v,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=v,e[13]=I):I=e[13];const L=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==L?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:L,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=L,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==S?(f=h.jsxs(h.Fragment,{children:[S,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=S,e[28]=f):f=e[28],f}export{Ct as T,bt as U,St as a,He as p,Pt as u};
|
|
1
|
+
import{c as H,r as C,b as G,j as h,t as E,a5 as ye,x as xe,aS as ke,w as we,B as be,v as Pe,D as Ce,q as le,a4 as ce,K as Y,E as Q,ga as ue,gb as re,gc as z,m as Se}from"./index-XdUWZF5g.js";import{S as de,s as _e}from"./suggestion-C9bDFuOo.js";import{K as Fe,t as De,A as Ie,p as B,L as ve,P as ne,O as je,h as Me,e as Le,Q as Re,o as Ae,l as Ee,F as Ne,s as Te,f as Qe}from"./usage-stats-CkprzoQA.js";import{b0 as Oe}from"./agent-icon-DmYd33Zd.js";import"./chat-context-BwoQSegQ.js";import{m as Ue,i as $e,b as qe}from"./index-CJKJ4WN3.js";import{u as me}from"./use-mcp-client-B9_8tfCL.js";import{a as Ke}from"./repository-binding-Cfy_YQIZ.js";import{g as se,s as fe}from"./tool-namespace-BskMFdfX.js";import{l as oe,g as pe}from"./use-mcp-prompts-NcFGfyZU.js";import{f as ze,b as Be}from"./use-org-fs-C57fsXyq.js";async function He(t,e,r,s,i,o){if(!Ue(e)){E.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=qe(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):E.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){E.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),E.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,_)=>Je(d,b,_,(S,v)=>l.current(S,v)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const _=Array.from(F).filter(We);return _.length===0?!1:(b.preventDefault(),(async()=>{let S=d.state.selection.from;for(const v of _){const I=v.getAsFile();I&&(await l.current?.(I,S),S=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=j=>!j&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const _=r?.modelName??"";let S;e[19]!==i||e[20]!==_?(S=i("chat.uploader.accepts",{modelName:_}),e[19]=i,e[20]=_,e[21]=S):S=e[21];let v;e[22]!==S?(v=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:S}),e[22]=S,e[23]=v):v=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const L=r?.accepted;let D;e[25]!==L?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:L})]}),e[25]=L,e[26]=D):D=e[26];let a;e[27]!==v||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[v,D]})}),e[27]=v,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=Ke();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),_=C.useRef(null),S=C.useRef(!1),v=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==v?(I=["at-mention",c.id,v,u],e[9]=u,e[10]=c.id,e[11]=v,e[12]=I):I=e[12];const L=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let j;e[27]!==M||e[28]!==f?(j=[f,M],e[27]=M,e[28]=f,e[29]=j):j=e[29];const $=j;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:K}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(S.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,K,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,K,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),E.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const q=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,K=F();if(K==="categories"){if(!w.trim())return $;const R=w.toLowerCase(),A=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...A,...X]}if(K==="agents"){let R=g.filter(A=>A.status==="active"&&(!A.id||!re(A.id))&&A.id!==s);if(w.trim()){const A=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(A)||X.description?.toLowerCase().includes(A))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(A=>A.uri.toLowerCase().includes(R)||A.name?.toLowerCase().includes(R)||A.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)_.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=_.current;Q("chat_picker_closed",{picker:"@",outcome:S.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),_.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),E.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),E.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),E.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=ve(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),E.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),_=C.useRef(!1),S=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),_.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},v=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!je(t,u.pos,u.promptId)){E.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),E.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},L=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),j=f.trim().toLowerCase(),$=(x??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.title?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!j||y.uri.toLowerCase().includes(j)||y.name?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.id.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...q]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:S,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:_.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:v}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),_e.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ee,Ne]}function Ct({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=C.useRef(o),k=C.useRef(e),m=C.useRef(s),p=C.useRef(i),n=Le({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return C.useEffect(()=>{n?.setEditable(!r)},[n,r]),C.useEffect(()=>{g.current=o},[o]),C.useEffect(()=>{k.current=e},[e]),C.useEffect(()=>{m.current=s},[s]),C.useEffect(()=>{p.current=i},[i]),C.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Re.Provider,{value:{editor:n},children:c})}function St(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ae();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let _;e[3]!==k||e[4]!==b||e[5]!==F?(_=Se("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=_):_=e[6];let S;e[7]!==n||e[8]!==_?(S=h.jsx(Qe,{editor:n,className:_}),e[7]=n,e[8]=_,e[9]=S):S=e[9];const v=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==v?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:v,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=v,e[13]=I):I=e[13];const L=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==L?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:L,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=L,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==S?(f=h.jsxs(h.Fragment,{children:[S,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=S,e[28]=f):f=e[28],f}export{Ct as T,bt as U,St as a,He as p,Pt as u};
|