decocms 4.617.0 → 4.617.1
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-DLcqA-Vc.js → AlertCircle-nXarAecb.js} +1 -1
- package/dist/client/assets/{AreaChart-DXgnBi8E.js → AreaChart-BJxz_So-.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BSf9qK0B.js → ArrowLeft-N-IiMo1k.js} +1 -1
- package/dist/client/assets/{ArrowRight-B9Ag2Jne.js → ArrowRight-DzVfBxFc.js} +1 -1
- package/dist/client/assets/{ArrowUp-Bvsnn071.js → ArrowUp-BsEQlZ83.js} +1 -1
- package/dist/client/assets/{BookOpen01-CIuv_Ae_.js → BookOpen01-DngoSBe2.js} +1 -1
- package/dist/client/assets/{CartesianChart-C897FgR0.js → CartesianChart-B9XdV1YW.js} +1 -1
- package/dist/client/assets/{CategoricalChart-D79Y9MaG.js → CategoricalChart-M5_Q5Qpe.js} +1 -1
- package/dist/client/assets/{CheckCircle-Abykuf2x.js → CheckCircle-Bq6DSfKJ.js} +1 -1
- package/dist/client/assets/{ChevronDown-CCC_w34y.js → ChevronDown-BFkEWrWP.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CnYm62on.js → ChevronSelectorVertical-8uqXpl9y.js} +1 -1
- package/dist/client/assets/{ChevronUp-BQixP1rC.js → ChevronUp-BxXPd6gy.js} +1 -1
- package/dist/client/assets/{CreditCard01-Dxwp5ygx.js → CreditCard01-B5IXYb-Z.js} +1 -1
- package/dist/client/assets/{Eye-1k4JclX4.js → Eye-CiqTNftC.js} +1 -1
- package/dist/client/assets/{File02-B2v4MuD_.js → File02-CDTkZyGh.js} +1 -1
- package/dist/client/assets/{Fingerprint04-5gPbq8CS.js → Fingerprint04-DsGQXBGG.js} +1 -1
- package/dist/client/assets/{Globe04-BwyaTy24.js → Globe04-2rIk2ZE7.js} +1 -1
- package/dist/client/assets/{Image01-BKGukLJT.js → Image01-iDCn2KsL.js} +1 -1
- package/dist/client/assets/{Key01-Cw7--3Qr.js → Key01-aS-OF-NX.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BPqF2E0g.js → LayoutLeft-DO710okO.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Dv6Ah6nj.js → LinkBroken01-3j3WjFKJ.js} +1 -1
- package/dist/client/assets/{MessageCircle01-Cs1j8fQA.js → MessageCircle01-BgScnTvI.js} +1 -1
- package/dist/client/assets/{Minus-B9t8Cj2h.js → Minus-ORSLCsYe.js} +1 -1
- package/dist/client/assets/{Monitor01-Dl91x6Dg.js → Monitor01-DCjnp3T8.js} +1 -1
- package/dist/client/assets/{Play-DUqcPhTA.js → Play-CeGpoppb.js} +1 -1
- package/dist/client/assets/{Plus-BvILRm8V.js → Plus-DeqXoEZn.js} +1 -1
- package/dist/client/assets/{ReferenceLine-Bm1JI_3I.js → ReferenceLine-D7WHhbup.js} +1 -1
- package/dist/client/assets/{SearchMd-LhFkHyRE.js → SearchMd-ByLo9V2Q.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DuqldR2K.js → ShoppingBag01-B2LtfM8e.js} +1 -1
- package/dist/client/assets/{Sun-B3Dv9qvC.js → Sun-BTMTAIZC.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-B8u3e1M_.js → SwitchHorizontal01-DhmPY7y8.js} +1 -1
- package/dist/client/assets/{Tool01-Dzvelx3t.js → Tool01-CKMYZZNJ.js} +1 -1
- package/dist/client/assets/{Tooltip-Co7VWF0S.js → Tooltip-BlKJNUKp.js} +1 -1
- package/dist/client/assets/{Trash01-B0KaHXIB.js → Trash01-CBkDicoz.js} +1 -1
- package/dist/client/assets/{Upload01-RL-4RPrA.js → Upload01-BXnKjWI8.js} +1 -1
- package/dist/client/assets/{UserCheck01-CRs22g1f.js → UserCheck01-D3MGK6m1.js} +1 -1
- package/dist/client/assets/{UserSquare-DKZc5_qG.js → UserSquare-C-RPfWWT.js} +1 -1
- package/dist/client/assets/{Users01-BATDjDHh.js → Users01-Z_DS65Id.js} +1 -1
- package/dist/client/assets/{XClose-9THWeCtY.js → XClose-Co1YIZ1O.js} +1 -1
- package/dist/client/assets/{Zap-DPXkdXwF.js → Zap-DJiCNZ9N.js} +1 -1
- package/dist/client/assets/{access-gate-CaVxuEUE.js → access-gate-CPB4rEHI.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BjNDlu0a.js → add-connection-dialog-oBWlPnLJ.js} +1 -1
- package/dist/client/assets/agent-app-ByXf8YTh.js +1 -0
- package/dist/client/assets/{agent-assets-CP2iSSZ5.js → agent-assets-CbpN91BF.js} +1 -1
- package/dist/client/assets/{agent-automation-BCzmRTkb.js → agent-automation-D84-hKF0.js} +1 -1
- package/dist/client/assets/{agent-automations-CZRlckLb.js → agent-automations-gPYx36pH.js} +1 -1
- package/dist/client/assets/{agent-blog-D0TcfYEK.js → agent-blog-D-L82y-6.js} +2 -2
- package/dist/client/assets/{agent-blog-post-MKt8mw1p.js → agent-blog-post-C7aQzV6u.js} +2 -2
- package/dist/client/assets/agent-business-case-Bf3YDYxB.js +1 -0
- package/dist/client/assets/{agent-calendar--BZHZLQm.js → agent-calendar-BYnGC5_X.js} +1 -1
- package/dist/client/assets/{agent-capabilities-B2Uj5YcZ.js → agent-capabilities-ZsLkx72i.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DWDTt-s6.js → agent-connect-sources-CCkknzB6.js} +1 -1
- package/dist/client/assets/agent-deck-DdzhCs4k.js +1 -0
- package/dist/client/assets/{agent-e2e-DkRrI893.js → agent-e2e-W2QTh-ET.js} +1 -1
- package/dist/client/assets/agent-experiments-BIMrwQMU.js +1 -0
- package/dist/client/assets/agent-file-C5dNy-Jy.js +1 -0
- package/dist/client/assets/{agent-hosting-g3Q-edug.js → agent-hosting-CjMSHSNz.js} +1 -1
- package/dist/client/assets/{agent-icon-BjjtuL9t.js → agent-icon-CQUJm7pn.js} +1 -1
- package/dist/client/assets/agent-library-0nTkA6-U.js +1 -0
- package/dist/client/assets/agent-library-file-Bg6UIE0e.js +1 -0
- package/dist/client/assets/agent-overview-4Jr0yHcm.js +1 -0
- package/dist/client/assets/{agent-releases-Dm8VzhwE.js → agent-releases-CcTx_FVf.js} +1 -1
- package/dist/client/assets/agent-settings-hNNp8G0O.js +1 -0
- package/dist/client/assets/agent-site-editor-code-Br8_APFX.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DtOYGrrX.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CiC8SR3I.js +1 -0
- package/dist/client/assets/{agent-site-editor-Ddfl5Qrp.js → agent-site-editor-uK54yMje.js} +1 -1
- package/dist/client/assets/agent-view-BzP94U9S.js +1 -0
- package/dist/client/assets/{agent-view-guard-Ch-xI5p5.js → agent-view-guard-Bb5gKZaK.js} +1 -1
- package/dist/client/assets/{ai-providers-_bNeXkPZ.js → ai-providers-Dj54fKXF.js} +1 -1
- package/dist/client/assets/{alert-CrGQnFDm.js → alert-B15Jmsoi.js} +1 -1
- package/dist/client/assets/{analytics-sections-BJ8aMDmG.js → analytics-sections-CMCQ7IB3.js} +1 -1
- package/dist/client/assets/api-keys-Ct82jmHH.js +1 -0
- package/dist/client/assets/{api-keys-C-w-AEKg.js → api-keys-DbjcwK10.js} +1 -1
- package/dist/client/assets/{app-editor-C4kKN5l6.js → app-editor-Cp4H-KpY.js} +1 -1
- package/dist/client/assets/{asset-utils-BwGT5GVr.js → asset-utils-DbQgOU9T.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bp7IT5gp.js → auth-catchall-CEKGKRgJ.js} +1 -1
- package/dist/client/assets/{auth-BjUi9SzO.js → auth-d2Oyf7G5.js} +1 -1
- package/dist/client/assets/{auth-entry-cz3T9g0E.js → auth-entry-Swhd6jEB.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BG3ENIWT.js → auth-split-layout-C_v96yLJ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CpCvRcyc.js → authenticate-and-persist-oauth-CimTl2Ws.js} +1 -1
- package/dist/client/assets/{automation-list-row-BNjpstJE.js → automation-list-row-D5sdkq6g.js} +1 -1
- package/dist/client/assets/{automation-runs-DZqA1IKX.js → automation-runs-D4N4PLh1.js} +1 -1
- package/dist/client/assets/{automations-BwLjym_V.js → automations-B4dDINpU.js} +1 -1
- package/dist/client/assets/{badge-BtHgi9Dj.js → badge-CZ31cI4R.js} +1 -1
- package/dist/client/assets/{block-document-nnyItFM1.js → block-document-BFRwdqyR.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DU-eF-HP.js → blocks-preview-workspace-context-DODlRo50.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BgPsbVCy.js → blocks-tab-states-BpoEhvax.js} +1 -1
- package/dist/client/assets/{blog-preview-url-DiKqUmAn.js → blog-preview-url-CsUnJsDW.js} +1 -1
- package/dist/client/assets/{blog-schema-DxMdD_q3.js → blog-schema-DXkrxVFU.js} +1 -1
- package/dist/client/assets/{blog-source-gate-COO06WDu.js → blog-source-gate-DMJVGDjK.js} +1 -1
- package/dist/client/assets/{blog-view-gate-DznPBvkc.js → blog-view-gate-BFQ9jRZd.js} +1 -1
- package/dist/client/assets/{buckets-Cg1NOVz1.js → buckets-l0qeC4UJ.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DRDsCZ_z.js → build-improve-prompt-doc-CSbAlImC.js} +1 -1
- package/dist/client/assets/{calendar-DvWhcvLy.js → calendar-CpalZurg.js} +1 -1
- package/dist/client/assets/{capability-load-error-qUGXI89g.js → capability-load-error-D6Yd-tZl.js} +1 -1
- package/dist/client/assets/{category-editor-zQHZXLZl.js → category-editor-CWLHJ8kr.js} +1 -1
- package/dist/client/assets/{category-tree-BNcD1qLS.js → category-tree-B0eqi12X.js} +1 -1
- package/dist/client/assets/{chart-en7CYt0p.js → chart-wtXAaMx6.js} +1 -1
- package/dist/client/assets/chat-context-B0oeTxO4.js +43 -0
- package/dist/client/assets/{chat-draft-BHgbcBBA.js → chat-draft-DkdDvFkA.js} +1 -1
- package/dist/client/assets/{checkbox-DjuOGnHn.js → checkbox-7VbZ9N4T.js} +1 -1
- package/dist/client/assets/{choose-editor-CkmkeC2o.js → choose-editor-C4WSArqS.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BjK-gOo7.js → cli-auth-success-bCLjq0Wn.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-Dxts04dN.js → cms-settings-editor-CeOqM-Tz.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-0DVxUrv4.js → cms-store-drafts-0ytlqwHa.js} +1 -1
- package/dist/client/assets/{collapsible-CdsqjV3Q.js → collapsible-B91ZliPK.js} +1 -1
- package/dist/client/assets/{collection-detail-YJTnEWNQ.js → collection-detail-yignyTzl.js} +1 -1
- package/dist/client/assets/{collection-display-button-DbvAJiF6.js → collection-display-button-BSxMbdHJ.js} +1 -1
- package/dist/client/assets/{collection-search-DrJXq4ci.js → collection-search-CN24xKsG.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DZ7Td_v5.js → collection-table-wrapper-DKPkb0MX.js} +1 -1
- package/dist/client/assets/{collection-tabs-C724UmTl.js → collection-tabs-x38XK_va.js} +1 -1
- package/dist/client/assets/{combobox-t82yeZiW.js → combobox-S9GcOOjA.js} +1 -1
- package/dist/client/assets/{command-CywiUm1_.js → command-CS8-MMXe.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-D_AZqJju.js → companion-mcps-section-BHp6swel.js} +1 -1
- package/dist/client/assets/{config-Bo_Pw9UW.js → config-D7s34zSg.js} +1 -1
- package/dist/client/assets/{connect-WARP1WEq.js → connect-BMXieGka.js} +1 -1
- package/dist/client/assets/{connect-key-B1V67JVw.js → connect-key-WRUt3WJD.js} +1 -1
- package/dist/client/assets/{connect-layout-CXOCkn5w.js → connect-layout-BDBEyeLu.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-CihWpkgb.js → connect-source-dialog-M0zQsIsM.js} +1 -1
- package/dist/client/assets/{connection-card-VUrpjnFR.js → connection-card-Bh44van-.js} +1 -1
- package/dist/client/assets/{connection-detail-COKfTXOD.js → connection-detail-DYw-FIRx.js} +1 -1
- package/dist/client/assets/{connection-DhmM25t6.js → connection-dtaZ2R2Z.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DyA1kgCO.js → connection-form-helpers-BmpB3nHJ.js} +1 -1
- package/dist/client/assets/{connection-slug-B8NnPDGD.js → connection-slug-CM5OAC0w.js} +1 -1
- package/dist/client/assets/{connections-Cn0UJJur.js → connections-BV1Tt5yf.js} +1 -1
- package/dist/client/assets/{content-changes-Azl0DGRu.js → content-changes-BqvU8nxI.js} +1 -1
- package/dist/client/assets/{content-tab-BE75eDB8.js → content-tab-2Ukt8Bjw.js} +3 -3
- package/dist/client/assets/{context-DfWZakzA.js → context-R7yf1myb.js} +1 -1
- package/dist/client/assets/{context-menu-DGMuE0Wx.js → context-menu-BzqhIJFU.js} +1 -1
- package/dist/client/assets/{context-shell-C2oF7Qbb.js → context-shell-D9SKQO8X.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-BD79lWYM.js → create-organization-dialog-CMu6MBOv.js} +1 -1
- package/dist/client/assets/{daily-pulse-JYouzDb1.js → daily-pulse-CECSColM.js} +1 -1
- package/dist/client/assets/{delete-copy-uGZgr1b8.js → delete-copy-CdTsjdFy.js} +1 -1
- package/dist/client/assets/{device-hint-CSgg6WGu.js → device-hint-Bi691T75.js} +1 -1
- package/dist/client/assets/{discover-CT2OmQu_.js → discover-DaAuE0HU.js} +1 -1
- package/dist/client/assets/{domain-settings-DiP6KyFA.js → domain-settings-BWKiMeOz.js} +1 -1
- package/dist/client/assets/{drawer-CjKXZo1A.js → drawer-Df0PsdcW.js} +1 -1
- package/dist/client/assets/{editor-classes-Dci-OTTD.js → editor-classes-3XlSjUJW.js} +1 -1
- package/dist/client/assets/{editor-cC61lBiD.js → editor-oetSt5CY.js} +1 -1
- package/dist/client/assets/{empty-state-BIdtkRNt.js → empty-state-D_cDZa2D.js} +1 -1
- package/dist/client/assets/{empty-state-CSRN6MuQ.js → empty-state-DfTzTTDV.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BOXgxWUo.js → experiments-tab-choice-DyIpWOp2.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DHH2hoWT.js → extract-connection-data-C14Hutz5.js} +1 -1
- package/dist/client/assets/{feature-gate-D9RAUNRH.js → feature-gate-Bk6B7-AI.js} +1 -1
- package/dist/client/assets/{feature-paywall-Bz5Z3aLH.js → feature-paywall-D2rJjBPG.js} +1 -1
- package/dist/client/assets/{file-explorer-CucOscXN.js → file-explorer-CZxf5khA.js} +1 -1
- package/dist/client/assets/{file-preview-1wnZ_cuW.js → file-preview-DsLpovK1.js} +1 -1
- package/dist/client/assets/{file-share-button-BPSq7NUQ.js → file-share-button-kHDgDXoR.js} +1 -1
- package/dist/client/assets/{file-type-icon-C6tkg31Z.js → file-type-icon-BNdCoWWK.js} +1 -1
- package/dist/client/assets/{folder-icon-C8jPheKD.js → folder-icon-CJiS8kmS.js} +1 -1
- package/dist/client/assets/{form-CQDdpHi1.js → form-BZLfY90C.js} +1 -1
- package/dist/client/assets/{frame-navigation-ByKJWd46.js → frame-navigation-lnLj55rY.js} +1 -1
- package/dist/client/assets/{gateway-client-DS76r1Hn.js → gateway-client-9BWuhC-L.js} +1 -1
- package/dist/client/assets/{general-BzdlYpbI.js → general-CHFdOs3G.js} +1 -1
- package/dist/client/assets/{github-icon-CRGJhZEW.js → github-icon-B85nM5LS.js} +1 -1
- package/dist/client/assets/{held-block-view-_NAzc4-t.js → held-block-view-BBf3CSZQ.js} +1 -1
- package/dist/client/assets/{home-DDSF8rZg.js → home-DTK12Za5.js} +1 -1
- package/dist/client/assets/{home-overview-n0-OUC5j.js → home-overview-R3x8OBzW.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-CfF1sBks.js → hosted-reconcile-Dx3ribj5.js} +1 -1
- package/dist/client/assets/{icon-button-D_nPapys.js → icon-button-BIqF8WL7.js} +1 -1
- package/dist/client/assets/{index-CaJAqu_T.js → index-5a-CfrRc.js} +1 -1
- package/dist/client/assets/{index-BsIeh4Cx.js → index-9-3lPVHR.js} +5 -5
- package/dist/client/assets/{index-BHrsFYmc.js → index-AmOebqRa.js} +1 -1
- package/dist/client/assets/{index-D5anuWoT.js → index-BEGlquX2.js} +1 -1
- package/dist/client/assets/{index-MPKk5o35.js → index-BNBn8c-4.js} +1 -1
- package/dist/client/assets/{index-BpbG2g7p.js → index-BORDDlKh.js} +1 -1
- package/dist/client/assets/{index-CN7fFBPr.js → index-BYbWpbEu.js} +1 -1
- package/dist/client/assets/{index-Bh1KH6V9.js → index-BidZBx-o.js} +1 -1
- package/dist/client/assets/{index-Ba_9vJbi.js → index-CIcMdpnN.js} +1 -1
- package/dist/client/assets/{index-CRELQxwJ.js → index-D-q_hYaY.js} +1 -1
- package/dist/client/assets/{index-oJ2Lq2a6.js → index-D57gk_Rn.js} +1 -1
- package/dist/client/assets/{index-CwmLzzd3.js → index-DHZbaZO-.js} +1 -1
- package/dist/client/assets/{index-CJrWKUIX.js → index-DNDV1MTi.js} +1 -1
- package/dist/client/assets/{index-DGdPUWQG.js → index-D_3uTGkP.js} +1 -1
- package/dist/client/assets/{index-B3boqtpT.js → index-GGJ8Dg9d.js} +1 -1
- package/dist/client/assets/{index-DBEEj-vf.js → index-Xop8c73V.js} +1 -1
- package/dist/client/assets/{index-Dsd0_C0j.js → index-fADGRqYV.js} +1 -1
- package/dist/client/assets/{index-redirect-DKOxwLwx.js → index-redirect-BkOo4TAr.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-miJ0qd3O.js → infiniteQueryObserver-BaEljL6Z.js} +1 -1
- package/dist/client/assets/{infra-billing-DfQFVjyV.js → infra-billing-7S1K2UGm.js} +1 -1
- package/dist/client/assets/{input-hFWCgmwb.js → input-BGoAG4KF.js} +1 -1
- package/dist/client/assets/{input-Cibdd1Bl.js → input-C22bU19l.js} +3 -3
- package/dist/client/assets/{integration-icon-BSOeiN0V.js → integration-icon-BwhIZzBR.js} +1 -1
- package/dist/client/assets/{item-actions-BjKd3FRP.js → item-actions-_1Ha8t5D.js} +1 -1
- package/dist/client/assets/{jira-icon-WTQXxflI.js → jira-icon-CzIXUGo5.js} +1 -1
- package/dist/client/assets/{label-CBW7L69I.js → label-DnYqMXS4.js} +1 -1
- package/dist/client/assets/{layout-BlesHAZ1.js → layout-5dyEeHKT.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-RwxXOqrU.js → legacy-admin-welcome-dialog-C8K0OSSs.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CtuBViyN.js → legacy-agents-deep-Dw4FgMbp.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DKohh52R.js → legacy-main-redirect-CkKAwjwh.js} +1 -1
- package/dist/client/assets/library-j9lI3BZh.js +1 -0
- package/dist/client/assets/{library-tab-BsMvTm1T.js → library-tab-CZm_mwf7.js} +1 -1
- package/dist/client/assets/{login-CgmVi49N.js → login-B5cXu7h8.js} +1 -1
- package/dist/client/assets/{markdown-DvPFu_gp.js → markdown-Da1wbxw_.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-seklbs59.js → mcp-app-renderer-D73ORXUU.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DgE6VdJT.js → mcp-oauth-U_6BFrnl.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Cw4-dvxH.js → mcp-oauth-peDPtK15.js} +1 -1
- package/dist/client/assets/{members-DdCrInaP.js → members-C5b43CXx.js} +1 -1
- package/dist/client/assets/{memory-CRmXOeBE.js → memory-CCEFkD8S.js} +1 -1
- package/dist/client/assets/{mock-board-BV0aUocv.js → mock-board-3_I8yc4H.js} +3 -3
- package/dist/client/assets/{monaco-editor-Dhyw1ohX.js → monaco-editor-DLopDzuz.js} +1 -1
- package/dist/client/assets/{monitoring-Cg3Rxytu.js → monitoring-e0_jyH1M.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DDuZv4oU.js → monitoring-stats-row-WCagmKnc.js} +1 -1
- package/dist/client/assets/{multi-select-DHaljr4C.js → multi-select-BpgndFUk.js} +1 -1
- package/dist/client/assets/{mustache-v3ZFSqS-.js → mustache-BMR_xQGK.js} +1 -1
- package/dist/client/assets/{named-rule-step-dkVeuHXn.js → named-rule-step-CMNkevoh.js} +1 -1
- package/dist/client/assets/{named-rule-view-CfaxirGC.js → named-rule-view-Behm4ILp.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DX6rZ2cz.js → new-project-dialog-CMlH4dO5.js} +1 -1
- package/dist/client/assets/{new-project-store-DtdGtBjZ.js → new-project-store-BzV0-Yza.js} +1 -1
- package/dist/client/assets/{oauth-callback-CLS08uxu.js → oauth-callback-BCj6L3hX.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-bNsVOLdH.js → oauth-callback-ai-provider-CUboqwOn.js} +1 -1
- package/dist/client/assets/{oauth-consent-CM3gKmya.js → oauth-consent-R4rBxe83.js} +1 -1
- package/dist/client/assets/{onboarding-BZmXPOyd.js → onboarding-Pg80RsLB.js} +1 -1
- package/dist/client/assets/{openai-conversation-DTZ5Z_HK.js → openai-conversation-Bs458EiN.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-6-EM8OX8.js → optimistic-project-sidebar-views-1DMudTD6.js} +1 -1
- package/dist/client/assets/{order-monitor-day-KHCikvDv.js → order-monitor-day-DrrlmkgD.js} +1 -1
- package/dist/client/assets/{organization-choice-BWCrFxGF.js → organization-choice-C1qpFV5M.js} +1 -1
- package/dist/client/assets/{orgs-lLBDt22T.js → orgs-BApvfcuj.js} +1 -1
- package/dist/client/assets/{own-accounts-section-CaSAEb7Y.js → own-accounts-section-BoNagZ2_.js} +1 -1
- package/dist/client/assets/{pair-BAbQ-x4Q.js → pair-CIh0e9M0.js} +1 -1
- package/dist/client/assets/{parse-sections-CKHDLrWI.js → parse-sections-B6YMSOT2.js} +2 -2
- package/dist/client/assets/plan-DK_HY9DP.js +1 -0
- package/dist/client/assets/{plan-ladder-BLK6ReJp.js → plan-ladder-Ck9NoEER.js} +1 -1
- package/dist/client/assets/{plan-page-DQcOvDA2.js → plan-page-CnOdUjYG.js} +1 -1
- package/dist/client/assets/{plan-usage-card-BPWHUo4J.js → plan-usage-card-C6aa97Hr.js} +1 -1
- package/dist/client/assets/{popover-Gt1AIK6d.js → popover-BTLt0H-G.js} +1 -1
- package/dist/client/assets/{post-calendar-DLDK1vFH.js → post-calendar-CuUHpR_b.js} +1 -1
- package/dist/client/assets/{post-editor-CNyc33jM.js → post-editor-Dioa9z0g.js} +1 -1
- package/dist/client/assets/{preview-content-BJvMrYUN.js → preview-content-BafUaetV.js} +1 -1
- package/dist/client/assets/{preview-dialog-MqrPwyTk.js → preview-dialog-erRRUYmu.js} +1 -1
- package/dist/client/assets/{preview-panel-pXiIEUoI.js → preview-panel-CsnZOplE.js} +1 -1
- package/dist/client/assets/{preview-tab-BGKCgMeF.js → preview-tab-DbwofB-n.js} +3 -3
- package/dist/client/assets/{primitives-C4yMpgfh.js → primitives-CWtNZI2j.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-DnHdeIrw.js → product-picker-dialog-CigCUi6H.js} +1 -1
- package/dist/client/assets/{profile-BYqoI30T.js → profile-DQb7h2FD.js} +1 -1
- package/dist/client/assets/{project-app-view-kNeRUgF1.js → project-app-view-Yow5Y2no.js} +1 -1
- package/dist/client/assets/{project-apps-cGCkc8Ax.js → project-apps-BJR4MiaE.js} +1 -1
- package/dist/client/assets/{project-icon-CXKZsp_F.js → project-icon-RS8AC-hK.js} +1 -1
- package/dist/client/assets/{project-index-C--rpXOV.js → project-index-Ca_NV5G3.js} +1 -1
- package/dist/client/assets/project-reports-DLxWIyNh.js +1 -0
- package/dist/client/assets/project-tasks-CnEigiL_.js +1 -0
- package/dist/client/assets/{projects-BnaJss-v.js → projects-B2V5EZiW.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CrBRuchN.js → projects-empty-state-BcSOGhl8.js} +1 -1
- package/dist/client/assets/{prompts-CQqQeup0.js → prompts-VX1oS1Nn.js} +1 -1
- package/dist/client/assets/record-editor-CjYniOQg.js +1 -0
- package/dist/client/assets/{redirect-editor-B6pXHp_N.js → redirect-editor-BJ63dc62.js} +1 -1
- package/dist/client/assets/{reports-BpEvTI00.js → reports-Cp2T2k_S.js} +1 -1
- package/dist/client/assets/reports-CtSD_Rbe.js +1 -0
- package/dist/client/assets/{reports-onboarding-kezZu8mx.js → reports-onboarding-CIuukpzj.js} +1 -1
- package/dist/client/assets/{reports-tab-CI16sdaV.js → reports-tab-TUnqqbuC.js} +2 -2
- package/dist/client/assets/{repositories-BQrA_Dt8.js → repositories-9BjiS2Fm.js} +1 -1
- package/dist/client/assets/repositories-B2ESoPSZ.js +1 -0
- package/dist/client/assets/{repository-binding-Coty9GKk.js → repository-binding-CZaVrhy2.js} +1 -1
- package/dist/client/assets/{repository-picker-BTFXh-Or.js → repository-picker-5MVJnuhm.js} +1 -1
- package/dist/client/assets/{require-capability-B75Gfza_.js → require-capability-DQyI50C8.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C_6SEQQV.js → required-auth-layout-c-SkQiMK.js} +1 -1
- package/dist/client/assets/{reset-password-wMcNb9Do.js → reset-password-CBs_LZ9p.js} +1 -1
- package/dist/client/assets/{resizable-Cbb3qdAX.js → resizable-aeXjBfZC.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DAtBYAEl.js → resolve-tab-icon-wSFXAgE3.js} +1 -1
- package/dist/client/assets/{review-settings-BLjNzHem.js → review-settings-Ds5PuWbT.js} +1 -1
- package/dist/client/assets/{role-color-vePuHimp.js → role-color-D8mSWUSP.js} +1 -1
- package/dist/client/assets/{roles-9DfagegS.js → roles-BvxpcIhE.js} +1 -1
- package/dist/client/assets/route-BhwPXyTU.js +1 -0
- package/dist/client/assets/{route-BAPAagaz.js → route-CIuG7rVK.js} +1 -1
- package/dist/client/assets/{route-DKu6Pqys.js → route-CwFXI41y.js} +1 -1
- package/dist/client/assets/{route-page-header-B-LIky3L.js → route-page-header-BKebnQ7_.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-DqhV02JW.js → sandbox-git-api-kWzw-me9.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BquR_fQJ.js → sandbox-lifecycle-context-CvhKd0Ar.js} +1 -1
- package/dist/client/assets/{save-status-DGZixUwz.js → save-status-D61z_ymD.js} +1 -1
- package/dist/client/assets/{schema-D1r-HRSl.js → schema-BJqNkD4t.js} +1 -1
- package/dist/client/assets/{schema-De4v5WlF.js → schema-qarNkYWb.js} +1 -1
- package/dist/client/assets/{scroll-area-B3fSYr2v.js → scroll-area-5v17nmhd.js} +1 -1
- package/dist/client/assets/{search-input-Cdt9kMfy.js → search-input-CQZm2hNT.js} +1 -1
- package/dist/client/assets/{search-toggle-DSp7Hcky.js → search-toggle-DAm1wYVP.js} +1 -1
- package/dist/client/assets/{secret-picker-BawDPkEh.js → secret-picker-B4Yn3Tzu.js} +1 -1
- package/dist/client/assets/{secrets-C8EXSlYe.js → secrets-DG3rdVsD.js} +1 -1
- package/dist/client/assets/{section-array-field-CdNjVmNO.js → section-array-field-DwVXA-Lm.js} +1 -1
- package/dist/client/assets/{sections-Bs7Iv2jZ.js → sections-BVDUrwMW.js} +1 -1
- package/dist/client/assets/{sections-editor-CfAuLUez.js → sections-editor-DSnpetHj.js} +1 -1
- package/dist/client/assets/{select-CggP6HUZ.js → select-BAsJHXEc.js} +1 -1
- package/dist/client/assets/{select-model-DLzfLIPF.js → select-model-BOCP3AJw.js} +1 -1
- package/dist/client/assets/{seo-editor-CPdU1reK.js → seo-editor-B35SyjP_.js} +1 -1
- package/dist/client/assets/{separator-BVRbMe65.js → separator-BkoFxJ-a.js} +1 -1
- package/dist/client/assets/{session-runtime-CWomfon_.js → session-runtime-CHa4zUaU.js} +1 -1
- package/dist/client/assets/settings-tab-Tql4XoA5.js +1 -0
- package/dist/client/assets/{sheet-Cctf5Haw.js → sheet-CD9hondP.js} +1 -1
- package/dist/client/assets/{shell-layout-CqMAaDgr.js → shell-layout-81APhf8G.js} +1 -1
- package/dist/client/assets/{site-draft-actions-C7GVkvic.js → site-draft-actions-Cn-mgs8m.js} +1 -1
- package/dist/client/assets/{site-draft-view-D0jluchh.js → site-draft-view-BCx5O0Qu.js} +1 -1
- package/dist/client/assets/site-editor-DDwEIlVT.js +1 -0
- package/dist/client/assets/{site-editor-toast-CwtPztls.js → site-editor-toast-DE4AUolR.js} +1 -1
- package/dist/client/assets/{skills-xCNKk2jF.js → skills-Bm8J-h8k.js} +1 -1
- package/dist/client/assets/{slider-BcmfJAYi.js → slider-ywXPy9RL.js} +1 -1
- package/dist/client/assets/{sortable.esm-tCMXaEey.js → sortable.esm-BiCb8Xav.js} +1 -1
- package/dist/client/assets/{sso-D6p5do3e.js → sso-CgduHmXv.js} +1 -1
- package/dist/client/assets/{suggestion-BxWaJ319.js → suggestion-ClgzZW4k.js} +1 -1
- package/dist/client/assets/{super-agent-icon-B9i-UVjr.js → super-agent-icon-CI4zzPF_.js} +1 -1
- package/dist/client/assets/{switch-CtfynxSC.js → switch-DZRu5KB4.js} +1 -1
- package/dist/client/assets/{synced-repos-DIodp1Su.js → synced-repos-DOtbff-n.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-pwqNLeo_.js → tab-icon-glyph-CYXWKeMi.js} +1 -1
- package/dist/client/assets/{table-BTX1YfJT.js → table-VLC71RX9.js} +1 -1
- package/dist/client/assets/{tabs-CIIqTZdK.js → tabs-CuSxd9oN.js} +1 -1
- package/dist/client/assets/{task-board-D7JZjCH3.js → task-board-CQ93Fxcg.js} +1 -1
- package/dist/client/assets/{task-key-CmyVr7eu.js → task-key-Cr2gp8f3.js} +1 -1
- package/dist/client/assets/{task-route-Ctqk0dq-.js → task-route-DOQInlaM.js} +1 -1
- package/dist/client/assets/{task-status-B5VEkn1i.js → task-status-CIrc8TVk.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BGxgsamA.js → taskboard-analytics-CkH5naHT.js} +1 -1
- package/dist/client/assets/tasks-BxjoglLd.js +1 -0
- package/dist/client/assets/{tasks-CM8b8pVQ.js → tasks-DW2OXOsb.js} +1 -1
- package/dist/client/assets/{textarea-DCckijcS.js → textarea-DUBonTsv.js} +1 -1
- package/dist/client/assets/{thread-analytics-D9sTrcBy.js → thread-analytics-DZgFolcF.js} +1 -1
- package/dist/client/assets/{thread-button-BV5c-Xnr.js → thread-button-BkUpio60.js} +1 -1
- package/dist/client/assets/{thread-intent-CimeMAhs.js → thread-intent-DF6G1eo-.js} +1 -1
- package/dist/client/assets/{thread-route-CJPA6DE4.js → thread-route-Ce3PxfAv.js} +1 -1
- package/dist/client/assets/{thread-route-Byp6euSQ.js → thread-route-CuhAWPXz.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Dypvjwcl.js → thread-sheet-body-OeK_vFZE.js} +1 -1
- package/dist/client/assets/{time-range-picker-Cv23khp_.js → time-range-picker-FT6OW9LE.js} +1 -1
- package/dist/client/assets/{toggle-group-pweJWvtL.js → toggle-group-B6coM430.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CQaNN2xC.js → tool-set-selector-COWPrC64.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CuKGUCEO.js → toolbar-icon-button-CzRFNVQW.js} +1 -1
- package/dist/client/assets/{tooltip-C6N4ArKE.js → tooltip-BqHypIqJ.js} +1 -1
- package/dist/client/assets/{tooltipContext-fbSMmnSx.js → tooltipContext-B8oT029r.js} +1 -1
- package/dist/client/assets/{track-CjKst96m.js → track-DDYZ7oef.js} +1 -1
- package/dist/client/assets/{types-7fmsgFT9.js → types-CBIWUR_1.js} +1 -1
- package/dist/client/assets/{url-slug-CXerOL6f.js → url-slug--lrnjo5C.js} +1 -1
- package/dist/client/assets/{usage-stats-DWuHrZxJ.js → usage-stats-CFgDy1xq.js} +1 -1
- package/dist/client/assets/{use-ai-providers-MtFIBImG.js → use-ai-providers-CCRWBq_g.js} +1 -1
- package/dist/client/assets/{use-api-keys-9SqcfWYR.js → use-api-keys-C0oRylup.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BDDqH76g.js → use-apply-named-rule-DE2_j-78.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CkGEpXBX.js +1 -0
- package/dist/client/assets/{use-automations-D2mAem9w.js → use-automations-DJDejrA2.js} +1 -1
- package/dist/client/assets/{use-autosave-B2qXm0BM.js → use-autosave-Do8B3ar1.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-qChfFoHE.js +1 -0
- package/dist/client/assets/use-blog-view-nDM5iDQc.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-qKOMz4In.js → use-chat-layout-state-VOJ03c5M.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-XW-XQVoH.js → use-cms-publish-actions-BRPfJg_K.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BAKvxUvx.js → use-connect-companion-DVjT7zMH.js} +1 -1
- package/dist/client/assets/{use-connection-cRB5MkmY.js → use-connection-l2wC75g9.js} +1 -1
- package/dist/client/assets/{use-content-sync-CHIhyqUa.js → use-content-sync-L0hiHcWQ.js} +1 -1
- package/dist/client/assets/{use-copy-BZFH2e_O.js → use-copy-0m1J-uxr.js} +1 -1
- package/dist/client/assets/{use-current-view-DmgrA-Uh.js → use-current-view-YZPgZdou.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DLFMwx_W.js → use-date-fns-locale-B-qcnp7V.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BF7EN-b1.js → use-debounced-autosave-oYqMFkED.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BuH3c6jr.js → use-debounced-value-BMLg_wGx.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DWmcC5WJ.js → use-deco-credits-DBZz2qSh.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-xUZ9Tv7u.js → use-decopilot-events-Dfn0aeW7.js} +1 -1
- package/dist/client/assets/{use-delete-block-pyMELcga.js → use-delete-block-zW4BKDmR.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BoORUiSg.js → use-delete-connection-7ldm1nkK.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-b-BYr0h5.js → use-deployment-admin-Dzb7VE4Y.js} +1 -1
- package/dist/client/assets/{use-entitlements-DvWm2PK9.js → use-entitlements-CkXqJAIE.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BhFRNHph.js → use-fast-preview-draft-url-DY1DEdz9.js} +1 -1
- package/dist/client/assets/{use-file-configs-D4tBDbQj.js → use-file-configs-PuDK6hfH.js} +1 -1
- package/dist/client/assets/{use-id-selection-CpyPb5QB.js → use-id-selection-CuHMOvz9.js} +1 -1
- package/dist/client/assets/{use-in-settings-Coqt6v7y.js → use-in-settings-CCNLbbUG.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-F2LzP84_.js → use-inbox-feed-CECwHsuc.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BAZy4BEv.js → use-infinite-scroll-DjY60kgw.js} +1 -1
- package/dist/client/assets/{use-join-requests-CPgCBxbT.js → use-join-requests-CyWbb5cN.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DHNL1FRk.js → use-main-panel-tabs-eXwPuMrE.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DlC_DSr7.js → use-mcp-auth-status-ByZ7JMQe.js} +1 -1
- package/dist/client/assets/{use-mcp-client-H1P1GrJW.js → use-mcp-client-BX7NztYG.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BOv869a4.js → use-mcp-prompts-P38-2K4S.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BBXEdmEY.js → use-mcp-tools-Dw_Zq-QQ.js} +1 -1
- package/dist/client/assets/{use-mobile-D9RQChal.js → use-mobile-C8YlFZ-l.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DKU8czJq.js → use-move-blocks-DUHsvowX.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BE-SmhD_.js → use-navigate-to-agent-CO9F6Gox.js} +1 -1
- package/dist/client/assets/{use-never-published-Dz_fylPy.js → use-never-published-DXiU8X6V.js} +1 -1
- package/dist/client/assets/{use-org-fs-CwOfnGxA.js → use-org-fs-BZqGGML-.js} +1 -1
- package/dist/client/assets/{use-org-notice-CqY792jc.js → use-org-notice-KZ7o4lqI.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-vZ0K6s_c.js → use-org-repo-syncs-blziVzZj.js} +1 -1
- package/dist/client/assets/{use-org-sso-Ba8Nu3bB.js → use-org-sso-2wgQdNTS.js} +1 -1
- package/dist/client/assets/{use-organization-settings-COfNAHE5.js → use-organization-settings-X8nr67s5.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-3vE9xSHD.js → use-panel-navigate-CPsx6hlb.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-ZiETUsg6.js → use-project-native-view-presence-Dv8VeUw1.js} +1 -1
- package/dist/client/assets/{use-project-scope-Kr-x4L3R.js → use-project-scope-ciTM1z2T.js} +1 -1
- package/dist/client/assets/{use-recent-apps-LwGPbax8.js → use-recent-apps-uGDz3QPS.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CRZjklP_.js → use-reports-diagnostic-B9IX_K7k.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BpgKHG4A.js → use-sandbox-events-DLn0hsDI.js} +1 -1
- package/dist/client/assets/{use-secrets-CJemEGEq.js → use-secrets-JIfNXbNm.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CHNg45Lp.js → use-section-preview-base-CyscejZ2.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-DItqXDBb.js → use-sidebar-collapsed-DfAwo-fz.js} +1 -1
- package/dist/client/assets/{use-tags-DhlYAQW2.js → use-tags-Wns5ncla.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BvRXGAd9.js → use-task-board-analytics-CmAYaUKp.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-gtItx2hM.js → use-task-board-item-prs-BxY9sPVf.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BzqC9Y7K.js → use-task-board-items-BYfrVTr1.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-7jyYjgpj.js → use-task-board-prompts-CrkIKvp1.js} +1 -1
- package/dist/client/assets/{use-task-metadata-zqAgAqTz.js → use-task-metadata-C4HMYuCU.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CUHPfq8O.js → use-thread-outputs-Bo7p3VRF.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-Jydb7grX.js → use-view-draft-kind-DLQz6_da.js} +1 -1
- package/dist/client/assets/{use-voice-input-TAUwPuti.js → use-voice-input-B65atERO.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CDmUUtnq.js +1 -0
- package/dist/client/assets/{useQueries-JFb05AJh.js → useQueries-DYmTC55k.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CNPeuy63.js +1 -0
- package/dist/client/assets/{users-f8EfLxs-.js → users-Dcousb4C.js} +1 -1
- package/dist/client/assets/{utils-DGeDmUlv.js → utils-BZq0mAN6.js} +1 -1
- package/dist/client/assets/{variant-calendar-BttrajzN.js → variant-calendar-eOBkIcCP.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-BwlNNQnX.js → variant-matcher-override-ElmqtCXz.js} +1 -1
- package/dist/client/assets/{view-header-C-eCfmgS.js → view-header-XKtNYOQm.js} +1 -1
- package/dist/client/assets/{virtual-mcp-V9dTdtB7.js → virtual-mcp-Buuz68Qw.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CT562yBl.js → watch-sse-pool-D7lEeHTC.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +72 -72
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DgQ1DbBw.js +0 -1
- package/dist/client/assets/agent-business-case-XZsRMspd.js +0 -1
- package/dist/client/assets/agent-deck-Cwtjbq2B.js +0 -1
- package/dist/client/assets/agent-experiments-UIW7KYbb.js +0 -1
- package/dist/client/assets/agent-file-C5LQ-Y8n.js +0 -1
- package/dist/client/assets/agent-library-fPB8jboG.js +0 -1
- package/dist/client/assets/agent-library-file-C9IJBhTP.js +0 -1
- package/dist/client/assets/agent-overview-DM5tC54a.js +0 -1
- package/dist/client/assets/agent-settings-BjqlSo13.js +0 -1
- package/dist/client/assets/agent-site-editor-code-92SCPwA9.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DE5jggye.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Bkg72jYl.js +0 -1
- package/dist/client/assets/agent-view-CNzF1IWc.js +0 -1
- package/dist/client/assets/api-keys-BaH5-qoz.js +0 -1
- package/dist/client/assets/chat-context-7_gxJldr.js +0 -43
- package/dist/client/assets/library-BoY66rxH.js +0 -1
- package/dist/client/assets/plan-DZj08zn4.js +0 -1
- package/dist/client/assets/project-reports-D51CbGAF.js +0 -1
- package/dist/client/assets/project-tasks-3Qp1kMHx.js +0 -1
- package/dist/client/assets/record-editor-LjbJ8qDY.js +0 -1
- package/dist/client/assets/reports-CQ1A9Zcm.js +0 -1
- package/dist/client/assets/repositories-Lh2baPgI.js +0 -1
- package/dist/client/assets/route-b1nMnSaM.js +0 -1
- package/dist/client/assets/settings-tab-DShUXmqJ.js +0 -1
- package/dist/client/assets/site-editor-BeVDYUvN.js +0 -1
- package/dist/client/assets/tasks-DmPnSoyF.js +0 -1
- package/dist/client/assets/use-ask-in-chat-DD41hTUU.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-zdtgXF8h.js +0 -1
- package/dist/client/assets/use-blog-view-zATJAdkS.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CrdnpEov.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BfQiipma.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,f as p,ay as u,j as s,ba as x,N as a}from"./index-
|
|
1
|
+
import{c as f,f as p,ay as u,j as s,ba as x,N as a}from"./index-9-3lPVHR.js";import{C as j}from"./capability-load-error-D6Yd-tZl.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}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:c}=u();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-miJ0qd3O.js → infiniteQueryObserver-BaEljL6Z.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e7 as g,e8 as d,e9 as v}from"./index-
|
|
1
|
+
import{e7 as g,e8 as d,e9 as v}from"./index-9-3lPVHR.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,i9 as de,b as G,ia as ue,r as le,ib as xe,ic as re,gK as T,gZ as W,B as J,e3 as V,a9 as pe}from"./index-BsIeh4Cx.js";import{i as he}from"./CreditCard01-Dxwp5ygx.js";import{B as L}from"./badge-BtHgi9Dj.js";import{M as je}from"./multi-select-DHaljr4C.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-CggP6HUZ.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-BTX1YfJT.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-C897FgR0.js";import{T as De}from"./Tooltip-Co7VWF0S.js";import{a as _e,A as Me}from"./AreaChart-DXgnBi8E.js";import{c8 as Re}from"./CategoricalChart-D79Y9MaG.js";import{R as Le}from"./require-capability-B75Gfza_.js";import"./checkbox-DjuOGnHn.js";import"./Minus-B9t8Cj2h.js";import"./ChevronDown-CCC_w34y.js";import"./command-CywiUm1_.js";import"./index-CRELQxwJ.js";import"./SearchMd-LhFkHyRE.js";import"./popover-Gt1AIK6d.js";import"./index-BdQq_4o_.js";import"./index-Bh1KH6V9.js";import"./ChevronUp-BQixP1rC.js";import"./index-B3boqtpT.js";import"./access-gate-CaVxuEUE.js";import"./capability-load-error-qUGXI89g.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=G(),{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 K=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(K.length>0?1:0)>1,Y=Z(u,"pageviews"),se=Y>0?Z(u,"requests")/Y:0,me=B&&v&&Y>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(Ge,{team:c,showSites:te},c.siteSlugs.join(","))),K.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:K.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 Ge(t){const e=k.c(13),{team:n,showSites:l}=t,o=G(),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(Ke,{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 Ke(t){const e=k.c(40),{invoices:n}=t,l=G();let o;e[0]!==n?(o=n.some(Ye),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 Ye(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=G(),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 Bt(){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{Bt as default};
|
|
1
|
+
import{c as k,j as s,i9 as de,b as G,ia as ue,r as le,ib as xe,ic as re,gK as T,gZ as W,B as J,e3 as V,a9 as pe}from"./index-9-3lPVHR.js";import{i as he}from"./CreditCard01-B5IXYb-Z.js";import{B as L}from"./badge-CZ31cI4R.js";import{M as je}from"./multi-select-BpgndFUk.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-BAsJHXEc.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-VLC71RX9.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-B9XdV1YW.js";import{T as De}from"./Tooltip-BlKJNUKp.js";import{a as _e,A as Me}from"./AreaChart-BJxz_So-.js";import{c8 as Re}from"./CategoricalChart-M5_Q5Qpe.js";import{R as Le}from"./require-capability-DQyI50C8.js";import"./checkbox-7VbZ9N4T.js";import"./Minus-ORSLCsYe.js";import"./ChevronDown-BFkEWrWP.js";import"./command-CS8-MMXe.js";import"./index-D-q_hYaY.js";import"./SearchMd-ByLo9V2Q.js";import"./popover-BTLt0H-G.js";import"./index-BdQq_4o_.js";import"./index-BidZBx-o.js";import"./ChevronUp-BxXPd6gy.js";import"./index-GGJ8Dg9d.js";import"./access-gate-CPB4rEHI.js";import"./capability-load-error-D6Yd-tZl.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=G(),{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 K=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(K.length>0?1:0)>1,Y=Z(u,"pageviews"),se=Y>0?Z(u,"requests")/Y:0,me=B&&v&&Y>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(Ge,{team:c,showSites:te},c.siteSlugs.join(","))),K.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:K.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 Ge(t){const e=k.c(13),{team:n,showSites:l}=t,o=G(),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(Ke,{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 Ke(t){const e=k.c(40),{invoices:n}=t,l=G();let o;e[0]!==n?(o=n.some(Ye),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 Ye(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=G(),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 Bt(){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{Bt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,r as S,b as G,j as h,t as A,a7 as ye,x as xe,aW as we,w as ke,B as be,v as Ce,D as Se,q as le,a6 as ce,K as Y,E as Q,gp as ue,gq as re,gr as H,m as _e}from"./index-BsIeh4Cx.js";import{S as de,s as Pe}from"./suggestion-BxWaJ319.js";import{O as Fe,v as Ie,B as De,q as z,Q as ve,P as ne,U as je,k as Me,a as Ee,V as Le,p as Re,C as Ae,l as Ne,n as Te,F as Qe,E as Oe}from"./usage-stats-DWuHrZxJ.js";import{aK as Ue}from"./agent-icon-BjjtuL9t.js";import"./chat-context-7_gxJldr.js";import{m as $e,i as qe,b as Ke}from"./index-BpbG2g7p.js";import{u as me}from"./use-mcp-client-H1P1GrJW.js";import{u as He}from"./repository-binding-Coty9GKk.js";import{g as se,a as fe}from"./gateway-client-DS76r1Hn.js";import{l as oe,g as pe}from"./use-mcp-prompts-BOv869a4.js";import{f as ze,b as Be}from"./use-org-fs-CwOfnGxA.js";async function Je(t,e,r,s,i,o){if(!$e(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!qe(l,e)){const g=Ke(e).parts.map(m=>o(m)).join(", "),w=e?.title??"This model";i?i({fileName:r.name,modelName:w,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${w} 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,w=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 w,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 Ve(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 We(t){const e=B.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=S.useRef(Ye);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await Je(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]),S.useEffect(c,g);let w,m;return e[6]!==r?(w=()=>{if(r?.isDestroyed)return;const p=new Ie("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new De({key:p,props:{handleDrop:(d,b,F,P)=>Ve(d,b,P,(_,v)=>l.current(_,v)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const P=Array.from(F).filter(Xe);return P.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const v of P){const D=v.getAsFile();D&&(await l.current?.(D,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=w,e[8]=m):(w=e[7],m=e[8]),S.useEffect(w,m),null}function Xe(t){return t.kind==="file"}function Ye(){return Promise.resolve()}function Ct(t){const e=B.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=j=>!j&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=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]=w):w=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(we,{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(ke,{className:"relative gap-4",children:[w,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const P=r?.modelName??"";let _;e[19]!==i||e[20]!==P?(_=i("chat.uploader.accepts",{modelName:P}),e[19]=i,e[20]=P,e[21]=_):_=e[21];let v;e[22]!==_?(v=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=v):v=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=h.jsx(Ue,{size:14,className:"text-muted-foreground"}),e[24]=D):D=e[24];const E=r?.accepted;let I;e[25]!==E?(I=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[D,h.jsx("span",{className:"capitalize",children:E})]}),e[25]=E,e[26]=I):I=e[26];let a;e[27]!==v||e[28]!==I?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[v,I]})}),e[27]=v,e[28]=I,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 C;e[35]!==F||e[36]!==a||e[37]!==x?(C=h.jsxs(Ce,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ge,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=C):C=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==C?(M=h.jsx(Se,{open:o,onOpenChange:l,children:C}),e[39]=o,e[40]=l,e[41]=C,e[42]=M):M=e[42],M}function Ge(t){return t.preventDefault()}function St(){const t=B.c(3),[e,r]=S.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=B.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=He();let w;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(w={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=w):w=e[3];const m=me(w);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]=S.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=S.useEffectEvent(b),P=S.useRef(null),_=S.useRef(!1),v=s??"default";let D;e[9]!==u||e[10]!==c.id||e[11]!==v?(D=["at-mention",c.id,v,u],e[9]=u,e[10]=c.id,e[11]=v,e[12]=D):D=e[12];const E=D;let I;e[13]!==o?(I=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=I):I=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]!==I||e[18]!==a?(f={name:"agents",title:I,description:a,kind:"category",drillable:!0},e[17]=I,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 C;e[22]!==o?(C=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=C):C=e[23];let M;e[24]!==C||e[25]!==x?(M={name:"resources",title:x,description:C,kind:"category",drillable:!0},e[24]=C,e[25]=x,e[26]=M):M=e[26];let j;e[27]!==M||e[28]!==f?(j=[f,M],e[27]=M,e[28]=f,e[29]=j):j=e[29];const $=j;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:k,range:K}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:k.kind,item_name:k.name}),k.kind!=="category"&&(_.current=!0),k.kind==="category")return d(k.name==="agents"?"agents":"resources"),!1;if(k.kind==="agent"&&k.agentId){z(r,K,{id:k.agentId,name:k.name,metadata:{agentId:k.agentId,title:k.name},char:"@"}),d("categories");return}if(k.kind==="resource"&&k.uri&&m){try{const T=await ue(m,k.uri);z(r,K,{id:k.uri,name:k.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:k}=U,K=F();if(K==="categories"){if(!k.trim())return $;const L=k.toLowerCase(),R=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(et),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>H(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(L)||te.name?.toLowerCase().includes(L)||te.description?.toLowerCase().includes(L)).map(tt)})();return[...R,...X]}if(K==="agents"){let L=g.filter(R=>R.status==="active"&&(!R.id||!re(R.id))&&R.id!==s);if(k.trim()){const R=k.toLowerCase();L=L.filter(X=>X.title.toLowerCase().includes(R)||X.description?.toLowerCase().includes(R))}return L.map(st)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>H(m),staleTime:6e4}).catch(rt):T=await l.fetchQuery({queryKey:n,queryFn:()=>H(m),staleTime:6e4});let W=T?.resources??[];if(k.trim()){const L=k.toLowerCase();W=W.filter(R=>R.uri.toLowerCase().includes(L)||R.name?.toLowerCase().includes(L)||R.description?.toLowerCase().includes(L))}return W.map(nt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)P.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const k=P.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:k?Date.now()-k:null}),P.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==E?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:E,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,e[47]=ee,e[48]=E,e[49]=V):V=e[49],V};function et(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function tt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function st(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function rt(){}function nt(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);z(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 ot(t,e,r,s,i){try{const o=await ue(r,s);z(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 it(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};z(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 at=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),w=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=S.useState(null),[u,d]=S.useState(null),b=ve(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(C=>C.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=S.useRef(null),P=S.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),P.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 it(t,f,o.slug,a.skill,{t:s}):a.uri&&await ot(t,f,l,a.uri,{t:s})},v=async a=>{if(!p||!l)return;const{range:f,item:x}=p,C=se(x._meta);await ie(t,f,l,x.name,C,a,{t:s}),n(null)},D=async a=>{if(!(!u||!l)){if(!je(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)}},E=async a=>{const{query:f}=a;if(!l)return[];const[x,C,M]=await Promise.all([ae(i,c,l),ct(i,g,l),lt(i,w,o.slug)]),j=f.trim().toLowerCase(),$=(x??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.title?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(C??[]).filter(y=>!j||y.uri.toLowerCase().includes(j)||y.name?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.id.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...q]},I=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:E,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),P.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:P.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:I,setPrompt:()=>n(null),onSubmit:v}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:D,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 lt(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 ct(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>H(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>H(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ut(t){return[Ne,Pe.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Te,Qe]}function _t({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=S.useRef(o),w=S.useRef(e),m=S.useRef(s),p=S.useRef(i),n=Ee({extensions:ut(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-[14px] max-md: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})=>{w.current(u?.getJSON())}});return S.useEffect(()=>{n?.setEditable(!r)},[n,r]),S.useEffect(()=>{g.current=o},[o]),S.useEffect(()=>{w.current=e},[e]),S.useEffect(()=>{m.current=s},[s]),S.useEffect(()=>{p.current=i},[i]),S.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 Pt(t){const e=B.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:w}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Re();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const C=n.state.doc.textContent.trim()==="";n.commands.focus("end"),C||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,C)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),C)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+C:C})}},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]),S.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let P;e[3]!==w||e[4]!==b||e[5]!==F?(P=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",w,Ae,"[&_.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]=w,e[4]=b,e[5]=F,e[6]=P):P=e[6];let _;e[7]!==n||e[8]!==P?(_=h.jsx(Oe,{editor:n,className:P}),e[7]=n,e[8]=P,e[9]=_):_=e[9];const v=s??null;let D;e[10]!==n||e[11]!==c||e[12]!==v?(D=h.jsx(S.Suspense,{fallback:null,children:h.jsx(at,{editor:n,virtualMcpId:v,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=v,e[13]=D):D=e[13];const E=s??null;let I;e[14]!==n||e[15]!==c||e[16]!==E?(I=h.jsx(S.Suspense,{fallback:null,children:h.jsx(Ze,{editor:n,virtualMcpId:E,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=E,e[17]=I):I=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(We,{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]!==D||e[25]!==I||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,D,I,a]}),e[24]=D,e[25]=I,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{_t as T,Ct as U,Pt as a,Je as p,St as u};
|
|
1
|
+
import{c as B,r as S,b as G,j as h,t as A,a7 as ye,x as xe,aW as we,w as ke,B as be,v as Ce,D as Se,q as le,a6 as ce,K as Y,E as Q,gp as ue,gq as re,gr as H,m as _e}from"./index-9-3lPVHR.js";import{S as de,s as Pe}from"./suggestion-ClgzZW4k.js";import{O as Fe,v as Ie,B as De,q as z,Q as ve,P as ne,U as je,k as Me,a as Ee,V as Le,p as Re,C as Ae,l as Ne,n as Te,F as Qe,E as Oe}from"./usage-stats-CFgDy1xq.js";import{aK as Ue}from"./agent-icon-CQUJm7pn.js";import"./chat-context-B0oeTxO4.js";import{m as $e,i as qe,b as Ke}from"./index-BORDDlKh.js";import{u as me}from"./use-mcp-client-BX7NztYG.js";import{u as He}from"./repository-binding-CZaVrhy2.js";import{g as se,a as fe}from"./gateway-client-9BWuhC-L.js";import{l as oe,g as pe}from"./use-mcp-prompts-P38-2K4S.js";import{f as ze,b as Be}from"./use-org-fs-BZqGGML-.js";async function Je(t,e,r,s,i,o){if(!$e(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!qe(l,e)){const g=Ke(e).parts.map(m=>o(m)).join(", "),w=e?.title??"This model";i?i({fileName:r.name,modelName:w,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${w} 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,w=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 w,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 Ve(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 We(t){const e=B.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=S.useRef(Ye);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await Je(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]),S.useEffect(c,g);let w,m;return e[6]!==r?(w=()=>{if(r?.isDestroyed)return;const p=new Ie("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new De({key:p,props:{handleDrop:(d,b,F,P)=>Ve(d,b,P,(_,v)=>l.current(_,v)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const P=Array.from(F).filter(Xe);return P.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const v of P){const D=v.getAsFile();D&&(await l.current?.(D,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=w,e[8]=m):(w=e[7],m=e[8]),S.useEffect(w,m),null}function Xe(t){return t.kind==="file"}function Ye(){return Promise.resolve()}function Ct(t){const e=B.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=j=>!j&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=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]=w):w=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(we,{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(ke,{className:"relative gap-4",children:[w,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const P=r?.modelName??"";let _;e[19]!==i||e[20]!==P?(_=i("chat.uploader.accepts",{modelName:P}),e[19]=i,e[20]=P,e[21]=_):_=e[21];let v;e[22]!==_?(v=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=v):v=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=h.jsx(Ue,{size:14,className:"text-muted-foreground"}),e[24]=D):D=e[24];const E=r?.accepted;let I;e[25]!==E?(I=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[D,h.jsx("span",{className:"capitalize",children:E})]}),e[25]=E,e[26]=I):I=e[26];let a;e[27]!==v||e[28]!==I?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[v,I]})}),e[27]=v,e[28]=I,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 C;e[35]!==F||e[36]!==a||e[37]!==x?(C=h.jsxs(Ce,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ge,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=C):C=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==C?(M=h.jsx(Se,{open:o,onOpenChange:l,children:C}),e[39]=o,e[40]=l,e[41]=C,e[42]=M):M=e[42],M}function Ge(t){return t.preventDefault()}function St(){const t=B.c(3),[e,r]=S.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=B.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=He();let w;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(w={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=w):w=e[3];const m=me(w);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]=S.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=S.useEffectEvent(b),P=S.useRef(null),_=S.useRef(!1),v=s??"default";let D;e[9]!==u||e[10]!==c.id||e[11]!==v?(D=["at-mention",c.id,v,u],e[9]=u,e[10]=c.id,e[11]=v,e[12]=D):D=e[12];const E=D;let I;e[13]!==o?(I=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=I):I=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]!==I||e[18]!==a?(f={name:"agents",title:I,description:a,kind:"category",drillable:!0},e[17]=I,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 C;e[22]!==o?(C=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=C):C=e[23];let M;e[24]!==C||e[25]!==x?(M={name:"resources",title:x,description:C,kind:"category",drillable:!0},e[24]=C,e[25]=x,e[26]=M):M=e[26];let j;e[27]!==M||e[28]!==f?(j=[f,M],e[27]=M,e[28]=f,e[29]=j):j=e[29];const $=j;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:k,range:K}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:k.kind,item_name:k.name}),k.kind!=="category"&&(_.current=!0),k.kind==="category")return d(k.name==="agents"?"agents":"resources"),!1;if(k.kind==="agent"&&k.agentId){z(r,K,{id:k.agentId,name:k.name,metadata:{agentId:k.agentId,title:k.name},char:"@"}),d("categories");return}if(k.kind==="resource"&&k.uri&&m){try{const T=await ue(m,k.uri);z(r,K,{id:k.uri,name:k.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:k}=U,K=F();if(K==="categories"){if(!k.trim())return $;const L=k.toLowerCase(),R=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(et),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>H(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(L)||te.name?.toLowerCase().includes(L)||te.description?.toLowerCase().includes(L)).map(tt)})();return[...R,...X]}if(K==="agents"){let L=g.filter(R=>R.status==="active"&&(!R.id||!re(R.id))&&R.id!==s);if(k.trim()){const R=k.toLowerCase();L=L.filter(X=>X.title.toLowerCase().includes(R)||X.description?.toLowerCase().includes(R))}return L.map(st)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>H(m),staleTime:6e4}).catch(rt):T=await l.fetchQuery({queryKey:n,queryFn:()=>H(m),staleTime:6e4});let W=T?.resources??[];if(k.trim()){const L=k.toLowerCase();W=W.filter(R=>R.uri.toLowerCase().includes(L)||R.name?.toLowerCase().includes(L)||R.description?.toLowerCase().includes(L))}return W.map(nt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)P.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const k=P.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:k?Date.now()-k:null}),P.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==E?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:E,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,e[47]=ee,e[48]=E,e[49]=V):V=e[49],V};function et(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function tt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function st(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function rt(){}function nt(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);z(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 ot(t,e,r,s,i){try{const o=await ue(r,s);z(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 it(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};z(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 at=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),w=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=S.useState(null),[u,d]=S.useState(null),b=ve(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(C=>C.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=S.useRef(null),P=S.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),P.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 it(t,f,o.slug,a.skill,{t:s}):a.uri&&await ot(t,f,l,a.uri,{t:s})},v=async a=>{if(!p||!l)return;const{range:f,item:x}=p,C=se(x._meta);await ie(t,f,l,x.name,C,a,{t:s}),n(null)},D=async a=>{if(!(!u||!l)){if(!je(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)}},E=async a=>{const{query:f}=a;if(!l)return[];const[x,C,M]=await Promise.all([ae(i,c,l),ct(i,g,l),lt(i,w,o.slug)]),j=f.trim().toLowerCase(),$=(x??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.title?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(C??[]).filter(y=>!j||y.uri.toLowerCase().includes(j)||y.name?.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!j||y.name.toLowerCase().includes(j)||y.id.toLowerCase().includes(j)||y.description?.toLowerCase().includes(j)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...q]},I=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:E,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),P.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:P.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:I,setPrompt:()=>n(null),onSubmit:v}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:D,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 lt(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 ct(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>H(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>H(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ut(t){return[Ne,Pe.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Te,Qe]}function _t({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=S.useRef(o),w=S.useRef(e),m=S.useRef(s),p=S.useRef(i),n=Ee({extensions:ut(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-[14px] max-md: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})=>{w.current(u?.getJSON())}});return S.useEffect(()=>{n?.setEditable(!r)},[n,r]),S.useEffect(()=>{g.current=o},[o]),S.useEffect(()=>{w.current=e},[e]),S.useEffect(()=>{m.current=s},[s]),S.useEffect(()=>{p.current=i},[i]),S.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 Pt(t){const e=B.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:w}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Re();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const C=n.state.doc.textContent.trim()==="";n.commands.focus("end"),C||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,C)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),C)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+C:C})}},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]),S.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let P;e[3]!==w||e[4]!==b||e[5]!==F?(P=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",w,Ae,"[&_.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]=w,e[4]=b,e[5]=F,e[6]=P):P=e[6];let _;e[7]!==n||e[8]!==P?(_=h.jsx(Oe,{editor:n,className:P}),e[7]=n,e[8]=P,e[9]=_):_=e[9];const v=s??null;let D;e[10]!==n||e[11]!==c||e[12]!==v?(D=h.jsx(S.Suspense,{fallback:null,children:h.jsx(at,{editor:n,virtualMcpId:v,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=v,e[13]=D):D=e[13];const E=s??null;let I;e[14]!==n||e[15]!==c||e[16]!==E?(I=h.jsx(S.Suspense,{fallback:null,children:h.jsx(Ze,{editor:n,virtualMcpId:E,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=E,e[17]=I):I=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(We,{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]!==D||e[25]!==I||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,D,I,a]}),e[24]=D,e[25]=I,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{_t as T,Ct as U,Pt as a,Je as p,St as u};
|