decocms 4.449.0 → 4.450.0
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-Bx6Xy-Kw.js → AlertCircle-CfHvNlgZ.js} +1 -1
- package/dist/client/assets/{AreaChart-DQ7VB4Rk.js → AreaChart-DgRgPjRl.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BBlLaPEb.js → ArrowLeft-Bj2Vh3jF.js} +1 -1
- package/dist/client/assets/{ArrowUp-Dr4dZUTV.js → ArrowUp-BDwJ6lSJ.js} +1 -1
- package/dist/client/assets/{Building02-qqUg_lk7.js → Building02-Bqa8ze-O.js} +1 -1
- package/dist/client/assets/{CartesianChart-2IJlIK54.js → CartesianChart-C-1Ljn_q.js} +1 -1
- package/dist/client/assets/{Check-BhHmW1CL.js → Check-COzQ04E7.js} +1 -1
- package/dist/client/assets/{CheckCircle-DQ_Iwx7G.js → CheckCircle-Vb-xyxhE.js} +1 -1
- package/dist/client/assets/{ChevronUp-C6nGgzcV.js → ChevronUp-RdnkaZaK.js} +1 -1
- package/dist/client/assets/{Copy01-1J_cPh43.js → Copy01-DJrDIAgF.js} +1 -1
- package/dist/client/assets/{CreditCard01-CZJLSW5h.js → CreditCard01-N4OPgVDg.js} +1 -1
- package/dist/client/assets/{DotsVertical-DMzCTdNT.js → DotsVertical-D5rr2YQm.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BsMO1nqd.js → ErrorBarContext-BzHJmc6J.js} +1 -1
- package/dist/client/assets/{Image01-VqGHD62D.js → Image01-Ccx9C_Rg.js} +1 -1
- package/dist/client/assets/{Key01-3kquwPFB.js → Key01-B1Y8yy7Z.js} +1 -1
- package/dist/client/assets/{Line-C3wcRFDr.js → Line-CDHGyXU2.js} +1 -1
- package/dist/client/assets/{Link01-ZJZ8YMCs.js → Link01-Bh_PC3dO.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DLTNdGdq.js → LinkBroken01-xKKRxXlY.js} +1 -1
- package/dist/client/assets/{LinkExternal01-ByTglQMD.js → LinkExternal01-mH0kFM32.js} +1 -1
- package/dist/client/assets/{Monitor01-CjCwBipo.js → Monitor01-PBPlMgWr.js} +1 -1
- package/dist/client/assets/{Palette-DItfN1RT.js → Palette-KCM9-De7.js} +1 -1
- package/dist/client/assets/{Plus-jU4D0ULX.js → Plus-HBSdQYLn.js} +1 -1
- package/dist/client/assets/{SearchMd-yUpDH67q.js → SearchMd-BBjcQIvr.js} +1 -1
- package/dist/client/assets/{Sector-DADH10bp.js → Sector-BGpLXB4C.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BnqPHk8-.js → ShoppingBag01-CdLvneJ1.js} +1 -1
- package/dist/client/assets/{Sun-G5YUTpKk.js → Sun-BpeW1MoX.js} +1 -1
- package/dist/client/assets/{Tool01-DQZj0rVc.js → Tool01-Dz-lp6mO.js} +1 -1
- package/dist/client/assets/{Trash01-CfWaytgc.js → Trash01-C7BGYPNB.js} +1 -1
- package/dist/client/assets/{Upload01-ca0GgR0P.js → Upload01-Crj-EmOO.js} +1 -1
- package/dist/client/assets/{User01-BJgSr0na.js → User01-COdLotsN.js} +1 -1
- package/dist/client/assets/{UserSquare-DubBIV3t.js → UserSquare-BZc1G4LK.js} +1 -1
- package/dist/client/assets/{Users01-BI4qzwEi.js → Users01-6Yj_4D_n.js} +1 -1
- package/dist/client/assets/{X-4SjHAUB6.js → X-BpUF7FNJ.js} +1 -1
- package/dist/client/assets/{XAxis-6QdhlFSd.js → XAxis-DHX42RQV.js} +1 -1
- package/dist/client/assets/{XClose-B5gtMDn3.js → XClose-CYHY5GcG.js} +1 -1
- package/dist/client/assets/{ZoomOut-o5Bj_0k0.js → ZoomOut-BvLQLuGR.js} +1 -1
- package/dist/client/assets/{access-gate-CVOkVcAR.js → access-gate-m2qtNNPd.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-C9teNzj3.js → add-connection-dialog-BKu4JrTL.js} +1 -1
- package/dist/client/assets/{agent-analytics-pnZ5kkw4.js → agent-analytics-vEDyxY7n.js} +1 -1
- package/dist/client/assets/agent-app-DnEVoEjI.js +1 -0
- package/dist/client/assets/{agent-assets-CkTPoTPt.js → agent-assets-DPX4xJR-.js} +1 -1
- package/dist/client/assets/{agent-automation-IkGTi12K.js → agent-automation-q5wiAOx3.js} +1 -1
- package/dist/client/assets/{agent-automations-CeOlf6kC.js → agent-automations-CLGqAcAP.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CE8WWO21.js → agent-connect-sources-D9DCAQIR.js} +1 -1
- package/dist/client/assets/agent-deck-BczWleOc.js +1 -0
- package/dist/client/assets/{agent-e2e-CqzK8bNw.js → agent-e2e-DGk0x04T.js} +1 -1
- package/dist/client/assets/{agent-experiments-y5AB7gNs.js → agent-experiments-D65zJ4jN.js} +1 -1
- package/dist/client/assets/{agent-file-CaQOAUU8.js → agent-file-B9SJnbYJ.js} +1 -1
- package/dist/client/assets/{agent-git-B3hEpRLE.js → agent-git-CJxYwcoX.js} +1 -1
- package/dist/client/assets/{agent-hosting-k179Ejew.js → agent-hosting-UMq8FCPI.js} +1 -1
- package/dist/client/assets/{agent-icon-Plx0vVQZ.js → agent-icon-Cs5o_QD_.js} +1 -1
- package/dist/client/assets/agent-library-D54-cgPN.js +1 -0
- package/dist/client/assets/agent-library-file-DeLY3SxR.js +1 -0
- package/dist/client/assets/{agent-monitor-_UheQa-B.js → agent-monitor-Dy_K0ub4.js} +1 -1
- package/dist/client/assets/{agent-overview-bLRGU593.js → agent-overview-DgMmZowY.js} +1 -1
- package/dist/client/assets/agent-settings-BrnBZqdX.js +1 -0
- package/dist/client/assets/{agent-site-editor-DVenLdmy.js → agent-site-editor-C76UAYYm.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-ClZXgoqS.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-GMuyS7LS.js → agent-site-editor-content-CPY5DcAt.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-fQwmql9B.js → agent-site-editor-preview-uCP-Axlu.js} +3 -3
- package/dist/client/assets/agent-view-CB7GVVHY.js +1 -0
- package/dist/client/assets/{agent-view-guard-BwrmGLlw.js → agent-view-guard-Dz25zh4B.js} +1 -1
- package/dist/client/assets/{agents-list-C3sXvejj.js → agents-list-C7koOCD-.js} +1 -1
- package/dist/client/assets/{ai-providers-CedLyqka.js → ai-providers-mt2APKAD.js} +1 -1
- package/dist/client/assets/{alert-FpVcsSTC.js → alert-DTtquKm0.js} +1 -1
- package/dist/client/assets/{alert-dialog-CRVM-23V.js → alert-dialog-BZP1AD0I.js} +1 -1
- package/dist/client/assets/{analytics-sections-rbnTnuvD.js → analytics-sections-BCXDounI.js} +1 -1
- package/dist/client/assets/api-keys-B0lfuxgV.js +1 -0
- package/dist/client/assets/{api-keys-COeksGyn.js → api-keys-gXBnRr4Q.js} +1 -1
- package/dist/client/assets/app-editor-BeOyqqqi.js +1 -0
- package/dist/client/assets/{asset-utils-BZ8WEgo_.js → asset-utils-BciMW5G_.js} +1 -1
- package/dist/client/assets/{auth-BhL4Ae7M.js → auth-C1mOz7Cp.js} +1 -1
- package/dist/client/assets/{auth-catchall-CwYBELfP.js → auth-catchall-D1QDLQSo.js} +1 -1
- package/dist/client/assets/{auth-entry-AWWhawM-.js → auth-entry-CD9pgR2t.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DKZlsvJh.js → auth-split-layout-DTpd8fsO.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CM_sd9mo.js → authenticate-and-persist-oauth-jKlCQsjO.js} +1 -1
- package/dist/client/assets/{automation-list-row-BaZJos7Z.js → automation-list-row-CbqCS8l-.js} +1 -1
- package/dist/client/assets/{automation-runs-D8nbfNRi.js → automation-runs-Dl3yx598.js} +1 -1
- package/dist/client/assets/{automations-CSz4StRo.js → automations-BZBJG0Qn.js} +1 -1
- package/dist/client/assets/{autosend-CtvAncuN.js → autosend-BiJfUQUT.js} +1 -1
- package/dist/client/assets/{avatar-ZtrZA-xC.js → avatar-BIv_2mLm.js} +1 -1
- package/dist/client/assets/{badge-B0eiYJhc.js → badge-lEq6LpEb.js} +1 -1
- package/dist/client/assets/{block-document-BceCRczU.js → block-document-9tqq3gtP.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CHwgOgkC.js → blocks-preview-workspace-context-DANrcxW4.js} +1 -1
- package/dist/client/assets/{blog-schema-CswZLK88.js → blog-schema-CyOQeZHl.js} +1 -1
- package/dist/client/assets/{buckets-Gs1fVclo.js → buckets-BqkRKuz-.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Cb05TlMk.js → build-improve-prompt-doc-CbZ5gHs3.js} +1 -1
- package/dist/client/assets/{calendar-Cwshzk8E.js → calendar-DV2ELhqc.js} +1 -1
- package/dist/client/assets/{capability-load-error-CV82KOmw.js → capability-load-error-khp8kp3N.js} +1 -1
- package/dist/client/assets/{category-editor-BVh5TSwx.js → category-editor-BXpyvMT8.js} +1 -1
- package/dist/client/assets/{chart-DQHWQ1kS.js → chart-DZlYelqd.js} +1 -1
- package/dist/client/assets/{chat-context-CW-2SJ9g.js → chat-context-CuWiXF8M.js} +1 -1
- package/dist/client/assets/{chat-draft-CwKaZkWY.js → chat-draft-MjQajd4b.js} +1 -1
- package/dist/client/assets/{checkbox-Cs5VXlL7.js → checkbox-69BFI5HM.js} +1 -1
- package/dist/client/assets/{choose-editor-DYyB77HH.js → choose-editor-DOkI-i_1.js} +1 -1
- package/dist/client/assets/claim-phase-copy-DW6T-00N.js +1 -0
- package/dist/client/assets/{cli-auth-success-QlGAkecU.js → cli-auth-success-Oels3F-J.js} +1 -1
- package/dist/client/assets/{client-icons-B_Vdp-aH.js → client-icons-BhwVxJqX.js} +1 -1
- package/dist/client/assets/{collapsible-taXF9Vin.js → collapsible-BMQj5Dup.js} +1 -1
- package/dist/client/assets/{collection-detail-Dj6LHA84.js → collection-detail--UMVDw_e.js} +1 -1
- package/dist/client/assets/{collection-display-button-oMAXeg11.js → collection-display-button-A4mEJyub.js} +1 -1
- package/dist/client/assets/{collection-search-De8chpSh.js → collection-search-DUZsfox8.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-yQxCbZDl.js → collection-table-wrapper-CJyPG0PT.js} +1 -1
- package/dist/client/assets/{collection-tabs-2Nn5b0UJ.js → collection-tabs-BYPXCgXS.js} +1 -1
- package/dist/client/assets/{column-rules-NVsxdRkm.js → column-rules-Cmy6j5D_.js} +1 -1
- package/dist/client/assets/{combobox-uWP-A1cr.js → combobox-BfrybbG7.js} +1 -1
- package/dist/client/assets/{command-Dj5wxXJe.js → command-BzdiaYU5.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DGa0mzqM.js → companion-mcps-section-BaryY-2L.js} +1 -1
- package/dist/client/assets/{config-CNoTk6kM.js → config-U1gvv_50.js} +1 -1
- package/dist/client/assets/{connect-CnaN_058.js → connect-CheBVLEk.js} +1 -1
- package/dist/client/assets/{connect-layout-1nOF0djv.js → connect-layout-CGfoXglM.js} +1 -1
- package/dist/client/assets/{connection-DCZz5J1M.js → connection-Byk90CG2.js} +1 -1
- package/dist/client/assets/{connection-card-DaZTNpcS.js → connection-card-CdUGcyiA.js} +1 -1
- package/dist/client/assets/{connection-detail-BZEZF1y2.js → connection-detail-DVhGbJ_P.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Dyc97_iQ.js → connection-form-helpers-CIUjUhAv.js} +1 -1
- package/dist/client/assets/{connections-DwyQu0E5.js → connections-D7nPZ_WD.js} +1 -1
- package/dist/client/assets/{context-Hy9lD2FY.js → context-CrR6BY7f.js} +1 -1
- package/dist/client/assets/{context-menu-D4sB9rRV.js → context-menu-n5XAPSQR.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BPk6MpO6.js → create-organization-dialog-Bt3iiYSK.js} +1 -1
- package/dist/client/assets/{daily-pulse-jC7QtChD.js → daily-pulse-DRfCbhaG.js} +1 -1
- package/dist/client/assets/{decopilot-CcCmg-UE.js → decopilot-Djx80CTZ.js} +1 -1
- package/dist/client/assets/{device-hint-DFIHePB4.js → device-hint-DIcIjg5e.js} +1 -1
- package/dist/client/assets/{dialog-DUkVOZIE.js → dialog-BK1Ueu93.js} +1 -1
- package/dist/client/assets/{discover-PHqRmlAb.js → discover-CjiCng93.js} +1 -1
- package/dist/client/assets/{domain-settings-DC07Bwzh.js → domain-settings-BqejR8AT.js} +1 -1
- package/dist/client/assets/{download-app-dialog-VBK5SfsW.js → download-app-dialog-wOlBcsxc.js} +1 -1
- package/dist/client/assets/{drawer-BE8-rjnv.js → drawer-u-W4g_nO.js} +1 -1
- package/dist/client/assets/{editor-Bicb4Bqw.js → editor-DOIu8213.js} +1 -1
- package/dist/client/assets/{empty-state-CGgBiEoz.js → empty-state-B5HnsrMX.js} +1 -1
- package/dist/client/assets/{empty-state-Lw6BWO66.js → empty-state-CwuzKy1b.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BqvnWkg5.js → extract-connection-data-lBq634kY.js} +1 -1
- package/dist/client/assets/{feature-gate-BIe5gsHR.js → feature-gate-C451yaSo.js} +1 -1
- package/dist/client/assets/{feature-paywall-DGxl3PI8.js → feature-paywall-Ly3_RQ_p.js} +1 -1
- package/dist/client/assets/{file-explorer-DuE7CaLg.js → file-explorer-BGyklvkh.js} +1 -1
- package/dist/client/assets/{file-preview-DwqtznxG.js → file-preview-B2Gly7zq.js} +1 -1
- package/dist/client/assets/{file-share-button-CGad6pvg.js → file-share-button-CUSzS93g.js} +1 -1
- package/dist/client/assets/{file-type-icon-CideAigq.js → file-type-icon-Ib_JQuvQ.js} +1 -1
- package/dist/client/assets/flat-project-ehtY7lK6.js +1 -0
- package/dist/client/assets/{folder-icon-C5v3kOW1.js → folder-icon-tWiqYLYb.js} +1 -1
- package/dist/client/assets/{form-esFIz8cn.js → form-nYJgRjCD.js} +1 -1
- package/dist/client/assets/{gateway-client-DdEB-W_0.js → gateway-client-BpCG924q.js} +1 -1
- package/dist/client/assets/{general-C9QQwa7q.js → general-CEwHM3rV.js} +1 -1
- package/dist/client/assets/{home-DHdEzmGE.js → home-CmbO8MKm.js} +1 -1
- package/dist/client/assets/{icon-button-BpPbhU8u.js → icon-button-D4H5x94G.js} +1 -1
- package/dist/client/assets/{index-pCZVwBrG.js → index-BAnyMtCQ.js} +1 -1
- package/dist/client/assets/{index-CFflVJHI.js → index-BEAvsXWJ.js} +1 -1
- package/dist/client/assets/{index-CfCqm3c8.js → index-BWmIYoGl.js} +1 -1
- package/dist/client/assets/{index-BP-g_hO2.js → index-C2J0aGyP.js} +1 -1
- package/dist/client/assets/{index-De_dnJRN.js → index-CGgVIw_7.js} +1 -1
- package/dist/client/assets/{index-BtEM8a9F.js → index-CYQqV4oD.js} +1 -1
- package/dist/client/assets/{index-B1zctMWM.js → index-Creb5Fal.js} +2 -2
- package/dist/client/assets/{index-km7ID5lM.js → index-CzSdBX-p.js} +1 -1
- package/dist/client/assets/{index-DD7q2zTd.js → index-D3Sn56HF.js} +1 -1
- package/dist/client/assets/{index-wBJ7lMpR.js → index-Do0LZXCE.js} +3 -3
- package/dist/client/assets/{index-DCuYoDHT.js → index-DpRTJH-I.js} +1 -1
- package/dist/client/assets/{index-CKkIU_55.js → index-DrzDi7N3.js} +1 -1
- package/dist/client/assets/{index-Cbn4vfz_.js → index-DxddTk14.js} +1 -1
- package/dist/client/assets/{index-_Pfw1M40.js → index-YPpUZW2G.js} +1 -1
- package/dist/client/assets/{index-CazcJ_7a.js → index-hVDNPnIj.js} +1 -1
- package/dist/client/assets/{index-redirect-DJCpFh35.js → index-redirect-BhVNihb9.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BBgKyTli.js → infiniteQueryObserver-D3SNQDlh.js} +1 -1
- package/dist/client/assets/{infra-billing-CT-SKwYV.js → infra-billing-DwoAbG-N.js} +1 -1
- package/dist/client/assets/{input-D1BEXHTl.js → input-B4_sU5tp.js} +1 -1
- package/dist/client/assets/{input-B3HVl7By.js → input-BKlAoViI.js} +1 -1
- package/dist/client/assets/{input-DsxQztmQ.js → input-Bv8cV8cl.js} +3 -3
- package/dist/client/assets/{integration-icon-B97YfXXZ.js → integration-icon-DhFk0v8h.js} +1 -1
- package/dist/client/assets/{label-Be_7Vms5.js → label-ycBnzzff.js} +1 -1
- package/dist/client/assets/{layout-HR14oaFC.js → layout-DmY5YpEN.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Cg0ho0FK.js → legacy-agents-deep-CIaqC-AF.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-B_6vW12N.js → legacy-main-redirect-Bgp7nu2i.js} +1 -1
- package/dist/client/assets/library-CN3vmNYC.js +1 -0
- package/dist/client/assets/{library-tab-tJXLlybm.js → library-tab-CBapuFEX.js} +1 -1
- package/dist/client/assets/{login-DaVQiw7H.js → login-BKGtEguK.js} +1 -1
- package/dist/client/assets/{markdown-BSYuVrvS.js → markdown-C0crjplB.js} +1 -1
- package/dist/client/assets/mcp-app-renderer-weTyRI6G.js +11 -0
- package/dist/client/assets/{mcp-oauth-Dt9pIBq5.js → mcp-oauth-DvzBEl8t.js} +1 -1
- package/dist/client/assets/{members-CHSwnC7s.js → members-D6M8al4X.js} +1 -1
- package/dist/client/assets/{memory-y99QmzFe.js → memory-DUEsb2C1.js} +1 -1
- package/dist/client/assets/{message-templates-xF6Z-DZJ.js → message-templates-80H103Z6.js} +1 -1
- package/dist/client/assets/{mini-report-page-CFRqMuFT.js → mini-report-page-BmNfvJlO.js} +1 -1
- package/dist/client/assets/{mock-board-BD3qTGYo.js → mock-board-CZK2Cvo3.js} +1 -1
- package/dist/client/assets/{monaco-editor-BXK3f-Og.js → monaco-editor-C-S-8OC6.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-IHl-mX1g.js → monitoring-stats-row-IwAbB8u9.js} +1 -1
- package/dist/client/assets/{multi-select-DGgRKpc4.js → multi-select-y9FwQ-dm.js} +1 -1
- package/dist/client/assets/{mustache-Cgurdydm.js → mustache-Ag809o1A.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BMehfxLv.js → new-project-dialog-DrxiqG-Y.js} +1 -1
- package/dist/client/assets/{oauth-callback-pqa-Hyt-.js → oauth-callback-DWtAAf7G.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-k4dNzBd0.js → oauth-callback-ai-provider-NQ8LdX-a.js} +1 -1
- package/dist/client/assets/{onboarding-Dp8GO7az.js → onboarding-BRFoKzMG.js} +1 -1
- package/dist/client/assets/{openai-conversation-oneJt9QR.js → openai-conversation-BHudNimx.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DDETX0mx.js → optimistic-project-sidebar-views-DS6iax6c.js} +1 -1
- package/dist/client/assets/{org-file-open-context-2kSVNzGe.js → org-file-open-context-BWYWVr6j.js} +1 -1
- package/dist/client/assets/{organization-choice-Di3lf1DM.js → organization-choice-ColOG4Qs.js} +1 -1
- package/dist/client/assets/{orgs-BXBqBecG.js → orgs-DN46iPbm.js} +1 -1
- package/dist/client/assets/{page-seo-form-B-vBxb4j.js → page-seo-form-bx7wNVcF.js} +1 -1
- package/dist/client/assets/{pair-bDKRTMqu.js → pair-BbS6p0iS.js} +1 -1
- package/dist/client/assets/{plan-ladder-CfA0FpAL.js → plan-ladder-RwyJdG4c.js} +1 -1
- package/dist/client/assets/{popover-DwQza7Ap.js → popover-Dvqj57GQ.js} +1 -1
- package/dist/client/assets/{post-calendar-CM-j2TVF.js → post-calendar-BLOA3EdX.js} +1 -1
- package/dist/client/assets/{post-editor-DzeGxIPl.js → post-editor-0k2icWwR.js} +1 -1
- package/dist/client/assets/{preview-content-b2Kfd0ih.js → preview-content-CT0ZeYI2.js} +1 -1
- package/dist/client/assets/{preview-dialog-7_zN433M.js → preview-dialog-C06uRVP1.js} +1 -1
- package/dist/client/assets/{profile-DH3xvW4M.js → profile-C1YrKzza.js} +1 -1
- package/dist/client/assets/{project-app-view-8XHhP-21.js → project-app-view-CvhGuyEm.js} +1 -1
- package/dist/client/assets/{project-feed-C4R5QRpx.js → project-feed-Lrn2Vx6v.js} +1 -1
- package/dist/client/assets/{project-icon-0knrxIOw.js → project-icon-DYsLOXub.js} +1 -1
- package/dist/client/assets/project-reports-Cxp5cndN.js +1 -0
- package/dist/client/assets/project-tasks-mGerfQed.js +1 -0
- package/dist/client/assets/{projects-ZExDUw0W.js → projects-9bg9EGUj.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BSpE0Riy.js → projects-empty-state-lPWjupMn.js} +1 -1
- package/dist/client/assets/{prompts-BLBkOl8v.js → prompts-Ci7eVBQ_.js} +1 -1
- package/dist/client/assets/record-editor-1_isDy55.js +1 -0
- package/dist/client/assets/{redirect-editor-BVFm9u4z.js → redirect-editor-dVA7hSbo.js} +1 -1
- package/dist/client/assets/reports-BhvXDkS0.js +1 -0
- package/dist/client/assets/{reports-DSK9pInf.js → reports-DMyC7KyA.js} +1 -1
- package/dist/client/assets/{reports-onboarding-BGpMVdJb.js → reports-onboarding-DPM59fnB.js} +1 -1
- package/dist/client/assets/{reports-tab-DOaYQIgv.js → reports-tab-8zKvNIEo.js} +2 -2
- package/dist/client/assets/{repositories-9mNfLfC6.js → repositories-DU6E4aSI.js} +1 -1
- package/dist/client/assets/{repository-binding-DB3Rsfan.js → repository-binding-BDRDBDUT.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DyQqkMVo.js → repository-import-picker-COhtx-GU.js} +1 -1
- package/dist/client/assets/{repository-picker-BhN42NYE.js → repository-picker-CsXpKrPD.js} +1 -1
- package/dist/client/assets/{require-capability-T865QzND.js → require-capability-r3Xn3m_O.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BhtMSUK8.js → required-auth-layout-CPsT8IBO.js} +1 -1
- package/dist/client/assets/{reset-password-DknJZEoY.js → reset-password-BCbbqzqA.js} +1 -1
- package/dist/client/assets/{resizable-Cl5uhslg.js → resizable-xF5MDTwK.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BJxTAEQQ.js → resolve-tab-icon-BpT7YYoz.js} +1 -1
- package/dist/client/assets/{review-settings-CMvo0pRC.js → review-settings-bSzJA51j.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CzOQrdNt.js → rich-text-link-control-CY5lmcbW.js} +1 -1
- package/dist/client/assets/{roles-Bvw2DL9o.js → roles-COXgTHD9.js} +1 -1
- package/dist/client/assets/route-CXaJOXis.js +1 -0
- package/dist/client/assets/{route-BqhdkgCD.js → route-DgJH5qOb.js} +1 -1
- package/dist/client/assets/{route-Dq4tC8Qc.js → route-DsmAMRjH.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-CU4DL_Np.js → runnable-block-editor-Bq48XkmP.js} +4 -4
- package/dist/client/assets/{sandbox-lifecycle-context-CCWi8UrE.js → sandbox-lifecycle-context-BDzjYF6X.js} +1 -1
- package/dist/client/assets/{schema-CtVpxfN8.js → schema-DsftfWql.js} +1 -1
- package/dist/client/assets/{scroll-area-DTVFcTe4.js → scroll-area-CuhYBrVG.js} +1 -1
- package/dist/client/assets/{search-input-B7esxZLr.js → search-input-DO4RsgDo.js} +1 -1
- package/dist/client/assets/{search-toggle-BmdAS9S4.js → search-toggle-BJ6mBMxB.js} +1 -1
- package/dist/client/assets/{secret-picker-BV1iDD76.js → secret-picker-B9q4BUYJ.js} +1 -1
- package/dist/client/assets/{secrets-D9_ygYCx.js → secrets-CePkYXXO.js} +1 -1
- package/dist/client/assets/{sections-editor-BOruSM_E.js → sections-editor-Df3gUxs6.js} +1 -1
- package/dist/client/assets/{select-CCPnfgQ9.js → select-DUxatCDi.js} +1 -1
- package/dist/client/assets/{select-model-8KGpYG78.js → select-model-hxt2hW5D.js} +1 -1
- package/dist/client/assets/{seo-editor-C0NKkdi0.js → seo-editor-Du7ojpzS.js} +1 -1
- package/dist/client/assets/{separator-CWugGQbc.js → separator-BzaLX8fd.js} +1 -1
- package/dist/client/assets/{settings-tab-DRo0WDQp.js → settings-tab-DqEufUIw.js} +1 -1
- package/dist/client/assets/{sheet-BHMUXURV.js → sheet-Dsh1DGgw.js} +1 -1
- package/dist/client/assets/{shell-layout-XTP1Kn60.js → shell-layout-DrF9YflL.js} +1 -1
- package/dist/client/assets/{skills-E3OyU2oM.js → skills-oZ0qPKOl.js} +1 -1
- package/dist/client/assets/{sso-BZQj7YFV.js → sso-D9V8xm1h.js} +1 -1
- package/dist/client/assets/{suggestion-089nWMGT.js → suggestion-C-WgKXgU.js} +1 -1
- package/dist/client/assets/{switch-Bj8bJ2hL.js → switch-Dm6uUVFL.js} +1 -1
- package/dist/client/assets/{synced-repos-CVHbttMo.js → synced-repos-CYW9TGNF.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-6vvl9RhU.js → tab-icon-glyph-BqlyD9jL.js} +1 -1
- package/dist/client/assets/{table-vIpu14O-.js → table-BbevayqW.js} +1 -1
- package/dist/client/assets/{tabs-Cz37pyV6.js → tabs-8CMAf1uG.js} +1 -1
- package/dist/client/assets/{task-board-BMQrxTue.js → task-board-DXD3aKXi.js} +1 -1
- package/dist/client/assets/{task-route-BKWswtA1.js → task-route-doPf8uSw.js} +1 -1
- package/dist/client/assets/{task-status-C1D3al28.js → task-status-B0dcE5iY.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-D2gsuZp2.js → taskboard-analytics-CE1JeLhH.js} +1 -1
- package/dist/client/assets/{tasks-CuCPnKFB.js → tasks-BvFkBNHM.js} +1 -1
- package/dist/client/assets/tasks-xR3ybzsh.js +1 -0
- package/dist/client/assets/{textarea-C-PwJiry.js → textarea-Cnw96_Vw.js} +1 -1
- package/dist/client/assets/{thread-analytics-6Vi5UYyl.js → thread-analytics-BnQ-KERJ.js} +1 -1
- package/dist/client/assets/{thread-button-CBArUpXO.js → thread-button-BRy_z3r1.js} +1 -1
- package/dist/client/assets/{thread-intent-swCQbScV.js → thread-intent-BOEFGlMm.js} +1 -1
- package/dist/client/assets/{thread-route-CMTlmdB2.js → thread-route-BtUAL8zM.js} +1 -1
- package/dist/client/assets/{thread-route-DTbwFwzB.js → thread-route-D6_2qU5y.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BNWfu5MD.js → thread-sheet-body-C_UWi3rA.js} +1 -1
- package/dist/client/assets/{toggle-group-CozxhBpA.js → toggle-group-DMrc-VEn.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BR_iVDC5.js → toolbar-icon-button-B_si7l6J.js} +1 -1
- package/dist/client/assets/{tooltip-CmsIn1_T.js → tooltip-D_rDETL5.js} +1 -1
- package/dist/client/assets/{track-ISGFXwLG.js → track-CmsoJ4xI.js} +1 -1
- package/dist/client/assets/{types-Dnj2Xk6p.js → types-DNrbJSW6.js} +1 -1
- package/dist/client/assets/{usage-stats-CQr6G5Ur.js → usage-stats-DtxeZ0P6.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DKY0H66j.js → use-ai-providers-BY6SYGnL.js} +1 -1
- package/dist/client/assets/{use-automations-CSJ606-d.js → use-automations-BTGg3lrV.js} +1 -1
- package/dist/client/assets/{use-autosave-CnIoAHDs.js → use-autosave-C09SWhxz.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-B1ZVGaLS.js → use-chat-layout-state-DtSzju1r.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BsJNcY-e.js → use-clock-tick-B6RjlwGP.js} +1 -1
- package/dist/client/assets/{use-connect-companion-vcvy2-_E.js → use-connect-companion-Md7gJVdj.js} +1 -1
- package/dist/client/assets/{use-connection-o6IaHrCa.js → use-connection-BdXCXco4.js} +1 -1
- package/dist/client/assets/{use-copy-CbVFfAiy.js → use-copy-CGFZVF1O.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B90oa05V.js → use-create-virtual-mcp-BDx5KjcP.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DtLNXwQQ.js → use-date-fns-locale-xsNp9_jV.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C94tXEES.js → use-debounced-autosave-Bm10g-8R.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BJOL8Gwj.js → use-debounced-value-BXmvwHes.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BTMj7mOL.js → use-deco-credits-BLsA0-D1.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B7N8IjI0.js → use-decopilot-events-xg-lzK_6.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CWCsmyea.js → use-delete-connection-BE4Nj7DL.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-C7HpswZD.js → use-deployment-admin-CdfYikgx.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-X9ccfQ1G.js → use-fast-preview-draft-url-D5snqAgF.js} +1 -1
- package/dist/client/assets/{use-file-configs-BJx6-ZW4.js → use-file-configs-CeiMSMu5.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D564AByM.js → use-infinite-scroll-CnGnDOhg.js} +1 -1
- package/dist/client/assets/{use-join-requests-DadESn-r.js → use-join-requests-BldvGxVz.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CvkNpk_m.js → use-main-panel-tabs-C83ZnyG5.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BPJMjKJu.js → use-mcp-auth-status-Du_TKL-p.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BCOmh6mH.js → use-mcp-client-DrDmZDA7.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DsQz4qyp.js → use-mcp-prompts-ORmr-8fB.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-isgPo0N2.js → use-mcp-tools-YCPND0WQ.js} +1 -1
- package/dist/client/assets/{use-members-B_fEZqvW.js → use-members-DEXWsj1d.js} +1 -1
- package/dist/client/assets/{use-mobile-CUG36tjm.js → use-mobile-CfSbfoft.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Cv939dl9.js → use-navigate-to-agent-CPmL7r2a.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-Cc8wtKHo.js +1 -0
- package/dist/client/assets/{use-open-billing-url-DBj1DYvR.js → use-open-billing-url-kzMhA6w7.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Cro1UGGf.js → use-org-auth-client-CkktJ4ju.js} +1 -1
- package/dist/client/assets/{use-org-fs-CfcB8IFl.js → use-org-fs-aJhRDDIA.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DVJH08hK.js → use-org-repo-syncs-hamxf4uc.js} +1 -1
- package/dist/client/assets/{use-org-sso-554XjjGQ.js → use-org-sso-D5wnNfkO.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BTmd-L2w.js → use-organization-roles-OHxv6X-a.js} +1 -1
- package/dist/client/assets/{use-organization-settings-B-_PpufY.js → use-organization-settings-B56H80YG.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CuKDZSXf.js → use-panel-navigate-C7k_IWwP.js} +1 -1
- package/dist/client/assets/{use-project-scope-B1N6dPlK.js → use-project-scope-D3SRaEYd.js} +1 -1
- package/dist/client/assets/{use-releases-BK-Rfz0E.js → use-releases-CpYl3ey_.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-kNe2-1FK.js → use-reports-diagnostic-CkrVtdqs.js} +1 -1
- package/dist/client/assets/{use-secrets-Bpfmfnyi.js → use-secrets-Dcc9pXbR.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DDylhaW1.js → use-section-preview-base-Z24TKN0B.js} +1 -1
- package/dist/client/assets/{use-session-runtime-CTR5dqXO.js → use-session-runtime-DStZ5XGd.js} +1 -1
- package/dist/client/assets/{use-tags-CToQ_9AW.js → use-tags-BaTcNvTV.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BhmIKHN_.js → use-task-board-analytics-B1pwJZX7.js} +1 -1
- package/dist/client/assets/{use-task-board-events-B6plWEJr.js → use-task-board-events-oQbUK5D4.js} +1 -1
- package/dist/client/assets/{use-task-metadata-_V-lBt2X.js → use-task-metadata-Dq3w9o1-.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DJ0Oh091.js → use-thread-analytics-Bit06zCt.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BH6QTvpP.js → use-thread-outputs-DMYaNXtN.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-S6GnLytU.js +1 -0
- package/dist/client/assets/{useQueries-DHRnWhYf.js → useQueries-Bm3vQaFd.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CrkH2XOR.js +1 -0
- package/dist/client/assets/{users-UP11Y2d_.js → users-BHYuTTwT.js} +1 -1
- package/dist/client/assets/{utils-CSf7trYW.js → utils-Fw1u9QDx.js} +1 -1
- package/dist/client/assets/{variant-calendar-k_RwHcjk.js → variant-calendar-DRKQ2B6v.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DEvkqGTd.js → variant-matcher-override-wHTtLSfq.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C7tIx4kb.js → view-mode-toggle-BQZodl_Y.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BkcbnGY4.js → virtual-mcp-C2bpy2G-.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Bmq8mE4b.js +0 -1
- package/dist/client/assets/agent-deck-ChJEzNvh.js +0 -1
- package/dist/client/assets/agent-library-DCzTnvza.js +0 -1
- package/dist/client/assets/agent-library-file-DtqKvoz2.js +0 -1
- package/dist/client/assets/agent-settings-BFm3cinJ.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Bux6lvrY.js +0 -2
- package/dist/client/assets/agent-view-CLwrYt4k.js +0 -1
- package/dist/client/assets/api-keys-41OcNRfF.js +0 -1
- package/dist/client/assets/app-editor-C0HEp9TR.js +0 -1
- package/dist/client/assets/claim-phase-copy-CLVpoo-M.js +0 -1
- package/dist/client/assets/flat-project-BXD7xaS4.js +0 -1
- package/dist/client/assets/library-BbAPgXkD.js +0 -1
- package/dist/client/assets/mcp-app-renderer-BuJCA9WL.js +0 -11
- package/dist/client/assets/project-reports-BrIp72jF.js +0 -1
- package/dist/client/assets/project-tasks-DV-ii699.js +0 -1
- package/dist/client/assets/record-editor-ziqyGjSB.js +0 -1
- package/dist/client/assets/reports-3EyuS8J8.js +0 -1
- package/dist/client/assets/route-BRK2g0Ok.js +0 -1
- package/dist/client/assets/tasks-sv7N_jrP.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-CUI80h3P.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DRaKStQa.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-WHFkobEh.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,U as X,V as Q,b as q,X as Z,Y as ee,k as te,j as s,L as ne,n as G,r as F,d as se,ax as ae,E as oe,P as I,aM as ie,B as le}from"./index-B1zctMWM.js";import{u as re}from"./use-mobile-CUG36tjm.js";import{m as ce,a as ue,u as de,t as fe}from"./thread-button-CBArUpXO.js";import{a as Y,R as he,b as me}from"./resizable-Cl5uhslg.js";import{f as pe,d as ge,m as be}from"./use-chat-layout-state-B1ZVGaLS.js";import{J as xe,k as ye}from"./agent-icon-Plx0vVQZ.js";import{s as je}from"./XClose-B5gtMDn3.js";import{I as Se}from"./icon-button-BpPbhU8u.js";import{b as ve,T as Ce,a as Te}from"./tooltip-CmsIn1_T.js";import{T as U}from"./toolbar-icon-button-BR_iVDC5.js";import{a as Le}from"./use-project-scope-B1N6dPlK.js";import{c as Ne}from"./repository-binding-DB3Rsfan.js";function W(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Pe(l,e){const a=O.c(8);let i;a[0]!==e?(i=c=>W(c,e),a[0]=e,a[1]=i):i=a[1];const[t,n]=X(l,i);let o;a[2]!==e||a[3]!==t?(o=W(t,e),a[2]=e,a[3]=t,a[4]=o):o=a[4];let r;return a[5]!==n||a[6]!==o?(r=[o,n],a[5]=n,a[6]=o,a[7]=r):r=a[7],r}const ze=33;function _e(){const l=O.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=Q.sidePanelWidth(),l[0]=e):e=l[0],Pe(e,ze)}function Oe(l){const e=O.c(60),{actions:a,navigation:i}=l,t=q(),{org:n}=Z(),o=Le(),r=Ne(o),c=ce(),{toggleSidebar:d}=ue(),u=de(),f=J(),h=ee();let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={select:Ee},e[0]=g):g=e[0];const y=te(g),b=y?.mainView==="overview";let N;e[1]!==r?.title||e[2]!==t?(N=r?.title??t("common.loading"),e[1]=r?.title,e[2]=t,e[3]=N):N=e[3];const m=N;let _;e[4]!==b||e[5]!==y?.pageTitle||e[6]!==m||e[7]!==o||e[8]!==t?(_=b?o?m:t("sidebar.navDestinations.home"):t(y?.pageTitle??"page.view"),e[4]=b,e[5]=y?.pageTitle,e[6]=m,e[7]=o,e[8]=t,e[9]=_):_=e[9];const S=_;let v;e[10]!==n.slug||e[11]!==h||e[12]!==o?(v=h?{to:"/$org/projects",params:{org:n.slug},search:{project:o??void 0}}:{to:"/$org/projects/$agentId",params:{org:n.slug,agentId:o??""}},e[10]=n.slug,e[11]=h,e[12]=o,e[13]=v):v=e[13];const x=v;let j;if(e[14]!==c||e[15]!==b||e[16]!==n.slug||e[17]!==x||e[18]!==m||e[19]!==o||e[20]!==t||e[21]!==S){if(j=[],c){let L;e[23]!==t?(L=t("sidebar.navDestinations.settings"),e[23]=t,e[24]=L):L=e[24];let k;e[25]!==n.slug?(k={to:"/$org/settings/general",params:{org:n.slug}},e[25]=n.slug,e[26]=k):k=e[26];let $;e[27]!==L||e[28]!==k?($={key:"settings",label:L,link:k},e[27]=L,e[28]=k,e[29]=$):$=e[29],j.push($)}else if(o&&!b){let L;e[30]!==x||e[31]!==m?(L={key:"project",label:m,link:x},e[30]=x,e[31]=m,e[32]=L):L=e[32],j.push(L)}let B;e[33]!==S?(B={key:"page",label:S},e[33]=S,e[34]=B):B=e[34],j.push(B),e[14]=c,e[15]=b,e[16]=n.slug,e[17]=x,e[18]=m,e[19]=o,e[20]=t,e[21]=S,e[22]=j}else j=e[22];let p;e[35]!==x||e[36]!==o||e[37]!==t||e[38]!==u?(p=u&&o&&s.jsx(Se,{label:t("projects.flat.close"),asChild:!0,children:s.jsx(ne,{...x,children:s.jsx(je,{size:16})})}),e[35]=x,e[36]=o,e[37]=t,e[38]=u,e[39]=p):p=e[39];const C=p;let P;e[40]!==f||e[41]!==t||e[42]!==u?(P=u&&f&&s.jsxs(ve,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(U,{"aria-label":t(f.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":f.threadOpen,active:f.threadOpen,onClick:f.toggleThread,children:s.jsx(xe,{size:16})})}),s.jsx(Te,{side:"bottom",children:t(f.threadOpen?"page.closeThread":"page.openThread")})]}),e[40]=f,e[41]=t,e[42]=u,e[43]=P):P=e[43];const T=P;let z;e[44]!==t?(z=t("layouts.shellControls.toggleSidebar"),e[44]=t,e[45]=z):z=e[45];let A;e[46]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ye,{size:16}),e[46]=A):A=e[46];let E;e[47]!==z||e[48]!==d?(E=s.jsx(U,{className:"md:hidden",onClick:d,"aria-label":z,children:A}),e[47]=z,e[48]=d,e[49]=E):E=e[49];let w;e[50]!==T||e[51]!==E?(w=s.jsxs(s.Fragment,{children:[E,T]}),e[50]=T,e[51]=E,e[52]=w):w=e[52];let R;return e[53]!==a||e[54]!==j||e[55]!==C||e[56]!==i||e[57]!==n.name||e[58]!==w?(R=s.jsx(G.Header,{leading:w,breadcrumbs:j,scope:n.name,actions:a,trailingActions:C,navigation:i}),e[53]=a,e[54]=j,e[55]=C,e[56]=i,e[57]=n.name,e[58]=w,e[59]=R):R=e[59],R}function Ee(l){return l.matches.findLast(we)?.staticData}function we(l){return l.staticData.pageTitle}const M="chat-layout-thread",D="chat-layout-content",K=F.createContext(null);function ke(){return H()}function J(){return F.use(K)}function H(){const l=F.use(K);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Ie(l){const e=O.c(25),{children:a,...i}=l,t=re(),n=se(),o=F.useRef(null),[r,c]=_e(),{threadOpen:d,contentOpen:u}=i,f=pe(i),h=d&&u?r:f.side,g=100-h,y=p=>{const C=p.getLayout(),P=C[M],T=C[D];typeof P!="number"||typeof T!="number"||Math.abs(P-h)<.001&&Math.abs(T-g)<.001||p.setLayout({[M]:h,[D]:g})},b=ge({visibility:i,threadVisibilityExplicit:i.threadVisibilityExplicit});let N;e[0]!==t||e[1]!==i||e[2]!==b?(N={...i,isMobile:t,mobileSurface:b},e[0]=t,e[1]=i,e[2]=b,e[3]=N):N=e[3];const m=N,_=t?m.mobileSurface==="chat":d;let S;e[4]!==t||e[5]!==i||e[6]!==n||e[7]!==m?(S=()=>{t?n({to:".",search:p=>({...p,...be(m.mobileSurface==="chat"?"main":"chat")}),replace:!0}):i.toggleThread()},e[4]=t,e[5]=i,e[6]=n,e[7]=m,e[8]=S):S=e[8];let v;e[9]!==_||e[10]!==S?(v=s.jsx(fe,{open:_,onToggle:S}),e[9]=_,e[10]=S,e[11]=v):v=e[11];let x;e[12]!==a||e[13]!==u||e[14]!==g||e[15]!==t||e[16]!==c||e[17]!==y||e[18]!==d||e[19]!==h?(x=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(he,{ref:p=>{if(o.current=p,!p)return;let C=!0;return queueMicrotask(()=>{C&&y(p)}),()=>{C=!1,o.current===p&&(o.current=null)}},defaultLayout:{[M]:h,[D]:g},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(p,C)=>{const{isUserInteraction:P}=C;if(!P){const z=o.current;z&&y(z);return}const T=p[M];d&&u&&typeof T=="number"&&T>0&&T<100&&c(T)},children:a}),e[12]=a,e[13]=u,e[14]=g,e[15]=t,e[16]=c,e[17]=y,e[18]=d,e[19]=h,e[20]=x):x=e[20];let j;return e[21]!==v||e[22]!==x||e[23]!==m?(j=s.jsxs(K,{value:m,children:[v,x]}),e[21]=v,e[22]=x,e[23]=m,e[24]=j):j=e[24],j}function Me(l){const e=O.c(16),{children:a,topbar:i}=l,t=H();if(t.isMobile){let f;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==i?(f=t.mobileSurface==="chat"?s.jsxs(I,{variant:"plain","data-slot":"chat-layout-thread",children:[i,s.jsx(I.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=i,e[3]=f):f=e[3],f}const n=t.threadOpen?"":void 0;let o;e[4]!==a||e[5]!==t.threadOpen||e[6]!==i?(o=t.threadOpen&&s.jsxs(s.Fragment,{children:[i,s.jsx(I.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=i,e[7]=o):o=e[7];let r;e[8]!==o?(r=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(I,{"data-testid":"side-panel",children:o})}),e[8]=o,e[9]=r):r=e[9];let c;e[10]!==n||e[11]!==r?(c=s.jsx(Y,{id:M,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n,className:"min-w-0 overflow-hidden bg-sidebar",children:r}),e[10]=n,e[11]=r,e[12]=c):c=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(me,{className:"bg-sidebar"}),e[13]=d):d=e[13];let u;return e[14]!==c?(u=s.jsxs(s.Fragment,{children:[c,d]}),e[14]=c,e[15]=u):u=e[15],u}function Ae({children:l,routeId:e}){return l}function V(l){const e=O.c(25),{children:a,actions:i,drawer:t}=l,n=H();if(n.isMobile&&n.mobileSurface!=="main")return null;const o=n.isMobile?"plain":"card";let r;e[0]!==i||e[1]!==n.contentActions?(r=s.jsxs(s.Fragment,{children:[n.contentActions,i]}),e[0]=i,e[1]=n.contentActions,e[2]=r):r=e[2];let c;e[3]!==n.contentNavigation||e[4]!==r?(c=s.jsx(Oe,{navigation:n.contentNavigation,actions:r}),e[3]=n.contentNavigation,e[4]=r,e[5]=c):c=e[5];let d;e[6]!==a||e[7]!==n.contentKey?(d=s.jsx(ae,{children:s.jsx(Ae,{routeId:n.contentKey,children:a})}),e[6]=a,e[7]=n.contentKey,e[8]=d):d=e[8];let u;e[9]!==n.contentKey||e[10]!==d?(u=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(oe,{children:d},n.contentKey)}),e[9]=n.contentKey,e[10]=d,e[11]=u):u=e[11];let f;e[12]!==t||e[13]!==u?(f=s.jsxs(I.Content,{children:[u,t]}),e[12]=t,e[13]=u,e[14]=f):f=e[14];let h;e[15]!==c||e[16]!==f?(h=s.jsxs(G.Breadcrumbs.Provider,{children:[c,f]}),e[15]=c,e[16]=f,e[17]=h):h=e[17];let g;e[18]!==o||e[19]!==h?(g=s.jsx(I,{"data-testid":"main-panel",variant:o,children:h}),e[18]=o,e[19]=h,e[20]=g):g=e[20];const y=g;let b;return e[21]!==n.contentOpen||e[22]!==n.isMobile||e[23]!==y?(b=n.isMobile?y:s.jsx(Y,{id:D,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsx("div",{className:"h-full min-h-0 p-0.5",children:y})}),e[21]=n.contentOpen,e[22]=n.isMobile,e[23]=y,e[24]=b):b=e[24],b}function Re(){const l=O.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(ie,{})}),l[0]=e):e=l[0],e}function Be(l){const e=O.c(18),{error:a,reset:i}=l,t=q();let n;e[0]!==t?(n=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=n):n=e[1];let o;e[2]!==n?(o=s.jsx("h2",{className:"text-lg font-medium",children:n}),e[2]=n,e[3]=o):o=e[3];let r;e[4]!==a.message||e[5]!==t?(r=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=r):r=e[6];let c;e[7]!==r?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:r}),e[7]=r,e[8]=c):c=e[8];let d;e[9]!==t?(d=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=d):d=e[10];let u;e[11]!==i||e[12]!==d?(u=s.jsx(le,{variant:"outline",onClick:i,children:d}),e[11]=i,e[12]=d,e[13]=u):u=e[13];let f;return e[14]!==o||e[15]!==c||e[16]!==u?(f=s.jsx(V,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[o,c,u]})}),e[14]=o,e[15]=c,e[16]=u,e[17]=f):f=e[17],f}const $e=Object.assign(Ie,{Thread:Me,Content:V}),Qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:$e,ChatLayoutError:Be,ChatLayoutPending:Re,useChatLayout:ke,useOptionalChatLayout:J},Symbol.toStringTag,{value:"Module"}));export{$e as C,Oe as R,Qe as i};
|
|
1
|
+
import{c as O,U as X,V as Q,b as q,X as Z,Y as ee,k as te,j as s,L as ne,n as G,r as F,d as se,ax as ae,E as oe,P as I,aM as ie,B as le}from"./index-Creb5Fal.js";import{u as re}from"./use-mobile-CfSbfoft.js";import{m as ce,a as ue,u as de,t as fe}from"./thread-button-BRy_z3r1.js";import{a as Y,R as he,b as me}from"./resizable-xF5MDTwK.js";import{f as pe,d as ge,m as be}from"./use-chat-layout-state-DtSzju1r.js";import{J as xe,k as ye}from"./agent-icon-Cs5o_QD_.js";import{s as je}from"./XClose-CYHY5GcG.js";import{I as Se}from"./icon-button-D4H5x94G.js";import{b as ve,T as Ce,a as Te}from"./tooltip-D_rDETL5.js";import{T as U}from"./toolbar-icon-button-B_si7l6J.js";import{a as Le}from"./use-project-scope-D3SRaEYd.js";import{c as Ne}from"./repository-binding-BDRDBDUT.js";function W(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Pe(l,e){const a=O.c(8);let i;a[0]!==e?(i=c=>W(c,e),a[0]=e,a[1]=i):i=a[1];const[t,n]=X(l,i);let o;a[2]!==e||a[3]!==t?(o=W(t,e),a[2]=e,a[3]=t,a[4]=o):o=a[4];let r;return a[5]!==n||a[6]!==o?(r=[o,n],a[5]=n,a[6]=o,a[7]=r):r=a[7],r}const ze=33;function _e(){const l=O.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=Q.sidePanelWidth(),l[0]=e):e=l[0],Pe(e,ze)}function Oe(l){const e=O.c(60),{actions:a,navigation:i}=l,t=q(),{org:n}=Z(),o=Le(),r=Ne(o),c=ce(),{toggleSidebar:d}=ue(),u=de(),f=J(),h=ee();let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={select:Ee},e[0]=g):g=e[0];const y=te(g),b=y?.mainView==="overview";let N;e[1]!==r?.title||e[2]!==t?(N=r?.title??t("common.loading"),e[1]=r?.title,e[2]=t,e[3]=N):N=e[3];const m=N;let _;e[4]!==b||e[5]!==y?.pageTitle||e[6]!==m||e[7]!==o||e[8]!==t?(_=b?o?m:t("sidebar.navDestinations.home"):t(y?.pageTitle??"page.view"),e[4]=b,e[5]=y?.pageTitle,e[6]=m,e[7]=o,e[8]=t,e[9]=_):_=e[9];const S=_;let v;e[10]!==n.slug||e[11]!==h||e[12]!==o?(v=h?{to:"/$org/projects",params:{org:n.slug},search:{project:o??void 0}}:{to:"/$org/projects/$agentId",params:{org:n.slug,agentId:o??""}},e[10]=n.slug,e[11]=h,e[12]=o,e[13]=v):v=e[13];const x=v;let j;if(e[14]!==c||e[15]!==b||e[16]!==n.slug||e[17]!==x||e[18]!==m||e[19]!==o||e[20]!==t||e[21]!==S){if(j=[],c){let L;e[23]!==t?(L=t("sidebar.navDestinations.settings"),e[23]=t,e[24]=L):L=e[24];let k;e[25]!==n.slug?(k={to:"/$org/settings/general",params:{org:n.slug}},e[25]=n.slug,e[26]=k):k=e[26];let $;e[27]!==L||e[28]!==k?($={key:"settings",label:L,link:k},e[27]=L,e[28]=k,e[29]=$):$=e[29],j.push($)}else if(o&&!b){let L;e[30]!==x||e[31]!==m?(L={key:"project",label:m,link:x},e[30]=x,e[31]=m,e[32]=L):L=e[32],j.push(L)}let B;e[33]!==S?(B={key:"page",label:S},e[33]=S,e[34]=B):B=e[34],j.push(B),e[14]=c,e[15]=b,e[16]=n.slug,e[17]=x,e[18]=m,e[19]=o,e[20]=t,e[21]=S,e[22]=j}else j=e[22];let p;e[35]!==x||e[36]!==o||e[37]!==t||e[38]!==u?(p=u&&o&&s.jsx(Se,{label:t("projects.flat.close"),asChild:!0,children:s.jsx(ne,{...x,children:s.jsx(je,{size:16})})}),e[35]=x,e[36]=o,e[37]=t,e[38]=u,e[39]=p):p=e[39];const C=p;let P;e[40]!==f||e[41]!==t||e[42]!==u?(P=u&&f&&s.jsxs(ve,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(U,{"aria-label":t(f.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":f.threadOpen,active:f.threadOpen,onClick:f.toggleThread,children:s.jsx(xe,{size:16})})}),s.jsx(Te,{side:"bottom",children:t(f.threadOpen?"page.closeThread":"page.openThread")})]}),e[40]=f,e[41]=t,e[42]=u,e[43]=P):P=e[43];const T=P;let z;e[44]!==t?(z=t("layouts.shellControls.toggleSidebar"),e[44]=t,e[45]=z):z=e[45];let A;e[46]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ye,{size:16}),e[46]=A):A=e[46];let E;e[47]!==z||e[48]!==d?(E=s.jsx(U,{className:"md:hidden",onClick:d,"aria-label":z,children:A}),e[47]=z,e[48]=d,e[49]=E):E=e[49];let w;e[50]!==T||e[51]!==E?(w=s.jsxs(s.Fragment,{children:[E,T]}),e[50]=T,e[51]=E,e[52]=w):w=e[52];let R;return e[53]!==a||e[54]!==j||e[55]!==C||e[56]!==i||e[57]!==n.name||e[58]!==w?(R=s.jsx(G.Header,{leading:w,breadcrumbs:j,scope:n.name,actions:a,trailingActions:C,navigation:i}),e[53]=a,e[54]=j,e[55]=C,e[56]=i,e[57]=n.name,e[58]=w,e[59]=R):R=e[59],R}function Ee(l){return l.matches.findLast(we)?.staticData}function we(l){return l.staticData.pageTitle}const M="chat-layout-thread",D="chat-layout-content",K=F.createContext(null);function ke(){return H()}function J(){return F.use(K)}function H(){const l=F.use(K);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Ie(l){const e=O.c(25),{children:a,...i}=l,t=re(),n=se(),o=F.useRef(null),[r,c]=_e(),{threadOpen:d,contentOpen:u}=i,f=pe(i),h=d&&u?r:f.side,g=100-h,y=p=>{const C=p.getLayout(),P=C[M],T=C[D];typeof P!="number"||typeof T!="number"||Math.abs(P-h)<.001&&Math.abs(T-g)<.001||p.setLayout({[M]:h,[D]:g})},b=ge({visibility:i,threadVisibilityExplicit:i.threadVisibilityExplicit});let N;e[0]!==t||e[1]!==i||e[2]!==b?(N={...i,isMobile:t,mobileSurface:b},e[0]=t,e[1]=i,e[2]=b,e[3]=N):N=e[3];const m=N,_=t?m.mobileSurface==="chat":d;let S;e[4]!==t||e[5]!==i||e[6]!==n||e[7]!==m?(S=()=>{t?n({to:".",search:p=>({...p,...be(m.mobileSurface==="chat"?"main":"chat")}),replace:!0}):i.toggleThread()},e[4]=t,e[5]=i,e[6]=n,e[7]=m,e[8]=S):S=e[8];let v;e[9]!==_||e[10]!==S?(v=s.jsx(fe,{open:_,onToggle:S}),e[9]=_,e[10]=S,e[11]=v):v=e[11];let x;e[12]!==a||e[13]!==u||e[14]!==g||e[15]!==t||e[16]!==c||e[17]!==y||e[18]!==d||e[19]!==h?(x=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(he,{ref:p=>{if(o.current=p,!p)return;let C=!0;return queueMicrotask(()=>{C&&y(p)}),()=>{C=!1,o.current===p&&(o.current=null)}},defaultLayout:{[M]:h,[D]:g},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(p,C)=>{const{isUserInteraction:P}=C;if(!P){const z=o.current;z&&y(z);return}const T=p[M];d&&u&&typeof T=="number"&&T>0&&T<100&&c(T)},children:a}),e[12]=a,e[13]=u,e[14]=g,e[15]=t,e[16]=c,e[17]=y,e[18]=d,e[19]=h,e[20]=x):x=e[20];let j;return e[21]!==v||e[22]!==x||e[23]!==m?(j=s.jsxs(K,{value:m,children:[v,x]}),e[21]=v,e[22]=x,e[23]=m,e[24]=j):j=e[24],j}function Me(l){const e=O.c(16),{children:a,topbar:i}=l,t=H();if(t.isMobile){let f;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==i?(f=t.mobileSurface==="chat"?s.jsxs(I,{variant:"plain","data-slot":"chat-layout-thread",children:[i,s.jsx(I.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=i,e[3]=f):f=e[3],f}const n=t.threadOpen?"":void 0;let o;e[4]!==a||e[5]!==t.threadOpen||e[6]!==i?(o=t.threadOpen&&s.jsxs(s.Fragment,{children:[i,s.jsx(I.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=i,e[7]=o):o=e[7];let r;e[8]!==o?(r=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(I,{"data-testid":"side-panel",children:o})}),e[8]=o,e[9]=r):r=e[9];let c;e[10]!==n||e[11]!==r?(c=s.jsx(Y,{id:M,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n,className:"min-w-0 overflow-hidden bg-sidebar",children:r}),e[10]=n,e[11]=r,e[12]=c):c=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(me,{className:"bg-sidebar"}),e[13]=d):d=e[13];let u;return e[14]!==c?(u=s.jsxs(s.Fragment,{children:[c,d]}),e[14]=c,e[15]=u):u=e[15],u}function Ae({children:l,routeId:e}){return l}function V(l){const e=O.c(25),{children:a,actions:i,drawer:t}=l,n=H();if(n.isMobile&&n.mobileSurface!=="main")return null;const o=n.isMobile?"plain":"card";let r;e[0]!==i||e[1]!==n.contentActions?(r=s.jsxs(s.Fragment,{children:[n.contentActions,i]}),e[0]=i,e[1]=n.contentActions,e[2]=r):r=e[2];let c;e[3]!==n.contentNavigation||e[4]!==r?(c=s.jsx(Oe,{navigation:n.contentNavigation,actions:r}),e[3]=n.contentNavigation,e[4]=r,e[5]=c):c=e[5];let d;e[6]!==a||e[7]!==n.contentKey?(d=s.jsx(ae,{children:s.jsx(Ae,{routeId:n.contentKey,children:a})}),e[6]=a,e[7]=n.contentKey,e[8]=d):d=e[8];let u;e[9]!==n.contentKey||e[10]!==d?(u=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(oe,{children:d},n.contentKey)}),e[9]=n.contentKey,e[10]=d,e[11]=u):u=e[11];let f;e[12]!==t||e[13]!==u?(f=s.jsxs(I.Content,{children:[u,t]}),e[12]=t,e[13]=u,e[14]=f):f=e[14];let h;e[15]!==c||e[16]!==f?(h=s.jsxs(G.Breadcrumbs.Provider,{children:[c,f]}),e[15]=c,e[16]=f,e[17]=h):h=e[17];let g;e[18]!==o||e[19]!==h?(g=s.jsx(I,{"data-testid":"main-panel",variant:o,children:h}),e[18]=o,e[19]=h,e[20]=g):g=e[20];const y=g;let b;return e[21]!==n.contentOpen||e[22]!==n.isMobile||e[23]!==y?(b=n.isMobile?y:s.jsx(Y,{id:D,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsx("div",{className:"h-full min-h-0 p-0.5",children:y})}),e[21]=n.contentOpen,e[22]=n.isMobile,e[23]=y,e[24]=b):b=e[24],b}function Re(){const l=O.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(ie,{})}),l[0]=e):e=l[0],e}function Be(l){const e=O.c(18),{error:a,reset:i}=l,t=q();let n;e[0]!==t?(n=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=n):n=e[1];let o;e[2]!==n?(o=s.jsx("h2",{className:"text-lg font-medium",children:n}),e[2]=n,e[3]=o):o=e[3];let r;e[4]!==a.message||e[5]!==t?(r=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=r):r=e[6];let c;e[7]!==r?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:r}),e[7]=r,e[8]=c):c=e[8];let d;e[9]!==t?(d=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=d):d=e[10];let u;e[11]!==i||e[12]!==d?(u=s.jsx(le,{variant:"outline",onClick:i,children:d}),e[11]=i,e[12]=d,e[13]=u):u=e[13];let f;return e[14]!==o||e[15]!==c||e[16]!==u?(f=s.jsx(V,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[o,c,u]})}),e[14]=o,e[15]=c,e[16]=u,e[17]=f):f=e[17],f}const $e=Object.assign(Ie,{Thread:Me,Content:V}),Qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:$e,ChatLayoutError:Be,ChatLayoutPending:Re,useChatLayout:ke,useOptionalChatLayout:J},Symbol.toStringTag,{value:"Module"}));export{$e as C,Oe as R,Qe as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as t,bo as o}from"./index-
|
|
1
|
+
import{r as i,j as t,bo as o}from"./index-Creb5Fal.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,f as p,am as u,j as s,aM as x,N as a}from"./index-
|
|
1
|
+
import{c as f,f as p,am as u,j as s,aM as x,N as a}from"./index-Creb5Fal.js";import{C as j}from"./capability-load-error-khp8kp3N.js";function d(){const t=f.c(19);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:c}=u();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(c){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("monitoring:view")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("members:manage")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}let n;return t[17]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[17]=r,t[18]=n):n=t[18],n}export{d as default};
|
package/dist/client/assets/{infiniteQueryObserver-BBgKyTli.js → infiniteQueryObserver-D3SNQDlh.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{df as g,dg as d,dh as v}from"./index-
|
|
1
|
+
import{df as g,dg as d,dh as v}from"./index-Creb5Fal.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{e$ as He,co as Ht,r as S,f2 as ie,aR as $t,c as Z,j as s,fH as Jt,b as de,fJ as Qt,fK as Ct,fL as _t,e_ as L,ec as ge,B as Ze,aS as ae}from"./index-B1zctMWM.js";import{i as er}from"./CreditCard01-CZJLSW5h.js";import{n as tr}from"./LinkExternal01-ByTglQMD.js";import{B as C}from"./badge-B0eiYJhc.js";import{M as rr}from"./multi-select-DGgRKpc4.js";import{S as nr,d as ir,c as ar,a as sr,b as or}from"./select-CCPnfgQ9.js";import{T as ee,a as lr,b as $e,c as te,d as cr,e as ur}from"./table-vIpu14O-.js";import{aH as fr,aI as kt,aJ as dr,aK as gr,aL as mr,aM as yr,aN as pr,aO as hr,P as br,aP as ue,aQ as vr,J as D,aR as jr,W as xr,an as fe,aS as Ut,z as Y,aT as Sr,aU as wr,j as Je,aV as Or,aW as Pr,v as Br,x as Ar,aE as Tr,Z as Dr,D as se,X as Nr,r as Er,a5 as qr,aX as Mr,aY as Ir,aZ as Rr,a_ as Lr,a$ as _r,b0 as kr,b1 as Ur,b2 as Fr,b3 as Wr,b4 as Kr,C as zr,Y as Vr,b5 as Zr}from"./CartesianChart-2IJlIK54.js";import{X as Gr}from"./XAxis-6QdhlFSd.js";import{R as Xr,S as Yr}from"./Sector-DADH10bp.js";import{A as Hr,a as $r}from"./AreaChart-DQ7VB4Rk.js";import{R as Jr}from"./require-capability-T865QzND.js";import"./checkbox-Cs5VXlL7.js";import"./Check-BhHmW1CL.js";import"./ChevronUp-C6nGgzcV.js";import"./command-Dj5wxXJe.js";import"./index-CKkIU_55.js";import"./dialog-DUkVOZIE.js";import"./X-4SjHAUB6.js";import"./SearchMd-yUpDH67q.js";import"./popover-DwQza7Ap.js";import"./index-CazcJ_7a.js";import"./index-km7ID5lM.js";import"./access-gate-CVOkVcAR.js";import"./capability-load-error-CV82KOmw.js";var me={},ye={},Qe;function Qr(){return Qe||(Qe=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r,n){const a=new Map;for(let l=0;l<r.length;l++){const o=r[l],u=n(o,l,r);a.has(u)||a.set(u,o)}return Array.from(a.values())}t.uniqBy=e})(ye)),ye}var pe={},Ce;function Cr(){return Ce||(Ce=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r,n){return function(...a){return r.apply(this,a.slice(0,n))}}t.ary=e})(pe)),pe}var he={},et;function Ft(){return et||(et=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r}t.identity=e})(he)),he}var be={},ve={},tt;function en(){return tt||(tt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return typeof r=="object"&&r!==null}t.isObjectLike=e})(ve)),ve}var rt;function tn(){return rt||(rt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=fr(),r=en();function n(a){return r.isObjectLike(a)&&e.isArrayLike(a)}t.isArrayLikeObject=n})(be)),be}var je={},xe={},nt;function rn(){return nt||(nt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=kt();function r(n){return function(a){return e.get(a,n)}}t.property=r})(xe)),xe}var Se={},we={},Oe={},Pe={},it;function Wt(){return it||(it=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r==null||typeof r!="object"&&typeof r!="function"}t.isPrimitive=e})(Pe)),Pe}var at;function nn(){return at||(at=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=dr(),r=Wt(),n=gr();function a(f,i,d){return typeof d!="function"?a(f,i,()=>{}):l(f,i,function h(g,p,v,c,b,j){const O=d(g,p,v,c,b,j);return O!==void 0?!!O:l(g,p,h,j)},new Map)}function l(f,i,d,h){if(i===f)return!0;switch(typeof i){case"object":return o(f,i,d,h);case"function":return Object.keys(i).length>0?l(f,{...i},d,h):n.isEqualsSameValueZero(f,i);default:return e.isObject(f)?typeof i=="string"?i==="":!0:n.isEqualsSameValueZero(f,i)}}function o(f,i,d,h){if(i==null)return!0;if(Array.isArray(i))return m(f,i,d,h);if(i instanceof Map)return u(f,i,d,h);if(i instanceof Set)return y(f,i,d,h);const g=Object.keys(i);if(f==null||r.isPrimitive(f))return g.length===0;if(g.length===0)return!0;if(h?.has(i))return h.get(i)===f;h?.set(i,f);try{for(let p=0;p<g.length;p++){const v=g[p];if(!r.isPrimitive(f)&&!(v in f)||i[v]===void 0&&f[v]!==void 0||i[v]===null&&f[v]!==null||!d(f[v],i[v],v,f,i,h))return!1}return!0}finally{h?.delete(i)}}function u(f,i,d,h){if(i.size===0)return!0;if(!(f instanceof Map))return!1;for(const[g,p]of i.entries()){const v=f.get(g);if(d(v,p,g,f,i,h)===!1)return!1}return!0}function m(f,i,d,h){if(i.length===0)return!0;if(!Array.isArray(f))return!1;const g=new Set;for(let p=0;p<i.length;p++){const v=i[p];let c=!1;for(let b=0;b<f.length;b++){if(g.has(b))continue;const j=f[b];let O=!1;if(d(j,v,p,f,i,h)&&(O=!0),O){g.add(b),c=!0;break}}if(!c)return!1}return!0}function y(f,i,d,h){return i.size===0?!0:f instanceof Set?m([...f],[...i],d,h):!1}t.isMatchWith=a,t.isSetMatch=y})(Oe)),Oe}var st;function Kt(){return st||(st=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=nn();function r(n,a){return e.isMatchWith(n,a,()=>{})}t.isMatch=r})(we)),we}var Be={},Ae={},Te={},ot;function an(){return ot||(ot=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}t.getSymbols=e})(Te)),Te}var De={},lt;function Ge(){return lt||(lt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}t.getTag=e})(De)),De}var Ne={},ct;function zt(){return ct||(ct=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e="[object RegExp]",r="[object String]",n="[object Number]",a="[object Boolean]",l="[object Arguments]",o="[object Symbol]",u="[object Date]",m="[object Map]",y="[object Set]",f="[object Array]",i="[object Function]",d="[object ArrayBuffer]",h="[object Object]",g="[object Error]",p="[object DataView]",v="[object Uint8Array]",c="[object Uint8ClampedArray]",b="[object Uint16Array]",j="[object Uint32Array]",O="[object BigUint64Array]",x="[object Int8Array]",P="[object Int16Array]",A="[object Int32Array]",B="[object BigInt64Array]",T="[object Float32Array]",E="[object Float64Array]";t.argumentsTag=l,t.arrayBufferTag=d,t.arrayTag=f,t.bigInt64ArrayTag=B,t.bigUint64ArrayTag=O,t.booleanTag=a,t.dataViewTag=p,t.dateTag=u,t.errorTag=g,t.float32ArrayTag=T,t.float64ArrayTag=E,t.functionTag=i,t.int16ArrayTag=P,t.int32ArrayTag=A,t.int8ArrayTag=x,t.mapTag=m,t.numberTag=n,t.objectTag=h,t.regexpTag=e,t.setTag=y,t.stringTag=r,t.symbolTag=o,t.uint16ArrayTag=b,t.uint32ArrayTag=j,t.uint8ArrayTag=v,t.uint8ClampedArrayTag=c})(Ne)),Ne}var Ee={},qe={},ut;function sn(){return ut||(ut=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof He=="object"&&He||(function(){return this})()||Function("return this")();t.globalThis=e})(qe)),qe}var ft;function on(){return ft||(ft=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=sn();function r(n){return typeof e.globalThis.Buffer<"u"&&e.globalThis.Buffer.isBuffer(n)}t.isBuffer=r})(Ee)),Ee}var Me={},dt;function ln(){return dt||(dt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}t.isTypedArray=e})(Me)),Me}var gt;function Vt(){return gt||(gt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=an(),r=Ge(),n=zt(),a=on(),l=Wt(),o=ln();function u(i,d){return m(i,void 0,i,new Map,d)}function m(i,d,h,g=new Map,p=void 0){const v=p?.(i,d,h,g);if(v!==void 0)return v;if(l.isPrimitive(i))return i;if(g.has(i))return g.get(i);if(Array.isArray(i)){const c=new Array(i.length);g.set(i,c);for(let b=0;b<i.length;b++)c[b]=m(i[b],b,h,g,p);return Object.hasOwn(i,"index")&&(c.index=i.index),Object.hasOwn(i,"input")&&(c.input=i.input),c}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const c=new RegExp(i.source,i.flags);return c.lastIndex=i.lastIndex,c}if(i instanceof Map){const c=new Map;g.set(i,c);for(const[b,j]of i)c.set(b,m(j,b,h,g,p));return c}if(i instanceof Set){const c=new Set;g.set(i,c);for(const b of i)c.add(m(b,void 0,h,g,p));return c}if(a.isBuffer(i))return i.subarray();if(o.isTypedArray(i)){const c=new(Object.getPrototypeOf(i)).constructor(i.length);g.set(i,c);for(let b=0;b<i.length;b++)c[b]=m(i[b],b,h,g,p);return c}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const c=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return g.set(i,c),y(c,i,h,g,p),c}if(typeof File<"u"&&i instanceof File){const c=new File([i],i.name,{type:i.type});return g.set(i,c),y(c,i,h,g,p),c}if(typeof Blob<"u"&&i instanceof Blob){const c=new Blob([i],{type:i.type});return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof Error){const c=structuredClone(i);return g.set(i,c),c.message=i.message,c.name=i.name,c.stack=i.stack,c.cause=i.cause,c.constructor=i.constructor,y(c,i,h,g,p),c}if(i instanceof Boolean){const c=new Boolean(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof Number){const c=new Number(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof String){const c=new String(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(typeof i=="object"&&f(i)){const c=Object.create(Object.getPrototypeOf(i));return g.set(i,c),y(c,i,h,g,p),c}return i}function y(i,d,h=i,g,p){const v=[...Object.keys(d),...e.getSymbols(d)];for(let c=0;c<v.length;c++){const b=v[c],j=Object.getOwnPropertyDescriptor(i,b);(j==null||j.writable)&&(i[b]=m(d[b],b,h,g,p))}}function f(i){switch(r.getTag(i)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}t.cloneDeepWith=u,t.cloneDeepWithImpl=m,t.copyProperties=y})(Ae)),Ae}var mt;function cn(){return mt||(mt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Vt();function r(n){return e.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}t.cloneDeep=r})(Be)),Be}var yt;function un(){return yt||(yt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Kt(),r=cn();function n(a){return a=r.cloneDeep(a),l=>e.isMatch(l,a)}t.matches=n})(Se)),Se}var Ie={},Re={},Le={},pt;function fn(){return pt||(pt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Vt(),r=Ge(),n=zt();function a(l,o){return e.cloneDeepWith(l,(u,m,y,f)=>{const i=o?.(u,m,y,f);if(i!==void 0)return i;if(typeof l=="object"){if(r.getTag(l)===n.objectTag&&typeof l.constructor!="function"){const d={};return f.set(l,d),e.copyProperties(d,l,y,f),d}switch(Object.prototype.toString.call(l)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new l.constructor(l?.valueOf());return e.copyProperties(d,l),d}case n.argumentsTag:{const d={};return e.copyProperties(d,l),d.length=l.length,d[Symbol.iterator]=l[Symbol.iterator],d}default:return}}})}t.cloneDeepWith=a})(Le)),Le}var ht;function dn(){return ht||(ht=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=fn();function r(n){return e.cloneDeepWith(n)}t.cloneDeep=r})(Re)),Re}var _e={},ke={},bt;function gn(){return bt||(bt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Ge();function r(n){return n!==null&&typeof n=="object"&&e.getTag(n)==="[object Arguments]"}t.isArguments=r})(ke)),ke}var vt;function mn(){return vt||(vt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=mr(),r=pr(),n=gn(),a=yr();function l(o,u){let m;if(Array.isArray(u)?m=u:typeof u=="string"&&e.isDeepKey(u)&&o?.[u]==null?m=a.toPath(u):m=[u],m.length===0)return!1;let y=o;for(let f=0;f<m.length;f++){const i=m[f];if((y==null||!Object.hasOwn(y,i))&&!((Array.isArray(y)||n.isArguments(y))&&r.isIndex(i)&&i<y.length))return!1;y=y[i]}return!0}t.has=l})(_e)),_e}var jt;function yn(){return jt||(jt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Kt(),r=hr(),n=dn(),a=kt(),l=mn();function o(u,m){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return m=n.cloneDeep(m),function(y){const f=a.get(y,u);return f===void 0?l.has(y,u):m===void 0?f===void 0:e.isMatch(f,m)}}t.matchesProperty=o})(Ie)),Ie}var xt;function pn(){return xt||(xt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Ft(),r=rn(),n=un(),a=yn();function l(o){if(o==null)return e.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?a.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}t.iteratee=l})(je)),je}var St;function hn(){return St||(St=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Qr(),r=Cr(),n=Ft(),a=tn(),l=pn();function o(u,m=n.identity){return a.isArrayLikeObject(u)?e.uniqBy(Array.from(u),r.ary(l.iteratee(m),1)):[]}t.uniqBy=o})(me)),me}var Ue,wt;function bn(){return wt||(wt=1,Ue=hn().uniqBy),Ue}var vn=bn();const Ot=Ht(vn);function jn(t,e,r){return e===!0?Ot(t,r):typeof e=="function"?Ot(t,e):t}var oe=1;function xn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[e,r]=S.useState({height:0,left:0,top:0,width:0}),n=S.useCallback(a=>{if(a!=null){var l=a.getBoundingClientRect(),o={height:l.height,left:l.left,top:l.top,width:l.width};(Math.abs(o.height-e.height)>oe||Math.abs(o.left-e.left)>oe||Math.abs(o.top-e.top)>oe||Math.abs(o.width-e.width)>oe)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[e.width,e.height,e.top,e.left,...t]);return[e,n]}function Ke(){return Ke=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ke.apply(null,arguments)}function Pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pt(Object(r),!0).forEach(function(n){Sn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sn(t,e,r){return(e=wn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wn(t){var e=On(t,"string");return typeof e=="symbol"?e:e+""}function On(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pn(t){return Array.isArray(t)&&ue(t[0])&&ue(t[1])?t.join(" ~ "):t}var J={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function Bn(t,e){return e==null?t:vr(t,e)}var An=t=>{var{separator:e=J.separator,contentStyle:r,itemStyle:n,labelStyle:a=J.labelStyle,payload:l,formatter:o,itemSorter:u,wrapperClassName:m,labelClassName:y,label:f,labelFormatter:i,accessibilityLayer:d=J.accessibilityLayer}=t,h=()=>{if(l&&l.length){var x={padding:0,margin:0},P=Bn(l,u),A=P.map((B,T)=>{if(!B||B.type==="none")return null;var E=B.formatter||o||Pn,{value:N,name:_}=B,F=N,W=_;if(E){var M=E(N,_,B,T,l);if(Array.isArray(M))[F,W]=M;else if(M!=null)F=M;else return null}var K=re(re({},J.itemStyle),{},{color:B.color||J.itemStyle.color},n);return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(T),style:K},ue(W)?S.createElement("span",{className:"recharts-tooltip-item-name"},W):null,ue(W)?S.createElement("span",{className:"recharts-tooltip-item-separator"},e):null,S.createElement("span",{className:"recharts-tooltip-item-value"},F),S.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:x},A)}return null},g=re(re({},J.contentStyle),r),p=re({margin:0},a),v=!br(f),c=v?f:"",b=ie("recharts-default-tooltip",m),j=ie("recharts-tooltip-label",y);v&&i&&l!==void 0&&l!==null&&(c=i(f,l));var O=d?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Ke({className:b,style:g},O),S.createElement("p",{className:j,style:p},S.isValidElement(c)?c:"".concat(c)),h())},ne="recharts-tooltip-wrapper",Tn={visibility:"hidden"};function Dn(t){var{coordinate:e,translateX:r,translateY:n}=t;return ie(ne,{["".concat(ne,"-right")]:D(r)&&e&&D(e.x)&&r>=e.x,["".concat(ne,"-left")]:D(r)&&e&&D(e.x)&&r<e.x,["".concat(ne,"-bottom")]:D(n)&&e&&D(e.y)&&n>=e.y,["".concat(ne,"-top")]:D(n)&&e&&D(e.y)&&n<e.y})}function Bt(t){var{allowEscapeViewBox:e,coordinate:r,key:n,offset:a,position:l,reverseDirection:o,tooltipDimension:u,viewBox:m,viewBoxDimension:y}=t;if(l&&D(l[n]))return l[n];var f=r[n]-u-(a>0?a:0),i=r[n]+a;if(e[n])return o[n]?f:i;var d=m[n];if(d==null)return 0;if(o[n]){var h=f,g=d;return h<g?Math.max(i,d):Math.max(f,d)}if(y==null)return 0;var p=i+u,v=d+y;return p>v?Math.max(f,d):Math.max(i,d)}function Nn(t){var{translateX:e,translateY:r,useTranslate3d:n}=t;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function En(t){var{allowEscapeViewBox:e,coordinate:r,offsetTop:n,offsetLeft:a,position:l,reverseDirection:o,tooltipBox:u,useTranslate3d:m,viewBox:y}=t,f,i,d;return u.height>0&&u.width>0&&r?(i=Bt({allowEscapeViewBox:e,coordinate:r,key:"x",offset:a,position:l,reverseDirection:o,tooltipDimension:u.width,viewBox:y,viewBoxDimension:y.width}),d=Bt({allowEscapeViewBox:e,coordinate:r,key:"y",offset:n,position:l,reverseDirection:o,tooltipDimension:u.height,viewBox:y,viewBoxDimension:y.height}),f=Nn({translateX:i,translateY:d,useTranslate3d:m})):f=Tn,{cssProperties:f,cssClasses:Dn({translateX:i,translateY:d,coordinate:r})}}function At(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?At(Object(r),!0).forEach(function(n){qn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qn(t,e,r){return(e=Mn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mn(t){var e=In(t,"string");return typeof e=="symbol"?e:e+""}function In(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Rn(t){if(!(t.prefersReducedMotion&&t.isAnimationActive==="auto")&&t.isAnimationActive&&t.active)return"transform ".concat(t.animationDuration,"ms ").concat(t.animationEasing)}function Ln(t){var e,r,n,a,l,o,u=jr(),[m,y]=S.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));S.useEffect(()=>{var g=p=>{if(p.key==="Escape"){var v,c,b,j;y({dismissed:!0,dismissedAtCoordinate:{x:(v=(c=t.coordinate)===null||c===void 0?void 0:c.x)!==null&&v!==void 0?v:0,y:(b=(j=t.coordinate)===null||j===void 0?void 0:j.y)!==null&&b!==void 0?b:0}})}};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[(e=t.coordinate)===null||e===void 0?void 0:e.x,(r=t.coordinate)===null||r===void 0?void 0:r.y]),m.dismissed&&(((n=(a=t.coordinate)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)!==m.dismissedAtCoordinate.x||((l=(o=t.coordinate)===null||o===void 0?void 0:o.y)!==null&&l!==void 0?l:0)!==m.dismissedAtCoordinate.y)&&y(Q(Q({},m),{},{dismissed:!1}));var{cssClasses:f,cssProperties:i}=En({allowEscapeViewBox:t.allowEscapeViewBox,coordinate:t.coordinate,offsetLeft:typeof t.offset=="number"?t.offset:t.offset.x,offsetTop:typeof t.offset=="number"?t.offset:t.offset.y,position:t.position,reverseDirection:t.reverseDirection,tooltipBox:{height:t.lastBoundingBox.height,width:t.lastBoundingBox.width},useTranslate3d:t.useTranslate3d,viewBox:t.viewBox}),d=t.hasPortalFromProps?{}:Q(Q({transition:Rn({prefersReducedMotion:u,isAnimationActive:t.isAnimationActive,active:t.active,animationDuration:t.animationDuration,animationEasing:t.animationEasing})},i),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),h=Q(Q({},d),{},{visibility:!m.dismissed&&t.active&&t.hasPayload?"visible":"hidden"},t.wrapperStyle);return S.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:f,style:h,ref:t.innerRef},t.children)}var _n=S.memo(Ln),kn=["x","y","top","left","width","height","className"];function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ze.apply(null,arguments)}function Tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Un(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tt(Object(r),!0).forEach(function(n){Fn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Fn(t,e,r){return(e=Wn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wn(t){var e=Kn(t,"string");return typeof e=="symbol"?e:e+""}function Kn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zn(t,e){if(t==null)return{};var r,n,a=Vn(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n<l.length;n++)r=l[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function Vn(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}var Zn=(t,e,r,n,a,l)=>"M".concat(t,",").concat(a,"v").concat(n,"M").concat(l,",").concat(e,"h").concat(r),Gn=t=>{var{x:e=0,y:r=0,top:n=0,left:a=0,width:l=0,height:o=0,className:u}=t,m=zn(t,kn),y=Un({x:e,y:r,top:n,left:a,width:l,height:o},m);return!D(e)||!D(r)||!D(l)||!D(o)||!D(n)||!D(a)?null:S.createElement("path",ze({},xr(y),{className:ie("recharts-cross",u),d:Zn(e,r,l,o,n,a)}))};function Xn(t,e,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-a:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-a,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function Zt(t){var{cx:e,cy:r,radius:n,startAngle:a,endAngle:l}=t,o=fe(e,r,n,a),u=fe(e,r,n,l);return{points:[o,u],cx:e,cy:r,radius:n,startAngle:a,endAngle:l}}function Yn(t,e,r){if(t==="horizontal")return[{x:e.x,y:r.top},{x:e.x,y:r.top+r.height}];if(t==="vertical")return[{x:r.left,y:e.y},{x:r.left+r.width,y:e.y}];if(Ut(e)){if(t==="centric"){var{cx:n,cy:a,innerRadius:l,outerRadius:o,angle:u}=e,m=fe(n,a,l,u),y=fe(n,a,o,u);return[{x:m.x,y:m.y},{x:y.x,y:y.y}]}return Zt(e)}}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Nt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dt(Object(r),!0).forEach(function(n){Hn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hn(t,e,r){return(e=$n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $n(t){var e=Jn(t,"string");return typeof e=="symbol"?e:e+""}function Jn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qn=()=>Y(Or),Cn=()=>{var t=Qn(),e=Y(Sr),r=Y(wr);return!t||!r?Je(void 0,e):Je(Nt(Nt({},t),{},{scale:r}),e)};function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ve.apply(null,arguments)}function Et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function le(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Et(Object(r),!0).forEach(function(n){ei(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ei(t,e,r){return(e=ti(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ti(t){var e=ri(t,"string");return typeof e=="symbol"?e:e+""}function ri(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ni(t){var{cursor:e,cursorComp:r,cursorProps:n}=t;return S.isValidElement(e)?S.cloneElement(e,n):S.createElement(r,n)}function ii(t){var e,{coordinate:r,payload:n,index:a,offset:l,tooltipAxisBandSize:o,layout:u,cursor:m,tooltipEventType:y,chartName:f}=t,i=r,d=n,h=a;if(!m||!i||f!=="ScatterChart"&&y!=="axis")return null;var g,p,v;if(f==="ScatterChart")g=i,p=Gn,v=se.cursorLine;else if(f==="BarChart")g=Xn(u,i,l,o),p=Xr,v=se.cursorRectangle;else if(u==="radial"&&Ut(i)){var{cx:c,cy:b,radius:j,startAngle:O,endAngle:x}=Zt(i);g={cx:c,cy:b,startAngle:O,endAngle:x,innerRadius:j,outerRadius:j},p=Yr,v=se.cursorLine}else g={points:Yn(u,i,l)},p=Nr,v=se.cursorLine;var P=typeof m=="object"&&"className"in m?m.className:void 0,A=le(le(le(le({stroke:"#ccc",pointerEvents:"none"},l),g),Tr(m)),{},{payload:d,payloadIndex:h,className:ie("recharts-tooltip-cursor",P)});return S.createElement(Dr,{zIndex:(e=t.zIndex)!==null&&e!==void 0?e:v},S.createElement(ni,{cursor:m,cursorComp:p,cursorProps:A}))}function ai(t){var e=Cn(),r=Pr(),n=Br(),a=Ar();return e==null||r==null||n==null||a==null?null:S.createElement(ii,Ve({},t,{offset:r,layout:n,tooltipAxisBandSize:e,chartName:a}))}function qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Mt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qt(Object(r),!0).forEach(function(n){si(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function si(t,e,r){return(e=oi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oi(t){var e=li(t,"string");return typeof e=="symbol"?e:e+""}function li(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ci(t){return t.dataKey}function ui(t,e){return S.isValidElement(t)?S.cloneElement(t,e):typeof t=="function"?S.createElement(t,e):S.createElement(An,e)}var It=[],fi={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function di(t){var e,r,n=Er(t,fi),{active:a,allowEscapeViewBox:l,animationDuration:o,animationEasing:u,content:m,filterNull:y,isAnimationActive:f,offset:i,payloadUniqBy:d,position:h,reverseDirection:g,useTranslate3d:p,wrapperStyle:v,cursor:c,shared:b,trigger:j,defaultIndex:O,portal:x,axisId:P}=n,A=qr(),B=typeof O=="number"?String(O):O;S.useEffect(()=>{A(Mr({shared:b,trigger:j,axisId:P,active:a,defaultIndex:B}))},[A,b,j,P,a,B]);var T=Ir(),E=Rr(),N=Lr(b),{activeIndex:_,isActive:F}=(e=Y(U=>_r(U,N,j,B)))!==null&&e!==void 0?e:{},W=Y(U=>kr(U,N,j,B)),M=Y(U=>Ur(U,N,j,B)),K=Y(U=>Fr(U,N,j,B)),I=W,z=Wr(),R=(r=a??F)!==null&&r!==void 0?r:!1,[V,H]=xn([I,R]),G=N==="axis"?M:void 0;Kr(N,j,K,G,_,R);var X=x??z;if(X==null||T==null||N==null)return null;var q=I??It;R||(q=It),y&&q.length&&(q=jn(q.filter(U=>U.value!=null&&(U.hide!==!0||n.includeHidden)),d,ci));var $=q.length>0,w=Mt(Mt({},n),{},{payload:q,label:G,active:R,activeIndex:_,coordinate:K,accessibilityLayer:E}),k=S.createElement(_n,{allowEscapeViewBox:l,animationDuration:o,animationEasing:u,isAnimationActive:f,active:R,coordinate:K,hasPayload:$,offset:i,position:h,reverseDirection:g,useTranslate3d:p,viewBox:T,wrapperStyle:v,lastBoundingBox:V,innerRef:H,hasPortalFromProps:!!x},ui(m,w));return S.createElement(S.Fragment,null,$t.createPortal(k,X),R&&S.createElement(ai,{cursor:c,tooltipEventType:N,coordinate:K,payload:q,index:_}))}const Xe=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),Rt=["B","KB","MB","GB","TB","PB"];function Gt(t){if(t<=0)return"0 B";const e=Math.min(Rt.length-1,Math.floor(Math.log(t)/Math.log(1024))),r=t/1024**e;return`${r.toFixed(r>=100||e===0?0:1)} ${Rt[e]}`}const Fe=50,gi="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",mi=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function Xt(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function Ye(t){return Xt(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function yi(){const t=new Date;return Array.from({length:12},(e,r)=>{const n=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-r,1));return{value:n.toISOString().slice(0,10),label:n.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function pi(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function Lt(t){const e=Z.c(30),{usage:r,metric:n,colorNum:a,formatValue:l,height:o}=t,u=`var(--chart-${a})`,m=`infra-billing-${n}`;let y;e[0]!==r?(y=r.map(hi),e[0]=r,e[1]=y):y=e[1];const f=y;let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i={left:0,right:4,top:8,bottom:0},e[2]=i):i=e[2];let d,h;e[3]!==u?(d=s.jsx("stop",{offset:"0%",stopColor:u,stopOpacity:.25}),h=s.jsx("stop",{offset:"100%",stopColor:u,stopOpacity:0}),e[3]=u,e[4]=d,e[5]=h):(d=e[4],h=e[5]);let g;e[6]!==m||e[7]!==d||e[8]!==h?(g=s.jsx("defs",{children:s.jsxs("linearGradient",{id:m,x1:"0",y1:"0",x2:"0",y2:"1",children:[d,h]})}),e[6]=m,e[7]=d,e[8]=h,e[9]=g):g=e[9];let p;e[10]!==l||e[11]!==o?(p=o>100&&s.jsxs(s.Fragment,{children:[s.jsx(zr,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Gr,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Vr,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:l,width:68})]}),e[10]=l,e[11]=o,e[12]=p):p=e[12];let v,c;e[13]===Symbol.for("react.memo_cache_sentinel")?(v={stroke:"var(--border)",strokeDasharray:"4 4"},c={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=v,e[14]=c):(v=e[13],c=e[14]);let b;e[15]!==l?(b=s.jsx(di,{cursor:v,contentStyle:c,formatter:A=>l(Number(A)||0)}),e[15]=l,e[16]=b):b=e[16];const j=`url(#${m})`;let O;e[17]!==u||e[18]!==n||e[19]!==j?(O=s.jsx(Hr,{type:"linear",dataKey:n,stroke:u,strokeWidth:2,fill:j,dot:!1}),e[17]=u,e[18]=n,e[19]=j,e[20]=O):O=e[20];let x;e[21]!==f||e[22]!==O||e[23]!==g||e[24]!==p||e[25]!==b?(x=s.jsxs($r,{data:f,margin:i,children:[g,p,b,O]}),e[21]=f,e[22]=O,e[23]=g,e[24]=p,e[25]=b,e[26]=x):x=e[26];let P;return e[27]!==o||e[28]!==x?(P=s.jsx(Zr,{width:"100%",height:o,children:x}),e[27]=o,e[28]=x,e[29]=P):P=e[29],P}function hi(t){return{...t,label:pi(t.date)}}function ce(t,e){return t.reduce((r,n)=>r+n[e],0)}function bi(){const t=Z.c(39),e=de(),{sites:r,isLoading:n}=Qt(),[a,l]=S.useState(null),o=yi(),[u,m]=S.useState(o[0].value);let y;t[0]!==a||t[1]!==r?(y=a??r.slice(0,Fe),t[0]=a,t[1]=r,t[2]=y):y=t[2];const f=y,i=!a&&r.length>Fe,{data:d,isLoading:h}=Ct(f,u),g=_t();if(n){let w;return t[3]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ae,{className:"h-64 w-full"}),t[3]=w):w=t[3],w}if(r.length===0){let w;t[4]!==e?(w=e("settings.infraBilling.noSites"),t[4]=e,t[5]=w):w=t[5];let k;return t[6]!==w?(k=s.jsx(L,{className:"p-6 text-sm text-muted-foreground",children:w}),t[6]=w,t[7]=k):k=t[7],k}const p=d?.usage??[],v=d?.pageviewsAvailable??!1,c=!!d&&!d.usageUnavailable,b=(w,k)=>c?k(ce(p,w)):"—",j=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:v&&c?Xe.format(ce(p,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:b("requests",wi)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:b("dataTransferBytes",Gt)}],O=xi;let x;t[8]!==d?.teams?(x=d?.teams??[],t[8]=d?.teams,t[9]=x):x=t[9];const P=x;let A;t[10]!==d?.siteSlugsWithoutTeam?(A=d?.siteSlugsWithoutTeam??[],t[10]=d?.siteSlugsWithoutTeam,t[11]=A):A=t[11];const B=A,T=P.length===1?P[0]:void 0,E=T?.billing??null,N=P.length+(B.length>0?1:0)>1,_=ce(p,"pageviews"),F=_>0?ce(p,"requests")/_:0,W=v&&c&&_>0?F.toFixed(F<10?1:0):"—";let M;t[12]!==d?.billingUnavailable||t[13]!==T||t[14]!==e||t[15]!==P.length?(M=d?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):P.length>1?e("settings.infraBilling.multipleTeams",{count:String(P.length)}):T?Yt(T,e):e("settings.infraBilling.noTeam"),t[12]=d?.billingUnavailable,t[13]=T,t[14]=e,t[15]=P.length,t[16]=M):M=t[16];const K=M;let I;t[17]!==r?(I=r.map(ji),t[17]=r,t[18]=I):I=t[18];let z;t[19]!==e?(z=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=z):z=t[20];let R;t[21]!==f||t[22]!==I||t[23]!==z?(R=s.jsx(rr,{className:"w-auto min-w-56 max-w-full",options:I,defaultValue:f,maxCount:2,placeholder:z,onValueChange:l}),t[21]=f,t[22]=I,t[23]=z,t[24]=R):R=t[24];let V;t[25]!==e?(V=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=V):V=t[26];let H;t[27]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(sr,{}),t[27]=H):H=t[27];let G;t[28]!==V?(G=s.jsx(or,{className:"w-48","aria-label":V,children:H}),t[28]=V,t[29]=G):G=t[29];let X;t[30]!==f.length||t[31]!==e?(X=f.length===0&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=f.length,t[31]=e,t[32]=X):X=t[32];let q;t[33]!==e||t[34]!==i?(q=i&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(Fe)})}),t[33]=e,t[34]=i,t[35]=q):q=t[35];let $;return t[36]!==d?.usageUnavailable||t[37]!==e?($=d?.usageUnavailable&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=d?.usageUnavailable,t[37]=e,t[38]=$):$=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:[R,s.jsxs(nr,{value:u,onValueChange:m,children:[G,s.jsx(ir,{children:o.map(vi)})]})]}),X,q,$,f.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(ge,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(L,{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(er,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),T&&E?.canManageSubscription&&s.jsx(Ze,{variant:"outline",size:"sm",disabled:g.isPending,onClick:()=>g.mutate(T.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[E?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")}),h?s.jsx(ae,{className:"h-5 w-16"}):s.jsx(C,{variant:E.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${E.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:E.nextBillingDate?Ye(E.nextBillingDate):"—"})]})]}):!h&&s.jsx("p",{className:"text-xs text-muted-foreground",children:K}),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:W})]})]})]}),j.map(w=>s.jsxs(L,{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:w.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:o.find(k=>k.value===u)?.label})]}),h?s.jsx(ae,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:w.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(Lt,{usage:p,metric:w.key,colorNum:w.colorNum,formatValue:O(w.key),height:64})})]},w.key))]})}),s.jsx(ge,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:j.map(w=>s.jsxs(L,{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:w.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:w.description})]}),s.jsx(Lt,{usage:p,metric:w.key,colorNum:w.colorNum,formatValue:O(w.key),height:220})]},w.key))})}),s.jsx(ge,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:d?d.billingUnavailable?s.jsx(L,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[P.map(w=>s.jsx(Oi,{team:w,showSites:N},w.siteSlugs.join(","))),B.length>0&&s.jsxs(L,{className:"flex flex-col gap-1 p-4",children:[N&&s.jsx("span",{className:"text-sm font-medium",children:B.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(L,{children:s.jsx(ae,{className:"m-4 h-24"})})})})]})]})}function vi(t){return s.jsx(ar,{value:t.value,children:t.label},t.value)}function ji(t){return{label:t,value:t}}function xi(t){return t==="dataTransferBytes"?Gt:Si}function Si(t){return Xe.format(t)}function wi(t){return Xe.format(t)}function Yt(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Oi(t){const e=Z.c(13),{team:r,showSites:n}=t,a=de(),l=_t(),o=r.billing;let u;e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==r.siteSlugs?(u=n&&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:r.siteSlugs.join(", ")}),o&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(C,{variant:o.planType==="free"?"secondary":"success",children:a(`settings.infraBilling.plan.${o.planType}`)}),o.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:a("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:Ye(o.nextBillingDate)})]}),o.canManageSubscription&&s.jsx(Ze,{variant:"outline",size:"sm",disabled:l.isPending,onClick:()=>l.mutate(r.siteSlugs),children:a("settings.infraBilling.manageButton")})]})]}),e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=r.siteSlugs,e[5]=u):u=e[5];let m;e[6]!==o||e[7]!==a||e[8]!==r?(m=o?o.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:a("settings.infraBilling.noInvoices")}):s.jsx(Pi,{invoices:o.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:Yt(r,a)}),e[6]=o,e[7]=a,e[8]=r,e[9]=m):m=e[9];let y;return e[10]!==u||e[11]!==m?(y=s.jsxs(L,{className:"gap-0 overflow-x-auto",children:[u,m]}),e[10]=u,e[11]=m,e[12]=y):y=e[12],y}function Pi(t){const e=Z.c(40),{invoices:r}=t,n=de();let a;e[0]!==r?(a=r.some(Bi),e[0]=r,e[1]=a):a=e[1];const l=a;let o;e[2]!==n?(o=n("settings.infraBilling.invoiceReference"),e[2]=n,e[3]=o):o=e[3];let u;e[4]!==o?(u=s.jsx(ee,{children:o}),e[4]=o,e[5]=u):u=e[5];let m;e[6]!==n?(m=n("settings.infraBilling.invoiceDue"),e[6]=n,e[7]=m):m=e[7];let y;e[8]!==m?(y=s.jsx(ee,{children:m}),e[8]=m,e[9]=y):y=e[9];let f;e[10]!==n?(f=n("settings.infraBilling.invoiceAmount"),e[10]=n,e[11]=f):f=e[11];let i;e[12]!==f?(i=s.jsx(ee,{children:f}),e[12]=f,e[13]=i):i=e[13];let d;e[14]!==n?(d=n("settings.infraBilling.invoiceStatus"),e[14]=n,e[15]=d):d=e[15];let h;e[16]!==d?(h=s.jsx(ee,{children:d}),e[16]=d,e[17]=h):h=e[17];let g;e[18]!==n?(g=n("settings.infraBilling.invoiceDocuments"),e[18]=n,e[19]=g):g=e[19];let p;e[20]!==g?(p=s.jsx(ee,{children:g}),e[20]=g,e[21]=p):p=e[21];let v;e[22]!==p||e[23]!==u||e[24]!==y||e[25]!==i||e[26]!==h?(v=s.jsx(lr,{children:s.jsxs($e,{children:[u,y,i,h,p]})}),e[22]=p,e[23]=u,e[24]=y,e[25]=i,e[26]=h,e[27]=v):v=e[27];let c;if(e[28]!==r||e[29]!==n||e[30]!==l){let O;e[32]!==n||e[33]!==l?(O=x=>s.jsxs($e,{children:[s.jsx(te,{children:x.referenceMonth?Xt(x.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(te,{children:x.dueDate?Ye(x.dueDate):"—"}),s.jsx(te,{className:"tabular-nums",children:mi.format(x.value)}),s.jsx(te,{children:s.jsx(Ai,{status:x.status})}),s.jsxs(te,{className:"flex gap-2",children:[x.nfUrl&&s.jsx(We,{href:x.nfUrl,label:n("settings.infraBilling.invoiceNf")}),x.bankSlipUrl&&s.jsx(We,{href:x.bankSlipUrl,label:n("settings.infraBilling.invoiceBankSlip")}),!x.bankSlipUrl&&!l&&x.nfUrl&&s.jsx(We,{href:gi,label:n("settings.infraBilling.invoiceBankTransfer")}),!x.nfUrl&&!x.bankSlipUrl&&"—"]})]},x.id),e[32]=n,e[33]=l,e[34]=O):O=e[34],c=r.map(O),e[28]=r,e[29]=n,e[30]=l,e[31]=c}else c=e[31];let b;e[35]!==c?(b=s.jsx(cr,{children:c}),e[35]=c,e[36]=b):b=e[36];let j;return e[37]!==v||e[38]!==b?(j=s.jsxs(ur,{children:[v,b]}),e[37]=v,e[38]=b,e[39]=j):j=e[39],j}function Bi(t){return!!t.bankSlipUrl}function We(t){const e=Z.c(4),{href:r,label:n}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(tr,{size:14}),e[0]=a):a=e[0];let l;return e[1]!==r||e[2]!==n?(l=s.jsx(Ze,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:r,target:"_blank",rel:"noreferrer",children:[a,n]})}),e[1]=r,e[2]=n,e[3]=l):l=e[3],l}function Ai(t){const e=Z.c(14),{status:r}=t,n=de(),a=r.toLowerCase();if(a==="paid"){let o;e[0]!==n?(o=n("settings.infraBilling.statusPaid"),e[0]=n,e[1]=o):o=e[1];let u;return e[2]!==o?(u=s.jsx(C,{variant:"success",children:o}),e[2]=o,e[3]=u):u=e[3],u}if(a==="overdue"){let o;e[4]!==n?(o=n("settings.infraBilling.statusOverdue"),e[4]=n,e[5]=o):o=e[5];let u;return e[6]!==o?(u=s.jsx(C,{variant:"destructive",children:o}),e[6]=o,e[7]=u):u=e[7],u}if(a==="registered"){let o;e[8]!==n?(o=n("settings.infraBilling.statusPending"),e[8]=n,e[9]=o):o=e[9];let u;return e[10]!==o?(u=s.jsx(C,{variant:"warning",children:o}),e[10]=o,e[11]=u):u=e[11],u}let l;return e[12]!==r?(l=s.jsx(C,{variant:"secondary",children:r}),e[12]=r,e[13]=l):l=e[13],l}function Ti(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Jt,{group:"billing",children:s.jsx(bi,{})}),t[0]=e):e=t[0],e}function ea(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Jr,{capability:"members:manage",area:"billing",children:s.jsx(Ti,{})}),t[0]=e):e=t[0],e}export{ea as default};
|
|
1
|
+
import{e$ as He,co as Ht,r as S,f2 as ie,aR as $t,c as Z,j as s,fH as Jt,b as de,fJ as Qt,fK as Ct,fL as _t,e_ as L,ec as ge,B as Ze,aS as ae}from"./index-Creb5Fal.js";import{i as er}from"./CreditCard01-N4OPgVDg.js";import{n as tr}from"./LinkExternal01-mH0kFM32.js";import{B as C}from"./badge-lEq6LpEb.js";import{M as rr}from"./multi-select-y9FwQ-dm.js";import{S as nr,d as ir,c as ar,a as sr,b as or}from"./select-DUxatCDi.js";import{T as ee,a as lr,b as $e,c as te,d as cr,e as ur}from"./table-BbevayqW.js";import{aH as fr,aI as kt,aJ as dr,aK as gr,aL as mr,aM as yr,aN as pr,aO as hr,P as br,aP as ue,aQ as vr,J as D,aR as jr,W as xr,an as fe,aS as Ut,z as Y,aT as Sr,aU as wr,j as Je,aV as Or,aW as Pr,v as Br,x as Ar,aE as Tr,Z as Dr,D as se,X as Nr,r as Er,a5 as qr,aX as Mr,aY as Ir,aZ as Rr,a_ as Lr,a$ as _r,b0 as kr,b1 as Ur,b2 as Fr,b3 as Wr,b4 as Kr,C as zr,Y as Vr,b5 as Zr}from"./CartesianChart-C-1Ljn_q.js";import{X as Gr}from"./XAxis-DHX42RQV.js";import{R as Xr,S as Yr}from"./Sector-BGpLXB4C.js";import{A as Hr,a as $r}from"./AreaChart-DgRgPjRl.js";import{R as Jr}from"./require-capability-r3Xn3m_O.js";import"./checkbox-69BFI5HM.js";import"./Check-COzQ04E7.js";import"./ChevronUp-RdnkaZaK.js";import"./command-BzdiaYU5.js";import"./index-DrzDi7N3.js";import"./dialog-BK1Ueu93.js";import"./X-BpUF7FNJ.js";import"./SearchMd-BBjcQIvr.js";import"./popover-Dvqj57GQ.js";import"./index-hVDNPnIj.js";import"./index-CzSdBX-p.js";import"./access-gate-m2qtNNPd.js";import"./capability-load-error-khp8kp3N.js";var me={},ye={},Qe;function Qr(){return Qe||(Qe=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r,n){const a=new Map;for(let l=0;l<r.length;l++){const o=r[l],u=n(o,l,r);a.has(u)||a.set(u,o)}return Array.from(a.values())}t.uniqBy=e})(ye)),ye}var pe={},Ce;function Cr(){return Ce||(Ce=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r,n){return function(...a){return r.apply(this,a.slice(0,n))}}t.ary=e})(pe)),pe}var he={},et;function Ft(){return et||(et=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r}t.identity=e})(he)),he}var be={},ve={},tt;function en(){return tt||(tt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return typeof r=="object"&&r!==null}t.isObjectLike=e})(ve)),ve}var rt;function tn(){return rt||(rt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=fr(),r=en();function n(a){return r.isObjectLike(a)&&e.isArrayLike(a)}t.isArrayLikeObject=n})(be)),be}var je={},xe={},nt;function rn(){return nt||(nt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=kt();function r(n){return function(a){return e.get(a,n)}}t.property=r})(xe)),xe}var Se={},we={},Oe={},Pe={},it;function Wt(){return it||(it=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r==null||typeof r!="object"&&typeof r!="function"}t.isPrimitive=e})(Pe)),Pe}var at;function nn(){return at||(at=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=dr(),r=Wt(),n=gr();function a(f,i,d){return typeof d!="function"?a(f,i,()=>{}):l(f,i,function h(g,p,v,c,b,j){const O=d(g,p,v,c,b,j);return O!==void 0?!!O:l(g,p,h,j)},new Map)}function l(f,i,d,h){if(i===f)return!0;switch(typeof i){case"object":return o(f,i,d,h);case"function":return Object.keys(i).length>0?l(f,{...i},d,h):n.isEqualsSameValueZero(f,i);default:return e.isObject(f)?typeof i=="string"?i==="":!0:n.isEqualsSameValueZero(f,i)}}function o(f,i,d,h){if(i==null)return!0;if(Array.isArray(i))return m(f,i,d,h);if(i instanceof Map)return u(f,i,d,h);if(i instanceof Set)return y(f,i,d,h);const g=Object.keys(i);if(f==null||r.isPrimitive(f))return g.length===0;if(g.length===0)return!0;if(h?.has(i))return h.get(i)===f;h?.set(i,f);try{for(let p=0;p<g.length;p++){const v=g[p];if(!r.isPrimitive(f)&&!(v in f)||i[v]===void 0&&f[v]!==void 0||i[v]===null&&f[v]!==null||!d(f[v],i[v],v,f,i,h))return!1}return!0}finally{h?.delete(i)}}function u(f,i,d,h){if(i.size===0)return!0;if(!(f instanceof Map))return!1;for(const[g,p]of i.entries()){const v=f.get(g);if(d(v,p,g,f,i,h)===!1)return!1}return!0}function m(f,i,d,h){if(i.length===0)return!0;if(!Array.isArray(f))return!1;const g=new Set;for(let p=0;p<i.length;p++){const v=i[p];let c=!1;for(let b=0;b<f.length;b++){if(g.has(b))continue;const j=f[b];let O=!1;if(d(j,v,p,f,i,h)&&(O=!0),O){g.add(b),c=!0;break}}if(!c)return!1}return!0}function y(f,i,d,h){return i.size===0?!0:f instanceof Set?m([...f],[...i],d,h):!1}t.isMatchWith=a,t.isSetMatch=y})(Oe)),Oe}var st;function Kt(){return st||(st=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=nn();function r(n,a){return e.isMatchWith(n,a,()=>{})}t.isMatch=r})(we)),we}var Be={},Ae={},Te={},ot;function an(){return ot||(ot=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}t.getSymbols=e})(Te)),Te}var De={},lt;function Ge(){return lt||(lt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}t.getTag=e})(De)),De}var Ne={},ct;function zt(){return ct||(ct=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e="[object RegExp]",r="[object String]",n="[object Number]",a="[object Boolean]",l="[object Arguments]",o="[object Symbol]",u="[object Date]",m="[object Map]",y="[object Set]",f="[object Array]",i="[object Function]",d="[object ArrayBuffer]",h="[object Object]",g="[object Error]",p="[object DataView]",v="[object Uint8Array]",c="[object Uint8ClampedArray]",b="[object Uint16Array]",j="[object Uint32Array]",O="[object BigUint64Array]",x="[object Int8Array]",P="[object Int16Array]",A="[object Int32Array]",B="[object BigInt64Array]",T="[object Float32Array]",E="[object Float64Array]";t.argumentsTag=l,t.arrayBufferTag=d,t.arrayTag=f,t.bigInt64ArrayTag=B,t.bigUint64ArrayTag=O,t.booleanTag=a,t.dataViewTag=p,t.dateTag=u,t.errorTag=g,t.float32ArrayTag=T,t.float64ArrayTag=E,t.functionTag=i,t.int16ArrayTag=P,t.int32ArrayTag=A,t.int8ArrayTag=x,t.mapTag=m,t.numberTag=n,t.objectTag=h,t.regexpTag=e,t.setTag=y,t.stringTag=r,t.symbolTag=o,t.uint16ArrayTag=b,t.uint32ArrayTag=j,t.uint8ArrayTag=v,t.uint8ClampedArrayTag=c})(Ne)),Ne}var Ee={},qe={},ut;function sn(){return ut||(ut=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof He=="object"&&He||(function(){return this})()||Function("return this")();t.globalThis=e})(qe)),qe}var ft;function on(){return ft||(ft=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=sn();function r(n){return typeof e.globalThis.Buffer<"u"&&e.globalThis.Buffer.isBuffer(n)}t.isBuffer=r})(Ee)),Ee}var Me={},dt;function ln(){return dt||(dt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}t.isTypedArray=e})(Me)),Me}var gt;function Vt(){return gt||(gt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=an(),r=Ge(),n=zt(),a=on(),l=Wt(),o=ln();function u(i,d){return m(i,void 0,i,new Map,d)}function m(i,d,h,g=new Map,p=void 0){const v=p?.(i,d,h,g);if(v!==void 0)return v;if(l.isPrimitive(i))return i;if(g.has(i))return g.get(i);if(Array.isArray(i)){const c=new Array(i.length);g.set(i,c);for(let b=0;b<i.length;b++)c[b]=m(i[b],b,h,g,p);return Object.hasOwn(i,"index")&&(c.index=i.index),Object.hasOwn(i,"input")&&(c.input=i.input),c}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const c=new RegExp(i.source,i.flags);return c.lastIndex=i.lastIndex,c}if(i instanceof Map){const c=new Map;g.set(i,c);for(const[b,j]of i)c.set(b,m(j,b,h,g,p));return c}if(i instanceof Set){const c=new Set;g.set(i,c);for(const b of i)c.add(m(b,void 0,h,g,p));return c}if(a.isBuffer(i))return i.subarray();if(o.isTypedArray(i)){const c=new(Object.getPrototypeOf(i)).constructor(i.length);g.set(i,c);for(let b=0;b<i.length;b++)c[b]=m(i[b],b,h,g,p);return c}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const c=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return g.set(i,c),y(c,i,h,g,p),c}if(typeof File<"u"&&i instanceof File){const c=new File([i],i.name,{type:i.type});return g.set(i,c),y(c,i,h,g,p),c}if(typeof Blob<"u"&&i instanceof Blob){const c=new Blob([i],{type:i.type});return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof Error){const c=structuredClone(i);return g.set(i,c),c.message=i.message,c.name=i.name,c.stack=i.stack,c.cause=i.cause,c.constructor=i.constructor,y(c,i,h,g,p),c}if(i instanceof Boolean){const c=new Boolean(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof Number){const c=new Number(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof String){const c=new String(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(typeof i=="object"&&f(i)){const c=Object.create(Object.getPrototypeOf(i));return g.set(i,c),y(c,i,h,g,p),c}return i}function y(i,d,h=i,g,p){const v=[...Object.keys(d),...e.getSymbols(d)];for(let c=0;c<v.length;c++){const b=v[c],j=Object.getOwnPropertyDescriptor(i,b);(j==null||j.writable)&&(i[b]=m(d[b],b,h,g,p))}}function f(i){switch(r.getTag(i)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}t.cloneDeepWith=u,t.cloneDeepWithImpl=m,t.copyProperties=y})(Ae)),Ae}var mt;function cn(){return mt||(mt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Vt();function r(n){return e.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}t.cloneDeep=r})(Be)),Be}var yt;function un(){return yt||(yt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Kt(),r=cn();function n(a){return a=r.cloneDeep(a),l=>e.isMatch(l,a)}t.matches=n})(Se)),Se}var Ie={},Re={},Le={},pt;function fn(){return pt||(pt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Vt(),r=Ge(),n=zt();function a(l,o){return e.cloneDeepWith(l,(u,m,y,f)=>{const i=o?.(u,m,y,f);if(i!==void 0)return i;if(typeof l=="object"){if(r.getTag(l)===n.objectTag&&typeof l.constructor!="function"){const d={};return f.set(l,d),e.copyProperties(d,l,y,f),d}switch(Object.prototype.toString.call(l)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new l.constructor(l?.valueOf());return e.copyProperties(d,l),d}case n.argumentsTag:{const d={};return e.copyProperties(d,l),d.length=l.length,d[Symbol.iterator]=l[Symbol.iterator],d}default:return}}})}t.cloneDeepWith=a})(Le)),Le}var ht;function dn(){return ht||(ht=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=fn();function r(n){return e.cloneDeepWith(n)}t.cloneDeep=r})(Re)),Re}var _e={},ke={},bt;function gn(){return bt||(bt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Ge();function r(n){return n!==null&&typeof n=="object"&&e.getTag(n)==="[object Arguments]"}t.isArguments=r})(ke)),ke}var vt;function mn(){return vt||(vt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=mr(),r=pr(),n=gn(),a=yr();function l(o,u){let m;if(Array.isArray(u)?m=u:typeof u=="string"&&e.isDeepKey(u)&&o?.[u]==null?m=a.toPath(u):m=[u],m.length===0)return!1;let y=o;for(let f=0;f<m.length;f++){const i=m[f];if((y==null||!Object.hasOwn(y,i))&&!((Array.isArray(y)||n.isArguments(y))&&r.isIndex(i)&&i<y.length))return!1;y=y[i]}return!0}t.has=l})(_e)),_e}var jt;function yn(){return jt||(jt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Kt(),r=hr(),n=dn(),a=kt(),l=mn();function o(u,m){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return m=n.cloneDeep(m),function(y){const f=a.get(y,u);return f===void 0?l.has(y,u):m===void 0?f===void 0:e.isMatch(f,m)}}t.matchesProperty=o})(Ie)),Ie}var xt;function pn(){return xt||(xt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Ft(),r=rn(),n=un(),a=yn();function l(o){if(o==null)return e.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?a.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}t.iteratee=l})(je)),je}var St;function hn(){return St||(St=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Qr(),r=Cr(),n=Ft(),a=tn(),l=pn();function o(u,m=n.identity){return a.isArrayLikeObject(u)?e.uniqBy(Array.from(u),r.ary(l.iteratee(m),1)):[]}t.uniqBy=o})(me)),me}var Ue,wt;function bn(){return wt||(wt=1,Ue=hn().uniqBy),Ue}var vn=bn();const Ot=Ht(vn);function jn(t,e,r){return e===!0?Ot(t,r):typeof e=="function"?Ot(t,e):t}var oe=1;function xn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[e,r]=S.useState({height:0,left:0,top:0,width:0}),n=S.useCallback(a=>{if(a!=null){var l=a.getBoundingClientRect(),o={height:l.height,left:l.left,top:l.top,width:l.width};(Math.abs(o.height-e.height)>oe||Math.abs(o.left-e.left)>oe||Math.abs(o.top-e.top)>oe||Math.abs(o.width-e.width)>oe)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[e.width,e.height,e.top,e.left,...t]);return[e,n]}function Ke(){return Ke=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ke.apply(null,arguments)}function Pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pt(Object(r),!0).forEach(function(n){Sn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sn(t,e,r){return(e=wn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wn(t){var e=On(t,"string");return typeof e=="symbol"?e:e+""}function On(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pn(t){return Array.isArray(t)&&ue(t[0])&&ue(t[1])?t.join(" ~ "):t}var J={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function Bn(t,e){return e==null?t:vr(t,e)}var An=t=>{var{separator:e=J.separator,contentStyle:r,itemStyle:n,labelStyle:a=J.labelStyle,payload:l,formatter:o,itemSorter:u,wrapperClassName:m,labelClassName:y,label:f,labelFormatter:i,accessibilityLayer:d=J.accessibilityLayer}=t,h=()=>{if(l&&l.length){var x={padding:0,margin:0},P=Bn(l,u),A=P.map((B,T)=>{if(!B||B.type==="none")return null;var E=B.formatter||o||Pn,{value:N,name:_}=B,F=N,W=_;if(E){var M=E(N,_,B,T,l);if(Array.isArray(M))[F,W]=M;else if(M!=null)F=M;else return null}var K=re(re({},J.itemStyle),{},{color:B.color||J.itemStyle.color},n);return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(T),style:K},ue(W)?S.createElement("span",{className:"recharts-tooltip-item-name"},W):null,ue(W)?S.createElement("span",{className:"recharts-tooltip-item-separator"},e):null,S.createElement("span",{className:"recharts-tooltip-item-value"},F),S.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:x},A)}return null},g=re(re({},J.contentStyle),r),p=re({margin:0},a),v=!br(f),c=v?f:"",b=ie("recharts-default-tooltip",m),j=ie("recharts-tooltip-label",y);v&&i&&l!==void 0&&l!==null&&(c=i(f,l));var O=d?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Ke({className:b,style:g},O),S.createElement("p",{className:j,style:p},S.isValidElement(c)?c:"".concat(c)),h())},ne="recharts-tooltip-wrapper",Tn={visibility:"hidden"};function Dn(t){var{coordinate:e,translateX:r,translateY:n}=t;return ie(ne,{["".concat(ne,"-right")]:D(r)&&e&&D(e.x)&&r>=e.x,["".concat(ne,"-left")]:D(r)&&e&&D(e.x)&&r<e.x,["".concat(ne,"-bottom")]:D(n)&&e&&D(e.y)&&n>=e.y,["".concat(ne,"-top")]:D(n)&&e&&D(e.y)&&n<e.y})}function Bt(t){var{allowEscapeViewBox:e,coordinate:r,key:n,offset:a,position:l,reverseDirection:o,tooltipDimension:u,viewBox:m,viewBoxDimension:y}=t;if(l&&D(l[n]))return l[n];var f=r[n]-u-(a>0?a:0),i=r[n]+a;if(e[n])return o[n]?f:i;var d=m[n];if(d==null)return 0;if(o[n]){var h=f,g=d;return h<g?Math.max(i,d):Math.max(f,d)}if(y==null)return 0;var p=i+u,v=d+y;return p>v?Math.max(f,d):Math.max(i,d)}function Nn(t){var{translateX:e,translateY:r,useTranslate3d:n}=t;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function En(t){var{allowEscapeViewBox:e,coordinate:r,offsetTop:n,offsetLeft:a,position:l,reverseDirection:o,tooltipBox:u,useTranslate3d:m,viewBox:y}=t,f,i,d;return u.height>0&&u.width>0&&r?(i=Bt({allowEscapeViewBox:e,coordinate:r,key:"x",offset:a,position:l,reverseDirection:o,tooltipDimension:u.width,viewBox:y,viewBoxDimension:y.width}),d=Bt({allowEscapeViewBox:e,coordinate:r,key:"y",offset:n,position:l,reverseDirection:o,tooltipDimension:u.height,viewBox:y,viewBoxDimension:y.height}),f=Nn({translateX:i,translateY:d,useTranslate3d:m})):f=Tn,{cssProperties:f,cssClasses:Dn({translateX:i,translateY:d,coordinate:r})}}function At(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?At(Object(r),!0).forEach(function(n){qn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qn(t,e,r){return(e=Mn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mn(t){var e=In(t,"string");return typeof e=="symbol"?e:e+""}function In(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Rn(t){if(!(t.prefersReducedMotion&&t.isAnimationActive==="auto")&&t.isAnimationActive&&t.active)return"transform ".concat(t.animationDuration,"ms ").concat(t.animationEasing)}function Ln(t){var e,r,n,a,l,o,u=jr(),[m,y]=S.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));S.useEffect(()=>{var g=p=>{if(p.key==="Escape"){var v,c,b,j;y({dismissed:!0,dismissedAtCoordinate:{x:(v=(c=t.coordinate)===null||c===void 0?void 0:c.x)!==null&&v!==void 0?v:0,y:(b=(j=t.coordinate)===null||j===void 0?void 0:j.y)!==null&&b!==void 0?b:0}})}};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[(e=t.coordinate)===null||e===void 0?void 0:e.x,(r=t.coordinate)===null||r===void 0?void 0:r.y]),m.dismissed&&(((n=(a=t.coordinate)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)!==m.dismissedAtCoordinate.x||((l=(o=t.coordinate)===null||o===void 0?void 0:o.y)!==null&&l!==void 0?l:0)!==m.dismissedAtCoordinate.y)&&y(Q(Q({},m),{},{dismissed:!1}));var{cssClasses:f,cssProperties:i}=En({allowEscapeViewBox:t.allowEscapeViewBox,coordinate:t.coordinate,offsetLeft:typeof t.offset=="number"?t.offset:t.offset.x,offsetTop:typeof t.offset=="number"?t.offset:t.offset.y,position:t.position,reverseDirection:t.reverseDirection,tooltipBox:{height:t.lastBoundingBox.height,width:t.lastBoundingBox.width},useTranslate3d:t.useTranslate3d,viewBox:t.viewBox}),d=t.hasPortalFromProps?{}:Q(Q({transition:Rn({prefersReducedMotion:u,isAnimationActive:t.isAnimationActive,active:t.active,animationDuration:t.animationDuration,animationEasing:t.animationEasing})},i),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),h=Q(Q({},d),{},{visibility:!m.dismissed&&t.active&&t.hasPayload?"visible":"hidden"},t.wrapperStyle);return S.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:f,style:h,ref:t.innerRef},t.children)}var _n=S.memo(Ln),kn=["x","y","top","left","width","height","className"];function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ze.apply(null,arguments)}function Tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Un(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tt(Object(r),!0).forEach(function(n){Fn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Fn(t,e,r){return(e=Wn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wn(t){var e=Kn(t,"string");return typeof e=="symbol"?e:e+""}function Kn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zn(t,e){if(t==null)return{};var r,n,a=Vn(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n<l.length;n++)r=l[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function Vn(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}var Zn=(t,e,r,n,a,l)=>"M".concat(t,",").concat(a,"v").concat(n,"M").concat(l,",").concat(e,"h").concat(r),Gn=t=>{var{x:e=0,y:r=0,top:n=0,left:a=0,width:l=0,height:o=0,className:u}=t,m=zn(t,kn),y=Un({x:e,y:r,top:n,left:a,width:l,height:o},m);return!D(e)||!D(r)||!D(l)||!D(o)||!D(n)||!D(a)?null:S.createElement("path",ze({},xr(y),{className:ie("recharts-cross",u),d:Zn(e,r,l,o,n,a)}))};function Xn(t,e,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-a:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-a,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function Zt(t){var{cx:e,cy:r,radius:n,startAngle:a,endAngle:l}=t,o=fe(e,r,n,a),u=fe(e,r,n,l);return{points:[o,u],cx:e,cy:r,radius:n,startAngle:a,endAngle:l}}function Yn(t,e,r){if(t==="horizontal")return[{x:e.x,y:r.top},{x:e.x,y:r.top+r.height}];if(t==="vertical")return[{x:r.left,y:e.y},{x:r.left+r.width,y:e.y}];if(Ut(e)){if(t==="centric"){var{cx:n,cy:a,innerRadius:l,outerRadius:o,angle:u}=e,m=fe(n,a,l,u),y=fe(n,a,o,u);return[{x:m.x,y:m.y},{x:y.x,y:y.y}]}return Zt(e)}}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Nt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dt(Object(r),!0).forEach(function(n){Hn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hn(t,e,r){return(e=$n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $n(t){var e=Jn(t,"string");return typeof e=="symbol"?e:e+""}function Jn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qn=()=>Y(Or),Cn=()=>{var t=Qn(),e=Y(Sr),r=Y(wr);return!t||!r?Je(void 0,e):Je(Nt(Nt({},t),{},{scale:r}),e)};function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ve.apply(null,arguments)}function Et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function le(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Et(Object(r),!0).forEach(function(n){ei(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ei(t,e,r){return(e=ti(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ti(t){var e=ri(t,"string");return typeof e=="symbol"?e:e+""}function ri(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ni(t){var{cursor:e,cursorComp:r,cursorProps:n}=t;return S.isValidElement(e)?S.cloneElement(e,n):S.createElement(r,n)}function ii(t){var e,{coordinate:r,payload:n,index:a,offset:l,tooltipAxisBandSize:o,layout:u,cursor:m,tooltipEventType:y,chartName:f}=t,i=r,d=n,h=a;if(!m||!i||f!=="ScatterChart"&&y!=="axis")return null;var g,p,v;if(f==="ScatterChart")g=i,p=Gn,v=se.cursorLine;else if(f==="BarChart")g=Xn(u,i,l,o),p=Xr,v=se.cursorRectangle;else if(u==="radial"&&Ut(i)){var{cx:c,cy:b,radius:j,startAngle:O,endAngle:x}=Zt(i);g={cx:c,cy:b,startAngle:O,endAngle:x,innerRadius:j,outerRadius:j},p=Yr,v=se.cursorLine}else g={points:Yn(u,i,l)},p=Nr,v=se.cursorLine;var P=typeof m=="object"&&"className"in m?m.className:void 0,A=le(le(le(le({stroke:"#ccc",pointerEvents:"none"},l),g),Tr(m)),{},{payload:d,payloadIndex:h,className:ie("recharts-tooltip-cursor",P)});return S.createElement(Dr,{zIndex:(e=t.zIndex)!==null&&e!==void 0?e:v},S.createElement(ni,{cursor:m,cursorComp:p,cursorProps:A}))}function ai(t){var e=Cn(),r=Pr(),n=Br(),a=Ar();return e==null||r==null||n==null||a==null?null:S.createElement(ii,Ve({},t,{offset:r,layout:n,tooltipAxisBandSize:e,chartName:a}))}function qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Mt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qt(Object(r),!0).forEach(function(n){si(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function si(t,e,r){return(e=oi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oi(t){var e=li(t,"string");return typeof e=="symbol"?e:e+""}function li(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ci(t){return t.dataKey}function ui(t,e){return S.isValidElement(t)?S.cloneElement(t,e):typeof t=="function"?S.createElement(t,e):S.createElement(An,e)}var It=[],fi={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function di(t){var e,r,n=Er(t,fi),{active:a,allowEscapeViewBox:l,animationDuration:o,animationEasing:u,content:m,filterNull:y,isAnimationActive:f,offset:i,payloadUniqBy:d,position:h,reverseDirection:g,useTranslate3d:p,wrapperStyle:v,cursor:c,shared:b,trigger:j,defaultIndex:O,portal:x,axisId:P}=n,A=qr(),B=typeof O=="number"?String(O):O;S.useEffect(()=>{A(Mr({shared:b,trigger:j,axisId:P,active:a,defaultIndex:B}))},[A,b,j,P,a,B]);var T=Ir(),E=Rr(),N=Lr(b),{activeIndex:_,isActive:F}=(e=Y(U=>_r(U,N,j,B)))!==null&&e!==void 0?e:{},W=Y(U=>kr(U,N,j,B)),M=Y(U=>Ur(U,N,j,B)),K=Y(U=>Fr(U,N,j,B)),I=W,z=Wr(),R=(r=a??F)!==null&&r!==void 0?r:!1,[V,H]=xn([I,R]),G=N==="axis"?M:void 0;Kr(N,j,K,G,_,R);var X=x??z;if(X==null||T==null||N==null)return null;var q=I??It;R||(q=It),y&&q.length&&(q=jn(q.filter(U=>U.value!=null&&(U.hide!==!0||n.includeHidden)),d,ci));var $=q.length>0,w=Mt(Mt({},n),{},{payload:q,label:G,active:R,activeIndex:_,coordinate:K,accessibilityLayer:E}),k=S.createElement(_n,{allowEscapeViewBox:l,animationDuration:o,animationEasing:u,isAnimationActive:f,active:R,coordinate:K,hasPayload:$,offset:i,position:h,reverseDirection:g,useTranslate3d:p,viewBox:T,wrapperStyle:v,lastBoundingBox:V,innerRef:H,hasPortalFromProps:!!x},ui(m,w));return S.createElement(S.Fragment,null,$t.createPortal(k,X),R&&S.createElement(ai,{cursor:c,tooltipEventType:N,coordinate:K,payload:q,index:_}))}const Xe=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),Rt=["B","KB","MB","GB","TB","PB"];function Gt(t){if(t<=0)return"0 B";const e=Math.min(Rt.length-1,Math.floor(Math.log(t)/Math.log(1024))),r=t/1024**e;return`${r.toFixed(r>=100||e===0?0:1)} ${Rt[e]}`}const Fe=50,gi="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",mi=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function Xt(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function Ye(t){return Xt(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function yi(){const t=new Date;return Array.from({length:12},(e,r)=>{const n=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-r,1));return{value:n.toISOString().slice(0,10),label:n.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function pi(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function Lt(t){const e=Z.c(30),{usage:r,metric:n,colorNum:a,formatValue:l,height:o}=t,u=`var(--chart-${a})`,m=`infra-billing-${n}`;let y;e[0]!==r?(y=r.map(hi),e[0]=r,e[1]=y):y=e[1];const f=y;let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i={left:0,right:4,top:8,bottom:0},e[2]=i):i=e[2];let d,h;e[3]!==u?(d=s.jsx("stop",{offset:"0%",stopColor:u,stopOpacity:.25}),h=s.jsx("stop",{offset:"100%",stopColor:u,stopOpacity:0}),e[3]=u,e[4]=d,e[5]=h):(d=e[4],h=e[5]);let g;e[6]!==m||e[7]!==d||e[8]!==h?(g=s.jsx("defs",{children:s.jsxs("linearGradient",{id:m,x1:"0",y1:"0",x2:"0",y2:"1",children:[d,h]})}),e[6]=m,e[7]=d,e[8]=h,e[9]=g):g=e[9];let p;e[10]!==l||e[11]!==o?(p=o>100&&s.jsxs(s.Fragment,{children:[s.jsx(zr,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Gr,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Vr,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:l,width:68})]}),e[10]=l,e[11]=o,e[12]=p):p=e[12];let v,c;e[13]===Symbol.for("react.memo_cache_sentinel")?(v={stroke:"var(--border)",strokeDasharray:"4 4"},c={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=v,e[14]=c):(v=e[13],c=e[14]);let b;e[15]!==l?(b=s.jsx(di,{cursor:v,contentStyle:c,formatter:A=>l(Number(A)||0)}),e[15]=l,e[16]=b):b=e[16];const j=`url(#${m})`;let O;e[17]!==u||e[18]!==n||e[19]!==j?(O=s.jsx(Hr,{type:"linear",dataKey:n,stroke:u,strokeWidth:2,fill:j,dot:!1}),e[17]=u,e[18]=n,e[19]=j,e[20]=O):O=e[20];let x;e[21]!==f||e[22]!==O||e[23]!==g||e[24]!==p||e[25]!==b?(x=s.jsxs($r,{data:f,margin:i,children:[g,p,b,O]}),e[21]=f,e[22]=O,e[23]=g,e[24]=p,e[25]=b,e[26]=x):x=e[26];let P;return e[27]!==o||e[28]!==x?(P=s.jsx(Zr,{width:"100%",height:o,children:x}),e[27]=o,e[28]=x,e[29]=P):P=e[29],P}function hi(t){return{...t,label:pi(t.date)}}function ce(t,e){return t.reduce((r,n)=>r+n[e],0)}function bi(){const t=Z.c(39),e=de(),{sites:r,isLoading:n}=Qt(),[a,l]=S.useState(null),o=yi(),[u,m]=S.useState(o[0].value);let y;t[0]!==a||t[1]!==r?(y=a??r.slice(0,Fe),t[0]=a,t[1]=r,t[2]=y):y=t[2];const f=y,i=!a&&r.length>Fe,{data:d,isLoading:h}=Ct(f,u),g=_t();if(n){let w;return t[3]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ae,{className:"h-64 w-full"}),t[3]=w):w=t[3],w}if(r.length===0){let w;t[4]!==e?(w=e("settings.infraBilling.noSites"),t[4]=e,t[5]=w):w=t[5];let k;return t[6]!==w?(k=s.jsx(L,{className:"p-6 text-sm text-muted-foreground",children:w}),t[6]=w,t[7]=k):k=t[7],k}const p=d?.usage??[],v=d?.pageviewsAvailable??!1,c=!!d&&!d.usageUnavailable,b=(w,k)=>c?k(ce(p,w)):"—",j=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:v&&c?Xe.format(ce(p,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:b("requests",wi)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:b("dataTransferBytes",Gt)}],O=xi;let x;t[8]!==d?.teams?(x=d?.teams??[],t[8]=d?.teams,t[9]=x):x=t[9];const P=x;let A;t[10]!==d?.siteSlugsWithoutTeam?(A=d?.siteSlugsWithoutTeam??[],t[10]=d?.siteSlugsWithoutTeam,t[11]=A):A=t[11];const B=A,T=P.length===1?P[0]:void 0,E=T?.billing??null,N=P.length+(B.length>0?1:0)>1,_=ce(p,"pageviews"),F=_>0?ce(p,"requests")/_:0,W=v&&c&&_>0?F.toFixed(F<10?1:0):"—";let M;t[12]!==d?.billingUnavailable||t[13]!==T||t[14]!==e||t[15]!==P.length?(M=d?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):P.length>1?e("settings.infraBilling.multipleTeams",{count:String(P.length)}):T?Yt(T,e):e("settings.infraBilling.noTeam"),t[12]=d?.billingUnavailable,t[13]=T,t[14]=e,t[15]=P.length,t[16]=M):M=t[16];const K=M;let I;t[17]!==r?(I=r.map(ji),t[17]=r,t[18]=I):I=t[18];let z;t[19]!==e?(z=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=z):z=t[20];let R;t[21]!==f||t[22]!==I||t[23]!==z?(R=s.jsx(rr,{className:"w-auto min-w-56 max-w-full",options:I,defaultValue:f,maxCount:2,placeholder:z,onValueChange:l}),t[21]=f,t[22]=I,t[23]=z,t[24]=R):R=t[24];let V;t[25]!==e?(V=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=V):V=t[26];let H;t[27]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(sr,{}),t[27]=H):H=t[27];let G;t[28]!==V?(G=s.jsx(or,{className:"w-48","aria-label":V,children:H}),t[28]=V,t[29]=G):G=t[29];let X;t[30]!==f.length||t[31]!==e?(X=f.length===0&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=f.length,t[31]=e,t[32]=X):X=t[32];let q;t[33]!==e||t[34]!==i?(q=i&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(Fe)})}),t[33]=e,t[34]=i,t[35]=q):q=t[35];let $;return t[36]!==d?.usageUnavailable||t[37]!==e?($=d?.usageUnavailable&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=d?.usageUnavailable,t[37]=e,t[38]=$):$=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:[R,s.jsxs(nr,{value:u,onValueChange:m,children:[G,s.jsx(ir,{children:o.map(vi)})]})]}),X,q,$,f.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(ge,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(L,{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(er,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),T&&E?.canManageSubscription&&s.jsx(Ze,{variant:"outline",size:"sm",disabled:g.isPending,onClick:()=>g.mutate(T.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[E?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")}),h?s.jsx(ae,{className:"h-5 w-16"}):s.jsx(C,{variant:E.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${E.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:E.nextBillingDate?Ye(E.nextBillingDate):"—"})]})]}):!h&&s.jsx("p",{className:"text-xs text-muted-foreground",children:K}),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:W})]})]})]}),j.map(w=>s.jsxs(L,{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:w.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:o.find(k=>k.value===u)?.label})]}),h?s.jsx(ae,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:w.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(Lt,{usage:p,metric:w.key,colorNum:w.colorNum,formatValue:O(w.key),height:64})})]},w.key))]})}),s.jsx(ge,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:j.map(w=>s.jsxs(L,{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:w.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:w.description})]}),s.jsx(Lt,{usage:p,metric:w.key,colorNum:w.colorNum,formatValue:O(w.key),height:220})]},w.key))})}),s.jsx(ge,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:d?d.billingUnavailable?s.jsx(L,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[P.map(w=>s.jsx(Oi,{team:w,showSites:N},w.siteSlugs.join(","))),B.length>0&&s.jsxs(L,{className:"flex flex-col gap-1 p-4",children:[N&&s.jsx("span",{className:"text-sm font-medium",children:B.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(L,{children:s.jsx(ae,{className:"m-4 h-24"})})})})]})]})}function vi(t){return s.jsx(ar,{value:t.value,children:t.label},t.value)}function ji(t){return{label:t,value:t}}function xi(t){return t==="dataTransferBytes"?Gt:Si}function Si(t){return Xe.format(t)}function wi(t){return Xe.format(t)}function Yt(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Oi(t){const e=Z.c(13),{team:r,showSites:n}=t,a=de(),l=_t(),o=r.billing;let u;e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==r.siteSlugs?(u=n&&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:r.siteSlugs.join(", ")}),o&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(C,{variant:o.planType==="free"?"secondary":"success",children:a(`settings.infraBilling.plan.${o.planType}`)}),o.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:a("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:Ye(o.nextBillingDate)})]}),o.canManageSubscription&&s.jsx(Ze,{variant:"outline",size:"sm",disabled:l.isPending,onClick:()=>l.mutate(r.siteSlugs),children:a("settings.infraBilling.manageButton")})]})]}),e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=r.siteSlugs,e[5]=u):u=e[5];let m;e[6]!==o||e[7]!==a||e[8]!==r?(m=o?o.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:a("settings.infraBilling.noInvoices")}):s.jsx(Pi,{invoices:o.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:Yt(r,a)}),e[6]=o,e[7]=a,e[8]=r,e[9]=m):m=e[9];let y;return e[10]!==u||e[11]!==m?(y=s.jsxs(L,{className:"gap-0 overflow-x-auto",children:[u,m]}),e[10]=u,e[11]=m,e[12]=y):y=e[12],y}function Pi(t){const e=Z.c(40),{invoices:r}=t,n=de();let a;e[0]!==r?(a=r.some(Bi),e[0]=r,e[1]=a):a=e[1];const l=a;let o;e[2]!==n?(o=n("settings.infraBilling.invoiceReference"),e[2]=n,e[3]=o):o=e[3];let u;e[4]!==o?(u=s.jsx(ee,{children:o}),e[4]=o,e[5]=u):u=e[5];let m;e[6]!==n?(m=n("settings.infraBilling.invoiceDue"),e[6]=n,e[7]=m):m=e[7];let y;e[8]!==m?(y=s.jsx(ee,{children:m}),e[8]=m,e[9]=y):y=e[9];let f;e[10]!==n?(f=n("settings.infraBilling.invoiceAmount"),e[10]=n,e[11]=f):f=e[11];let i;e[12]!==f?(i=s.jsx(ee,{children:f}),e[12]=f,e[13]=i):i=e[13];let d;e[14]!==n?(d=n("settings.infraBilling.invoiceStatus"),e[14]=n,e[15]=d):d=e[15];let h;e[16]!==d?(h=s.jsx(ee,{children:d}),e[16]=d,e[17]=h):h=e[17];let g;e[18]!==n?(g=n("settings.infraBilling.invoiceDocuments"),e[18]=n,e[19]=g):g=e[19];let p;e[20]!==g?(p=s.jsx(ee,{children:g}),e[20]=g,e[21]=p):p=e[21];let v;e[22]!==p||e[23]!==u||e[24]!==y||e[25]!==i||e[26]!==h?(v=s.jsx(lr,{children:s.jsxs($e,{children:[u,y,i,h,p]})}),e[22]=p,e[23]=u,e[24]=y,e[25]=i,e[26]=h,e[27]=v):v=e[27];let c;if(e[28]!==r||e[29]!==n||e[30]!==l){let O;e[32]!==n||e[33]!==l?(O=x=>s.jsxs($e,{children:[s.jsx(te,{children:x.referenceMonth?Xt(x.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(te,{children:x.dueDate?Ye(x.dueDate):"—"}),s.jsx(te,{className:"tabular-nums",children:mi.format(x.value)}),s.jsx(te,{children:s.jsx(Ai,{status:x.status})}),s.jsxs(te,{className:"flex gap-2",children:[x.nfUrl&&s.jsx(We,{href:x.nfUrl,label:n("settings.infraBilling.invoiceNf")}),x.bankSlipUrl&&s.jsx(We,{href:x.bankSlipUrl,label:n("settings.infraBilling.invoiceBankSlip")}),!x.bankSlipUrl&&!l&&x.nfUrl&&s.jsx(We,{href:gi,label:n("settings.infraBilling.invoiceBankTransfer")}),!x.nfUrl&&!x.bankSlipUrl&&"—"]})]},x.id),e[32]=n,e[33]=l,e[34]=O):O=e[34],c=r.map(O),e[28]=r,e[29]=n,e[30]=l,e[31]=c}else c=e[31];let b;e[35]!==c?(b=s.jsx(cr,{children:c}),e[35]=c,e[36]=b):b=e[36];let j;return e[37]!==v||e[38]!==b?(j=s.jsxs(ur,{children:[v,b]}),e[37]=v,e[38]=b,e[39]=j):j=e[39],j}function Bi(t){return!!t.bankSlipUrl}function We(t){const e=Z.c(4),{href:r,label:n}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(tr,{size:14}),e[0]=a):a=e[0];let l;return e[1]!==r||e[2]!==n?(l=s.jsx(Ze,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:r,target:"_blank",rel:"noreferrer",children:[a,n]})}),e[1]=r,e[2]=n,e[3]=l):l=e[3],l}function Ai(t){const e=Z.c(14),{status:r}=t,n=de(),a=r.toLowerCase();if(a==="paid"){let o;e[0]!==n?(o=n("settings.infraBilling.statusPaid"),e[0]=n,e[1]=o):o=e[1];let u;return e[2]!==o?(u=s.jsx(C,{variant:"success",children:o}),e[2]=o,e[3]=u):u=e[3],u}if(a==="overdue"){let o;e[4]!==n?(o=n("settings.infraBilling.statusOverdue"),e[4]=n,e[5]=o):o=e[5];let u;return e[6]!==o?(u=s.jsx(C,{variant:"destructive",children:o}),e[6]=o,e[7]=u):u=e[7],u}if(a==="registered"){let o;e[8]!==n?(o=n("settings.infraBilling.statusPending"),e[8]=n,e[9]=o):o=e[9];let u;return e[10]!==o?(u=s.jsx(C,{variant:"warning",children:o}),e[10]=o,e[11]=u):u=e[11],u}let l;return e[12]!==r?(l=s.jsx(C,{variant:"secondary",children:r}),e[12]=r,e[13]=l):l=e[13],l}function Ti(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Jt,{group:"billing",children:s.jsx(bi,{})}),t[0]=e):e=t[0],e}function ea(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Jr,{capability:"members:manage",area:"billing",children:s.jsx(Ti,{})}),t[0]=e):e=t[0],e}export{ea as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,r as C,b as G,j as h,t as N,Z as xe,B as ke,o as de,X as ue,K as Z,q as $,er as me,c$ as oe,es as z,l as we}from"./index-B1zctMWM.js";import{S as fe,s as be}from"./suggestion-089nWMGT.js";import{f as Pe,h as _e,j as Ce,i as B,k as Se,P as ie,l as Fe,c as Ie,u as De,n as je,d as ve,e as Me,F as Re,s as Le,b as Ae}from"./index-De_dnJRN.js";import{d as Ee,h as Ne,c as Te,b as Qe,D as $e}from"./dialog-DUkVOZIE.js";import{aY as Oe}from"./agent-icon-Plx0vVQZ.js";import"./chat-context-CW-2SJ9g.js";import{m as Ue,i as qe,a as Ke}from"./decopilot-CcCmg-UE.js";import{u as pe}from"./use-mcp-client-BCOmh6mH.js";import{b as ze}from"./repository-binding-DB3Rsfan.js";import{g as Be}from"./use-project-scope-B1N6dPlK.js";import{g as ne,s as he}from"./gateway-client-DdEB-W_0.js";import{l as ae,g as ge}from"./use-mcp-prompts-DsQz4qyp.js";import{f as He,a as Je}from"./use-org-fs-CfcB8IFl.js";async function Xe(t,e,n,s,i,o){if(!Ue(e)){N.error("Selected model does not support file uploads");return}const c=n.type||"application/octet-stream";if(!qe(c,e)){const p=Ke(e).parts.map(x=>o(x)).join(", "),w=e?.title??"This model";i?i({fileName:n.name,modelName:w,accepted:p}):N.error(`"${n.name}" can't be attached`,{description:`${w} accepts ${p}.`});return}const d=10*1024*1024;if(n.size>d){N.error(`File "${n.name}" exceeds 10MB limit`);return}try{const p=new FileReader,w=new Promise((r,u)=>{p.onload=()=>{const a=p.result;if(typeof a!="string"){u(new Error("Failed to read file as data URL"));return}const k=a.includes(",")?a.split(",")[1]??a:a;r(k)},p.onerror=u});p.readAsDataURL(n);const x=await w,f={id:crypto.randomUUID(),name:n.name,mimeType:n.type||"application/octet-stream",size:n.size,data:x};Pe(t,{from:s,to:s},f)}catch(p){console.error("Failed to process file:",p),N.error(`Failed to load file "${n.name}"`)}}function Ye(t){const e=H.c(9),{editor:n,selectedModel:s,onUnsupportedFile:i}=t,o=G(),c=C.useRef(We);let d,p;e[0]!==n||e[1]!==i||e[2]!==s||e[3]!==o?(d=()=>{c.current=async(f,r)=>{await Xe(n,s,f,r,i,o)}},p=[n,s,i,o],e[0]=n,e[1]=i,e[2]=s,e[3]=o,e[4]=d,e[5]=p):(d=e[4],p=e[5]),C.useEffect(d,p);let w,x;return e[6]!==n?(w=()=>{if(n?.isDestroyed)return;const f=new _e("fileDropHandler");n.state.plugins.find(a=>a.spec.key===f)&&n.unregisterPlugin(f);const u=new Ce({key:f,props:{handleDrop:(a,k,F,S)=>{if(S)return!1;const b=k.dataTransfer?.files;if(!b||b.length===0)return!1;k.preventDefault();const j=a.posAtCoords({left:k.clientX,top:k.clientY});if(!j)return!1;const I=Array.from(b);return(async()=>{let M=j.pos;for(const D of I)await c.current?.(D,M),M=a.state.selection.to})(),!0},handlePaste:(a,k)=>{const F=k.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(Ve);return S.length===0?!1:(k.preventDefault(),(async()=>{let b=a.state.selection.from;for(const j of S){const I=j.getAsFile();I&&(await c.current?.(I,b),b=a.state.selection.to)}})(),!0)}}});return n.registerPlugin(u),()=>{n?.isDestroyed||n.unregisterPlugin(f)}},x=[n],e[6]=n,e[7]=w,e[8]=x):(w=e[7],x=e[8]),C.useEffect(w,x),null}function Ve(t){return t.kind==="file"}function We(){return Promise.resolve()}function Ct(t){const e=H.c(43),{info:n,onClose:s}=t,i=G(),o=n!==null;let c;e[0]!==s?(c=v=>!v&&s(),e[0]=s,e[1]=c):c=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=["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]=d):d=e[2];let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:d.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=p):p=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(xe,{size:18})}),e[4]=w):w=e[4];let x;e[5]!==i?(x=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=x):x=e[6];let f;e[7]!==x?(f=h.jsx(Ee,{className:"text-xl font-semibold tracking-tight",children:x}),e[7]=x,e[8]=f):f=e[8];const r=n?.fileName;let u;e[9]!==r?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",r,"”"]}),e[9]=r,e[10]=u):u=e[10];let a;e[11]!==i?(a=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=a):a=e[12];let k;e[13]!==a||e[14]!==u?(k=h.jsxs(Ne,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",a]}),e[13]=a,e[14]=u,e[15]=k):k=e[15];let F;e[16]!==k||e[17]!==f?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[p,h.jsxs(Te,{className:"relative gap-4",children:[w,h.jsxs("div",{children:[f,k]})]})]}),e[16]=k,e[17]=f,e[18]=F):F=e[18];const S=n?.modelName??"";let b;e[19]!==i||e[20]!==S?(b=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=b):b=e[21];let j;e[22]!==b?(j=h.jsx("div",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground mb-2",children:b}),e[22]=b,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 M=n?.accepted;let D;e[25]!==M?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:M})]}),e[25]=M,e[26]=D):D=e[26];let l;e[27]!==j||e[28]!==D?(l=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"rounded-xl border border-border p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=l):l=e[29];let m;e[30]!==i?(m=i("chat.uploader.gotIt"),e[30]=i,e[31]=m):m=e[31];let y;e[32]!==s||e[33]!==m?(y=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(ke,{onClick:s,children:m})}),e[32]=s,e[33]=m,e[34]=y):y=e[34];let _;e[35]!==F||e[36]!==l||e[37]!==y?(_=h.jsxs(Qe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ze,children:[F,l,y]}),e[35]=F,e[36]=l,e[37]=y,e[38]=_):_=e[38];let R;return e[39]!==o||e[40]!==c||e[41]!==_?(R=h.jsx($e,{open:o,onOpenChange:c,children:_}),e[39]=o,e[40]=c,e[41]=_,e[42]=R):R=e[42],R}function Ze(t){return t.preventDefault()}function St(){const t=H.c(3),[e,n]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>n(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:n,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}const Ge=t=>{const e=H.c(53),{editor:n,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),c=de(),{org:d}=ue(),p=ze();let w;e[0]!==p?(w=Be(p),e[0]=p,e[1]=w):w=e[1];const x=w;let f;e[2]!==d.id||e[3]!==d.slug||e[4]!==s?(f={connectionId:s,orgId:d.id,orgSlug:d.slug},e[2]=d.id,e[3]=d.slug,e[4]=s,e[5]=f):f=e[5];const r=pe(f);let u;e[6]!==d.id||e[7]!==s?(u=Z.virtualMcpResources(s,d.id),e[6]=d.id,e[7]=s,e[8]=u):u=e[8];const a=u,[k,F]=C.useState("categories");let S;e[9]!==k?(S=()=>k,e[9]=k,e[10]=S):S=e[10];const b=C.useEffectEvent(S),j=C.useRef(null),I=C.useRef(!1),M=s??"default";let D;e[11]!==k||e[12]!==d.id||e[13]!==M?(D=["at-mention",d.id,M,k],e[11]=k,e[12]=d.id,e[13]=M,e[14]=D):D=e[14];const l=D;let m;e[15]!==o?(m=o("chat.mentionAt.agentsTitle"),e[15]=o,e[16]=m):m=e[16];let y;e[17]!==o?(y=o("chat.mentionAt.agentsDescription"),e[17]=o,e[18]=y):y=e[18];let _;e[19]!==m||e[20]!==y?(_={name:"agents",title:m,description:y,kind:"category",drillable:!0},e[19]=m,e[20]=y,e[21]=_):_=e[21];let R;e[22]!==o?(R=o("chat.mentionAt.resourcesTitle"),e[22]=o,e[23]=R):R=e[23];let v;e[24]!==o?(v=o("chat.mentionAt.resourcesDescription"),e[24]=o,e[25]=v):v=e[25];let T;e[26]!==R||e[27]!==v?(T={name:"resources",title:R,description:v,kind:"category",drillable:!0},e[26]=R,e[27]=v,e[28]=T):T=e[28];let O;e[29]!==T||e[30]!==_?(O=[_,T],e[29]=T,e[30]=_,e[31]=O):O=e[31];const q=O;let g;e[32]!==r||e[33]!==n||e[34]!==o?(g=async U=>{const{item:P,range:K}=U;if($("chat_picker_item_selected",{picker:"@",item_kind:P.kind,item_name:P.name}),P.kind!=="category"&&(I.current=!0),P.kind==="category")return F(P.name==="agents"?"agents":"resources"),!1;if(P.kind==="agent"&&P.agentId){B(n,K,{id:P.agentId,name:P.name,metadata:{agentId:P.agentId,title:P.name},char:"@"}),F("categories");return}if(P.kind==="resource"&&P.uri&&r){try{const Q=await me(r,P.uri);B(n,K,{id:P.uri,name:P.uri,metadata:Q.contents,char:"@"})}catch(Q){console.error("[at-mention] Failed to fetch resource:",Q),N.error(o("chat.mentionAt.failedToLoadResource"))}F("categories");return}},e[32]=r,e[33]=n,e[34]=o,e[35]=g):g=e[35];const ee=g;let J;e[36]!==p||e[37]!==q||e[38]!==r||e[39]!==x||e[40]!==b||e[41]!==c||e[42]!==a||e[43]!==s?(J=async U=>{const{query:P}=U,K=b();if(K==="categories"){if(!P.trim())return q;const A=P.toLowerCase(),L=p.filter(E=>E.status==="active"&&(!E.id||!oe(E.id))&&!x.has(E.id)&&E.id!==s&&(E.title.toLowerCase().includes(A)||E.description?.toLowerCase().includes(A))).map(et),W=await(async()=>{if(!r)return[];let E=c.getQueryData(a);return E||(E=await c.fetchQuery({queryKey:a,queryFn:()=>z(r),staleTime:6e4})),(E?.resources??[]).filter(re=>re.uri.toLowerCase().includes(A)||re.name?.toLowerCase().includes(A)||re.description?.toLowerCase().includes(A)).map(tt)})();return[...L,...W]}if(K==="agents"){let A=p.filter(L=>L.status==="active"&&(!L.id||!oe(L.id))&&!x.has(L.id)&&L.id!==s);if(P.trim()){const L=P.toLowerCase();A=A.filter(W=>W.title.toLowerCase().includes(L)||W.description?.toLowerCase().includes(L))}return A.map(st)}if(!r)return[];let Q=c.getQueryData(a);Q?c.fetchQuery({queryKey:a,queryFn:()=>z(r),staleTime:6e4}).catch(rt):Q=await c.fetchQuery({queryKey:a,queryFn:()=>z(r),staleTime:6e4});let V=Q?.resources??[];if(P.trim()){const A=P.toLowerCase();V=V.filter(L=>L.uri.toLowerCase().includes(A)||L.name?.toLowerCase().includes(A)||L.description?.toLowerCase().includes(A))}return V.map(nt)},e[36]=p,e[37]=q,e[38]=r,e[39]=x,e[40]=b,e[41]=c,e[42]=a,e[43]=s,e[44]=J):J=e[44];const te=J;let X;e[45]!==i?(X=U=>{if(i&&(i.current=U),U)j.current=Date.now(),I.current=!1,$("chat_picker_opened",{picker:"@"});else{const P=j.current;$("chat_picker_closed",{picker:"@",outcome:I.current?"selected":"dismissed",duration_ms:P?Date.now()-P:null}),j.current=null,F("categories")}},e[45]=i,e[46]=X):X=e[46];const se=X;let Y;return e[47]!==n||e[48]!==te||e[49]!==ee||e[50]!==se||e[51]!==l?(Y=h.jsx(fe,{editor:n,char:"@",pluginKey:"atDropdownMenu",queryKey:l,queryFn:te,onSelect:ee,onOpenChange:se}),e[47]=n,e[48]=te,e[49]=ee,e[50]=se,e[51]=l,e[52]=Y):Y=e[52],Y};function et(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function tt(t){return{name:t.name??t.uri,title:t.name,description:t.description,kind:"resource",uri:t.uri}}function st(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function rt(){}function nt(t){return{name:t.name??t.uri,title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function le(t,e,n,s,i,o,c){try{const d=await ge(n,s,o);B(t,e,{id:s,name:he(s,i),metadata:d.messages,char:"/",kind:"prompt",args:o})}catch(d){console.error("[slash] Failed to fetch prompt:",d),N.error(c.t("chat.mentionSlash.failedLoadPrompt"))}}async function ot(t,e,n,s,i){try{const o=await me(n,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),N.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function it(t,e,n,s,i){try{const{files:o,omittedPaths:c}=await He(n,s.volume,s.path),d={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:c};B(t,e,{id:s.id,name:s.name,metadata:d,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),N.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const at=({editor:t,virtualMcpId:e,suggestionOpenRef:n})=>{const s=G(),i=de(),{org:o}=ue(),c=pe({connectionId:e,orgId:o.id,orgSlug:o.slug}),d=Z.virtualMcpPrompts(e,o.id),p=Z.virtualMcpResources(e,o.id),w=Z.slashSkills(o.id),x=["slash-mention",o.id,e??"default"],[f,r]=C.useState(null),[u,a]=C.useState(null),k=Se(t);k&&(k.onEditChip=async l=>{if(c)try{const y=(await ce(i,d,c)).find(_=>_.name===l.promptId);if(!y?.arguments||y.arguments.length===0)return;a({...l,prompt:y})}catch(m){console.error("[slash] Failed to load prompt for editing:",m),N.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),S=C.useRef(!1),b=async({item:l,range:m})=>{if($("chat_picker_item_selected",{picker:"/",item_kind:l.kind,item_name:l.name}),S.current=!0,!!c)if(l.kind==="prompt"){if(l.arguments&&l.arguments.length>0){r({range:m,item:l});return}const y=ne(l._meta);await le(t,m,c,l.name,y,void 0,{t:s})}else l.kind==="skill"?l.skill&&await it(t,m,o.slug,l.skill,{t:s}):l.uri&&await ot(t,m,c,l.uri,{t:s})},j=async l=>{if(!f||!c)return;const{range:m,item:y}=f,_=ne(y._meta);await le(t,m,c,y.name,_,l,{t:s}),r(null)},I=async l=>{if(!(!u||!c)){if(!Fe(t,u.pos,u.promptId)){N.error(s("chat.mentionSlash.failedUpdatePrompt")),a(null);return}try{const m=await ge(c,u.promptId,l),y=ne(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Ie({id:u.promptId,name:he(u.promptId,y),metadata:m.messages,char:"/",kind:"prompt",args:l})).run(),$("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(m){console.error("[slash] Failed to update prompt:",m),N.error(s("chat.mentionSlash.failedUpdatePrompt"))}a(null)}},M=async l=>{const{query:m}=l;if(!c)return[];const[y,_,R]=await Promise.all([ce(i,d,c),ct(i,p,c),lt(i,w,o.slug)]),v=m.trim().toLowerCase(),T=(y??[]).filter(g=>!v||g.name.toLowerCase().includes(v)||g.title?.toLowerCase().includes(v)||g.description?.toLowerCase().includes(v)).map(g=>({name:g.name,title:g.title,description:g.description,kind:"prompt",arguments:g.arguments,_meta:g._meta})),O=(_??[]).filter(g=>!v||g.uri.toLowerCase().includes(v)||g.name?.toLowerCase().includes(v)||g.description?.toLowerCase().includes(v)).map(g=>({name:g.name??g.uri,title:g.name,description:g.description,kind:"resource",uri:g.uri})),q=(R??[]).filter(g=>!v||g.name.toLowerCase().includes(v)||g.id.toLowerCase().includes(v)||g.description?.toLowerCase().includes(v)).map(g=>({name:g.name,title:g.name,description:g.description??void 0,kind:"skill",skill:g}));return[...T,...O,...q]},D=f?.item.kind==="prompt"?{name:f.item.name,title:f.item.title,arguments:f.item.arguments,description:f.item.description,_meta:f.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(fe,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:x,queryFn:M,onSelect:b,onOpenChange:l=>{if(n&&(n.current=l),l)F.current=Date.now(),S.current=!1,$("chat_picker_opened",{picker:"/"});else{const m=F.current;$("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:m?Date.now()-m:null}),F.current=null}}}),h.jsx(ie,{prompt:D,setPrompt:()=>r(null),onSubmit:j}),h.jsx(ie,{prompt:u?.prompt??null,setPrompt:()=>a(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ce(t,e,n){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>ae(n),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>ae(n),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function lt(t,e,n){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Je(n),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function ct(t,e,n){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(n),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(n),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ye="Ask anything, / for prompts & skills, @ for agents & resources...";function dt(t){return[Le.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),be.configure({placeholder:()=>t.current??ye,showOnlyWhenEditable:!1}),Me,Re]}function Ft({tiptapDoc:t,setTiptapDoc:e,disabled:n=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:c,children:d}){const p=C.useRef(o),w=C.useRef(e),x=C.useRef(s),f=C.useRef(i),r=De({extensions:dt(f),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ye,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-[15px] p-[18px]"},handleKeyDown:(u,a)=>a.key==="Enter"&&!a.shiftKey&&x.current&&!c?.current?(a.preventDefault(),p.current?.(),!0):!1},onUpdate:({editor:u})=>{w.current(u?.getJSON())}});return C.useEffect(()=>{r?.setEditable(!n)},[r,n]),C.useEffect(()=>{p.current=o},[o]),C.useEffect(()=>{w.current=e},[e]),C.useEffect(()=>{x.current=s},[s]),C.useEffect(()=>{f.current=i},[i]),C.useEffect(()=>{if(!r||r.isDestroyed)return;const u=JSON.stringify(r.getJSON()),a=JSON.stringify(t||{type:"doc",content:[]});u!==a&&r.commands.setContent(t||{type:"doc",content:[]})},[r,t]),h.jsx(je.Provider,{value:{editor:r},children:d})}function It(t){const e=H.c(29),{disabled:n,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:c,suggestionOpenRef:d,ref:p,className:w}=t,x=n===void 0?!1:n,f=i===void 0?!1:i,{editor:r}=ve();let u,a;if(e[0]!==r?(u=()=>({focus:()=>{r?.commands.focus()},clear:()=>{r?.commands.clearContent(!0)},appendText:y=>{if(!r)return;const _=r.state.doc.textContent.trim()==="";r.commands.focus("end"),_||r.commands.insertContent(" "),r.commands.insertContent(y)},syncVoiceText:(y,_)=>{if(r&&(r.commands.setContent(y||{type:"doc",content:[]}),_)){r.commands.focus("end");const R=r.state.doc.textContent.trim().length>0;r.commands.insertContent({type:"text",text:R?" "+_:_})}},restoreContent:y=>{r&&r.commands.setContent(y||{type:"doc",content:[]})}}),a=[r],e[0]=r,e[1]=u,e[2]=a):(u=e[1],a=e[2]),C.useImperativeHandle(p??null,u,a),!r)return null;const k=x&&"cursor-not-allowed opacity-70",F=x&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==w||e[4]!==k||e[5]!==F?(S=we("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",w,"[&_.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",k,F),e[3]=w,e[4]=k,e[5]=F,e[6]=S):S=e[6];let b;e[7]!==r||e[8]!==S?(b=h.jsx(Ae,{editor:r,className:S}),e[7]=r,e[8]=S,e[9]=b):b=e[9];const j=s??null;let I;e[10]!==r||e[11]!==d||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(at,{editor:r,virtualMcpId:j,suggestionOpenRef:d})}),e[10]=r,e[11]=d,e[12]=j,e[13]=I):I=e[13];const M=s??null;let D;e[14]!==r||e[15]!==d||e[16]!==M?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:r,virtualMcpId:M,suggestionOpenRef:d})}),e[14]=r,e[15]=d,e[16]=M,e[17]=D):D=e[17];let l;e[18]!==x||e[19]!==r||e[20]!==c||e[21]!==o||e[22]!==f?(l=f&&o&&!x?h.jsx(Ye,{editor:r,selectedModel:o,onUnsupportedFile:c}):null,e[18]=x,e[19]=r,e[20]=c,e[21]=o,e[22]=f,e[23]=l):l=e[23];let m;return e[24]!==I||e[25]!==D||e[26]!==l||e[27]!==b?(m=h.jsxs(h.Fragment,{children:[b,I,D,l]}),e[24]=I,e[25]=D,e[26]=l,e[27]=b,e[28]=m):m=e[28],m}export{Ft as T,Ct as U,It as a,Xe as p,St as u};
|
|
1
|
+
import{c as H,r as C,b as G,j as h,t as N,Z as xe,B as ke,o as de,X as ue,K as Z,q as $,er as me,c$ as oe,es as z,l as we}from"./index-Creb5Fal.js";import{S as fe,s as be}from"./suggestion-C-WgKXgU.js";import{f as Pe,h as _e,j as Ce,i as B,k as Se,P as ie,l as Fe,c as Ie,u as De,n as je,d as ve,e as Me,F as Re,s as Le,b as Ae}from"./index-CGgVIw_7.js";import{d as Ee,h as Ne,c as Te,b as Qe,D as $e}from"./dialog-BK1Ueu93.js";import{aY as Oe}from"./agent-icon-Cs5o_QD_.js";import"./chat-context-CuWiXF8M.js";import{m as Ue,i as qe,a as Ke}from"./decopilot-Djx80CTZ.js";import{u as pe}from"./use-mcp-client-DrDmZDA7.js";import{b as ze}from"./repository-binding-BDRDBDUT.js";import{g as Be}from"./use-project-scope-D3SRaEYd.js";import{g as ne,s as he}from"./gateway-client-BpCG924q.js";import{l as ae,g as ge}from"./use-mcp-prompts-ORmr-8fB.js";import{f as He,a as Je}from"./use-org-fs-aJhRDDIA.js";async function Xe(t,e,n,s,i,o){if(!Ue(e)){N.error("Selected model does not support file uploads");return}const c=n.type||"application/octet-stream";if(!qe(c,e)){const p=Ke(e).parts.map(x=>o(x)).join(", "),w=e?.title??"This model";i?i({fileName:n.name,modelName:w,accepted:p}):N.error(`"${n.name}" can't be attached`,{description:`${w} accepts ${p}.`});return}const d=10*1024*1024;if(n.size>d){N.error(`File "${n.name}" exceeds 10MB limit`);return}try{const p=new FileReader,w=new Promise((r,u)=>{p.onload=()=>{const a=p.result;if(typeof a!="string"){u(new Error("Failed to read file as data URL"));return}const k=a.includes(",")?a.split(",")[1]??a:a;r(k)},p.onerror=u});p.readAsDataURL(n);const x=await w,f={id:crypto.randomUUID(),name:n.name,mimeType:n.type||"application/octet-stream",size:n.size,data:x};Pe(t,{from:s,to:s},f)}catch(p){console.error("Failed to process file:",p),N.error(`Failed to load file "${n.name}"`)}}function Ye(t){const e=H.c(9),{editor:n,selectedModel:s,onUnsupportedFile:i}=t,o=G(),c=C.useRef(We);let d,p;e[0]!==n||e[1]!==i||e[2]!==s||e[3]!==o?(d=()=>{c.current=async(f,r)=>{await Xe(n,s,f,r,i,o)}},p=[n,s,i,o],e[0]=n,e[1]=i,e[2]=s,e[3]=o,e[4]=d,e[5]=p):(d=e[4],p=e[5]),C.useEffect(d,p);let w,x;return e[6]!==n?(w=()=>{if(n?.isDestroyed)return;const f=new _e("fileDropHandler");n.state.plugins.find(a=>a.spec.key===f)&&n.unregisterPlugin(f);const u=new Ce({key:f,props:{handleDrop:(a,k,F,S)=>{if(S)return!1;const b=k.dataTransfer?.files;if(!b||b.length===0)return!1;k.preventDefault();const j=a.posAtCoords({left:k.clientX,top:k.clientY});if(!j)return!1;const I=Array.from(b);return(async()=>{let M=j.pos;for(const D of I)await c.current?.(D,M),M=a.state.selection.to})(),!0},handlePaste:(a,k)=>{const F=k.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(Ve);return S.length===0?!1:(k.preventDefault(),(async()=>{let b=a.state.selection.from;for(const j of S){const I=j.getAsFile();I&&(await c.current?.(I,b),b=a.state.selection.to)}})(),!0)}}});return n.registerPlugin(u),()=>{n?.isDestroyed||n.unregisterPlugin(f)}},x=[n],e[6]=n,e[7]=w,e[8]=x):(w=e[7],x=e[8]),C.useEffect(w,x),null}function Ve(t){return t.kind==="file"}function We(){return Promise.resolve()}function Ct(t){const e=H.c(43),{info:n,onClose:s}=t,i=G(),o=n!==null;let c;e[0]!==s?(c=v=>!v&&s(),e[0]=s,e[1]=c):c=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=["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]=d):d=e[2];let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:d.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=p):p=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(xe,{size:18})}),e[4]=w):w=e[4];let x;e[5]!==i?(x=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=x):x=e[6];let f;e[7]!==x?(f=h.jsx(Ee,{className:"text-xl font-semibold tracking-tight",children:x}),e[7]=x,e[8]=f):f=e[8];const r=n?.fileName;let u;e[9]!==r?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",r,"”"]}),e[9]=r,e[10]=u):u=e[10];let a;e[11]!==i?(a=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=a):a=e[12];let k;e[13]!==a||e[14]!==u?(k=h.jsxs(Ne,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",a]}),e[13]=a,e[14]=u,e[15]=k):k=e[15];let F;e[16]!==k||e[17]!==f?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[p,h.jsxs(Te,{className:"relative gap-4",children:[w,h.jsxs("div",{children:[f,k]})]})]}),e[16]=k,e[17]=f,e[18]=F):F=e[18];const S=n?.modelName??"";let b;e[19]!==i||e[20]!==S?(b=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=b):b=e[21];let j;e[22]!==b?(j=h.jsx("div",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground mb-2",children:b}),e[22]=b,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 M=n?.accepted;let D;e[25]!==M?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:M})]}),e[25]=M,e[26]=D):D=e[26];let l;e[27]!==j||e[28]!==D?(l=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"rounded-xl border border-border p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=l):l=e[29];let m;e[30]!==i?(m=i("chat.uploader.gotIt"),e[30]=i,e[31]=m):m=e[31];let y;e[32]!==s||e[33]!==m?(y=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(ke,{onClick:s,children:m})}),e[32]=s,e[33]=m,e[34]=y):y=e[34];let _;e[35]!==F||e[36]!==l||e[37]!==y?(_=h.jsxs(Qe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ze,children:[F,l,y]}),e[35]=F,e[36]=l,e[37]=y,e[38]=_):_=e[38];let R;return e[39]!==o||e[40]!==c||e[41]!==_?(R=h.jsx($e,{open:o,onOpenChange:c,children:_}),e[39]=o,e[40]=c,e[41]=_,e[42]=R):R=e[42],R}function Ze(t){return t.preventDefault()}function St(){const t=H.c(3),[e,n]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>n(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:n,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}const Ge=t=>{const e=H.c(53),{editor:n,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),c=de(),{org:d}=ue(),p=ze();let w;e[0]!==p?(w=Be(p),e[0]=p,e[1]=w):w=e[1];const x=w;let f;e[2]!==d.id||e[3]!==d.slug||e[4]!==s?(f={connectionId:s,orgId:d.id,orgSlug:d.slug},e[2]=d.id,e[3]=d.slug,e[4]=s,e[5]=f):f=e[5];const r=pe(f);let u;e[6]!==d.id||e[7]!==s?(u=Z.virtualMcpResources(s,d.id),e[6]=d.id,e[7]=s,e[8]=u):u=e[8];const a=u,[k,F]=C.useState("categories");let S;e[9]!==k?(S=()=>k,e[9]=k,e[10]=S):S=e[10];const b=C.useEffectEvent(S),j=C.useRef(null),I=C.useRef(!1),M=s??"default";let D;e[11]!==k||e[12]!==d.id||e[13]!==M?(D=["at-mention",d.id,M,k],e[11]=k,e[12]=d.id,e[13]=M,e[14]=D):D=e[14];const l=D;let m;e[15]!==o?(m=o("chat.mentionAt.agentsTitle"),e[15]=o,e[16]=m):m=e[16];let y;e[17]!==o?(y=o("chat.mentionAt.agentsDescription"),e[17]=o,e[18]=y):y=e[18];let _;e[19]!==m||e[20]!==y?(_={name:"agents",title:m,description:y,kind:"category",drillable:!0},e[19]=m,e[20]=y,e[21]=_):_=e[21];let R;e[22]!==o?(R=o("chat.mentionAt.resourcesTitle"),e[22]=o,e[23]=R):R=e[23];let v;e[24]!==o?(v=o("chat.mentionAt.resourcesDescription"),e[24]=o,e[25]=v):v=e[25];let T;e[26]!==R||e[27]!==v?(T={name:"resources",title:R,description:v,kind:"category",drillable:!0},e[26]=R,e[27]=v,e[28]=T):T=e[28];let O;e[29]!==T||e[30]!==_?(O=[_,T],e[29]=T,e[30]=_,e[31]=O):O=e[31];const q=O;let g;e[32]!==r||e[33]!==n||e[34]!==o?(g=async U=>{const{item:P,range:K}=U;if($("chat_picker_item_selected",{picker:"@",item_kind:P.kind,item_name:P.name}),P.kind!=="category"&&(I.current=!0),P.kind==="category")return F(P.name==="agents"?"agents":"resources"),!1;if(P.kind==="agent"&&P.agentId){B(n,K,{id:P.agentId,name:P.name,metadata:{agentId:P.agentId,title:P.name},char:"@"}),F("categories");return}if(P.kind==="resource"&&P.uri&&r){try{const Q=await me(r,P.uri);B(n,K,{id:P.uri,name:P.uri,metadata:Q.contents,char:"@"})}catch(Q){console.error("[at-mention] Failed to fetch resource:",Q),N.error(o("chat.mentionAt.failedToLoadResource"))}F("categories");return}},e[32]=r,e[33]=n,e[34]=o,e[35]=g):g=e[35];const ee=g;let J;e[36]!==p||e[37]!==q||e[38]!==r||e[39]!==x||e[40]!==b||e[41]!==c||e[42]!==a||e[43]!==s?(J=async U=>{const{query:P}=U,K=b();if(K==="categories"){if(!P.trim())return q;const A=P.toLowerCase(),L=p.filter(E=>E.status==="active"&&(!E.id||!oe(E.id))&&!x.has(E.id)&&E.id!==s&&(E.title.toLowerCase().includes(A)||E.description?.toLowerCase().includes(A))).map(et),W=await(async()=>{if(!r)return[];let E=c.getQueryData(a);return E||(E=await c.fetchQuery({queryKey:a,queryFn:()=>z(r),staleTime:6e4})),(E?.resources??[]).filter(re=>re.uri.toLowerCase().includes(A)||re.name?.toLowerCase().includes(A)||re.description?.toLowerCase().includes(A)).map(tt)})();return[...L,...W]}if(K==="agents"){let A=p.filter(L=>L.status==="active"&&(!L.id||!oe(L.id))&&!x.has(L.id)&&L.id!==s);if(P.trim()){const L=P.toLowerCase();A=A.filter(W=>W.title.toLowerCase().includes(L)||W.description?.toLowerCase().includes(L))}return A.map(st)}if(!r)return[];let Q=c.getQueryData(a);Q?c.fetchQuery({queryKey:a,queryFn:()=>z(r),staleTime:6e4}).catch(rt):Q=await c.fetchQuery({queryKey:a,queryFn:()=>z(r),staleTime:6e4});let V=Q?.resources??[];if(P.trim()){const A=P.toLowerCase();V=V.filter(L=>L.uri.toLowerCase().includes(A)||L.name?.toLowerCase().includes(A)||L.description?.toLowerCase().includes(A))}return V.map(nt)},e[36]=p,e[37]=q,e[38]=r,e[39]=x,e[40]=b,e[41]=c,e[42]=a,e[43]=s,e[44]=J):J=e[44];const te=J;let X;e[45]!==i?(X=U=>{if(i&&(i.current=U),U)j.current=Date.now(),I.current=!1,$("chat_picker_opened",{picker:"@"});else{const P=j.current;$("chat_picker_closed",{picker:"@",outcome:I.current?"selected":"dismissed",duration_ms:P?Date.now()-P:null}),j.current=null,F("categories")}},e[45]=i,e[46]=X):X=e[46];const se=X;let Y;return e[47]!==n||e[48]!==te||e[49]!==ee||e[50]!==se||e[51]!==l?(Y=h.jsx(fe,{editor:n,char:"@",pluginKey:"atDropdownMenu",queryKey:l,queryFn:te,onSelect:ee,onOpenChange:se}),e[47]=n,e[48]=te,e[49]=ee,e[50]=se,e[51]=l,e[52]=Y):Y=e[52],Y};function et(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function tt(t){return{name:t.name??t.uri,title:t.name,description:t.description,kind:"resource",uri:t.uri}}function st(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function rt(){}function nt(t){return{name:t.name??t.uri,title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function le(t,e,n,s,i,o,c){try{const d=await ge(n,s,o);B(t,e,{id:s,name:he(s,i),metadata:d.messages,char:"/",kind:"prompt",args:o})}catch(d){console.error("[slash] Failed to fetch prompt:",d),N.error(c.t("chat.mentionSlash.failedLoadPrompt"))}}async function ot(t,e,n,s,i){try{const o=await me(n,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),N.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function it(t,e,n,s,i){try{const{files:o,omittedPaths:c}=await He(n,s.volume,s.path),d={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:c};B(t,e,{id:s.id,name:s.name,metadata:d,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),N.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const at=({editor:t,virtualMcpId:e,suggestionOpenRef:n})=>{const s=G(),i=de(),{org:o}=ue(),c=pe({connectionId:e,orgId:o.id,orgSlug:o.slug}),d=Z.virtualMcpPrompts(e,o.id),p=Z.virtualMcpResources(e,o.id),w=Z.slashSkills(o.id),x=["slash-mention",o.id,e??"default"],[f,r]=C.useState(null),[u,a]=C.useState(null),k=Se(t);k&&(k.onEditChip=async l=>{if(c)try{const y=(await ce(i,d,c)).find(_=>_.name===l.promptId);if(!y?.arguments||y.arguments.length===0)return;a({...l,prompt:y})}catch(m){console.error("[slash] Failed to load prompt for editing:",m),N.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),S=C.useRef(!1),b=async({item:l,range:m})=>{if($("chat_picker_item_selected",{picker:"/",item_kind:l.kind,item_name:l.name}),S.current=!0,!!c)if(l.kind==="prompt"){if(l.arguments&&l.arguments.length>0){r({range:m,item:l});return}const y=ne(l._meta);await le(t,m,c,l.name,y,void 0,{t:s})}else l.kind==="skill"?l.skill&&await it(t,m,o.slug,l.skill,{t:s}):l.uri&&await ot(t,m,c,l.uri,{t:s})},j=async l=>{if(!f||!c)return;const{range:m,item:y}=f,_=ne(y._meta);await le(t,m,c,y.name,_,l,{t:s}),r(null)},I=async l=>{if(!(!u||!c)){if(!Fe(t,u.pos,u.promptId)){N.error(s("chat.mentionSlash.failedUpdatePrompt")),a(null);return}try{const m=await ge(c,u.promptId,l),y=ne(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Ie({id:u.promptId,name:he(u.promptId,y),metadata:m.messages,char:"/",kind:"prompt",args:l})).run(),$("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(m){console.error("[slash] Failed to update prompt:",m),N.error(s("chat.mentionSlash.failedUpdatePrompt"))}a(null)}},M=async l=>{const{query:m}=l;if(!c)return[];const[y,_,R]=await Promise.all([ce(i,d,c),ct(i,p,c),lt(i,w,o.slug)]),v=m.trim().toLowerCase(),T=(y??[]).filter(g=>!v||g.name.toLowerCase().includes(v)||g.title?.toLowerCase().includes(v)||g.description?.toLowerCase().includes(v)).map(g=>({name:g.name,title:g.title,description:g.description,kind:"prompt",arguments:g.arguments,_meta:g._meta})),O=(_??[]).filter(g=>!v||g.uri.toLowerCase().includes(v)||g.name?.toLowerCase().includes(v)||g.description?.toLowerCase().includes(v)).map(g=>({name:g.name??g.uri,title:g.name,description:g.description,kind:"resource",uri:g.uri})),q=(R??[]).filter(g=>!v||g.name.toLowerCase().includes(v)||g.id.toLowerCase().includes(v)||g.description?.toLowerCase().includes(v)).map(g=>({name:g.name,title:g.name,description:g.description??void 0,kind:"skill",skill:g}));return[...T,...O,...q]},D=f?.item.kind==="prompt"?{name:f.item.name,title:f.item.title,arguments:f.item.arguments,description:f.item.description,_meta:f.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(fe,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:x,queryFn:M,onSelect:b,onOpenChange:l=>{if(n&&(n.current=l),l)F.current=Date.now(),S.current=!1,$("chat_picker_opened",{picker:"/"});else{const m=F.current;$("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:m?Date.now()-m:null}),F.current=null}}}),h.jsx(ie,{prompt:D,setPrompt:()=>r(null),onSubmit:j}),h.jsx(ie,{prompt:u?.prompt??null,setPrompt:()=>a(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ce(t,e,n){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>ae(n),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>ae(n),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function lt(t,e,n){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Je(n),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function ct(t,e,n){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(n),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(n),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ye="Ask anything, / for prompts & skills, @ for agents & resources...";function dt(t){return[Le.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),be.configure({placeholder:()=>t.current??ye,showOnlyWhenEditable:!1}),Me,Re]}function Ft({tiptapDoc:t,setTiptapDoc:e,disabled:n=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:c,children:d}){const p=C.useRef(o),w=C.useRef(e),x=C.useRef(s),f=C.useRef(i),r=De({extensions:dt(f),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ye,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-[15px] p-[18px]"},handleKeyDown:(u,a)=>a.key==="Enter"&&!a.shiftKey&&x.current&&!c?.current?(a.preventDefault(),p.current?.(),!0):!1},onUpdate:({editor:u})=>{w.current(u?.getJSON())}});return C.useEffect(()=>{r?.setEditable(!n)},[r,n]),C.useEffect(()=>{p.current=o},[o]),C.useEffect(()=>{w.current=e},[e]),C.useEffect(()=>{x.current=s},[s]),C.useEffect(()=>{f.current=i},[i]),C.useEffect(()=>{if(!r||r.isDestroyed)return;const u=JSON.stringify(r.getJSON()),a=JSON.stringify(t||{type:"doc",content:[]});u!==a&&r.commands.setContent(t||{type:"doc",content:[]})},[r,t]),h.jsx(je.Provider,{value:{editor:r},children:d})}function It(t){const e=H.c(29),{disabled:n,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:c,suggestionOpenRef:d,ref:p,className:w}=t,x=n===void 0?!1:n,f=i===void 0?!1:i,{editor:r}=ve();let u,a;if(e[0]!==r?(u=()=>({focus:()=>{r?.commands.focus()},clear:()=>{r?.commands.clearContent(!0)},appendText:y=>{if(!r)return;const _=r.state.doc.textContent.trim()==="";r.commands.focus("end"),_||r.commands.insertContent(" "),r.commands.insertContent(y)},syncVoiceText:(y,_)=>{if(r&&(r.commands.setContent(y||{type:"doc",content:[]}),_)){r.commands.focus("end");const R=r.state.doc.textContent.trim().length>0;r.commands.insertContent({type:"text",text:R?" "+_:_})}},restoreContent:y=>{r&&r.commands.setContent(y||{type:"doc",content:[]})}}),a=[r],e[0]=r,e[1]=u,e[2]=a):(u=e[1],a=e[2]),C.useImperativeHandle(p??null,u,a),!r)return null;const k=x&&"cursor-not-allowed opacity-70",F=x&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==w||e[4]!==k||e[5]!==F?(S=we("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",w,"[&_.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",k,F),e[3]=w,e[4]=k,e[5]=F,e[6]=S):S=e[6];let b;e[7]!==r||e[8]!==S?(b=h.jsx(Ae,{editor:r,className:S}),e[7]=r,e[8]=S,e[9]=b):b=e[9];const j=s??null;let I;e[10]!==r||e[11]!==d||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(at,{editor:r,virtualMcpId:j,suggestionOpenRef:d})}),e[10]=r,e[11]=d,e[12]=j,e[13]=I):I=e[13];const M=s??null;let D;e[14]!==r||e[15]!==d||e[16]!==M?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:r,virtualMcpId:M,suggestionOpenRef:d})}),e[14]=r,e[15]=d,e[16]=M,e[17]=D):D=e[17];let l;e[18]!==x||e[19]!==r||e[20]!==c||e[21]!==o||e[22]!==f?(l=f&&o&&!x?h.jsx(Ye,{editor:r,selectedModel:o,onUnsupportedFile:c}):null,e[18]=x,e[19]=r,e[20]=c,e[21]=o,e[22]=f,e[23]=l):l=e[23];let m;return e[24]!==I||e[25]!==D||e[26]!==l||e[27]!==b?(m=h.jsxs(h.Fragment,{children:[b,I,D,l]}),e[24]=I,e[25]=D,e[26]=l,e[27]=b,e[28]=m):m=e[28],m}export{Ft as T,Ct as U,It as a,Xe as p,St as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,l as a,j as d}from"./index-
|
|
1
|
+
import{c as l,l as a,j as d}from"./index-Creb5Fal.js";function c(s){const e=l.c(10);let i,r,t;e[0]!==s?({className:i,type:t,...r}=s,e[0]=s,e[1]=i,e[2]=r,e[3]=t):(i=e[1],r=e[2],t=e[3]);let o;e[4]!==i?(o=a("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-[var(--studio-control-height,2.25rem)] w-full min-w-0 rounded-[var(--studio-control-radius,var(--radius-lg))] bg-[var(--studio-input-background)] px-3 py-1 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:opacity-50 card-shadow","focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=o):o=e[5];let n;return e[6]!==r||e[7]!==o||e[8]!==t?(n=d.jsx("input",{type:t,"data-slot":"input",className:o,...r}),e[6]=r,e[7]=o,e[8]=t,e[9]=n):n=e[9],n}export{c as I};
|