decocms 4.574.4 → 4.574.6
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-Y_OUILZ3.js → AlertCircle-Z2yXt9Zn.js} +1 -1
- package/dist/client/assets/{AreaChart-BS5obASA.js → AreaChart-CtoPb-kn.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CB426JlK.js → ArrowLeft-DmtwcpR0.js} +1 -1
- package/dist/client/assets/{ArrowUp-Cp2Ml2vf.js → ArrowUp-CDOTXGaw.js} +1 -1
- package/dist/client/assets/{CartesianChart-BwAnmURd.js → CartesianChart-4Zdqv1t7.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DsdW4Q1n.js → CategoricalChart-CRrc5Yvp.js} +1 -1
- package/dist/client/assets/{CheckCircle-CEPNyqYQ.js → CheckCircle-pHZBlc-p.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DClPI-qU.js → ChevronSelectorVertical-Dv_GvWVF.js} +1 -1
- package/dist/client/assets/{ChevronUp-Dsr9gtxU.js → ChevronUp-YodFBwdA.js} +1 -1
- package/dist/client/assets/{CreditCard01-D6m8lGLv.js → CreditCard01-Bi6klM3E.js} +1 -1
- package/dist/client/assets/{Globe04-DOLChRWZ.js → Globe04-t0c61UC_.js} +1 -1
- package/dist/client/assets/{Key01-CcC-DNfV.js → Key01-CQqUuxce.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Bu5CIeMz.js → LinkBroken01-BeftGZEe.js} +1 -1
- package/dist/client/assets/{Minus-cqn26HtL.js → Minus-h1imWrCU.js} +1 -1
- package/dist/client/assets/{Monitor01-BeH9O99T.js → Monitor01-BP1MLqOV.js} +1 -1
- package/dist/client/assets/{Play-o5_wqCmk.js → Play-Bztn-UXy.js} +1 -1
- package/dist/client/assets/{Plus-sBQQfz_j.js → Plus-B6BIQoyT.js} +1 -1
- package/dist/client/assets/ReferenceLine-BOui-oQz.js +1 -0
- package/dist/client/assets/{SearchMd-CBPTYB4H.js → SearchMd-C1NbEXbl.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-C88ytSQP.js → ShoppingBag01-F85BoT95.js} +1 -1
- package/dist/client/assets/{Sun-9dowJ77Q.js → Sun-Bajtz02G.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BXlvEeQ4.js → SwitchHorizontal01-Cxp6sIq8.js} +1 -1
- package/dist/client/assets/{Tool01-D9z5UHl1.js → Tool01-Dft57aaE.js} +1 -1
- package/dist/client/assets/{Tooltip-C_vqgUhw.js → Tooltip-BohI71un.js} +1 -1
- package/dist/client/assets/{Trash01-C3vHEhEb.js → Trash01-Cz5GGe-r.js} +1 -1
- package/dist/client/assets/{Upload01-RcrRUOsi.js → Upload01-BPIiEVcz.js} +1 -1
- package/dist/client/assets/{UserSquare-YXEd-AbI.js → UserSquare-DsxhjemU.js} +1 -1
- package/dist/client/assets/{Users01-CC5oUscX.js → Users01-C0NCFILW.js} +1 -1
- package/dist/client/assets/{XClose-UU_Qx1D3.js → XClose-BDJ0su5S.js} +1 -1
- package/dist/client/assets/{Zap-CO42SvK0.js → Zap-BlsXzETy.js} +1 -1
- package/dist/client/assets/{access-gate-DSwIamvO.js → access-gate-BG2wH67V.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-B5G2C2cs.js → add-connection-dialog-NNQllGaq.js} +1 -1
- package/dist/client/assets/agent-app-BMka9MUI.js +1 -0
- package/dist/client/assets/{agent-assets-BKVS3WSt.js → agent-assets-c6ujfoGk.js} +1 -1
- package/dist/client/assets/{agent-automation-Cl_Mzi6e.js → agent-automation-DTla3saU.js} +1 -1
- package/dist/client/assets/{agent-automations-C7N7FlhQ.js → agent-automations-hhw1aGHF.js} +1 -1
- package/dist/client/assets/{agent-calendar-6WYiR_eD.js → agent-calendar-CQi3F6f6.js} +1 -1
- package/dist/client/assets/{agent-capabilities-DLDLILDU.js → agent-capabilities-JhETLGSh.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CSCpdzg5.js → agent-connect-sources-CnXQBl89.js} +1 -1
- package/dist/client/assets/agent-deck-QvdjejXl.js +1 -0
- package/dist/client/assets/{agent-e2e-D94KjHQG.js → agent-e2e-361d98rX.js} +1 -1
- package/dist/client/assets/agent-experiments-rlz1ADb0.js +1 -0
- package/dist/client/assets/{agent-file-BoQHNMP7.js → agent-file-DqcdSVBg.js} +1 -1
- package/dist/client/assets/{agent-hosting-BNNjZNQs.js → agent-hosting-Bp9KOlM4.js} +1 -1
- package/dist/client/assets/{agent-icon-DYPj-9S0.js → agent-icon-B-HD6fZ6.js} +1 -1
- package/dist/client/assets/agent-library-BZ1wp8-K.js +1 -0
- package/dist/client/assets/agent-library-file-Bn_AyoE0.js +1 -0
- package/dist/client/assets/agent-overview-Dav0hDd0.js +1 -0
- package/dist/client/assets/{agent-releases-CFjOd9p0.js → agent-releases-gS41spFL.js} +2 -2
- package/dist/client/assets/agent-settings-B8qDutRX.js +1 -0
- package/dist/client/assets/{agent-site-editor-DS_SOZYh.js → agent-site-editor-DtHVwBYt.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-BvtBIUmQ.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CtpdXHNU.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-B6tOx0PE.js +1 -0
- package/dist/client/assets/agent-view-DmvG4sOx.js +1 -0
- package/dist/client/assets/{agent-view-guard-DQNO5wut.js → agent-view-guard-DMTSxNpp.js} +1 -1
- package/dist/client/assets/{ai-providers-CB35CJ-r.js → ai-providers-lhdjIWeE.js} +1 -1
- package/dist/client/assets/{alert-BfpOJ3QC.js → alert-vJuEegAa.js} +1 -1
- package/dist/client/assets/{analytics-sections-DqSJTMHS.js → analytics-sections-CPHCOv-Q.js} +1 -1
- package/dist/client/assets/api-keys-C4gUrS_R.js +1 -0
- package/dist/client/assets/{api-keys-C9RfpFWT.js → api-keys-FGAr3Ixb.js} +1 -1
- package/dist/client/assets/{app-editor-CHqAZ-8c.js → app-editor-C7G_pCIl.js} +1 -1
- package/dist/client/assets/{asset-utils-BIz1znAk.js → asset-utils-qWlnjOce.js} +1 -1
- package/dist/client/assets/{auth-CGSiE6Ch.js → auth-C72pifmQ.js} +1 -1
- package/dist/client/assets/{auth-catchall-pVvy0s4e.js → auth-catchall-DqJVLHYB.js} +1 -1
- package/dist/client/assets/{auth-entry-TEqh-7ub.js → auth-entry-BLmFfrQs.js} +1 -1
- package/dist/client/assets/{auth-split-layout-R8Bk7IQM.js → auth-split-layout-BjmjGax4.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-C3rmsbOR.js → authenticate-and-persist-oauth-1_AsBheZ.js} +1 -1
- package/dist/client/assets/{automation-list-row-_t0nrhFD.js → automation-list-row-DFwqBMRz.js} +1 -1
- package/dist/client/assets/{automation-runs-Cmm8lebF.js → automation-runs-DOPxhupt.js} +1 -1
- package/dist/client/assets/{automations-DByyLA6Z.js → automations-CUllUpxg.js} +1 -1
- package/dist/client/assets/{autosend-ChY4eKzU.js → autosend-30fu5HQu.js} +1 -1
- package/dist/client/assets/{badge-DXTq7juk.js → badge-CrJVRYHw.js} +1 -1
- package/dist/client/assets/{block-document-Dg43t_cN.js → block-document-Bnq3xScC.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CnFe6MxR.js → blocks-preview-workspace-context-BiadCMgo.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-7fd3YmUI.js → blocks-tab-states-Bbu1jkMK.js} +1 -1
- package/dist/client/assets/{blog-schema-DLE0PJtr.js → blog-schema-D-ePhEpV.js} +1 -1
- package/dist/client/assets/{buckets-DY1vce0F.js → buckets-w3upfMS3.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Df0z7skN.js → build-improve-prompt-doc-CuH6T89F.js} +1 -1
- package/dist/client/assets/{calendar-BGDDe831.js → calendar-BYBDutqu.js} +1 -1
- package/dist/client/assets/{capability-load-error-CNpbDyX4.js → capability-load-error-CNVdXa7W.js} +1 -1
- package/dist/client/assets/{category-editor-R_XIhJ9S.js → category-editor-Jxq9IJsQ.js} +1 -1
- package/dist/client/assets/chart-Ertq68n1.js +13 -0
- package/dist/client/assets/{chat-context--sx_tT3a.js → chat-context-BcV6gYhF.js} +1 -1
- package/dist/client/assets/{chat-draft-BAtgCZ3L.js → chat-draft-BrY0gqzZ.js} +1 -1
- package/dist/client/assets/{checkbox-CZnP9NXa.js → checkbox-BaLKYai0.js} +1 -1
- package/dist/client/assets/{choose-editor-DYxsXNSd.js → choose-editor-x03ZrdyO.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BN8nYAwK.js → cli-auth-success-DwaSUtEi.js} +1 -1
- package/dist/client/assets/{client-icons-Dnxm_fsV.js → client-icons-Czu9o_cT.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BZsD4zo_.js → cms-settings-editor-CwZZICOK.js} +1 -1
- package/dist/client/assets/cms-store-drafts-Bg90pcLZ.js +1 -0
- package/dist/client/assets/{collapsible-CAWr0Uf-.js → collapsible-BPdPKtul.js} +1 -1
- package/dist/client/assets/{collection-detail-DTMma4Re.js → collection-detail-Df00SHR2.js} +1 -1
- package/dist/client/assets/{collection-display-button-DPJAc88l.js → collection-display-button-DlMULQbO.js} +1 -1
- package/dist/client/assets/{collection-search-CXkzfc9r.js → collection-search-DdemjgwY.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Bl8czn0p.js → collection-table-wrapper-HjSP1aAg.js} +1 -1
- package/dist/client/assets/{collection-tabs-mu__SPg6.js → collection-tabs-C8TfXhRR.js} +1 -1
- package/dist/client/assets/{combobox-DU-BWR6s.js → combobox-DDeiHRTQ.js} +1 -1
- package/dist/client/assets/{command-CSPHvNyT.js → command-Dl4g7WlY.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DFcjkcx9.js → companion-mcps-section-CrJcxJ01.js} +1 -1
- package/dist/client/assets/{config-NmGpqpBn.js → config-BQmlKZOw.js} +1 -1
- package/dist/client/assets/{connect-C4yS4zXm.js → connect-iKfGtyjE.js} +3 -3
- package/dist/client/assets/{connect-layout-B6A4FqDB.js → connect-layout-Ca4PlxL8.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-BIqYqxRx.js → connect-source-dialog-Bpio3ZlB.js} +1 -1
- package/dist/client/assets/{connection-DgHvsn_X.js → connection-D4y4oTAw.js} +1 -1
- package/dist/client/assets/{connection-card-CrrO3ejB.js → connection-card-C6oCwBSb.js} +1 -1
- package/dist/client/assets/{connection-detail-BMMfs5vK.js → connection-detail-C78IcObY.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Dhos9NR1.js → connection-form-helpers-Ch_bIxMg.js} +1 -1
- package/dist/client/assets/{connection-slug-BY7_frFV.js → connection-slug-D2w-lvOo.js} +1 -1
- package/dist/client/assets/{connections-hcM7xUnc.js → connections-D2bRG8HF.js} +1 -1
- package/dist/client/assets/{content-tab-CAhVvpMk.js → content-tab-DqA5hBr6.js} +3 -3
- package/dist/client/assets/{context-C7PxWYJ-.js → context-CTPPfAnJ.js} +1 -1
- package/dist/client/assets/{context-menu-DipHTfvq.js → context-menu-B0ULADk0.js} +1 -1
- package/dist/client/assets/{context-shell-B-eLBue7.js → context-shell-DEfHYM72.js} +3 -3
- package/dist/client/assets/{core.esm-BcKT6bZa.js → core.esm-D4ArOV7q.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DtUha4Y4.js → create-organization-dialog-B9voF_fi.js} +1 -1
- package/dist/client/assets/{device-hint-BjjaBI1z.js → device-hint-DBgv32sD.js} +1 -1
- package/dist/client/assets/{discover-CQ7cMbu6.js → discover-BIGSt2L2.js} +1 -1
- package/dist/client/assets/{domain-settings-DF0qdE25.js → domain-settings-CbwZNYIj.js} +1 -1
- package/dist/client/assets/{drawer-2P1ke0v5.js → drawer-DRZpjX2B.js} +1 -1
- package/dist/client/assets/{editor-BXgkmrWx.js → editor-CjBl1zr5.js} +1 -1
- package/dist/client/assets/{editor-classes-CntBx7_T.js → editor-classes-DAtuT8up.js} +1 -1
- package/dist/client/assets/{empty-state-CC-oozy8.js → empty-state-BqrC11nz.js} +1 -1
- package/dist/client/assets/{empty-state-B1eFFEza.js → empty-state-Crflnmso.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-KOKZYAnv.js → experiments-tab-choice-j3vXfzci.js} +1 -1
- package/dist/client/assets/{extract-connection-data-sd_xyzvc.js → extract-connection-data-YYsEASE7.js} +1 -1
- package/dist/client/assets/{feature-gate-DcT_fryQ.js → feature-gate-QZ_z6RDd.js} +1 -1
- package/dist/client/assets/{feature-paywall-BCcQWh7w.js → feature-paywall-DexGzY7j.js} +1 -1
- package/dist/client/assets/{file-explorer-B_yB3TRi.js → file-explorer-DaDg636D.js} +1 -1
- package/dist/client/assets/{file-preview-BTZhj6pd.js → file-preview-BgpV8Rs8.js} +1 -1
- package/dist/client/assets/{file-share-button-YeFjmtWG.js → file-share-button-CQ_NDZe5.js} +1 -1
- package/dist/client/assets/{file-type-icon-DYMrEOTS.js → file-type-icon-C4zoPw2h.js} +1 -1
- package/dist/client/assets/{folder-icon-CvzICvU-.js → folder-icon-CLtDPrnC.js} +1 -1
- package/dist/client/assets/{form-BFewkYbP.js → form-BpW4Nz5f.js} +1 -1
- package/dist/client/assets/{general-B3PWCa84.js → general-DdUgXQyc.js} +1 -1
- package/dist/client/assets/{github-icon-C2RYJxpH.js → github-icon-DO13EYki.js} +1 -1
- package/dist/client/assets/{home-DLwvjHsh.js → home-DWm_f0pL.js} +1 -1
- package/dist/client/assets/{home-overview-9Le8NPiW.js → home-overview-Dn3saQLA.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-DBZyiSDy.js → hosted-reconcile-A7Ej86Gc.js} +1 -1
- package/dist/client/assets/{icon-button-D5d00wVb.js → icon-button-DyeuPqTn.js} +1 -1
- package/dist/client/assets/{index-xLbT0TA8.js → index-BGF4pdMz.js} +1 -1
- package/dist/client/assets/{index-B6nB1oBs.js → index-BGqe2U_K.js} +1 -1
- package/dist/client/assets/{index-CCbQRrnr.js → index-BTKHPb9w.js} +1 -1
- package/dist/client/assets/{index-B2c7ptSv.js → index-Bye8iqcR.js} +1 -1
- package/dist/client/assets/{index-h1XTCueR.js → index-CKRKKkhy.js} +39 -39
- package/dist/client/assets/{index-1J_VjTgY.js → index-CNtcV03t.js} +1 -1
- package/dist/client/assets/{index-CP9rTnyG.js → index-CWz1ABIf.js} +1 -1
- package/dist/client/assets/{index-BdqM0lZt.js → index-Cmr1n8ZO.js} +1 -1
- package/dist/client/assets/{index-BhagIWfP.js → index-D261XGFv.js} +1 -1
- package/dist/client/assets/{index-Bhb7tUT1.js → index-D607TwbE.js} +1 -1
- package/dist/client/assets/{index-DdpcXjHR.js → index-DEvPjYYw.js} +1 -1
- package/dist/client/assets/{index-B6WkvUi4.js → index-DYgg8IuP.js} +1 -1
- package/dist/client/assets/{index-6fq9tzTG.js → index-Do84G0dc.js} +1 -1
- package/dist/client/assets/{index-BXjAEYmT.js → index-DpV48dyQ.js} +1 -1
- package/dist/client/assets/{index-DAS_1BE2.js → index-IH_0cMOQ.js} +1 -1
- package/dist/client/assets/{index-vfReuDCU.js → index-eq_p15Xn.js} +1 -1
- package/dist/client/assets/{index-redirect-BKtHHV2b.js → index-redirect-F81amnGq.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CHwNipYb.js → infiniteQueryObserver-CrpwnCOA.js} +1 -1
- package/dist/client/assets/{infra-billing-kjaxJDtG.js → infra-billing-BNuruF70.js} +1 -1
- package/dist/client/assets/{input-DV98ow22.js → input-BPtP00E0.js} +1 -1
- package/dist/client/assets/{input-C_dtPix5.js → input-Bkw7TmSB.js} +4 -4
- package/dist/client/assets/{integration-icon-BX--0-gC.js → integration-icon-CAdT5h7O.js} +1 -1
- package/dist/client/assets/{jira-icon-ChmudZ3X.js → jira-icon-CYzVRf1r.js} +1 -1
- package/dist/client/assets/{label-7Sx3Bd-m.js → label-D1A-MkB6.js} +1 -1
- package/dist/client/assets/{layout-D0p7Bi_M.js → layout-CwTzmR6I.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-DP-92Dz3.js → legacy-admin-welcome-dialog-B8p-uk-x.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BUFBVFZA.js → legacy-agents-deep-Dq75WF4A.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BOVE_v_s.js → legacy-main-redirect-BdrV2LAH.js} +1 -1
- package/dist/client/assets/library-BHuCy6CR.js +1 -0
- package/dist/client/assets/{library-tab-BVLYgEIj.js → library-tab-2Ec1XXVv.js} +1 -1
- package/dist/client/assets/{login-DmfKqvWA.js → login-jHYED6i5.js} +1 -1
- package/dist/client/assets/{markdown-C5fMrlG3.js → markdown-D_6k4j9X.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BHQzXoMa.js → mcp-app-renderer-CeyVNowO.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BPKVuGj7.js → mcp-oauth-B3O9nDKu.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DdsjIog0.js → mcp-oauth-ZHUJ3MYC.js} +1 -1
- package/dist/client/assets/{members-BUgt2v5k.js → members-NHb8AJ1l.js} +1 -1
- package/dist/client/assets/{memory-CpIy9WxU.js → memory-BOc5Dy4o.js} +1 -1
- package/dist/client/assets/{mock-board-C8Scb14T.js → mock-board-DP5duOlN.js} +3 -3
- package/dist/client/assets/{monaco-editor-Dn3JUtr6.js → monaco-editor-yv-0JnAs.js} +1 -1
- package/dist/client/assets/{monitoring-CSmLuvXL.js → monitoring-CCVsovPz.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DnbBc-SM.js → monitoring-stats-row-ruouSI76.js} +1 -1
- package/dist/client/assets/{multi-select-D6qN_k_Q.js → multi-select-C6EVJG00.js} +1 -1
- package/dist/client/assets/{mustache-BGmZfDW9.js → mustache-gP9Geyyt.js} +1 -1
- package/dist/client/assets/{named-rule-view-TVPYWAXx.js → named-rule-view-Dps6g_VZ.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BU-wxed9.js → new-project-dialog-BFvMgUnC.js} +1 -1
- package/dist/client/assets/{oauth-callback-CanlAXdb.js → oauth-callback-DJ3w1Rin.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DOqtXeQE.js → oauth-callback-ai-provider-NPc9fJEl.js} +1 -1
- package/dist/client/assets/{oauth-consent-NZZACOUo.js → oauth-consent-CtLYzCLj.js} +1 -1
- package/dist/client/assets/{onboarding-rYSWsG3S.js → onboarding-CNUiI-Ka.js} +1 -1
- package/dist/client/assets/{openai-conversation-B6DkopEN.js → openai-conversation-B8Ap70r2.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CSzTTT3t.js → optimistic-project-sidebar-views-unGeWZP3.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BgrYiKjT.js → order-monitor-day-BzZ1HaG4.js} +1 -1
- package/dist/client/assets/{organization-choice-BlHBHiMN.js → organization-choice-D7iKzu7N.js} +1 -1
- package/dist/client/assets/{orgs-BE7PoniG.js → orgs-CdUyGlIK.js} +1 -1
- package/dist/client/assets/{own-accounts-section-gUye1hC4.js → own-accounts-section-CRt2T9wO.js} +1 -1
- package/dist/client/assets/{pair-DclsAW7v.js → pair-CSa78m7P.js} +8 -8
- package/dist/client/assets/{parse-sections-ki2R7CT5.js → parse-sections-CdMtNBIx.js} +3 -3
- package/dist/client/assets/{plan--Ofz0lEx.js → plan-XpLv6Qbq.js} +1 -1
- package/dist/client/assets/{plan-ladder-7wWPqUAB.js → plan-ladder-gFo9rR8a.js} +1 -1
- package/dist/client/assets/{plan-usage-card-CFXb8pkH.js → plan-usage-card-BzTcD8EI.js} +2 -2
- package/dist/client/assets/{popover-CseyhIeF.js → popover-0qW7h09S.js} +1 -1
- package/dist/client/assets/{post-calendar-CVMGU40q.js → post-calendar-D1BXVr7N.js} +1 -1
- package/dist/client/assets/{post-editor-br_fwHLt.js → post-editor-_cZh3cWz.js} +1 -1
- package/dist/client/assets/{preview-content-Bt1TcNSG.js → preview-content-BqrHF1wj.js} +1 -1
- package/dist/client/assets/{preview-dialog-QuWbcizM.js → preview-dialog-CqpEyFsq.js} +1 -1
- package/dist/client/assets/{preview-panel-BHVWqnx5.js → preview-panel-C5tPJpM6.js} +1 -1
- package/dist/client/assets/{preview-tab-tyxCKhqI.js → preview-tab-Dy_wGzDr.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-2HDu0aVm.js → product-picker-dialog-yKIGc_cl.js} +1 -1
- package/dist/client/assets/{profile-CyNnrVrl.js → profile-BpMGCGO_.js} +1 -1
- package/dist/client/assets/project-app-view-Co_XJBZq.js +1 -0
- package/dist/client/assets/{project-apps-BWReKPEd.js → project-apps--qKwXXT8.js} +1 -1
- package/dist/client/assets/{project-icon-DH181ON5.js → project-icon-BtRPU-j8.js} +1 -1
- package/dist/client/assets/{project-index-DJdMbgvn.js → project-index-Chivj6rt.js} +1 -1
- package/dist/client/assets/project-reports-DnIbmFrw.js +1 -0
- package/dist/client/assets/project-tasks-CsbBRwie.js +1 -0
- package/dist/client/assets/{projects-31i0PwsS.js → projects-CnGJloiS.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DFMppW3W.js → projects-empty-state-D1kAwLTc.js} +1 -1
- package/dist/client/assets/{prompts-Ba_ATRu9.js → prompts-DBat-V2P.js} +1 -1
- package/dist/client/assets/{record-editor-0Tx1_v8I.js → record-editor-CqpoIKrl.js} +1 -1
- package/dist/client/assets/{redirect-editor-BfchOu4t.js → redirect-editor-DYBKRDx8.js} +1 -1
- package/dist/client/assets/reports-B4F5qW5N.js +1 -0
- package/dist/client/assets/{reports-BE_n3WJk.js → reports-lB3p_3Ck.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CgJu__YK.js → reports-onboarding-BkpjFtbm.js} +1 -1
- package/dist/client/assets/{reports-tab-b2RlpEFn.js → reports-tab-CJkpNwb0.js} +2 -2
- package/dist/client/assets/repositories-B4bwhuz3.js +1 -0
- package/dist/client/assets/{repositories-tpe2RwmP.js → repositories-MoGyhRwg.js} +1 -1
- package/dist/client/assets/{repository-binding-DOWKMbHI.js → repository-binding-DKWvzuuk.js} +1 -1
- package/dist/client/assets/{repository-picker-TR2KC739.js → repository-picker-Dhn3NHTm.js} +1 -1
- package/dist/client/assets/{require-capability-BzHftBt7.js → require-capability-DKLNhHIj.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DIKOlnAp.js → required-auth-layout-BL6l_nPY.js} +1 -1
- package/dist/client/assets/{reset-password-Wb7HvzNe.js → reset-password-CtijvBGU.js} +1 -1
- package/dist/client/assets/{resizable-DAgqrae3.js → resizable-WkDiJ5Ul.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BjuG9u8a.js → resolve-tab-icon-DFxEX-7F.js} +1 -1
- package/dist/client/assets/{review-settings-BOPY1Icl.js → review-settings-me11ek6l.js} +1 -1
- package/dist/client/assets/{role-color-HJokgczM.js → role-color-BNLUyk2s.js} +1 -1
- package/dist/client/assets/{roles-DAHXDDc8.js → roles-C_AR1xIu.js} +1 -1
- package/dist/client/assets/{route-fmNu9Y2e.js → route-BSZoit3y.js} +1 -1
- package/dist/client/assets/route-BvjejX5K.js +1 -0
- package/dist/client/assets/{route-Bo8TfZ0r.js → route-DQ2lTTDG.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-B6qzzFbP.js → sandbox-lifecycle-context-C8UVq-Wp.js} +1 -1
- package/dist/client/assets/{schema-D2LQQw_P.js → schema-BJTnR2Le.js} +1 -1
- package/dist/client/assets/{schema-Cr_W3Ejo.js → schema-BTmzg7Ld.js} +1 -1
- package/dist/client/assets/{scroll-area-C6_sUrpC.js → scroll-area-Ca_o-PAh.js} +1 -1
- package/dist/client/assets/{search-input-CkfYzX_4.js → search-input-DGX3w2DW.js} +1 -1
- package/dist/client/assets/{search-toggle-SyoEzk7o.js → search-toggle-CPFw20yF.js} +1 -1
- package/dist/client/assets/{secret-picker-6gfx0PIf.js → secret-picker-B8b-bSLq.js} +1 -1
- package/dist/client/assets/{secrets-CYXbderS.js → secrets-NVzvwyCB.js} +1 -1
- package/dist/client/assets/{section-array-field-DzN0sOy6.js → section-array-field-D9EZm7te.js} +1 -1
- package/dist/client/assets/{sections-Cet2GaYS.js → sections-BCZiu_h-.js} +1 -1
- package/dist/client/assets/{sections-editor-Cyc1q4ur.js → sections-editor-Df5JZgQv.js} +1 -1
- package/dist/client/assets/{select-CaCnnAps.js → select-DATIRYDb.js} +1 -1
- package/dist/client/assets/{select-model-B236ukdj.js → select-model-BuOEXZj9.js} +1 -1
- package/dist/client/assets/{seo-editor-2r__edg_.js → seo-editor-BTso_VoY.js} +1 -1
- package/dist/client/assets/{separator-Cq1oEAV9.js → separator-CsPBdM0E.js} +1 -1
- package/dist/client/assets/settings-tab-CrfnOKL2.js +1 -0
- package/dist/client/assets/{sheet-CgfMkJkk.js → sheet-DRKR5KgN.js} +1 -1
- package/dist/client/assets/{shell-layout-CkS9YSvj.js → shell-layout-DRt13mXA.js} +1 -1
- package/dist/client/assets/{site-draft-actions-D7OJNSVO.js → site-draft-actions-oYlMNbrf.js} +1 -1
- package/dist/client/assets/{site-draft-view-CpE6eqx7.js → site-draft-view-CLSatWPU.js} +1 -1
- package/dist/client/assets/site-editor-Dfb2vhZz.js +1 -0
- package/dist/client/assets/{site-editor-toast-B1r9KPgS.js → site-editor-toast-0XU7Y0GR.js} +1 -1
- package/dist/client/assets/{skills-vzYrLk2q.js → skills-HAwfbQyv.js} +1 -1
- package/dist/client/assets/{slider-BUo3LEh2.js → slider-Bb_DUSF5.js} +1 -1
- package/dist/client/assets/{sortable.esm-DZUKX3g6.js → sortable.esm-k5kVkH_f.js} +1 -1
- package/dist/client/assets/{sso-Da3BBFEk.js → sso-045lvFnM.js} +1 -1
- package/dist/client/assets/suggestion-TtIjSuWm.js +2 -0
- package/dist/client/assets/{super-agent-icon-B9hbG__1.js → super-agent-icon-BAdU3K9C.js} +1 -1
- package/dist/client/assets/{switch-CSQfbdA0.js → switch-CGtMH0cs.js} +1 -1
- package/dist/client/assets/{synced-repos-ClWHK5mH.js → synced-repos-C1UQEc_s.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DGdRBBFj.js → tab-icon-glyph-DmWLL96D.js} +1 -1
- package/dist/client/assets/{table-Do5Q-ybe.js → table-CP5ZpuOn.js} +1 -1
- package/dist/client/assets/{tabs-UY_qfXkT.js → tabs-CM7eYd1-.js} +1 -1
- package/dist/client/assets/{task-board-DfdsuuL-.js → task-board-CEHbw-HB.js} +1 -1
- package/dist/client/assets/{task-route-DLXhcxnL.js → task-route-YlqI6EQn.js} +1 -1
- package/dist/client/assets/{task-status-ORmQL9VH.js → task-status-8JumPqPe.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-D5YETO-h.js → taskboard-analytics-C0tPqIbP.js} +1 -1
- package/dist/client/assets/{tasks-ZUsku0Sn.js → tasks-BbOaFUCT.js} +3 -3
- package/dist/client/assets/tasks-PXVLcaOG.js +1 -0
- package/dist/client/assets/{textarea-Bhlc1rhY.js → textarea-B5z1i1yo.js} +1 -1
- package/dist/client/assets/{thread-analytics-CUOQjb-2.js → thread-analytics-29ETy2gF.js} +1 -1
- package/dist/client/assets/{thread-intent-D_k-pawu.js → thread-intent-C5f4x8HR.js} +1 -1
- package/dist/client/assets/{thread-route-BP_rLVAA.js → thread-route-C5EBhGZW.js} +1 -1
- package/dist/client/assets/{thread-route-B8Y5c0rh.js → thread-route-qvx-QRGX.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DDIzp5Vi.js → thread-sheet-body-C78CiA0Q.js} +1 -1
- package/dist/client/assets/{time-range-picker-524ULj1s.js → time-range-picker-CI98_1VI.js} +1 -1
- package/dist/client/assets/{toggle-group-ViM2aXo0.js → toggle-group-DNmOFlvY.js} +1 -1
- package/dist/client/assets/{tool-namespace-CZhD1QHX.js → tool-namespace-CdMDwnyG.js} +1 -1
- package/dist/client/assets/{tool-set-selector-DDCkNBEl.js → tool-set-selector-CCmfVqOo.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BNq-FZTg.js → toolbar-icon-button-yvFRbVFX.js} +1 -1
- package/dist/client/assets/{tooltip-CKmg0cr7.js → tooltip-DqLSOR0B.js} +1 -1
- package/dist/client/assets/{tooltipContext-DJ-bu_AF.js → tooltipContext-DI8yz7s9.js} +1 -1
- package/dist/client/assets/{track-UTndtUbf.js → track-DMLplecI.js} +1 -1
- package/dist/client/assets/{types-BNoZpJhV.js → types-_v7MSh3d.js} +1 -1
- package/dist/client/assets/{url-slug-DXHd23Qm.js → url-slug-BqKEWCLV.js} +1 -1
- package/dist/client/assets/{usage-stats-Bd_jKdgA.js → usage-stats-E5ECB65r.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Dy2qKq-c.js → use-ai-providers-B5MplB8T.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-D5eT3JPq.js → use-apply-named-rule-DhsIK-LA.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-Ps4oLI6V.js +1 -0
- package/dist/client/assets/{use-automations-D6wZw1e0.js → use-automations-CPlUfZv9.js} +1 -1
- package/dist/client/assets/{use-autosave-Ch2NSpoO.js → use-autosave-DDQKDwbu.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-5R6HVIox.js +1 -0
- package/dist/client/assets/{use-chat-layout-state--45rT-ve.js → use-chat-layout-state-BZyLiD7N.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BoOF_-HD.js → use-cms-publish-actions-BQb6tvuX.js} +5 -5
- package/dist/client/assets/{use-connect-companion-CwwZpYTZ.js → use-connect-companion-DsM-DrsT.js} +1 -1
- package/dist/client/assets/use-connection-M0_fYShI.js +1 -0
- package/dist/client/assets/{use-content-sync-BqMl-SDk.js → use-content-sync-CuOsCesv.js} +1 -1
- package/dist/client/assets/{use-copy-BH9CGszX.js → use-copy-BYi5RB9Q.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Ce7nv8OR.js → use-date-fns-locale-DEWAo062.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-B_WhYc20.js → use-debounced-autosave-CEuJtNkY.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CvXfSmyn.js → use-debounced-value-CUgdofZa.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DWjWti03.js → use-deco-credits-BweuKV65.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CDPhmAAN.js → use-decopilot-events-CHq4c-8o.js} +1 -1
- package/dist/client/assets/{use-delete-connection-rLQ-bKYo.js → use-delete-connection-Df4rc-Hy.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DXfttv5t.js → use-deployment-admin-COQlRjGf.js} +1 -1
- package/dist/client/assets/{use-entitlements-BUjouq1Y.js → use-entitlements-BR6PBHkD.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Cnn72cB6.js → use-fast-preview-draft-url-2xfmXbR0.js} +1 -1
- package/dist/client/assets/{use-file-configs-B9qMFEGr.js → use-file-configs-GQbUwMNt.js} +1 -1
- package/dist/client/assets/{use-id-selection-Ddv_u3et.js → use-id-selection-D_y3v_mm.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-DW13LJyg.js → use-inbox-feed-K1HkM-7a.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CxakbxgS.js → use-infinite-scroll-L8p-62g5.js} +1 -1
- package/dist/client/assets/{use-join-requests-DmzhnEci.js → use-join-requests-tTwXVoOz.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-CtD-_Rc2.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-D545uZng.js → use-mcp-auth-status-C312AhwK.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CU2L24s0.js → use-mcp-client-jLMeLPCY.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DpK2reps.js → use-mcp-prompts-PFR4qZxs.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DosfGQ8x.js → use-mcp-tools-AWXXUhJC.js} +1 -1
- package/dist/client/assets/{use-mobile-8jTJxNX-.js → use-mobile-CmKaETHT.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DxdFuQ_c.js → use-move-blocks-BwKiYfdi.js} +1 -1
- package/dist/client/assets/use-navigate-to-agent-DDOQytOl.js +1 -0
- package/dist/client/assets/{use-org-fs-BtQY-xQ8.js → use-org-fs-CUar2npC.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BxYtN8jM.js → use-org-repo-syncs-C5r4eWSo.js} +1 -1
- package/dist/client/assets/{use-org-sso-BDjJrxCz.js → use-org-sso-Dx5phP3G.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C32cjrXo.js → use-organization-settings-575jlTUM.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-WoHGC8IW.js → use-project-native-view-presence-CIWx5h24.js} +1 -1
- package/dist/client/assets/{use-project-scope-CzvPVO9m.js → use-project-scope-Bdd5GvJ5.js} +1 -1
- package/dist/client/assets/{use-recent-apps-C70YR4qH.js → use-recent-apps-lCpmcN1B.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Bf3vjylM.js → use-reports-diagnostic-D86GCEHB.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-7-fLrTMJ.js → use-sandbox-events-ChI7RAcI.js} +1 -1
- package/dist/client/assets/{use-secrets-BlJhGBSI.js → use-secrets-Di4ih1I8.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BIuAmj_g.js → use-section-preview-base-8Sp8ARXH.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-DZVmbSWr.js → use-sidebar-collapsed-BHMJVmOJ.js} +1 -1
- package/dist/client/assets/{use-tags-Cnuk2dlj.js → use-tags-Ffk3m6Oe.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DwYWlRcM.js → use-task-board-analytics-B8eX_EWE.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BHvdCTkN.js → use-task-board-events-PWimvfKs.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CxV10EKA.js → use-task-board-item-prs-BuOog9iv.js} +1 -1
- package/dist/client/assets/{use-task-board-items-Cgj8_BfM.js → use-task-board-items-DCnWLom6.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BSuuBCmb.js → use-task-board-prompts-CiRl2Dvy.js} +1 -1
- package/dist/client/assets/{use-task-metadata-Djv9mzpW.js → use-task-metadata-DOYi0L2z.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-B82qJYY6.js → use-thread-outputs-PPD4OIBO.js} +1 -1
- package/dist/client/assets/{use-voice-input-DNj7vd9z.js → use-voice-input-BASINVo5.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CqC-fBlz.js +1 -0
- package/dist/client/assets/{useQueries-DFXnDWAo.js → useQueries-9gOptkIq.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B1dQI39R.js +1 -0
- package/dist/client/assets/{users-BT3VCaoh.js → users-BbhbHp0G.js} +1 -1
- package/dist/client/assets/{utils-CaKh8ISH.js → utils-TpQ8Iigq.js} +1 -1
- package/dist/client/assets/{variant-calendar-DQM6WWEC.js → variant-calendar-DrqTPb6_.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DJmy2Bwl.js → variant-matcher-override-1-YaEaJy.js} +1 -1
- package/dist/client/assets/{view-header-Da0TRSut.js → view-header-vefHYIMk.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BLhbBj3g.js → virtual-mcp-Dzej1F0H.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-lW9b9_hM.js → watch-sse-pool-p2IxgkAQ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +96 -96
- package/package.json +1 -1
- package/dist/client/assets/ReferenceLine-DgNwUxHe.js +0 -1
- package/dist/client/assets/agent-app-tZ7osM--.js +0 -1
- package/dist/client/assets/agent-deck-VahyZcsX.js +0 -1
- package/dist/client/assets/agent-experiments-BSEXxjSj.js +0 -1
- package/dist/client/assets/agent-library-CGg_KWMi.js +0 -1
- package/dist/client/assets/agent-library-file-lYvplSEG.js +0 -1
- package/dist/client/assets/agent-overview-BSloChkB.js +0 -1
- package/dist/client/assets/agent-settings-BcalFi59.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DASkKQTm.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BT3P7Fgk.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DPHEzCVq.js +0 -1
- package/dist/client/assets/agent-view-BHSLybsi.js +0 -1
- package/dist/client/assets/api-keys-1ftOr4jE.js +0 -1
- package/dist/client/assets/chart-vlFPDMF3.js +0 -13
- package/dist/client/assets/cms-store-drafts-usYzPqQo.js +0 -1
- package/dist/client/assets/library-J7TYx4da.js +0 -1
- package/dist/client/assets/project-app-view-unEGL71X.js +0 -1
- package/dist/client/assets/project-reports-5RjNN5dh.js +0 -1
- package/dist/client/assets/project-tasks-u14l25cn.js +0 -1
- package/dist/client/assets/reports-C-nEVqyN.js +0 -1
- package/dist/client/assets/repositories-Cr4YJltZ.js +0 -1
- package/dist/client/assets/route-CYWUUsoK.js +0 -1
- package/dist/client/assets/settings-tab-BFgPTT8v.js +0 -1
- package/dist/client/assets/site-editor-BliSF1HI.js +0 -1
- package/dist/client/assets/suggestion-CbiVJhLZ.js +0 -2
- package/dist/client/assets/tasks-DUX6R8fb.js +0 -1
- package/dist/client/assets/use-ask-in-chat-Ds_a2eir.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-B7yRGBZv.js +0 -1
- package/dist/client/assets/use-connection-CL03pbmH.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-CBKdXvqC.js +0 -1
- package/dist/client/assets/use-navigate-to-agent-B0fVaV8h.js +0 -1
- package/dist/client/assets/useInfiniteQuery-8WTGmXox.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B5sH0yes.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-CKRKKkhy.js";import{C as j}from"./capability-load-error-CNVdXa7W.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-CHwNipYb.js → infiniteQueryObserver-CrpwnCOA.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ey as g,ez as d,eA as v}from"./index-CKRKKkhy.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,hX as de,b as Y,hY as ue,r as le,hZ as xe,h_ as re,gw as T,gM as W,B as J,bC as V,a7 as pe}from"./index-h1XTCueR.js";import{i as he}from"./CreditCard01-D6m8lGLv.js";import{B as L}from"./badge-DXTq7juk.js";import{M as je}from"./multi-select-D6qN_k_Q.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-CaCnnAps.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-Do5Q-ybe.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-BwAnmURd.js";import{T as De}from"./Tooltip-C_vqgUhw.js";import{a as _e,A as Me}from"./AreaChart-BS5obASA.js";import{c2 as Re}from"./CategoricalChart-DsdW4Q1n.js";import{R as Le}from"./require-capability-BzHftBt7.js";import"./checkbox-CZnP9NXa.js";import"./Minus-cqn26HtL.js";import"./ChevronUp-Dsr9gtxU.js";import"./command-CSPHvNyT.js";import"./index-CP9rTnyG.js";import"./SearchMd-CBPTYB4H.js";import"./popover-CseyhIeF.js";import"./index-BdQq_4o_.js";import"./index-B6nB1oBs.js";import"./index-BXjAEYmT.js";import"./access-gate-DSwIamvO.js";import"./capability-load-error-CNpbDyX4.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(Me,{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(Re,{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,K=Z(u,"pageviews"),se=K>0?Z(u,"requests")/K:0,me=B&&v&&K>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 M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=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]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,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(W,{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(L,{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(W,{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(W,{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(L,{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(Ke),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(We,{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 Ke(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 We(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(L,{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(L,{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(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{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(Le,{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-CKRKKkhy.js";import{i as he}from"./CreditCard01-Bi6klM3E.js";import{B as R}from"./badge-CrJVRYHw.js";import{M as je}from"./multi-select-C6EVJG00.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-DATIRYDb.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-CP5ZpuOn.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-4Zdqv1t7.js";import{T as De}from"./Tooltip-BohI71un.js";import{a as _e,A as Le}from"./AreaChart-CtoPb-kn.js";import{c2 as Me}from"./CategoricalChart-CRrc5Yvp.js";import{R as Re}from"./require-capability-DKLNhHIj.js";import"./checkbox-BaLKYai0.js";import"./Minus-h1imWrCU.js";import"./ChevronUp-YodFBwdA.js";import"./command-Dl4g7WlY.js";import"./index-CWz1ABIf.js";import"./SearchMd-C1NbEXbl.js";import"./popover-0qW7h09S.js";import"./index-BdQq_4o_.js";import"./index-BGqe2U_K.js";import"./index-DpV48dyQ.js";import"./access-gate-BG2wH67V.js";import"./capability-load-error-CNVdXa7W.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 Z,j as h,t as A,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,g9 as ue,ga as re,gb as z,m as Se}from"./index-h1XTCueR.js";import{S as de,s as _e}from"./suggestion-CbiVJhLZ.js";import{l as Fe,n as De,o as Ie,k as B,p as je,P as ne,q as ve,c as Me,u as Re,r as Le,j as Ee,f as Ae,F as Ne,s as Te,b as Qe}from"./usage-stats-Bd_jKdgA.js";import{aZ as Oe}from"./agent-icon-DYPj-9S0.js";import"./chat-context--sx_tT3a.js";import{m as Ue,i as $e,b as qe}from"./index-DAS_1BE2.js";import{u as me}from"./use-mcp-client-CU2L24s0.js";import{a as Ke}from"./repository-binding-DOWKMbHI.js";import{g as se,s as fe}from"./tool-namespace-CZhD1QHX.js";import{l as oe,g as pe}from"./use-mcp-prompts-DpK2reps.js";import{f as ze,b as Be}from"./use-org-fs-BtQY-xQ8.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.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}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.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),A.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=Z(),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,j)=>l.current(S,j)),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 j of _){const I=j.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=Z(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&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 j;e[22]!==S?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:S}),e[22]=S,e[23]=j):j=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 R=r?.accepted;let D;e[25]!==R?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:R})]}),e[25]=R,e[26]=D):D=e[26];let a;e[27]!==j||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:[j,D]})}),e[27]=j,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 Ze=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=Z(),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),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const R=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 v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const $=v;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),A.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 L=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(L)||N.description?.toLowerCase().includes(L))).map(Ge),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(L)||te.name?.toLowerCase().includes(L)||te.description?.toLowerCase().includes(L)).map(et)})();return[...E,...X]}if(K==="agents"){let L=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();L=L.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return L.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 L=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(L)||E.name?.toLowerCase().includes(L)||E.description?.toLowerCase().includes(L))}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 G=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]!==G||e[46]!==q||e[47]!==ee||e[48]!==R?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:R,queryFn:G,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=G,e[46]=q,e[47]=ee,e[48]=R,e[49]=V):V=e[49],V};function Ge(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),A.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),A.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),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=Z(),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=je(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),A.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})},j=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(!ve(t,u.pos,u.promptId)){A.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),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},R=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)]),v=f.trim().toLowerCase(),$=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).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:R,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:j}),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}),Ae,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=Re({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(Le.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}=Ee();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 j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const R=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==R?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ze,{editor:n,virtualMcpId:R,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=R,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 Z,j as h,t as A,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,g8 as ue,g9 as re,ga as z,m as Se}from"./index-CKRKKkhy.js";import{S as de,s as _e}from"./suggestion-TtIjSuWm.js";import{l as Fe,n as De,o as Ie,k as B,p as je,P as ne,q as ve,c as Me,u as Re,r as Le,j as Ee,f as Ae,F as Ne,s as Te,b as Qe}from"./usage-stats-E5ECB65r.js";import{aZ as Oe}from"./agent-icon-B-HD6fZ6.js";import"./chat-context-BcV6gYhF.js";import{m as Ue,i as $e,b as qe}from"./index-IH_0cMOQ.js";import{u as me}from"./use-mcp-client-jLMeLPCY.js";import{a as Ke}from"./repository-binding-DKWvzuuk.js";import{g as se,s as fe}from"./tool-namespace-CdMDwnyG.js";import{l as oe,g as pe}from"./use-mcp-prompts-PFR4qZxs.js";import{f as ze,b as Be}from"./use-org-fs-CUar2npC.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.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}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.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),A.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=Z(),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,j)=>l.current(S,j)),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 j of _){const I=j.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=Z(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&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 j;e[22]!==S?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:S}),e[22]=S,e[23]=j):j=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 R=r?.accepted;let D;e[25]!==R?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:R})]}),e[25]=R,e[26]=D):D=e[26];let a;e[27]!==j||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:[j,D]})}),e[27]=j,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 Ze=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=Z(),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),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const R=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 v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const $=v;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),A.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 L=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(L)||N.description?.toLowerCase().includes(L))).map(Ge),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(L)||te.name?.toLowerCase().includes(L)||te.description?.toLowerCase().includes(L)).map(et)})();return[...E,...X]}if(K==="agents"){let L=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();L=L.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return L.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 L=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(L)||E.name?.toLowerCase().includes(L)||E.description?.toLowerCase().includes(L))}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 G=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]!==G||e[46]!==q||e[47]!==ee||e[48]!==R?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:R,queryFn:G,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=G,e[46]=q,e[47]=ee,e[48]=R,e[49]=V):V=e[49],V};function Ge(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),A.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),A.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),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=Z(),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=je(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),A.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})},j=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(!ve(t,u.pos,u.promptId)){A.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),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},R=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)]),v=f.trim().toLowerCase(),$=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).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:R,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:j}),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}),Ae,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=Re({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(Le.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}=Ee();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 j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const R=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==R?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ze,{editor:n,virtualMcpId:R,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=R,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};
|