decocms 4.578.1 → 4.579.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-BttmH_EW.js → AlertCircle-zr0wX6rF.js} +1 -1
- package/dist/client/assets/{AreaChart-BeQ7O-oz.js → AreaChart-B2N9Bcti.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C_GHEWeK.js → ArrowLeft-Bl_oOK1R.js} +1 -1
- package/dist/client/assets/{ArrowUp-51wIoVbi.js → ArrowUp-elivCbuw.js} +1 -1
- package/dist/client/assets/{BookOpen01-CDYle7oQ.js → BookOpen01-CQcU8DEw.js} +1 -1
- package/dist/client/assets/{CartesianChart-Ydd3fzeG.js → CartesianChart-GQIn_cdf.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DeS4pERs.js → CategoricalChart-CuZXhd65.js} +1 -1
- package/dist/client/assets/{CheckCircle-C3-mSikS.js → CheckCircle-BQ_BsFXT.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-B417CqKz.js → ChevronSelectorVertical-CWcLLogC.js} +1 -1
- package/dist/client/assets/{ChevronUp-EmQwLtzg.js → ChevronUp-DKklQ3bJ.js} +1 -1
- package/dist/client/assets/{CreditCard01-DANJ2Q0i.js → CreditCard01-5LLU-cS_.js} +1 -1
- package/dist/client/assets/{Globe04-Cuhejf9G.js → Globe04-C_iZve3L.js} +1 -1
- package/dist/client/assets/{Key01-qpabI11H.js → Key01-D0p4-oSK.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CrTBWjs0.js → LinkBroken01-BTepcmNH.js} +1 -1
- package/dist/client/assets/{Minus-CzyQFk6M.js → Minus-DWgslVyP.js} +1 -1
- package/dist/client/assets/{Monitor01-CuxWk6vM.js → Monitor01-B2hjJJ-O.js} +1 -1
- package/dist/client/assets/{Play-s__3_cku.js → Play-DuBKbsmQ.js} +1 -1
- package/dist/client/assets/{Plus-niUoy_uM.js → Plus-CRtXbDBy.js} +1 -1
- package/dist/client/assets/{ReferenceLine-D7fZO7Od.js → ReferenceLine-BTwFdzkB.js} +1 -1
- package/dist/client/assets/{SearchMd-DcWhidrm.js → SearchMd-DDfy6PV0.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CiAvRXvs.js → ShoppingBag01-onaGPnUG.js} +1 -1
- package/dist/client/assets/{Sun-CB2w_c2y.js → Sun-CEK9L4UW.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D4s0wqq6.js → SwitchHorizontal01-DzexFd3R.js} +1 -1
- package/dist/client/assets/{Tool01-DRAEzq3d.js → Tool01-B0TI67n-.js} +1 -1
- package/dist/client/assets/{Tooltip-CPqx6foD.js → Tooltip-2DMIJ5gg.js} +1 -1
- package/dist/client/assets/{Trash01-B0DFZIg9.js → Trash01-1vS11V6D.js} +1 -1
- package/dist/client/assets/{Upload01-CF32qbWU.js → Upload01-B5OG3xe6.js} +1 -1
- package/dist/client/assets/{UserSquare-C01-Jxv6.js → UserSquare-BAJzbhuU.js} +1 -1
- package/dist/client/assets/{Users01-BnjH2fbf.js → Users01-DaLahyDL.js} +1 -1
- package/dist/client/assets/{XClose-CznGRv9E.js → XClose-RigEwdbR.js} +1 -1
- package/dist/client/assets/{Zap-DRZwAN9E.js → Zap-D0gg60Xv.js} +1 -1
- package/dist/client/assets/{access-gate-DKCp0oSn.js → access-gate-DpTCyI4G.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DNldeOcj.js → add-connection-dialog-BFjNmoUE.js} +1 -1
- package/dist/client/assets/agent-app-Bpqc5TKb.js +1 -0
- package/dist/client/assets/{agent-assets-DZ2i3aIp.js → agent-assets-BZW4eVF1.js} +1 -1
- package/dist/client/assets/{agent-automation-DM5au--P.js → agent-automation-DeQnvGwK.js} +3 -3
- package/dist/client/assets/{agent-automations-BgMKlEKo.js → agent-automations-EY7zcVw5.js} +1 -1
- package/dist/client/assets/{agent-blog-DRawqCX5.js → agent-blog-DB-VUOMq.js} +2 -2
- package/dist/client/assets/{agent-blog-post-4Yzlewwc.js → agent-blog-post-C7YY31uh.js} +2 -2
- package/dist/client/assets/{agent-calendar-C9NotvdT.js → agent-calendar-B8bUAVQB.js} +1 -1
- package/dist/client/assets/{agent-capabilities-jT-VtqUC.js → agent-capabilities-DIA4hYXj.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CrnDKgE0.js → agent-connect-sources-D-xJzGQW.js} +1 -1
- package/dist/client/assets/agent-deck-Cf_ErplN.js +1 -0
- package/dist/client/assets/{agent-e2e-mvh6F0Be.js → agent-e2e-g0nOI_x-.js} +1 -1
- package/dist/client/assets/agent-experiments-B-8UgQO-.js +1 -0
- package/dist/client/assets/agent-file-YPpATd9K.js +1 -0
- package/dist/client/assets/{agent-hosting-BC9PAjNJ.js → agent-hosting-CveWqfNK.js} +1 -1
- package/dist/client/assets/{agent-icon-Clk7SRdQ.js → agent-icon-mmszwibp.js} +1 -1
- package/dist/client/assets/agent-library-Dlt2bvFQ.js +1 -0
- package/dist/client/assets/agent-library-file-B139Zw2D.js +1 -0
- package/dist/client/assets/agent-overview-_bAVR0wp.js +1 -0
- package/dist/client/assets/{agent-releases-BV2KNppz.js → agent-releases-CJfKJEbr.js} +1 -1
- package/dist/client/assets/agent-settings-DOFZ9TlT.js +1 -0
- package/dist/client/assets/{agent-site-editor-Bow7ioXm.js → agent-site-editor-BGtiRMtL.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Bk7jz-8p.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CNbkww_K.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BjbJovHJ.js +1 -0
- package/dist/client/assets/agent-view--Q6sRyG-.js +1 -0
- package/dist/client/assets/{agent-view-guard-D7RNQw3n.js → agent-view-guard-D3OOa7MK.js} +1 -1
- package/dist/client/assets/{ai-providers-C10gOn1c.js → ai-providers-B59fTAqi.js} +1 -1
- package/dist/client/assets/{alert-C40ffdTq.js → alert-BIXfxm9q.js} +1 -1
- package/dist/client/assets/{analytics-sections-C8V0d1eU.js → analytics-sections-BbaWW2MU.js} +1 -1
- package/dist/client/assets/{api-keys-Cr8tyjtC.js → api-keys-B-fVnLBR.js} +1 -1
- package/dist/client/assets/api-keys-B7T782Eb.js +1 -0
- package/dist/client/assets/{app-editor-ByystBM6.js → app-editor-DqTsVzBi.js} +1 -1
- package/dist/client/assets/{asset-utils-D4HWdZ_7.js → asset-utils-drPwMw_i.js} +1 -1
- package/dist/client/assets/{auth-D_w34xQ-.js → auth-Dpio94p4.js} +1 -1
- package/dist/client/assets/{auth-catchall-gVavleR3.js → auth-catchall-CFF3U0RI.js} +1 -1
- package/dist/client/assets/{auth-entry-Bhy_H_Rg.js → auth-entry-LKpobRVJ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Dlt5Y9Yo.js → auth-split-layout-CAxtAhO0.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-jwCoKgM4.js → authenticate-and-persist-oauth-uFSi1ddd.js} +1 -1
- package/dist/client/assets/{automation-list-row-CJf3Hfci.js → automation-list-row-i2iBmqhL.js} +1 -1
- package/dist/client/assets/{automation-runs-DFAxj_hn.js → automation-runs-M9kcTzv1.js} +1 -1
- package/dist/client/assets/{automations-Bnx6noDz.js → automations-DVuSVNP2.js} +1 -1
- package/dist/client/assets/{badge-Bec4Z79_.js → badge-DQH-sPh3.js} +1 -1
- package/dist/client/assets/{block-document-3uCBlgZI.js → block-document-CLjK5rGg.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-CFT39hTK.js → blocks-preview-workspace-context-D5d1lCvq.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DgLrbRiD.js → blocks-tab-states-BWSDyN-L.js} +1 -1
- package/dist/client/assets/{blog-preview-url-DiFMPgbV.js → blog-preview-url-DrIHzDC1.js} +1 -1
- package/dist/client/assets/{blog-schema-BS2v2MSK.js → blog-schema-Dud6I1hB.js} +1 -1
- package/dist/client/assets/{blog-source-gate-CwZXRzP6.js → blog-source-gate-DgI6bq3U.js} +1 -1
- package/dist/client/assets/{blog-view-gate-hTnrbFjq.js → blog-view-gate-B2-t_Jmu.js} +1 -1
- package/dist/client/assets/{buckets-DRTwHO8z.js → buckets-BqsIwhzU.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DDEce0zc.js → build-improve-prompt-doc-CxH_m3ql.js} +1 -1
- package/dist/client/assets/{calendar-BHxqLYB2.js → calendar-B5V9ahxZ.js} +1 -1
- package/dist/client/assets/{capability-load-error-Cg21B6QM.js → capability-load-error-Cy1nsQed.js} +1 -1
- package/dist/client/assets/{category-editor-DrwVl4Sl.js → category-editor-uRLzcWX7.js} +1 -1
- package/dist/client/assets/{category-tree-CgP369CP.js → category-tree-DSMV8uvW.js} +1 -1
- package/dist/client/assets/{chart-Cz95W4qb.js → chart-CxiHJ7Yx.js} +1 -1
- package/dist/client/assets/{chat-context-2_7VL2Se.js → chat-context-DdWQJl7N.js} +1 -1
- package/dist/client/assets/{chat-draft-BH8Etp5p.js → chat-draft-CHOcPtOp.js} +1 -1
- package/dist/client/assets/{checkbox-DcSwaw9N.js → checkbox-CVml-3os.js} +1 -1
- package/dist/client/assets/{choose-editor-C4LsHc8P.js → choose-editor-CJgNaynn.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Dg6G0C4J.js → cli-auth-success-BSNEAo2d.js} +1 -1
- package/dist/client/assets/{client-icons-ohal0kIt.js → client-icons-Cvv9MyID.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-_WpAeDPl.js → cms-settings-editor-DOHwi8qO.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-DXYwm7p9.js → cms-store-drafts-Co6hs1Gm.js} +1 -1
- package/dist/client/assets/{collapsible-C0DaEqwH.js → collapsible-ZjNF64KD.js} +1 -1
- package/dist/client/assets/{collection-detail-DqPGF8Zk.js → collection-detail-CFrXFPV3.js} +1 -1
- package/dist/client/assets/{collection-display-button-BYPP-sV7.js → collection-display-button-D7AaZ59Q.js} +1 -1
- package/dist/client/assets/{collection-search-n_O3WZGN.js → collection-search-DrspIufR.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-nXT01FCH.js → collection-table-wrapper-BTpP_R57.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bj6L8MsE.js → collection-tabs-2wU6BwIq.js} +1 -1
- package/dist/client/assets/{combobox-CgNU2tMt.js → combobox-BdUyw8jq.js} +1 -1
- package/dist/client/assets/{command-BtcP4IBQ.js → command-ByEG2lpR.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CPNG8Vx3.js → companion-mcps-section-BpRA6d5a.js} +1 -1
- package/dist/client/assets/{config-C9iB0RU8.js → config-ViHsIgIA.js} +1 -1
- package/dist/client/assets/{connect-D3tjGmEi.js → connect-Aly-0ASI.js} +3 -3
- package/dist/client/assets/{connect-layout-eEBnzEV_.js → connect-layout-CbUmd0fU.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-_DXcUm0Y.js → connect-source-dialog-BI_iSjsz.js} +1 -1
- package/dist/client/assets/{connection-BKTcYZml.js → connection-Bmlh47OD.js} +1 -1
- package/dist/client/assets/{connection-card-COLQiOkG.js → connection-card-IGbEiasZ.js} +1 -1
- package/dist/client/assets/{connection-detail-DzBabz1S.js → connection-detail-D7WtScT_.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-9_MGiUYQ.js → connection-form-helpers-CM8A7qxi.js} +1 -1
- package/dist/client/assets/{connection-slug-DXuQYZmG.js → connection-slug-rgdaPyVS.js} +1 -1
- package/dist/client/assets/{connections-CLDKZJVw.js → connections-8AsK7z6U.js} +1 -1
- package/dist/client/assets/content-tab-6WPOlhG9.js +19 -0
- package/dist/client/assets/{context-f8fDVtNj.js → context-Dgx2LMji.js} +1 -1
- package/dist/client/assets/{context-menu-Dsw1Ex34.js → context-menu-h4YtCxvM.js} +1 -1
- package/dist/client/assets/{context-shell-DpQEYO74.js → context-shell-BbE88Tyf.js} +3 -3
- package/dist/client/assets/{core.esm-rweyZtAP.js → core.esm-BzH_Nko5.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DUk4B45U.js → create-organization-dialog-CnHhjS0p.js} +1 -1
- package/dist/client/assets/{delete-copy-DZE-3KQB.js → delete-copy-pOul_Q0z.js} +1 -1
- package/dist/client/assets/{device-hint-CQX1G1PE.js → device-hint-BQG6K9Hf.js} +1 -1
- package/dist/client/assets/{discover-uwdyIAIK.js → discover-kJdAd045.js} +1 -1
- package/dist/client/assets/{domain-settings-Ba1MIa2U.js → domain-settings-Bs--YGSm.js} +1 -1
- package/dist/client/assets/{drawer-XRqK1CkH.js → drawer-D7zE3h2P.js} +1 -1
- package/dist/client/assets/{editor-CBAsUN_D.js → editor-B0kphvbT.js} +1 -1
- package/dist/client/assets/{editor-classes-DJG-Wj7v.js → editor-classes-SfZ5uUGn.js} +1 -1
- package/dist/client/assets/{empty-message-DgtU67aA.js → empty-message-DkX3rdbv.js} +2 -2
- package/dist/client/assets/{empty-state-BVQ9VzOU.js → empty-state-DKuRC7c7.js} +1 -1
- package/dist/client/assets/{empty-state-CfzBgpuZ.js → empty-state-Deh8mRpo.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DuLgqqx_.js → experiments-tab-choice-BBShWrmo.js} +1 -1
- package/dist/client/assets/{extract-connection-data-EIjdoFBg.js → extract-connection-data-BklHKw1M.js} +1 -1
- package/dist/client/assets/{feature-gate-Bsh6-M6w.js → feature-gate-BlKXdO61.js} +1 -1
- package/dist/client/assets/{feature-paywall-DGSKlw9o.js → feature-paywall-6uSnqIFO.js} +1 -1
- package/dist/client/assets/{file-explorer-DnoVcCFG.js → file-explorer-CvkaKFET.js} +1 -1
- package/dist/client/assets/{file-preview-D_0IU7PB.js → file-preview-B39yfF4F.js} +1 -1
- package/dist/client/assets/{file-share-button-B1Fk0nBQ.js → file-share-button-C2MhJgEK.js} +2 -2
- package/dist/client/assets/{file-type-icon-DED9IxiZ.js → file-type-icon-DVZfJOKC.js} +1 -1
- package/dist/client/assets/{folder-icon-Detn5ugB.js → folder-icon-Dtva_-KR.js} +1 -1
- package/dist/client/assets/{form-CxSSvRAm.js → form-DnzJbdNw.js} +1 -1
- package/dist/client/assets/{frame-navigation-MwhFGymR.js → frame-navigation-mE1IyLxt.js} +1 -1
- package/dist/client/assets/{general-DEU4SDIa.js → general-DUr6-t_c.js} +1 -1
- package/dist/client/assets/{github-icon-N9MEN1MZ.js → github-icon-Cd5dQEKt.js} +1 -1
- package/dist/client/assets/{held-block-view-D_87TUke.js → held-block-view-HcOuBva8.js} +1 -1
- package/dist/client/assets/{home-6nU3ZamX.js → home-BcJ5qMwh.js} +1 -1
- package/dist/client/assets/{home-overview-C3Zj8fkv.js → home-overview-BEZlL4ib.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-f9zR8ohF.js → hosted-reconcile-DSYVUxqr.js} +1 -1
- package/dist/client/assets/{icon-button-DUjjoGv_.js → icon-button-CR6dftyf.js} +1 -1
- package/dist/client/assets/{index-Rlc6g0eH.js → index-AyKz2l6b.js} +1 -1
- package/dist/client/assets/{index-DIeS-zcI.js → index-B1RqPkvO.js} +1 -1
- package/dist/client/assets/{index-CpQGG70q.js → index-BpJqVb3l.js} +1 -1
- package/dist/client/assets/{index-BhtDSp6y.js → index-C5bUqIA_.js} +6 -6
- package/dist/client/assets/{index-B3ab16ZV.js → index-CBlU77jJ.js} +1 -1
- package/dist/client/assets/{index-BRMdzLQF.js → index-CDiUvHd3.js} +1 -1
- package/dist/client/assets/{index-1TeON1d1.js → index-CU2-l5Z1.js} +1 -1
- package/dist/client/assets/{index-DkcRNYY4.js → index-D8HDDDUz.js} +9 -9
- package/dist/client/assets/{index-BX-xETn9.js → index-DGscs1DX.js} +1 -1
- package/dist/client/assets/{index-D2WZClU1.js → index-DOkOhXW8.js} +1 -1
- package/dist/client/assets/{index-DK-8s7Az.js → index-DaVJsKZ7.js} +1 -1
- package/dist/client/assets/{index-DyJk9i7m.js → index-De51YIVR.js} +1 -1
- package/dist/client/assets/{index-CAJpA_Gg.js → index-PstEiCy7.js} +1 -1
- package/dist/client/assets/{index-DoI9gwtY.js → index-b6QIszGC.js} +1 -1
- package/dist/client/assets/{index-DKvQA4se.js → index-gXWGEUwJ.js} +1 -1
- package/dist/client/assets/{index-Dn1sSLiR.js → index-odrPj5u2.js} +3 -3
- package/dist/client/assets/{index-redirect-xsDNsYua.js → index-redirect-Dj3mFirc.js} +1 -1
- package/dist/client/assets/{index-Dsc22z2E.js → index-uoYFNgrb.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bitq8wqo.js → infiniteQueryObserver-C3DB8A3F.js} +1 -1
- package/dist/client/assets/{infra-billing-Bq7lICUo.js → infra-billing-Dv0Y4nq2.js} +1 -1
- package/dist/client/assets/{input-Z8vNy904.js → input-B9-LxoR8.js} +1 -1
- package/dist/client/assets/{input-cZnIeAU-.js → input-DCkWhN8u.js} +3 -3
- package/dist/client/assets/{integration-icon-D_f17Dc0.js → integration-icon-D10Wu8in.js} +1 -1
- package/dist/client/assets/item-actions-ChF-Wajz.js +1 -0
- package/dist/client/assets/{jira-icon-B_i3CvQt.js → jira-icon-BTl7-hxa.js} +1 -1
- package/dist/client/assets/{label-Dn3Jp5Ws.js → label-C6Eod_61.js} +1 -1
- package/dist/client/assets/{layout-Uu1mBCHM.js → layout-KD23pdsL.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-BZv5i7Tg.js → legacy-admin-welcome-dialog-DY8Bixis.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DP_-DfVk.js → legacy-agents-deep-DqEHBKxS.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BUWLccLo.js → legacy-main-redirect-xIr91LSW.js} +1 -1
- package/dist/client/assets/library-1Y_LcuJb.js +1 -0
- package/dist/client/assets/{library-tab-BFNRWK_p.js → library-tab-C-gyz3ep.js} +1 -1
- package/dist/client/assets/{login-bQ_A0WZT.js → login-LU1xbL-m.js} +1 -1
- package/dist/client/assets/{markdown-b_kJoSST.js → markdown-xlCS0Umn.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DnzeUjpd.js → mcp-app-renderer-P6d9M0PC.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DFR30m4O.js → mcp-oauth-B7XWBzzN.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DtWQzykq.js → mcp-oauth-B_8eWy31.js} +1 -1
- package/dist/client/assets/{members-D0Lz_KgP.js → members-TkhB8ase.js} +1 -1
- package/dist/client/assets/{memory-BoBRHeM6.js → memory-0HN4vn-X.js} +1 -1
- package/dist/client/assets/{mock-board-DHgHCl4G.js → mock-board-DEylkukw.js} +3 -3
- package/dist/client/assets/{monaco-editor-UZynMXqx.js → monaco-editor-D37e6fWN.js} +1 -1
- package/dist/client/assets/{monitoring-DxDbj9fw.js → monitoring-CWDPvUi9.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Cuheh0jS.js → monitoring-stats-row-BaRGE1me.js} +1 -1
- package/dist/client/assets/{multi-select-DME84cUe.js → multi-select-jJMhnt_d.js} +1 -1
- package/dist/client/assets/{mustache-y-ZQsp_m.js → mustache-B5ZYo9QF.js} +1 -1
- package/dist/client/assets/{named-rule-step-DN_fLt7U.js → named-rule-step-DxjJGQ3W.js} +1 -1
- package/dist/client/assets/{named-rule-view-DZEGURWO.js → named-rule-view-UfrOXS5F.js} +1 -1
- package/dist/client/assets/{new-project-dialog-woRLqi3-.js → new-project-dialog-Czv5HvtS.js} +1 -1
- package/dist/client/assets/{oauth-callback-BgK3JUto.js → oauth-callback-PiEldV4w.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DIdeF5L_.js → oauth-callback-ai-provider-DUkKBpBm.js} +1 -1
- package/dist/client/assets/{oauth-consent-DeoVyPXJ.js → oauth-consent-CKXF9rY9.js} +1 -1
- package/dist/client/assets/{onboarding-CrBz7CJY.js → onboarding-ACGqZ934.js} +1 -1
- package/dist/client/assets/{openai-conversation-Cv54h2Lp.js → openai-conversation-BrQdLDfo.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BZ1sAhod.js → optimistic-project-sidebar-views-wCpU8FHx.js} +1 -1
- package/dist/client/assets/{order-monitor-day-HVJjPS8X.js → order-monitor-day-az11vn38.js} +1 -1
- package/dist/client/assets/{organization-choice-DiOY09h_.js → organization-choice-B4DvsWTU.js} +1 -1
- package/dist/client/assets/{orgs-CDazo1cx.js → orgs-BcVTs2Na.js} +1 -1
- package/dist/client/assets/{own-accounts-section-DFgMqqFp.js → own-accounts-section-C9C2gCIB.js} +1 -1
- package/dist/client/assets/{pair-BV9OnQjN.js → pair-CBh8Ssld.js} +1 -1
- package/dist/client/assets/{parse-sections-DRVKTg0R.js → parse-sections-HRX0mYs4.js} +2 -2
- package/dist/client/assets/{plan-Cts1Yk_E.js → plan-D-fnFfEU.js} +1 -1
- package/dist/client/assets/{plan-ladder-KbWc-Or1.js → plan-ladder-B-kol46S.js} +1 -1
- package/dist/client/assets/{plan-usage-card-CN7VFizA.js → plan-usage-card-C1wYjY71.js} +1 -1
- package/dist/client/assets/{popover-DGUQnbhk.js → popover-BvzfBeCD.js} +1 -1
- package/dist/client/assets/{post-calendar-CqQDC3t2.js → post-calendar-DGT8MPVI.js} +1 -1
- package/dist/client/assets/{post-editor-D5cDZX8g.js → post-editor-CJ6LWCYX.js} +2 -2
- package/dist/client/assets/{preview-content-5E4VEVNy.js → preview-content-Dg6p6zYi.js} +1 -1
- package/dist/client/assets/{preview-dialog-CW0UxxZH.js → preview-dialog-C6UJFd8t.js} +1 -1
- package/dist/client/assets/{preview-panel-X9Db-uFN.js → preview-panel-XviDcPal.js} +1 -1
- package/dist/client/assets/{preview-tab-D3OqBk4l.js → preview-tab-Bsa49d5X.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-WEdrqBYL.js → product-picker-dialog-YdUbY-7g.js} +1 -1
- package/dist/client/assets/{profile-Dr7jNljC.js → profile-CePaZKJY.js} +1 -1
- package/dist/client/assets/{project-app-view-BlutJfNT.js → project-app-view-DfiChkFV.js} +1 -1
- package/dist/client/assets/{project-apps-I71-E6Qd.js → project-apps-C9_2F9T-.js} +1 -1
- package/dist/client/assets/{project-icon-DwgAxTAv.js → project-icon-CaBBGJPF.js} +1 -1
- package/dist/client/assets/{project-index-iv5dTkyZ.js → project-index-C7nzWFsU.js} +1 -1
- package/dist/client/assets/project-reports-CoqhcCxn.js +1 -0
- package/dist/client/assets/project-tasks-Seoutc84.js +1 -0
- package/dist/client/assets/{projects-gSmj9ecH.js → projects-CO4WaEwj.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CupYJqrY.js → projects-empty-state-C5B5zjIl.js} +1 -1
- package/dist/client/assets/{prompts-CBaHiUu4.js → prompts-BjcWFXkv.js} +1 -1
- package/dist/client/assets/{record-editor-Dhg3qN0D.js → record-editor-CjT1Sg-6.js} +1 -1
- package/dist/client/assets/{redirect-editor-P9JRSoek.js → redirect-editor-OA8-5zJv.js} +1 -1
- package/dist/client/assets/{reports-DcvRbz_i.js → reports-BQZNrA6z.js} +1 -1
- package/dist/client/assets/reports-CwkGwbxw.js +1 -0
- package/dist/client/assets/{reports-onboarding-CNToIJAM.js → reports-onboarding-Bo8neYb7.js} +1 -1
- package/dist/client/assets/{reports-tab-BZqA8TQ_.js → reports-tab-DgZa_ici.js} +2 -2
- package/dist/client/assets/repositories-BD2JywIJ.js +1 -0
- package/dist/client/assets/{repositories-Ccur-dYQ.js → repositories-aSnJEtAN.js} +1 -1
- package/dist/client/assets/{repository-binding-BLl1r28B.js → repository-binding-Dv276sdb.js} +1 -1
- package/dist/client/assets/{repository-picker-BOvn8tow.js → repository-picker-QBlZoWDu.js} +1 -1
- package/dist/client/assets/{require-capability-CbgooziO.js → require-capability-DR0RkcLX.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Du4rT7sh.js → required-auth-layout-DQ6ys2Lb.js} +1 -1
- package/dist/client/assets/{reset-password-BWHhQAiH.js → reset-password-Cey_yJ7E.js} +1 -1
- package/dist/client/assets/{resizable-vWMGfcV5.js → resizable-B8_D-RUQ.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CyktvCbJ.js → resolve-tab-icon-BR3-CACo.js} +1 -1
- package/dist/client/assets/{review-settings-BYvflnLC.js → review-settings-oSfLAO7Q.js} +1 -1
- package/dist/client/assets/{role-color-DXKobZxk.js → role-color-BUSBfkmC.js} +1 -1
- package/dist/client/assets/{roles-DtM-OJk0.js → roles-CjDfMF0i.js} +1 -1
- package/dist/client/assets/{route-C8tElGsM.js → route-8L849BD5.js} +1 -1
- package/dist/client/assets/{route-DYywXwGr.js → route-K2NA94TK.js} +1 -1
- package/dist/client/assets/route-hkkxUpPa.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-CVRjjAk0.js → sandbox-lifecycle-context-D0Fc_zJJ.js} +1 -1
- package/dist/client/assets/{save-status-DnvkIbvY.js → save-status-1UoG7f0k.js} +1 -1
- package/dist/client/assets/{schema-CAleC_3r.js → schema-CFwkIhKP.js} +1 -1
- package/dist/client/assets/{schema-C2C3qx85.js → schema-gPek6tvx.js} +1 -1
- package/dist/client/assets/{scroll-area-DMASCzA7.js → scroll-area-BhLv10mq.js} +1 -1
- package/dist/client/assets/{search-input-BzsoblR3.js → search-input-CLSXdutD.js} +1 -1
- package/dist/client/assets/{search-toggle-C8mpkT93.js → search-toggle-DukKK1PI.js} +1 -1
- package/dist/client/assets/{secret-picker-1TYTZlJ-.js → secret-picker-BF4D31uF.js} +1 -1
- package/dist/client/assets/{secrets-D8N8c2eG.js → secrets-DZpaifDz.js} +1 -1
- package/dist/client/assets/{section-array-field-CBlVxN-e.js → section-array-field-BtcjWtvt.js} +1 -1
- package/dist/client/assets/{sections-D5nPXiNR.js → sections-DiXXDwzo.js} +1 -1
- package/dist/client/assets/{sections-editor-DDwn5ekg.js → sections-editor-Nvt7HB4y.js} +1 -1
- package/dist/client/assets/{select-DVeciAl9.js → select-CpVl3_2f.js} +1 -1
- package/dist/client/assets/{select-model-BNTO0fSE.js → select-model-BMlbS-e4.js} +1 -1
- package/dist/client/assets/{seo-editor-BZPpMR_G.js → seo-editor-M_gwXcCt.js} +1 -1
- package/dist/client/assets/{separator-4lVFkBOm.js → separator-DGA-poR7.js} +1 -1
- package/dist/client/assets/settings-tab-BOF9Hfhu.js +1 -0
- package/dist/client/assets/{sheet-DgqpeU2r.js → sheet-C6rtTUBz.js} +1 -1
- package/dist/client/assets/{shell-layout-Dqg0y9U5.js → shell-layout-DWWwIk_z.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BU5wxMfk.js → site-draft-actions-D5Biudjs.js} +1 -1
- package/dist/client/assets/{site-draft-view-0GYco8RC.js → site-draft-view-NNy8S2-k.js} +1 -1
- package/dist/client/assets/site-editor-Du_VAI4F.js +1 -0
- package/dist/client/assets/{site-editor-toast-DHWingRQ.js → site-editor-toast-BEWqoKlP.js} +1 -1
- package/dist/client/assets/{skills-QMeBFjVZ.js → skills-zwuWEnTI.js} +1 -1
- package/dist/client/assets/{slider-DkvAjMqC.js → slider-CBof_Q_V.js} +1 -1
- package/dist/client/assets/{sortable.esm-D1XbpNQK.js → sortable.esm-Dy1h1l2l.js} +1 -1
- package/dist/client/assets/{sso-CA2di6VE.js → sso-DA1qOy6T.js} +1 -1
- package/dist/client/assets/{suggestion-DKq9tnks.js → suggestion-D56UF_pQ.js} +1 -1
- package/dist/client/assets/{super-agent-icon-Des3Gzt2.js → super-agent-icon-CN88o8hG.js} +1 -1
- package/dist/client/assets/{switch-D_fyZtAR.js → switch-CG9p29mC.js} +1 -1
- package/dist/client/assets/{synced-repos-q-9Pq41U.js → synced-repos-ClnsQNcV.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CnCjm5vj.js → tab-icon-glyph-1_FRhmF-.js} +1 -1
- package/dist/client/assets/{table-B6gmAyVe.js → table--WoW2Lor.js} +1 -1
- package/dist/client/assets/{tabs-C3-glM5w.js → tabs-CnNsL319.js} +1 -1
- package/dist/client/assets/{task-board-F0C1flaU.js → task-board-DUfmZVQ7.js} +1 -1
- package/dist/client/assets/{task-route-CgJ6kEGQ.js → task-route-BZiSHzMD.js} +1 -1
- package/dist/client/assets/{task-status-DtZHG42q.js → task-status-DckguLMB.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DhB06IEO.js → taskboard-analytics-EKZ_Hvd3.js} +1 -1
- package/dist/client/assets/tasks-B2EqX_zH.js +1 -0
- package/dist/client/assets/{tasks-BjEh1sq-.js → tasks-ChO6GiZ2.js} +1 -1
- package/dist/client/assets/{textarea-BcNUedZJ.js → textarea-Cgu68q3w.js} +1 -1
- package/dist/client/assets/{thread-analytics-CHIWrhgS.js → thread-analytics-D56cWHrl.js} +1 -1
- package/dist/client/assets/{thread-intent-BBtcC3eO.js → thread-intent-DFlRKb26.js} +1 -1
- package/dist/client/assets/{thread-route-BDEM9uAG.js → thread-route-BRv2L7da.js} +1 -1
- package/dist/client/assets/{thread-route-B-8pwMl6.js → thread-route-CCB-rd-1.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-XQutdGAn.js → thread-sheet-body-CLb6QMKy.js} +1 -1
- package/dist/client/assets/{time-range-picker-DIndNk54.js → time-range-picker-DJQsn3p1.js} +1 -1
- package/dist/client/assets/{toggle-group-BJvueItv.js → toggle-group-lGOrFANX.js} +1 -1
- package/dist/client/assets/{tool-namespace-8W3F8hsl.js → tool-namespace-cagFCGCV.js} +1 -1
- package/dist/client/assets/{tool-set-selector-HD2rc5mb.js → tool-set-selector-B71rNLSq.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DqwBIL-q.js → toolbar-icon-button-jXG-KQc2.js} +1 -1
- package/dist/client/assets/{tooltip-CcU7DhuT.js → tooltip-BZFegydB.js} +1 -1
- package/dist/client/assets/{tooltipContext-qk98CIlc.js → tooltipContext-C1F2kuWH.js} +1 -1
- package/dist/client/assets/{track-DQBd80xZ.js → track-lfFXhuhn.js} +1 -1
- package/dist/client/assets/{types-CBXbXFqf.js → types-FZCQuIv_.js} +1 -1
- package/dist/client/assets/{url-slug-D48mGvuH.js → url-slug-B9Zc1vGv.js} +1 -1
- package/dist/client/assets/{usage-stats-D6OFaO8E.js → usage-stats-CphPEBVe.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BJ7TKB-_.js → use-ai-providers-xj5bugI1.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BDDeFxUe.js → use-apply-named-rule-BWoo6p5O.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-Ckzzwqrc.js +1 -0
- package/dist/client/assets/{use-automations-DGdQY13E.js → use-automations-D1alWz_j.js} +1 -1
- package/dist/client/assets/{use-autosave-yYU_ezVq.js → use-autosave-iBowYJcP.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DUspd_UU.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-7fLexK-W.js → use-chat-layout-state-DfKn-NxL.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-Di7RH3ic.js → use-cms-publish-actions-3jMkJE3K.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Ddgl8MAG.js → use-connect-companion-C_A5Vxk7.js} +1 -1
- package/dist/client/assets/{use-connection-8PrHxvAI.js → use-connection-CU6X3Wkq.js} +1 -1
- package/dist/client/assets/{use-content-sync-8KVw9tn9.js → use-content-sync-DmmeRMs-.js} +1 -1
- package/dist/client/assets/{use-copy-F5Ataqy3.js → use-copy-Bn5xNYDY.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D8L_b1Z0.js → use-date-fns-locale-BwLIR0jW.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D2pTqcG8.js → use-debounced-autosave-CsKCSmG6.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CbdraSYQ.js → use-debounced-value-Bd_QEBiw.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D5BjRSSa.js → use-deco-credits-C0pODutp.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CoAHF-ln.js → use-decopilot-events-BEba0iFr.js} +1 -1
- package/dist/client/assets/{use-delete-block-B_3TZ6oj.js → use-delete-block-C2VDoxSY.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BiAYYkr3.js → use-delete-connection-Dmwz6pLO.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-glI5z0S-.js → use-deployment-admin-DBDDA5Db.js} +1 -1
- package/dist/client/assets/{use-entitlements-C7UoqTI0.js → use-entitlements-D_NXTAyp.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BK4D_Y49.js → use-fast-preview-draft-url-DO0FxQgi.js} +1 -1
- package/dist/client/assets/{use-file-configs-C0B0PjW_.js → use-file-configs-Css7VrGO.js} +1 -1
- package/dist/client/assets/{use-id-selection-CTG-YWBc.js → use-id-selection-tdP-DqUr.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-Br6iChGF.js → use-inbox-feed-gupZrbXm.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Ca25srcJ.js → use-infinite-scroll-BW-rJXd9.js} +1 -1
- package/dist/client/assets/{use-join-requests-Dfcdd55y.js → use-join-requests-B4rRAy5i.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-HePCt0jA.js → use-main-panel-tabs-1Vj7wm8E.js} +1 -1
- package/dist/client/assets/use-mcp-auth-status-CCeGVwSv.js +1 -0
- package/dist/client/assets/{use-mcp-client-DFeSZL8q.js → use-mcp-client-CluVMhVq.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BTRRV8Ft.js → use-mcp-prompts-YffkWL7I.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-TDs-I0b1.js → use-mcp-tools-C1QW6bpR.js} +1 -1
- package/dist/client/assets/{use-mobile-BnBdDTHN.js → use-mobile-D2Sn1D9v.js} +1 -1
- package/dist/client/assets/{use-move-blocks-CckOr-lB.js → use-move-blocks-CWhuO9hg.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D12paxCm.js → use-navigate-to-agent-DG4RRc2l.js} +1 -1
- package/dist/client/assets/{use-never-published-DFEsFGpN.js → use-never-published-D8nGboC4.js} +1 -1
- package/dist/client/assets/{use-org-fs-BVX55_QU.js → use-org-fs-BySi7x_E.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-ZSOjbeOM.js → use-org-repo-syncs-CR3rL8dY.js} +1 -1
- package/dist/client/assets/{use-org-sso-BjEvyyup.js → use-org-sso-C1PNiOLX.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Bp5pncRd.js → use-organization-settings-HcETy7Sy.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BygogdOC.js → use-project-native-view-presence-DwgE9Oo5.js} +1 -1
- package/dist/client/assets/{use-project-scope-DOHE3bKU.js → use-project-scope-C_D7G_Rp.js} +1 -1
- package/dist/client/assets/{use-recent-apps-DP2oLcqz.js → use-recent-apps-h9IShd63.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DpDAVu1I.js → use-reports-diagnostic-CKOsUeqn.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-EhUTp4km.js → use-sandbox-events-BRyRagyy.js} +1 -1
- package/dist/client/assets/{use-secrets-CxjuCsrh.js → use-secrets-BDiRf3Zk.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-cdgVeEAb.js → use-section-preview-base-C9b4a3IM.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BIEPyypZ.js → use-sidebar-collapsed-I4_8P9uh.js} +1 -1
- package/dist/client/assets/{use-tags-C3U-POZn.js → use-tags-BLAg8Bt6.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-C3VZMz7B.js → use-task-board-analytics-fe_SM3oJ.js} +1 -1
- package/dist/client/assets/{use-task-board-events-DbjmwIOB.js → use-task-board-events-DLrBUovp.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-EqF0sY_y.js → use-task-board-item-prs-CwDomqDS.js} +1 -1
- package/dist/client/assets/{use-task-board-items-qkbAWHCl.js → use-task-board-items-Bm6zwfzn.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-Rl7l1WO8.js → use-task-board-prompts-CjwAHKAM.js} +1 -1
- package/dist/client/assets/{use-task-metadata-Cd0VDdAR.js → use-task-metadata-CM4snwYN.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BVOJLuSg.js → use-thread-outputs-hVznlgM2.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-CLUDIePm.js → use-view-draft-kind-Bb6178QK.js} +1 -1
- package/dist/client/assets/{use-voice-input-Bl7eFiVx.js → use-voice-input-4p-Pv-qm.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D3dviUwm.js +1 -0
- package/dist/client/assets/{useQueries-BoFvlKGQ.js → useQueries-BDKcwXY5.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CX7nH5DS.js +1 -0
- package/dist/client/assets/{users-CNjQRe0O.js → users-JZFItgDj.js} +1 -1
- package/dist/client/assets/{utils-BQSMlXSP.js → utils-Cjet4zZt.js} +2 -2
- package/dist/client/assets/{variant-calendar-NNYJdzAI.js → variant-calendar-D2b6pfPb.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DT5fklqI.js → variant-matcher-override-CNk4J4xE.js} +1 -1
- package/dist/client/assets/{view-header-tpv-7x2O.js → view-header-DeTc05o9.js} +1 -1
- package/dist/client/assets/{virtual-mcp-MVkHUb3W.js → virtual-mcp-Dhzw4N7R.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Dj-biyb-.js → watch-sse-pool-C_8RX2D3.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B-urmXmZ.js +0 -1
- package/dist/client/assets/agent-deck-BBmqDT35.js +0 -1
- package/dist/client/assets/agent-experiments-tJkf5zEV.js +0 -1
- package/dist/client/assets/agent-file-BO8UjxRg.js +0 -1
- package/dist/client/assets/agent-library-BKkTVzrq.js +0 -1
- package/dist/client/assets/agent-library-file-BrZYdHRW.js +0 -1
- package/dist/client/assets/agent-overview-B1REPbfy.js +0 -1
- package/dist/client/assets/agent-settings-DbGtVJ2w.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BJ6yQoLJ.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Cg8Mk6hH.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-CqN3vC1Y.js +0 -1
- package/dist/client/assets/agent-view-DV1ov_VY.js +0 -1
- package/dist/client/assets/api-keys-DxmWJBFA.js +0 -1
- package/dist/client/assets/content-tab-DHk7zASR.js +0 -19
- package/dist/client/assets/item-actions-tUfJogkL.js +0 -1
- package/dist/client/assets/library-CEXxPUaa.js +0 -1
- package/dist/client/assets/project-reports-D_a4jtSV.js +0 -1
- package/dist/client/assets/project-tasks-BCzd3AL6.js +0 -1
- package/dist/client/assets/reports-DehFoQ2c.js +0 -1
- package/dist/client/assets/repositories-DPEF306T.js +0 -1
- package/dist/client/assets/route-ptA81iuF.js +0 -1
- package/dist/client/assets/settings-tab-DNW19Zfd.js +0 -1
- package/dist/client/assets/site-editor-Bb1utT9X.js +0 -1
- package/dist/client/assets/tasks-rVWKpPqZ.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BqR7YrFk.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-fuQSIOiU.js +0 -1
- package/dist/client/assets/use-mcp-auth-status-BZvjXleK.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DAeB0Xdz.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D8216v2q.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,f as p,av as u,j as s,aZ as x,N as a}from"./index-
|
|
1
|
+
import{c as f,f as p,av as u,j as s,aZ as x,N as a}from"./index-D8HDDDUz.js";import{C as j}from"./capability-load-error-Cy1nsQed.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,bu as Yt,ak as as,K as bt,i as Et,a5 as As,m as ot,gD as _s,o as cs,h as Ks,dY as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,dS as Js,hd as Gs,T as Qs,W as Ys,I as Xt}from"./index-
|
|
1
|
+
import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,bu as Yt,ak as as,K as bt,i as Et,a5 as As,m as ot,gD as _s,o as cs,h as Ks,dY as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,dS as Js,hd as Gs,T as Qs,W as Ys,I as Xt}from"./index-D8HDDDUz.js";import{S as Ws}from"./search-input-CLSXdutD.js";import{E as Ht}from"./empty-state-DKuRC7c7.js";import{R as Xs}from"./require-capability-DR0RkcLX.js";import{f as js}from"./pair-CBh8Ssld.js";import{b as ts}from"./use-connection-CU6X3Wkq.js";import{g as Ps}from"./connection-slug-rgdaPyVS.js";import{B as Lt}from"./badge-DQH-sPh3.js";import{P as ds,a as ms,b as us}from"./popover-BvzfBeCD.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-BZFegydB.js";import{G as fs,e as Ut,bX as el,aO as Ns,a0 as tl}from"./agent-icon-mmszwibp.js";import{i as sl}from"./Key01-D0p4-oSK.js";import{i as ll}from"./Play-DuBKbsmQ.js";import{MonacoCodeEditor as bs}from"./monaco-editor-D37e6fWN.js";import{u as rl}from"./use-mcp-client-CluVMhVq.js";import{a as il}from"./repository-binding-Dv276sdb.js";import{n as Ot}from"./LinkBroken01-BTepcmNH.js";import{c as ol}from"./SwitchHorizontal01-DzexFd3R.js";import{s as nl}from"./Plus-CRtXbDBy.js";import{s as al}from"./Trash01-1vS11V6D.js";import{M as zt}from"./multi-select-jJMhnt_d.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-CpVl3_2f.js";import{e as ys,T as cl}from"./time-range-picker-DJQsn3p1.js";import{T as dl}from"./textarea-Cgu68q3w.js";import{C as Ds}from"./collection-tabs-2wU6BwIq.js";import{S as ml}from"./switch-CG9p29mC.js";import{L as ul}from"./label-C6Eod_61.js";import{I as It}from"./integration-icon-D10Wu8in.js";import{A as fl,a as xl,b as pl}from"./alert-BIXfxm9q.js";import{K as gt}from"./monitoring-stats-row-BaRGE1me.js";import{b as Bt}from"./use-entitlements-D_NXTAyp.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-CLb6QMKy.js";import{u as wl}from"./useSuspenseInfiniteQuery-CX7nH5DS.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-C6rtTUBz.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table--WoW2Lor.js";import{n as ss,t as ls}from"./ChevronUp-DKklQ3bJ.js";import{u as Os}from"./use-id-selection-tdP-DqUr.js";import{u as Fs}from"./use-infinite-scroll-BW-rJXd9.js";import{u as Il}from"./useInfiniteQuery-D3dviUwm.js";import{g as Tl}from"./task-status-DckguLMB.js";import{u as kl,d as Ml}from"./use-automations-D1alWz_j.js";import{A as _l}from"./automation-runs-M9kcTzv1.js";import{i as Pl}from"./ArrowLeft-Bl_oOK1R.js";import{E as Cs}from"./empty-state-Deh8mRpo.js";import{O as $s}from"./watch-sse-pool-C_8RX2D3.js";import{t as Dl}from"./task-key-BCHdFiOO.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-az11vn38.js";import{F as $l}from"./feature-gate-BlKXdO61.js";import"./SearchMd-DDfy6PV0.js";import"./access-gate-DpTCyI4G.js";import"./capability-load-error-Cy1nsQed.js";import"./Tool01-B0TI67n-.js";import"./collapsible-ZjNF64KD.js";import"./use-copy-Bn5xNYDY.js";import"./usage-stats-CphPEBVe.js";import"./tool-namespace-cagFCGCV.js";import"./form-DnzJbdNw.js";import"./utils-CVEq3hMx.js";import"./markdown-xlCS0Umn.js";import"./chat-context-DdWQJl7N.js";import"./use-view-draft-kind-Bb6178QK.js";import"./thread-route-CCB-rd-1.js";import"./use-project-scope-C_D7G_Rp.js";import"./use-organization-settings-HcETy7Sy.js";import"./schema-gPek6tvx.js";import"./task-board-DUfmZVQ7.js";import"./thread-intent-DFlRKb26.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./use-ai-providers-xj5bugI1.js";import"./use-decopilot-events-BEba0iFr.js";import"./use-mobile-D2Sn1D9v.js";import"./shell-layout-DWWwIk_z.js";import"./Globe04-C_iZve3L.js";import"./UserSquare-BAJzbhuU.js";import"./use-deployment-admin-DBDDA5Db.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-RigEwdbR.js";import"./CheckCircle-BQ_BsFXT.js";import"./Monitor01-B2hjJJ-O.js";import"./Zap-D0gg60Xv.js";import"./command-ByEG2lpR.js";import"./index-gXWGEUwJ.js";import"./project-icon-CaBBGJPF.js";import"./use-navigate-to-agent-DG4RRc2l.js";import"./use-debounced-value-Bd_QEBiw.js";import"./new-project-dialog-Czv5HvtS.js";import"./repository-picker-QBlZoWDu.js";import"./github-icon-Cd5dQEKt.js";import"./collection-search-DrspIufR.js";import"./BookOpen01-CQcU8DEw.js";import"./ShoppingBag01-onaGPnUG.js";import"./legacy-admin-welcome-dialog-DY8Bixis.js";import"./drawer-D7zE3h2P.js";import"./required-auth-layout-DQ6ys2Lb.js";import"./use-org-sso-C1PNiOLX.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-P6d9M0PC.js";import"./types-FZCQuIv_.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./AlertCircle-zr0wX6rF.js";import"./use-mcp-prompts-YffkWL7I.js";import"./use-thread-outputs-hVznlgM2.js";import"./file-type-icon-DVZfJOKC.js";import"./index-DaVJsKZ7.js";import"./ArrowUp-elivCbuw.js";import"./ChevronSelectorVertical-CWcLLogC.js";import"./CreditCard01-5LLU-cS_.js";import"./Minus-DWgslVyP.js";import"./Sun-CEK9L4UW.js";import"./Upload01-B5OG3xe6.js";import"./Users01-DaLahyDL.js";import"./editor-B0kphvbT.js";import"./auth-Dpio94p4.js";import"./checkbox-CVml-3os.js";import"./index-BdQq_4o_.js";import"./scroll-area-BhLv10mq.js";import"./calendar-B5V9ahxZ.js";import"./chart-CxiHJ7Yx.js";import"./CategoricalChart-CuZXhd65.js";import"./index-PstEiCy7.js";import"./tooltipContext-C1F2kuWH.js";import"./CartesianChart-GQIn_cdf.js";import"./AreaChart-B2N9Bcti.js";import"./infiniteQueryObserver-C3DB8A3F.js";import"./useQueries-BDKcwXY5.js";import"./ReferenceLine-BTwFdzkB.js";import"./feature-paywall-6uSnqIFO.js";import"./plan-ladder-B-kol46S.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Is(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
|
|
4
4
|
|
package/dist/client/assets/{infiniteQueryObserver-Bitq8wqo.js → infiniteQueryObserver-C3DB8A3F.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e0 as g,e1 as d,e2 as v}from"./index-
|
|
1
|
+
import{e0 as g,e1 as d,e2 as v}from"./index-D8HDDDUz.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,i2 as de,b as Z,i3 as ue,r as le,i4 as xe,i5 as re,gD as T,gT as W,B as J,dY as V,a7 as pe}from"./index-DkcRNYY4.js";import{i as he}from"./CreditCard01-DANJ2Q0i.js";import{B as L}from"./badge-Bec4Z79_.js";import{M as je}from"./multi-select-DME84cUe.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-DVeciAl9.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-B6gmAyVe.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-Ydd3fzeG.js";import{T as De}from"./Tooltip-CPqx6foD.js";import{a as _e,A as Me}from"./AreaChart-BeQ7O-oz.js";import{c2 as Re}from"./CategoricalChart-DeS4pERs.js";import{R as Le}from"./require-capability-CbgooziO.js";import"./checkbox-DcSwaw9N.js";import"./Minus-CzyQFk6M.js";import"./ChevronUp-EmQwLtzg.js";import"./command-BtcP4IBQ.js";import"./index-DKvQA4se.js";import"./SearchMd-DcWhidrm.js";import"./popover-DGUQnbhk.js";import"./index-BdQq_4o_.js";import"./index-DK-8s7Az.js";import"./index-CAJpA_Gg.js";import"./access-gate-DKCp0oSn.js";import"./capability-load-error-Cg21B6QM.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 Y(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=Z(),{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(Y(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Y(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ye)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=Oe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const G=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(G.length>0?1:0)>1,K=Y(u,"pageviews"),se=K>0?Y(u,"requests")/K:0,me=B&&v&&K>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(qe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let q;t[33]!==e||t[34]!==b?(q=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=q):q=t[35];let O;return t[36]!==r?.usageUnavailable||t[37]!==e?(O=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=O):O=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,q,O,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ze,{team:c,showSites:te},c.siteSlugs.join(","))),G.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:G.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function qe(t){return{label:t,value:t}}function Oe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ye(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ze(t){const e=k.c(13),{team:n,showSites:l}=t,o=Z(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(L,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ge,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ge(t){const e=k.c(40),{invoices:n}=t,l=Z();let o;e[0]!==n?(o=n.some(Ke),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(We,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function Ke(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function We(t){const e=k.c(14),{status:n}=t,l=Z(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(L,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(L,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function vt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{vt as default};
|
|
1
|
+
import{c as k,j as s,i2 as de,b as Z,i3 as ue,r as le,i4 as xe,i5 as re,gD as T,gT as W,B as J,dY as V,a7 as pe}from"./index-D8HDDDUz.js";import{i as he}from"./CreditCard01-5LLU-cS_.js";import{B as L}from"./badge-DQH-sPh3.js";import{M as je}from"./multi-select-jJMhnt_d.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-CpVl3_2f.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table--WoW2Lor.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-GQIn_cdf.js";import{T as De}from"./Tooltip-2DMIJ5gg.js";import{a as _e,A as Me}from"./AreaChart-B2N9Bcti.js";import{c2 as Re}from"./CategoricalChart-CuZXhd65.js";import{R as Le}from"./require-capability-DR0RkcLX.js";import"./checkbox-CVml-3os.js";import"./Minus-DWgslVyP.js";import"./ChevronUp-DKklQ3bJ.js";import"./command-ByEG2lpR.js";import"./index-gXWGEUwJ.js";import"./SearchMd-DDfy6PV0.js";import"./popover-BvzfBeCD.js";import"./index-BdQq_4o_.js";import"./index-DaVJsKZ7.js";import"./index-PstEiCy7.js";import"./access-gate-DpTCyI4G.js";import"./capability-load-error-Cy1nsQed.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 Y(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=Z(),{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(Y(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Y(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ye)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=Oe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const G=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(G.length>0?1:0)>1,K=Y(u,"pageviews"),se=K>0?Y(u,"requests")/K:0,me=B&&v&&K>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(qe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let q;t[33]!==e||t[34]!==b?(q=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=q):q=t[35];let O;return t[36]!==r?.usageUnavailable||t[37]!==e?(O=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=O):O=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,q,O,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ze,{team:c,showSites:te},c.siteSlugs.join(","))),G.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:G.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function qe(t){return{label:t,value:t}}function Oe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ye(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ze(t){const e=k.c(13),{team:n,showSites:l}=t,o=Z(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(L,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ge,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ge(t){const e=k.c(40),{invoices:n}=t,l=Z();let o;e[0]!==n?(o=n.some(Ke),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(We,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function Ke(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function We(t){const e=k.c(14),{status:n}=t,l=Z(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(L,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(L,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function vt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{vt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,r as C,b as G,j as h,t as A,a5 as ye,x as xe,aT as ke,w as we,B as be,v as Pe,D as Ce,q as le,a4 as ce,K as Y,E as Q,gi as ue,gj as re,gk as z,m as _e}from"./index-DkcRNYY4.js";import{S as de,s as Se}from"./suggestion-DKq9tnks.js";import{K as Fe,t as De,A as Ie,p as B,L as je,P as ne,O as ve,h as Me,a as Le,Q as Re,o as Ee,l as Ae,F as Ne,s as Te,E as Qe}from"./usage-stats-D6OFaO8E.js";import{a$ as Oe}from"./agent-icon-Clk7SRdQ.js";import"./chat-context-2_7VL2Se.js";import{m as $e,i as Ue,b as qe}from"./index-B3ab16ZV.js";import{u as me}from"./use-mcp-client-DFeSZL8q.js";import{a as Ke}from"./repository-binding-BLl1r28B.js";import{g as se,s as fe}from"./tool-namespace-8W3F8hsl.js";import{l as oe,g as pe}from"./use-mcp-prompts-BTRRV8Ft.js";import{f as ze,b as Be}from"./use-org-fs-BVX55_QU.js";async function He(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(!Ue(l,e)){const g=qe(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,S)=>Je(d,b,S,(_,j)=>l.current(_,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(We);return S.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const j of S){const I=j.getAsFile();I&&(await l.current?.(I,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const S=r?.modelName??"";let _;e[19]!==i||e[20]!==S?(_=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=_):_=e[21];let j;e[22]!==_?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=j):j=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const L=r?.accepted;let D;e[25]!==L?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:L})]}),e[25]=L,e[26]=D):D=e[26];let a;e[27]!==j||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=Ke();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),S=C.useRef(null),_=C.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const L=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const U=v;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async $=>{const{item:w,range:K}=$;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(_.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,K,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,K,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const q=O;let y;e[34]!==g||e[35]!==U||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async $=>{const{query:w}=$,K=F();if(K==="categories"){if(!w.trim())return U;const R=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...E,...X]}if(K==="agents"){let R=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(R)||E.name?.toLowerCase().includes(R)||E.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=U,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=$=>{if(i&&(i.current=$),$)S.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=S.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),S.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),A.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),A.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=je(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),A.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),S=C.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),S.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},j=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!ve(t,u.pos,u.promptId)){A.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},L=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),v=f.trim().toLowerCase(),U=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...U,...O,...q]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),Se.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ae,Ne]}function Ct({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=C.useRef(o),k=C.useRef(e),m=C.useRef(s),p=C.useRef(i),n=Le({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return C.useEffect(()=>{n?.setEditable(!r)},[n,r]),C.useEffect(()=>{g.current=o},[o]),C.useEffect(()=>{k.current=e},[e]),C.useEffect(()=>{m.current=s},[s]),C.useEffect(()=>{p.current=i},[i]),C.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Re.Provider,{value:{editor:n},children:c})}function _t(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==k||e[4]!==b||e[5]!==F?(S=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=S):S=e[6];let _;e[7]!==n||e[8]!==S?(_=h.jsx(Qe,{editor:n,className:S}),e[7]=n,e[8]=S,e[9]=_):_=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const L=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==L?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:L,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=L,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{Ct as T,bt as U,_t as a,He as p,Pt as u};
|
|
1
|
+
import{c as H,r as C,b as G,j as h,t as A,a5 as ye,x as xe,aT as ke,w as we,B as be,v as Pe,D as Ce,q as le,a4 as ce,K as Y,E as Q,gi as ue,gj as re,gk as z,m as _e}from"./index-D8HDDDUz.js";import{S as de,s as Se}from"./suggestion-D56UF_pQ.js";import{K as Fe,t as De,A as Ie,p as B,L as je,P as ne,O as ve,h as Me,a as Le,Q as Re,o as Ee,l as Ae,F as Ne,s as Te,E as Qe}from"./usage-stats-CphPEBVe.js";import{b0 as Oe}from"./agent-icon-mmszwibp.js";import"./chat-context-DdWQJl7N.js";import{m as Ue,i as $e,b as qe}from"./index-CBlU77jJ.js";import{u as me}from"./use-mcp-client-CluVMhVq.js";import{a as Ke}from"./repository-binding-Dv276sdb.js";import{g as se,s as fe}from"./tool-namespace-cagFCGCV.js";import{l as oe,g as pe}from"./use-mcp-prompts-YffkWL7I.js";import{f as ze,b as Be}from"./use-org-fs-BySi7x_E.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=qe(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,S)=>Je(d,b,S,(_,j)=>l.current(_,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(We);return S.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const j of S){const I=j.getAsFile();I&&(await l.current?.(I,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const S=r?.modelName??"";let _;e[19]!==i||e[20]!==S?(_=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=_):_=e[21];let j;e[22]!==_?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=j):j=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const L=r?.accepted;let D;e[25]!==L?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:L})]}),e[25]=L,e[26]=D):D=e[26];let a;e[27]!==j||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=Ke();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),S=C.useRef(null),_=C.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const L=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const $=v;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:K}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(_.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,K,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,K,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const q=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,K=F();if(K==="categories"){if(!w.trim())return $;const R=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...E,...X]}if(K==="agents"){let R=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(R)||E.name?.toLowerCase().includes(R)||E.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)S.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=S.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),S.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),A.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),A.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=je(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),A.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),S=C.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),S.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},j=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!ve(t,u.pos,u.promptId)){A.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},L=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),v=f.trim().toLowerCase(),$=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...q]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),Se.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ae,Ne]}function Ct({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=C.useRef(o),k=C.useRef(e),m=C.useRef(s),p=C.useRef(i),n=Le({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return C.useEffect(()=>{n?.setEditable(!r)},[n,r]),C.useEffect(()=>{g.current=o},[o]),C.useEffect(()=>{k.current=e},[e]),C.useEffect(()=>{m.current=s},[s]),C.useEffect(()=>{p.current=i},[i]),C.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Re.Provider,{value:{editor:n},children:c})}function _t(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==k||e[4]!==b||e[5]!==F?(S=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=S):S=e[6];let _;e[7]!==n||e[8]!==S?(_=h.jsx(Qe,{editor:n,className:S}),e[7]=n,e[8]=S,e[9]=_):_=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const L=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==L?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:L,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=L,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{Ct as T,bt as U,_t as a,He as p,Pt as u};
|