decocms 4.579.0 → 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-GXBIxFcm.js → AlertCircle-zr0wX6rF.js} +1 -1
- package/dist/client/assets/{AreaChart-BliO7z1O.js → AreaChart-B2N9Bcti.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BbqwGy0e.js → ArrowLeft-Bl_oOK1R.js} +1 -1
- package/dist/client/assets/{ArrowUp-DBkhb8Yz.js → ArrowUp-elivCbuw.js} +1 -1
- package/dist/client/assets/{BookOpen01-1fjc61Mm.js → BookOpen01-CQcU8DEw.js} +1 -1
- package/dist/client/assets/{CartesianChart-D_ikhSur.js → CartesianChart-GQIn_cdf.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DFr--lUX.js → CategoricalChart-CuZXhd65.js} +1 -1
- package/dist/client/assets/{CheckCircle-B_eEhqJR.js → CheckCircle-BQ_BsFXT.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-D-7E5GYT.js → ChevronSelectorVertical-CWcLLogC.js} +1 -1
- package/dist/client/assets/{ChevronUp-FDrusEQ7.js → ChevronUp-DKklQ3bJ.js} +1 -1
- package/dist/client/assets/{CreditCard01-KjySk-5G.js → CreditCard01-5LLU-cS_.js} +1 -1
- package/dist/client/assets/{Globe04-CYg8V2eL.js → Globe04-C_iZve3L.js} +1 -1
- package/dist/client/assets/{Key01-DY2gyLvd.js → Key01-D0p4-oSK.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CzDrAWsX.js → LinkBroken01-BTepcmNH.js} +1 -1
- package/dist/client/assets/{Minus-CMxaDSgl.js → Minus-DWgslVyP.js} +1 -1
- package/dist/client/assets/{Monitor01-3IwLMf0Q.js → Monitor01-B2hjJJ-O.js} +1 -1
- package/dist/client/assets/{Play-BOARoASB.js → Play-DuBKbsmQ.js} +1 -1
- package/dist/client/assets/{Plus-D452i-ki.js → Plus-CRtXbDBy.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BCPouREj.js → ReferenceLine-BTwFdzkB.js} +1 -1
- package/dist/client/assets/{SearchMd-D9VvymBK.js → SearchMd-DDfy6PV0.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DrNjYHL1.js → ShoppingBag01-onaGPnUG.js} +1 -1
- package/dist/client/assets/{Sun-BvPiksd_.js → Sun-CEK9L4UW.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BzX5npS9.js → SwitchHorizontal01-DzexFd3R.js} +1 -1
- package/dist/client/assets/{Tool01-DoE3EsIZ.js → Tool01-B0TI67n-.js} +1 -1
- package/dist/client/assets/{Tooltip-z7WiBKoc.js → Tooltip-2DMIJ5gg.js} +1 -1
- package/dist/client/assets/{Trash01-_1ewPMOO.js → Trash01-1vS11V6D.js} +1 -1
- package/dist/client/assets/{Upload01-D11ZXRKj.js → Upload01-B5OG3xe6.js} +1 -1
- package/dist/client/assets/{UserSquare-DHrzs2xN.js → UserSquare-BAJzbhuU.js} +1 -1
- package/dist/client/assets/{Users01-DdipP4E2.js → Users01-DaLahyDL.js} +1 -1
- package/dist/client/assets/{XClose-CR92HpkN.js → XClose-RigEwdbR.js} +1 -1
- package/dist/client/assets/{Zap-D5X_AlHR.js → Zap-D0gg60Xv.js} +1 -1
- package/dist/client/assets/{access-gate-CpF5setC.js → access-gate-DpTCyI4G.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DB2eDzSO.js → add-connection-dialog-BFjNmoUE.js} +1 -1
- package/dist/client/assets/agent-app-Bpqc5TKb.js +1 -0
- package/dist/client/assets/{agent-assets-CynthE6_.js → agent-assets-BZW4eVF1.js} +1 -1
- package/dist/client/assets/{agent-automation-1MlsXRHC.js → agent-automation-DeQnvGwK.js} +1 -1
- package/dist/client/assets/{agent-automations-Dol9sHiV.js → agent-automations-EY7zcVw5.js} +1 -1
- package/dist/client/assets/{agent-blog-Db3MOHTb.js → agent-blog-DB-VUOMq.js} +2 -2
- package/dist/client/assets/{agent-blog-post-BWxagJWC.js → agent-blog-post-C7YY31uh.js} +2 -2
- package/dist/client/assets/{agent-calendar-DgGhw5pC.js → agent-calendar-B8bUAVQB.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CtbwhlqH.js → agent-capabilities-DIA4hYXj.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-ByKpOl5Z.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-CmmnhpPI.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-BwXd7p-8.js → agent-file-YPpATd9K.js} +1 -1
- package/dist/client/assets/{agent-hosting-FxuGCE-9.js → agent-hosting-CveWqfNK.js} +1 -1
- package/dist/client/assets/{agent-icon-DPgCnEV1.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-CkbrqRyS.js → agent-releases-CJfKJEbr.js} +1 -1
- package/dist/client/assets/agent-settings-DOFZ9TlT.js +1 -0
- package/dist/client/assets/{agent-site-editor-ClFcVY3S.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-BCiwIORn.js → agent-view-guard-D3OOa7MK.js} +1 -1
- package/dist/client/assets/{ai-providers-bDAV58Mn.js → ai-providers-B59fTAqi.js} +1 -1
- package/dist/client/assets/{alert-DXhGyLVy.js → alert-BIXfxm9q.js} +1 -1
- package/dist/client/assets/{analytics-sections-DBGqAepm.js → analytics-sections-BbaWW2MU.js} +1 -1
- package/dist/client/assets/{api-keys-BNfyNQ7I.js → api-keys-B-fVnLBR.js} +1 -1
- package/dist/client/assets/api-keys-B7T782Eb.js +1 -0
- package/dist/client/assets/{app-editor-BiIR6cEw.js → app-editor-DqTsVzBi.js} +1 -1
- package/dist/client/assets/{asset-utils-C4P9UMw5.js → asset-utils-drPwMw_i.js} +1 -1
- package/dist/client/assets/{auth-DET1t4rk.js → auth-Dpio94p4.js} +1 -1
- package/dist/client/assets/{auth-catchall-Ds0jCVCs.js → auth-catchall-CFF3U0RI.js} +1 -1
- package/dist/client/assets/{auth-entry-CcoroHhc.js → auth-entry-LKpobRVJ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DyPur8S6.js → auth-split-layout-CAxtAhO0.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BcQblp8z.js → authenticate-and-persist-oauth-uFSi1ddd.js} +1 -1
- package/dist/client/assets/{automation-list-row-CUs_NzLP.js → automation-list-row-i2iBmqhL.js} +1 -1
- package/dist/client/assets/{automation-runs-CwfQCxx5.js → automation-runs-M9kcTzv1.js} +1 -1
- package/dist/client/assets/{automations-aHGSwKcI.js → automations-DVuSVNP2.js} +1 -1
- package/dist/client/assets/{badge-CPdAi539.js → badge-DQH-sPh3.js} +1 -1
- package/dist/client/assets/{block-document-Bbw2FP3P.js → block-document-CLjK5rGg.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CZpRdqcZ.js → blocks-preview-workspace-context-D5d1lCvq.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-B3rnTo7L.js → blocks-tab-states-BWSDyN-L.js} +1 -1
- package/dist/client/assets/{blog-preview-url-D9nceA8-.js → blog-preview-url-DrIHzDC1.js} +1 -1
- package/dist/client/assets/{blog-schema-CxC8Q-yf.js → blog-schema-Dud6I1hB.js} +1 -1
- package/dist/client/assets/{blog-source-gate-SOnwSY-u.js → blog-source-gate-DgI6bq3U.js} +1 -1
- package/dist/client/assets/{blog-view-gate-CbpRy_w3.js → blog-view-gate-B2-t_Jmu.js} +1 -1
- package/dist/client/assets/{buckets-sxg53sM-.js → buckets-BqsIwhzU.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-D_rPYtI9.js → build-improve-prompt-doc-CxH_m3ql.js} +1 -1
- package/dist/client/assets/{calendar-HFJ5axO1.js → calendar-B5V9ahxZ.js} +1 -1
- package/dist/client/assets/{capability-load-error-BCoAaz36.js → capability-load-error-Cy1nsQed.js} +1 -1
- package/dist/client/assets/{category-editor-BIsXNtK9.js → category-editor-uRLzcWX7.js} +1 -1
- package/dist/client/assets/{category-tree-BwBGBNEZ.js → category-tree-DSMV8uvW.js} +1 -1
- package/dist/client/assets/{chart-_XV_ZGbS.js → chart-CxiHJ7Yx.js} +1 -1
- package/dist/client/assets/{chat-context-DmIaWG0i.js → chat-context-DdWQJl7N.js} +1 -1
- package/dist/client/assets/{chat-draft-D5guZJ-Z.js → chat-draft-CHOcPtOp.js} +1 -1
- package/dist/client/assets/{checkbox-C6L9-jtU.js → checkbox-CVml-3os.js} +1 -1
- package/dist/client/assets/{choose-editor-D-ClYTuz.js → choose-editor-CJgNaynn.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CMqt_C6d.js → cli-auth-success-BSNEAo2d.js} +1 -1
- package/dist/client/assets/{client-icons-BrNyP8bx.js → client-icons-Cvv9MyID.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-Cm7lJgYR.js → cms-settings-editor-DOHwi8qO.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-CTNFCbln.js → cms-store-drafts-Co6hs1Gm.js} +1 -1
- package/dist/client/assets/{collapsible-SBMmc8E3.js → collapsible-ZjNF64KD.js} +1 -1
- package/dist/client/assets/{collection-detail-VM7vyobJ.js → collection-detail-CFrXFPV3.js} +1 -1
- package/dist/client/assets/{collection-display-button-DNT54OXz.js → collection-display-button-D7AaZ59Q.js} +1 -1
- package/dist/client/assets/{collection-search-DXnQxUGL.js → collection-search-DrspIufR.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BtWWhOUa.js → collection-table-wrapper-BTpP_R57.js} +1 -1
- package/dist/client/assets/{collection-tabs-BPEGrrum.js → collection-tabs-2wU6BwIq.js} +1 -1
- package/dist/client/assets/{combobox-B8oSfLQg.js → combobox-BdUyw8jq.js} +1 -1
- package/dist/client/assets/{command-ARXYIBtk.js → command-ByEG2lpR.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CrDXFS6p.js → companion-mcps-section-BpRA6d5a.js} +1 -1
- package/dist/client/assets/{config-FNjB2KQg.js → config-ViHsIgIA.js} +1 -1
- package/dist/client/assets/{connect-D7SeHA4r.js → connect-Aly-0ASI.js} +1 -1
- package/dist/client/assets/{connect-layout-ByVGILi-.js → connect-layout-CbUmd0fU.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-Di53RqvY.js → connect-source-dialog-BI_iSjsz.js} +1 -1
- package/dist/client/assets/{connection-BTlRsp1B.js → connection-Bmlh47OD.js} +1 -1
- package/dist/client/assets/{connection-card-DFMJTK3o.js → connection-card-IGbEiasZ.js} +1 -1
- package/dist/client/assets/{connection-detail-C-BChkKr.js → connection-detail-D7WtScT_.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B9Yi82ri.js → connection-form-helpers-CM8A7qxi.js} +1 -1
- package/dist/client/assets/{connection-slug-COimMHkq.js → connection-slug-rgdaPyVS.js} +1 -1
- package/dist/client/assets/{connections-fJDsaPLw.js → connections-8AsK7z6U.js} +1 -1
- package/dist/client/assets/{content-tab-BV39A4DC.js → content-tab-6WPOlhG9.js} +3 -3
- package/dist/client/assets/{context-DHTHUOqh.js → context-Dgx2LMji.js} +1 -1
- package/dist/client/assets/{context-menu-B-hlKiE1.js → context-menu-h4YtCxvM.js} +1 -1
- package/dist/client/assets/{context-shell-BGKkeMCB.js → context-shell-BbE88Tyf.js} +3 -3
- package/dist/client/assets/{core.esm-Hiw5xlkT.js → core.esm-BzH_Nko5.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-EtzNyw9E.js → create-organization-dialog-CnHhjS0p.js} +1 -1
- package/dist/client/assets/{delete-copy-Bt51Emir.js → delete-copy-pOul_Q0z.js} +1 -1
- package/dist/client/assets/{device-hint-DcULIlAN.js → device-hint-BQG6K9Hf.js} +1 -1
- package/dist/client/assets/{discover-B7EzX3Z4.js → discover-kJdAd045.js} +1 -1
- package/dist/client/assets/{domain-settings-CYdry1vA.js → domain-settings-Bs--YGSm.js} +1 -1
- package/dist/client/assets/{drawer-BUu3Urhv.js → drawer-D7zE3h2P.js} +1 -1
- package/dist/client/assets/{editor-Dc6skLlO.js → editor-B0kphvbT.js} +1 -1
- package/dist/client/assets/{editor-classes-BRb8pzNp.js → editor-classes-SfZ5uUGn.js} +1 -1
- package/dist/client/assets/{empty-message-uyJw_GDm.js → empty-message-DkX3rdbv.js} +1 -1
- package/dist/client/assets/{empty-state-CQ-naxDO.js → empty-state-DKuRC7c7.js} +1 -1
- package/dist/client/assets/{empty-state-yinauESn.js → empty-state-Deh8mRpo.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-n7UpEKSe.js → experiments-tab-choice-BBShWrmo.js} +1 -1
- package/dist/client/assets/{extract-connection-data-UTX_3j8w.js → extract-connection-data-BklHKw1M.js} +1 -1
- package/dist/client/assets/{feature-gate-Caiq88-a.js → feature-gate-BlKXdO61.js} +1 -1
- package/dist/client/assets/{feature-paywall-CgY8XcJe.js → feature-paywall-6uSnqIFO.js} +1 -1
- package/dist/client/assets/{file-explorer-Dt28l_Zt.js → file-explorer-CvkaKFET.js} +1 -1
- package/dist/client/assets/{file-preview-B_OweD07.js → file-preview-B39yfF4F.js} +1 -1
- package/dist/client/assets/{file-share-button-GtMerxGo.js → file-share-button-C2MhJgEK.js} +1 -1
- package/dist/client/assets/{file-type-icon-5sEsvuio.js → file-type-icon-DVZfJOKC.js} +1 -1
- package/dist/client/assets/{folder-icon-BkVkbSXN.js → folder-icon-Dtva_-KR.js} +1 -1
- package/dist/client/assets/{form-DQshgY6C.js → form-DnzJbdNw.js} +1 -1
- package/dist/client/assets/{frame-navigation-DCO55Sf7.js → frame-navigation-mE1IyLxt.js} +1 -1
- package/dist/client/assets/{general-BaBNqFUU.js → general-DUr6-t_c.js} +1 -1
- package/dist/client/assets/{github-icon-CsOyvsM3.js → github-icon-Cd5dQEKt.js} +1 -1
- package/dist/client/assets/{held-block-view-CZDHkd7I.js → held-block-view-HcOuBva8.js} +1 -1
- package/dist/client/assets/{home-Csg3jJI1.js → home-BcJ5qMwh.js} +1 -1
- package/dist/client/assets/{home-overview-BWPQ5B3f.js → home-overview-BEZlL4ib.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-BVY_PuHB.js → hosted-reconcile-DSYVUxqr.js} +1 -1
- package/dist/client/assets/{icon-button-DTP_l7w5.js → icon-button-CR6dftyf.js} +1 -1
- package/dist/client/assets/{index-D8htcGU7.js → index-AyKz2l6b.js} +1 -1
- package/dist/client/assets/{index-CoDU2Q4W.js → index-B1RqPkvO.js} +1 -1
- package/dist/client/assets/{index--NX8xaba.js → index-BpJqVb3l.js} +1 -1
- package/dist/client/assets/{index-B_-7lo18.js → index-C5bUqIA_.js} +1 -1
- package/dist/client/assets/{index-D9OoYQHh.js → index-CBlU77jJ.js} +1 -1
- package/dist/client/assets/{index-BUzNTivf.js → index-CDiUvHd3.js} +1 -1
- package/dist/client/assets/{index-TayDSkqp.js → index-CU2-l5Z1.js} +1 -1
- package/dist/client/assets/{index-PfzOl7J6.js → index-D8HDDDUz.js} +5 -5
- package/dist/client/assets/{index-BtBKqC_9.js → index-DGscs1DX.js} +1 -1
- package/dist/client/assets/{index-BxZUC_i-.js → index-DOkOhXW8.js} +1 -1
- package/dist/client/assets/{index-Chdoy1DO.js → index-DaVJsKZ7.js} +1 -1
- package/dist/client/assets/{index-xX6vrZ6Z.js → index-De51YIVR.js} +1 -1
- package/dist/client/assets/{index-DpynbW7T.js → index-PstEiCy7.js} +1 -1
- package/dist/client/assets/{index-yk7iwtzd.js → index-b6QIszGC.js} +1 -1
- package/dist/client/assets/{index-Cwblfb1K.js → index-gXWGEUwJ.js} +1 -1
- package/dist/client/assets/{index-DThhcUFE.js → index-odrPj5u2.js} +1 -1
- package/dist/client/assets/{index-redirect-BkFuXXfk.js → index-redirect-Dj3mFirc.js} +1 -1
- package/dist/client/assets/{index-COp-j3NW.js → index-uoYFNgrb.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BSITs4kU.js → infiniteQueryObserver-C3DB8A3F.js} +1 -1
- package/dist/client/assets/{infra-billing-BoDxU99n.js → infra-billing-Dv0Y4nq2.js} +1 -1
- package/dist/client/assets/{input-D81euCkI.js → input-B9-LxoR8.js} +1 -1
- package/dist/client/assets/{input-CHXvb5rt.js → input-DCkWhN8u.js} +3 -3
- package/dist/client/assets/{integration-icon-Cypf7ART.js → integration-icon-D10Wu8in.js} +1 -1
- package/dist/client/assets/{item-actions-8EnEtcgh.js → item-actions-ChF-Wajz.js} +1 -1
- package/dist/client/assets/{jira-icon-QIwPAzLK.js → jira-icon-BTl7-hxa.js} +1 -1
- package/dist/client/assets/{label-C3bFtEDk.js → label-C6Eod_61.js} +1 -1
- package/dist/client/assets/{layout-BQNYAbQM.js → layout-KD23pdsL.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-BndvejSa.js → legacy-admin-welcome-dialog-DY8Bixis.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Dl3vADCo.js → legacy-agents-deep-DqEHBKxS.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-ChiwiSS2.js → legacy-main-redirect-xIr91LSW.js} +1 -1
- package/dist/client/assets/library-1Y_LcuJb.js +1 -0
- package/dist/client/assets/{library-tab-CrYnUaco.js → library-tab-C-gyz3ep.js} +1 -1
- package/dist/client/assets/{login-rcDgqa7Z.js → login-LU1xbL-m.js} +1 -1
- package/dist/client/assets/{markdown-sfCsYKJ3.js → markdown-xlCS0Umn.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D149puyc.js → mcp-app-renderer-P6d9M0PC.js} +1 -1
- package/dist/client/assets/{mcp-oauth-jwlMSPw2.js → mcp-oauth-B7XWBzzN.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CSBTsyXo.js → mcp-oauth-B_8eWy31.js} +1 -1
- package/dist/client/assets/{members-CelJ91W8.js → members-TkhB8ase.js} +1 -1
- package/dist/client/assets/{memory-78oDfUbY.js → memory-0HN4vn-X.js} +1 -1
- package/dist/client/assets/{mock-board-1wwE7bgl.js → mock-board-DEylkukw.js} +3 -3
- package/dist/client/assets/{monaco-editor-CdzTj7u7.js → monaco-editor-D37e6fWN.js} +1 -1
- package/dist/client/assets/{monitoring-CMxjfhWD.js → monitoring-CWDPvUi9.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DQq79-Av.js → monitoring-stats-row-BaRGE1me.js} +1 -1
- package/dist/client/assets/{multi-select-DuhSvGkq.js → multi-select-jJMhnt_d.js} +1 -1
- package/dist/client/assets/{mustache-7iPTegv4.js → mustache-B5ZYo9QF.js} +1 -1
- package/dist/client/assets/{named-rule-step-osjl7ntJ.js → named-rule-step-DxjJGQ3W.js} +1 -1
- package/dist/client/assets/{named-rule-view-BLodRfDS.js → named-rule-view-UfrOXS5F.js} +1 -1
- package/dist/client/assets/{new-project-dialog-ddGWO7oU.js → new-project-dialog-Czv5HvtS.js} +1 -1
- package/dist/client/assets/{oauth-callback-O0HaoPhW.js → oauth-callback-PiEldV4w.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-lqjcXm4x.js → oauth-callback-ai-provider-DUkKBpBm.js} +1 -1
- package/dist/client/assets/{oauth-consent-N41ISlqj.js → oauth-consent-CKXF9rY9.js} +1 -1
- package/dist/client/assets/{onboarding-5wyvG1ND.js → onboarding-ACGqZ934.js} +1 -1
- package/dist/client/assets/{openai-conversation-CHwDAykX.js → openai-conversation-BrQdLDfo.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-1aPoGedf.js → optimistic-project-sidebar-views-wCpU8FHx.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BETRE7hY.js → order-monitor-day-az11vn38.js} +1 -1
- package/dist/client/assets/{organization-choice-xEY1ZwIn.js → organization-choice-B4DvsWTU.js} +1 -1
- package/dist/client/assets/{orgs-BV4-A9Pr.js → orgs-BcVTs2Na.js} +1 -1
- package/dist/client/assets/{own-accounts-section-DY9RNK5U.js → own-accounts-section-C9C2gCIB.js} +1 -1
- package/dist/client/assets/{pair-4_jIXzEz.js → pair-CBh8Ssld.js} +1 -1
- package/dist/client/assets/{parse-sections-Crm8e-1O.js → parse-sections-HRX0mYs4.js} +2 -2
- package/dist/client/assets/{plan-TSt9lDnY.js → plan-D-fnFfEU.js} +1 -1
- package/dist/client/assets/{plan-ladder-6lanq0kZ.js → plan-ladder-B-kol46S.js} +1 -1
- package/dist/client/assets/{plan-usage-card-qPS6Eqeb.js → plan-usage-card-C1wYjY71.js} +1 -1
- package/dist/client/assets/{popover-BBhzRgR6.js → popover-BvzfBeCD.js} +1 -1
- package/dist/client/assets/{post-calendar-XeIGYeqg.js → post-calendar-DGT8MPVI.js} +1 -1
- package/dist/client/assets/{post-editor-Cuw86g74.js → post-editor-CJ6LWCYX.js} +1 -1
- package/dist/client/assets/{preview-content-CdaarV-M.js → preview-content-Dg6p6zYi.js} +1 -1
- package/dist/client/assets/{preview-dialog-eUjd7KAO.js → preview-dialog-C6UJFd8t.js} +1 -1
- package/dist/client/assets/{preview-panel-DOASEmB8.js → preview-panel-XviDcPal.js} +1 -1
- package/dist/client/assets/{preview-tab-DHUmCnt8.js → preview-tab-Bsa49d5X.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-z_7jLJp3.js → product-picker-dialog-YdUbY-7g.js} +1 -1
- package/dist/client/assets/{profile-Q_Uil_2O.js → profile-CePaZKJY.js} +1 -1
- package/dist/client/assets/{project-app-view-B_pnPMK9.js → project-app-view-DfiChkFV.js} +1 -1
- package/dist/client/assets/{project-apps-DOmYqPIW.js → project-apps-C9_2F9T-.js} +1 -1
- package/dist/client/assets/{project-icon-DdcX-1Cu.js → project-icon-CaBBGJPF.js} +1 -1
- package/dist/client/assets/{project-index-CvnWioTG.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-BnupWVNC.js → projects-CO4WaEwj.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BBAZx24q.js → projects-empty-state-C5B5zjIl.js} +1 -1
- package/dist/client/assets/{prompts-CtCcnkuf.js → prompts-BjcWFXkv.js} +1 -1
- package/dist/client/assets/{record-editor-kAlyd6wn.js → record-editor-CjT1Sg-6.js} +1 -1
- package/dist/client/assets/{redirect-editor-G5HzKFY7.js → redirect-editor-OA8-5zJv.js} +1 -1
- package/dist/client/assets/{reports-CCeLAtH1.js → reports-BQZNrA6z.js} +1 -1
- package/dist/client/assets/reports-CwkGwbxw.js +1 -0
- package/dist/client/assets/{reports-onboarding-CihuSs_4.js → reports-onboarding-Bo8neYb7.js} +1 -1
- package/dist/client/assets/{reports-tab-CxCo6ljz.js → reports-tab-DgZa_ici.js} +2 -2
- package/dist/client/assets/repositories-BD2JywIJ.js +1 -0
- package/dist/client/assets/{repositories-Cr0Vmqsy.js → repositories-aSnJEtAN.js} +1 -1
- package/dist/client/assets/{repository-binding-BjyWZpYn.js → repository-binding-Dv276sdb.js} +1 -1
- package/dist/client/assets/{repository-picker-BQKFq3La.js → repository-picker-QBlZoWDu.js} +1 -1
- package/dist/client/assets/{require-capability-Ca04y4iT.js → require-capability-DR0RkcLX.js} +1 -1
- package/dist/client/assets/{required-auth-layout-rj346c5-.js → required-auth-layout-DQ6ys2Lb.js} +1 -1
- package/dist/client/assets/{reset-password-CJ8Ib39J.js → reset-password-Cey_yJ7E.js} +1 -1
- package/dist/client/assets/{resizable-BWGQtKDK.js → resizable-B8_D-RUQ.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon--gm9VDQf.js → resolve-tab-icon-BR3-CACo.js} +1 -1
- package/dist/client/assets/{review-settings-DKHV4WWw.js → review-settings-oSfLAO7Q.js} +1 -1
- package/dist/client/assets/{role-color-h7pbmUj8.js → role-color-BUSBfkmC.js} +1 -1
- package/dist/client/assets/{roles-33JtztJp.js → roles-CjDfMF0i.js} +1 -1
- package/dist/client/assets/{route-esSEnbHB.js → route-8L849BD5.js} +1 -1
- package/dist/client/assets/{route-B2mhSQ66.js → route-K2NA94TK.js} +1 -1
- package/dist/client/assets/route-hkkxUpPa.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-ciVvS_mf.js → sandbox-lifecycle-context-D0Fc_zJJ.js} +1 -1
- package/dist/client/assets/{save-status-YxsSW2Rs.js → save-status-1UoG7f0k.js} +1 -1
- package/dist/client/assets/{schema-CWJkmqKK.js → schema-CFwkIhKP.js} +1 -1
- package/dist/client/assets/{schema-MF7uKk3F.js → schema-gPek6tvx.js} +1 -1
- package/dist/client/assets/{scroll-area-D0b5TYGa.js → scroll-area-BhLv10mq.js} +1 -1
- package/dist/client/assets/{search-input-CfjxHAmm.js → search-input-CLSXdutD.js} +1 -1
- package/dist/client/assets/{search-toggle-CvrrivM1.js → search-toggle-DukKK1PI.js} +1 -1
- package/dist/client/assets/{secret-picker-Bh-9Okys.js → secret-picker-BF4D31uF.js} +1 -1
- package/dist/client/assets/{secrets-BpaSArcv.js → secrets-DZpaifDz.js} +1 -1
- package/dist/client/assets/{section-array-field-YpT7n9vG.js → section-array-field-BtcjWtvt.js} +1 -1
- package/dist/client/assets/{sections-BDOnV4mD.js → sections-DiXXDwzo.js} +1 -1
- package/dist/client/assets/{sections-editor-e-APM9PR.js → sections-editor-Nvt7HB4y.js} +1 -1
- package/dist/client/assets/{select-DbxUTGle.js → select-CpVl3_2f.js} +1 -1
- package/dist/client/assets/{select-model-B_SYZDlx.js → select-model-BMlbS-e4.js} +1 -1
- package/dist/client/assets/{seo-editor-BAb4_SVN.js → seo-editor-M_gwXcCt.js} +1 -1
- package/dist/client/assets/{separator-C0AfeS3O.js → separator-DGA-poR7.js} +1 -1
- package/dist/client/assets/settings-tab-BOF9Hfhu.js +1 -0
- package/dist/client/assets/{sheet-BeOc3FAs.js → sheet-C6rtTUBz.js} +1 -1
- package/dist/client/assets/{shell-layout-QlUCYlok.js → shell-layout-DWWwIk_z.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BsBc3-Kf.js → site-draft-actions-D5Biudjs.js} +1 -1
- package/dist/client/assets/{site-draft-view-B2Uxv1of.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-Bw0qMl-K.js → site-editor-toast-BEWqoKlP.js} +1 -1
- package/dist/client/assets/{skills-DK12dTU3.js → skills-zwuWEnTI.js} +1 -1
- package/dist/client/assets/{slider-DWOCTsGO.js → slider-CBof_Q_V.js} +1 -1
- package/dist/client/assets/{sortable.esm-Bcfqg7Xt.js → sortable.esm-Dy1h1l2l.js} +1 -1
- package/dist/client/assets/{sso-BK-CwpIa.js → sso-DA1qOy6T.js} +1 -1
- package/dist/client/assets/{suggestion-DpDJqics.js → suggestion-D56UF_pQ.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DSWf_C0v.js → super-agent-icon-CN88o8hG.js} +1 -1
- package/dist/client/assets/{switch-CdoFqihq.js → switch-CG9p29mC.js} +1 -1
- package/dist/client/assets/{synced-repos-BBp6YhqW.js → synced-repos-ClnsQNcV.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BA-Ya2gQ.js → tab-icon-glyph-1_FRhmF-.js} +1 -1
- package/dist/client/assets/{table-DBeLX30i.js → table--WoW2Lor.js} +1 -1
- package/dist/client/assets/{tabs-BwIUi1Ro.js → tabs-CnNsL319.js} +1 -1
- package/dist/client/assets/{task-board-Dt94BxWj.js → task-board-DUfmZVQ7.js} +1 -1
- package/dist/client/assets/{task-route-BLTj-Kt_.js → task-route-BZiSHzMD.js} +1 -1
- package/dist/client/assets/{task-status-COZT_U35.js → task-status-DckguLMB.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DTwKCUBR.js → taskboard-analytics-EKZ_Hvd3.js} +1 -1
- package/dist/client/assets/tasks-B2EqX_zH.js +1 -0
- package/dist/client/assets/{tasks-BSIA3XNt.js → tasks-ChO6GiZ2.js} +1 -1
- package/dist/client/assets/{textarea-0zeG6rdh.js → textarea-Cgu68q3w.js} +1 -1
- package/dist/client/assets/{thread-analytics-e-DAlOc7.js → thread-analytics-D56cWHrl.js} +1 -1
- package/dist/client/assets/{thread-intent-k_EWWvIp.js → thread-intent-DFlRKb26.js} +1 -1
- package/dist/client/assets/{thread-route-bIv-22ov.js → thread-route-BRv2L7da.js} +1 -1
- package/dist/client/assets/{thread-route-T4ycKium.js → thread-route-CCB-rd-1.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D5ENmZN2.js → thread-sheet-body-CLb6QMKy.js} +1 -1
- package/dist/client/assets/{time-range-picker-l-A1yfsB.js → time-range-picker-DJQsn3p1.js} +1 -1
- package/dist/client/assets/{toggle-group-BR3YjLpg.js → toggle-group-lGOrFANX.js} +1 -1
- package/dist/client/assets/{tool-namespace-nlvRAMHv.js → tool-namespace-cagFCGCV.js} +1 -1
- package/dist/client/assets/{tool-set-selector-iLTKI2dh.js → tool-set-selector-B71rNLSq.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-C1sAn-5j.js → toolbar-icon-button-jXG-KQc2.js} +1 -1
- package/dist/client/assets/{tooltip-7oUFzrc9.js → tooltip-BZFegydB.js} +1 -1
- package/dist/client/assets/{tooltipContext-BnluVbPZ.js → tooltipContext-C1F2kuWH.js} +1 -1
- package/dist/client/assets/{track-ClTfqB2h.js → track-lfFXhuhn.js} +1 -1
- package/dist/client/assets/{types-CT2b_f_n.js → types-FZCQuIv_.js} +1 -1
- package/dist/client/assets/{url-slug-DlwXWMoY.js → url-slug-B9Zc1vGv.js} +1 -1
- package/dist/client/assets/{usage-stats-DXQh2ym6.js → usage-stats-CphPEBVe.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BV-M-wTR.js → use-ai-providers-xj5bugI1.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-DVA8503u.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-CkOHisGI.js → use-automations-D1alWz_j.js} +1 -1
- package/dist/client/assets/{use-autosave-CMjKQ8gr.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-DYxnWGXI.js → use-chat-layout-state-DfKn-NxL.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BRuQD-xn.js → use-cms-publish-actions-3jMkJE3K.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Bz03TbqD.js → use-connect-companion-C_A5Vxk7.js} +1 -1
- package/dist/client/assets/{use-connection-b1ZFdIKu.js → use-connection-CU6X3Wkq.js} +1 -1
- package/dist/client/assets/{use-content-sync-J1DOMeIV.js → use-content-sync-DmmeRMs-.js} +1 -1
- package/dist/client/assets/{use-copy-MGOjhapZ.js → use-copy-Bn5xNYDY.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Db1-0fqy.js → use-date-fns-locale-BwLIR0jW.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-0ckPn95E.js → use-debounced-autosave-CsKCSmG6.js} +1 -1
- package/dist/client/assets/{use-debounced-value-L8Mvr3Qf.js → use-debounced-value-Bd_QEBiw.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CXHEdY4g.js → use-deco-credits-C0pODutp.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CExfz_YN.js → use-decopilot-events-BEba0iFr.js} +1 -1
- package/dist/client/assets/{use-delete-block-C4Fd-0fO.js → use-delete-block-C2VDoxSY.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CiHyt6_e.js → use-delete-connection-Dmwz6pLO.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D6ysmdql.js → use-deployment-admin-DBDDA5Db.js} +1 -1
- package/dist/client/assets/{use-entitlements-DKzKnO7t.js → use-entitlements-D_NXTAyp.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Rhzecu_l.js → use-fast-preview-draft-url-DO0FxQgi.js} +1 -1
- package/dist/client/assets/{use-file-configs-FzJwNbFB.js → use-file-configs-Css7VrGO.js} +1 -1
- package/dist/client/assets/{use-id-selection-DV-7Zfn_.js → use-id-selection-tdP-DqUr.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-P-dmKrll.js → use-inbox-feed-gupZrbXm.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D4cD1T3_.js → use-infinite-scroll-BW-rJXd9.js} +1 -1
- package/dist/client/assets/{use-join-requests-BZyMQ0xJ.js → use-join-requests-B4rRAy5i.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DTyQot8D.js → use-main-panel-tabs-1Vj7wm8E.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BzTNOh9a.js → use-mcp-auth-status-CCeGVwSv.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CVGnTbnR.js → use-mcp-client-CluVMhVq.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C72FS5ih.js → use-mcp-prompts-YffkWL7I.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DQ6qPp-q.js → use-mcp-tools-C1QW6bpR.js} +1 -1
- package/dist/client/assets/{use-mobile-Box5tF93.js → use-mobile-D2Sn1D9v.js} +1 -1
- package/dist/client/assets/{use-move-blocks-D_Vs6N9H.js → use-move-blocks-CWhuO9hg.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BFXAaVqR.js → use-navigate-to-agent-DG4RRc2l.js} +1 -1
- package/dist/client/assets/{use-never-published-D5jr8ByQ.js → use-never-published-D8nGboC4.js} +1 -1
- package/dist/client/assets/{use-org-fs-DhEmmAqR.js → use-org-fs-BySi7x_E.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D4_eFcdp.js → use-org-repo-syncs-CR3rL8dY.js} +1 -1
- package/dist/client/assets/{use-org-sso-PK2UdKUD.js → use-org-sso-C1PNiOLX.js} +1 -1
- package/dist/client/assets/{use-organization-settings-1gniuS7P.js → use-organization-settings-HcETy7Sy.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CWUPdvlx.js → use-project-native-view-presence-DwgE9Oo5.js} +1 -1
- package/dist/client/assets/{use-project-scope-RvpHL0s_.js → use-project-scope-C_D7G_Rp.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B7zKTjxf.js → use-recent-apps-h9IShd63.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Df9ZgP2V.js → use-reports-diagnostic-CKOsUeqn.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BV2Y1Vu8.js → use-sandbox-events-BRyRagyy.js} +1 -1
- package/dist/client/assets/{use-secrets-DE7J5I_l.js → use-secrets-BDiRf3Zk.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BJE9UobB.js → use-section-preview-base-C9b4a3IM.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BFQg4qhu.js → use-sidebar-collapsed-I4_8P9uh.js} +1 -1
- package/dist/client/assets/{use-tags-CV-rF5OD.js → use-tags-BLAg8Bt6.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BFgtA0eR.js → use-task-board-analytics-fe_SM3oJ.js} +1 -1
- package/dist/client/assets/{use-task-board-events-DMey0obH.js → use-task-board-events-DLrBUovp.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-B52UpU_u.js → use-task-board-item-prs-CwDomqDS.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BxTPwb-L.js → use-task-board-items-Bm6zwfzn.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BRQWf9Pf.js → use-task-board-prompts-CjwAHKAM.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CX5mjd3k.js → use-task-metadata-CM4snwYN.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-NzO2uf9T.js → use-thread-outputs-hVznlgM2.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-Czb3VJ2z.js → use-view-draft-kind-Bb6178QK.js} +1 -1
- package/dist/client/assets/{use-voice-input-CJwxrnH4.js → use-voice-input-4p-Pv-qm.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D3dviUwm.js +1 -0
- package/dist/client/assets/{useQueries-BTKHF006.js → useQueries-BDKcwXY5.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CX7nH5DS.js +1 -0
- package/dist/client/assets/{users-C1cmyiHr.js → users-JZFItgDj.js} +1 -1
- package/dist/client/assets/{utils-dLgjLO-5.js → utils-Cjet4zZt.js} +1 -1
- package/dist/client/assets/{variant-calendar-BFvdqyOs.js → variant-calendar-D2b6pfPb.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-uOKZ9bIk.js → variant-matcher-override-CNk4J4xE.js} +1 -1
- package/dist/client/assets/{view-header-g_I-xUvY.js → view-header-DeTc05o9.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CIFm7Ktp.js → virtual-mcp-Dhzw4N7R.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Cs81gduQ.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-FoPCQlJh.js +0 -1
- package/dist/client/assets/agent-deck-CYqAnEDO.js +0 -1
- package/dist/client/assets/agent-experiments-C0HV4Igp.js +0 -1
- package/dist/client/assets/agent-library-CZViQovH.js +0 -1
- package/dist/client/assets/agent-library-file-DC-34Ulj.js +0 -1
- package/dist/client/assets/agent-overview-DIMIEsnS.js +0 -1
- package/dist/client/assets/agent-settings-Ct-2qeci.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B_iiio_B.js +0 -2
- package/dist/client/assets/agent-site-editor-content-XnR2gN3f.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DuB0qtlm.js +0 -1
- package/dist/client/assets/agent-view-B8ACan0R.js +0 -1
- package/dist/client/assets/api-keys-BHoBmIeA.js +0 -1
- package/dist/client/assets/library-BRiige9x.js +0 -1
- package/dist/client/assets/project-reports-CjkBj3OZ.js +0 -1
- package/dist/client/assets/project-tasks-BR7DB76X.js +0 -1
- package/dist/client/assets/reports-BZMzVdGj.js +0 -1
- package/dist/client/assets/repositories-xVxXVGUl.js +0 -1
- package/dist/client/assets/route-L9WJSo8Z.js +0 -1
- package/dist/client/assets/settings-tab-BdJ07iEH.js +0 -1
- package/dist/client/assets/site-editor-CkLwv4jN.js +0 -1
- package/dist/client/assets/tasks-CbzokKrd.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BNelLcsB.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-DwFetary.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BVraOGoC.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Ta5X_y4e.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-BSITs4kU.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-PfzOl7J6.js";import{i as he}from"./CreditCard01-KjySk-5G.js";import{B as L}from"./badge-CPdAi539.js";import{M as je}from"./multi-select-DuhSvGkq.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-DbxUTGle.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-DBeLX30i.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-D_ikhSur.js";import{T as De}from"./Tooltip-z7WiBKoc.js";import{a as _e,A as Me}from"./AreaChart-BliO7z1O.js";import{c2 as Re}from"./CategoricalChart-DFr--lUX.js";import{R as Le}from"./require-capability-Ca04y4iT.js";import"./checkbox-C6L9-jtU.js";import"./Minus-CMxaDSgl.js";import"./ChevronUp-FDrusEQ7.js";import"./command-ARXYIBtk.js";import"./index-Cwblfb1K.js";import"./SearchMd-D9VvymBK.js";import"./popover-BBhzRgR6.js";import"./index-BdQq_4o_.js";import"./index-Chdoy1DO.js";import"./index-DpynbW7T.js";import"./access-gate-CpF5setC.js";import"./capability-load-error-BCoAaz36.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-PfzOl7J6.js";import{S as de,s as Se}from"./suggestion-DpDJqics.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-DXQh2ym6.js";import{b0 as Oe}from"./agent-icon-DPgCnEV1.js";import"./chat-context-DmIaWG0i.js";import{m as Ue,i as $e,b as qe}from"./index-D9OoYQHh.js";import{u as me}from"./use-mcp-client-CVGnTbnR.js";import{a as Ke}from"./repository-binding-BjyWZpYn.js";import{g as se,s as fe}from"./tool-namespace-nlvRAMHv.js";import{l as oe,g as pe}from"./use-mcp-prompts-C72FS5ih.js";import{f as ze,b as Be}from"./use-org-fs-DhEmmAqR.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};
|
|
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};
|