decocms 4.540.1 → 4.541.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/{ActiveShapeUtils-ClFvSa3l.js → ActiveShapeUtils-HI4PJ-HL.js} +1 -1
- package/dist/client/assets/{AlertCircle-Cxr7gZFk.js → AlertCircle-Pu-QR8hS.js} +1 -1
- package/dist/client/assets/{AreaChart-DgmDRfhz.js → AreaChart-DJ3vI97z.js} +1 -1
- package/dist/client/assets/{ArrowLeft-5wkW-hEo.js → ArrowLeft-CiCYDVFq.js} +1 -1
- package/dist/client/assets/{ArrowUp-ze_LLfn6.js → ArrowUp-bMBjrwqG.js} +1 -1
- package/dist/client/assets/{BarChart-Toa6_kFI.js → BarChart-DW5fB9sQ.js} +1 -1
- package/dist/client/assets/{Building02-D7vWgCSn.js → Building02-BejNykWR.js} +1 -1
- package/dist/client/assets/{CartesianChart-DPKynmNL.js → CartesianChart-BfqGbR2p.js} +1 -1
- package/dist/client/assets/{CategoricalChart-8cAW3ovr.js → CategoricalChart-1g-OhB34.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dap6CDoz.js → CheckCircle-CiBrtkwP.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BOIt7T3u.js → ChevronSelectorVertical-Bb_Zani-.js} +1 -1
- package/dist/client/assets/{ChevronUp-B635wgc1.js → ChevronUp-D3pnxmNi.js} +1 -1
- package/dist/client/assets/{Copy01-D5FEj5_l.js → Copy01-BEOZtg79.js} +1 -1
- package/dist/client/assets/{CreditCard01-CwcYwmjF.js → CreditCard01-C2H6wRye.js} +1 -1
- package/dist/client/assets/{DotsVertical-BlJdlZxy.js → DotsVertical-DddKhPwC.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-VBsMY4mL.js → ErrorBarContext-CUSRsGW6.js} +1 -1
- package/dist/client/assets/{Globe04-BvpBdv-m.js → Globe04-CR7aWwIq.js} +1 -1
- package/dist/client/assets/{Image01-aiwVgEhl.js → Image01-D9f6XNAl.js} +1 -1
- package/dist/client/assets/{Key01-Bxg4WT0j.js → Key01-BGQzZTLx.js} +1 -1
- package/dist/client/assets/{Link01-CcXDwgg2.js → Link01-_AjEk0aG.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CAGHvVZ6.js → LinkBroken01-BeLPonYT.js} +1 -1
- package/dist/client/assets/{Minus-Dsn0b7GK.js → Minus-DRtjDVr0.js} +1 -1
- package/dist/client/assets/{Monitor01-DKCvSUp5.js → Monitor01-CMcPb3p-.js} +1 -1
- package/dist/client/assets/{Play-vsKk_Jz0.js → Play-Bon9Nn-R.js} +1 -1
- package/dist/client/assets/{Plus-Bra09L11.js → Plus-DZ8OV5bq.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CaDDFuom.js → ReferenceLine-CduNCTtx.js} +1 -1
- package/dist/client/assets/{SearchMd-CcaPghb6.js → SearchMd-Coxjt-Zl.js} +1 -1
- package/dist/client/assets/{Sector-Dgqo2T4d.js → Sector-CNB3zVjr.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CLHHYXzS.js → ShoppingBag01-CeVNpa4z.js} +1 -1
- package/dist/client/assets/{Sun-D80Oomy0.js → Sun-E-EbUc0n.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CucWWNd0.js → SwitchHorizontal01-B8-pBEhT.js} +1 -1
- package/dist/client/assets/{Tool01-Btqju7fM.js → Tool01-CkZTily1.js} +1 -1
- package/dist/client/assets/{Trash01-BrSYsLgM.js → Trash01-C8OxhBl3.js} +1 -1
- package/dist/client/assets/{Upload01-DRsgvg8v.js → Upload01-Bt37Plwz.js} +1 -1
- package/dist/client/assets/{UserSquare-D2LgcI23.js → UserSquare-D7fSnIn3.js} +1 -1
- package/dist/client/assets/{Users01-YRcnRYKP.js → Users01-DVEy527M.js} +1 -1
- package/dist/client/assets/{XClose-CjCoL-G7.js → XClose-Bvl4KGPV.js} +1 -1
- package/dist/client/assets/{ZoomOut-CLslRLDT.js → ZoomOut-9x8WuC5l.js} +1 -1
- package/dist/client/assets/{access-gate-NRvGMpYz.js → access-gate-DaxHYIBB.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-ArB48aBC.js → add-connection-dialog-CjJZP05X.js} +1 -1
- package/dist/client/assets/agent-analytics-BEKl1X8N.js +2 -0
- package/dist/client/assets/agent-app-8j-E-hT5.js +1 -0
- package/dist/client/assets/{agent-assets-BJxi96mC.js → agent-assets-DQ6hVD8p.js} +1 -1
- package/dist/client/assets/{agent-automation-F4Fj9gGm.js → agent-automation-CI0Nub-n.js} +1 -1
- package/dist/client/assets/agent-automations-DzkmpBZa.js +1 -0
- package/dist/client/assets/agent-calendar-BC2tVvZL.js +1 -0
- package/dist/client/assets/{agent-connect-sources-DiS5leUi.js → agent-connect-sources-Dh7wTbNs.js} +1 -1
- package/dist/client/assets/agent-deck-07no_3NQ.js +1 -0
- package/dist/client/assets/agent-e2e-Ds3Fe2AE.js +1 -0
- package/dist/client/assets/agent-experiments-DofmmJcd.js +1 -0
- package/dist/client/assets/agent-file-6W_Gnaal.js +1 -0
- package/dist/client/assets/agent-hosting-vZ66b5t2.js +1 -0
- package/dist/client/assets/{agent-icon-r8Z1kQx0.js → agent-icon-Co7E9kYl.js} +1 -1
- package/dist/client/assets/agent-library-R2xLquH1.js +1 -0
- package/dist/client/assets/agent-library-file-BXlKOL8M.js +1 -0
- package/dist/client/assets/agent-monitor-BoyNxcz1.js +1 -0
- package/dist/client/assets/{agent-overview-BNTC3CuC.js → agent-overview-CSwJW27z.js} +1 -1
- package/dist/client/assets/{agent-releases-B4WDlEVB.js → agent-releases-CEzBKX-V.js} +1 -1
- package/dist/client/assets/agent-settings-BGDVCihC.js +1 -0
- package/dist/client/assets/{agent-site-editor-CqKZe72W.js → agent-site-editor-Du4tKYJz.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-FDZ6QYUh.js +2 -0
- package/dist/client/assets/agent-site-editor-content-kP1qC2rB.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DmkFZKpC.js +1 -0
- package/dist/client/assets/agent-view-CH596Gq0.js +1 -0
- package/dist/client/assets/{agent-view-guard-2IDv_f14.js → agent-view-guard-B04R8Znt.js} +1 -1
- package/dist/client/assets/{agents-list-D0i0UyzK.js → agents-list-CBfEPAhK.js} +1 -1
- package/dist/client/assets/{ai-providers-D42POTOI.js → ai-providers-aETP-f64.js} +1 -1
- package/dist/client/assets/{alert-sh_9lE1j.js → alert-BF8n9shl.js} +1 -1
- package/dist/client/assets/{analytics-sections-DOBmjBqZ.js → analytics-sections-SZXfO52-.js} +1 -1
- package/dist/client/assets/api-keys-9pHr3QlX.js +1 -0
- package/dist/client/assets/{api-keys-E7GGN-1o.js → api-keys-CiBjRrwV.js} +1 -1
- package/dist/client/assets/app-editor-BVC0eWvP.js +1 -0
- package/dist/client/assets/{asset-utils-BGF2krWn.js → asset-utils-7zQmpZtP.js} +1 -1
- package/dist/client/assets/{auth-BaCW7whq.js → auth-Dt9DGFhA.js} +1 -1
- package/dist/client/assets/{auth-catchall-WqLBMkpk.js → auth-catchall-APuNzDqf.js} +1 -1
- package/dist/client/assets/{auth-entry-Df4qDDi6.js → auth-entry-Dt8D4c49.js} +1 -1
- package/dist/client/assets/{auth-split-layout-QrwyfUaa.js → auth-split-layout-DKGBUJmn.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DVw-HHUy.js → authenticate-and-persist-oauth-CzFtziag.js} +1 -1
- package/dist/client/assets/{automation-list-row-CdYjXTyX.js → automation-list-row-BvcdSOir.js} +1 -1
- package/dist/client/assets/{automation-runs-Dzosp28H.js → automation-runs-rp2R5GSb.js} +1 -1
- package/dist/client/assets/{automations-C4dbgmbr.js → automations-C2DGayAE.js} +1 -1
- package/dist/client/assets/{autosend-Cyz0grx9.js → autosend-BYljpA5c.js} +1 -1
- package/dist/client/assets/{badge-DXrGf1RH.js → badge-CMgWUKiX.js} +1 -1
- package/dist/client/assets/{block-document-DZsMfWjg.js → block-document-ClAOKgf4.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-oDr51QB4.js → blocks-preview-workspace-context-DQj4RBd8.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-8ODefLbh.js → blocks-tab-states-CQydf1x6.js} +1 -1
- package/dist/client/assets/{blog-schema--tzgaEDh.js → blog-schema-BOqVZaeF.js} +1 -1
- package/dist/client/assets/{buckets-D4zl2kA5.js → buckets-qwGMsdZj.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-B9gVIbTl.js → build-improve-prompt-doc-B2MxMIfa.js} +2 -2
- package/dist/client/assets/{calendar-_mtTQBPC.js → calendar-gk2fXc2c.js} +1 -1
- package/dist/client/assets/{capability-load-error-CODEJJ02.js → capability-load-error-D2UF4Aw2.js} +1 -1
- package/dist/client/assets/{category-editor-BLrXoVj7.js → category-editor-BaE2uAd6.js} +1 -1
- package/dist/client/assets/{cdn-tab-CYZVXn7M.js → cdn-tab-BJ_vvsuv.js} +1 -1
- package/dist/client/assets/{chart-DciC8HyE.js → chart-orNTiDQv.js} +1 -1
- package/dist/client/assets/{chat-context-q7TqJ1C-.js → chat-context-Cbn1d2gD.js} +5 -5
- package/dist/client/assets/{chat-draft-DA1-_rtX.js → chat-draft-Dz-8ZkTL.js} +1 -1
- package/dist/client/assets/{checkbox-oUIybZae.js → checkbox-CA6aWe75.js} +1 -1
- package/dist/client/assets/{choose-editor-CN33p2Cz.js → choose-editor-C2L8nFMF.js} +1 -1
- package/dist/client/assets/{cli-auth-success-XAbb0SQg.js → cli-auth-success-BwZvMY9K.js} +1 -1
- package/dist/client/assets/{client-icons-Ct-9O-sI.js → client-icons-BokFUC05.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-DB-2MJgt.js → cms-settings-editor-DTAdiNDN.js} +1 -1
- package/dist/client/assets/{collapsible-CF6QTwAQ.js → collapsible-DMa5aTxw.js} +1 -1
- package/dist/client/assets/{collection-detail-QFm_ohuF.js → collection-detail-tC_GRfYF.js} +1 -1
- package/dist/client/assets/{collection-display-button-DtZ_r2fC.js → collection-display-button-CO0G5HBN.js} +1 -1
- package/dist/client/assets/{collection-search-cs3sNNIu.js → collection-search-BtpA2Lei.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BvylNn6r.js → collection-table-wrapper-zNmZhsyo.js} +1 -1
- package/dist/client/assets/{collection-tabs-CS3-Zvq6.js → collection-tabs-CSXR7UYb.js} +1 -1
- package/dist/client/assets/{column-rules-B3scTGJn.js → column-rules-C63NCpq3.js} +2 -2
- package/dist/client/assets/{combobox-CpjBTDRG.js → combobox-BwKhFDqj.js} +1 -1
- package/dist/client/assets/{command-ChermTHn.js → command-lP5P8rqX.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-bNAA5L8t.js → companion-mcps-section-CvFB8u3v.js} +1 -1
- package/dist/client/assets/{config-D9RpcTcN.js → config-B8-1YX-t.js} +1 -1
- package/dist/client/assets/{connect-BEDMehlu.js → connect-D2iiXOSY.js} +1 -1
- package/dist/client/assets/{connect-layout-DLeNmrtI.js → connect-layout-HGVTLejY.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-wF7gjtEV.js → connect-source-dialog-DXGOBfjT.js} +1 -1
- package/dist/client/assets/{connection-lIRd-x5L.js → connection-Cn9FrEsZ.js} +1 -1
- package/dist/client/assets/{connection-card-BJPC2LD1.js → connection-card-DlWLwRKA.js} +1 -1
- package/dist/client/assets/{connection-detail-BQIiIdK2.js → connection-detail-C98bDTVH.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-9iSTOC_0.js → connection-form-helpers-DdDJu97E.js} +1 -1
- package/dist/client/assets/{connections-omwMleY5.js → connections-C6M8AgjO.js} +1 -1
- package/dist/client/assets/{content-tab-CMOs3pI-.js → content-tab-B-LNJbd9.js} +9 -9
- package/dist/client/assets/{context-BPegQD0y.js → context-CPd4zSV0.js} +1 -1
- package/dist/client/assets/{context-menu-BjIhJNTh.js → context-menu-gvTbM_VP.js} +1 -1
- package/dist/client/assets/context-shell-BdVWw-gN.js +36 -0
- package/dist/client/assets/{core.esm-pg4Fq_TB.js → core.esm-M1IJOkIH.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Cvs1ExBM.js → create-organization-dialog-DNvzT5i-.js} +1 -1
- package/dist/client/assets/{daily-pulse-CBbiZh0k.js → daily-pulse-DOHhxMy1.js} +1 -1
- package/dist/client/assets/{discover-CA-2TqxK.js → discover-COhVLrYW.js} +1 -1
- package/dist/client/assets/{domain-settings-C-gJGQ4j.js → domain-settings-DRphZ3mS.js} +1 -1
- package/dist/client/assets/{drawer-Bqg0yBDx.js → drawer-Bsnw19SA.js} +1 -1
- package/dist/client/assets/{editor-mPZ0kVNv.js → editor-Z7h3tdjo.js} +1 -1
- package/dist/client/assets/{editor-classes-BpwwAF3C.js → editor-classes-CIysMLqw.js} +1 -1
- package/dist/client/assets/{empty-state-B9oIyVIp.js → empty-state-CEJi6IVu.js} +1 -1
- package/dist/client/assets/{empty-state-C79vgg_z.js → empty-state-EpAwETL4.js} +1 -1
- package/dist/client/assets/{experiments-tab-DPfc6GOy.js → experiments-tab-BKBmpbQS.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-8xzKkZlX.js → experiments-tab-choice-EKyQNqty.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D9hWJKHz.js → extract-connection-data-CGOVIYLF.js} +1 -1
- package/dist/client/assets/{feature-gate-BtqZg2be.js → feature-gate-DXCleAqA.js} +1 -1
- package/dist/client/assets/{feature-paywall-D6hFCms_.js → feature-paywall-4QJAn2z5.js} +1 -1
- package/dist/client/assets/{file-explorer-EUveJAIL.js → file-explorer-Bd3gIXGV.js} +1 -1
- package/dist/client/assets/{file-preview-B1hazn-f.js → file-preview-CCmllyvi.js} +1 -1
- package/dist/client/assets/{file-share-button-CWVL8de8.js → file-share-button-DbPRyXAD.js} +1 -1
- package/dist/client/assets/{file-type-icon-CszJOHRP.js → file-type-icon-CiMMiUYO.js} +1 -1
- package/dist/client/assets/folder-icon-rxpoDvAE.js +1 -0
- package/dist/client/assets/{form-CpJsHKNZ.js → form-Bk9ymCIS.js} +1 -1
- package/dist/client/assets/{general-CQlaDytM.js → general-Cr_ASK52.js} +1 -1
- package/dist/client/assets/{github-icon-CtxsZ4zj.js → github-icon-EmEurWMX.js} +1 -1
- package/dist/client/assets/{held-block-view-CqquZXR8.js → held-block-view-BDu8bj-6.js} +3 -3
- package/dist/client/assets/{home-xrjnwP6i.js → home-DGMtvNuq.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-CutWUEfr.js → hosted-publish-feedback-C3S_f767.js} +1 -1
- package/dist/client/assets/{icon-button-i_FWnpGN.js → icon-button-CcHZO8e6.js} +1 -1
- package/dist/client/assets/{index-_xgP5c6W.js → index-BGKyyvyC.js} +1 -1
- package/dist/client/assets/{index-CUvxA4QU.js → index-BaOc9Ezz.js} +1 -1
- package/dist/client/assets/{index-Bb3_Vv2S.js → index-Bd1JsEWx.js} +1 -1
- package/dist/client/assets/index-Bek871Hp.js +4 -0
- package/dist/client/assets/{index-Dpy3WDHU.js → index-CRt26OMk.js} +1 -1
- package/dist/client/assets/{index-BdKCEpsg.js → index-CcyUawfW.js} +1 -1
- package/dist/client/assets/{index-Duw_6D72.js → index-DGAfs5q1.js} +1 -1
- package/dist/client/assets/{index-Du1V-xNi.js → index-DMJwbqhe.js} +1 -1
- package/dist/client/assets/{index-CmmBgJe2.js → index-DMN6-ViK.js} +1 -1
- package/dist/client/assets/{index-BMsnE8rU.js → index-D_GgrLpt.js} +1 -1
- package/dist/client/assets/{index-Bm91KVNh.js → index-DvPTtoj9.js} +1 -1
- package/dist/client/assets/{index-CVG6lJ_v.js → index-KpWMq2p9.js} +1 -1
- package/dist/client/assets/{index-N3lvHn2Z.js → index-KxuowPl9.js} +1 -1
- package/dist/client/assets/{index-COnziA0Z.js → index-LISCRMKT.js} +33 -33
- package/dist/client/assets/{index-yKC5LgkM.js → index-Rjs_bdr_.js} +1 -1
- package/dist/client/assets/{index-redirect-CWUepeSE.js → index-redirect-C_c-8-0u.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bj3tjA3X.js → infiniteQueryObserver-DGdbL4U6.js} +1 -1
- package/dist/client/assets/{infra-billing-CeYZXwq2.js → infra-billing-CkpqPi0H.js} +1 -1
- package/dist/client/assets/{input-C2ECoWjM.js → input-BhbajINs.js} +1 -1
- package/dist/client/assets/{input-BCYkWTfH.js → input-Cgw3HqQu.js} +3 -3
- package/dist/client/assets/{integration-icon-DfwU4DVr.js → integration-icon-msZhQ6E3.js} +1 -1
- package/dist/client/assets/{jira-icon-BoR-oDVU.js → jira-icon-C8kN-yG2.js} +1 -1
- package/dist/client/assets/{label-BGevM5Zb.js → label-BfYbFBpZ.js} +1 -1
- package/dist/client/assets/{layout-30w4Crds.js → layout-DFaNAdKK.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Bg1OmBvu.js → legacy-agents-deep-BQflSkhZ.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C51h-pXK.js → legacy-main-redirect-DaGWGhtf.js} +1 -1
- package/dist/client/assets/library-CdfdY0qf.js +1 -0
- package/dist/client/assets/library-tab-4UasD5Mp.js +162 -0
- package/dist/client/assets/{login-BGcTYLxc.js → login-DtccMmUF.js} +1 -1
- package/dist/client/assets/{markdown-DGqjdf2p.js → markdown-CGLGjJUn.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CPV0UyxX.js → mcp-app-renderer-BmH0oH65.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Byx9hV1d.js → mcp-oauth-CDHHl2AY.js} +1 -1
- package/dist/client/assets/{mcp-oauth-we2DqBn9.js → mcp-oauth-D5bTwzBt.js} +1 -1
- package/dist/client/assets/{members-Cg4UJ7N1.js → members-CqaIW0DL.js} +1 -1
- package/dist/client/assets/{memory-CphWYQkc.js → memory-DoZ_Hb59.js} +1 -1
- package/dist/client/assets/{mini-report-page-O_faAMnc.js → mini-report-page-CWBsLXpy.js} +1 -1
- package/dist/client/assets/{mock-board-CQktgxk_.js → mock-board-piOcYIBD.js} +3 -3
- package/dist/client/assets/{monaco-editor-CS14LLrn.js → monaco-editor-B_hB8uvI.js} +1 -1
- package/dist/client/assets/{monitoring-C3Ch6Teo.js → monitoring-3dbLT4OM.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row--haENI5d.js → monitoring-stats-row-va93h-kh.js} +1 -1
- package/dist/client/assets/{multi-select-B-zuXpH9.js → multi-select-DqoGBuJR.js} +1 -1
- package/dist/client/assets/{mustache-CQoqMaLT.js → mustache-YJnhKKzZ.js} +1 -1
- package/dist/client/assets/{named-rule-uses-BFiLyzQ0.js → named-rule-uses-B5UiiWoJ.js} +1 -1
- package/dist/client/assets/{new-project-dialog-aU8scugU.js → new-project-dialog-BrtI6GgZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-DKy_B6sS.js → oauth-callback-DvCUGRkg.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B1IhX-iu.js → oauth-callback-ai-provider-IxBLpV6t.js} +1 -1
- package/dist/client/assets/{onboarding-BJKtDuRG.js → onboarding-CqirqsHd.js} +1 -1
- package/dist/client/assets/{openai-conversation-BZT74_io.js → openai-conversation-DGR8tfoH.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-ynymb8s7.js → optimistic-project-sidebar-views-CPWt9LH6.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DWL08pAX.js → order-monitor-day-or-R9J0S.js} +1 -1
- package/dist/client/assets/{organization-choice-DUcNXaGm.js → organization-choice-CeZ3suN4.js} +1 -1
- package/dist/client/assets/{orgs-H9UBPKXM.js → orgs-iTHfKpGx.js} +1 -1
- package/dist/client/assets/{page-seo-form-DO9Vic5L.js → page-seo-form-CdFLhDD2.js} +1 -1
- package/dist/client/assets/{pair-BIX6BY2B.js → pair-B_hske_9.js} +1 -1
- package/dist/client/assets/{parse-sections-BLo4hVcc.js → parse-sections-rTJ9Vxva.js} +1 -1
- package/dist/client/assets/{plan-DKLSpJYQ.js → plan-CKUD-2iO.js} +1 -1
- package/dist/client/assets/{plan-ladder-CjIFfgE3.js → plan-ladder-ROI7a8rc.js} +1 -1
- package/dist/client/assets/{plan-usage-card-BaLOCqds.js → plan-usage-card-DmpNxqNF.js} +1 -1
- package/dist/client/assets/{popover-CDni3562.js → popover-D6dCz_8d.js} +1 -1
- package/dist/client/assets/{post-calendar-Ds_fWL4E.js → post-calendar-DkrNCJu_.js} +1 -1
- package/dist/client/assets/{post-editor-Bpl8R1AD.js → post-editor-C9guOY0S.js} +1 -1
- package/dist/client/assets/{preview-content-D6Uu7-0I.js → preview-content-DFI0aQf4.js} +1 -1
- package/dist/client/assets/{preview-dialog-BirKakH8.js → preview-dialog-D2HjzZ1B.js} +1 -1
- package/dist/client/assets/{preview-panel-pMNaSC76.js → preview-panel-0VJe1FDB.js} +1 -1
- package/dist/client/assets/{preview-tab-86IcFjhE.js → preview-tab-CpG9tuu6.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-QF0K31fY.js → product-picker-dialog-CFjl9WR-.js} +1 -1
- package/dist/client/assets/{profile-CeSI4XH9.js → profile-CY0p7UGQ.js} +1 -1
- package/dist/client/assets/{project-app-view-D0bkuBLc.js → project-app-view-Cf1gd22p.js} +1 -1
- package/dist/client/assets/{project-apps-lRXyFM1r.js → project-apps-X2VfH52k.js} +1 -1
- package/dist/client/assets/{project-feed-WkJFdN5v.js → project-feed-Cqb3oD2R.js} +1 -1
- package/dist/client/assets/{project-icon-BjJ8vKrn.js → project-icon-As9MoCET.js} +1 -1
- package/dist/client/assets/project-reports-BVlytfOe.js +1 -0
- package/dist/client/assets/project-tasks-BGW3O_F5.js +1 -0
- package/dist/client/assets/{projects-empty-state-BfLeCdxn.js → projects-empty-state-B4wHwi2Z.js} +1 -1
- package/dist/client/assets/{projects-BTP5sS_F.js → projects-oKJE7kAY.js} +1 -1
- package/dist/client/assets/{prompts-CEZb6CxD.js → prompts-f4GajLV5.js} +1 -1
- package/dist/client/assets/record-editor-BOGjSPiY.js +1 -0
- package/dist/client/assets/{redirect-editor-BF11laHA.js → redirect-editor-DxMUngFX.js} +1 -1
- package/dist/client/assets/{releases-api-ByaSp1jR.js → releases-api-kH_Ed6eO.js} +1 -1
- package/dist/client/assets/{reports-U2_3nuZM.js → reports-D2UCpDap.js} +1 -1
- package/dist/client/assets/reports-N81wb4Wq.js +1 -0
- package/dist/client/assets/{reports-onboarding-Bruf-fyJ.js → reports-onboarding-CljQnv9P.js} +1 -1
- package/dist/client/assets/{reports-tab-Da3H-8PE.js → reports-tab-CSx5fOj6.js} +2 -2
- package/dist/client/assets/repositories-DL-11--e.js +1 -0
- package/dist/client/assets/{repositories-CpQ7e-w5.js → repositories-DzOMkV9O.js} +1 -1
- package/dist/client/assets/{repository-binding-BGeZ0DuT.js → repository-binding-N72ZtnJ7.js} +1 -1
- package/dist/client/assets/{repository-import-picker-_KegTBCz.js → repository-import-picker-CNVRTxph.js} +1 -1
- package/dist/client/assets/{repository-picker-CU40xoJ7.js → repository-picker-CW0SaV-m.js} +1 -1
- package/dist/client/assets/{require-capability-B4rUwk-N.js → require-capability-C2GXhzLq.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C2OmldxX.js → required-auth-layout-BwkU_8aI.js} +1 -1
- package/dist/client/assets/{reset-password-DcH680r3.js → reset-password-gBMO6F0r.js} +1 -1
- package/dist/client/assets/{resizable-GdeSoBXC.js → resizable-WR3fdR8J.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DyiyXAmc.js → resolve-tab-icon-DS-pAijm.js} +1 -1
- package/dist/client/assets/{review-settings-DWVxOdsw.js → review-settings-DcaJvbTX.js} +1 -1
- package/dist/client/assets/{roles-tNHszeml.js → roles-Brhhqsw3.js} +1 -1
- package/dist/client/assets/route-BmSXOav-.js +1 -0
- package/dist/client/assets/route-C51vZk3q.js +1 -0
- package/dist/client/assets/{route-B_J7kzlG.js → route-D_u0Bw_R.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-D2UA9HUf.js → sandbox-lifecycle-context-BBDd5Vd6.js} +1 -1
- package/dist/client/assets/{schema-BYBruCaH.js → schema-C2dfCTpF.js} +1 -1
- package/dist/client/assets/{schema-CB4Vxu7L.js → schema-cjQbFYEA.js} +1 -1
- package/dist/client/assets/{scroll-area-BUyfS5TA.js → scroll-area-DYvdRQ3X.js} +1 -1
- package/dist/client/assets/{search-input-T7tfUlv8.js → search-input-DfJJHgak.js} +1 -1
- package/dist/client/assets/{search-toggle-DL7-awnb.js → search-toggle-K39LDgc3.js} +1 -1
- package/dist/client/assets/{secret-picker-BslDVKKv.js → secret-picker-COEpc_Br.js} +1 -1
- package/dist/client/assets/{secrets-Bqd4jPVf.js → secrets-DpnxLirI.js} +1 -1
- package/dist/client/assets/{section-array-field-BWV4uW6Z.js → section-array-field-cPwKvhUj.js} +1 -1
- package/dist/client/assets/sections-DQYOsFQr.js +1 -0
- package/dist/client/assets/{sections-editor-DfuqBfpL.js → sections-editor-p5iYgj5l.js} +1 -1
- package/dist/client/assets/{select-BaNSHFfS.js → select-Ce8n-RXJ.js} +1 -1
- package/dist/client/assets/{select-model-DvLnkRjD.js → select-model-DrlCeL1J.js} +1 -1
- package/dist/client/assets/{seo-editor-kIki17wn.js → seo-editor-BtHI4gWU.js} +1 -1
- package/dist/client/assets/{separator-D-a0pq5E.js → separator-CMPRlDqA.js} +1 -1
- package/dist/client/assets/settings-tab-qkoZ5Hhk.js +1 -0
- package/dist/client/assets/{sheet-DvSGxi5a.js → sheet-C1Iz_daC.js} +1 -1
- package/dist/client/assets/{shell-layout-Dbb1xZ69.js → shell-layout-DUwEP5qi.js} +1 -1
- package/dist/client/assets/{site-draft-actions-Cy4yCAlU.js → site-draft-actions-Cwq-m4rQ.js} +1 -1
- package/dist/client/assets/{site-draft-view-C07YNlzV.js → site-draft-view-BGk8W1nm.js} +2 -2
- package/dist/client/assets/site-editor-DBH3tuRQ.js +1 -0
- package/dist/client/assets/{site-editor-toast-CH9jUz3L.js → site-editor-toast-BZwEeugO.js} +1 -1
- package/dist/client/assets/skill-md-ChfVs4uF.js +2 -0
- package/dist/client/assets/skills-CmU0q2d6.js +1 -0
- package/dist/client/assets/{slider-eIUNwmro.js → slider-BRlhk1I_.js} +1 -1
- package/dist/client/assets/{sortable.esm-ChXVP1eQ.js → sortable.esm-DfWQuMf-.js} +1 -1
- package/dist/client/assets/{sso-DdFStQXx.js → sso-Bl0_X14P.js} +1 -1
- package/dist/client/assets/{suggestion-s4BFDhSc.js → suggestion-C79o6bsf.js} +1 -1
- package/dist/client/assets/{switch-C0t-igJf.js → switch-B5fLkk4G.js} +1 -1
- package/dist/client/assets/{symbol-BT27QHWj.js → symbol-AaQxOm0Y.js} +1 -1
- package/dist/client/assets/{synced-repos-CqoJDfXB.js → synced-repos-Bes2Akem.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BWPb5Xfp.js → tab-icon-glyph-X9RKDulT.js} +1 -1
- package/dist/client/assets/{table-KCysjL80.js → table-CR0vxly9.js} +1 -1
- package/dist/client/assets/{tabs-CoLoYhlT.js → tabs-BeQ3GpBj.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-DAh0DA3d.js → task-assignee-avatar-BxtkZ6j_.js} +1 -1
- package/dist/client/assets/{task-board-CrNZ__0e.js → task-board-DfACAZyY.js} +1 -1
- package/dist/client/assets/{task-route-DKvZDUIz.js → task-route-CEMyrZwM.js} +1 -1
- package/dist/client/assets/{task-status-Ra7_uhYM.js → task-status-CwtxChqi.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Cym7TppR.js → taskboard-analytics-nTEghmrx.js} +1 -1
- package/dist/client/assets/{tasks-CUiZakj6.js → tasks-5giK8VZS.js} +1 -1
- package/dist/client/assets/tasks-sE4UNYKk.js +1 -0
- package/dist/client/assets/{textarea-C_fBPqU6.js → textarea-1B6eWYpg.js} +1 -1
- package/dist/client/assets/{thread-analytics-D22kre4r.js → thread-analytics-DRVZv6bu.js} +1 -1
- package/dist/client/assets/{thread-intent-4tNJ-MPs.js → thread-intent-ptqgtSKo.js} +1 -1
- package/dist/client/assets/{thread-route-DJDdAJyj.js → thread-route-BnB8pcK6.js} +1 -1
- package/dist/client/assets/{thread-route-Bnw3gplh.js → thread-route-CCN9I68_.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BwIWxLs3.js → thread-sheet-body-Opalk3rB.js} +1 -1
- package/dist/client/assets/{time-range-picker-DXIxiKEP.js → time-range-picker-D-3pTVaL.js} +1 -1
- package/dist/client/assets/{toggle-group-ythhcZKM.js → toggle-group-DhjHoFhg.js} +1 -1
- package/dist/client/assets/{tool-namespace-BTv6Xybs.js → tool-namespace-EPn7Kyb1.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-dgGE6Jet.js → toolbar-icon-button-DOtu5VNi.js} +1 -1
- package/dist/client/assets/{tooltip-D8ZXcwhe.js → tooltip-DiW2ytsS.js} +1 -1
- package/dist/client/assets/{tooltipContext-DziaRNob.js → tooltipContext-Boh-kskS.js} +1 -1
- package/dist/client/assets/{track-D30a8sx3.js → track-DDsr4-8X.js} +1 -1
- package/dist/client/assets/{types-CofNWIMh.js → types-CAqly_33.js} +1 -1
- package/dist/client/assets/{url-slug-se91w2Rf.js → url-slug-BimzZyel.js} +1 -1
- package/dist/client/assets/{usage-stats-B8cFnQJA.js → usage-stats-DyqnqVDM.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DTLn4WND.js → use-ai-providers-DGRaKYBP.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-HLQawGs9.js → use-apply-named-rule-TltIMgYp.js} +1 -1
- package/dist/client/assets/{use-automations-BgkyRpI7.js → use-automations-DcNzV0FS.js} +1 -1
- package/dist/client/assets/{use-autosave-Bdhhmkhm.js → use-autosave-DQJxV1eg.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-DNSQAhNn.js → use-chat-layout-state-lg3L3DSm.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CRkdqRFq.js → use-clock-tick-BXkjZk4h.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-ijHf3SXF.js → use-cms-publish-actions-Cg-2YJOJ.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CrnfY-x7.js → use-connect-companion-FMSyv7iG.js} +1 -1
- package/dist/client/assets/{use-connection-BOMkN6q_.js → use-connection-DZPkoV0a.js} +1 -1
- package/dist/client/assets/{use-copy-D-ZLjAxF.js → use-copy-Bb3ge3Jw.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BTQTbo6V.js → use-create-virtual-mcp-CFxxMtOW.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-B5UxfCyN.js → use-date-fns-locale-DTg1snyT.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CSj5KwPH.js → use-debounced-autosave-DKsafE_B.js} +1 -1
- package/dist/client/assets/{use-debounced-value-tZ4DXPdN.js → use-debounced-value-DBl2u8Ax.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C0z_exCV.js → use-deco-credits-CHyZsaQg.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CsyvAJLs.js → use-decopilot-events-ChnGZu8F.js} +1 -1
- package/dist/client/assets/{use-delete-connection-fTuP_lVU.js → use-delete-connection-Txpqn3lI.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-_9kJl1R4.js → use-deployment-admin-Do6VU3ed.js} +1 -1
- package/dist/client/assets/{use-entitlements-Bek8GQfU.js → use-entitlements-9vbVfq68.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-TbXAala5.js → use-fast-preview-draft-url-CXQ7cT85.js} +1 -1
- package/dist/client/assets/{use-file-configs-BPOIBiEJ.js → use-file-configs-Dn7YLM4Z.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CEGPGrQS.js → use-inbox-feed-BZyJNQXN.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BK7m1Rbc.js → use-infinite-scroll-CB0WyAlc.js} +1 -1
- package/dist/client/assets/{use-join-requests-DSY52QIf.js → use-join-requests-CW_FogGu.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DKwC6O2O.js → use-main-panel-tabs-BtH_KnVM.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DZTmNHLl.js → use-mcp-auth-status-CKDFCOAa.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CNQ2UmVO.js → use-mcp-client-0e8NRgfT.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DDgSZA70.js → use-mcp-prompts-B2c7TGKV.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-F7OlrZvj.js → use-mcp-tools-BWk4AICK.js} +1 -1
- package/dist/client/assets/{use-mobile-DccFwPqc.js → use-mobile-BJBInbLU.js} +1 -1
- package/dist/client/assets/{use-move-blocks-ClZ1itdH.js → use-move-blocks-sjThA1Ew.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D_4FOoK_.js → use-navigate-to-agent-CpRnIp1k.js} +1 -1
- package/dist/client/assets/{use-org-fs-DlkRCXe3.js → use-org-fs-B8r-1D4b.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Cr5sGILp.js → use-org-repo-syncs-Dq0Qf-et.js} +1 -1
- package/dist/client/assets/{use-org-sso-_0yCR_2x.js → use-org-sso-DVHlBcmx.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DjEiTO-o.js → use-organization-roles-DYmDerrq.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DApKHEhs.js → use-organization-settings-CK8r9oqu.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DEzceHY3.js → use-panel-navigate-CnrhnUVG.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CzFo9pRQ.js → use-project-native-view-presence-DnAEbSTa.js} +1 -1
- package/dist/client/assets/use-project-scope-LiKIXaiK.js +1 -0
- package/dist/client/assets/{use-recent-apps-BJGzapK6.js → use-recent-apps-Dbpw5TB5.js} +1 -1
- package/dist/client/assets/{use-releases-CRrtlof1.js → use-releases-ClTQL_RZ.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-kKOlKnuD.js → use-reports-diagnostic-DVwMPgD_.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-CBidgN1S.js → use-sandbox-events-BAik2LAS.js} +1 -1
- package/dist/client/assets/{use-secrets-CF7cOK-X.js → use-secrets-ZlehcjzW.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-aV2rnRKl.js → use-section-preview-base-CLumQxEU.js} +1 -1
- package/dist/client/assets/{use-session-runtime-DAUgnVml.js → use-session-runtime-PX0UU1rX.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BWB98fPF.js → use-sidebar-collapsed-ByUss2bb.js} +1 -1
- package/dist/client/assets/{use-tags-C9Y_8zUq.js → use-tags-CeuMPNMY.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-D0U09TNC.js → use-task-board-analytics-DzVWF5Q4.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BnMcxz87.js → use-task-board-events-Cuq4HTGo.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Cm4keV8Q.js → use-task-board-item-prs-BZA4s0mM.js} +1 -1
- package/dist/client/assets/{use-task-metadata-OcqiZ2kJ.js → use-task-metadata-De52Dfmg.js} +1 -1
- package/dist/client/assets/use-thread-analytics-HQsRrHEt.js +1 -0
- package/dist/client/assets/{use-thread-outputs-ozdLQUlC.js → use-thread-outputs-BT4PyLKe.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ChletbBT.js +1 -0
- package/dist/client/assets/{useQueries-TfPC02wF.js → useQueries-nk-gppMK.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BJjYTjXx.js +1 -0
- package/dist/client/assets/{users-CM3rnXWW.js → users-CLgvJMnS.js} +1 -1
- package/dist/client/assets/{utils-CsFkMYtG.js → utils-BDRBqTP5.js} +1 -1
- package/dist/client/assets/{variant-calendar-CZfhcIKG.js → variant-calendar-DOQE-pkF.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CbINPKEm.js → variant-matcher-override-D6IszGLS.js} +1 -1
- package/dist/client/assets/{view-header-CZ36cUo3.js → view-header-Ce7a2voT.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C73-2MCU.js → virtual-mcp-C5JzNRIg.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CbGDmnzl.js → watch-sse-pool-CBQ2__fw.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-BcCIFcf5.js +0 -2
- package/dist/client/assets/agent-app-BTGawEAl.js +0 -1
- package/dist/client/assets/agent-automations-DPdxPC74.js +0 -1
- package/dist/client/assets/agent-calendar-DmZ4-S9J.js +0 -1
- package/dist/client/assets/agent-deck-oywJhoOr.js +0 -1
- package/dist/client/assets/agent-e2e-Ckvaovne.js +0 -1
- package/dist/client/assets/agent-experiments-CDSby3Jb.js +0 -1
- package/dist/client/assets/agent-file-Bi6WzPE2.js +0 -1
- package/dist/client/assets/agent-hosting-DwY3IDTG.js +0 -1
- package/dist/client/assets/agent-library-Bo9r99Ao.js +0 -1
- package/dist/client/assets/agent-library-file-BD-Hx5H6.js +0 -1
- package/dist/client/assets/agent-monitor-B6G8_tf4.js +0 -1
- package/dist/client/assets/agent-settings-DrwNvgfn.js +0 -1
- package/dist/client/assets/agent-site-editor-code-epc2EIGV.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DErZLUCZ.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-CvNjulHl.js +0 -1
- package/dist/client/assets/agent-view-5PmLTSLw.js +0 -1
- package/dist/client/assets/api-keys-DZ0ezHTq.js +0 -1
- package/dist/client/assets/app-editor-BmJSiobK.js +0 -1
- package/dist/client/assets/context-shell-OvxUfcFS.js +0 -197
- package/dist/client/assets/folder-icon-BrFOzh35.js +0 -2
- package/dist/client/assets/index-Bwvnt-S2.js +0 -4
- package/dist/client/assets/library-b-ntlbXh.js +0 -1
- package/dist/client/assets/project-reports-W6KiESHB.js +0 -1
- package/dist/client/assets/project-tasks-CH9CIFPr.js +0 -1
- package/dist/client/assets/record-editor-BMrHZfpJ.js +0 -1
- package/dist/client/assets/reports-C5TYz7EY.js +0 -1
- package/dist/client/assets/repositories-hb3vgifj.js +0 -1
- package/dist/client/assets/route-BYeuiauO.js +0 -1
- package/dist/client/assets/route-C-s8klhs.js +0 -1
- package/dist/client/assets/sections-q5OYq_j5.js +0 -1
- package/dist/client/assets/settings-tab-D43TggxT.js +0 -1
- package/dist/client/assets/site-editor-Do8tzkEW.js +0 -1
- package/dist/client/assets/skills-DguxwEpq.js +0 -1
- package/dist/client/assets/tasks-ChcFyM82.js +0 -1
- package/dist/client/assets/use-project-scope-DlZ3hr3v.js +0 -1
- package/dist/client/assets/use-thread-analytics-DCAQaEKg.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CyMRSsxy.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CwcJeHZI.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as P,ax as te,az as ne,b as Q,a4 as se,ad as ae,k as ie,j as s,l as oe,n as X,r as M,d as le,aW as K,M as W,P as z,b2 as re,B as ce}from"./index-COnziA0Z.js";import{u as de}from"./use-mobile-DccFwPqc.js";import{h as ue,c as he,u as me,m as fe}from"./use-sidebar-collapsed-BWB98fPF.js";import{a as Z,R as pe,b as ge}from"./resizable-GdeSoBXC.js";import{c as xe,r as be,m as ye}from"./use-chat-layout-state-DNSQAhNn.js";import{O as je,m as q}from"./agent-icon-r8Z1kQx0.js";import{c as G,T as U,a as Y}from"./tooltip-D8ZXcwhe.js";import{T as A}from"./toolbar-icon-button-dgGE6Jet.js";import{a as Se}from"./use-project-scope-DlZ3hr3v.js";import{c as ve}from"./repository-binding-BGeZ0DuT.js";function J(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Ce(l,e){const a=P.c(8);let o;a[0]!==e?(o=c=>J(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=te(l,o);let n;a[2]!==e||a[3]!==t?(n=J(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Te=33;function Le(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ne.sidePanelWidth(),l[0]=e):e=l[0],Ce(e,Te)}function Ne(l){const e=P.c(54),{actions:a,navigation:o}=l,t=Q(),{org:i}=se(),n=Se(),d=ve(n),c=ue(),{toggleSidebar:r}=he(),h=me(),u=ee(),m=ae();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:Pe},e[0]=x):x=e[0];const f=ie(x),b=f?.mainView==="overview";let L;e[1]!==d?.title||e[2]!==t?(L=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=L):L=e[3];const p=L;let C;e[4]!==b||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==p||e[9]!==n||e[10]!==t?(C=b?n?p:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=b,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=p,e[9]=n,e[10]=t,e[11]=C):C=e[11];const v=C,N=n??"";let g;e[12]!==i.slug||e[13]!==N?(g={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:N}},e[12]=i.slug,e[13]=N,e[14]=g):g=e[14];const S=g;let y;if(e[15]!==c||e[16]!==b||e[17]!==i.slug||e[18]!==S||e[19]!==p||e[20]!==n||e[21]!==t||e[22]!==v){if(y=[],c){let T;e[24]!==t?(T=t("sidebar.navDestinations.settings"),e[24]=t,e[25]=T):T=e[25];let E;e[26]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[26]=i.slug,e[27]=E):E=e[27];let B;e[28]!==T||e[29]!==E?(B={key:"settings",label:T,link:E},e[28]=T,e[29]=E,e[30]=B):B=e[30],y.push(B)}else if(n&&!b){let T;e[31]!==S||e[32]!==p?(T={key:"project",label:p,link:S},e[31]=S,e[32]=p,e[33]=T):T=e[33],y.push(T)}let R;e[34]!==v?(R={key:"page",label:v},e[34]=v,e[35]=R):R=e[35],y.push(R),e[15]=c,e[16]=b,e[17]=i.slug,e[18]=S,e[19]=p,e[20]=n,e[21]=t,e[22]=v,e[23]=y}else y=e[23];const j=m&&h;let w;e[36]!==u||e[37]!==j||e[38]!==t?(w=j&&u&&!u.threadless&&s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(Y,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[36]=u,e[37]=j,e[38]=t,e[39]=w):w=e[39];const D=w;let O;e[40]!==m||e[41]!==j||e[42]!==t||e[43]!==r?(O=m?s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{className:oe(!j&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(q,{size:16})})}),s.jsx(Y,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(A,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(q,{size:16})}),e[40]=m,e[41]=j,e[42]=t,e[43]=r,e[44]=O):O=e[44];let _;e[45]!==D||e[46]!==O?(_=s.jsxs(s.Fragment,{children:[O,D]}),e[45]=D,e[46]=O,e[47]=_):_=e[47];let I;return e[48]!==a||e[49]!==y||e[50]!==o||e[51]!==i.name||e[52]!==_?(I=s.jsx(X.Header,{leading:_,breadcrumbs:y,scope:i.name,actions:a,navigation:o}),e[48]=a,e[49]=y,e[50]=o,e[51]=i.name,e[52]=_,e[53]=I):I=e[53],I}function Pe(l){return l.matches.findLast(we)?.staticData}function we(l){return l.staticData.pageTitle}const k="chat-layout-thread",$="chat-layout-content",V=M.createContext(null);function ze(){return F()}function ee(){return M.use(V)}function F(){const l=M.use(V);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Oe(l){const e=P.c(23),{children:a,...o}=l,t=de(),i=le(),n=M.useRef(null),[d,c]=Le(),{threadOpen:r,contentOpen:h}=o,u=xe(o),m=r&&h?d:u.side,x=100-m,f=g=>{const S=g.getLayout(),y=S[k],j=S[$];typeof y!="number"||typeof j!="number"||Math.abs(y-m)<.001&&Math.abs(j-x)<.001||g.setLayout({[k]:m,[$]:x})},b=be({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let L;e[0]!==t||e[1]!==o||e[2]!==b?(L={...o,isMobile:t,mobileSurface:b},e[0]=t,e[1]=o,e[2]=b,e[3]=L):L=e[3];const p=L;let C;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p?(C=!o.threadless&&s.jsx(fe,{open:t?p.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:g=>({...g,...ye(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=C):C=e[9];let v;e[10]!==a||e[11]!==h||e[12]!==x||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(v=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(pe,{ref:g=>{if(n.current=g,!g)return;let S=!0;return queueMicrotask(()=>{S&&f(g)}),()=>{S=!1,n.current===g&&(n.current=null)}},defaultLayout:{[k]:m,[$]:x},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:(g,S)=>{const{isUserInteraction:y}=S;if(!y){const w=n.current;w&&f(w);return}const j=g[k];r&&h&&typeof j=="number"&&j>0&&j<100&&c(j)},children:a}),e[10]=a,e[11]=h,e[12]=x,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=v):v=e[18];let N;return e[19]!==C||e[20]!==v||e[21]!==p?(N=s.jsxs(V,{value:p,children:[C,v]}),e[19]=C,e[20]=v,e[21]=p,e[22]=N):N=e[22],N}function _e(l){const e=P.c(16),{children:a,topbar:o}=l,t=F();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(Z,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ge,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Ee({children:l,routeId:e}){return l}function H(l){const e=P.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=F();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(K,{children:s.jsx(Ee,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(X.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(z,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const f=x;let b;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(b=n.isMobile?f:s.jsx(Z,{id:$,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.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(K,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=b):b=e[22],b}function ke(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(H,{children:s.jsx(re,{})}),l[0]=e):e=l[0],e}function Me(l){const e=P.c(18),{error:a,reset:o}=l,t=Q();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(ce,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(H,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Ie=Object.assign(Oe,{Thread:_e,Content:H}),qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ie,ChatLayoutError:Me,ChatLayoutPending:ke,useChatLayout:ze,useOptionalChatLayout:ee},Symbol.toStringTag,{value:"Module"}));export{Ie as C,Ne as R,qe as i,ze as u};
|
|
1
|
+
import{c as w,aw as te,ay as ne,b as Q,a4 as se,ad as ae,k as ie,j as s,l as oe,n as X,r as M,d as le,aW as K,M as W,P as z,b2 as re,B as ce}from"./index-LISCRMKT.js";import{u as de}from"./use-mobile-BJBInbLU.js";import{h as ue,c as he,u as me,m as fe}from"./use-sidebar-collapsed-ByUss2bb.js";import{a as Z,R as pe,b as ge}from"./resizable-WR3fdR8J.js";import{c as xe,r as be,m as ye}from"./use-chat-layout-state-lg3L3DSm.js";import{O as je,o as q}from"./agent-icon-Co7E9kYl.js";import{c as G,T as U,a as Y}from"./tooltip-DiW2ytsS.js";import{T as A}from"./toolbar-icon-button-DOtu5VNi.js";import{a as Se}from"./use-project-scope-LiKIXaiK.js";import{c as ve}from"./repository-binding-N72ZtnJ7.js";function J(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Ce(l,e){const a=w.c(8);let o;a[0]!==e?(o=c=>J(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=te(l,o);let n;a[2]!==e||a[3]!==t?(n=J(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Te=33;function Le(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ne.sidePanelWidth(),l[0]=e):e=l[0],Ce(e,Te)}function Ne(l){const e=w.c(54),{actions:a,navigation:o}=l,t=Q(),{org:i}=se(),n=Se(),d=ve(n),c=ue(),{toggleSidebar:r}=he(),h=me(),u=ee(),m=ae();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:we},e[0]=x):x=e[0];const f=ie(x),b=f?.mainView==="overview";let L;e[1]!==d?.title||e[2]!==t?(L=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=L):L=e[3];const p=L;let C;e[4]!==b||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==p||e[9]!==n||e[10]!==t?(C=b?n?p:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=b,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=p,e[9]=n,e[10]=t,e[11]=C):C=e[11];const v=C,N=n??"";let g;e[12]!==i.slug||e[13]!==N?(g={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:N}},e[12]=i.slug,e[13]=N,e[14]=g):g=e[14];const S=g;let y;if(e[15]!==c||e[16]!==b||e[17]!==i.slug||e[18]!==S||e[19]!==p||e[20]!==n||e[21]!==t||e[22]!==v){if(y=[],c){let T;e[24]!==t?(T=t("sidebar.navDestinations.settings"),e[24]=t,e[25]=T):T=e[25];let E;e[26]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[26]=i.slug,e[27]=E):E=e[27];let B;e[28]!==T||e[29]!==E?(B={key:"settings",label:T,link:E},e[28]=T,e[29]=E,e[30]=B):B=e[30],y.push(B)}else if(n&&!b){let T;e[31]!==S||e[32]!==p?(T={key:"project",label:p,link:S},e[31]=S,e[32]=p,e[33]=T):T=e[33],y.push(T)}let R;e[34]!==v?(R={key:"page",label:v},e[34]=v,e[35]=R):R=e[35],y.push(R),e[15]=c,e[16]=b,e[17]=i.slug,e[18]=S,e[19]=p,e[20]=n,e[21]=t,e[22]=v,e[23]=y}else y=e[23];const j=m&&h;let P;e[36]!==u||e[37]!==j||e[38]!==t?(P=j&&u&&!u.threadless&&s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(Y,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[36]=u,e[37]=j,e[38]=t,e[39]=P):P=e[39];const D=P;let O;e[40]!==m||e[41]!==j||e[42]!==t||e[43]!==r?(O=m?s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{className:oe(!j&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(q,{size:16})})}),s.jsx(Y,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(A,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(q,{size:16})}),e[40]=m,e[41]=j,e[42]=t,e[43]=r,e[44]=O):O=e[44];let _;e[45]!==D||e[46]!==O?(_=s.jsxs(s.Fragment,{children:[O,D]}),e[45]=D,e[46]=O,e[47]=_):_=e[47];let I;return e[48]!==a||e[49]!==y||e[50]!==o||e[51]!==i.name||e[52]!==_?(I=s.jsx(X.Header,{leading:_,breadcrumbs:y,scope:i.name,actions:a,navigation:o}),e[48]=a,e[49]=y,e[50]=o,e[51]=i.name,e[52]=_,e[53]=I):I=e[53],I}function we(l){return l.matches.findLast(Pe)?.staticData}function Pe(l){return l.staticData.pageTitle}const k="chat-layout-thread",$="chat-layout-content",V=M.createContext(null);function ze(){return F()}function ee(){return M.use(V)}function F(){const l=M.use(V);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Oe(l){const e=w.c(23),{children:a,...o}=l,t=de(),i=le(),n=M.useRef(null),[d,c]=Le(),{threadOpen:r,contentOpen:h}=o,u=xe(o),m=r&&h?d:u.side,x=100-m,f=g=>{const S=g.getLayout(),y=S[k],j=S[$];typeof y!="number"||typeof j!="number"||Math.abs(y-m)<.001&&Math.abs(j-x)<.001||g.setLayout({[k]:m,[$]:x})},b=be({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let L;e[0]!==t||e[1]!==o||e[2]!==b?(L={...o,isMobile:t,mobileSurface:b},e[0]=t,e[1]=o,e[2]=b,e[3]=L):L=e[3];const p=L;let C;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p?(C=!o.threadless&&s.jsx(fe,{open:t?p.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:g=>({...g,...ye(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=C):C=e[9];let v;e[10]!==a||e[11]!==h||e[12]!==x||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(v=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(pe,{ref:g=>{if(n.current=g,!g)return;let S=!0;return queueMicrotask(()=>{S&&f(g)}),()=>{S=!1,n.current===g&&(n.current=null)}},defaultLayout:{[k]:m,[$]:x},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:(g,S)=>{const{isUserInteraction:y}=S;if(!y){const P=n.current;P&&f(P);return}const j=g[k];r&&h&&typeof j=="number"&&j>0&&j<100&&c(j)},children:a}),e[10]=a,e[11]=h,e[12]=x,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=v):v=e[18];let N;return e[19]!==C||e[20]!==v||e[21]!==p?(N=s.jsxs(V,{value:p,children:[C,v]}),e[19]=C,e[20]=v,e[21]=p,e[22]=N):N=e[22],N}function _e(l){const e=w.c(16),{children:a,topbar:o}=l,t=F();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(Z,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ge,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Ee({children:l,routeId:e}){return l}function H(l){const e=w.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=F();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(K,{children:s.jsx(Ee,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(X.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(z,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const f=x;let b;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(b=n.isMobile?f:s.jsx(Z,{id:$,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.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(K,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=b):b=e[22],b}function ke(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(H,{children:s.jsx(re,{})}),l[0]=e):e=l[0],e}function Me(l){const e=w.c(18),{error:a,reset:o}=l,t=Q();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(ce,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(H,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Ie=Object.assign(Oe,{Thread:_e,Content:H}),qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ie,ChatLayoutError:Me,ChatLayoutPending:ke,useChatLayout:ze,useOptionalChatLayout:ee},Symbol.toStringTag,{value:"Module"}));export{Ie as C,Ne as R,qe as i,ze as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,f as p,aA as u,j as s,b2 as x,N as a}from"./index-
|
|
1
|
+
import{c as f,f as p,aA as u,j as s,b2 as x,N as a}from"./index-LISCRMKT.js";import{C as j}from"./capability-load-error-D2UF4Aw2.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-Bj3tjA3X.js → infiniteQueryObserver-DGdbL4U6.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{es as g,et as d,eu as v}from"./index-
|
|
1
|
+
import{es as g,et as d,eu as v}from"./index-LISCRMKT.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:r}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,s=r.fetchMeta?.fetchMore?.direction,h=a&&s==="forward",o=c&&s==="forward",n=a&&s==="backward",f=c&&s==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,r.data),hasPreviousPage:d(t,r.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{g4 as He,dv as Ht,r as S,fu as ie,bQ as $t,c as Z,j as s,hH as Qt,b as de,hI as Jt,hJ as Ct,hK as _t,gm as L,h6 as ge,B as Ze,bB as ae,a7 as er}from"./index-COnziA0Z.js";import{i as tr}from"./CreditCard01-CwcYwmjF.js";import{B as C}from"./badge-DXrGf1RH.js";import{M as rr}from"./multi-select-B-zuXpH9.js";import{S as nr,d as ir,c as ar,a as sr,b as or}from"./select-BaNSHFfS.js";import{T as ee,a as lr,b as $e,c as te,d as cr,e as ur}from"./table-KCysjL80.js";import{C as fr,X as dr,Y as gr}from"./CartesianChart-DPKynmNL.js";import{bN as mr,bO as kt,bP as yr,bQ as pr,bR as br,bS as hr,bT as vr,bU as jr,bc as xr,aB as ue,bV as Sr,N as D,bW as wr,ai as Or,a0 as fe,bX as Ut,F as X,bY as Pr,bZ as Br,bh as Qe,b_ as Ar,aK as Tr,bs as Dr,bE as Nr,a1 as Er,Z as qr,D as se,a2 as Mr,B as Ir,a5 as Rr,b$ as Lr,ax as _r,c0 as kr,c1 as Ur,c2 as Fr,c3 as Wr,c4 as Kr,c5 as zr,c6 as Vr,c7 as Zr,c8 as Gr}from"./CategoricalChart-8cAW3ovr.js";import{R as Yr,S as Xr}from"./Sector-Dgqo2T4d.js";import{A as Hr,a as $r}from"./AreaChart-DgmDRfhz.js";import{R as Qr}from"./require-capability-B4rUwk-N.js";import"./checkbox-oUIybZae.js";import"./Minus-Dsn0b7GK.js";import"./ChevronUp-B635wgc1.js";import"./command-ChermTHn.js";import"./index-CUvxA4QU.js";import"./SearchMd-CcaPghb6.js";import"./popover-CDni3562.js";import"./index-BdQq_4o_.js";import"./index-CVG6lJ_v.js";import"./index-Du1V-xNi.js";import"./access-gate-NRvGMpYz.js";import"./capability-load-error-CODEJJ02.js";var me={},ye={},Je;function Jr(){return Je||(Je=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 be={},et;function Ft(){return et||(et=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r}t.identity=e})(be)),be}var he={},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=mr(),r=en();function n(a){return r.isObjectLike(a)&&e.isArrayLike(a)}t.isArrayLikeObject=n})(he)),he}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=yr(),r=Wt(),n=pr();function a(f,i,d){return typeof d!="function"?a(f,i,()=>{}):l(f,i,function b(g,p,v,c,h,j){const O=d(g,p,v,c,h,j);return O!==void 0?!!O:l(g,p,b,j)},new Map)}function l(f,i,d,b){if(i===f)return!0;switch(typeof i){case"object":return o(f,i,d,b);case"function":return Object.keys(i).length>0?l(f,{...i},d,b):n.isEqualsSameValueZero(f,i);default:return e.isObject(f)?typeof i=="string"?i==="":!0:n.isEqualsSameValueZero(f,i)}}function o(f,i,d,b){if(i==null)return!0;if(Array.isArray(i))return m(f,i,d,b);if(i instanceof Map)return u(f,i,d,b);if(i instanceof Set)return y(f,i,d,b);const g=Object.keys(i);if(f==null||r.isPrimitive(f))return g.length===0;if(g.length===0)return!0;if(b?.has(i))return b.get(i)===f;b?.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,b))return!1}return!0}finally{b?.delete(i)}}function u(f,i,d,b){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,b)===!1)return!1}return!0}function m(f,i,d,b){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 h=0;h<f.length;h++){if(g.has(h))continue;const j=f[h];let O=!1;if(d(j,v,p,f,i,b)&&(O=!0),O){g.add(h),c=!0;break}}if(!c)return!1}return!0}function y(f,i,d,b){return i.size===0?!0:f instanceof Set?m([...f],[...i],d,b):!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]",b="[object Object]",g="[object Error]",p="[object DataView]",v="[object Uint8Array]",c="[object Uint8ClampedArray]",h="[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=b,t.regexpTag=e,t.setTag=y,t.stringTag=r,t.symbolTag=o,t.uint16ArrayTag=h,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,b,g=new Map,p=void 0){const v=p?.(i,d,b,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 h=0;h<i.length;h++)c[h]=m(i[h],h,b,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[h,j]of i)c.set(h,m(j,h,b,g,p));return c}if(i instanceof Set){const c=new Set;g.set(i,c);for(const h of i)c.add(m(h,void 0,b,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 h=0;h<i.length;h++)c[h]=m(i[h],h,b,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,b,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,b,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,b,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,b,g,p),c}if(i instanceof Boolean){const c=new Boolean(i.valueOf());return g.set(i,c),y(c,i,b,g,p),c}if(i instanceof Number){const c=new Number(i.valueOf());return g.set(i,c),y(c,i,b,g,p),c}if(i instanceof String){const c=new String(i.valueOf());return g.set(i,c),y(c,i,b,g,p),c}if(typeof i=="object"&&f(i)){const c=Object.create(Object.getPrototypeOf(i));return g.set(i,c),y(c,i,b,g,p),c}return i}function y(i,d,b=i,g,p){const v=[...Object.keys(d),...e.getSymbols(d)];for(let c=0;c<v.length;c++){const h=v[c],j=Object.getOwnPropertyDescriptor(i,h);(j==null||j.writable)&&(i[h]=m(d[h],h,b,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 bt;function dn(){return bt||(bt=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={},ht;function gn(){return ht||(ht=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=br(),r=vr(),n=gn(),a=hr();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=jr(),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 bn(){return St||(St=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Jr(),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 hn(){return wt||(wt=1,Ue=bn().uniqBy),Ue}var vn=hn();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 Q={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:Sr(t,e)}var An=t=>{var{separator:e=Q.separator,contentStyle:r,itemStyle:n,labelStyle:a=Q.labelStyle,payload:l,formatter:o,itemSorter:u,wrapperClassName:m,labelClassName:y,label:f,labelFormatter:i,accessibilityLayer:d=Q.accessibilityLayer}=t,b=()=>{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({},Q.itemStyle),{},{color:B.color||Q.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({},Q.contentStyle),r),p=re({margin:0},a),v=!xr(f),c=v?f:"",h=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:h,style:g},O),S.createElement("p",{className:j,style:p},S.isValidElement(c)?c:"".concat(c)),b())},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 b=f,g=d;return b<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 J(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=wr(),[m,y]=S.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));S.useEffect(()=>{var g=p=>{if(p.key==="Escape"){var v,c,h,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:(h=(j=t.coordinate)===null||j===void 0?void 0:j.y)!==null&&h!==void 0?h: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(J(J({},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?{}:J(J({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}),b=J(J({},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:b,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({},Or(y),{className:ie("recharts-cross",u),d:Zn(e,r,l,o,n,a)}))};function Yn(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 Xn(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=Qn(t,"string");return typeof e=="symbol"?e:e+""}function Qn(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 Jn=()=>X(Ar),Cn=()=>{var t=Jn(),e=X(Pr),r=X(Br);return!t||!r?Qe(void 0,e):Qe(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,b=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=Yn(u,i,l,o),p=Yr,v=se.cursorRectangle;else if(u==="radial"&&Ut(i)){var{cx:c,cy:h,radius:j,startAngle:O,endAngle:x}=Zt(i);g={cx:c,cy:h,startAngle:O,endAngle:x,innerRadius:j,outerRadius:j},p=Xr,v=se.cursorLine}else g={points:Xn(u,i,l)},p=Mr,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),Er(m)),{},{payload:d,payloadIndex:b,className:ie("recharts-tooltip-cursor",P)});return S.createElement(qr,{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=Tr(),n=Dr(),a=Nr();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=Ir(t,fi),{active:a,allowEscapeViewBox:l,animationDuration:o,animationEasing:u,content:m,filterNull:y,isAnimationActive:f,offset:i,payloadUniqBy:d,position:b,reverseDirection:g,useTranslate3d:p,wrapperStyle:v,cursor:c,shared:h,trigger:j,defaultIndex:O,portal:x,axisId:P}=n,A=Rr(),B=typeof O=="number"?String(O):O;S.useEffect(()=>{A(Lr({shared:h,trigger:j,axisId:P,active:a,defaultIndex:B}))},[A,h,j,P,a,B]);var T=_r(),E=kr(),N=Ur(h),{activeIndex:_,isActive:F}=(e=X(U=>Fr(U,N,j,B)))!==null&&e!==void 0?e:{},W=X(U=>Wr(U,N,j,B)),M=X(U=>Kr(U,N,j,B)),K=X(U=>zr(U,N,j,B)),I=W,z=Vr(),R=(r=a??F)!==null&&r!==void 0?r:!1,[V,H]=xn([I,R]),G=N==="axis"?M:void 0;Zr(N,j,K,G,_,R);var Y=x??z;if(Y==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:b,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,Y),R&&S.createElement(ai,{cursor:c,tooltipEventType:N,coordinate:K,payload:q,index:_}))}const Ye=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 Yt(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function Xe(t){return Yt(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(bi),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,b;e[3]!==u?(d=s.jsx("stop",{offset:"0%",stopColor:u,stopOpacity:.25}),b=s.jsx("stop",{offset:"100%",stopColor:u,stopOpacity:0}),e[3]=u,e[4]=d,e[5]=b):(d=e[4],b=e[5]);let g;e[6]!==m||e[7]!==d||e[8]!==b?(g=s.jsx("defs",{children:s.jsxs("linearGradient",{id:m,x1:"0",y1:"0",x2:"0",y2:"1",children:[d,b]})}),e[6]=m,e[7]=d,e[8]=b,e[9]=g):g=e[9];let p;e[10]!==l||e[11]!==o?(p=o>100&&s.jsxs(s.Fragment,{children:[s.jsx(fr,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(dr,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(gr,{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 h;e[15]!==l?(h=s.jsx(di,{cursor:v,contentStyle:c,formatter:A=>l(Number(A)||0)}),e[15]=l,e[16]=h):h=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]!==h?(x=s.jsxs($r,{data:f,margin:i,children:[g,p,h,O]}),e[21]=f,e[22]=O,e[23]=g,e[24]=p,e[25]=h,e[26]=x):x=e[26];let P;return e[27]!==o||e[28]!==x?(P=s.jsx(Gr,{width:"100%",height:o,children:x}),e[27]=o,e[28]=x,e[29]=P):P=e[29],P}function bi(t){return{...t,label:pi(t.date)}}function ce(t,e){return t.reduce((r,n)=>r+n[e],0)}function hi(){const t=Z.c(39),e=de(),{sites:r,isLoading:n}=Jt(),[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:b}=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,h=(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?Ye.format(ce(p,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:h("requests",wi)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:h("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?Xt(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 Y;t[30]!==f.length||t[31]!==e?(Y=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]=Y):Y=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)})]})]}),Y,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(tr,{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")}),b?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?Xe(E.nextBillingDate):"—"})]})]}):!b&&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})]}),b?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,{size:"flush",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 Ye.format(t)}function wi(t){return Ye.format(t)}function Xt(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:Xe(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:Xt(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,{size:"flush",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 b;e[16]!==d?(b=s.jsx(ee,{children:d}),e[16]=d,e[17]=b):b=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]!==b?(v=s.jsx(lr,{children:s.jsxs($e,{children:[u,y,i,b,p]})}),e[22]=p,e[23]=u,e[24]=y,e[25]=i,e[26]=b,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?Yt(x.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(te,{children:x.dueDate?Xe(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 h;e[35]!==c?(h=s.jsx(cr,{children:c}),e[35]=c,e[36]=h):h=e[36];let j;return e[37]!==v||e[38]!==h?(j=s.jsxs(ur,{children:[v,h]}),e[37]=v,e[38]=h,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(er,{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(Qt,{group:"billing",children:s.jsx(hi,{})}),t[0]=e):e=t[0],e}function Ji(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Qr,{capability:"members:manage",area:"billing",children:s.jsx(Ti,{})}),t[0]=e):e=t[0],e}export{Ji as default};
|
|
1
|
+
import{g4 as He,dv as Ht,r as S,fu as ie,bQ as $t,c as Z,j as s,hH as Qt,b as de,hI as Jt,hJ as Ct,hK as _t,gm as L,h8 as ge,B as Ze,bB as ae,a7 as er}from"./index-LISCRMKT.js";import{i as tr}from"./CreditCard01-C2H6wRye.js";import{B as C}from"./badge-CMgWUKiX.js";import{M as rr}from"./multi-select-DqoGBuJR.js";import{S as nr,d as ir,c as ar,a as sr,b as or}from"./select-Ce8n-RXJ.js";import{T as ee,a as lr,b as $e,c as te,d as cr,e as ur}from"./table-CR0vxly9.js";import{C as fr,X as dr,Y as gr}from"./CartesianChart-BfqGbR2p.js";import{bN as mr,bO as kt,bP as yr,bQ as pr,bR as br,bS as hr,bT as vr,bU as jr,bc as xr,aB as ue,bV as Sr,N as D,bW as wr,ai as Or,a0 as fe,bX as Ut,F as X,bY as Pr,bZ as Br,bh as Qe,b_ as Ar,aK as Tr,bs as Dr,bE as Nr,a1 as Er,Z as qr,D as se,a2 as Mr,B as Ir,a5 as Rr,b$ as Lr,ax as _r,c0 as kr,c1 as Ur,c2 as Fr,c3 as Wr,c4 as Kr,c5 as zr,c6 as Vr,c7 as Zr,c8 as Gr}from"./CategoricalChart-1g-OhB34.js";import{R as Yr,S as Xr}from"./Sector-CNB3zVjr.js";import{A as Hr,a as $r}from"./AreaChart-DJ3vI97z.js";import{R as Qr}from"./require-capability-C2GXhzLq.js";import"./checkbox-CA6aWe75.js";import"./Minus-DRtjDVr0.js";import"./ChevronUp-D3pnxmNi.js";import"./command-lP5P8rqX.js";import"./index-BaOc9Ezz.js";import"./SearchMd-Coxjt-Zl.js";import"./popover-D6dCz_8d.js";import"./index-BdQq_4o_.js";import"./index-KpWMq2p9.js";import"./index-DMJwbqhe.js";import"./access-gate-DaxHYIBB.js";import"./capability-load-error-D2UF4Aw2.js";var me={},ye={},Je;function Jr(){return Je||(Je=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 be={},et;function Ft(){return et||(et=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r}t.identity=e})(be)),be}var he={},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=mr(),r=en();function n(a){return r.isObjectLike(a)&&e.isArrayLike(a)}t.isArrayLikeObject=n})(he)),he}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=yr(),r=Wt(),n=pr();function a(f,i,d){return typeof d!="function"?a(f,i,()=>{}):l(f,i,function b(g,p,v,c,h,j){const O=d(g,p,v,c,h,j);return O!==void 0?!!O:l(g,p,b,j)},new Map)}function l(f,i,d,b){if(i===f)return!0;switch(typeof i){case"object":return o(f,i,d,b);case"function":return Object.keys(i).length>0?l(f,{...i},d,b):n.isEqualsSameValueZero(f,i);default:return e.isObject(f)?typeof i=="string"?i==="":!0:n.isEqualsSameValueZero(f,i)}}function o(f,i,d,b){if(i==null)return!0;if(Array.isArray(i))return m(f,i,d,b);if(i instanceof Map)return u(f,i,d,b);if(i instanceof Set)return y(f,i,d,b);const g=Object.keys(i);if(f==null||r.isPrimitive(f))return g.length===0;if(g.length===0)return!0;if(b?.has(i))return b.get(i)===f;b?.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,b))return!1}return!0}finally{b?.delete(i)}}function u(f,i,d,b){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,b)===!1)return!1}return!0}function m(f,i,d,b){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 h=0;h<f.length;h++){if(g.has(h))continue;const j=f[h];let O=!1;if(d(j,v,p,f,i,b)&&(O=!0),O){g.add(h),c=!0;break}}if(!c)return!1}return!0}function y(f,i,d,b){return i.size===0?!0:f instanceof Set?m([...f],[...i],d,b):!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]",b="[object Object]",g="[object Error]",p="[object DataView]",v="[object Uint8Array]",c="[object Uint8ClampedArray]",h="[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=b,t.regexpTag=e,t.setTag=y,t.stringTag=r,t.symbolTag=o,t.uint16ArrayTag=h,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,b,g=new Map,p=void 0){const v=p?.(i,d,b,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 h=0;h<i.length;h++)c[h]=m(i[h],h,b,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[h,j]of i)c.set(h,m(j,h,b,g,p));return c}if(i instanceof Set){const c=new Set;g.set(i,c);for(const h of i)c.add(m(h,void 0,b,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 h=0;h<i.length;h++)c[h]=m(i[h],h,b,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,b,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,b,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,b,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,b,g,p),c}if(i instanceof Boolean){const c=new Boolean(i.valueOf());return g.set(i,c),y(c,i,b,g,p),c}if(i instanceof Number){const c=new Number(i.valueOf());return g.set(i,c),y(c,i,b,g,p),c}if(i instanceof String){const c=new String(i.valueOf());return g.set(i,c),y(c,i,b,g,p),c}if(typeof i=="object"&&f(i)){const c=Object.create(Object.getPrototypeOf(i));return g.set(i,c),y(c,i,b,g,p),c}return i}function y(i,d,b=i,g,p){const v=[...Object.keys(d),...e.getSymbols(d)];for(let c=0;c<v.length;c++){const h=v[c],j=Object.getOwnPropertyDescriptor(i,h);(j==null||j.writable)&&(i[h]=m(d[h],h,b,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 bt;function dn(){return bt||(bt=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={},ht;function gn(){return ht||(ht=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=br(),r=vr(),n=gn(),a=hr();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=jr(),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 bn(){return St||(St=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Jr(),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 hn(){return wt||(wt=1,Ue=bn().uniqBy),Ue}var vn=hn();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 Q={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:Sr(t,e)}var An=t=>{var{separator:e=Q.separator,contentStyle:r,itemStyle:n,labelStyle:a=Q.labelStyle,payload:l,formatter:o,itemSorter:u,wrapperClassName:m,labelClassName:y,label:f,labelFormatter:i,accessibilityLayer:d=Q.accessibilityLayer}=t,b=()=>{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({},Q.itemStyle),{},{color:B.color||Q.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({},Q.contentStyle),r),p=re({margin:0},a),v=!xr(f),c=v?f:"",h=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:h,style:g},O),S.createElement("p",{className:j,style:p},S.isValidElement(c)?c:"".concat(c)),b())},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 b=f,g=d;return b<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 J(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=wr(),[m,y]=S.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));S.useEffect(()=>{var g=p=>{if(p.key==="Escape"){var v,c,h,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:(h=(j=t.coordinate)===null||j===void 0?void 0:j.y)!==null&&h!==void 0?h: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(J(J({},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?{}:J(J({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}),b=J(J({},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:b,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({},Or(y),{className:ie("recharts-cross",u),d:Zn(e,r,l,o,n,a)}))};function Yn(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 Xn(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=Qn(t,"string");return typeof e=="symbol"?e:e+""}function Qn(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 Jn=()=>X(Ar),Cn=()=>{var t=Jn(),e=X(Pr),r=X(Br);return!t||!r?Qe(void 0,e):Qe(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,b=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=Yn(u,i,l,o),p=Yr,v=se.cursorRectangle;else if(u==="radial"&&Ut(i)){var{cx:c,cy:h,radius:j,startAngle:O,endAngle:x}=Zt(i);g={cx:c,cy:h,startAngle:O,endAngle:x,innerRadius:j,outerRadius:j},p=Xr,v=se.cursorLine}else g={points:Xn(u,i,l)},p=Mr,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),Er(m)),{},{payload:d,payloadIndex:b,className:ie("recharts-tooltip-cursor",P)});return S.createElement(qr,{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=Tr(),n=Dr(),a=Nr();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=Ir(t,fi),{active:a,allowEscapeViewBox:l,animationDuration:o,animationEasing:u,content:m,filterNull:y,isAnimationActive:f,offset:i,payloadUniqBy:d,position:b,reverseDirection:g,useTranslate3d:p,wrapperStyle:v,cursor:c,shared:h,trigger:j,defaultIndex:O,portal:x,axisId:P}=n,A=Rr(),B=typeof O=="number"?String(O):O;S.useEffect(()=>{A(Lr({shared:h,trigger:j,axisId:P,active:a,defaultIndex:B}))},[A,h,j,P,a,B]);var T=_r(),E=kr(),N=Ur(h),{activeIndex:_,isActive:F}=(e=X(U=>Fr(U,N,j,B)))!==null&&e!==void 0?e:{},W=X(U=>Wr(U,N,j,B)),M=X(U=>Kr(U,N,j,B)),K=X(U=>zr(U,N,j,B)),I=W,z=Vr(),R=(r=a??F)!==null&&r!==void 0?r:!1,[V,H]=xn([I,R]),G=N==="axis"?M:void 0;Zr(N,j,K,G,_,R);var Y=x??z;if(Y==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:b,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,Y),R&&S.createElement(ai,{cursor:c,tooltipEventType:N,coordinate:K,payload:q,index:_}))}const Ye=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 Yt(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function Xe(t){return Yt(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(bi),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,b;e[3]!==u?(d=s.jsx("stop",{offset:"0%",stopColor:u,stopOpacity:.25}),b=s.jsx("stop",{offset:"100%",stopColor:u,stopOpacity:0}),e[3]=u,e[4]=d,e[5]=b):(d=e[4],b=e[5]);let g;e[6]!==m||e[7]!==d||e[8]!==b?(g=s.jsx("defs",{children:s.jsxs("linearGradient",{id:m,x1:"0",y1:"0",x2:"0",y2:"1",children:[d,b]})}),e[6]=m,e[7]=d,e[8]=b,e[9]=g):g=e[9];let p;e[10]!==l||e[11]!==o?(p=o>100&&s.jsxs(s.Fragment,{children:[s.jsx(fr,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(dr,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(gr,{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 h;e[15]!==l?(h=s.jsx(di,{cursor:v,contentStyle:c,formatter:A=>l(Number(A)||0)}),e[15]=l,e[16]=h):h=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]!==h?(x=s.jsxs($r,{data:f,margin:i,children:[g,p,h,O]}),e[21]=f,e[22]=O,e[23]=g,e[24]=p,e[25]=h,e[26]=x):x=e[26];let P;return e[27]!==o||e[28]!==x?(P=s.jsx(Gr,{width:"100%",height:o,children:x}),e[27]=o,e[28]=x,e[29]=P):P=e[29],P}function bi(t){return{...t,label:pi(t.date)}}function ce(t,e){return t.reduce((r,n)=>r+n[e],0)}function hi(){const t=Z.c(39),e=de(),{sites:r,isLoading:n}=Jt(),[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:b}=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,h=(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?Ye.format(ce(p,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:h("requests",wi)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:h("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?Xt(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 Y;t[30]!==f.length||t[31]!==e?(Y=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]=Y):Y=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)})]})]}),Y,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(tr,{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")}),b?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?Xe(E.nextBillingDate):"—"})]})]}):!b&&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})]}),b?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,{size:"flush",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 Ye.format(t)}function wi(t){return Ye.format(t)}function Xt(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:Xe(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:Xt(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,{size:"flush",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 b;e[16]!==d?(b=s.jsx(ee,{children:d}),e[16]=d,e[17]=b):b=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]!==b?(v=s.jsx(lr,{children:s.jsxs($e,{children:[u,y,i,b,p]})}),e[22]=p,e[23]=u,e[24]=y,e[25]=i,e[26]=b,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?Yt(x.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(te,{children:x.dueDate?Xe(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 h;e[35]!==c?(h=s.jsx(cr,{children:c}),e[35]=c,e[36]=h):h=e[36];let j;return e[37]!==v||e[38]!==h?(j=s.jsxs(ur,{children:[v,h]}),e[37]=v,e[38]=h,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(er,{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(Qt,{group:"billing",children:s.jsx(hi,{})}),t[0]=e):e=t[0],e}function Ji(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Qr,{capability:"members:manage",area:"billing",children:s.jsx(Ti,{})}),t[0]=e):e=t[0],e}export{Ji as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,r as P,b as G,j as h,t as E,a5 as ye,x as xe,aY as ke,w as we,B as be,v as Ce,D as Pe,q as le,a4 as ce,K as X,C as Q,f$ as ue,g0 as re,g1 as z,l as _e}from"./index-COnziA0Z.js";import{S as de,s as Se}from"./suggestion-s4BFDhSc.js";import{l as Fe,n as De,o as Ie,k as B,p as je,P as ne,q as ve,c as Me,u as Re,r as Le,j as Ae,f as Ee,F as Ne,s as Te,b as Qe}from"./usage-stats-B8cFnQJA.js";import{aU as Ue}from"./agent-icon-r8Z1kQx0.js";import"./chat-context-q7TqJ1C-.js";import{m as $e,i as Oe,b as qe}from"./index-BMsnE8rU.js";import{u as me}from"./use-mcp-client-CNQ2UmVO.js";import{b as Ke}from"./repository-binding-BGeZ0DuT.js";import{g as se,s as fe}from"./tool-namespace-BTv6Xybs.js";import{l as oe,g as pe}from"./use-mcp-prompts-DDgSZA70.js";import{f as ze,b as Be}from"./use-org-fs-DlkRCXe3.js";async function He(t,e,r,s,i,o){if(!$e(e)){E.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!Oe(l,e)){const g=qe(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):E.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){E.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),E.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ye(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=P.useRef(We);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),P.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,S)=>Je(d,b,S,(_,j)=>l.current(_,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(Ve);return S.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const j of S){const I=j.getAsFile();I&&(await l.current?.(I,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),P.useEffect(k,m),null}function Ve(t){return t.kind==="file"}function We(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const S=r?.modelName??"";let _;e[19]!==i||e[20]!==S?(_=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=_):_=e[21];let j;e[22]!==_?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=j):j=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Ue,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const R=r?.accepted;let D;e[25]!==R?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:R})]}),e[25]=R,e[26]=D):D=e[26];let a;e[27]!==j||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let C;e[35]!==F||e[36]!==a||e[37]!==x?(C=h.jsxs(Ce,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Xe,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=C):C=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==C?(M=h.jsx(Pe,{open:o,onOpenChange:l,children:C}),e[39]=o,e[40]=l,e[41]=C,e[42]=M):M=e[42],M}function Xe(t){return t.preventDefault()}function Ct(){const t=H.c(3),[e,r]=P.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=Ke();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=X.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=P.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=P.useEffectEvent(b),S=P.useRef(null),_=P.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const R=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let C;e[22]!==o?(C=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=C):C=e[23];let M;e[24]!==C||e[25]!==x?(M={name:"resources",title:x,description:C,kind:"category",drillable:!0},e[24]=C,e[25]=x,e[26]=M):M=e[26];let v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const O=v;let U;e[30]!==m||e[31]!==r||e[32]!==o?(U=async $=>{const{item:w,range:K}=$;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(_.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,K,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,K,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),E.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=U):U=e[33];const q=U;let y;e[34]!==g||e[35]!==O||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async $=>{const{query:w}=$,K=F();if(K==="categories"){if(!w.trim())return O;const L=w.toLowerCase(),A=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(L)||N.description?.toLowerCase().includes(L))).map(Ze),W=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(L)||te.name?.toLowerCase().includes(L)||te.description?.toLowerCase().includes(L)).map(et)})();return[...A,...W]}if(K==="agents"){let L=g.filter(A=>A.status==="active"&&(!A.id||!re(A.id))&&A.id!==s);if(w.trim()){const A=w.toLowerCase();L=L.filter(W=>W.title.toLowerCase().includes(A)||W.description?.toLowerCase().includes(A))}return L.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let V=T?.resources??[];if(w.trim()){const L=w.toLowerCase();V=V.filter(A=>A.uri.toLowerCase().includes(L)||A.name?.toLowerCase().includes(L)||A.description?.toLowerCase().includes(L))}return V.map(rt)},e[34]=g,e[35]=O,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=$=>{if(i&&(i.current=$),$)S.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=S.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),S.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let Y;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==R?(Y=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:R,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,e[47]=ee,e[48]=R,e[49]=Y):Y=e[49],Y};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),E.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),E.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),E.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=X.virtualMcpPrompts(e,o.id),g=X.virtualMcpResources(e,o.id),k=X.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=P.useState(null),[u,d]=P.useState(null),b=je(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(C=>C.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),E.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=P.useRef(null),S=P.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),S.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},j=async a=>{if(!p||!l)return;const{range:f,item:x}=p,C=se(x._meta);await ie(t,f,l,x.name,C,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!ve(t,u.pos,u.promptId)){E.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),E.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},R=async a=>{const{query:f}=a;if(!l)return[];const[x,C,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),v=f.trim().toLowerCase(),O=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),U=(C??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...O,...U,...q]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:R,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),Se.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ee,Ne]}function Pt({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=P.useRef(o),k=P.useRef(e),m=P.useRef(s),p=P.useRef(i),n=Re({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return P.useEffect(()=>{n?.setEditable(!r)},[n,r]),P.useEffect(()=>{g.current=o},[o]),P.useEffect(()=>{k.current=e},[e]),P.useEffect(()=>{m.current=s},[s]),P.useEffect(()=>{p.current=i},[i]),P.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Le.Provider,{value:{editor:n},children:c})}function _t(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ae();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const C=n.state.doc.textContent.trim()==="";n.commands.focus("end"),C||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,C)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),C)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+C:C})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),P.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==k||e[4]!==b||e[5]!==F?(S=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=S):S=e[6];let _;e[7]!==n||e[8]!==S?(_=h.jsx(Qe,{editor:n,className:S}),e[7]=n,e[8]=S,e[9]=_):_=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(P.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const R=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==R?(D=h.jsx(P.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:R,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=R,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ye,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{Pt as T,bt as U,_t as a,He as p,Ct as u};
|
|
1
|
+
import{c as H,r as P,b as G,j as h,t as E,a5 as ye,x as xe,aY as ke,w as we,B as be,v as Ce,D as Pe,q as le,a4 as ce,K as X,C as Q,f$ as ue,g0 as re,g1 as z,l as _e}from"./index-LISCRMKT.js";import{S as de,s as Se}from"./suggestion-C79o6bsf.js";import{l as Fe,n as De,o as Ie,k as B,p as je,P as ne,q as ve,c as Me,u as Re,r as Le,j as Ae,f as Ee,F as Ne,s as Te,b as Qe}from"./usage-stats-DyqnqVDM.js";import{aU as Ue}from"./agent-icon-Co7E9kYl.js";import"./chat-context-Cbn1d2gD.js";import{m as $e,i as Oe,b as qe}from"./index-D_GgrLpt.js";import{u as me}from"./use-mcp-client-0e8NRgfT.js";import{b as Ke}from"./repository-binding-N72ZtnJ7.js";import{g as se,s as fe}from"./tool-namespace-EPn7Kyb1.js";import{l as oe,g as pe}from"./use-mcp-prompts-B2c7TGKV.js";import{f as ze,b as Be}from"./use-org-fs-B8r-1D4b.js";async function He(t,e,r,s,i,o){if(!$e(e)){E.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!Oe(l,e)){const g=qe(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):E.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){E.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),E.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ye(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=P.useRef(We);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),P.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,S)=>Je(d,b,S,(_,j)=>l.current(_,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(Ve);return S.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const j of S){const I=j.getAsFile();I&&(await l.current?.(I,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),P.useEffect(k,m),null}function Ve(t){return t.kind==="file"}function We(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const S=r?.modelName??"";let _;e[19]!==i||e[20]!==S?(_=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=_):_=e[21];let j;e[22]!==_?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=j):j=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Ue,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const R=r?.accepted;let D;e[25]!==R?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:R})]}),e[25]=R,e[26]=D):D=e[26];let a;e[27]!==j||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let C;e[35]!==F||e[36]!==a||e[37]!==x?(C=h.jsxs(Ce,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Xe,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=C):C=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==C?(M=h.jsx(Pe,{open:o,onOpenChange:l,children:C}),e[39]=o,e[40]=l,e[41]=C,e[42]=M):M=e[42],M}function Xe(t){return t.preventDefault()}function Ct(){const t=H.c(3),[e,r]=P.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=Ke();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=X.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=P.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=P.useEffectEvent(b),S=P.useRef(null),_=P.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const R=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let C;e[22]!==o?(C=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=C):C=e[23];let M;e[24]!==C||e[25]!==x?(M={name:"resources",title:x,description:C,kind:"category",drillable:!0},e[24]=C,e[25]=x,e[26]=M):M=e[26];let v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const O=v;let U;e[30]!==m||e[31]!==r||e[32]!==o?(U=async $=>{const{item:w,range:K}=$;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(_.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,K,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,K,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),E.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=U):U=e[33];const q=U;let y;e[34]!==g||e[35]!==O||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async $=>{const{query:w}=$,K=F();if(K==="categories"){if(!w.trim())return O;const L=w.toLowerCase(),A=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(L)||N.description?.toLowerCase().includes(L))).map(Ze),W=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(L)||te.name?.toLowerCase().includes(L)||te.description?.toLowerCase().includes(L)).map(et)})();return[...A,...W]}if(K==="agents"){let L=g.filter(A=>A.status==="active"&&(!A.id||!re(A.id))&&A.id!==s);if(w.trim()){const A=w.toLowerCase();L=L.filter(W=>W.title.toLowerCase().includes(A)||W.description?.toLowerCase().includes(A))}return L.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let V=T?.resources??[];if(w.trim()){const L=w.toLowerCase();V=V.filter(A=>A.uri.toLowerCase().includes(L)||A.name?.toLowerCase().includes(L)||A.description?.toLowerCase().includes(L))}return V.map(rt)},e[34]=g,e[35]=O,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=$=>{if(i&&(i.current=$),$)S.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=S.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),S.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let Y;return e[44]!==r||e[45]!==Z||e[46]!==q||e[47]!==ee||e[48]!==R?(Y=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:R,queryFn:Z,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=q,e[47]=ee,e[48]=R,e[49]=Y):Y=e[49],Y};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),E.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),E.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),E.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=X.virtualMcpPrompts(e,o.id),g=X.virtualMcpResources(e,o.id),k=X.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=P.useState(null),[u,d]=P.useState(null),b=je(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(C=>C.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),E.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=P.useRef(null),S=P.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),S.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},j=async a=>{if(!p||!l)return;const{range:f,item:x}=p,C=se(x._meta);await ie(t,f,l,x.name,C,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!ve(t,u.pos,u.promptId)){E.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),E.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},R=async a=>{const{query:f}=a;if(!l)return[];const[x,C,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),v=f.trim().toLowerCase(),O=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),U=(C??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...O,...U,...q]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:R,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),Se.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ee,Ne]}function Pt({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=P.useRef(o),k=P.useRef(e),m=P.useRef(s),p=P.useRef(i),n=Re({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return P.useEffect(()=>{n?.setEditable(!r)},[n,r]),P.useEffect(()=>{g.current=o},[o]),P.useEffect(()=>{k.current=e},[e]),P.useEffect(()=>{m.current=s},[s]),P.useEffect(()=>{p.current=i},[i]),P.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Le.Provider,{value:{editor:n},children:c})}function _t(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ae();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const C=n.state.doc.textContent.trim()==="";n.commands.focus("end"),C||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,C)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),C)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+C:C})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),P.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==k||e[4]!==b||e[5]!==F?(S=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=S):S=e[6];let _;e[7]!==n||e[8]!==S?(_=h.jsx(Qe,{editor:n,className:S}),e[7]=n,e[8]=S,e[9]=_):_=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(P.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const R=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==R?(D=h.jsx(P.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:R,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=R,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ye,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{Pt as T,bt as U,_t as a,He as p,Ct as u};
|